From 92de08fa5134bcc7635ef15b9ef645d09a4ba901 Mon Sep 17 00:00:00 2001 From: testikun <320479488+testikun@users.noreply.github.com> Date: Fri, 2 Oct 2026 00:57:36 +0900 Subject: [PATCH 01/16] feat(web): complete continuous conversation and workspace actions --- README.md | 2 + SETUP.md | 2 + THIRD_PARTY_NOTICES.md | 5 + extensions/setup/index.ts | 6 +- extensions/shared/setup-config.ts | 6 +- tests/web/app-render.spec.ts | 19 +- tests/web/artifact-evidence.e2e.ts | 10 +- tests/web/document-reading-state.e2e.ts | 10 +- .../web/interactive-terminal-recovery.spec.ts | 272 ++++++++ tests/web/interactive-terminal.test.ts | 97 +++ tests/web/message-rerun.e2e.ts | 220 ++++++ tests/web/openpi-web.e2e.ts | 100 ++- tests/web/playwright.config.ts | 1 + tests/web/provider-settings-page.spec.ts | 38 + tests/web/session-fork.spec.ts | 273 ++++++++ tests/web/session-fork.test.ts | 149 ++++ tests/web/settings-parity.e2e.ts | 41 ++ tests/web/transcript-evidence-state.spec.ts | 27 + tests/web/web-host.test.ts | 60 +- tests/web/workbar-menu.spec.ts | 29 +- tests/web/workbar-position-storage.spec.ts | 316 +++++++++ tests/web/workbar-session-position.spec.ts | 13 +- tests/web/workspace-file-actions.e2e.ts | 158 ++++- tests/web/workspace-file-actions.spec.ts | 6 +- tests/web/workspace-file-host.test.ts | 98 ++- tests/web/workspace-file-organization.spec.ts | 478 +++++++++++++ tests/web/workspace-file-organization.test.ts | 563 +++++++++++++++ web/adapter/pi-adapter.ts | 3 + web/dist/app.js | 132 ++-- web/dist/styles.css | 2 +- web/host/artifacts.ts | 205 +++++- web/host/interactive-terminal.ts | 46 +- web/host/web-host.ts | 78 ++- web/protocol/artifacts.ts | 26 +- web/protocol/message-rerun.ts | 21 + web/protocol/types.ts | 9 + web/runtime/pi-runtime.ts | 55 +- web/runtime/types.ts | 3 + web/ui/src/app/App.tsx | 96 ++- web/ui/src/features/composer/Composer.tsx | 13 +- web/ui/src/features/files/FilesPanel.tsx | 655 +++++++++++++++++- web/ui/src/features/files/files.css | 13 +- web/ui/src/features/files/use-file-editor.ts | 32 + .../src/features/sessions/session-sidebar.css | 11 +- .../src/features/settings/SettingsPanels.tsx | 110 +-- .../features/settings/provider-settings.css | 24 + .../src/features/transcript/ToolEvidence.tsx | 3 + web/ui/src/features/transcript/Transcript.tsx | 163 ++++- .../features/transcript/message-branch.css | 23 + .../transcript/session-reading-state.ts | 56 +- .../transcript/use-session-history.ts | 1 + .../features/workbar/InteractiveTerminal.tsx | 62 +- web/ui/src/features/workbar/WorkbarPanel.tsx | 473 +++++++++---- .../workbar/workbar-position-storage.ts | 308 ++++++++ .../features/workbar/workbar-reading-state.ts | 8 + web/ui/src/features/workbar/workbar-tabs.ts | 17 +- web/ui/src/i18n.ts | 90 ++- web/ui/src/protocol/client.ts | 20 +- web/ui/src/store/web-store.ts | 93 ++- web/ui/src/styles.css | 2 - 60 files changed, 5359 insertions(+), 493 deletions(-) create mode 100644 tests/web/message-rerun.e2e.ts create mode 100644 tests/web/workbar-position-storage.spec.ts create mode 100644 tests/web/workspace-file-organization.spec.ts create mode 100644 tests/web/workspace-file-organization.test.ts create mode 100644 web/protocol/message-rerun.ts create mode 100644 web/ui/src/features/transcript/message-branch.css create mode 100644 web/ui/src/features/workbar/workbar-position-storage.ts diff --git a/README.md b/README.md index e3906e88..85537a7f 100644 --- a/README.md +++ b/README.md @@ -456,6 +456,8 @@ Web 模型配置先填写提供商连接,再选择“获取可用模型”。 Web 侧栏宽度默认 280px(220–420px),工具面板宽度默认 520px(360–720px)。拖动或键盘调整后保存到同一份配置,刷新后恢复;小窗口按当前视口临时限制显示宽度,不覆盖已保存值。也可用 `/openpi-setup` 修改 `ui.webSidebarWidth` 和 `ui.webAuxiliaryWidth`。 +Web 常规设置提供 Subagent、Bash 和 Write/Edit 的完整/紧凑显示控件,直接保存已有 `ui.subagentResultDisplay`、`ui.bashToolDisplay`、`ui.fileMutationDisplay`,并用于 Web 的结果与执行过程默认展开。Pi 终端页脚开关和样式保存已有 `ui.customFooter` / `ui.footerStyle`,仅影响 Pi 终端页脚。能力发现、工作流上限、下一步建议及编辑后命令的控件通过 `/openpi-setup` 修改,以实际写入回执为准。 + ```text diff --git a/SETUP.md b/SETUP.md index c49d89f9..edc13152 100644 --- a/SETUP.md +++ b/SETUP.md @@ -86,6 +86,8 @@ Capability discovery defaults to `explicit`, preserving the zero-resident OpenPI OpenPI Web appearance defaults to the `system` theme, 820px chat width, 14px chat font size, and collapsed thinking blocks. `light`, `dark`, `mist`, `rose`, and `pine` are explicit theme choices. The browser consumes every appearance value from each authoritative snapshot without writing a competing local preference. +Web General settings directly save the existing `ui.subagentResultDisplay`, `ui.bashToolDisplay`, and `ui.fileMutationDisplay` choices (`compact` by default, or `full`) through the shared appearance writer. They also control the Web result disclosures and their enclosing execution groups. Footer controls save `ui.customFooter` / `ui.footerStyle` for the Pi terminal footer. Discovery, workflow limits, suggestions, and post-edit controls submit natural-language requests through the canonical `/openpi-setup` episode; only a native configuration receipt confirms a change. + On Windows, OpenPI enables Pi's `clearOnShrink` compatibility behavior for the regular TUI so shrinking slash-command autocomplete lists do not leave stale rows on screen. Fullscreen TUI keeps its configured behavior. The diff --git a/THIRD_PARTY_NOTICES.md b/THIRD_PARTY_NOTICES.md index 59974b69..94681edb 100644 --- a/THIRD_PARTY_NOTICES.md +++ b/THIRD_PARTY_NOTICES.md @@ -44,6 +44,11 @@ The follow-up Git, file-preview and settings investigation also consulted `jmfederico/pi-web` revision `60a29acbfc710908e73b0df9857cb63b53b672d3` (MIT), and `apache/maka` revision `0dc1142aa90000e45627017e846b6d57d1e165e0` (Apache License 2.0). These are architectural references, not embedded packages. +The General settings follow-up consulted `agegr/pi-web` revision +`4a5081a3d9a993fa77553c62196cc0a2b48ed810` (MIT, Copyright (c) 2026 agegr) +for inline switches, sliders, and immediate-save interactions. OpenPI keeps +its existing canonical configuration fields and setup episode. + The screencast sizing approach was informed by Chromium DevTools' [`ScreencastView.ts`](https://github.com/ChromeDevTools/devtools-frontend/blob/main/front_end/panels/screencast/ScreencastView.ts) (BSD-3-Clause). OpenPI retains its own bounded transport and Session authority. diff --git a/extensions/setup/index.ts b/extensions/setup/index.ts index 9ede8061..69fa17ac 100644 --- a/extensions/setup/index.ts +++ b/extensions/setup/index.ts @@ -526,19 +526,19 @@ export default function openPiSetup(pi: ExtensionAPI) { subagent_result_display: Type.Optional( StringEnum(DETAIL_DISPLAYS, { description: - "How completed Subagent results render by default: full shows complete output; compact shows only bounded status rows while app.tools.expand reveals the full child report. Omit to preserve the current value.", + "How completed Subagent results render by default in Pi and Web: full shows complete output; compact shows bounded status rows, with disclosure controls revealing the report. Omit to preserve the current value.", }), ), bash_tool_display: Type.Optional( StringEnum(DETAIL_DISPLAYS, { description: - "How Bash commands and output render by default: compact shows one semantic activity row with running/success/failure state; app.tools.expand restores Pi's native command, output, error, timing, and full-output metadata. Full keeps Pi's native rendering expanded by default. Omit to preserve the current value.", + "How Bash commands and output render by default in Pi and Web: compact shows a semantic activity row with execution state; disclosure controls reveal command, output and evidence. Full expands the evidence and enclosing Web execution group by default. Omit to preserve the current value.", }), ), file_mutation_display: Type.Optional( StringEnum(DETAIL_DISPLAYS, { description: - "How Write/Edit content and diffs render by default: compact shows one semantic activity row with path, status, and line/diff counts; app.tools.expand restores Pi's native preview, output, error, and diff. Full keeps Pi's native rendering expanded by default. Omit to preserve the current value.", + "How Write/Edit content and diffs render by default in Pi and Web: compact shows path, status and change counts; disclosure controls reveal native preview, output, error and diff. Full expands the evidence and enclosing Web execution group by default. Omit to preserve the current value.", }), ), subagent_role_models: Type.Optional(SUBAGENT_ROLE_MODELS_SCHEMA), diff --git a/extensions/shared/setup-config.ts b/extensions/shared/setup-config.ts index 8f686731..af604484 100644 --- a/extensions/shared/setup-config.ts +++ b/extensions/shared/setup-config.ts @@ -63,6 +63,8 @@ export type FooterLines = readonly (readonly FooterLayoutItem[])[]; export const DETAIL_DISPLAYS = ["full", "compact"] as const; export type DetailDisplay = (typeof DETAIL_DISPLAYS)[number]; +export const isDetailDisplay = (value: unknown): value is DetailDisplay => + value === "full" || value === "compact"; export const WEB_THEMES = [ "light", @@ -260,7 +262,7 @@ const isFooterLayoutItem = (value: unknown): value is FooterLayoutItem => typeof value === "string" && FOOTER_LAYOUT_ITEMS.includes(value as FooterLayoutItem); -const isFooterStyle = (value: unknown): value is FooterStyle => +export const isFooterStyle = (value: unknown): value is FooterStyle => typeof value === "string" && FOOTER_STYLES.includes(value as FooterStyle); const isFooterPreset = (value: unknown): value is FooterPreset => @@ -1422,7 +1424,7 @@ export function formatSetupConfig(config = loadSetupConfig()) { ].join("\n"); } -export { isFooterItem, isFooterLayoutItem, isFooterPreset, isFooterStyle }; +export { isFooterItem, isFooterLayoutItem, isFooterPreset }; /** * Read-modify-write against the document as it is on disk right now, so a diff --git a/tests/web/app-render.spec.ts b/tests/web/app-render.spec.ts index f264d73d..b3816624 100644 --- a/tests/web/app-render.spec.ts +++ b/tests/web/app-render.spec.ts @@ -2097,15 +2097,20 @@ it("groups transcript turns with state and confirmed file change receipts", () = function renderEditableTranscript(onResend = vi.fn(async () => false)) { const snapshot = activeSnapshot(); + snapshot.runtime.status = "idle"; + snapshot.selectedSession!.entries = [ + projectEntry({ + type: "message", + id: "saved-edit", + parentId: null, + timestamp: "2026-10-02T00:00:00Z", + message: { role: "user", content: "Original message", timestamp: 1 }, + }), + ]; return renderWithI18n( createElement(Transcript, { snapshot, - liveMessages: [ - { - key: "user-edit", - message: { role: "user", content: "Original message" }, - }, - ], + liveMessages: [], liveRunning: false, livePhase: "idle", liveRetry: null, @@ -2113,6 +2118,8 @@ function renderEditableTranscript(onResend = vi.fn(async () => false)) { thinkingDurations: {}, scrollToBottom: 0, onResend, + onEdit: (_anchor, content) => onResend(content), + forkAvailable: true, }), ); } diff --git a/tests/web/artifact-evidence.e2e.ts b/tests/web/artifact-evidence.e2e.ts index 10f5018b..77e4051a 100644 --- a/tests/web/artifact-evidence.e2e.ts +++ b/tests/web/artifact-evidence.e2e.ts @@ -330,7 +330,10 @@ test("real file evidence, authenticated downloads, edits, refresh and failure st .getByRole("button", { name: /打开工具|Open tools/u, exact: true }) .click(); await workbar.locator(".workbar-add-tab").click(); - await page.getByRole("menuitem", { name: /^(?:变更|Changes)/u }).click(); + await workbar + .locator(".workbar-launcher") + .getByRole("button", { name: /^(?:变更|Changes)/u }) + .click(); const review = page.getByRole("complementary", { name: /变更|Changes/u, }); @@ -359,7 +362,10 @@ test("real file evidence, authenticated downloads, edits, refresh and failure st .getByRole("button", { name: /打开工具|Open tools/u, exact: true }) .click(); await workbar.locator(".workbar-add-tab").click(); - await page.getByRole("menuitem", { name: /^(?:变更|Changes)/u }).click(); + await workbar + .locator(".workbar-launcher") + .getByRole("button", { name: /^(?:变更|Changes)/u }) + .click(); const mobileReview = page.getByRole("complementary", { name: /变更|Changes/u, }); diff --git a/tests/web/document-reading-state.e2e.ts b/tests/web/document-reading-state.e2e.ts index 536e5c6e..ee84d36e 100644 --- a/tests/web/document-reading-state.e2e.ts +++ b/tests/web/document-reading-state.e2e.ts @@ -55,11 +55,17 @@ test("real document parsers preserve PDF page and zoom and the selected workshee }; const switchAwayAndBack = async () => { await workbar.locator(".workbar-add-tab").click(); - await page.getByRole("menuitem", { name: /^(浏览器|Browser)/u }).click(); + await workbar + .locator(".workbar-launcher") + .getByRole("button", { name: /^(浏览器|Browser)/u }) + .click(); await expect(workbar.locator('[data-tool="browser"]')).toBeVisible(); await expect(filesPanel).toBeHidden(); await workbar.locator(".workbar-add-tab").click(); - await page.getByRole("menuitem", { name: /^(文件|Files)/u }).click(); + await workbar + .locator(".workbar-launcher") + .getByRole("button", { name: /^(文件|Files)/u }) + .click(); await expect(filesPanel).toBeVisible(); await expect(workbar.locator(".workbar-tab")).toHaveCount(2); await expect( diff --git a/tests/web/interactive-terminal-recovery.spec.ts b/tests/web/interactive-terminal-recovery.spec.ts index 9b79811a..3160c045 100644 --- a/tests/web/interactive-terminal-recovery.spec.ts +++ b/tests/web/interactive-terminal-recovery.spec.ts @@ -235,6 +235,278 @@ function tree(sessionId = "a", cwd = "/workspace") { ); } +it("the plus opens the full launcher and each Terminal selection creates an independent tab", async () => { + const client = fixture(); + client.create + .mockResolvedValueOnce(terminalInfo()) + .mockResolvedValueOnce(terminalInfo("a", "terminal-b")); + const reading: WorkbarReadingState = {}; + const view = render( + createElement( + Providers, + null, + createElement(WorkbarPanel, { + visible: true, + requestedTool: "terminal", + requestRevision: 0, + sessionId: "a", + sessionPath: "/workspace/a.jsonl", + cwd: "/workspace", + capabilities: {}, + review: { + result: null, + loading: false, + error: null, + refresh: async () => {}, + }, + conversationCollapsed: false, + onRestoreConversation: () => {}, + onClose: () => {}, + readingState: reading, + }), + ), + ); + await waitFor(() => expect(client.stream).toHaveBeenCalledOnce()); + const first = terminals.instances[0]!; + act(() => + client.attempts[0]!.onEvent({ + type: "output", + data: "server stays running", + offset: 20, + }), + ); + fireEvent.click(screen.getByRole("button", { name: i18n.t("openTools") })); + const launcher = screen.getByRole("region", { name: i18n.t("openTools") }); + expect(within(launcher).getAllByRole("button")).toHaveLength(5); + expect(screen.queryByRole("menu")).toBeNull(); + expect(client.attempts[0]!.signal.aborted).toBe(false); + fireEvent.click( + within(launcher).getByRole("button", { + name: new RegExp(`^${i18n.t("terminal")}`), + }), + ); + await waitFor(() => expect(client.stream).toHaveBeenCalledTimes(2)); + expect(client.create.mock.calls[0]?.[4]).toBe("terminal:0"); + expect(client.create.mock.calls[1]?.[4]).toMatch(/^terminal:[a-f0-9-]+:0$/u); + expect(terminals.instances).toHaveLength(2); + const second = terminals.instances[1]!; + act(() => + client.attempts[1]!.onEvent({ + type: "output", + data: "test output", + offset: 11, + }), + ); + await act(async () => second.send("test\r")); + expect(client.write).toHaveBeenLastCalledWith("a", "terminal-b", "test\r"); + await act(async () => first.send("hidden-must-not-run\r")); + expect(client.write).toHaveBeenCalledOnce(); + const toolbar = screen.getByRole("toolbar", { name: i18n.t("openTools") }); + fireEvent.click( + within(toolbar).getByRole("button", { + name: i18n.t("terminal"), + }), + ); + await act(async () => first.send("server\r")); + expect(client.write).toHaveBeenLastCalledWith("a", "terminal-a", "server\r"); + expect(first.writes).toEqual(["server stays running"]); + expect(second.writes).toEqual(["test output"]); + expect(client.create).toHaveBeenCalledTimes(2); + expect(client.attempts.every((attempt) => !attempt.signal.aborted)).toBe( + true, + ); + const close = within(toolbar).getByRole("button", { + name: `${i18n.t("close")} ${i18n.t("terminal")}`, + }); + await waitFor(() => expect(close.hasAttribute("disabled")).toBe(false)); + close.focus(); + fireEvent.click(close); + await waitFor(() => + expect(client.close).toHaveBeenCalledExactlyOnceWith("a", "terminal-a"), + ); + await waitFor(() => + expect( + view.container.querySelectorAll('[data-tool="terminal"]'), + ).toHaveLength(1), + ); + expect(first.disposed).toBe(true); + expect(second.disposed).toBe(false); + expect(client.attempts[1]!.signal.aborted).toBe(false); + expect(client.create).toHaveBeenCalledTimes(2); + expect( + Object.values(reading.terminals ?? {}).map((terminal) => terminal.id), + ).toEqual(["terminal-b"]); +}); + +it("renames a terminal tab and retains its title while new output changes its viewport", async () => { + const client = fixture(); + const reading: WorkbarReadingState = {}; + render( + createElement( + Providers, + null, + createElement(WorkbarPanel, { + visible: true, + requestedTool: "terminal", + requestRevision: 0, + sessionId: "a", + sessionPath: "/workspace/a.jsonl", + cwd: "/workspace", + capabilities: {}, + review: { + result: null, + loading: false, + error: null, + refresh: async () => {}, + }, + conversationCollapsed: false, + onRestoreConversation: () => {}, + onClose: () => {}, + readingState: reading, + }), + ), + ); + await waitFor(() => expect(client.stream).toHaveBeenCalledOnce()); + const tab = within(screen.getByRole("toolbar")).getByRole("button", { + name: i18n.t("terminal"), + }); + fireEvent.doubleClick(tab); + const dialog = await screen.findByRole("dialog", { + name: i18n.t("renameTerminal"), + }); + fireEvent.change( + within(dialog).getByRole("textbox", { name: i18n.t("terminalName") }), + { target: { value: "Dev server" } }, + ); + fireEvent.click(within(dialog).getByRole("button", { name: i18n.t("save") })); + expect( + within(screen.getByRole("toolbar")).getByRole("button", { + name: "Dev server", + }), + ).toBeTruthy(); + act(() => terminals.instances[0]!.scroll(12)); + expect(reading.terminals?.terminal).toEqual({ + id: "terminal-a", + title: "Dev server", + viewport: 12, + atBottom: false, + }); + expect(client.create).toHaveBeenCalledOnce(); +}); + +it("failed terminal close keeps its tab and native ID available for an explicit retry", async () => { + const client = fixture(); + client.close.mockRejectedValueOnce(new Error("Close was not confirmed")); + render( + createElement( + Providers, + null, + createElement(WorkbarPanel, { + visible: true, + requestedTool: "terminal", + requestRevision: 0, + sessionId: "a", + sessionPath: "/workspace/a.jsonl", + cwd: "/workspace", + capabilities: {}, + review: { + result: null, + loading: false, + error: null, + refresh: async () => {}, + }, + conversationCollapsed: false, + onRestoreConversation: () => {}, + onClose: () => {}, + }), + ), + ); + await waitFor(() => expect(client.stream).toHaveBeenCalledOnce()); + const close = within(screen.getByRole("toolbar")).getByRole("button", { + name: `${i18n.t("close")} ${i18n.t("terminal")}`, + }); + await waitFor(() => expect(close.hasAttribute("disabled")).toBe(false)); + fireEvent.click(close); + await screen.findByRole("alert"); + expect(terminals.instances[0]!.disposed).toBe(false); + expect(client.attempts[0]!.signal.aborted).toBe(false); + expect(client.create).toHaveBeenCalledOnce(); + fireEvent.click(close); + await waitFor(() => expect(client.close).toHaveBeenCalledTimes(2)); + await waitFor(() => + expect( + screen.getByRole("region", { name: i18n.t("openTools") }), + ).toBeTruthy(), + ); + expect(client.close.mock.calls).toEqual([ + ["a", "terminal-a"], + ["a", "terminal-a"], + ]); + expect(terminals.instances[0]!.disposed).toBe(true); +}); + +it("restored terminal metadata in a viewed Session cannot start, attach or close native processes", async () => { + const client = fixture(); + const reading: WorkbarReadingState = { + tabs: { + tabs: ["terminal"], + active: "terminal", + launcherOpen: false, + activationHistory: ["terminal"], + }, + requestRevision: 0, + terminals: { + terminal: { + id: "native-from-earlier-session", + title: "Server", + viewport: 12, + atBottom: false, + }, + }, + }; + render( + createElement( + Providers, + null, + createElement(WorkbarPanel, { + visible: true, + requestedTool: "terminal", + requestRevision: 0, + sessionId: "viewed", + sessionPath: "/workspace/copied.jsonl", + cwd: "/workspace", + capabilities: {}, + canControl: false, + review: { + result: null, + loading: false, + error: null, + refresh: async () => {}, + }, + conversationCollapsed: false, + onRestoreConversation: () => {}, + onClose: () => {}, + readingState: reading, + }), + ), + ); + expect(screen.getByText(i18n.t("toolsRequireCurrentSession"))).toBeTruthy(); + expect(terminals.instances).toHaveLength(0); + const close = within(screen.getByRole("toolbar")).getByRole("button", { + name: `${i18n.t("close")} Server`, + }); + expect(close.hasAttribute("disabled")).toBe(false); + fireEvent.click(close); + await waitFor(() => + expect( + screen.getByRole("region", { name: i18n.t("openTools") }), + ).toBeTruthy(), + ); + expect(client.create).not.toHaveBeenCalled(); + expect(client.read).not.toHaveBeenCalled(); + expect(client.close).not.toHaveBeenCalled(); +}); + it.each([12, 50])( "detaches a terminal stream and reattaches its identity and viewport %s without restarting it", async (viewport) => { diff --git a/tests/web/interactive-terminal.test.ts b/tests/web/interactive-terminal.test.ts index 54a79499..2f8870ad 100644 --- a/tests/web/interactive-terminal.test.ts +++ b/tests/web/interactive-terminal.test.ts @@ -296,6 +296,103 @@ test("deduplicates concurrent creates and reserves capacity before loading the P manager.dispose(); }); +test("separate terminal tabs own independent PTYs, output and close lifecycle", async () => { + const ptys: FakePty[] = []; + const manager = new InteractiveTerminalManager({ + spawn: () => { + const pty = new FakePty(); + ptys.push(pty); + return pty; + }, + maxTerminals: 2, + }); + try { + const options = { sessionId: "a", cwd: ".", cols: 80, rows: 24 }; + const [first, second] = await Promise.all([ + manager.create({ ...options, createKey: "terminal:first" }), + manager.create({ ...options, createKey: "terminal:second" }), + ]); + assert.notEqual(first.id, second.id); + assert.equal(ptys.length, 2); + assert.equal( + (await manager.create({ ...options, createKey: "terminal:first" })).id, + first.id, + ); + await assert.rejects( + manager.create({ ...options, createKey: "terminal:third" }), + /capacity is full/u, + ); + const firstOutput: WebInteractiveTerminalEvent[] = []; + const secondOutput: WebInteractiveTerminalEvent[] = []; + manager.subscribe("a", first.id, (event) => firstOutput.push(event)); + manager.subscribe("a", second.id, (event) => secondOutput.push(event)); + manager.write("a", first.id, "serve\r"); + manager.write("a", second.id, "test\r"); + assert.deepEqual( + ptys.map((pty) => pty.writes), + [["serve\r"], ["test\r"]], + ); + ptys[0]!.emitData("server output"); + ptys[1]!.emitData("test output"); + assert.deepEqual( + firstOutput.map((event) => + event.type === "output" ? event.data : event.type, + ), + ["server output"], + ); + assert.deepEqual( + secondOutput.map((event) => + event.type === "output" ? event.data : event.type, + ), + ["test output"], + ); + assert.equal(manager.write("b", first.id, "cross-session\r"), false); + manager.close("a", first.id, true); + assert.equal(manager.get("a", first.id), undefined); + assert.equal(manager.get("a", second.id)?.exited, false); + assert.equal(ptys[1]!.kills.length, 0); + const replacement = await manager.create({ + ...options, + createKey: "terminal:third", + }); + assert.notEqual(replacement.id, second.id); + manager.retain("b", "."); + assert.equal(manager.get("a", second.id), undefined); + assert.equal(manager.get("a", replacement.id), undefined); + assert.equal(ptys[1]!.kills.length, 1); + } finally { + manager.dispose(); + } +}); + +test("concurrent retries deduplicate only the same terminal tab key", async () => { + const ptys: FakePty[] = []; + const manager = new InteractiveTerminalManager({ + spawn: () => { + const pty = new FakePty(); + ptys.push(pty); + return pty; + }, + maxTerminals: 1, + }); + try { + const options = { sessionId: "a", cwd: ".", cols: 80, rows: 24 }; + const first = manager.create({ ...options, createKey: "same-tab" }); + const retry = manager.create({ ...options, createKey: "same-tab" }); + const rejected = assert.rejects( + manager.create({ ...options, createKey: "another-tab" }), + /capacity is full/u, + ); + const [created, replay] = await Promise.all([first, retry]); + await rejected; + assert.equal(created.id, replay.id); + assert.equal(replay.reused, true); + assert.equal(ptys.length, 1); + } finally { + manager.dispose(); + } +}); + test("cancels pending creates when the retained Session changes or the manager disposes", async () => { const scenarios = ["retain", "dispose"] as const; for (const scenario of scenarios) { diff --git a/tests/web/message-rerun.e2e.ts b/tests/web/message-rerun.e2e.ts new file mode 100644 index 00000000..7f08508c --- /dev/null +++ b/tests/web/message-rerun.e2e.ts @@ -0,0 +1,220 @@ +import { expect, test } from "@playwright/test"; +import type { WebSnapshot } from "../../web/protocol/types.ts"; +import type { WebSessionForkRequest } from "../../web/runtime/types.ts"; + +test("older-message edit and successful regeneration use an exact new branch, retain attachments on rejection, and return to the original", async ({ + page, +}, testInfo) => { + const source = { + sessionId: "rerun-source", + sessionPath: "/mock/workspace/source.jsonl", + entryId: "older-question", + }; + const images = [ + { + mimeType: "image/png", + name: "original.png", + data: "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+/l1sAAAAASUVORK5CYII=", + }, + ]; + let child = false; + let rejected = true; + const forks: WebSessionForkRequest[] = []; + const prompts: Array<{ + sessionId: string; + sessionPath: string; + content: string; + images: typeof images; + }> = []; + let base: WebSnapshot | undefined; + const projection = () => + ({ + id: child ? `rerun-child-${forks.length}` : source.sessionId, + path: child + ? `/mock/workspace/child-${forks.length}.jsonl` + : source.sessionPath, + cwd: "/mock/workspace", + bytes: 10, + truncation: { + truncated: false, + entriesOmitted: 0, + messagesTruncated: 0, + messagePartsOmitted: 0, + maxBytes: 2_097_152, + }, + history: { + leafEntryId: child ? null : "later-question", + beforeEntryId: null, + }, + ...(child + ? { rerun: { source, mode: forks.at(-1)?.rerun?.mode ?? "edit" } } + : {}), + entries: child + ? [] + : [ + { + type: "message", + id: source.entryId, + timestamp: "2026-10-02T00:00:00Z", + message: { role: "user", content: "原来的第一条问题" }, + }, + { + type: "message", + id: "successful-answer", + timestamp: "2026-10-02T00:00:01Z", + message: { + role: "assistant", + stopReason: "stop", + content: "原回答,必须保留在原对话。", + }, + }, + { + type: "message", + id: "later-question", + timestamp: "2026-10-02T00:00:02Z", + message: { role: "user", content: "后来的第二条问题" }, + }, + ], + }) satisfies WebSnapshot["selectedSession"]; + await page.route("**/events?**", (route) => + route.fulfill({ contentType: "text/event-stream", body: ": idle\n\n" }), + ); + await page.route("**/api/snapshot**", async (route) => { + if (!base) base = (await (await route.fetch()).json()) as WebSnapshot; + const value = structuredClone(base); + const selected = projection(); + value.workspaces = [ + { path: selected.cwd, name: "Rerun fixture", current: true }, + ]; + value.sessions = [ + { + id: selected.id, + path: selected.path, + cwd: selected.cwd, + source: "web-session", + origin: "web", + controller: "web", + readOnly: false, + created: "2026-10-02T00:00:00Z", + modified: "2026-10-02T00:00:00Z", + messageCount: selected.entries.length, + firstMessage: "原来的第一条问题", + }, + ]; + value.currentSessionId = selected.id; + value.currentSessionPath = selected.path; + value.selectedSession = selected; + value.selectedExecution = undefined; + value.runtime = { status: "idle", capabilities: {} }; + await route.fulfill({ json: value }); + }); + await page.route("**/api/session/fork", async (route) => { + const request = route.request().postDataJSON() as WebSessionForkRequest; + forks.push(request); + child = true; + await route.fulfill({ + json: { + state: "forked", + commandId: request.commandId, + source, + sessionId: `rerun-child-${forks.length}`, + sessionPath: `/mock/workspace/child-${forks.length}.jsonl`, + prompt: { + content: + request.rerun?.mode === "edit" + ? `${request.rerun.content}\n\n[attached.txt]()` + : "原来的第一条问题", + images, + }, + }, + }); + }); + await page.route("**/api/prompt", async (route) => { + const body = route.request().postDataJSON(); + prompts.push(body); + await route.fulfill( + rejected + ? { + status: 422, + json: { code: "PROMPT_REJECTED", error: "确定拒绝,未启动模型" }, + } + : { status: 202, json: { id: body.commandId, accepted: true } }, + ); + }); + await page.route("**/api/sessions/select", async (route) => { + expect(route.request().postDataJSON().path).toBe(source.sessionPath); + child = false; + await route.fulfill({ + json: { + cancelled: false, + sessionId: source.sessionId, + path: source.sessionPath, + }, + }); + }); + await page.route("**/api/session/message-window**", (route) => + route.fulfill({ + json: { + session: { + ...projection(), + history: { + leafEntryId: "later-question", + beforeEntryId: null, + anchorEntryId: source.entryId, + anchorOnBranch: true, + }, + }, + }, + }), + ); + for (const width of [1440, 390]) { + child = false; + rejected = true; + await page.setViewportSize({ width, height: 1000 }); + await page.goto("/"); + const older = page.locator(`[data-history-entry="${source.entryId}"]`); + await older.hover(); + await older.getByRole("button", { name: "修改并从这里重跑" }).click(); + const editor = page.getByRole("textbox", { name: "修改并从这里重跑" }); + await editor.fill("修改后的第一条问题"); + await page.screenshot({ + path: testInfo.outputPath(`edit-from-here-${width}.png`), + }); + await page.getByRole("button", { name: "保存并重新运行" }).click(); + await expect(page.getByRole("textbox", { name: "描述任务" })).toHaveValue( + "修改后的第一条问题\n\n[attached.txt]()", + ); + await expect(page.locator(".composer-attachment")).toHaveCount(1); + expect(forks.at(-1)).toMatchObject({ + ...source, + rerun: { mode: "edit", content: "修改后的第一条问题" }, + }); + expect(prompts.at(-1)).toMatchObject({ + sessionId: `rerun-child-${forks.length}`, + sessionPath: `/mock/workspace/child-${forks.length}.jsonl`, + images, + }); + await page.getByRole("button", { name: "查看原对话" }).click(); + await expect(older).toBeVisible(); + await expect( + page.getByText("原回答,必须保留在原对话。", { exact: true }), + ).toBeVisible(); + rejected = false; + const answer = page.locator(".message-row.assistant.response"); + await answer.hover(); + await answer.getByRole("button", { name: "重新生成回答" }).click(); + await expect.poll(() => forks.at(-1)?.rerun?.mode).toBe("regenerate"); + await expect( + page.getByText("已在新分支接收重跑消息,原对话已保留。", { exact: true }), + ).toBeVisible(); + expect(prompts.at(-1)).toMatchObject({ + sessionId: `rerun-child-${forks.length}`, + sessionPath: `/mock/workspace/child-${forks.length}.jsonl`, + content: "原来的第一条问题", + images, + }); + await page.screenshot({ + path: testInfo.outputPath(`rerun-original-link-${width}.png`), + }); + } +}); diff --git a/tests/web/openpi-web.e2e.ts b/tests/web/openpi-web.e2e.ts index 670fe0a9..0efaa6b7 100644 --- a/tests/web/openpi-web.e2e.ts +++ b/tests/web/openpi-web.e2e.ts @@ -991,19 +991,108 @@ test("workbar exposes five tools and completes a side conversation lifecycle", a ).toEqual([]); }); -test("terminal tool runs a real workspace shell", async ({ page }) => { +test("terminal launcher creates independent real workspace shells and closes only the selected tab", async ({ + page, +}, testInfo) => { await page.setViewportSize({ width: 1440, height: 900 }); await openWorkbench(page); await openWorkbarTool(page, "终端"); - const terminal = page.locator(".interactive-terminal"); + const workbar = page.locator(".workbar-panel"); + const terminal = workbar.locator( + '[data-tab="terminal"] .interactive-terminal', + ); await expect(terminal.locator(".terminal-status-dot.ready")).toBeVisible(); const input = terminal.locator(".xterm-helper-textarea"); await input.focus(); - await page.keyboard.type("printf 'OPENPI_WEB_TERMINAL_OK\\n'"); + await page.keyboard.type( + "export OPENPI_TERMINAL_INSTANCE=first; printf 'OPENPI_WEB_TERMINAL_OK\\n'", + ); await page.keyboard.press("Enter"); await expect .poll(() => terminal.locator(".xterm-rows").textContent()) .toContain("OPENPI_WEB_TERMINAL_OK"); + await workbar.locator(".workbar-add-tab").click(); + const launcher = workbar.getByRole("region", { name: "打开工具" }); + await expect(launcher).toBeVisible(); + await expect(launcher.getByRole("button")).toHaveCount(5); + await expect(page.getByRole("menu")).toHaveCount(0); + await page.screenshot({ + path: testInfo.outputPath("multi-terminal-launcher.png"), + }); + await launcher.getByRole("button", { name: /^终端/u }).click(); + const second = workbar.locator( + '[data-tab^="terminal:"] .interactive-terminal', + ); + await expect(second.locator(".terminal-status-dot.ready")).toBeVisible(); + await expect(workbar.locator('[data-tool="terminal"]')).toHaveCount(2); + await second.locator(".xterm-helper-textarea").focus(); + await page.keyboard.type( + "printf 'SECOND_SHELL_%s\\n' \"${OPENPI_TERMINAL_INSTANCE-unset}\"", + ); + await page.keyboard.press("Enter"); + await expect + .poll(() => second.locator(".xterm-rows").textContent()) + .toContain("SECOND_SHELL_unset"); + const firstTab = workbar + .getByRole("toolbar") + .getByRole("button", { name: "终端", exact: true }); + await firstTab.click(); + await input.focus(); + await page.keyboard.type( + "printf 'FIRST_SHELL_%s\\n' \"$OPENPI_TERMINAL_INSTANCE\"", + ); + await page.keyboard.press("Enter"); + await expect + .poll(() => terminal.locator(".xterm-rows").textContent()) + .toContain("FIRST_SHELL_first"); + await firstTab.dblclick(); + const rename = page.getByRole("dialog", { name: "重命名终端" }); + await rename.getByRole("textbox", { name: "终端名称" }).fill("开发服务"); + await rename.getByRole("button", { name: "保存", exact: true }).click(); + await expect( + workbar + .getByRole("toolbar") + .getByRole("button", { name: "开发服务", exact: true }), + ).toBeVisible(); + await page.reload(); + await expect(workbar.locator('[data-tool="terminal"]')).toHaveCount(2); + await expect( + workbar + .getByRole("toolbar") + .getByRole("button", { name: "开发服务", exact: true }), + ).toBeVisible(); + await expect(terminal.locator(".terminal-status-dot.ready")).toBeVisible(); + await input.focus(); + await page.keyboard.type( + "printf 'RELOADED_FIRST_%s\\n' \"$OPENPI_TERMINAL_INSTANCE\"", + ); + await page.keyboard.press("Enter"); + await expect + .poll(() => terminal.locator(".xterm-rows").textContent()) + .toContain("RELOADED_FIRST_first"); + await page.screenshot({ + path: testInfo.outputPath("multi-terminal-refreshed.png"), + }); + await workbar + .getByRole("toolbar") + .getByRole("button", { name: "关闭 开发服务", exact: true }) + .click(); + await expect(workbar.locator('[data-tool="terminal"]')).toHaveCount(1); + await expect(second).toBeVisible(); + await expect( + workbar + .getByRole("toolbar") + .getByRole("button", { name: "终端 2", exact: true }), + ).toBeFocused(); + await second.locator(".xterm-helper-textarea").focus(); + await page.keyboard.type("printf 'SECOND_SURVIVED\\n'"); + await page.keyboard.press("Enter"); + await expect + .poll(() => second.locator(".xterm-rows").textContent()) + .toContain("SECOND_SURVIVED"); + await page.screenshot({ + path: testInfo.outputPath("multi-terminal-native.png"), + }); }); test("model configuration drafts survive switching settings tabs", async ({ @@ -1133,7 +1222,10 @@ test("native iframe browser supports input, selection, scrolling and independent await workbar .getByRole("button", { name: "打开工具", exact: true }) .click(); - await page.getByRole("menuitem", { name: /^文件/u }).click(); + await workbar + .locator(".workbar-launcher") + .getByRole("button", { name: /^文件/u }) + .click(); await expect(workbar.locator('div[data-tool="browser"]')).toHaveAttribute( "inert", "", diff --git a/tests/web/playwright.config.ts b/tests/web/playwright.config.ts index 3da0c9ef..3509b908 100644 --- a/tests/web/playwright.config.ts +++ b/tests/web/playwright.config.ts @@ -29,6 +29,7 @@ export default defineConfig({ "tests/web/settings-parity.e2e.ts", "tests/web/conversation-reading.e2e.ts", "tests/web/workbench-polish.e2e.ts", + "tests/web/message-rerun.e2e.ts", "tests/web/session-history.e2e.ts", "tests/web/turn-changes-history.e2e.ts", "tests/web/session-sources.e2e.ts", diff --git a/tests/web/provider-settings-page.spec.ts b/tests/web/provider-settings-page.spec.ts index 044adac6..7b756e2d 100644 --- a/tests/web/provider-settings-page.spec.ts +++ b/tests/web/provider-settings-page.spec.ts @@ -215,6 +215,7 @@ function settingsFetcher() { ...(patch.expandThinking !== undefined ? { webExpandThinking: patch.expandThinking } : {}), + ...Object.fromEntries(["subagentResultDisplay", "bashToolDisplay", "fileMutationDisplay", "customFooter", "footerStyle"].filter((key) => patch[key] !== undefined).map((key) => [key, patch[key]])), }); return reply({ saved: true, setup: payload.setup }); } @@ -462,6 +463,43 @@ it("restores sliders to persisted values when a direct save fails", async () => ); }); +it("saves every result display and footer control through presentation preferences, with failed saves preserving the canonical value", async () => { + const fetcher = settingsFetcher(); + vi.stubGlobal("fetch", fetcher); + const configure = vi.fn(async () => true); + renderSettings({ onConfigureOpenPi: configure }); + await screen.findByText(i18n.t("agentBehavior")); + for (const label of ["subagentResults", "bashOperations", "fileMutations"]) { + const select = screen.getByRole("combobox", { name: i18n.t(label) }); + fireEvent.change(select, { target: { value: "full" } }); + await waitFor(() => expect(select.value).toBe("full")); + await waitFor(() => expect(select.disabled).toBe(false)); + } + fireEvent.change(screen.getByRole("combobox", { name: i18n.t("terminalFooterStyle") }), { target: { value: "powerline-mono" } }); + await waitFor(() => expect(screen.getByRole("combobox", { name: i18n.t("terminalFooterStyle") }).value).toBe("powerline-mono")); + fireEvent.click(screen.getByRole("switch", { name: i18n.t("terminalFooter") })); + await waitFor(() => expect(screen.getByRole("combobox", { name: i18n.t("terminalFooterStyle") }).disabled).toBe(true)); + expect(configure).not.toHaveBeenCalled(); + expect(fetcher.mock.calls.filter(([input]) => String(input).includes("/api/settings/preferences"))).toHaveLength(5); + vi.stubGlobal("fetch", vi.fn(async () => new Response(JSON.stringify({ error: "read-only configuration" }), { status: 422 }))); + fireEvent.change(screen.getByRole("combobox", { name: i18n.t("bashOperations") }), { target: { value: "compact" } }); + await screen.findByText(i18n.t("settingsPreferencesSaveFailed")); + expect(screen.getByRole("combobox", { name: i18n.t("bashOperations") }).value).toBe("full"); +}); + +it("routes agent controls through canonical setup and waits for a save receipt", async () => { + const fetcher = settingsFetcher(); + vi.stubGlobal("fetch", fetcher); + const configure = vi.fn(async () => true); + renderSettings({ onConfigureOpenPi: configure }); + await screen.findByText(i18n.t("agentBehavior")); + const discovery = screen.getByRole("combobox", { name: i18n.t("capabilityDiscovery") }); + fireEvent.change(discovery, { target: { value: "adaptive" } }); + await waitFor(() => expect(configure).toHaveBeenCalledWith(i18n.t("setupRequestDiscovery", { mode: "adaptive" }))); + expect(discovery.value).toBe("explicit"); + expect(fetcher.mock.calls.some(([input]) => String(input).includes("/api/settings/preferences"))).toBe(false); +}); + it("explains unresolved message admission instead of asking the user to keep waiting", async () => { vi.stubGlobal("fetch", settingsFetcher()); renderSettings({ setupBlockedReason: i18n.t("setupResolveAdmission") }); diff --git a/tests/web/session-fork.spec.ts b/tests/web/session-fork.spec.ts index 811eba3d..738d7fe7 100644 --- a/tests/web/session-fork.spec.ts +++ b/tests/web/session-fork.spec.ts @@ -131,6 +131,279 @@ function mount() { return { client, store }; } +function rerunChild() { + const child = snapshot("child", "/project/child.jsonl"); + child.selectedSession!.entries = []; + child.selectedSession!.history = { leafEntryId: null, beforeEntryId: null }; + child.selectedSession!.rerun = { source: anchor, mode: "edit" }; + return child; +} + +it("edits an older saved question, confirms its native child, and sends the prepared full prompt through ordinary admission", async () => { + const { client, store } = mount(); + const parent = snapshot(); + parent.selectedSession!.entries.push( + projectEntry({ + type: "message", + id: "later", + parentId: "answer", + timestamp: "2026-10-02T00:00:00Z", + message: { role: "user", content: "Later question", timestamp: 3 }, + }), + ); + store.setState({ snapshot: parent }); + const images = [ + { + data: "iVBORw0KGgo=", + mimeType: "image/png" as const, + name: "original.png", + }, + ]; + const fork = vi + .spyOn(client, "forkSession") + .mockImplementation(async (request) => ({ + state: "forked", + commandId: request.commandId, + source: anchor, + sessionId: "child", + sessionPath: "/project/child.jsonl", + prompt: { + content: "Revised question with complete file references", + images, + }, + })); + vi.spyOn(client, "snapshot").mockResolvedValue(rerunChild()); + const prompt = vi + .spyOn(client, "prompt") + .mockImplementation(async (_id, _content, commandId) => ({ + id: commandId, + accepted: true, + })); + const edit = store.getState().actions.editMessage; + render( + createElement( + I18nextProvider, + { i18n }, + createElement(Transcript, { + snapshot: parent, + liveMessages: [], + liveRunning: false, + livePhase: "idle", + liveRetry: null, + thinkingStarts: {}, + thinkingDurations: {}, + scrollToBottom: 0, + onResend: store.getState().actions.sendPrompt, + onEdit: edit, + onRegenerate: store.getState().actions.regenerateMessage, + forkAvailable: true, + }), + ), + ); + expect( + screen.getAllByRole("button", { name: i18n.t("editMessage") }), + ).toHaveLength(2); + fireEvent.click( + screen.getAllByRole("button", { name: i18n.t("editMessage") })[0]!, + ); + fireEvent.change(screen.getByRole("textbox"), { + target: { value: "Revised question" }, + }); + fireEvent.click(screen.getByRole("button", { name: i18n.t("confirmEdit") })); + await waitFor(() => expect(prompt).toHaveBeenCalledOnce()); + expect(fork).toHaveBeenCalledWith( + expect.objectContaining({ + ...anchor, + rerun: { mode: "edit", content: "Revised question" }, + }), + ); + expect(prompt).toHaveBeenCalledWith( + "child", + "Revised question with complete file references", + expect.any(String), + "/project/child.jsonl", + false, + images, + ); + expect(store.getState().notice).toEqual({ + kind: "success", + message: i18n.t("messageRerunStarted"), + }); +}); + +it("regenerates a successful answer from its saved user prompt, while optimistic prompts and failed answers cannot offer rerun", async () => { + const parent = snapshot(); + const regenerate = vi.fn(async () => true); + const props = { + snapshot: parent, + liveMessages: [], + liveRunning: false, + livePhase: "idle" as const, + liveRetry: null, + thinkingStarts: {}, + thinkingDurations: {}, + scrollToBottom: 0, + onResend: async () => true, + onEdit: async () => true, + onRegenerate: regenerate, + forkAvailable: true, + }; + const view = render( + createElement(I18nextProvider, { i18n }, createElement(Transcript, props)), + ); + fireEvent.click( + screen.getByRole("button", { name: i18n.t("regenerateMessage") }), + ); + expect(regenerate).toHaveBeenCalledExactlyOnceWith(anchor); + parent.selectedSession!.entries = []; + view.rerender( + createElement( + I18nextProvider, + { i18n }, + createElement(Transcript, { + ...props, + snapshot: { ...parent }, + liveMessages: [ + { + key: "optimistic", + message: { role: "user", content: "Pending question" }, + optimistic: { + sessionId: anchor.sessionId, + sessionPath: anchor.sessionPath, + commandId: "pending", + afterEntryId: null, + admitted: false, + }, + }, + ], + }), + ), + ); + expect( + screen.queryByRole("button", { name: i18n.t("editMessage") }), + ).toBeNull(); + expect( + screen.queryByRole("button", { name: i18n.t("regenerateMessage") }), + ).toBeNull(); +}); + +it("returns to the exact source message through native branch provenance", async () => { + const open = vi.fn(async () => true); + render( + createElement( + I18nextProvider, + { i18n }, + createElement(Transcript, { + snapshot: rerunChild(), + liveMessages: [], + liveRunning: false, + livePhase: "idle", + liveRetry: null, + thinkingStarts: {}, + thinkingDurations: {}, + scrollToBottom: 0, + onResend: async () => true, + onOpenOriginal: open, + }), + ), + ); + fireEvent.click( + screen.getByRole("button", { name: i18n.t("openOriginalConversation") }), + ); + expect(open).toHaveBeenCalledExactlyOnceWith(anchor); + expect(screen.getByText(i18n.t("messageRerunWorkspaceHint"))).toBeTruthy(); +}); + +it("restores a rejected rerun's revised draft and original image in the new composer without describing rejection as uncertainty", async () => { + vi.spyOn(draftStorage, "createBrowserComposerDraftStorage").mockReturnValue({ + read: async () => [], + write: async () => undefined, + }); + const { client, store } = mount(); + const images = [ + { + data: "iVBORw0KGgo=", + mimeType: "image/png" as const, + name: "original.png", + }, + ]; + vi.spyOn(client, "forkSession").mockImplementation(async (request) => ({ + state: "forked", + commandId: request.commandId, + source: anchor, + sessionId: "child", + sessionPath: "/project/child.jsonl", + prompt: { content: "Keep this revised draft", images }, + })); + vi.spyOn(client, "snapshot").mockResolvedValue(rerunChild()); + vi.spyOn(client, "prompt").mockRejectedValue( + new WebApiError("Input hook rejected", 422, "PROMPT_REJECTED"), + ); + function NewComposer() { + const state = useStore(store); + return createElement( + I18nextProvider, + { i18n }, + createElement(Composer, { + snapshot: state.snapshot, + selectedPath: state.selectedPath, + selectedWorkspace: state.selectedWorkspace, + sessionSwitching: state.sessionSwitching, + promptAdmissionPending: state.promptAdmissionPending, + promptAdmissionRecovery: state.promptAdmissionRecovery, + restoredPromptDraft: state.restoredPromptDraft, + thinkingPendingLevel: null, + liveRunning: state.liveRunning, + landing: false, + activeTurn: null, + turnCancellationPending: false, + turnTerminalStatus: null, + pendingFollowUpsReceipt: null, + actions: state.actions, + }), + ); + } + render(createElement(NewComposer)); + expect( + await store + .getState() + .actions.editMessage(anchor, "Keep this revised draft"), + ).toBe(false); + await waitFor(() => + expect( + screen.getByRole("textbox", { + name: i18n.t("describeTask"), + }).value, + ).toBe("Keep this revised draft"), + ); + expect(screen.getByText("original.png")).toBeTruthy(); + expect(store.getState().promptAdmissionRecovery).toBeNull(); + expect(screen.queryByText(i18n.t("promptAdmissionUnknown"))).toBeNull(); +}); + +it("does not send prepared rerun content when the confirmed child has lost runtime authority", async () => { + const { client, store } = mount(); + vi.spyOn(client, "forkSession").mockImplementation(async (request) => ({ + state: "forked", + commandId: request.commandId, + source: anchor, + sessionId: "child", + sessionPath: "/project/child.jsonl", + prompt: { content: "Never send to another Session", images: [] }, + })); + vi.spyOn(client, "snapshot").mockResolvedValue({ + ...rerunChild(), + currentSessionId: "other", + currentSessionPath: "/project/other.jsonl", + }); + const prompt = vi.spyOn(client, "prompt"); + expect(await store.getState().actions.editMessage(anchor, "Revision")).toBe( + false, + ); + expect(prompt).not.toHaveBeenCalled(); + expect(store.getState().notice).toBe(i18n.t("forkSessionUncertain")); +}); + it("forks the exact message into a new empty composer, preserves the original draft, and sends no prompt", async () => { vi.spyOn(draftStorage, "createBrowserComposerDraftStorage").mockReturnValue({ read: async () => [], diff --git a/tests/web/session-fork.test.ts b/tests/web/session-fork.test.ts index 0be9f54f..873839fb 100644 --- a/tests/web/session-fork.test.ts +++ b/tests/web/session-fork.test.ts @@ -16,6 +16,8 @@ import { WebRuntimeRequestError, type WebSessionForkResult, } from "../../web/runtime/types.ts"; +import { readMessageRerun } from "../../web/protocol/message-rerun.ts"; +import { formatSourceReference } from "../../web/protocol/session-sources.ts"; function deferred() { let resolve!: () => void; @@ -143,6 +145,153 @@ function unavailable(error: unknown) { return error instanceof WebRuntimeRequestError && error.statusCode === 409; } +test("editing an older native prompt excludes it and later messages, preserves complete images and file references, and leaves the source unchanged", async (t) => { + const { root, runtime, request } = await fixture(t); + const manager = runtime.sessionManager; + const reference = formatSourceReference(join(root, "attached file.txt")); + const image = { + type: "image" as const, + mimeType: "image/png", + data: "iVBORw0KGgo=", + name: "original.png", + }; + const entryId = manager.appendMessage({ + role: "user", + content: [ + { type: "text", text: `Original full question\n\n${reference}` }, + image, + ], + timestamp: 4, + }); + const answer = manager + .getBranch() + .find( + (entry) => entry.type === "message" && entry.message.role === "assistant", + ); + assert.ok(answer?.type === "message"); + manager.appendMessage(answer.message); + const later = manager.appendMessage({ + role: "user", + content: "Must not enter the edited branch", + timestamp: 5, + }); + const original = await readFile(request.sessionPath, "utf8"); + const edit = { + ...request, + entryId, + rerun: { mode: "edit" as const, content: "Revised full question" }, + }; + const result = await runtime.forkSession(edit); + assert.equal(result.state, "forked"); + assert.deepEqual(result.prompt, { + content: `Revised full question\n\n${reference}`, + images: [{ mimeType: "image/png", data: image.data, name: image.name }], + }); + assert.equal( + runtime.sessionManager + .getBranch() + .some((entry) => entry.id === entryId || entry.id === later), + false, + ); + assert.equal( + runtime.sessionManager.getHeader()?.parentSession, + request.sessionPath, + ); + assert.deepEqual( + readMessageRerun( + runtime.sessionManager.getBranch(), + runtime.sessionManager.getHeader()?.parentSession, + ), + { + source: { + sessionId: request.sessionId, + sessionPath: request.sessionPath, + entryId, + }, + mode: "edit", + }, + ); + assert.equal(await readFile(request.sessionPath, "utf8"), original); + assert.equal(runtime.isIdle(), true); + assert.deepEqual(await runtime.forkSession(edit), { + ...result, + replayed: true, + }); + await assert.rejects( + runtime.forkSession({ + ...edit, + rerun: { mode: "edit", content: "Different revision" }, + }), + unavailable, + ); +}); + +test("regeneration uses the complete original user text and never retains its previous answer", async (t) => { + const { runtime, request } = await fixture(t); + const manager = runtime.sessionManager; + const originalPrompt = manager + .getBranch() + .find((entry) => entry.type === "message" && entry.message.role === "user"); + assert.ok(originalPrompt); + const original = await readFile(request.sessionPath, "utf8"); + const result = await runtime.forkSession({ + ...request, + entryId: originalPrompt.id, + rerun: { mode: "regenerate" }, + }); + assert.equal(result.state, "forked"); + assert.deepEqual(result.prompt, { content: "Original question", images: [] }); + assert.equal( + runtime.sessionManager + .getBranch() + .some((entry) => entry.type === "message"), + false, + ); + assert.equal(runtime.getThinkingState()?.level, "high"); + assert.equal(await readFile(request.sessionPath, "utf8"), original); +}); + +test("rerun validates the complete source and retained references before creating a branch", async (t) => { + const { root, runtime, request, hooks } = await fixture(t); + await assert.rejects( + runtime.forkSession({ ...request, rerun: { mode: "regenerate" } }), + unavailable, + ); + const entryId = runtime.sessionManager.appendMessage({ + role: "user", + content: formatSourceReference(join(root, "required.txt")), + timestamp: 4, + }); + await assert.rejects( + runtime.forkSession({ + ...request, + commandId: "too-long-edit", + entryId, + rerun: { mode: "edit", content: "x".repeat(12_000) }, + }), + unavailable, + ); + const invalidImage = runtime.sessionManager.appendMessage({ + role: "user", + content: [{ type: "image", data: "not-base64", mimeType: "image/png" }], + timestamp: 5, + }); + await assert.rejects( + runtime.forkSession({ + ...request, + commandId: "invalid-image", + entryId: invalidImage, + rerun: { mode: "regenerate" }, + }), + unavailable, + ); + assert.equal(runtime.sessionManager.getSessionId(), request.sessionId); + assert.equal( + hooks.events.some((event) => event.type === "session_before_fork"), + false, + ); +}); + test("native fork retains source history, lineage, model and thinking without a model turn, and replays once", async (t) => { const { runtime, request, hooks } = await fixture(t); const original = await readFile(request.sessionPath, "utf8"); diff --git a/tests/web/settings-parity.e2e.ts b/tests/web/settings-parity.e2e.ts index d627b5c0..b0c52e26 100644 --- a/tests/web/settings-parity.e2e.ts +++ b/tests/web/settings-parity.e2e.ts @@ -6,6 +6,47 @@ import { MOCK_SESSION_ID, } from "./thinking-e2e-support.ts"; +test("General result and footer controls save, restore after reload, and preserve values on rejection", async ({ page }, testInfo) => { + await installThinkingFixture(page); + const setup = projectWebSetupConfig(DEFAULT_SETUP_CONFIG); + const resources = { skills: [], plugins: [], totals: { extensions: 0, skills: 0, prompts: 0, themes: 0 }, diagnostics: { extensionErrors: 0, skillErrors: 0 }, truncation: { truncated: false, skillsOmitted: 0, pluginsOmitted: 0, resourcesOmitted: 0 } }; + await page.route("**/api/settings/catalog?**", (route) => route.fulfill({ json: { sessionId: MOCK_SESSION_ID, setup, resources } })); + let reject = false; + const patches: unknown[] = []; + await page.route("**/api/settings/preferences", async (route) => { + const patch = route.request().postDataJSON(); + patches.push(patch); + if (reject) return route.fulfill({ status: 422, json: { error: "configuration is read-only" } }); + Object.assign(setup.ui, patch); + return route.fulfill({ json: { saved: true, setup } }); + }); + await page.setViewportSize({ width: 1440, height: 900 }); + await page.goto("/"); + await page.getByRole("button", { name: "设置", exact: true }).click(); + const dialog = page.getByRole("dialog", { name: "设置", exact: true }); + for (const label of ["子代理结果", "Bash 操作", "Write / Edit 操作"]) { + const control = dialog.getByRole("combobox", { name: label, exact: true }); + await control.selectOption("full"); + await expect(control).toBeEnabled(); + await expect(control).toHaveValue("full"); + } + await dialog.getByRole("combobox", { name: "终端页脚样式", exact: true }).selectOption("powerline-mono"); + await expect(dialog.getByRole("combobox", { name: "终端页脚样式", exact: true })).toBeEnabled(); + await dialog.getByRole("switch", { name: "Pi 终端页脚", exact: true }).click(); + await expect(dialog.getByRole("combobox", { name: "终端页脚样式", exact: true })).toBeDisabled(); + await dialog.locator(".settings-general-panel").screenshot({ path: testInfo.outputPath("settings-editable-desktop.png") }); + await page.reload(); + await page.getByRole("button", { name: "设置", exact: true }).click(); + await expect(dialog.getByRole("combobox", { name: "Bash 操作", exact: true })).toHaveValue("full"); + reject = true; + await dialog.getByRole("combobox", { name: "Bash 操作", exact: true }).selectOption("compact"); + await expect(dialog.getByText("无法保存显示设置,请检查配置诊断后重试。", { exact: true })).toBeVisible(); + await expect(dialog.getByRole("combobox", { name: "Bash 操作", exact: true })).toHaveValue("full"); + expect(patches).toEqual([{ subagentResultDisplay: "full" }, { bashToolDisplay: "full" }, { fileMutationDisplay: "full" }, { footerStyle: "powerline-mono" }, { customFooter: false }, { bashToolDisplay: "compact" }]); + await page.setViewportSize({ width: 390, height: 844 }); + await dialog.locator(".settings-general-panel").screenshot({ path: testInfo.outputPath("settings-editable-mobile.png") }); +}); + test("model provider cards preserve drafts, stage discovery and keep the existing settings shell", async ({ page, }, testInfo) => { diff --git a/tests/web/transcript-evidence-state.spec.ts b/tests/web/transcript-evidence-state.spec.ts index 9a2ce890..6d17fb67 100644 --- a/tests/web/transcript-evidence-state.spec.ts +++ b/tests/web/transcript-evidence-state.spec.ts @@ -131,6 +131,33 @@ function view(value: WebSnapshot, activityObserved = true) { afterEach(cleanup); +it("expands Bash and file evidence from canonical display preferences without changing results or their state", () => { + for (const [name, preference] of [["bash", "bashToolDisplay"], ["write", "fileMutationDisplay"], ["edit", "fileMutationDisplay"]] as const) { + const value: WebSnapshot = snapshot({ tool: { ...call, name }, results: [{ role: "toolResult", toolName: name, toolCallId: call.id, content: "canonical output", isError: false }] }); + const original = JSON.stringify(value.selectedSession?.entries); + const { container, rerender, unmount } = render(view(value)); + const originalState = container.querySelector(".tool-evidence-card")?.getAttribute("data-state"); + expect(container.querySelector(".tool-evidence-card")?.open).toBe(false); + rerender(view({ ...value, preferences: { ...value.preferences, [preference]: "full" } })); + expect(container.querySelector(".tool-evidence-card")?.open).toBe(true); + expect(container.querySelector(".process-sequence")?.open).toBe(true); + expect(container.querySelector(".tool-evidence-card")?.getAttribute("data-state")).toBe(originalState); + expect(JSON.stringify(value.selectedSession?.entries)).toBe(original); + unmount(); + } +}); + +it("uses the full subagent result only when requested while preserving the exact terminal state", () => { + const value: WebSnapshot = snapshot(); + value.selectedSession!.entries.push({ id: "child-result", type: "message", timestamp: "2026-10-02T00:00:00Z", message: { role: "custom", customType: "subagent-result", content: "complete child report", details: { displayContent: "bounded summary", results: [{ id: "child", status: "done" }] } } }); + const { container, rerender } = render(view(value)); + expect(container.textContent).toContain("bounded summary"); + expect(container.textContent).not.toContain("complete child report"); + rerender(view({ ...value, preferences: { ...value.preferences, subagentResultDisplay: "full" } })); + expect(container.querySelector(".activity-card.subagent")?.open).toBe(true); + expect(container.textContent).toContain("complete child report"); +}); + it("shows one compaction status before an agent turn, freezes on disconnect, and restores persisted completion", () => { const value: WebSnapshot = snapshot(); value.selectedExecution = { diff --git a/tests/web/web-host.test.ts b/tests/web/web-host.test.ts index ab230d9d..9777fae3 100644 --- a/tests/web/web-host.test.ts +++ b/tests/web/web-host.test.ts @@ -105,6 +105,11 @@ test("appearance writes preserve package config, reject extra authority, and nev { chatFontSize: 12.5 }, { expandThinking: "true" }, { pinnedSort: "unknown" }, + { subagentResultDisplay: "unknown" }, + { bashToolDisplay: true }, + { fileMutationDisplay: null }, + { customFooter: "false" }, + { footerStyle: "compact" }, ]) { assert.equal((await post(body)).status, 400); } @@ -116,6 +121,11 @@ test("appearance writes preserve package config, reject extra authority, and nev chatFontSize: 16, expandThinking: true, pinnedSort: "updated", + subagentResultDisplay: "full", + bashToolDisplay: "full", + fileMutationDisplay: "full", + customFooter: false, + footerStyle: "powerline-mono", }); assert.equal(saved.status, 200); assert.equal((await saved.json()).setup.ui.webChatWidth, 1040); @@ -131,6 +141,11 @@ test("appearance writes preserve package config, reject extra authority, and nev webChatFontSize: 16, webExpandThinking: true, webPinnedSort: "updated", + subagentResultDisplay: "full", + bashToolDisplay: "full", + fileMutationDisplay: "full", + customFooter: false, + footerStyle: "powerline-mono", }, }); // Concurrent partial edits share the existing lock and preserve one another. @@ -2542,7 +2557,13 @@ test("exposes an active-Session interactive terminal", async () => { }; const interactiveTerminals: InteractiveTerminalService = { async create(options) { - assert.deepEqual(options, { sessionId, cwd, cols: 80, rows: 24 }); + assert.deepEqual(options, { + sessionId, + cwd, + cols: 80, + rows: 24, + ...(options.createKey ? { createKey: "terminal:second:0" } : {}), + }); return { ...terminal, reused: false }; }, get(owner, id) { @@ -2598,6 +2619,25 @@ test("exposes an active-Session interactive terminal", async () => { }); assert.equal(created.status, 201); assert.equal((await created.json()).id, terminal.id); + const independent = await fetch(`${launched.origin}/api/terminal`, { + method: "POST", + headers: jsonHeaders, + body: JSON.stringify({ + sessionId, + cols: 80, + rows: 24, + createKey: "terminal:second:0", + }), + }); + assert.equal(independent.status, 201); + for (const createKey of ["x".repeat(161), "bad\nkey", 1, null]) { + const invalid = await fetch(`${launched.origin}/api/terminal`, { + method: "POST", + headers: jsonHeaders, + body: JSON.stringify({ sessionId, cols: 80, rows: 24, createKey }), + }); + assert.equal(invalid.status, 400); + } assert.equal( ( await fetch( @@ -3345,6 +3385,10 @@ test("fork endpoint authenticates an exact Web-owned source and rejects extra au { ...request, commandId: "" }, { ...request, entryId: "x".repeat(129) }, { ...request, sessionId: "control\u0000id" }, + { ...request, rerun: { mode: "edit", content: "" } }, + { ...request, rerun: { mode: "edit", content: "x".repeat(12_001) } }, + { ...request, rerun: { mode: "edit", content: "Changed", images: [] } }, + { ...request, rerun: { mode: "regenerate", content: "Injected" } }, ]) assert.equal((await post(invalid)).status, 400); assert.equal( @@ -3361,6 +3405,20 @@ test("fork endpoint authenticates an exact Web-owned source and rejects extra au assert.equal(response.status, 200); assert.equal((await response.json()).state, "cancelled"); assert.deepEqual(calls, [request]); + const edit = { + ...request, + commandId: "edit-command", + rerun: { mode: "edit", content: "Changed question" }, + }; + assert.equal((await post(edit)).status, 200); + assert.deepEqual(calls.at(-1), edit); + const regenerate = { + ...request, + commandId: "regenerate-command", + rerun: { mode: "regenerate" }, + }; + assert.equal((await post(regenerate)).status, 200); + assert.deepEqual(calls.at(-1), regenerate); delete runtime.forkSession; assert.equal((await post(request)).status, 501); } finally { diff --git a/tests/web/workbar-menu.spec.ts b/tests/web/workbar-menu.spec.ts index 8cb7d066..05fd2238 100644 --- a/tests/web/workbar-menu.spec.ts +++ b/tests/web/workbar-menu.spec.ts @@ -63,9 +63,10 @@ function tab(name: string) { async function menuItem(name: string) { fireEvent.click(screen.getByRole("button", { name: i18n.t("openTools") })); - const menu = await screen.findByRole("menu"); - await waitFor(() => expect(menu.contains(document.activeElement)).toBe(true)); - return within(menu).getByRole("menuitem", { + const launcher = await screen.findByRole("region", { + name: i18n.t("openTools"), + }); + return within(launcher).getByRole("button", { name: new RegExp(`^${name}`), }); } @@ -184,7 +185,7 @@ it.each(["hidden", "scope", "unmount", "outside focus"])( }, ); -it("reactivates an already opened inactive tool from the checked menu row without replacing its iframe", async () => { +it("reactivates an already opened inactive tool from the full launcher without replacing its iframe", async () => { const view = render(panel()); navigate(); const frame = view.container.querySelector("iframe"); @@ -192,7 +193,7 @@ it("reactivates an already opened inactive tool from the checked menu row withou view.rerender(panel("files", 1)); const row = await menuItem(i18n.t("browser")); expect(row.getAttribute("aria-disabled")).not.toBe("true"); - expect(row.querySelector(".lucide-check")).not.toBeNull(); + expect(row.querySelector(".lucide-chevron-right")).not.toBeNull(); fireEvent.click(row); await waitFor(() => expect(screen.queryByRole("menu")).toBeNull()); @@ -205,7 +206,7 @@ it("reactivates an already opened inactive tool from the checked menu row withou await waitFor(() => expect(document.activeElement).toBe(browserTab)); }); -it("lets the currently active checked tool close the menu and focus its existing tab repeatedly", async () => { +it("lets the currently active tool dismiss the launcher and focus its existing tab repeatedly", async () => { const view = render(panel()); navigate(); const frame = view.container.querySelector("iframe"); @@ -213,11 +214,7 @@ it("lets the currently active checked tool close the menu and focus its existing for (let attempt = 0; attempt < 2; attempt++) { const row = await menuItem(i18n.t("browser")); expect(row.getAttribute("aria-disabled")).not.toBe("true"); - if (attempt === 0) fireEvent.click(row); - else { - row.focus(); - fireEvent.keyDown(row, { key: " " }); - } + fireEvent.click(row); await waitFor(() => expect(screen.queryByRole("menu")).toBeNull()); expect(browserTab.getAttribute("aria-pressed")).toBe("true"); expect(view.container.querySelector("iframe")).toBe(frame); @@ -228,12 +225,12 @@ it("lets the currently active checked tool close the menu and focus its existing ); }); -it("activates a newly opened tool with Enter and focuses the newly committed tab", async () => { +it("activates a newly opened tool and focuses the newly committed tab", async () => { render(panel()); const row = await menuItem(i18n.t("files")); expect(row.querySelector(".lucide-check")).toBeNull(); row.focus(); - fireEvent.keyDown(row, { key: "Enter" }); + fireEvent.click(row); await waitFor(() => expect(screen.queryByRole("menu")).toBeNull()); const filesTab = tab(i18n.t("files")); expect(filesTab.getAttribute("aria-pressed")).toBe("true"); @@ -250,7 +247,7 @@ it("focuses the selected Review tab after its panel's initial reading focus", as await waitFor(() => expect(document.activeElement).toBe(reviewTab)); }); -it("keeps Escape dismissal on the menu trigger without activating another tool", async () => { +it("dismisses the full launcher with Escape and focuses the previously active tool", async () => { render(panel()); const row = await menuItem(i18n.t("files")); row.focus(); @@ -258,8 +255,8 @@ it("keeps Escape dismissal on the menu trigger without activating another tool", await waitFor(() => expect(screen.queryByRole("menu")).toBeNull()); expect(tab(i18n.t("browser")).getAttribute("aria-pressed")).toBe("true"); expect(screen.queryByText("Fixture files")).toBeNull(); - expect(document.activeElement).toBe( - screen.getByRole("button", { name: i18n.t("openTools") }), + await waitFor(() => + expect(document.activeElement).toBe(tab(i18n.t("browser"))), ); }); diff --git a/tests/web/workbar-position-storage.spec.ts b/tests/web/workbar-position-storage.spec.ts new file mode 100644 index 00000000..93bc971b --- /dev/null +++ b/tests/web/workbar-position-storage.spec.ts @@ -0,0 +1,316 @@ +// @vitest-environment jsdom + +import { afterEach, expect, it, vi } from "vitest"; +import { + loadWorkbarPositions, + saveWorkbarPositions, + WORKBAR_POSITION_STORAGE_KEY, + type WorkbarWorkspace, +} from "../../web/ui/src/features/workbar/workbar-position-storage.ts"; + +afterEach(() => { + localStorage.clear(); + vi.restoreAllMocks(); +}); + +function position( + sessionId = "session-a", + sessionPath = "/workspace/a.jsonl", +): WorkbarWorkspace { + return { + sessionId, + sessionPath, + tool: "terminal", + requestRevision: 3, + open: true, + reading: { + tabs: { + tabs: ["files", "terminal", "terminal:second", "browser", "review"], + active: "terminal:second", + launcherOpen: false, + activationHistory: ["files", "terminal", "terminal:second"], + }, + requestRevision: 3, + files: { + selected: "report.pdf", + treeVisible: true, + query: "report", + expanded: ["docs"], + treeScroll: 140, + }, + artifact: { + reference: "report.pdf", + source: false, + editing: true, + scroll: 900, + document: { + path: "report.pdf", + revision: "a".repeat(64), + page: 12, + scale: 1.5, + }, + }, + review: { + scope: "workspace:unstaged", + source: "unstaged", + selected: "src/file.ts", + query: "src", + collapsedDirectories: [], + visibleFiles: 50, + listScroll: 240, + previewScroll: 570, + viewed: { revision: "b".repeat(64), paths: ["src/file.ts"] }, + }, + terminals: { + terminal: { + id: "native-a", + title: "Dev server", + viewport: 15, + atBottom: false, + }, + "terminal:second": { + id: "native-b", + title: "Tests", + viewport: 0, + atBottom: true, + }, + }, + browser: { + tabs: [ + { + id: 0, + title: "Documentation", + initialUrl: "https://example.com/docs", + }, + ], + selected: 0, + pages: { + 0: { + draft: "https://example.com/guide", + history: ["https://example.com/docs", "https://example.com/guide"], + index: 1, + }, + }, + }, + sideConversation: { + selectedId: "btw-a", + drafts: { "btw-a": "PRIVATE SIDE DRAFT" }, + }, + }, + reviewTurn: { + promptEntryId: "turn-a", + filePath: "src/file.ts", + revision: 2, + }, + }; +} + +it("persists exact Session identities and tool bookmarks, not content or live resources", () => { + const workspace = position(); + const withPayload = { + ...workspace, + transcript: "PRIVATE SESSION HISTORY", + model: { apiKey: "PRIVATE PROVIDER KEY" }, + reading: { + ...workspace.reading, + artifact: { + ...workspace.reading.artifact!, + body: "PRIVATE FILE CONTENT", + editDraft: "PRIVATE EDIT DRAFT", + }, + browser: { + ...workspace.reading.browser!, + dom: "PRIVATE IFRAME DOM", + cookies: "PRIVATE COOKIE", + }, + terminals: { + ...workspace.reading.terminals, + terminal: { + ...workspace.reading.terminals!.terminal!, + handle: "PRIVATE PROCESS HANDLE", + input: "PRIVATE INPUT", + output: "PRIVATE TERMINAL OUTPUT", + }, + }, + }, + }; + saveWorkbarPositions([withPayload]); + const raw = localStorage.getItem(WORKBAR_POSITION_STORAGE_KEY)!; + expect(raw).not.toContain("PRIVATE"); + const [restored] = loadWorkbarPositions(); + expect(restored?.sessionId).toBe(workspace.sessionId); + expect(restored?.sessionPath).toBe(workspace.sessionPath); + expect(restored?.reading.files).toEqual(workspace.reading.files); + expect(restored?.reading.artifact).toEqual({ + ...workspace.reading.artifact, + editing: false, + }); + expect(restored?.reading.review).toEqual(workspace.reading.review); + expect(restored?.reading.terminals).toEqual(workspace.reading.terminals); + expect(restored?.reading.browser).toEqual(workspace.reading.browser); + expect(restored?.reading.sideConversation).toEqual({ + selectedId: "btw-a", + drafts: {}, + }); + expect(restored?.reviewTurn).toEqual(workspace.reviewTurn); +}); + +it("keeps copied same-ID Session paths distinct and uses the final exact-identity bookmark", () => { + const original = position(); + const copied = position(original.sessionId, "/workspace/copied.jsonl"); + const newest = { ...original, requestRevision: 9 }; + localStorage.setItem( + WORKBAR_POSITION_STORAGE_KEY, + JSON.stringify([original, copied, newest]), + ); + const restored = loadWorkbarPositions(); + expect(restored).toHaveLength(2); + expect( + restored.find((item) => item.sessionPath === original.sessionPath) + ?.requestRevision, + ).toBe(9); + expect( + restored.find((item) => item.sessionPath === copied.sessionPath) + ?.requestRevision, + ).toBe(3); +}); + +it("sanitizes malformed tabs, URLs, viewport values and revisions without restoring authority", () => { + const workspace = position(); + localStorage.setItem( + WORKBAR_POSITION_STORAGE_KEY, + JSON.stringify([ + { + ...workspace, + reading: { + tabs: { + tabs: [ + "terminal", + "terminal", + "terminal:second", + "launcher", + "unknown", + ], + active: "unknown", + activationHistory: ["terminal", "terminal", "unknown"], + launcherOpen: false, + }, + terminals: { + terminal: { id: "native-a", viewport: -10, atBottom: true }, + "terminal:second": { + id: "native-b", + title: "x".repeat(81), + viewport: 1e15, + }, + "terminal:closed": { id: "must-not-restore" }, + browser: { id: "wrong-kind" }, + }, + browser: { + tabs: [ + { id: 0, title: "Same app", initialUrl: window.location.href }, + { id: 0, title: "Duplicate" }, + { id: -1 }, + { + id: 1, + title: "Credentials", + initialUrl: "https://user:secret@example.com", + }, + ], + selected: 9, + pages: { + 0: { + draft: "javascript:alert(1)", + history: [ + window.location.href, + "https://user:secret@example.com", + "https://example.com/valid", + ], + index: 99, + }, + 1: { draft: "", history: [], index: 0 }, + }, + }, + artifact: { + reference: "report.pdf", + editing: true, + scroll: -1, + document: { path: "report.pdf", revision: "unverified", page: 10 }, + }, + }, + }, + ]), + ); + const [restored] = loadWorkbarPositions(); + expect(restored?.reading.tabs).toEqual({ + tabs: ["terminal", "terminal:second"], + active: null, + activationHistory: ["terminal"], + launcherOpen: true, + }); + expect(restored?.reading.terminals).toEqual({ + terminal: { id: "native-a", viewport: 0, atBottom: true }, + "terminal:second": { + id: "native-b", + title: "", + viewport: 0, + atBottom: true, + }, + }); + expect(restored?.reading.browser?.tabs).toEqual([ + { id: 0, title: "Same app" }, + { id: 1, title: "Credentials" }, + ]); + expect(restored?.reading.browser?.pages[0]).toEqual({ + draft: "", + history: ["https://example.com/valid"], + index: 0, + }); + expect(restored?.reading.browser?.pages[1]?.index).toBe(-1); + expect(restored?.reading.artifact?.document).toBeUndefined(); + expect(restored?.reading.artifact?.editing).toBe(false); +}); + +it("bounds remembered workspaces and evicts old oversized metadata before saving fresh bookmarks", () => { + saveWorkbarPositions( + Array.from({ length: 40 }, (_, index) => + position(`session-${index}`, `/workspace/${index}.jsonl`), + ), + ); + expect(loadWorkbarPositions()).toHaveLength(32); + expect(loadWorkbarPositions()[0]?.sessionId).toBe("session-8"); + const oversized = position("old", "/workspace/old.jsonl"); + oversized.reading.files!.expanded = Array.from( + { length: 100 }, + (_, index) => `${index}-${"x".repeat(4000)}`, + ); + saveWorkbarPositions([ + oversized, + position("latest", "/workspace/latest.jsonl"), + ]); + expect(loadWorkbarPositions().map((item) => item.sessionId)).toEqual([ + "latest", + ]); + expect( + localStorage.getItem(WORKBAR_POSITION_STORAGE_KEY)!.length, + ).toBeLessThanOrEqual(256_000); +}); + +it.each(["malformed", "oversized", "unavailable"])( + "does not block tool use when storage is %s", + (kind) => { + if (kind === "malformed") + localStorage.setItem(WORKBAR_POSITION_STORAGE_KEY, "{"); + if (kind === "oversized") + localStorage.setItem(WORKBAR_POSITION_STORAGE_KEY, "x".repeat(256_001)); + if (kind === "unavailable") { + vi.spyOn(Storage.prototype, "getItem").mockImplementation(() => { + throw new Error("Storage disabled"); + }); + vi.spyOn(Storage.prototype, "setItem").mockImplementation(() => { + throw new Error("Quota exceeded"); + }); + } + expect(loadWorkbarPositions()).toEqual([]); + expect(() => saveWorkbarPositions([position()])).not.toThrow(); + }, +); diff --git a/tests/web/workbar-session-position.spec.ts b/tests/web/workbar-session-position.spec.ts index ad4ef3d6..fc45e034 100644 --- a/tests/web/workbar-session-position.spec.ts +++ b/tests/web/workbar-session-position.spec.ts @@ -144,9 +144,18 @@ async function select(path: string, id = "session-a") { } async function open(tool: "files" | "browser" | "review") { - fireEvent.click(screen.getByRole("button", { name: i18n.t("openTools") })); + const workbar = document.querySelector(".workbar-panel"); fireEvent.click( - within(document.querySelector(".workbar-panel")!).getByRole( + workbar && !workbar.hidden + ? within(workbar).getByRole("button", { + name: i18n.t("openTools"), + }) + : screen.getAllByRole("button", { + name: i18n.t("openTools"), + })[0]!, + ); + fireEvent.click( + within(screen.getByRole("region", { name: i18n.t("openTools") })).getByRole( "button", { name: new RegExp( diff --git a/tests/web/workspace-file-actions.e2e.ts b/tests/web/workspace-file-actions.e2e.ts index e5604f18..8863b01b 100644 --- a/tests/web/workspace-file-actions.e2e.ts +++ b/tests/web/workspace-file-actions.e2e.ts @@ -1,7 +1,14 @@ import { createHash } from "node:crypto"; -import { mkdtemp, readFile, rm, stat, writeFile } from "node:fs/promises"; +import { + mkdir, + mkdtemp, + readFile, + rm, + stat, + writeFile, +} from "node:fs/promises"; import { tmpdir } from "node:os"; -import { join } from "node:path"; +import { basename, join } from "node:path"; import { AxeBuilder } from "@axe-core/playwright"; import { SessionManager } from "@earendil-works/pi-coding-agent"; import { expect, test } from "@playwright/test"; @@ -14,6 +21,7 @@ test("workspace actions create, import and copy paths through the real Host on d }, testInfo) => { test.setTimeout(120_000); const cwd = await mkdtemp(join(tmpdir(), "openpi-files-actions-browser-")); + const importFolder = await mkdtemp(join(tmpdir(), "openpi-folder-import-")); const manager = SessionManager.inMemory(cwd); manager.appendMessage({ role: "user", @@ -162,19 +170,21 @@ test("workspace actions create, import and copy paths through the real Host on d response.url().endsWith("/api/files/mutate") && response.request().postDataJSON().name === "existing.txt", ); - await actions.locator('input[type="file"]').setInputFiles([ - { - name: "existing.txt", - mimeType: "text/plain", - buffer: Buffer.from("must not overwrite"), - }, - { - name: "binary.dat", - mimeType: "application/octet-stream", - buffer: Buffer.from([0, 255, 42]), - }, - { name: "empty.txt", mimeType: "text/plain", buffer: Buffer.alloc(0) }, - ]); + await actions + .locator('input[type="file"]:not([webkitdirectory])') + .setInputFiles([ + { + name: "existing.txt", + mimeType: "text/plain", + buffer: Buffer.from("must not overwrite"), + }, + { + name: "binary.dat", + mimeType: "application/octet-stream", + buffer: Buffer.from([0, 255, 42]), + }, + { name: "empty.txt", mimeType: "text/plain", buffer: Buffer.alloc(0) }, + ]); expect((await uploaded).status()).toBe(409); await expect(actions.locator('[data-import-state="done"]')).toHaveCount(2); await expect(actions.locator('[data-import-state="error"]')).toHaveCount(1); @@ -200,11 +210,13 @@ test("workspace actions create, import and copy paths through the real Host on d await expect(page.locator(".files-tree-container")).toBeVisible(); const large = Buffer.alloc(21 * 1024 * 1024, 0x33); - await actions.locator('input[type="file"]').setInputFiles({ - name: "large.bin", - mimeType: "application/octet-stream", - buffer: large, - }); + await actions + .locator('input[type="file"]:not([webkitdirectory])') + .setInputFiles({ + name: "large.bin", + mimeType: "application/octet-stream", + buffer: large, + }); await expect( actions.getByText( /已保存。预览上限为 20 MiB|Saved. Preview supports up to 20 MiB/u, @@ -252,6 +264,111 @@ test("workspace actions create, import and copy paths through the real Host on d join(cwd, "existing.txt"), ); + const rowMenu = async (path: string, label: RegExp) => { + const item = tree.locator(`[data-file-row="${path}"]`).locator(".."); + await item.hover(); + await item + .getByRole("button", { name: /的路径操作|Path actions for/u }) + .click(); + await page.getByRole("menuitem", { name: label }).click(); + }; + await rowMenu("existing.txt", /^(重命名|Rename)$/u); + const renameInput = actions.getByRole("textbox", { + name: /新名称|New name/u, + }); + await expect(renameInput).toBeFocused(); + await renameInput.fill("renamed.txt"); + await renameInput.press("Enter"); + await expect(tree.locator('[data-file-row="renamed.txt"]')).toBeVisible(); + expect(await readFile(join(cwd, "renamed.txt"), "utf8")).toBe( + "preserve this original\n", + ); + await rowMenu("renamed.txt", /^(移动|Move)$/u); + const moveInput = actions.getByRole("textbox", { + name: /目标文件夹|Destination folder/u, + }); + await moveInput.fill("新目录"); + await moveInput.press("Enter"); + await expect( + tree.locator('[data-file-row="新目录/renamed.txt"]'), + ).toBeVisible(); + expect(await readFile(join(cwd, "新目录", "renamed.txt"), "utf8")).toBe( + "preserve this original\n", + ); + + await actions + .getByRole("button", { name: /多选文件|Select multiple files/u }) + .click(); + await tree + .getByRole("checkbox", { name: /^(选择 新目录|Select 新目录)$/u }) + .check(); + await tree + .getByRole("checkbox", { + name: /^(选择 renamed.txt|Select renamed.txt)$/u, + }) + .check(); + await tree + .getByRole("checkbox", { name: /^(选择 empty.txt|Select empty.txt)$/u }) + .check(); + await actions + .getByRole("button", { name: /^(移入回收站|Move to trash)$/u }) + .click(); + await expect( + actions.getByRole("button", { name: /撤销移除|Undo removal/u }), + ).toBeVisible(); + expect(await stat(join(cwd, ".openpi-trash"))).toBeTruthy(); + await expect(tree.locator('[data-file-row="新目录"]')).toHaveCount(0); + await page.screenshot({ + path: testInfo.outputPath("files-trash-batch-desktop.png"), + }); + await actions + .getByRole("button", { name: /撤销移除|Undo removal/u }) + .click(); + await expect(tree.locator('[data-file-row="新目录"]')).toBeVisible(); + expect(await readFile(join(cwd, "新目录", "renamed.txt"), "utf8")).toBe( + "preserve this original\n", + ); + await rowMenu("empty.txt", /^(移入回收站|Move to trash)$/u); + await expect(tree.locator('[data-file-row="empty.txt"]')).toHaveCount(0); + await page.reload(); + if (!(await actions.isVisible())) { + await page + .getByRole("button", { name: /打开工具|Open tools/u, exact: true }) + .click(); + await page + .locator(".workbar-launcher") + .getByRole("button", { name: /^(文件|Files)/u }) + .click(); + } + await actions + .getByRole("button", { name: /工作区回收站|Workspace trash/u }) + .click(); + await actions + .getByRole("button", { name: /^(恢复 empty.txt|Restore empty.txt)$/u }) + .click(); + await expect(tree.locator('[data-file-row="empty.txt"]')).toBeVisible(); + expect((await stat(join(cwd, "empty.txt"))).size).toBe(0); + await actions + .getByRole("button", { name: /工作区回收站|Workspace trash/u }) + .click(); + + await mkdir(join(importFolder, "nested")); + await writeFile( + join(importFolder, "nested", "中文.bin"), + Buffer.from([0, 255, 67]), + ); + await actions.locator("input[webkitdirectory]").setInputFiles(importFolder); + await expect + .poll(() => + readFile(join(cwd, basename(importFolder), "nested", "中文.bin")).catch( + () => undefined, + ), + ) + .toEqual(Buffer.from([0, 255, 67])); + await page.screenshot({ + path: testInfo.outputPath("files-organization-desktop.png"), + }); + await page.setViewportSize({ width: 390, height: 844 }); await expect( actions.getByRole("button", { name: /新建文件$|New file$/u }), @@ -282,5 +399,6 @@ test("workspace actions create, import and copy paths through the real Host on d await context.close(); await host.stop(); await rm(cwd, { recursive: true, force: true }); + await rm(importFolder, { recursive: true, force: true }); } }); diff --git a/tests/web/workspace-file-actions.spec.ts b/tests/web/workspace-file-actions.spec.ts index 74fa471f..8be8be2d 100644 --- a/tests/web/workspace-file-actions.spec.ts +++ b/tests/web/workspace-file-actions.spec.ts @@ -72,6 +72,8 @@ beforeEach(() => { ); vi.spyOn(WebClient.prototype, "mutateWorkspaceFile").mockImplementation( async (sessionId, sessionPath, mutation) => { + if (!("directory" in mutation)) + throw new Error("Unexpected organization request in create fixture"); const path = mutation.directory === "." ? mutation.name @@ -372,7 +374,9 @@ it("imports exact binary and empty file bytes, retains only the failed file for expect(mutate).toHaveBeenCalledTimes(3); expect(mutate.mock.calls[2]?.[2]).toEqual(mutate.mock.calls[0]?.[2]); expect( - mutate.mock.calls.filter((call) => call[2].name === "empty.txt"), + mutate.mock.calls.filter( + (call) => "name" in call[2] && call[2].name === "empty.txt", + ), ).toHaveLength(1); }); diff --git a/tests/web/workspace-file-host.test.ts b/tests/web/workspace-file-host.test.ts index a51343c5..0afde63b 100644 --- a/tests/web/workspace-file-host.test.ts +++ b/tests/web/workspace-file-host.test.ts @@ -3,8 +3,8 @@ import { createHash } from "node:crypto"; import { mkdir, mkdtemp, - readFile, readdir, + readFile, rm, writeFile, } from "node:fs/promises"; @@ -15,8 +15,8 @@ import test from "node:test"; import { SessionManager } from "@earendil-works/pi-coding-agent"; import { ArtifactReader } from "../../web/host/artifacts.ts"; import { WebHost } from "../../web/host/web-host.ts"; -import type { WebRuntimeController } from "../../web/runtime/types.ts"; import { projectWebModelSearch } from "../../web/runtime/model-discovery.ts"; +import type { WebRuntimeController } from "../../web/runtime/types.ts"; function barrier() { let release!: () => void; @@ -214,6 +214,100 @@ test("a delayed workspace-file body cannot write to a copied native Session with } }); +test("organization HTTP requests require exact identity, reject extra authority and expose only authenticated workspace trash", async () => { + const f = await fixture(); + try { + await writeFile(join(f.cwd, "original.txt"), "original bytes"); + const listing = await fetch( + `${f.host.origin}/api/artifacts/files?${new URLSearchParams({ sessionId: f.body.sessionId, sessionPath: f.body.sessionPath, path: ".", query: "" })}`, + { headers: f.headers }, + ); + assert.equal(listing.status, 200); + const { entries } = (await listing.json()) as { + entries: { path: string; identity: string }[]; + }; + const identity = entries.find( + (entry) => entry.path === "original.txt", + )?.identity; + assert.ok(identity); + const common = { + sessionId: f.body.sessionId, + sessionPath: f.body.sessionPath, + access: f.body.access, + }; + const move = { + ...common, + kind: "move", + path: "original.txt", + identity, + directory: ".", + name: "renamed.txt", + }; + assert.equal((await f.post({ ...move, identity: undefined })).status, 400); + assert.equal((await f.post({ ...move, overwrite: true })).status, 400); + assert.equal( + (await f.post({ ...move, sessionPath: "/sessions/copied" })).status, + 403, + ); + assert.equal((await f.post(move)).status, 201); + const next = await fetch( + `${f.host.origin}/api/artifacts/files?${new URLSearchParams({ sessionId: f.body.sessionId, sessionPath: f.body.sessionPath, path: ".", query: "" })}`, + { headers: f.headers }, + ); + const nextListing = (await next.json()) as { + entries: { path: string; identity: string }[]; + }; + const removed = await f.post({ + ...common, + kind: "trash", + path: "renamed.txt", + identity: nextListing.entries.find( + (entry) => entry.path === "renamed.txt", + )?.identity, + }); + assert.equal(removed.status, 201); + const { trashed } = (await removed.json()) as { + trashed: { id: string; identity: string }; + }; + const url = `${f.host.origin}/api/artifacts/trash?${new URLSearchParams({ sessionId: f.body.sessionId, sessionPath: f.body.sessionPath })}`; + assert.equal((await fetch(url)).status, 401); + const trash = await fetch(url, { headers: f.headers }); + assert.equal(trash.status, 200); + assert.equal( + ((await trash.json()) as { entries: unknown[] }).entries.length, + 1, + ); + assert.equal( + ( + await f.post({ + ...common, + kind: "restore", + ...trashed, + arbitraryPath: "../escape", + }) + ).status, + 400, + ); + assert.equal( + ( + await f.post({ + ...common, + kind: "restore", + id: trashed.id, + identity: trashed.identity, + }) + ).status, + 201, + ); + assert.equal( + await readFile(join(f.cwd, "renamed.txt"), "utf8"), + "original bytes", + ); + } finally { + await f.close(); + } +}); + for (const operation of ["save", "create"] as const) { test(`Host stop drains an admitted Files ${operation} before disposing its runtime`, async () => { const f = await fixture(); diff --git a/tests/web/workspace-file-organization.spec.ts b/tests/web/workspace-file-organization.spec.ts new file mode 100644 index 00000000..e0fb6e65 --- /dev/null +++ b/tests/web/workspace-file-organization.spec.ts @@ -0,0 +1,478 @@ +// @vitest-environment jsdom +import { + act, + cleanup, + fireEvent, + render, + screen, + waitFor, + within, +} from "@testing-library/react"; +import { createElement } from "react"; +import { afterEach, beforeEach, expect, it, vi } from "vitest"; +import type { + WorkspaceFileEntry, + WorkspaceTrashEntry, +} from "../../web/protocol/artifacts.ts"; +import { FilesPanel } from "../../web/ui/src/features/files/FilesPanel.tsx"; +import { i18n } from "../../web/ui/src/i18n.ts"; +import { WebApiError, WebClient } from "../../web/ui/src/protocol/client.ts"; +import { installCheckVisibilityFixture } from "./check-visibility-fixture.ts"; + +installCheckVisibilityFixture(); +let entries: WorkspaceFileEntry[]; +let removed: WorkspaceTrashEntry[]; +const node = (sessionPath = "/sessions/one", canWrite = true) => + createElement(FilesPanel, { + sessionId: "s", + sessionPath, + cwd: "/workspace", + active: true, + canWrite, + }); + +beforeEach(() => { + entries = [ + { name: "one.md", path: "one.md", kind: "file", identity: "one" }, + { name: "two.md", path: "two.md", kind: "file", identity: "two" }, + { name: "folder", path: "folder", kind: "directory", identity: "folder" }, + { + name: "child.md", + path: "folder/child.md", + kind: "file", + identity: "child", + }, + ]; + removed = []; + vi.spyOn(HTMLElement.prototype, "clientWidth", "get").mockReturnValue(900); + vi.spyOn(WebClient.prototype, "workspaceFiles").mockImplementation( + async (_id, _session, path) => ({ + path, + entries: entries.filter( + (entry) => + (entry.path.split("/").slice(0, -1).join("/") || ".") === path, + ), + truncated: false, + }), + ); + vi.spyOn(WebClient.prototype, "releaseFileListing").mockResolvedValue({}); + vi.spyOn(WebClient.prototype, "workspaceTrash").mockImplementation( + async (sessionId, sessionPath) => ({ + sessionId, + sessionPath, + entries: removed, + }), + ); + vi.spyOn(WebClient.prototype, "resolveArtifact").mockImplementation( + async (_id, reference) => ({ handle: decodeURI(reference) }), + ); + vi.spyOn(WebClient.prototype, "releaseArtifact").mockResolvedValue({}); + vi.spyOn(WebClient.prototype, "artifactMetadata").mockResolvedValue({ + identity: "v1", + }); + vi.spyOn(WebClient.prototype, "artifactPreview").mockImplementation( + async (sessionId, handle) => ({ + artifact: { + sessionId, + handle, + path: `/workspace/${handle}`, + name: handle.split("/").at(-1)!, + revision: "a".repeat(64), + bytes: 20, + preview: "text", + editable: true, + }, + identity: "v1", + text: "# Original", + truncated: false, + }), + ); + vi.spyOn(WebClient.prototype, "mutateWorkspaceFile").mockImplementation( + async (sessionId, sessionPath, mutation) => { + if (mutation.kind === "trash") { + const source = entries.find((entry) => entry.path === mutation.path)!; + const trashed: WorkspaceTrashEntry = { + id: source.path, + path: source.path, + kind: source.kind === "directory" ? "directory" : "file", + identity: source.identity!, + deletedAt: 1, + }; + removed.push(trashed); + entries = entries.filter( + (entry) => + entry.path !== source.path && + !entry.path.startsWith(`${source.path}/`), + ); + return { + sessionId, + sessionPath, + path: source.path, + kind: trashed.kind, + trashed, + }; + } + if (mutation.kind === "restore") { + const source = removed.find((entry) => entry.id === mutation.id)!; + removed = removed.filter((entry) => entry !== source); + entries.push({ + name: source.path.split("/").at(-1)!, + path: source.path, + kind: source.kind, + identity: source.identity, + }); + return { + sessionId, + sessionPath, + path: source.path, + kind: source.kind, + bytes: 20, + }; + } + if (mutation.kind === "move") { + const source = entries.find((entry) => entry.path === mutation.path)!; + const path = [ + mutation.directory === "." ? "" : mutation.directory, + mutation.name, + ] + .filter(Boolean) + .join("/"); + entries = entries.map((entry) => + entry === source ? { ...entry, path, name: mutation.name } : entry, + ); + return { + sessionId, + sessionPath, + path, + kind: source.kind === "directory" ? "directory" : "file", + bytes: 20, + moved: { + from: `/workspace/${source.path}`, + to: `/workspace/${path}`, + }, + }; + } + return { + sessionId, + sessionPath, + path: [ + mutation.directory === "." ? "" : mutation.directory, + mutation.name, + ] + .filter(Boolean) + .join("/"), + kind: mutation.kind === "create-directory" ? "directory" : "file", + bytes: 20, + }; + }, + ); +}); +afterEach(() => { + cleanup(); + vi.restoreAllMocks(); +}); + +const menu = async (name: string, action: string) => { + fireEvent.click( + await screen.findByRole("button", { + name: i18n.t("filesPathActions", { name }), + }), + ); + fireEvent.click(await screen.findByRole("menuitem", { name: action })); +}; + +it("renames from the row menu, focuses its name and retains an unsaved editor draft at the new canonical path", async () => { + render(node()); + fireEvent.click(await screen.findByRole("button", { name: "one.md" })); + await screen.findByRole("heading", { name: "Original" }); + fireEvent.click(screen.getByRole("button", { name: i18n.t("filesEdit") })); + fireEvent.change( + await screen.findByRole("textbox", { name: i18n.t("filesEditor") }), + { target: { value: "# Unsaved draft" } }, + ); + await menu("one.md", i18n.t("filesRename")); + const input = await screen.findByRole("textbox", { + name: i18n.t("filesNewName"), + }); + expect(document.activeElement).toBe(input); + fireEvent.change(input, { target: { value: "renamed.md" } }); + fireEvent.submit(input.closest("form")!); + await screen.findByRole("button", { name: "renamed.md" }); + await screen.findByRole("heading", { name: "Unsaved draft" }); + fireEvent.click(screen.getByRole("button", { name: i18n.t("filesEdit") })); + expect( + ( + (await screen.findByRole("textbox", { + name: i18n.t("filesEditor"), + })) as HTMLTextAreaElement + ).value, + ).toBe("# Unsaved draft"); + expect(WebClient.prototype.mutateWorkspaceFile).toHaveBeenCalledWith( + "s", + "/sessions/one", + { + kind: "move", + path: "one.md", + identity: "one", + directory: ".", + name: "renamed.md", + }, + ); +}); + +it("a batch reports each failed and successful item and keeps failed selections for retry", async () => { + const mutate = vi.mocked(WebClient.prototype.mutateWorkspaceFile); + const normal = mutate.getMockImplementation()!; + mutate.mockImplementation(async (...args) => { + if (args[2].kind === "move" && args[2].path === "one.md") + throw new WebApiError("destination is occupied", 409, "ARTIFACT_EXISTS"); + return normal(...args); + }); + render(node()); + await screen.findByRole("button", { name: "one.md" }); + fireEvent.click( + screen.getByRole("button", { name: i18n.t("filesSelectMultiple") }), + ); + fireEvent.click( + screen.getByRole("checkbox", { + name: i18n.t("filesSelectItem", { name: "one.md" }), + }), + ); + fireEvent.click( + screen.getByRole("checkbox", { + name: i18n.t("filesSelectItem", { name: "two.md" }), + }), + ); + fireEvent.click(screen.getByRole("button", { name: i18n.t("filesMove") })); + fireEvent.change( + screen.getByRole("textbox", { name: i18n.t("filesMoveDestination") }), + { target: { value: "folder" } }, + ); + fireEvent.submit( + screen + .getByRole("textbox", { name: i18n.t("filesMoveDestination") }) + .closest("form")!, + ); + const result = await screen.findByRole("list", { + name: i18n.t("filesOrganizationResults"), + }); + await waitFor(() => + expect(within(result).getAllByRole("listitem")).toHaveLength(2), + ); + expect(within(result).getByRole("alert").textContent).toBe( + i18n.t("filesNameExists"), + ); + expect(within(result).getByText(i18n.t("filesOperationDone"))).toBeTruthy(); + expect( + ( + screen.getByRole("checkbox", { + name: i18n.t("filesSelectItem", { name: "one.md" }), + }) as HTMLInputElement + ).checked, + ).toBe(true); + expect(mutate).toHaveBeenCalledTimes(2); +}); + +it("selecting a folder and its child removes contents once and offers an immediate undo", async () => { + render(node()); + fireEvent.click(await screen.findByRole("button", { name: "folder" })); + await screen.findByRole("button", { name: "child.md" }); + fireEvent.click( + screen.getByRole("button", { name: i18n.t("filesSelectMultiple") }), + ); + fireEvent.click( + screen.getByRole("checkbox", { + name: i18n.t("filesSelectItem", { name: "folder" }), + }), + ); + fireEvent.click( + screen.getByRole("checkbox", { + name: i18n.t("filesSelectItem", { name: "child.md" }), + }), + ); + fireEvent.click( + screen.getByRole("button", { name: i18n.t("filesTrashAction") }), + ); + await screen.findByRole("button", { name: i18n.t("filesUndoTrash") }); + expect(WebClient.prototype.mutateWorkspaceFile).toHaveBeenCalledTimes(1); + expect(WebClient.prototype.mutateWorkspaceFile).toHaveBeenCalledWith( + "s", + "/sessions/one", + { kind: "trash", path: "folder", identity: "folder" }, + ); + fireEvent.click( + screen.getByRole("button", { name: i18n.t("filesUndoTrash") }), + ); + await waitFor(() => + expect(WebClient.prototype.mutateWorkspaceFile).toHaveBeenCalledTimes(2), + ); + expect(WebClient.prototype.mutateWorkspaceFile).toHaveBeenLastCalledWith( + "s", + "/sessions/one", + { kind: "restore", id: "folder", identity: "folder" }, + ); +}); + +it("trash can be reopened after remount, shows unverifiable entries and closes a removed active preview", async () => { + const view = render(node()); + fireEvent.click(await screen.findByRole("button", { name: "two.md" })); + await screen.findByRole("heading", { name: "Original" }); + await menu("two.md", i18n.t("filesTrashAction")); + await waitFor(() => + expect(screen.queryByRole("heading", { name: "Original" })).toBeNull(), + ); + view.unmount(); + vi.mocked(WebClient.prototype.workspaceTrash).mockImplementation( + async (sessionId, sessionPath) => ({ + sessionId, + sessionPath, + entries: removed, + unavailable: 1, + }), + ); + render(node()); + fireEvent.click( + await screen.findByRole("button", { name: i18n.t("filesTrash") }), + ); + await screen.findByRole("button", { + name: i18n.t("filesRestoreItem", { name: "two.md" }), + }); + expect(screen.getByRole("alert").textContent).toBe( + i18n.t("filesTrashUnavailable", { count: 1 }), + ); + fireEvent.click( + screen.getByRole("button", { + name: i18n.t("filesRestoreItem", { name: "two.md" }), + }), + ); + await screen.findByRole("button", { name: "two.md" }); +}); + +it("folder selection preserves relative paths and the directory picker exposes the browser's folder mode", async () => { + render(node()); + await screen.findByRole("button", { name: "one.md" }); + const input = screen.getByLabelText(i18n.t("filesImportFolderChoose")); + expect(input.hasAttribute("webkitdirectory")).toBe(true); + const first = new File(["first"], "first.txt"); + const second = new File(["second"], "second.txt"); + Object.defineProperty(first, "webkitRelativePath", { + value: "资料/first.txt", + }); + Object.defineProperty(second, "webkitRelativePath", { + value: "资料/子目录/second.txt", + }); + fireEvent.change(input, { target: { files: [first, second] } }); + await waitFor(() => + expect(WebClient.prototype.mutateWorkspaceFile).toHaveBeenCalledTimes(2), + ); + expect( + vi + .mocked(WebClient.prototype.mutateWorkspaceFile) + .mock.calls.map((call) => call[2]), + ).toEqual([ + { + kind: "import-file", + directory: "资料", + name: "first.txt", + data: btoa("first"), + createParents: true, + }, + { + kind: "import-file", + directory: "资料/子目录", + name: "second.txt", + data: btoa("second"), + createParents: true, + }, + ]); +}); + +it("a late mutation from the previous exact Session cannot report success or change the next Session", async () => { + let finish!: ( + value: Awaited>, + ) => void; + vi.mocked(WebClient.prototype.mutateWorkspaceFile).mockImplementation( + () => + new Promise((resolve) => { + finish = resolve; + }), + ); + const view = render(node()); + await menu("two.md", i18n.t("filesTrashAction")); + view.rerender(node("/sessions/copied")); + await act(async () => { + finish({ + sessionId: "s", + sessionPath: "/sessions/one", + path: "two.md", + kind: "file", + trashed: { + id: "two", + path: "two.md", + kind: "file", + identity: "two", + deletedAt: 1, + }, + }); + }); + expect( + screen.queryByRole("list", { name: i18n.t("filesOrganizationResults") }), + ).toBeNull(); + expect( + screen.queryByRole("button", { name: i18n.t("filesUndoTrash") }), + ).toBeNull(); +}); + +it("dropping a whole folder preserves empty directories and reads every directory batch before importing", async () => { + const file = new File(["nested original"], "note.txt"); + const leaf = { + name: "note.txt", + isFile: true, + isDirectory: false, + file: (resolve: (value: File) => void) => resolve(file), + }; + const folder = (name: string, children: unknown[]) => ({ + name, + isFile: false, + isDirectory: true, + createReader: () => { + let reads = 0; + return { + readEntries: (resolve: (value: unknown[]) => void) => + resolve(reads++ === 0 ? children : []), + }; + }, + }); + const dropped = folder("drop", [ + folder("empty", []), + folder("nested", [leaf]), + ]); + const view = render(node()); + await screen.findByRole("button", { name: "one.md" }); + fireEvent.drop(view.container.querySelector(".files-preview-empty")!, { + dataTransfer: { + types: ["Files"], + items: [{ kind: "file", webkitGetAsEntry: () => dropped }], + files: [], + }, + }); + await waitFor(() => + expect(WebClient.prototype.mutateWorkspaceFile).toHaveBeenCalledTimes(4), + ); + expect( + vi + .mocked(WebClient.prototype.mutateWorkspaceFile) + .mock.calls.map((call) => call[2]), + ).toEqual([ + { kind: "create-directory", directory: ".", name: "drop" }, + { kind: "create-directory", directory: "drop", name: "empty" }, + { kind: "create-directory", directory: "drop", name: "nested" }, + { + kind: "import-file", + directory: "drop/nested", + name: "note.txt", + data: btoa("nested original"), + createParents: true, + }, + ]); +}); diff --git a/tests/web/workspace-file-organization.test.ts b/tests/web/workspace-file-organization.test.ts new file mode 100644 index 00000000..a4bb3b1c --- /dev/null +++ b/tests/web/workspace-file-organization.test.ts @@ -0,0 +1,563 @@ +import assert from "node:assert/strict"; +import { execFileSync } from "node:child_process"; +import { + mkdir, + mkdtemp, + readdir, + readFile, + rename, + rm, + symlink, + writeFile, +} from "node:fs/promises"; +import { tmpdir } from "node:os"; +import { join } from "node:path"; +import test from "node:test"; +import { withFileMutationQueue } from "@earendil-works/pi-coding-agent"; +import { ArtifactReader } from "../../web/host/artifacts.ts"; + +async function fixture() { + const root = await mkdtemp(join(tmpdir(), "openpi-file-organization-")); + const cwd = join(root, "workspace"); + await mkdir(cwd); + let scope = { sessionId: "s", sessionPath: "/sessions/one", cwd }; + const reader = new ArtifactReader(() => scope); + const identity = async (path: string) => { + const parts = path.split("/"); + const name = parts.pop(); + const result = await reader.listFiles( + "s", + encodeURI(parts.join("/") || "."), + "", + scope.sessionPath, + ); + const entry = result.entries.find((entry) => entry.name === name); + assert.ok(entry?.identity); + return entry.identity; + }; + return { + root, + cwd, + reader, + identity, + get scope() { + return scope; + }, + setScope(value: typeof scope) { + scope = value; + }, + async cleanup() { + reader.dispose(); + await rm(root, { recursive: true, force: true }); + }, + }; +} + +test("file organization renames binary originals, moves full directories and never overwrites an existing name", async () => { + const f = await fixture(); + try { + const bytes = Buffer.from([0, 255, 19, 0, 83]); + await writeFile(join(f.cwd, "原 %20.bin"), bytes); + await mkdir(join(f.cwd, "folder")); + await mkdir(join(f.cwd, "destination")); + await writeFile(join(f.cwd, "folder", "nested.txt"), "nested original"); + const moved = await f.reader.mutateFile("s", f.scope.sessionPath, { + kind: "move", + path: encodeURI("原 %20.bin"), + identity: await f.identity("原 %20.bin"), + directory: "destination", + name: "改名.bin", + }); + assert.equal(moved.path, "destination/改名.bin"); + assert.deepEqual(await readFile(join(f.cwd, moved.path)), bytes); + await assert.rejects(readFile(join(f.cwd, "原 %20.bin")), { + code: "ENOENT", + }); + await f.reader.mutateFile("s", f.scope.sessionPath, { + kind: "move", + path: "folder", + identity: await f.identity("folder"), + directory: "destination", + name: "folder", + }); + assert.equal( + await readFile( + join(f.cwd, "destination", "folder", "nested.txt"), + "utf8", + ), + "nested original", + ); + await writeFile(join(f.cwd, "conflict.bin"), "preserve me"); + await assert.rejects( + f.reader.mutateFile("s", f.scope.sessionPath, { + kind: "move", + path: encodeURI(moved.path), + identity: await f.identity(moved.path), + directory: ".", + name: "conflict.bin", + }), + { code: "ARTIFACT_EXISTS" }, + ); + assert.equal( + await readFile(join(f.cwd, "conflict.bin"), "utf8"), + "preserve me", + ); + assert.deepEqual(await readFile(join(f.cwd, moved.path)), bytes); + await mkdir(join(f.cwd, "occupied")); + await assert.rejects( + f.reader.mutateFile("s", f.scope.sessionPath, { + kind: "move", + path: "destination/folder", + identity: await f.identity("destination/folder"), + directory: ".", + name: "occupied", + }), + { code: "ARTIFACT_EXISTS" }, + ); + assert.equal( + await readFile( + join(f.cwd, "destination", "folder", "nested.txt"), + "utf8", + ), + "nested original", + ); + } finally { + await f.cleanup(); + } +}); + +test("trash preserves ignored contents across reader recreation, stays out of Git additions and restores without overwriting", async () => { + const f = await fixture(); + try { + execFileSync("git", ["init", "--quiet", f.cwd]); + await writeFile(join(f.cwd, ".gitignore"), "private/\n"); + await mkdir(join(f.cwd, "private")); + await writeFile( + join(f.cwd, "private", "credentials.bin"), + Buffer.from([0, 255, 28]), + ); + const result = await f.reader.mutateFile("s", f.scope.sessionPath, { + kind: "trash", + path: "private", + identity: await f.identity("private"), + }); + assert.ok(result.trashed); + assert.deepEqual( + (await f.reader.listFiles("s", ".", "", f.scope.sessionPath)).entries + .map((entry) => entry.name) + .sort(), + [".git", ".gitignore"], + ); + assert.deepEqual( + (await f.reader.listFiles("s", ".", "credentials", f.scope.sessionPath)) + .entries, + [], + ); + execFileSync("git", ["add", "-A"], { cwd: f.cwd }); + const staged = execFileSync("git", ["diff", "--cached", "--name-only"], { + cwd: f.cwd, + encoding: "utf8", + }); + assert.equal(staged.trim(), ".gitignore"); + assert.equal( + await readFile(join(f.cwd, ".gitignore"), "utf8"), + "private/\n", + ); + f.reader.dispose(); + const restoredReader = new ArtifactReader(() => f.scope); + try { + const listing = await restoredReader.listTrash("s", f.scope.sessionPath); + assert.deepEqual(listing.entries, [result.trashed]); + await mkdir(join(f.cwd, "private")); + await writeFile( + join(f.cwd, "private", "new.txt"), + "new folder must stay", + ); + await assert.rejects( + restoredReader.mutateFile("s", f.scope.sessionPath, { + kind: "restore", + id: result.trashed.id, + identity: result.trashed.identity, + }), + { code: "ARTIFACT_EXISTS" }, + ); + assert.equal( + await readFile(join(f.cwd, "private", "new.txt"), "utf8"), + "new folder must stay", + ); + assert.equal( + (await restoredReader.listTrash("s", f.scope.sessionPath)).entries + .length, + 1, + ); + await rename(join(f.cwd, "private"), join(f.cwd, "new-private")); + const restored = await restoredReader.mutateFile( + "s", + f.scope.sessionPath, + { + kind: "restore", + id: result.trashed.id, + identity: result.trashed.identity, + }, + ); + assert.equal(restored.path, "private"); + assert.deepEqual( + await readFile(join(f.cwd, "private", "credentials.bin")), + Buffer.from([0, 255, 28]), + ); + assert.deepEqual( + (await restoredReader.listTrash("s", f.scope.sessionPath)).entries, + [], + ); + } finally { + restoredReader.dispose(); + } + } finally { + await f.cleanup(); + } +}); + +test("queued organization rechecks native writes, exact Session identity and explicit revocation", async () => { + const f = await fixture(); + try { + for (const change of ["content", "session", "revoke"] as const) { + f.setScope({ sessionId: "s", sessionPath: "/sessions/one", cwd: f.cwd }); + await writeFile(join(f.cwd, "note.txt"), "original"); + const identity = await f.identity("note.txt"); + let unlock!: () => void; + const wait = new Promise((resolve) => { + unlock = resolve; + }); + let entered!: () => void; + const ready = new Promise((resolve) => { + entered = resolve; + }); + const native = withFileMutationQueue( + join(f.cwd, "note.txt"), + async () => { + entered(); + await wait; + if (change === "content") + await writeFile(join(f.cwd, "note.txt"), "native update"); + }, + ); + await ready; + const mutation = f.reader.mutateFile("s", f.scope.sessionPath, { + kind: "trash", + path: "note.txt", + identity, + }); + const settled = mutation.then( + () => undefined, + (error: unknown) => error, + ); + await withFileMutationQueue( + join(f.cwd, "independent"), + async () => undefined, + ); + if (change === "session") + f.setScope({ ...f.scope, sessionPath: "/sessions/copied" }); + if (change === "revoke") f.reader.revoke(); + unlock(); + await native; + const error = await settled; + assert.equal( + (error as { code: string }).code, + change === "content" ? "ARTIFACT_CHANGED" : "ARTIFACT_DENIED", + ); + assert.equal( + await readFile(join(f.cwd, "note.txt"), "utf8"), + change === "content" ? "native update" : "original", + ); + } + } finally { + await f.cleanup(); + } +}); + +test("organization rejects protected roots, stale versions, outside paths, links and moving a directory into itself", async () => { + const f = await fixture(); + try { + for (const name of [".git", ".pi"]) { + await mkdir(join(f.cwd, name)); + await assert.rejects( + f.reader.mutateFile("s", f.scope.sessionPath, { + kind: "trash", + path: name, + identity: await f.identity(name), + }), + { code: "ARTIFACT_DENIED" }, + ); + } + await mkdir(join(f.cwd, "folder")); + const folderIdentity = await f.identity("folder"); + await assert.rejects( + f.reader.mutateFile("s", f.scope.sessionPath, { + kind: "move", + path: "folder", + identity: folderIdentity, + directory: "folder", + name: "nested", + }), + { code: "ARTIFACT_DENIED" }, + ); + await writeFile(join(f.cwd, "note.txt"), "original"); + const stale = await f.identity("note.txt"); + await writeFile(join(f.cwd, "note.txt"), "new version"); + await assert.rejects( + f.reader.mutateFile("s", f.scope.sessionPath, { + kind: "trash", + path: "note.txt", + identity: stale, + }), + { code: "ARTIFACT_CHANGED" }, + ); + await assert.rejects( + f.reader.mutateFile("s", f.scope.sessionPath, { + kind: "trash", + path: "../outside", + identity: stale, + }), + { code: "ARTIFACT_DENIED" }, + ); + await assert.rejects( + f.reader.mutateFile("s", "/sessions/copied", { + kind: "trash", + path: "note.txt", + identity: stale, + }), + { code: "ARTIFACT_DENIED" }, + ); + if (process.platform !== "win32") { + await symlink(f.root, join(f.cwd, "link")); + await assert.rejects( + f.reader.mutateFile("s", f.scope.sessionPath, { + kind: "move", + path: "note.txt", + identity: await f.identity("note.txt"), + directory: "link", + name: "escaped", + }), + { code: "ARTIFACT_DENIED" }, + ); + await assert.rejects( + f.reader.mutateFile("s", f.scope.sessionPath, { + kind: "trash", + path: "link", + identity: stale, + }), + { code: "ARTIFACT_DENIED" }, + ); + } + assert.equal( + await readFile(join(f.cwd, "note.txt"), "utf8"), + "new version", + ); + } finally { + await f.cleanup(); + } +}); + +test("preexisting trash paths and damaged restore metadata never take ownership of user files", async () => { + const f = await fixture(); + try { + await writeFile(join(f.cwd, "note.txt"), "original"); + await mkdir(join(f.cwd, ".openpi-trash")); + await writeFile( + join(f.cwd, ".openpi-trash", "user.txt"), + "existing private evidence", + ); + await assert.rejects( + f.reader.mutateFile("s", f.scope.sessionPath, { + kind: "trash", + path: "note.txt", + identity: await f.identity("note.txt"), + }), + ); + assert.equal(await readFile(join(f.cwd, "note.txt"), "utf8"), "original"); + assert.equal( + await readFile(join(f.cwd, ".openpi-trash", "user.txt"), "utf8"), + "existing private evidence", + ); + await rename( + join(f.cwd, ".openpi-trash"), + join(f.cwd, "existing-evidence"), + ); + const result = await f.reader.mutateFile("s", f.scope.sessionPath, { + kind: "trash", + path: "note.txt", + identity: await f.identity("note.txt"), + }); + assert.ok(result.trashed); + await writeFile( + join(f.cwd, ".openpi-trash", result.trashed.id, "contents"), + "changed private contents", + ); + await assert.rejects( + f.reader.mutateFile("s", f.scope.sessionPath, { + kind: "restore", + id: result.trashed.id, + identity: result.trashed.identity, + }), + { code: "ARTIFACT_CHANGED" }, + ); + assert.equal( + (await f.reader.listTrash("s", f.scope.sessionPath)).unavailable, + 1, + ); + assert.equal( + await readFile( + join(f.cwd, ".openpi-trash", result.trashed.id, "contents"), + "utf8", + ), + "changed private contents", + ); + await assert.rejects( + f.reader.mutateFile("s", f.scope.sessionPath, { + kind: "restore", + id: "../../outside", + identity: result.trashed.identity, + }), + { code: "ARTIFACT_DENIED" }, + ); + } finally { + await f.cleanup(); + } +}); + +test("folder import retains nested paths and per-file conflicts without following destination links", async () => { + const f = await fixture(); + try { + const result = await f.reader.mutateFile("s", f.scope.sessionPath, { + kind: "import-file", + directory: encodeURI("资料/子目录"), + name: "数据.bin", + data: Buffer.from([0, 255, 11]).toString("base64"), + createParents: true, + }); + assert.equal(result.path, "资料/子目录/数据.bin"); + assert.deepEqual( + await readFile(join(f.cwd, result.path)), + Buffer.from([0, 255, 11]), + ); + await assert.rejects( + f.reader.mutateFile("s", f.scope.sessionPath, { + kind: "import-file", + directory: encodeURI("资料/子目录"), + name: "数据.bin", + data: "", + createParents: true, + }), + { code: "ARTIFACT_EXISTS" }, + ); + assert.deepEqual( + await readFile(join(f.cwd, result.path)), + Buffer.from([0, 255, 11]), + ); + await assert.rejects( + f.reader.mutateFile("s", f.scope.sessionPath, { + kind: "import-file", + directory: "../outside", + name: "file.bin", + data: "", + createParents: true, + }), + { code: "ARTIFACT_DENIED" }, + ); + if (process.platform !== "win32") { + await symlink(f.root, join(f.cwd, "link")); + await assert.rejects( + f.reader.mutateFile("s", f.scope.sessionPath, { + kind: "import-file", + directory: "link/escape", + name: "file.bin", + data: "", + createParents: true, + }), + { code: "ARTIFACT_DENIED" }, + ); + } + assert.deepEqual(await readdir(f.root), ["workspace"]); + } finally { + await f.cleanup(); + } +}); + +test("trash pagination reaches every removed entry without capping future file operations", async () => { + const f = await fixture(); + try { + await Promise.all( + Array.from({ length: 252 }, (_, index) => + writeFile( + join(f.cwd, `file-${String(index).padStart(3, "0")}.txt`), + String(index), + ), + ), + ); + for (let index = 0; index < 252; index++) { + const [entry] = ( + await f.reader.listFiles("s", ".", "", f.scope.sessionPath) + ).entries; + assert.ok(entry?.identity); + await f.reader.mutateFile("s", f.scope.sessionPath, { + kind: "trash", + path: entry.path, + identity: entry.identity, + }); + } + const first = await f.reader.listTrash("s", f.scope.sessionPath); + assert.equal(first.entries.length, 250); + assert.ok(first.nextCursor); + const second = await f.reader.listTrash( + "s", + f.scope.sessionPath, + first.nextCursor, + ); + assert.equal(second.entries.length, 2); + assert.equal(second.nextCursor, undefined); + assert.equal( + new Set([...first.entries, ...second.entries].map((entry) => entry.id)) + .size, + 252, + ); + const entry = second.entries[0]!; + await f.reader.mutateFile("s", f.scope.sessionPath, { + kind: "restore", + id: entry.id, + identity: entry.identity, + }); + assert.equal( + await readFile(join(f.cwd, entry.path), "utf8"), + String(Number(entry.path.match(/\d+/u)?.[0])), + ); + } finally { + await f.cleanup(); + } +}); + +test("case-only renames share one native write lane without hanging on case-insensitive filesystems", async () => { + const f = await fixture(); + try { + await writeFile(join(f.cwd, "Case.txt"), "case original"); + const result = await f.reader.mutateFile("s", f.scope.sessionPath, { + kind: "move", + path: "Case.txt", + identity: await f.identity("Case.txt"), + directory: ".", + name: "case.txt", + }); + assert.equal(result.path, "case.txt"); + assert.equal( + await readFile(join(f.cwd, "case.txt"), "utf8"), + "case original", + ); + assert.deepEqual( + (await f.reader.listFiles("s", ".", "", f.scope.sessionPath)).entries.map( + (entry) => entry.name, + ), + ["case.txt"], + ); + } finally { + await f.cleanup(); + } +}); diff --git a/web/adapter/pi-adapter.ts b/web/adapter/pi-adapter.ts index 735bfcf0..8fea3d1f 100644 --- a/web/adapter/pi-adapter.ts +++ b/web/adapter/pi-adapter.ts @@ -1,4 +1,5 @@ import { createHash } from "node:crypto"; +import { readMessageRerun } from "../protocol/message-rerun.ts"; import { lstat, open, @@ -1368,6 +1369,7 @@ export class PiWebAdapter { path: summary.path, cwd: summary.cwd, ...projected, + rerun: readMessageRerun(branch, manager.getHeader()?.parentSession), history: { leafEntryId: manager.getLeafId(), beforeEntryId: projected.truncation.entriesOmitted > 0 ? projected.entries[0]?.id ?? null : null, @@ -1503,6 +1505,7 @@ export class PiWebAdapter { if (!projected.entries.some((entry) => entry.id === entryId)) return { status: "changed" as const }; const session: WebSessionProjection = { id: summary.id, path: summary.path, cwd: summary.cwd, ...projected, + rerun: readMessageRerun(branch, manager.getHeader()?.parentSession), history: { leafEntryId: manager.getLeafId(), anchorEntryId: entryId, anchorOnBranch: true, beforeEntryId: projected.truncation.entriesOmitted > 0 ? projected.entries[0]?.id ?? null : null }, }; diff --git a/web/dist/app.js b/web/dist/app.js index c49ded3c..49275d81 100644 --- a/web/dist/app.js +++ b/web/dist/app.js @@ -1,60 +1,60 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["app-MermaidPreview.js","app-rolldown-runtime.js","app-jsx-runtime.js","app-chunk-Y2CYZVJY.js","app-src.js","app-chunk-O7XYJQB3.js","app-chunk-ZIGJFQKS.js","app-dist.js","app-chunk-742MDFTN.js","app-chunk-MBY4JIJT.js","app-chunk-DUW6YSOI.js","app-chunk-7PRAP22T.js","app-chunk-7INBJB4K.js","app-chunk-J5ZVWO5B.js","app-rough.esm.js","app-chunk-5DYCD2WN.js","app-chunk-Z7XXMR3K.js","app-line.js","app-path.js","app-array.js","app-chunk-UA2S7LBM.js","app-common.js"])))=>i.map(i=>d[i]); -import{i as e,n as t,t as n}from"./app-rolldown-runtime.js";import{n as r,t as i}from"./app-jsx-runtime.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var a=n((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0>>1,a=e[r];if(0>>1;ri(c,n))li(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(li(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-Tt&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),o=n(((e,t)=>{t.exports=a()})),s=n((e=>{var t=r();function n(e){var t=`https://react.dev/errors/`+e;if(1{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=s()})),l=n((e=>{var t=o(),n=r(),i=c();function a(e){var t=`https://react.dev/errors/`+e;if(1z||(e.current=ee[z],ee[z]=null,z--)}function re(e,t){z++,ee[z]=e.current,e.current=t}var ie=te(null),ae=te(null),oe=te(null),B=te(null);function se(e,t){switch(re(oe,t),re(ae,e),re(ie,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Yd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Yd(t),e=Xd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}ne(ie),re(ie,e)}function ce(){ne(ie),ne(ae),ne(oe)}function le(e){e.memoizedState!==null&&re(B,e);var t=ie.current,n=Xd(t,e.type);t!==n&&(re(ae,e),re(ie,n))}function V(e){ae.current===e&&(ne(ie),ne(ae)),B.current===e&&(ne(B),ap._currentValue=R)}var H,ue;function de(e){if(H===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);H=t&&t[1]||``,ue=-1{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var a=n((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0>>1,a=e[r];if(0>>1;ri(c,n))li(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(li(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-Tt&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),o=n(((e,t)=>{t.exports=a()})),s=n((e=>{var t=r();function n(e){var t=`https://react.dev/errors/`+e;if(1{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=s()})),l=n((e=>{var t=o(),n=r(),i=c();function a(e){var t=`https://react.dev/errors/`+e;if(1B||(e.current=z[B],z[B]=null,B--)}function te(e,t){B++,z[B]=e.current,e.current=t}var ne=V(null),re=V(null),ie=V(null),ae=V(null);function oe(e,t){switch(te(ie,t),te(re,e),te(ne,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Yd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Yd(t),e=Xd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}ee(ne),te(ne,e)}function se(){ee(ne),ee(re),ee(ie)}function ce(e){e.memoizedState!==null&&te(ae,e);var t=ne.current,n=Xd(t,e.type);t!==n&&(te(re,e),te(ne,n))}function H(e){re.current===e&&(ee(ne),ee(re)),ae.current===e&&(ee(ae),ap._currentValue=R)}var U,le;function ue(e){if(U===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);U=t&&t[1]||``,le=-1)`:-1i||c[r]!==l[i]){var u=` -`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(``)&&(u=u.replace(``,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{fe=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?de(n):``}function me(e,t){switch(e.tag){case 26:case 27:case 5:return de(e.type);case 16:return de(`Lazy`);case 13:return e.child!==t&&t!==null?de(`Suspense Fallback`):de(`Suspense`);case 19:return de(`SuspenseList`);case 0:case 15:return pe(e.type,!1);case 11:return pe(e.type.render,!1);case 1:return pe(e.type,!0);case 31:return de(`Activity`);default:return``}}function he(e){try{var t=``,n=null;do t+=me(e,n),n=e,e=e.return;while(e);return t}catch(e){return` +`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(``)&&(u=u.replace(``,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{de=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?ue(n):``}function pe(e,t){switch(e.tag){case 26:case 27:case 5:return ue(e.type);case 16:return ue(`Lazy`);case 13:return e.child!==t&&t!==null?ue(`Suspense Fallback`):ue(`Suspense`);case 19:return ue(`SuspenseList`);case 0:case 15:return fe(e.type,!1);case 11:return fe(e.type.render,!1);case 1:return fe(e.type,!0);case 31:return ue(`Activity`);default:return``}}function me(e){try{var t=``,n=null;do t+=pe(e,n),n=e,e=e.return;while(e);return t}catch(e){return` Error generating stack: `+e.message+` -`+e.stack}}var ge=Object.prototype.hasOwnProperty,_e=t.unstable_scheduleCallback,ve=t.unstable_cancelCallback,ye=t.unstable_shouldYield,be=t.unstable_requestPaint,xe=t.unstable_now,Se=t.unstable_getCurrentPriorityLevel,Ce=t.unstable_ImmediatePriority,we=t.unstable_UserBlockingPriority,Te=t.unstable_NormalPriority,U=t.unstable_LowPriority,Ee=t.unstable_IdlePriority,De=t.log,Oe=t.unstable_setDisableYieldValue,ke=null,Ae=null;function je(e){if(typeof De==`function`&&Oe(e),Ae&&typeof Ae.setStrictMode==`function`)try{Ae.setStrictMode(ke,e)}catch{}}var Me=Math.clz32?Math.clz32:Fe,Ne=Math.log,Pe=Math.LN2;function Fe(e){return e>>>=0,e===0?32:31-(Ne(e)/Pe|0)|0}var Ie=256,Le=262144,Re=4194304;function ze(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Be(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=ze(n))):i=ze(o):i=ze(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=ze(n))):i=ze(o)):i=ze(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Ve(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function He(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ue(){var e=Re;return Re<<=1,!(Re&62914560)&&(Re=4194304),e}function We(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ge(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ke(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0`u`||window.document===void 0||window.document.createElement===void 0),an=!1;if(rn)try{var on={};Object.defineProperty(on,"passive",{get:function(){an=!0}}),window.addEventListener(`test`,on,on),window.removeEventListener(`test`,on,on)}catch{an=!1}var sn=null,cn=null,ln=null;function un(){if(ln)return ln;var e,t=cn,n=t.length,r,i=`value`in sn?sn.value:sn.textContent,a=i.length;for(e=0;e=Hn),Gn=` `,Kn=!1;function qn(e,t){switch(e){case`keyup`:return Bn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Jn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Yn=!1;function Xn(e,t){switch(e){case`compositionend`:return Jn(t);case`keypress`:return t.which===32?(Kn=!0,Gn):null;case`textInput`:return e=t.data,e===Gn&&Kn?null:e;default:return null}}function Zn(e,t){if(Yn)return e===`compositionend`||!Vn&&qn(e,t)?(e=un(),ln=cn=sn=null,Yn=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=vr(n)}}function br(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?br(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function xr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=jt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=jt(e.document)}return t}function Sr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Cr=rn&&`documentMode`in document&&11>=document.documentMode,wr=null,Tr=null,Er=null,Dr=!1;function Or(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Dr||wr==null||wr!==jt(r)||(r=wr,`selectionStart`in r&&Sr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Er&&_r(Er,r)||(Er=r,r=Nd(Tr,`onSelect`),0>=o,i-=o,bi=1<<32-Me(t)+i|n<h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),ki&&Si(i,h),l;if(d===null){for(;hg?(_=h,h=null):_=h.sibling;var y=p(i,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(i,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(i,h),ki&&Si(i,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(i,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return ki&&Si(i,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,i,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(i,e)}),ki&&Si(i,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===y&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case _:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===y){if(r.tag===7){n(e,r.sibling),c=i(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===O&&Ca(l)===r.type){n(e,r.sibling),c=i(r,o.props),Aa(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===y?(c=si(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=oi(o.type,o.key,o.props,null,e.mode,c),Aa(c,o),c.return=e,e=c)}return s(e);case v:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=i(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}t(e,r),r=r.sibling}c=ui(o,e.mode,c),c.return=e,e=c}return s(e);case O:return o=Ca(o),b(e,r,o,c)}if(F(o))return h(e,r,o,c);if(M(o)){if(l=M(o),typeof l!=`function`)throw Error(a(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,ka(o),c);if(o.$$typeof===C)return b(e,r,Zi(e,o),c);ja(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=i(r,o),c.return=e,e=c):(n(e,r),c=ci(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Oa=0;var i=b(e,t,n,r);return Da=null,i}catch(t){if(t===_a||t===ya)throw t;var a=ni(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Na=Ma(!0),Pa=Ma(!1),Fa=!1;function Ia(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function La(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ra(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function G(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,zl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=$r(e),Qr(e,null,n),t}return Yr(e,r,t,n),$r(e)}function za(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Je(e,n)}}function Ba(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Va=!1;function Ha(){if(Va){var e=ca;if(e!==null)throw e}}function Ua(e,t,n,r){Va=!1;var i=e.updateQueue;Fa=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(Hl&f)===f:(r&f)===f){f!==0&&f===sa&&(Va=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(m=g.payload,typeof m==`function`){d=m.call(_,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,f=typeof m==`function`?m.call(_,d,f):m,f==null)break a;d=h({},d,f);break a;case 2:Fa=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Xl|=o,e.lanes=o,e.memoizedState=d}}function Wa(e,t){if(typeof e!=`function`)throw Error(a(191,e));e.call(t)}function Ga(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ea?a:8;var o=I.T,s={};I.T=s,Ms(e,!1,t,n);try{var c=i(),l=I.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?js(e,t,da(c,r),vu(e)):js(e,t,r,vu(e))}catch(n){js(e,t,{then:function(){},status:`rejected`,reason:n},vu())}finally{L.p=a,o!==null&&s.types!==null&&(o.types=s.types),I.T=o}}function xs(){}function Ss(e,t,n,r){if(e.tag!==5)throw Error(a(476));var i=Cs(e).queue;bs(e,i,t,R,n===null?xs:function(){return ws(e),n(r)})}function Cs(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:R,baseState:R,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:No,lastRenderedState:R},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:No,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ws(e){var t=Cs(e);t.next===null&&(t=e.alternate.memoizedState),js(e,t.next.queue,{},vu())}function Ts(){return Xi(ap)}function Es(){return Oo().memoizedState}function Ds(){return Oo().memoizedState}function Os(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=vu();e=Ra(n);var r=G(t,e,n);r!==null&&(bu(r,t,n),za(r,t,n)),t={cache:ra()},e.payload=t;return}t=t.return}}function ks(e,t,n){var r=vu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ns(e)?Ps(t,n):(n=Xr(e,t,n,r),n!==null&&(bu(n,e,r),Fs(n,t,r)))}function As(e,t,n){js(e,t,n,vu())}function js(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ns(e))Ps(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,gr(s,o))return Yr(e,t,i,0),Bl===null&&Jr(),!1}catch{}if(n=Xr(e,t,i,r),n!==null)return bu(n,e,r),Fs(n,t,r),!0}return!1}function Ms(e,t,n,r){if(r={lane:2,revertLane:_d(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ns(e)){if(t)throw Error(a(479))}else t=Xr(e,n,r,2),t!==null&&bu(t,e,2)}function Ns(e){var t=e.alternate;return e===so||t!==null&&t===so}function Ps(e,t){fo=uo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Fs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Je(e,n)}}var Is={readContext:Xi,use:jo,useCallback:vo,useContext:vo,useEffect:vo,useImperativeHandle:vo,useLayoutEffect:vo,useInsertionEffect:vo,useMemo:vo,useReducer:vo,useRef:vo,useState:vo,useDebugValue:vo,useDeferredValue:vo,useTransition:vo,useSyncExternalStore:vo,useId:vo,useHostTransitionStatus:vo,useFormState:vo,useActionState:vo,useOptimistic:vo,useMemoCache:vo,useCacheRefresh:vo};Is.useEffectEvent=vo;var Ls={readContext:Xi,use:jo,useCallback:function(e,t){return Do().memoizedState=[e,t===void 0?null:t],e},useContext:Xi,useEffect:ss,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),as(4194308,4,ps.bind(null,t,e),n)},useLayoutEffect:function(e,t){return as(4194308,4,e,t)},useInsertionEffect:function(e,t){as(4,2,e,t)},useMemo:function(e,t){var n=Do();t=t===void 0?null:t;var r=e();if(po){je(!0);try{e()}finally{je(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Do();if(n!==void 0){var i=n(t);if(po){je(!0);try{n(t)}finally{je(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=ks.bind(null,so,e),[r.memoizedState,e]},useRef:function(e){var t=Do();return e={current:e},t.memoizedState=e},useState:function(e){e=Uo(e);var t=e.queue,n=As.bind(null,so,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:hs,useDeferredValue:function(e,t){return vs(Do(),e,t)},useTransition:function(){var e=Uo(!1);return e=bs.bind(null,so,e.queue,!0,!1),Do().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=so,i=Do();if(ki){if(n===void 0)throw Error(a(407));n=n()}else{if(n=t(),Bl===null)throw Error(a(349));Hl&127||Ro(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,ss(Bo.bind(null,r,o,e),[e]),r.flags|=2048,rs(9,{destroy:void 0},zo.bind(null,r,o,n,t),null),n},useId:function(){var e=Do(),t=Bl.identifierPrefix;if(ki){var n=xi,r=bi;n=(r&~(1<<32-Me(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=mo++,0<\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(i,{is:r.is}):s.createElement(i)}}o[tt]=t,o[nt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Hd(o,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&jc(t)}}return Ic(t),Mc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&jc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(a(166));if(e=oe.current,Ii(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=Di,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[tt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||zd(e.nodeValue,n)),e||Ni(t,!0)}else e=Jd(e).createTextNode(r),e[tt]=t,t.stateNode=e}return Ic(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ii(t),n!==null){if(e===null){if(!r)throw Error(a(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(a(557));e[tt]=t}else Li(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ic(t),e=!1}else n=Ri(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(ro(t),t):(ro(t),null);if(t.flags&128)throw Error(a(558))}return Ic(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Ii(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(a(318));if(i=t.memoizedState,i=i===null?null:i.dehydrated,!i)throw Error(a(317));i[tt]=t}else Li(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ic(t),i=!1}else i=Ri(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(ro(t),t):(ro(t),null)}return ro(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Pc(t,t.updateQueue),Ic(t),null);case 4:return ce(),e===null&&kd(t.stateNode.containerInfo),Ic(t),null;case 10:return Wi(t.type),Ic(t),null;case 19:if(ne(io),r=t.memoizedState,r===null)return Ic(t),null;if(i=!!(t.flags&128),o=r.rendering,o===null)if(i)Fc(r,!1);else{if(Yl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=ao(e),o!==null){for(t.flags|=128,Fc(r,!1),e=o.updateQueue,t.updateQueue=e,Pc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ai(n,e),n=n.sibling;return re(io,io.current&1|2),ki&&Si(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&xe()>ou&&(t.flags|=128,i=!0,Fc(r,!1),t.lanes=4194304)}else{if(!i)if(e=ao(o),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Pc(t,e),Fc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!ki)return Ic(t),null}else 2*xe()-r.renderingStartTime>ou&&n!==536870912&&(t.flags|=128,i=!0,Fc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Ic(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=xe(),e.sibling=null,n=io.current,re(io,i?n&1|2:n&1),ki&&Si(t,r.treeForkCount),e);case 22:case 23:return ro(t),Xa(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Ic(t),t.subtreeFlags&6&&(t.flags|=8192)):Ic(t),n=t.updateQueue,n!==null&&Pc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&ne(pa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Wi(na),Ic(t),null;case 25:return null;case 30:return null}throw Error(a(156,t.tag))}function Rc(e,t){switch(Ti(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Wi(na),ce(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return V(t),null;case 31:if(t.memoizedState!==null){if(ro(t),t.alternate===null)throw Error(a(340));Li()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(ro(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));Li()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ne(io),null;case 4:return ce(),null;case 10:return Wi(t.type),null;case 22:case 23:return ro(t),Xa(),e!==null&&ne(pa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Wi(na),null;case 25:return null;default:return null}}function zc(e,t){switch(Ti(t),t.tag){case 3:Wi(na),ce();break;case 26:case 27:case 5:V(t);break;case 4:ce();break;case 31:t.memoizedState!==null&&ro(t);break;case 13:ro(t);break;case 19:ne(io);break;case 10:Wi(t.type);break;case 22:case 23:ro(t),Xa(),e!==null&&ne(pa);break;case 24:Wi(na)}}function Bc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Xu(t,t.return,e)}}function Vc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Xu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Xu(t,t.return,e)}}function Hc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ga(t,n)}catch(t){Xu(e,e.return,t)}}}function Uc(e,t,n){n.props=Ws(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Xu(e,t,n)}}function Wc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Xu(e,t,n)}}function Gc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Xu(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Xu(e,t,n)}else n.current=null}function Kc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Xu(e,e.return,t)}}function qc(e,t,n){try{var r=e.stateNode;Ud(r,e.type,n,t),r[nt]=t}catch(t){Xu(e,e.return,t)}}function Jc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&of(e.type)||e.tag===4}function Yc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Jc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&of(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Xc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Jt));else if(r!==4&&(r===27&&of(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Xc(e,t,n),e=e.sibling;e!==null;)Xc(e,t,n),e=e.sibling}function Zc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&of(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Zc(e,t,n),e=e.sibling;e!==null;)Zc(e,t,n),e=e.sibling}function Qc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Hd(t,r,n),t[tt]=e,t[nt]=n}catch(t){Xu(e,e.return,t)}}var $c=!1,el=!1,tl=!1,nl=typeof WeakSet==`function`?WeakSet:Set,rl=null;function il(e,t){if(e=e.containerInfo,Kd=pp,e=xr(e),Sr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||i!==0&&f.nodeType!==3||(c=s+i),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===i&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(qd={focusedElem:e,selectionRange:n},pp=!1,rl=t;rl!==null;)if(t=rl,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,rl=e;else for(;rl!==null;){switch(t=rl,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n title`))),Hd(o,r,n),o[tt]=e,mt(o),r=o;break a;case`link`:var s=Yf(`link`,`href`,i).get(r+(n.href||``));if(s){for(var c=0;cg&&(o=g,g=h,h=o);var _=yr(s,h),v=yr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;sn?32:n,I.T=null,n=mu,mu=null;var o=uu,s=fu;if(lu=0,du=uu=null,fu=0,zl&6)throw Error(a(331));var c=zl;if(zl|=4,Pl(o.current),El(o,o.current,s,n),zl=c,ud(0,!1),Ae&&typeof Ae.onPostCommitFiberRoot==`function`)try{Ae.onPostCommitFiberRoot(ke,o)}catch{}return!0}finally{L.p=i,I.T=r,Ku(e,t)}}function Yu(e,t,n){t=fi(n,t),t=Xs(e.stateNode,t,2),e=G(e,t,2),e!==null&&(Ge(e,2),ld(e))}function Xu(e,t,n){if(e.tag===3)Yu(e,e,n);else for(;t!==null;){if(t.tag===3){Yu(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(cu===null||!cu.has(r))){e=fi(n,e),n=Zs(2),r=G(t,n,2),r!==null&&(Qs(n,r,t,e),Ge(r,2),ld(r));break}}t=t.return}}function Zu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Rl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(ql=!0,i.add(n),e=Qu.bind(null,e,t,n),t.then(e,e))}function Qu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Bl===e&&(Hl&n)===n&&(Yl===4||Yl===3&&(Hl&62914560)===Hl&&300>xe()-iu?!(zl&2)&&Du(e,0):Ql|=n,eu===Hl&&(eu=0)),ld(e)}function $u(e,t){t===0&&(t=Ue()),e=Zr(e,t),e!==null&&(Ge(e,t),ld(e))}function ed(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),$u(e,n)}function td(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(a(314))}r!==null&&r.delete(t),$u(e,n)}function nd(e,t){return _e(e,t)}var rd=null,id=null,ad=!1,od=!1,sd=!1,cd=0;function ld(e){e!==id&&e.next===null&&(id===null?rd=id=e:id=id.next=e),od=!0,ad||(ad=!0,gd())}function ud(e,t){if(!sd&&od){sd=!0;do for(var n=!1,r=rd;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Me(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,hd(r,a))}else a=Hl,a=Be(r,r===Bl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Ve(r,a)||(n=!0,hd(r,a));r=r.next}while(n);sd=!1}}function dd(){fd()}function fd(){od=ad=!1;var e=0;cd!==0&&$d()&&(e=cd);for(var t=xe(),n=null,r=rd;r!==null;){var i=r.next,a=pd(r,t);a===0?(r.next=null,n===null?rd=i:n.next=i,i===null&&(id=n)):(n=r,(e!==0||a&3)&&(od=!0)),r=i}lu!==0&&lu!==5||ud(e,!1),cd!==0&&(cd=0)}function pd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0s)break;var u=c.transferSize,d=c.initiatorType;u&&Wd(d)&&(c=c.responseEnd,o+=u*(c`u`?null:document;function kf(e,t,n){var r=Of;if(r&&typeof t==`string`&&t){var i=Nt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Cf.has(i)||(Cf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Hd(t,`link`,e),mt(t),r.head.appendChild(t)))}}function Af(e){Tf.D(e),kf(`dns-prefetch`,e,null)}function jf(e,t){Tf.C(e,t),kf(`preconnect`,e,t)}function Mf(e,t,n){Tf.L(e,t,n);var r=Of;if(r&&e&&t){var i=`link[rel="preload"][as="`+Nt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Nt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Nt(n.imageSizes)+`"]`)):i+=`[href="`+Nt(e)+`"]`;var a=i;switch(t){case`style`:a=Rf(e);break;case`script`:a=Hf(e)}Sf.has(a)||(e=h({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Sf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(zf(a))||t===`script`&&r.querySelector(Uf(a))||(t=r.createElement(`link`),Hd(t,`link`,e),mt(t),r.head.appendChild(t)))}}function Nf(e,t){Tf.m(e,t);var n=Of;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Nt(r)+`"][href="`+Nt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Hf(e)}if(!Sf.has(a)&&(e=h({rel:`modulepreload`,href:e},t),Sf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Uf(a)))return}r=n.createElement(`link`),Hd(r,`link`,e),mt(r),n.head.appendChild(r)}}}function Pf(e,t,n){Tf.S(e,t,n);var r=Of;if(r&&e){var i=pt(r).hoistableStyles,a=Rf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(zf(a)))s.loading=5;else{e=h({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Sf.get(a))&&Kf(e,n);var c=o=r.createElement(`link`);mt(c),Hd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Gf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Ff(e,t){Tf.X(e,t);var n=Of;if(n&&e){var r=pt(n).hoistableScripts,i=Hf(e),a=r.get(i);a||(a=n.querySelector(Uf(i)),a||(e=h({src:e,async:!0},t),(t=Sf.get(i))&&qf(e,t),a=n.createElement(`script`),mt(a),Hd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function If(e,t){Tf.M(e,t);var n=Of;if(n&&e){var r=pt(n).hoistableScripts,i=Hf(e),a=r.get(i);a||(a=n.querySelector(Uf(i)),a||(e=h({src:e,async:!0,type:`module`},t),(t=Sf.get(i))&&qf(e,t),a=n.createElement(`script`),mt(a),Hd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Lf(e,t,n,r){var i=(i=oe.current)?wf(i):null;if(!i)throw Error(a(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Rf(n.href),n=pt(i).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Rf(n.href);var o=pt(i).hoistableStyles,s=o.get(e);if(s||(i=i.ownerDocument||i,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=i.querySelector(zf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),Sf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Sf.set(e,n),o||Vf(i,e,n,s.state))),t&&r===null)throw Error(a(528,``));return s}if(t&&r!==null)throw Error(a(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Hf(n),n=pt(i).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(a(444,e))}}function Rf(e){return`href="`+Nt(e)+`"`}function zf(e){return`link[rel="stylesheet"][`+e+`]`}function Bf(e){return h({},e,{"data-precedence":e.precedence,precedence:null})}function Vf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Hd(t,`link`,n),mt(t),e.head.appendChild(t))}function Hf(e){return`[src="`+Nt(e)+`"]`}function Uf(e){return`script[async]`+e}function Wf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Nt(n.href)+`"]`);if(r)return t.instance=r,mt(r),r;var i=h({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),mt(r),Hd(r,`style`,i),Gf(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Rf(n.href);var o=e.querySelector(zf(i));if(o)return t.state.loading|=4,t.instance=o,mt(o),o;r=Bf(n),(i=Sf.get(i))&&Kf(r,i),o=(e.ownerDocument||e).createElement(`link`),mt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Hd(o,`link`,r),t.state.loading|=4,Gf(o,n.precedence,e),t.instance=o;case`script`:return o=Hf(n.src),(i=e.querySelector(Uf(o)))?(t.instance=i,mt(i),i):(r=n,(i=Sf.get(o))&&(r=h({},n),qf(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),mt(i),Hd(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(a(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Gf(r,n.precedence,e));return t.instance}function Gf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o title`):null)}function Zf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Qf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function $f(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Rf(r.href),a=t.querySelector(zf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=tp.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,mt(a);return}a=t.ownerDocument||t,r=Bf(r),(i=Sf.get(i))&&Kf(r,i),a=a.createElement(`link`),mt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Hd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=tp.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var ep=0;function K(e,t){return e.stylesheets&&e.count===0&&rp(e,e.stylesheets),0ep?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function tp(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)rp(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var np=null;function rp(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,np=new Map,t.forEach(ip,e),np=null,tp.call(e))}function ip(e,t){if(!(t.state.loading&4)){var n=np.get(e);if(n)var r=n.get(null);else{n=new Map,np.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=l()})),d=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),f=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),p=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),m=e=>{let t=p(e);return t.charAt(0).toUpperCase()+t.slice(1)},h={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},g=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},_=e(r(),1),v=(0,_.createContext)({}),y=()=>(0,_.useContext)(v),b=(0,_.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>{let{size:l=24,strokeWidth:u=2,absoluteStrokeWidth:f=!1,color:p=`currentColor`,className:m=``}=y()??{},v=r??f?Number(n??u)*24/Number(t??l):n??u;return(0,_.createElement)(`svg`,{ref:c,...h,width:t??l??h.width,height:t??l??h.height,stroke:e??p,strokeWidth:v,className:d(`lucide`,m,i),...!a&&!g(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,_.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),x=(e,t)=>{let n=(0,_.forwardRef)(({className:n,...r},i)=>(0,_.createElement)(b,{ref:i,iconNode:t,className:d(`lucide-${f(m(e))}`,`lucide-${e}`,n),...r}));return n.displayName=m(e),n},S=x(`archive-restore`,[[`rect`,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`,key:`1wp1u1`}],[`path`,{d:`M4 8v11a2 2 0 0 0 2 2h2`,key:`tvwodi`}],[`path`,{d:`M20 8v11a2 2 0 0 1-2 2h-2`,key:`1gkqxj`}],[`path`,{d:`m9 15 3-3 3 3`,key:`1pd0qc`}],[`path`,{d:`M12 12v9`,key:`192myk`}]]),C=x(`archive`,[[`rect`,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`,key:`1wp1u1`}],[`path`,{d:`M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8`,key:`1s80jp`}],[`path`,{d:`M10 12h4`,key:`a56b0p`}]]),w=x(`arrow-down`,[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]),T=x(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),E=x(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),D=x(`arrow-up-down`,[[`path`,{d:`m21 16-4 4-4-4`,key:`f6ql7i`}],[`path`,{d:`M17 20V4`,key:`1ejh1v`}],[`path`,{d:`m3 8 4-4 4 4`,key:`11wl7u`}],[`path`,{d:`M7 4v16`,key:`1glfcx`}]]),O=x(`arrow-up`,[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]),k=x(`bot`,[[`path`,{d:`M12 8V4H8`,key:`hb8ula`}],[`rect`,{width:`16`,height:`12`,x:`4`,y:`8`,rx:`2`,key:`enze0r`}],[`path`,{d:`M2 14h2`,key:`vft8re`}],[`path`,{d:`M20 14h2`,key:`4cs60a`}],[`path`,{d:`M15 13v2`,key:`1xurst`}],[`path`,{d:`M9 13v2`,key:`rq6x2g`}]]),A=x(`calendar`,[[`path`,{d:`M8 2v3`,key:`1ioesn`}],[`path`,{d:`M16 2v3`,key:`otl347`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}],[`path`,{d:`M3 9h18`,key:`1pudct`}]]),j=x(`check-check`,[[`path`,{d:`M18 6 7 17l-5-5`,key:`116fxf`}],[`path`,{d:`m22 10-7.5 7.5L13 16`,key:`ke71qq`}]]),M=x(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),N=x(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),P=x(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),F=x(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),I=x(`chevrons-left`,[[`path`,{d:`m11 17-5-5 5-5`,key:`13zhaf`}],[`path`,{d:`m18 17-5-5 5-5`,key:`h8a8et`}]]),L=x(`chevrons-right`,[[`path`,{d:`m6 17 5-5-5-5`,key:`xnjwq`}],[`path`,{d:`m13 17 5-5-5-5`,key:`17xmmf`}]]),R=x(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),ee=x(`circle-check-big`,[[`path`,{d:`M21.801 10A10 10 0 1 1 17 3.335`,key:`yps3ct`}],[`path`,{d:`m9 11 3 3L22 4`,key:`1pflzl`}]]),z=x(`circle-stop`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`rect`,{x:`9`,y:`9`,width:`6`,height:`6`,rx:`1`,key:`1ssd4o`}]]),te=x(`circle-x`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),ne=x(`circle`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),re=x(`clipboard`,[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}]]),ie=x(`clock`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]),ae=x(`cloud-fog`,[[`path`,{d:`M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242`,key:`1pljnt`}],[`path`,{d:`M16 17H7`,key:`pygtm1`}],[`path`,{d:`M17 21H9`,key:`1u2q02`}]]),oe=x(`code-xml`,[[`path`,{d:`m18 16 4-4-4-4`,key:`1inbqp`}],[`path`,{d:`m6 8-4 4 4 4`,key:`15zrgr`}],[`path`,{d:`m14.5 4-5 16`,key:`e7oirm`}]]),B=x(`columns-2`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M12 3v18`,key:`108xh3`}]]),se=x(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),ce=x(`corner-down-right`,[[`path`,{d:`m15 10 5 5-5 5`,key:`qqa56n`}],[`path`,{d:`M4 4v7a4 4 0 0 0 4 4h12`,key:`z08zvw`}]]),le=x(`cpu`,[[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M17 20v2`,key:`1rnc9c`}],[`path`,{d:`M17 2v2`,key:`11trls`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M2 17h2`,key:`7oei6x`}],[`path`,{d:`M2 7h2`,key:`asdhe0`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`M20 17h2`,key:`1fpfkl`}],[`path`,{d:`M20 7h2`,key:`1o8tra`}],[`path`,{d:`M7 20v2`,key:`4gnj0m`}],[`path`,{d:`M7 2v2`,key:`1i4yhu`}],[`rect`,{x:`4`,y:`4`,width:`16`,height:`16`,rx:`2`,key:`1vbyd7`}],[`rect`,{x:`8`,y:`8`,width:`8`,height:`8`,rx:`1`,key:`z9xiuo`}]]),V=x(`download`,[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]),H=x(`earth`,[[`path`,{d:`M21.54 15H17a2 2 0 0 0-2 2v4.54`,key:`1djwo0`}],[`path`,{d:`M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17`,key:`1tzkfa`}],[`path`,{d:`M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05`,key:`14pb5j`}],[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),ue=x(`ellipsis`,[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`19`,cy:`12`,r:`1`,key:`1wjl8i`}],[`circle`,{cx:`5`,cy:`12`,r:`1`,key:`1pcz8c`}]]),de=x(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),fe=x(`eye-off`,[[`path`,{d:`M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49`,key:`ct8e1f`}],[`path`,{d:`M14.084 14.158a3 3 0 0 1-4.242-4.242`,key:`151rxh`}],[`path`,{d:`M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143`,key:`13bj9a`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),pe=x(`eye`,[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),me=x(`file-code-corner`,[[`path`,{d:`M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35`,key:`1wthlu`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m5 16-3 3 3 3`,key:`331omg`}],[`path`,{d:`m9 22 3-3-3-3`,key:`lsp7cz`}]]),he=x(`file-diff`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M9 10h6`,key:`9gxzsh`}],[`path`,{d:`M12 13V7`,key:`h0r20n`}],[`path`,{d:`M9 17h6`,key:`r8uit2`}]]),ge=x(`file-image`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`circle`,{cx:`10`,cy:`12`,r:`2`,key:`737tya`}],[`path`,{d:`m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22`,key:`wt3hpn`}]]),_e=x(`file-pen-line`,[[`path`,{d:`M14.364 13.634a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506l4.013-4.009a1 1 0 0 0-3.004-3.004z`,key:`ukzhwg`}],[`path`,{d:`M14.487 7.858A1 1 0 0 1 14 7V2`,key:`1klhew`}],[`path`,{d:`M20 19.645V20a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l2.516 2.516`,key:`rxaxab`}],[`path`,{d:`M8 18h1`,key:`13wk12`}]]),ve=x(`file-plus-corner`,[[`path`,{d:`M11.35 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v5.35`,key:`17jvcc`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M14 19h6`,key:`bvotb8`}],[`path`,{d:`M17 16v6`,key:`18yu1i`}]]),ye=x(`file-text`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]),be=x(`file`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}]]),xe=x(`flower-2`,[[`path`,{d:`M12 5a3 3 0 1 1 3 3m-3-3a3 3 0 1 0-3 3m3-3v1M9 8a3 3 0 1 0 3 3M9 8h1m5 0a3 3 0 1 1-3 3m3-3h-1m-2 3v-1`,key:`3pnvol`}],[`circle`,{cx:`12`,cy:`8`,r:`2`,key:`1822b1`}],[`path`,{d:`M12 10v12`,key:`6ubwww`}],[`path`,{d:`M12 22c4.2 0 7-1.667 7-5-4.2 0-7 1.667-7 5Z`,key:`9hd38g`}],[`path`,{d:`M12 22c-4.2 0-7-1.667-7-5 4.2 0 7 1.667 7 5Z`,key:`ufn41s`}]]),Se=x(`folder-cog`,[[`path`,{d:`M10.3 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.98a2 2 0 0 1 1.69.9l.66 1.2A2 2 0 0 0 12 6h8a2 2 0 0 1 2 2v3.3`,key:`128dxu`}],[`path`,{d:`m14.305 19.53.923-.382`,key:`3m78fa`}],[`path`,{d:`m15.228 16.852-.923-.383`,key:`npixar`}],[`path`,{d:`m16.852 15.228-.383-.923`,key:`5xggr7`}],[`path`,{d:`m16.852 20.772-.383.924`,key:`dpfhf9`}],[`path`,{d:`m19.148 15.228.383-.923`,key:`1reyyz`}],[`path`,{d:`m19.53 21.696-.382-.924`,key:`1goivc`}],[`path`,{d:`m20.772 16.852.924-.383`,key:`htqkph`}],[`path`,{d:`m20.772 19.148.924.383`,key:`9w9pjp`}],[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}]]),Ce=x(`folder-open`,[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`,key:`usdka0`}]]),we=x(`folder-plus`,[[`path`,{d:`M12 10v6`,key:`1bos4e`}],[`path`,{d:`M9 13h6`,key:`1uhe8q`}],[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),Te=x(`folder`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),U=x(`funnel`,[[`path`,{d:`M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z`,key:`sc7q7i`}]]),Ee=x(`gauge`,[[`path`,{d:`m12 14 4-4`,key:`9kzdfg`}],[`path`,{d:`M3.34 19a10 10 0 1 1 17.32 0`,key:`19p75a`}]]),De=x(`git-branch`,[[`path`,{d:`M15 6a9 9 0 0 0-9 9V3`,key:`1cii5b`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}]]),Oe=x(`globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),ke=x(`image-plus`,[[`path`,{d:`M16 5h6`,key:`1vod17`}],[`path`,{d:`M19 2v6`,key:`4bpg5p`}],[`path`,{d:`M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5`,key:`1ue2ih`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}]]),Ae=x(`image`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]),je=x(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),Me=x(`key-round`,[[`path`,{d:`M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z`,key:`1s6t7t`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`w0ekpg`}]]),Ne=x(`layers`,[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`,key:`zw3jo`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`,key:`1wduqc`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`,key:`kqbvx6`}]]),Pe=x(`lightbulb`,[[`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`,key:`1gvzjb`}],[`path`,{d:`M9 18h6`,key:`x1upvd`}],[`path`,{d:`M10 22h4`,key:`ceow96`}]]),Fe=x(`link`,[[`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`,key:`1cjeqo`}],[`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`,key:`19qd67`}]]),Ie=x(`list-checks`,[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`path`,{d:`m3 7 2 2 4-4`,key:`1obspn`}]]),Le=x(`list-ordered`,[[`path`,{d:`M11 5h10`,key:`1cz7ny`}],[`path`,{d:`M11 12h10`,key:`1438ji`}],[`path`,{d:`M11 19h10`,key:`11t30w`}],[`path`,{d:`M4 4h1v5`,key:`10yrso`}],[`path`,{d:`M4 9h2`,key:`r1h2o0`}],[`path`,{d:`M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02`,key:`xtkcd5`}]]),Re=x(`list-tree`,[[`path`,{d:`M8 5h13`,key:`1pao27`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`M3 10a2 2 0 0 0 2 2h3`,key:`1npucw`}],[`path`,{d:`M3 5v12a2 2 0 0 0 2 2h3`,key:`x1gjn2`}]]),ze=x(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]),Be=x(`maximize-2`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`m21 3-7 7`,key:`1l2asr`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M9 21H3v-6`,key:`wtvkvv`}]]),Ve=x(`maximize`,[[`path`,{d:`M8 3H5a2 2 0 0 0-2 2v3`,key:`1dcmit`}],[`path`,{d:`M21 8V5a2 2 0 0 0-2-2h-3`,key:`1e4gt3`}],[`path`,{d:`M3 16v3a2 2 0 0 0 2 2h3`,key:`wsl5sc`}],[`path`,{d:`M16 21h3a2 2 0 0 0 2-2v-3`,key:`18trek`}]]),He=x(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),Ue=x(`message-circle-question-mark`,[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),We=x(`message-square-plus`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}],[`path`,{d:`M12 8v6`,key:`1ib9pf`}],[`path`,{d:`M9 11h6`,key:`1fldmi`}]]),Ge=x(`message-square`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}]]),Ke=x(`messages-square`,[[`path`,{d:`M16 10a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 14.286V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z`,key:`1n2ejm`}],[`path`,{d:`M20 9a2 2 0 0 1 2 2v10.286a.71.71 0 0 1-1.212.502l-2.202-2.202A2 2 0 0 0 17.172 19H10a2 2 0 0 1-2-2v-1`,key:`1qfcsi`}]]),qe=x(`mic`,[[`path`,{d:`M12 19v3`,key:`npa21l`}],[`path`,{d:`M19 10v2a7 7 0 0 1-14 0v-2`,key:`1vc78b`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`13`,rx:`3`,key:`s6n7sd`}]]),Je=x(`minimize-2`,[[`path`,{d:`m14 10 7-7`,key:`oa77jy`}],[`path`,{d:`M20 10h-6V4`,key:`mjg0md`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M4 14h6v6`,key:`rmj7iw`}]]),Ye=x(`minus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]),Xe=x(`monitor`,[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]),Ze=x(`moon`,[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]),Qe=x(`panel-left-close`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`m16 15-3-3 3-3`,key:`14y99z`}]]),$e=x(`panel-left-open`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`m14 9 3 3-3 3`,key:`8010ee`}]]),et=x(`panel-right`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}]]),tt=x(`pencil`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]),nt=x(`pin`,[[`path`,{d:`M12 17v5`,key:`bb1du9`}],[`path`,{d:`M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z`,key:`1nkz8b`}]]),rt=x(`plug`,[[`path`,{d:`M12 22v-5`,key:`1ega77`}],[`path`,{d:`M15 8V2`,key:`18g5xt`}],[`path`,{d:`M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z`,key:`1xoxul`}],[`path`,{d:`M9 8V2`,key:`14iosj`}]]),it=x(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),at=x(`puzzle`,[[`path`,{d:`M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z`,key:`w46dr5`}]]),ot=x(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]),st=x(`rotate-ccw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]),ct=x(`scan`,[[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`,key:`aa7l1z`}],[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`,key:`4qcy5o`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`,key:`6vwrx8`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`,key:`ioqczr`}]]),lt=x(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),ut=x(`send`,[[`path`,{d:`M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z`,key:`1ffxy3`}],[`path`,{d:`m21.854 2.147-10.94 10.939`,key:`12cjpa`}]]),dt=x(`settings-2`,[[`path`,{d:`M14 17H5`,key:`gfn3mx`}],[`path`,{d:`M19 7h-9`,key:`6i9tg`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}],[`circle`,{cx:`7`,cy:`7`,r:`3`,key:`dfmy0x`}]]),ft=x(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),pt=x(`sheet`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`line`,{x1:`3`,x2:`21`,y1:`9`,y2:`9`,key:`1vqk6q`}],[`line`,{x1:`3`,x2:`21`,y1:`15`,y2:`15`,key:`o2sbyz`}],[`line`,{x1:`9`,x2:`9`,y1:`9`,y2:`21`,key:`1ib60c`}],[`line`,{x1:`15`,x2:`15`,y1:`9`,y2:`21`,key:`1n26ft`}]]),mt=x(`sliders-horizontal`,[[`path`,{d:`M10 5H3`,key:`1qgfaw`}],[`path`,{d:`M12 19H3`,key:`yhmn1j`}],[`path`,{d:`M14 3v4`,key:`1sua03`}],[`path`,{d:`M16 17v4`,key:`1q0r14`}],[`path`,{d:`M21 12h-9`,key:`1o4lsq`}],[`path`,{d:`M21 19h-5`,key:`1rlt1p`}],[`path`,{d:`M21 5h-7`,key:`1oszz2`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M8 12H3`,key:`a7s4jb`}]]),ht=x(`sparkles`,[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]),gt=x(`square-pen`,[[`path`,{d:`M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7`,key:`1m0v6g`}],[`path`,{d:`M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z`,key:`ohrbg2`}]]),_t=x(`square-terminal`,[[`path`,{d:`m7 11 2-2-2-2`,key:`1lz0vl`}],[`path`,{d:`M11 13h4`,key:`1p7l4v`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}]]),vt=x(`square`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]),yt=x(`sun`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]),bt=x(`target`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`circle`,{cx:`12`,cy:`12`,r:`6`,key:`1vlfrh`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}]]),xt=x(`terminal`,[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]),St=x(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),Ct=x(`tree-pine`,[[`path`,{d:`m17 14 3 3.3a1 1 0 0 1-.7 1.7H4.7a1 1 0 0 1-.7-1.7L7 14h-.3a1 1 0 0 1-.7-1.7L9 9h-.2A1 1 0 0 1 8 7.3L12 3l4 4.3a1 1 0 0 1-.8 1.7H15l3 3.3a1 1 0 0 1-.7 1.7H17Z`,key:`cpyugq`}],[`path`,{d:`M12 22v-3`,key:`kmzjlo`}]]),wt=x(`triangle-alert`,[[`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`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),Tt=x(`upload`,[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]),Et=x(`workflow`,[[`rect`,{width:`8`,height:`8`,x:`3`,y:`3`,rx:`2`,key:`by2w9f`}],[`path`,{d:`M7 11v4a2 2 0 0 0 2 2h4`,key:`xkn7yn`}],[`rect`,{width:`8`,height:`8`,x:`13`,y:`13`,rx:`2`,key:`1cgmvn`}]]),Dt=x(`wrench`,[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`,key:`1ngwbx`}]]),Ot=x(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),kt=u(),At=e=>typeof e==`string`,jt=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},Mt=e=>e==null?``:String(e),Nt=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},Pt=/###/g,Ft=e=>e&&e.includes(`###`)?e.replace(Pt,`.`):e,It=e=>!e||At(e),Lt=(e,t,n)=>{let r=At(t)?t.split(`.`):t,i=0;for(;i{let{obj:r,k:i}=Lt(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],o=t.slice(0,t.length-1),s=Lt(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=Lt(e,o,Object),s?.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},zt=(e,t,n,r)=>{let{obj:i,k:a}=Lt(e,t,Object);i[a]=i[a]||[],i[a].push(n)},Bt=(e,t)=>{let{obj:n,k:r}=Lt(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},Vt=(e,t,n)=>{let r=Bt(e,n);return r===void 0?Bt(t,n):r},Ht=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(Object.prototype.hasOwnProperty.call(e,r)?At(e[r])||e[r]instanceof String||At(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):Ht(e[r],t[r],n):e[r]=t[r]);return e},Ut=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),Wt={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`,"/":`/`},Gt=e=>At(e)?e.replace(/[&<>"'\/]/g,e=>Wt[e]):e,Kt=class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(t!==void 0)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}},qt=[` `,`,`,`?`,`!`,`;`],Jt=new Kt(20),Yt=(e,t,n)=>{t||=``,n||=``;let r=qt.filter(e=>!t.includes(e)&&!n.includes(e));if(r.length===0)return!0;let i=Jt.getRegExp(`(${r.map(e=>e===`?`?`\\?`:e).join(`|`)})`),a=!i.test(e);if(!a){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(a=!0)}return a},Xt=(e,t,n=`.`)=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let r=t.split(n),i=e;for(let e=0;ee?.replace(/_/g,`-`),Qt={type:`logger`,log(e){this.output(`log`,e)},warn(e){this.output(`warn`,e)},error(e){this.output(`error`,e)},output(e,t){console?.[e]?.apply?.(console,t)}},$t=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||`i18next:`,this.logger=e||Qt,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,`log`,``,!0)}warn(...e){return this.forward(e,`warn`,``,!0)}error(...e){return this.forward(e,`error`,``)}deprecate(...e){return this.forward(e,`warn`,`WARNING DEPRECATED: `,!0)}forward(e,t,n,r){return r&&!this.debug?null:(e=e.map(e=>At(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g,` `):e),At(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t||=this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},en=class{constructor(){this.observers={}}on(e,t){return e.split(` `).forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}once(e,t){let n=(...r)=>{t(...r),this.off(e,n)};return this.on(e,n),this}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r{for(let i=0;i-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){let i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o;e.includes(`.`)?o=e.split(`.`):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):At(n)&&i?o.push(...n.split(i)):o.push(n)));let s=Bt(this.data,o);return!s&&!t&&!n&&e.includes(`.`)&&(e=o[0],t=o[1],n=o.slice(2).join(`.`)),s||!a||!At(n)?s:Xt(this.data?.[e]?.[t],n,i)}addResource(e,t,n,r,i={silent:!1}){let a=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.includes(`.`)&&(o=e.split(`.`),r=t,t=o[1]),this.addNamespaces(t),Rt(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(let r in n)(At(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit(`added`,e,t,n)}addResourceBundle(e,t,n,r,i,a={silent:!1,skipCopy:!1}){let o=[e,t];e.includes(`.`)&&(o=e.split(`.`),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=Bt(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?Ht(s,n,i):s={...s,...n},Rt(this.data,o,s),a.silent||this.emit(`added`,e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(`removed`,e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||=this.options.defaultNS,this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}},nn={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,i)??t}),t}},rn=Symbol(`i18next/PATH_KEY`);function an(){let e=[],t=Object.create(null),n;return t.get=(r,i)=>(n?.revoke?.(),i===rn?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function on(e,t){let{[rn]:n}=e(an()),r=t?.keySeparator??`.`,i=t?.nsSeparator??`:`,a=t?.enableSelector===`strict`;if(n.length>1&&i){let e=t?.ns,o=a?Array.isArray(e)?e:e?[e]:null:Array.isArray(e)?e:null;if(o&&(a?o:o.length>1?o.slice(1):[]).includes(n[0]))return`${n[0]}${i}${n.slice(1).join(r)}`}return n.join(r)}var sn=e=>!At(e)&&typeof e!=`boolean`&&typeof e!=`number`,cn=class e extends en{constructor(e,t={}){super(),Nt([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=$t.create(`translator`),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let n={...t};if(e==null)return!1;let r=this.resolve(e,n);if(r?.res===void 0)return!1;let i=sn(r.res);return!(n.returnObjects===!1&&i)}extractFromKey(e,t){let n=t.nsSeparator===void 0?this.options.nsSeparator:t.nsSeparator;n===void 0&&(n=`:`);let r=t.keySeparator===void 0?this.options.keySeparator:t.keySeparator,i=t.ns||this.options.defaultNS||[],a=n&&e.includes(n),o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!Yt(e,n,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:At(i)?[i]:i};let a=e.split(n);(n!==r||n===r&&this.options.ns.includes(a[0]))&&(i=a.shift()),e=a.join(r)}return{key:e,namespaces:At(i)?[i]:i}}translate(t,n,r){let i=typeof n==`object`?{...n}:n;if(typeof i!=`object`&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i==`object`&&(i={...i}),i||={},t==null)return``;typeof t==`function`&&(t=on(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(e=>typeof e==`function`?on(e,{...this.options,...i}):String(e));let a=i.returnDetails===void 0?this.options.returnDetails:i.returnDetails,o=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,{key:s,namespaces:c}=this.extractFromKey(t[t.length-1],i),l=c[c.length-1],u=i.nsSeparator===void 0?this.options.nsSeparator:i.nsSeparator;u===void 0&&(u=`:`);let d=i.lng||this.language,f=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()===`cimode`)return f?a?{res:`${l}${u}${s}`,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:`${l}${u}${s}`:a?{res:s,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:s;let p=this.resolve(t,i),m=p?.res,h=p?.usedKey||s,g=p?.exactUsedKey||s,_=[`[object Number]`,`[object Function]`,`[object RegExp]`],v=i.joinArrays===void 0?this.options.joinArrays:i.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,b=i.count!==void 0&&!At(i.count),x=e.hasDefaultValue(i),S=b?this.pluralResolver.getSuffix(d,i.count,i):``,C=i.ordinal&&b?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):``,w=b&&!i.ordinal&&i.count===0,T=w&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${S}`]||i[`defaultValue${C}`]||i.defaultValue,E=m;y&&!m&&x&&(E=T);let D=sn(E),O=Object.prototype.toString.apply(E);if(y&&E&&D&&!_.includes(O)&&!(At(v)&&Array.isArray(E))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,E,{...i,ns:c}):`key '${s} (${this.language})' returned an object instead of string.`;return a?(p.res=e,p.usedParams=this.getUsedParamsDetails(i),p):e}if(o){let e=Array.isArray(E),t=e?[]:{},n=e?g:h;for(let e in E)if(Object.prototype.hasOwnProperty.call(E,e)){let r=`${n}${o}${e}`;t[e]=x&&!m?this.translate(r,{...i,defaultValue:sn(T)?T[e]:void 0,joinArrays:!1,ns:c}):this.translate(r,{...i,joinArrays:!1,ns:c}),t[e]===r&&(t[e]=E[e])}m=t}}else if(y&&At(v)&&Array.isArray(m))m=m.join(v),m&&=this.extendTranslation(m,t,i,r);else{let e=!1,n=!1;!this.isValidLookup(m)&&x&&(e=!0,m=T),this.isValidLookup(m)||(n=!0,m=s);let a=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&n?void 0:m,c=x&&T!==m&&this.options.updateMissing;if(n||e||c){if(this.logger.log(c?`updateKey`:`missingKey`,d,l,b&&!c?`${s}${this.pluralResolver.getSuffix(d,i.count,i)}`:s,c?T:m),o){let e=this.resolve(s,{...i,keySeparator:!1});e&&e.res&&this.logger.warn(`Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.`)}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo===`fallback`&&t&&t[0])for(let n=0;n{let r=x&&n!==m?n:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,r,c,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,r,c,i),this.emit(`missingKey`,e,l,t,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,i);w&&i[`defaultValue${this.options.pluralSeparator}zero`]&&!t.includes(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],s+t,i[`defaultValue${t}`]||T)})}):n(e,s,T))}m=this.extendTranslation(m,t,i,p,r),n&&m===s&&this.options.appendNamespaceToMissingKey&&(m=`${l}${u}${s}`),(n||e)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${s}`:s,e?m:void 0,i))}return a?(p.res=m,p.usedParams=this.getUsedParamsDetails(i),p):m}extendTranslation(e,t,n,r,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let a=At(e)&&(n?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:n.interpolation.skipOnVariables),o;if(a){let t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let s=n.replace&&!At(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||r.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;oi?.[0]===e[0]&&!n.context?(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null):this.translate(...e,t),n)),n.interpolation&&this.interpolator.reset()}let a=n.postProcess||this.options.postProcess,o=At(a)?[a]:a;return e!=null&&o?.length&&n.applyPostProcessor!==!1&&(e=nn.handle(o,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,i,a,o;return At(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>typeof e==`function`?on(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),c=s.key;r=c;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));let u=t.count!==void 0&&!At(t.count),d=u&&!t.ordinal&&t.count===0,f=t.context!==void 0&&(At(t.context)||typeof t.context==`number`)&&t.context!==``,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);l.forEach(e=>{this.isValidLookup(n)||(o=e,!this.checkedLoadedFor[`${p[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(this.checkedLoadedFor[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(`, `)}" won't get resolved as namespace "${o}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`)),p.forEach(r=>{if(this.isValidLookup(n))return;a=r;let o=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(t.ordinal&&e.startsWith(i)&&o.push(c+e.replace(i,this.options.pluralSeparator)),o.push(c+e),d&&o.push(c+n)),f){let r=`${c}${this.options.contextSeparator||`_`}${t.context}`;o.push(r),u&&(t.ordinal&&e.startsWith(i)&&o.push(r+e.replace(i,this.options.pluralSeparator)),o.push(r+e),d&&o.push(r+n))}}let s;for(;s=o.pop();)this.isValidLookup(n)||(i=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e===``)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){let t=[`defaultValue`,`ordinal`,`context`,`replace`,`lng`,`lngs`,`fallbackLng`,`ns`,`keySeparator`,`nsSeparator`,`returnObjects`,`returnDetails`,`joinArrays`,`postProcess`,`interpolation`],n=e.replace&&!At(e.replace),r=n?e.replace:e;if(n&&e.count!==void 0&&(r={...r,count:e.count}),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(let e of t)delete r[e]}return r}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.startsWith(`defaultValue`)&&e[t]!==void 0)return!0;return!1}},ln=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=$t.create(`languageUtils`),this.resolveHierarchyCache={}}clearCache(){this.resolveHierarchyCache={}}getScriptPartFromCode(e){if(e=Zt(e),!e||!e.includes(`-`))return null;let t=e.split(`-`);return t.length===2||(t.pop(),t[t.length-1].toLowerCase()===`x`)?null:this.formatLanguageCode(t.join(`-`))}getLanguagePartFromCode(e){if(e=Zt(e),!e||!e.includes(`-`))return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(At(e)&&e.includes(`-`)){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load===`languageOnly`||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(e)}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>e===r?!0:!e.includes(`-`)&&!r.includes(`-`)?!1:!!(e.includes(`-`)&&!r.includes(`-`)&&e.slice(0,e.indexOf(`-`))===r||e.startsWith(r)&&r.length>1))}),t||=this.getFallbackCodes(this.options.fallbackLng)[0],t}getFallbackCodes(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),At(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||=e[this.getScriptPartFromCode(t)],n||=e[this.formatLanguageCode(t)],n||=e[this.getLanguagePartFromCode(t)],n||=e.default,n||[]}toResolveHierarchy(e,t){let n=this.options.fallbackLng,r=Array.isArray(n)?n.join(`|`):n;r!==this._cachedFallbackLng&&(this.resolveHierarchyCache={},this._cachedFallbackLng=r);let i=t===void 0||t===!1||At(t),a=t===void 0&&typeof this.options.fallbackLng==`function`,o=At(e)&&i&&!a,s=null;if(o){let n;n=t===void 0?`undefined`:t===!1?`boolean:false`:`string:${t}`,s=`${e.length}:${e}|${n}`}if(s!==null){let e=this.resolveHierarchyCache[s];if(e!==void 0)return e.slice()}let c=this.getFallbackCodes((t===!1?[]:t)||this.options.fallbackLng||[],e),l=[],u=e=>{e&&(this.isSupportedCode(e)?l.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return At(e)&&(e.includes(`-`)||e.includes(`_`))?(this.options.load!==`languageOnly`&&u(this.formatLanguageCode(e)),this.options.load!==`languageOnly`&&this.options.load!==`currentOnly`&&u(this.getScriptPartFromCode(e)),this.options.load!==`currentOnly`&&u(this.getLanguagePartFromCode(e))):At(e)&&u(this.formatLanguageCode(e)),c.forEach(e=>{l.includes(e)||u(this.formatLanguageCode(e))}),s===null?l:(this.resolveHierarchyCache[s]=l,l.slice())}},un={zero:0,one:1,two:2,few:3,many:4,other:5},dn={select:e=>e===1?`one`:`other`,resolvedOptions:()=>({pluralCategories:[`one`,`other`]})},fn=class{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=$t.create(`pluralResolver`),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n=Zt(e===`dev`?`en`:e),r=t.ordinal?`ordinal`:`cardinal`,i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:r})}catch{if(typeof Intl>`u`)return this.logger.error(`No Intl support, please use an Intl polyfill!`),dn;if(!e.match(/-|_/))return dn;let n=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(n,t)}return this.pluralRulesCache[i]=a,a}needsPlural(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?n.resolvedOptions().pluralCategories.sort((e,t)=>un[e]-un[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:``}${e}`):[]}getSuffix(e,t,n={}){let r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:``}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix(`dev`,t,n))}},pn=(e,t,n,r=`.`,i=!0)=>{let a=Vt(e,t,n);return!a&&i&&At(n)&&(a=Xt(e,n,r),a===void 0&&(a=Xt(t,n,r))),a},mn=e=>e.replace(/\$/g,`$$$$`),hn=class{constructor(e={}){this.logger=$t.create(`interpolator`),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||={escapeValue:!0};let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:a,suffix:o,suffixEscaped:s,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:m,nestingOptionsSeparator:h,maxReplaces:g,alwaysFormat:_}=e.interpolation;this.escape=t===void 0?Gt:t,this.escapeValue=n===void 0||n,this.useRawValueToEscape=r!==void 0&&r,this.prefix=i?Ut(i):a||`{{`,this.suffix=o?Ut(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u?Ut(u):`-`,this.unescapeSuffix=this.unescapePrefix?``:l?Ut(l):``,this.nestingPrefix=d?Ut(d):f||Ut(`$t(`),this.nestingSuffix=p?Ut(p):m||Ut(`)`),this.nestingOptionsSeparator=h||`,`,this.maxReplaces=g||1e3,this.alwaysFormat=_!==void 0&&_,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,`g`);this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let i,a,o,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(!e.includes(this.formatSeparator)){let i=pn(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),a=i.shift().trim(),o=i.join(this.formatSeparator).trim();return this.format(pn(t,s,a,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,{...r,...t,interpolationkey:a})};this.resetRegExp(),!this.escapeValue&&typeof e==`string`&&/\$t\([^)]*\{[^}]*\{\{/.test(e)&&this.logger.warn(`nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.`);let l=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:r.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>e},{regex:this.regexp,safeValue:e=>this.escapeValue?this.escape(e):e}].forEach(t=>{for(o=0;i=t.regex.exec(e);){let n=i[1].trim();if(a=c(n),a===void 0)if(typeof l==`function`){let t=l(e,i,r);a=At(t)?t:``}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a=``;else if(u){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),a=``;else!At(a)&&!this.useRawValueToEscape&&(a=Mt(a));let s=t.safeValue(a);if(e=e.replace(i[0],mn(s)),u?(t.regex.lastIndex+=s.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,i,a,o=(e,t)=>{let n=this.nestingOptionsSeparator;if(!e.includes(n))return e;let r=e.split(RegExp(`${Ut(n)}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,a);let o=i.match(/'/g),s=i.match(/"/g);((o?.length??0)%2==0&&!s||(s?.length??0)%2!=0)&&(i=i.replace(/'/g,`"`));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return a.defaultValue&&a.defaultValue.includes(this.prefix)&&delete a.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];a={...n},a=a.replace&&!At(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=/{.*}/s.test(r[1])?r[1].lastIndexOf(`}`)+1:r[1].indexOf(this.formatSeparator);if(c!==-1&&(s=r[1].slice(c).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,c)),i=t(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!At(i))return i;At(i)||(i=Mt(i)),i||=(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),``),s.length&&(i=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}},gn=e=>{let t=e.toLowerCase().trim(),n={};if(e.includes(`(`)){let r=e.split(`(`);t=r[0].toLowerCase().trim();let i=r[1].slice(0,-1);t===`currency`&&!i.includes(`:`)?n.currency||=i.trim():t===`relativetime`&&!i.includes(`:`)?n.range||=i.trim():i.split(`;`).forEach(e=>{if(e){let[t,...r]=e.split(`:`),i=r.join(`:`).trim().replace(/^'+|'+$/g,``),a=t.trim();n[a]||(n[a]=i),i===`false`&&(n[a]=!1),i===`true`&&(n[a]=!0),isNaN(i)||(n[a]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}},_n=e=>{let t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});let o=r+JSON.stringify(a),s=t[o];return s||(s=e(Zt(r),i),t[o]=s),s(n)}},vn=e=>(t,n,r)=>e(Zt(n),r)(t),yn=class{constructor(e={}){this.logger=$t.create(`formatter`),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||`,`;let n=t.cacheInBuiltFormats?_n:vn;this.formats={number:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:`currency`});return e=>n.format(e)}),datetime:n((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||`day`)}),list:n((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=_n(t)}format(e,t,n,r={}){if(!t||e==null)return e;let i=t.split(this.formatSeparator),a=[];for(let e=0;e-1&&!t.includes(`)`)&&e+1{let{formatName:i,formatOptions:a}=gn(t);if(this.formats[i]){let t=e;try{let o=r?.formatParams?.[r.interpolationkey]||{},s=o.locale||o.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...a,...r,...o})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${i}`),e},e)}},bn=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},xn=class extends en{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=$t.create(`backendConnector`),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){let i={},a={},o={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let o=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(this.state[o]===1?a[o]===void 0&&(a[o]=!0):(this.state[o]=1,r=!1,a[o]===void 0&&(a[o]=!0),i[o]===void 0&&(i[o]=!0),s[t]===void 0&&(s[t]=!0)))}),r||(o[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let r=e.split(`|`),i=r[0],a=r[1];t&&this.emit(`failedLoading`,i,a,t),!t&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let o={};this.queue.forEach(n=>{zt(n.loaded,[i],a),bn(n,e),t&&n.errors.push(t),n.pendingCount===0&&!n.done&&(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{o[e][t]===void 0&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit(`loaded`,o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,i=this.retryTimeout,a){if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a});return}this.readingCalls++;let o=(o,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(o&&s&&r{this.read(e,t,n,r+1,i*2,a)},i);return}a(o,s)},s=this.backend[n].bind(this.backend);if(s.length===2){try{let n=s(e,t);n&&typeof n.then==`function`?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}return}return s(e,t,o)}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`),r&&r();At(e)&&(e=this.languageUtils.toResolveHierarchy(e)),At(t)&&(t=[t]);let i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=``){let n=e.split(`|`),r=n[0],i=n[1];this.read(r,i,`read`,void 0,void 0,(n,a)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&a&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,a),this.loaded(e,n,a)})}saveMissing(e,t,n,r,i,a={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`);return}if(n!=null&&n!==``){if(this.backend?.create){let s={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=c.length===5?c(e,t,n,r,s):c(e,t,n,r),i&&typeof i.then==`function`?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else c(e,t,n,r,o,s)}!e||!e[0]||this.store.addResource(e[0],t,n,r)}}},Sn=()=>({debug:!1,initAsync:!0,ns:[`translation`],defaultNS:[`translation`],fallbackLng:[`dev`],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:`all`,preload:!1,keySeparator:`.`,nsSeparator:`:`,pluralSeparator:`_`,contextSeparator:`_`,enableSelector:!1,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:`fallback`,saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]==`object`&&(t=e[1]),At(e[1])&&(t.defaultValue=e[1]),At(e[2])&&(t.tDescription=e[2]),typeof e[2]==`object`||typeof e[3]==`object`){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,prefix:`{{`,suffix:`}}`,formatSeparator:`,`,unescapePrefix:`-`,nestingPrefix:`$t(`,nestingSuffix:`)`,nestingOptionsSeparator:`,`,maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Cn=e=>(At(e.ns)&&(e.ns=[e.ns]),At(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),At(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes(`cimode`)&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),e),wn=()=>{},Tn=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},En=class e extends en{constructor(e={},t){if(super(),this.options=Cn(e),this.services={},this.logger=$t,this.modules={external:[]},Tn(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,typeof e==`function`&&(t=e,e={}),e.defaultNS==null&&e.ns&&(At(e.ns)?e.defaultNS=e.ns:e.ns.includes(`translation`)||(e.defaultNS=e.ns[0]));let n=Sn();this.options={...n,...this.options,...Cn(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator),typeof this.options.overloadTranslationOptionHandler!=`function`&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler);let r=e=>e?typeof e==`function`?new e:e:null;if(!this.options.isClone){this.modules.logger?$t.init(r(this.modules.logger),this.options):$t.init(null,this.options);let e;e=this.modules.formatter?this.modules.formatter:yn;let t=new ln(this.options);this.store=new tn(this.options.resources,this.options);let n=this.services;n.logger=$t,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new fn(t,{prepend:this.options.pluralSeparator}),e&&(n.formatter=r(e),n.formatter.init&&n.formatter.init(n,this.options),this.options.interpolation.format=n.formatter.format.bind(n.formatter)),n.interpolator=new hn(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new xn(r(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(n.languageDetector=r(this.modules.languageDetector),n.languageDetector.init&&n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=r(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new cn(this.services,this.options),this.translator.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||=wn,this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&e[0]!==`dev`&&(this.options.lng=e[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn(`init: no languageDetector is used and no lng is defined`),[`getResource`,`hasResourceBundle`,`getResourceBundle`,`getDataByLanguage`].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),[`addResource`,`addResources`,`addResourceBundle`,`removeResourceBundle`].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});let i=jt(),a=()=>{let e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn(`init: i18next is already initialized. You should call init just once!`),this.isInitialized=!0,this.options.isClone||this.logger.log(`initialized`,this.options),this.emit(`initialized`,this.options),i.resolve(n),t(e,n)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?a():setTimeout(a,0),i}loadResources(e,t=wn){let n=t,r=At(e)?e:this.language;if(typeof e==`function`&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()===`cimode`&&(!this.options.preload||this.options.preload.length===0))return n();let e=[],t=t=>{t&&t!==`cimode`&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{t!==`cimode`&&(e.includes(t)||e.push(t))})};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{!e&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let r=jt();return typeof e==`function`&&(n=e,e=void 0),typeof t==`function`&&(n=t,t=void 0),e||=this.languages,t||=this.options.ns,n||=wn,this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);if(!e.type)throw Error(`You are passing a wrong module! Please check the object you are passing to i18next.use()`);return e.type===`backend`&&(this.modules.backend=e),(e.type===`logger`||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type===`languageDetector`&&(this.modules.languageDetector=e),e.type===`i18nFormat`&&(this.modules.i18nFormat=e),e.type===`postProcessor`&&nn.addPostProcessor(e),e.type===`formatter`&&(this.modules.formatter=e),e.type===`3rdParty`&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&![`cimode`,`dev`].includes(e)){for(let e=0;e{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,a)=>{a?this.isLanguageChangingTo===e&&(r(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit(`languageChanged`,a),this.logger.log(`languageChanged`,a)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},a=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let n=At(t)?t:t&&t[0],a=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(At(t)?[t]:t);a&&(this.language||r(a),this.translator.language||this.translator.changeLanguage(a),this.services.languageDetector?.cacheUserLanguage?.(a)),this.loadResources(a,e=>{i(e,a)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),n}getFixedT(e,t,n,r){let i=r?.scopeNs,a=(e,t,...r)=>{let o;o=typeof t==`object`?{...t}:this.options.overloadTranslationOptionHandler([e,t].concat(r)),o.lng=o.lng||a.lng,o.lngs=o.lngs||a.lngs;let s=o.ns!==void 0&&o.ns!==null;o.ns=o.ns||a.ns,o.keyPrefix!==``&&(o.keyPrefix=o.keyPrefix||n||a.keyPrefix);let c={...this.options,...o};Array.isArray(i)&&!s&&(c.ns=i),typeof o.keyPrefix==`function`&&(o.keyPrefix=on(o.keyPrefix,c));let l=this.options.keySeparator||`.`,u;return o.keyPrefix&&Array.isArray(e)?u=e.map(e=>(typeof e==`function`&&(e=on(e,c)),`${o.keyPrefix}${l}${e}`)):(typeof e==`function`&&(e=on(e,c)),u=o.keyPrefix?`${o.keyPrefix}${l}${e}`:e),this.t(u,o)};return At(e)?a.lng=e:a.lngs=e,a.ns=t,a.keyPrefix=n,a}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn(`hasLoadedNamespace: i18next was not initialized`,this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(`hasLoadedNamespace: i18n.languages were undefined or empty`,this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()===`cimode`)return!0;let a=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return n===-1||n===0||n===2};if(t.precheck){let e=t.precheck(this,a);if(e!==void 0)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!r||a(i,e)))}loadNamespaces(e,t){let n=jt();return this.options.ns?(At(e)&&(e=[e]),e.forEach(e=>{this.options.ns.includes(e)||this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=jt();At(e)&&(e=[e]);let r=this.options.preload||[],i=e.filter(e=>!r.includes(e)&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language),!e)return`rtl`;try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch{}let t=`ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`),n=this.services?.languageUtils||new ln(Sn());return e.toLowerCase().indexOf(`-latn`)>1?`ltr`:t.includes(n.getLanguagePartFromCode(e))||e.toLowerCase().indexOf(`-arab`)>1?`rtl`:`ltr`}static createInstance(t={},n){let r=new e(t,n);return r.createInstance=e.createInstance,r}cloneInstance(t={},n=wn){let r=t.forkResourceStore;r&&delete t.forkResourceStore;let i={...this.options,...t,isClone:!0},a=new e(i);if((t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),[`store`,`services`,`language`].forEach(e=>{a[e]=this[e]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new tn(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{}),i),a.services.resourceStore=a.store),t.interpolation){let e={...Sn().interpolation,...this.options.interpolation,...t.interpolation},n={...i,interpolation:e};a.services.interpolator=new hn(n)}return a.translator=new cn(a.services,i),a.translator.on(`*`,(e,...t)=>{a.emit(e,...t)}),a.init(i,n),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}.createInstance();En.createInstance,En.dir,En.init,En.loadResources,En.reloadResources,En.use,En.changeLanguage,En.getFixedT,En.t,En.exists,En.setDefaultNamespace,En.hasLoadedNamespace,En.loadNamespaces,En.loadLanguages;var Dn=(e,t,n,r)=>{let i=[n,{code:t,...r||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(i,`warn`,`react-i18next::`,!0);Pn(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...i):console?.warn&&console.warn(...i)},On={},kn=(e,t,n,r)=>{Pn(n)&&On[n]||(Pn(n)&&(On[n]=new Date),Dn(e,t,n,r))},An=(e,t)=>()=>{if(e.isInitialized)t();else{let n=()=>{setTimeout(()=>{e.off(`initialized`,n)},0),t()};e.on(`initialized`,n)}},jn=(e,t,n)=>{e.loadNamespaces(t,An(e,n))},Mn=(e,t,n,r)=>{if(Pn(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return jn(e,n,r);n.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,An(e,r))},Nn=(e,t,n={})=>!t.languages||!t.languages.length?(kn(t,`NO_LANGUAGES`,`i18n.languages were undefined or empty`,{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n&&n.bindI18n.indexOf(`languageChanging`)>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}),Pn=e=>typeof e==`string`,Fn=e=>typeof e==`object`&&!!e,In=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Ln={"&":`&`,"&":`&`,"<":`<`,"<":`<`,">":`>`,">":`>`,"'":`'`,"'":`'`,""":`"`,""":`"`," ":` `," ":` `,"©":`©`,"©":`©`,"®":`®`,"®":`®`,"…":`…`,"…":`…`,"/":`/`,"/":`/`},Rn=e=>Ln[e],zn={bindI18n:`languageChanged`,bindI18nStore:``,transEmptyNodeValue:``,transSupportBasicHtmlNodes:!0,transWrapTextNodes:``,transKeepBasicHtmlNodesFor:[`br`,`strong`,`i`,`p`],useSuspense:!0,unescape:e=>e.replace(In,Rn),transDefaultProps:void 0},Bn=(e={})=>{zn={...zn,...e}},Vn=()=>zn,Hn,Un=e=>{Hn=e},Wn=()=>Hn,Gn={type:`3rdParty`,init(e){Bn(e.options.react),Un(e)}},Kn=(0,_.createContext)(),qn=class{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}},Jn=n((e=>{var t=r();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:n,a=t.useState,o=t.useEffect,s=t.useLayoutEffect,c=t.useDebugValue;function l(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&l({inst:i})},[e,n,t]),o(function(){return u(i)&&l({inst:i}),e(function(){u(i)&&l({inst:i})})},[e]),c(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),Yn=n(((e,t)=>{t.exports=Jn()}))(),Xn={t:(e,t)=>{if(Pn(t))return t;if(Fn(t)&&Pn(t.defaultValue))return t.defaultValue;if(typeof e==`function`)return``;if(Array.isArray(e)){let t=e[e.length-1];return typeof t==`function`?``:t}return e},ready:!1},Zn=()=>()=>{},Qn=(e,t={})=>{let{i18n:n}=t,{i18n:r,defaultNS:i}=(0,_.useContext)(Kn)||{},a=n||r||Wn();a&&!a.reportNamespaces&&(a.reportNamespaces=new qn),a||kn(a,`NO_I18NEXT_INSTANCE`,`useTranslation: You will need to pass in an i18next instance by using initReactI18next or by passing it via props or context. In monorepo setups, make sure there is only one instance of react-i18next.`);let o=(0,_.useMemo)(()=>({...Vn(),...a?.options?.react,...t}),[a,t]),{useSuspense:s,keyPrefix:c}=o,l=e||i||a?.options?.defaultNS,u=Pn(l)?[l]:l||[`translation`],d=(0,_.useMemo)(()=>u,u);a?.reportNamespaces?.addUsedNamespaces?.(d);let f=(0,_.useRef)(0),p=(0,_.useCallback)(e=>{if(!a)return Zn;let{bindI18n:t,bindI18nStore:n}=o,r=()=>{f.current+=1,e()};return t&&a.on(t,r),n&&a.store.on(n,r),()=>{t&&t.split(` `).forEach(e=>a.off(e,r)),n&&n.split(` `).forEach(e=>a.store.off(e,r))}},[a,o]),m=(0,_.useRef)(),h=(0,_.useCallback)(()=>{if(!a)return Xn;let e=!!(a.isInitialized||a.initializedStoreOnce)&&d.every(e=>Nn(e,a,o)),n=t.lng||a.language,r=f.current,i=m.current;if(i&&i.ready===e&&i.lng===n&&i.keyPrefix===c&&i.revision===r)return i;let s={t:a.getFixedT(n,o.nsMode===`fallback`?d:d[0],c,{scopeNs:d}),ready:e,lng:n,keyPrefix:c,revision:r};return m.current=s,s},[a,d,c,o,t.lng]),[g,v]=(0,_.useState)(0),{t:y,ready:b}=(0,Yn.useSyncExternalStore)(p,h,h);(0,_.useEffect)(()=>{if(a&&!b&&!s){let e=()=>v(e=>e+1);t.lng?Mn(a,t.lng,d,e):jn(a,d,e)}},[a,t.lng,d,b,s,g]);let x=a||{},S=(0,_.useRef)(null),C=(0,_.useRef)(),w=e=>{let t=Object.getOwnPropertyDescriptors(e);t.__original&&delete t.__original;let n=Object.create(Object.getPrototypeOf(e),t);if(!Object.prototype.hasOwnProperty.call(n,`__original`))try{Object.defineProperty(n,"__original",{value:e,writable:!1,enumerable:!1,configurable:!1})}catch{}return n},T=(0,_.useMemo)(()=>{let e=x,t=e?.language,n=e;e&&(S.current&&S.current.__original===e&&C.current===t?n=S.current:(n=w(e),S.current=n,C.current=t));let r=!b&&!s?(...e)=>(kn(a,`USE_T_BEFORE_READY`,`useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t.`),y(...e)):y,i=[r,n,b];return i.t=r,i.i18n=n,i.ready=b,i},[y,x,b,x.resolvedLanguage,x.language,x.languages]);if(a&&s&&!b){let e=!1;try{e=!1}catch{}throw e&&kn(a,`SUSPENDED_WHILE_LOADING`,`useTranslation: suspended while translations are loading (useSuspense is true by default). Add a boundary above this component, or set react.useSuspense: false in the i18next init options. https://react.i18next.com/latest/usetranslation-hook`),new Promise(e=>{let n=()=>e();t.lng?Mn(a,t.lng,d,n):jn(a,d,n)})}return T};function $n({i18n:e,defaultNS:t,children:n}){let r=(0,_.useMemo)(()=>({i18n:e,defaultNS:t}),[e,t]);return(0,_.createElement)(Kn.Provider,{value:r},n)}var er=e=>{let t,n=new Set,r=(e,r)=>{let i=typeof e==`function`?e(t):e;if(!Object.is(i,t)){let e=t;t=r??(typeof i!=`object`||!i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e))},o=t=e(r,i,a);return a},tr=(e=>e?er(e):er),nr=e=>e;function rr(e,t=nr){let n=_.useSyncExternalStore(e.subscribe,_.useCallback(()=>t(e.getState()),[e,t]),_.useCallback(()=>t(e.getInitialState()),[e,t]));return _.useDebugValue(n),n}var W=i(),ir=Array.from({length:16},(e,t)=>`cell-${t+1}`);function ar({animated:e=!1,compact:t=!1}){let[n,r]=(0,_.useState)(0),i=t?10:16,a=(0,W.jsxs)(`strong`,{className:t?`brand-lockup compact`:`brand-lockup`,children:[(0,W.jsx)(`span`,{className:`brand-word`,children:`Open`}),(0,W.jsx)(`span`,{className:`pixel-mark`,role:`img`,"aria-label":`OpenPI`,children:ir.slice(0,i).map(e=>(0,W.jsx)(`i`,{},e))})]},n);return e?(0,W.jsx)(`button`,{className:`landing-brand`,type:`button`,"aria-label":`Replay OpenPI logo animation`,onClick:()=>r(e=>e+1),children:a}):a}function or(e,t,n){return Math.min(n,Math.max(t,Math.round(e)))}function sr({side:e,value:t,min:n,max:r,defaultValue:i,collapseThreshold:a,onCollapse:o,onExpandPastMax:s,onChange:c,onDraggingChange:l}){let{t:u}=Qn(),d=(0,_.useRef)(null),f=(e,t)=>{d.current?.pointerId===t&&(d.current=null,e.hasPointerCapture(t)&&e.releasePointerCapture(t),l(!1))},p=e=>c(or(e,n,r));return(0,W.jsx)(`hr`,{className:`pane-resizer ${e}`,tabIndex:0,"aria-label":u(e===`left`?`resizeSidebar`:`resizeWorkbar`),"aria-orientation":`vertical`,"aria-valuenow":t,"aria-valuemin":n,"aria-valuemax":r,"data-pane-resizer":e,onKeyDown:a=>{let o;switch(a.key){case`ArrowLeft`:case`ArrowRight`:o=t+(a.key===`ArrowRight`?1:-1)*(e===`left`?16:-16);break;case`Home`:o=n;break;case`End`:o=r;break;case`Enter`:o=i;break;default:return}a.preventDefault(),p(o)},onDoubleClick:()=>p(i),onPointerDown:e=>{e.button===0&&(e.preventDefault(),d.current={pointerId:e.pointerId,startX:e.clientX,startValue:t},e.currentTarget.setPointerCapture(e.pointerId),l(!0))},onPointerMove:t=>{let n=d.current;if(!n||n.pointerId!==t.pointerId)return;let i=t.clientX-n.startX,c=n.startValue+(e===`left`?i:-i);if(s&&c>=r+48){f(t.currentTarget,t.pointerId),s();return}if(o&&a!==void 0&&c<=a){f(t.currentTarget,t.pointerId),o();return}p(c)},onPointerUp:e=>f(e.currentTarget,e.pointerId),onPointerCancel:e=>f(e.currentTarget,e.pointerId),onLostPointerCapture:()=>{d.current&&(d.current=null,l(!1))}})}async function cr(e){try{return await navigator.clipboard.writeText(e),!0}catch{}let t=document.activeElement,n=window.getSelection(),r=n?Array.from({length:n.rangeCount},(e,t)=>n.getRangeAt(t).cloneRange()):[],i=t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?{start:t.selectionStart,end:t.selectionEnd,direction:t.selectionDirection}:null,a=document.createElement(`textarea`);a.value=e,a.readOnly=!0,a.style.cssText=`position:fixed;opacity:0;pointer-events:none`;try{return document.body.append(a),a.focus({preventScroll:!0}),a.select(),document.execCommand(`copy`)}catch{return!1}finally{if(a.remove(),t instanceof HTMLElement&&t.isConnected&&(t.focus({preventScroll:!0}),i&&i.start!==null&&i.end!==null&&(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement)&&t.setSelectionRange(i.start,i.end,i.direction??void 0)),n){n.removeAllRanges();for(let e of r)e.startContainer.isConnected&&e.endContainer.isConnected&&n.addRange(e)}}}function lr(e){return!!e.trim()&&!e.startsWith(`#`)&&!e.startsWith(`//`)&&(!/^[a-z][a-z\d+.-]*:/iu.test(e)||/^[a-z]:[\\/]/iu.test(e))}var ur=8e3;function dr(e,t){let n=0;for(let r of e){let e=r.codePointAt(0);if(n+=e<=127?1:e<=2047?2:e<=65535?3:4,n>t)return}return n}function fr(e){return dr(e,1/0)}function pr(e){return dr(e,ur)!==void 0}function mr(e){return typeof e==`string`&&/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/iu.test(e)}var hr=Symbol.for(`@tt-a1i/openpi/web-command-feedback/v1`),gr=Reflect.get(globalThis,hr);if(gr!==void 0&&!(gr instanceof WeakMap))throw Error(`Incompatible Web feedback bridge`);gr===void 0&&Object.defineProperty(globalThis,hr,{value:gr??new WeakMap});var _r=12288;function vr(e){return e&&typeof e==`object`&&!Array.isArray(e)?e:{}}function yr(e,t=!1){let n=t?e.slice(-24576):e.slice(0,_r*2),r=n.replace(/\x1b\][^\x07\x1b]*(?:\x07|\x1b\\|$)/gu,``).replace(/(?:\x1b\[|\x9b)[0-?]*[ -/]*[@-~]/gu,``).replace(/[\x00-\x08\x0b-\x1f\x7f-\x9f\u202a-\u202e\u2066-\u2069]/gu,``).split(` +`+e.stack}}var he=Object.prototype.hasOwnProperty,ge=t.unstable_scheduleCallback,_e=t.unstable_cancelCallback,ve=t.unstable_shouldYield,ye=t.unstable_requestPaint,be=t.unstable_now,xe=t.unstable_getCurrentPriorityLevel,Se=t.unstable_ImmediatePriority,Ce=t.unstable_UserBlockingPriority,we=t.unstable_NormalPriority,Te=t.unstable_LowPriority,Ee=t.unstable_IdlePriority,De=t.log,Oe=t.unstable_setDisableYieldValue,W=null,ke=null;function Ae(e){if(typeof De==`function`&&Oe(e),ke&&typeof ke.setStrictMode==`function`)try{ke.setStrictMode(W,e)}catch{}}var je=Math.clz32?Math.clz32:Pe,Me=Math.log,Ne=Math.LN2;function Pe(e){return e>>>=0,e===0?32:31-(Me(e)/Ne|0)|0}var Fe=256,Ie=262144,Le=4194304;function Re(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ze(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Re(n))):i=Re(o):i=Re(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Re(n))):i=Re(o)):i=Re(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Be(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ve(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function He(){var e=Le;return Le<<=1,!(Le&62914560)&&(Le=4194304),e}function Ue(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function We(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ge(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0`u`||window.document===void 0||window.document.createElement===void 0),rn=!1;if(nn)try{var an={};Object.defineProperty(an,"passive",{get:function(){rn=!0}}),window.addEventListener(`test`,an,an),window.removeEventListener(`test`,an,an)}catch{rn=!1}var on=null,sn=null,cn=null;function ln(){if(cn)return cn;var e,t=sn,n=t.length,r,i=`value`in on?on.value:on.textContent,a=i.length;for(e=0;e=Vn),Wn=` `,Gn=!1;function Kn(e,t){switch(e){case`keyup`:return zn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function qn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Jn=!1;function Yn(e,t){switch(e){case`compositionend`:return qn(t);case`keypress`:return t.which===32?(Gn=!0,Wn):null;case`textInput`:return e=t.data,e===Wn&&Gn?null:e;default:return null}}function Xn(e,t){if(Jn)return e===`compositionend`||!Bn&&Kn(e,t)?(e=ln(),cn=sn=on=null,Jn=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=_r(n)}}function yr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?yr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function br(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=At(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=At(e.document)}return t}function xr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Sr=nn&&`documentMode`in document&&11>=document.documentMode,Cr=null,wr=null,Tr=null,Er=!1;function Dr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Er||Cr==null||Cr!==At(r)||(r=Cr,`selectionStart`in r&&xr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Tr&&gr(Tr,r)||(Tr=r,r=Nd(wr,`onSelect`),0>=o,i-=o,yi=1<<32-je(t)+i|n<h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),Oi&&xi(i,h),l;if(d===null){for(;hg?(_=h,h=null):_=h.sibling;var y=p(i,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(i,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(i,h),Oi&&xi(i,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(i,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Oi&&xi(i,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,i,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(i,e)}),Oi&&xi(i,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===y&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case _:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===y){if(r.tag===7){n(e,r.sibling),c=i(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===O&&Sa(l)===r.type){n(e,r.sibling),c=i(r,o.props),ka(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===y?(c=oi(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=ai(o.type,o.key,o.props,null,e.mode,c),ka(c,o),c.return=e,e=c)}return s(e);case v:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=i(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}t(e,r),r=r.sibling}c=li(o,e.mode,c),c.return=e,e=c}return s(e);case O:return o=Sa(o),b(e,r,o,c)}if(F(o))return h(e,r,o,c);if(M(o)){if(l=M(o),typeof l!=`function`)throw Error(a(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Oa(o),c);if(o.$$typeof===C)return b(e,r,Xi(e,o),c);Aa(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=i(r,o),c.return=e,e=c):(n(e,r),c=si(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Da=0;var i=b(e,t,n,r);return Ea=null,i}catch(t){if(t===ga||t===va)throw t;var a=ti(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ma=ja(!0),Na=ja(!1),Pa=!1;function Fa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ia(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function La(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ra(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,zl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Qr(e),Zr(e,null,n),t}return Jr(e,r,t,n),Qr(e)}function za(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,qe(e,n)}}function Ba(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Va=!1;function Ha(){if(Va){var e=sa;if(e!==null)throw e}}function Ua(e,t,n,r){Va=!1;var i=e.updateQueue;Pa=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(Hl&f)===f:(r&f)===f){f!==0&&f===oa&&(Va=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(m=g.payload,typeof m==`function`){d=m.call(_,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,f=typeof m==`function`?m.call(_,d,f):m,f==null)break a;d=h({},d,f);break a;case 2:Pa=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Xl|=o,e.lanes=o,e.memoizedState=d}}function Wa(e,t){if(typeof e!=`function`)throw Error(a(191,e));e.call(t)}function Ga(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ea?a:8;var o=I.T,s={};I.T=s,Ms(e,!1,t,n);try{var c=i(),l=I.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?js(e,t,ua(c,r),vu(e)):js(e,t,r,vu(e))}catch(n){js(e,t,{then:function(){},status:`rejected`,reason:n},vu())}finally{L.p=a,o!==null&&s.types!==null&&(o.types=s.types),I.T=o}}function xs(){}function Ss(e,t,n,r){if(e.tag!==5)throw Error(a(476));var i=Cs(e).queue;bs(e,i,t,R,n===null?xs:function(){return ws(e),n(r)})}function Cs(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:R,baseState:R,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:No,lastRenderedState:R},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:No,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ws(e){var t=Cs(e);t.next===null&&(t=e.alternate.memoizedState),js(e,t.next.queue,{},vu())}function Ts(){return Yi(ap)}function Es(){return Oo().memoizedState}function Ds(){return Oo().memoizedState}function Os(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=vu();e=La(n);var r=Ra(t,e,n);r!==null&&(bu(r,t,n),za(r,t,n)),t={cache:na()},e.payload=t;return}t=t.return}}function ks(e,t,n){var r=vu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ns(e)?Ps(t,n):(n=Yr(e,t,n,r),n!==null&&(bu(n,e,r),Fs(n,t,r)))}function As(e,t,n){js(e,t,n,vu())}function js(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ns(e))Ps(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,hr(s,o))return Jr(e,t,i,0),Bl===null&&qr(),!1}catch{}if(n=Yr(e,t,i,r),n!==null)return bu(n,e,r),Fs(n,t,r),!0}return!1}function Ms(e,t,n,r){if(r={lane:2,revertLane:_d(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ns(e)){if(t)throw Error(a(479))}else t=Yr(e,n,r,2),t!==null&&bu(t,e,2)}function Ns(e){var t=e.alternate;return e===so||t!==null&&t===so}function Ps(e,t){fo=uo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Fs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,qe(e,n)}}var Is={readContext:Yi,use:jo,useCallback:vo,useContext:vo,useEffect:vo,useImperativeHandle:vo,useLayoutEffect:vo,useInsertionEffect:vo,useMemo:vo,useReducer:vo,useRef:vo,useState:vo,useDebugValue:vo,useDeferredValue:vo,useTransition:vo,useSyncExternalStore:vo,useId:vo,useHostTransitionStatus:vo,useFormState:vo,useActionState:vo,useOptimistic:vo,useMemoCache:vo,useCacheRefresh:vo};Is.useEffectEvent=vo;var Ls={readContext:Yi,use:jo,useCallback:function(e,t){return Do().memoizedState=[e,t===void 0?null:t],e},useContext:Yi,useEffect:ss,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),as(4194308,4,ps.bind(null,t,e),n)},useLayoutEffect:function(e,t){return as(4194308,4,e,t)},useInsertionEffect:function(e,t){as(4,2,e,t)},useMemo:function(e,t){var n=Do();t=t===void 0?null:t;var r=e();if(po){Ae(!0);try{e()}finally{Ae(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Do();if(n!==void 0){var i=n(t);if(po){Ae(!0);try{n(t)}finally{Ae(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=ks.bind(null,so,e),[r.memoizedState,e]},useRef:function(e){var t=Do();return e={current:e},t.memoizedState=e},useState:function(e){e=Uo(e);var t=e.queue,n=As.bind(null,so,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:hs,useDeferredValue:function(e,t){return vs(Do(),e,t)},useTransition:function(){var e=Uo(!1);return e=bs.bind(null,so,e.queue,!0,!1),Do().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=so,i=Do();if(Oi){if(n===void 0)throw Error(a(407));n=n()}else{if(n=t(),Bl===null)throw Error(a(349));Hl&127||Ro(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,ss(Bo.bind(null,r,o,e),[e]),r.flags|=2048,rs(9,{destroy:void 0},zo.bind(null,r,o,n,t),null),n},useId:function(){var e=Do(),t=Bl.identifierPrefix;if(Oi){var n=bi,r=yi;n=(r&~(1<<32-je(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=mo++,0<\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(i,{is:r.is}):s.createElement(i)}}o[et]=t,o[tt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Hd(o,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&jc(t)}}return Ic(t),Mc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&jc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(a(166));if(e=ie.current,Fi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=Ei,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[et]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||zd(e.nodeValue,n)),e||Mi(t,!0)}else e=Jd(e).createTextNode(r),e[et]=t,t.stateNode=e}return Ic(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Fi(t),n!==null){if(e===null){if(!r)throw Error(a(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(a(557));e[et]=t}else Ii(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ic(t),e=!1}else n=Li(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(ro(t),t):(ro(t),null);if(t.flags&128)throw Error(a(558))}return Ic(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Fi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(a(318));if(i=t.memoizedState,i=i===null?null:i.dehydrated,!i)throw Error(a(317));i[et]=t}else Ii(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ic(t),i=!1}else i=Li(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(ro(t),t):(ro(t),null)}return ro(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Pc(t,t.updateQueue),Ic(t),null);case 4:return se(),e===null&&kd(t.stateNode.containerInfo),Ic(t),null;case 10:return Ui(t.type),Ic(t),null;case 19:if(ee(io),r=t.memoizedState,r===null)return Ic(t),null;if(i=!!(t.flags&128),o=r.rendering,o===null)if(i)Fc(r,!1);else{if(Yl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=ao(e),o!==null){for(t.flags|=128,Fc(r,!1),e=o.updateQueue,t.updateQueue=e,Pc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ii(n,e),n=n.sibling;return te(io,io.current&1|2),Oi&&xi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&be()>ou&&(t.flags|=128,i=!0,Fc(r,!1),t.lanes=4194304)}else{if(!i)if(e=ao(o),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Pc(t,e),Fc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!Oi)return Ic(t),null}else 2*be()-r.renderingStartTime>ou&&n!==536870912&&(t.flags|=128,i=!0,Fc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Ic(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=be(),e.sibling=null,n=io.current,te(io,i?n&1|2:n&1),Oi&&xi(t,r.treeForkCount),e);case 22:case 23:return ro(t),Xa(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Ic(t),t.subtreeFlags&6&&(t.flags|=8192)):Ic(t),n=t.updateQueue,n!==null&&Pc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&ee(fa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ui(ta),Ic(t),null;case 25:return null;case 30:return null}throw Error(a(156,t.tag))}function Rc(e,t){switch(wi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ui(ta),se(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return H(t),null;case 31:if(t.memoizedState!==null){if(ro(t),t.alternate===null)throw Error(a(340));Ii()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(ro(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));Ii()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ee(io),null;case 4:return se(),null;case 10:return Ui(t.type),null;case 22:case 23:return ro(t),Xa(),e!==null&&ee(fa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ui(ta),null;case 25:return null;default:return null}}function zc(e,t){switch(wi(t),t.tag){case 3:Ui(ta),se();break;case 26:case 27:case 5:H(t);break;case 4:se();break;case 31:t.memoizedState!==null&&ro(t);break;case 13:ro(t);break;case 19:ee(io);break;case 10:Ui(t.type);break;case 22:case 23:ro(t),Xa(),e!==null&&ee(fa);break;case 24:Ui(ta)}}function Bc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Xu(t,t.return,e)}}function Vc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Xu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Xu(t,t.return,e)}}function Hc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ga(t,n)}catch(t){Xu(e,e.return,t)}}}function Uc(e,t,n){n.props=Ws(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Xu(e,t,n)}}function Wc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Xu(e,t,n)}}function Gc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Xu(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Xu(e,t,n)}else n.current=null}function Kc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Xu(e,e.return,t)}}function qc(e,t,n){try{var r=e.stateNode;Ud(r,e.type,n,t),r[tt]=t}catch(t){Xu(e,e.return,t)}}function Jc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&of(e.type)||e.tag===4}function Yc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Jc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&of(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Xc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=qt));else if(r!==4&&(r===27&&of(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Xc(e,t,n),e=e.sibling;e!==null;)Xc(e,t,n),e=e.sibling}function Zc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&of(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Zc(e,t,n),e=e.sibling;e!==null;)Zc(e,t,n),e=e.sibling}function Qc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Hd(t,r,n),t[et]=e,t[tt]=n}catch(t){Xu(e,e.return,t)}}var $c=!1,el=!1,tl=!1,nl=typeof WeakSet==`function`?WeakSet:Set,rl=null;function il(e,t){if(e=e.containerInfo,Kd=pp,e=br(e),xr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||i!==0&&f.nodeType!==3||(c=s+i),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===i&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(qd={focusedElem:e,selectionRange:n},pp=!1,rl=t;rl!==null;)if(t=rl,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,rl=e;else for(;rl!==null;){switch(t=rl,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n title`))),Hd(o,r,n),o[et]=e,pt(o),r=o;break a;case`link`:var s=Yf(`link`,`href`,i).get(r+(n.href||``));if(s){for(var c=0;cg&&(o=g,g=h,h=o);var _=vr(s,h),v=vr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;sn?32:n,I.T=null,n=mu,mu=null;var o=uu,s=fu;if(lu=0,du=uu=null,fu=0,zl&6)throw Error(a(331));var c=zl;if(zl|=4,Pl(o.current),El(o,o.current,s,n),zl=c,ud(0,!1),ke&&typeof ke.onPostCommitFiberRoot==`function`)try{ke.onPostCommitFiberRoot(W,o)}catch{}return!0}finally{L.p=i,I.T=r,Ku(e,t)}}function Yu(e,t,n){t=di(n,t),t=Xs(e.stateNode,t,2),e=Ra(e,t,2),e!==null&&(We(e,2),ld(e))}function Xu(e,t,n){if(e.tag===3)Yu(e,e,n);else for(;t!==null;){if(t.tag===3){Yu(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(cu===null||!cu.has(r))){e=di(n,e),n=Zs(2),r=Ra(t,n,2),r!==null&&(Qs(n,r,t,e),We(r,2),ld(r));break}}t=t.return}}function Zu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Rl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(ql=!0,i.add(n),e=Qu.bind(null,e,t,n),t.then(e,e))}function Qu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Bl===e&&(Hl&n)===n&&(Yl===4||Yl===3&&(Hl&62914560)===Hl&&300>be()-iu?!(zl&2)&&Du(e,0):Ql|=n,eu===Hl&&(eu=0)),ld(e)}function $u(e,t){t===0&&(t=He()),e=Xr(e,t),e!==null&&(We(e,t),ld(e))}function ed(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),$u(e,n)}function td(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(a(314))}r!==null&&r.delete(t),$u(e,n)}function nd(e,t){return ge(e,t)}var rd=null,id=null,ad=!1,od=!1,sd=!1,cd=0;function ld(e){e!==id&&e.next===null&&(id===null?rd=id=e:id=id.next=e),od=!0,ad||(ad=!0,gd())}function ud(e,t){if(!sd&&od){sd=!0;do for(var n=!1,r=rd;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-je(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,hd(r,a))}else a=Hl,a=ze(r,r===Bl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Be(r,a)||(n=!0,hd(r,a));r=r.next}while(n);sd=!1}}function dd(){fd()}function fd(){od=ad=!1;var e=0;cd!==0&&$d()&&(e=cd);for(var t=be(),n=null,r=rd;r!==null;){var i=r.next,a=pd(r,t);a===0?(r.next=null,n===null?rd=i:n.next=i,i===null&&(id=n)):(n=r,(e!==0||a&3)&&(od=!0)),r=i}lu!==0&&lu!==5||ud(e,!1),cd!==0&&(cd=0)}function pd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0s)break;var u=c.transferSize,d=c.initiatorType;u&&Wd(d)&&(c=c.responseEnd,o+=u*(c`u`?null:document;function kf(e,t,n){var r=Of;if(r&&typeof t==`string`&&t){var i=Mt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Cf.has(i)||(Cf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Hd(t,`link`,e),pt(t),r.head.appendChild(t)))}}function Af(e){Tf.D(e),kf(`dns-prefetch`,e,null)}function jf(e,t){Tf.C(e,t),kf(`preconnect`,e,t)}function Mf(e,t,n){Tf.L(e,t,n);var r=Of;if(r&&e&&t){var i=`link[rel="preload"][as="`+Mt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Mt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Mt(n.imageSizes)+`"]`)):i+=`[href="`+Mt(e)+`"]`;var a=i;switch(t){case`style`:a=Rf(e);break;case`script`:a=Hf(e)}Sf.has(a)||(e=h({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Sf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(zf(a))||t===`script`&&r.querySelector(Uf(a))||(t=r.createElement(`link`),Hd(t,`link`,e),pt(t),r.head.appendChild(t)))}}function Nf(e,t){Tf.m(e,t);var n=Of;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Mt(r)+`"][href="`+Mt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Hf(e)}if(!Sf.has(a)&&(e=h({rel:`modulepreload`,href:e},t),Sf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Uf(a)))return}r=n.createElement(`link`),Hd(r,`link`,e),pt(r),n.head.appendChild(r)}}}function Pf(e,t,n){Tf.S(e,t,n);var r=Of;if(r&&e){var i=ft(r).hoistableStyles,a=Rf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(zf(a)))s.loading=5;else{e=h({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Sf.get(a))&&Kf(e,n);var c=o=r.createElement(`link`);pt(c),Hd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Gf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Ff(e,t){Tf.X(e,t);var n=Of;if(n&&e){var r=ft(n).hoistableScripts,i=Hf(e),a=r.get(i);a||(a=n.querySelector(Uf(i)),a||(e=h({src:e,async:!0},t),(t=Sf.get(i))&&qf(e,t),a=n.createElement(`script`),pt(a),Hd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function If(e,t){Tf.M(e,t);var n=Of;if(n&&e){var r=ft(n).hoistableScripts,i=Hf(e),a=r.get(i);a||(a=n.querySelector(Uf(i)),a||(e=h({src:e,async:!0,type:`module`},t),(t=Sf.get(i))&&qf(e,t),a=n.createElement(`script`),pt(a),Hd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Lf(e,t,n,r){var i=(i=ie.current)?wf(i):null;if(!i)throw Error(a(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Rf(n.href),n=ft(i).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Rf(n.href);var o=ft(i).hoistableStyles,s=o.get(e);if(s||(i=i.ownerDocument||i,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=i.querySelector(zf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),Sf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Sf.set(e,n),o||Vf(i,e,n,s.state))),t&&r===null)throw Error(a(528,``));return s}if(t&&r!==null)throw Error(a(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Hf(n),n=ft(i).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(a(444,e))}}function Rf(e){return`href="`+Mt(e)+`"`}function zf(e){return`link[rel="stylesheet"][`+e+`]`}function Bf(e){return h({},e,{"data-precedence":e.precedence,precedence:null})}function Vf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Hd(t,`link`,n),pt(t),e.head.appendChild(t))}function Hf(e){return`[src="`+Mt(e)+`"]`}function Uf(e){return`script[async]`+e}function Wf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Mt(n.href)+`"]`);if(r)return t.instance=r,pt(r),r;var i=h({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),pt(r),Hd(r,`style`,i),Gf(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Rf(n.href);var o=e.querySelector(zf(i));if(o)return t.state.loading|=4,t.instance=o,pt(o),o;r=Bf(n),(i=Sf.get(i))&&Kf(r,i),o=(e.ownerDocument||e).createElement(`link`),pt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Hd(o,`link`,r),t.state.loading|=4,Gf(o,n.precedence,e),t.instance=o;case`script`:return o=Hf(n.src),(i=e.querySelector(Uf(o)))?(t.instance=i,pt(i),i):(r=n,(i=Sf.get(o))&&(r=h({},n),qf(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),pt(i),Hd(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(a(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Gf(r,n.precedence,e));return t.instance}function Gf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o title`):null)}function Zf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Qf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function $f(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Rf(r.href),a=t.querySelector(zf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=K.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,pt(a);return}a=t.ownerDocument||t,r=Bf(r),(i=Sf.get(i))&&Kf(r,i),a=a.createElement(`link`),pt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Hd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=K.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var ep=0;function tp(e,t){return e.stylesheets&&e.count===0&&rp(e,e.stylesheets),0ep?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function K(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)rp(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var np=null;function rp(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,np=new Map,t.forEach(ip,e),np=null,K.call(e))}function ip(e,t){if(!(t.state.loading&4)){var n=np.get(e);if(n)var r=n.get(null);else{n=new Map,np.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=l()})),d=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),f=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),p=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),m=e=>{let t=p(e);return t.charAt(0).toUpperCase()+t.slice(1)},h={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},g=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},_=e(r(),1),v=(0,_.createContext)({}),y=()=>(0,_.useContext)(v),b=(0,_.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>{let{size:l=24,strokeWidth:u=2,absoluteStrokeWidth:f=!1,color:p=`currentColor`,className:m=``}=y()??{},v=r??f?Number(n??u)*24/Number(t??l):n??u;return(0,_.createElement)(`svg`,{ref:c,...h,width:t??l??h.width,height:t??l??h.height,stroke:e??p,strokeWidth:v,className:d(`lucide`,m,i),...!a&&!g(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,_.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),x=(e,t)=>{let n=(0,_.forwardRef)(({className:n,...r},i)=>(0,_.createElement)(b,{ref:i,iconNode:t,className:d(`lucide-${f(m(e))}`,`lucide-${e}`,n),...r}));return n.displayName=m(e),n},S=x(`archive-restore`,[[`rect`,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`,key:`1wp1u1`}],[`path`,{d:`M4 8v11a2 2 0 0 0 2 2h2`,key:`tvwodi`}],[`path`,{d:`M20 8v11a2 2 0 0 1-2 2h-2`,key:`1gkqxj`}],[`path`,{d:`m9 15 3-3 3 3`,key:`1pd0qc`}],[`path`,{d:`M12 12v9`,key:`192myk`}]]),C=x(`archive`,[[`rect`,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`,key:`1wp1u1`}],[`path`,{d:`M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8`,key:`1s80jp`}],[`path`,{d:`M10 12h4`,key:`a56b0p`}]]),w=x(`arrow-down`,[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]),T=x(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),E=x(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),D=x(`arrow-up-down`,[[`path`,{d:`m21 16-4 4-4-4`,key:`f6ql7i`}],[`path`,{d:`M17 20V4`,key:`1ejh1v`}],[`path`,{d:`m3 8 4-4 4 4`,key:`11wl7u`}],[`path`,{d:`M7 4v16`,key:`1glfcx`}]]),O=x(`arrow-up`,[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]),k=x(`bot`,[[`path`,{d:`M12 8V4H8`,key:`hb8ula`}],[`rect`,{width:`16`,height:`12`,x:`4`,y:`8`,rx:`2`,key:`enze0r`}],[`path`,{d:`M2 14h2`,key:`vft8re`}],[`path`,{d:`M20 14h2`,key:`4cs60a`}],[`path`,{d:`M15 13v2`,key:`1xurst`}],[`path`,{d:`M9 13v2`,key:`rq6x2g`}]]),A=x(`calendar`,[[`path`,{d:`M8 2v3`,key:`1ioesn`}],[`path`,{d:`M16 2v3`,key:`otl347`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}],[`path`,{d:`M3 9h18`,key:`1pudct`}]]),j=x(`check-check`,[[`path`,{d:`M18 6 7 17l-5-5`,key:`116fxf`}],[`path`,{d:`m22 10-7.5 7.5L13 16`,key:`ke71qq`}]]),M=x(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),N=x(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),P=x(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),F=x(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),I=x(`chevrons-left`,[[`path`,{d:`m11 17-5-5 5-5`,key:`13zhaf`}],[`path`,{d:`m18 17-5-5 5-5`,key:`h8a8et`}]]),L=x(`chevrons-right`,[[`path`,{d:`m6 17 5-5-5-5`,key:`xnjwq`}],[`path`,{d:`m13 17 5-5-5-5`,key:`17xmmf`}]]),R=x(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),z=x(`circle-check-big`,[[`path`,{d:`M21.801 10A10 10 0 1 1 17 3.335`,key:`yps3ct`}],[`path`,{d:`m9 11 3 3L22 4`,key:`1pflzl`}]]),B=x(`circle-stop`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`rect`,{x:`9`,y:`9`,width:`6`,height:`6`,rx:`1`,key:`1ssd4o`}]]),V=x(`circle-x`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),ee=x(`circle`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),te=x(`clipboard`,[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}]]),ne=x(`clock`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]),re=x(`cloud-fog`,[[`path`,{d:`M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242`,key:`1pljnt`}],[`path`,{d:`M16 17H7`,key:`pygtm1`}],[`path`,{d:`M17 21H9`,key:`1u2q02`}]]),ie=x(`code-xml`,[[`path`,{d:`m18 16 4-4-4-4`,key:`1inbqp`}],[`path`,{d:`m6 8-4 4 4 4`,key:`15zrgr`}],[`path`,{d:`m14.5 4-5 16`,key:`e7oirm`}]]),ae=x(`columns-2`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M12 3v18`,key:`108xh3`}]]),oe=x(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),se=x(`corner-down-right`,[[`path`,{d:`m15 10 5 5-5 5`,key:`qqa56n`}],[`path`,{d:`M4 4v7a4 4 0 0 0 4 4h12`,key:`z08zvw`}]]),ce=x(`cpu`,[[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M17 20v2`,key:`1rnc9c`}],[`path`,{d:`M17 2v2`,key:`11trls`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M2 17h2`,key:`7oei6x`}],[`path`,{d:`M2 7h2`,key:`asdhe0`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`M20 17h2`,key:`1fpfkl`}],[`path`,{d:`M20 7h2`,key:`1o8tra`}],[`path`,{d:`M7 20v2`,key:`4gnj0m`}],[`path`,{d:`M7 2v2`,key:`1i4yhu`}],[`rect`,{x:`4`,y:`4`,width:`16`,height:`16`,rx:`2`,key:`1vbyd7`}],[`rect`,{x:`8`,y:`8`,width:`8`,height:`8`,rx:`1`,key:`z9xiuo`}]]),H=x(`download`,[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]),U=x(`earth`,[[`path`,{d:`M21.54 15H17a2 2 0 0 0-2 2v4.54`,key:`1djwo0`}],[`path`,{d:`M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17`,key:`1tzkfa`}],[`path`,{d:`M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05`,key:`14pb5j`}],[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),le=x(`ellipsis`,[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`19`,cy:`12`,r:`1`,key:`1wjl8i`}],[`circle`,{cx:`5`,cy:`12`,r:`1`,key:`1pcz8c`}]]),ue=x(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),de=x(`eye-off`,[[`path`,{d:`M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49`,key:`ct8e1f`}],[`path`,{d:`M14.084 14.158a3 3 0 0 1-4.242-4.242`,key:`151rxh`}],[`path`,{d:`M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143`,key:`13bj9a`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),fe=x(`eye`,[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),pe=x(`file-code-corner`,[[`path`,{d:`M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35`,key:`1wthlu`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m5 16-3 3 3 3`,key:`331omg`}],[`path`,{d:`m9 22 3-3-3-3`,key:`lsp7cz`}]]),me=x(`file-diff`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M9 10h6`,key:`9gxzsh`}],[`path`,{d:`M12 13V7`,key:`h0r20n`}],[`path`,{d:`M9 17h6`,key:`r8uit2`}]]),he=x(`file-image`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`circle`,{cx:`10`,cy:`12`,r:`2`,key:`737tya`}],[`path`,{d:`m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22`,key:`wt3hpn`}]]),ge=x(`file-pen-line`,[[`path`,{d:`M14.364 13.634a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506l4.013-4.009a1 1 0 0 0-3.004-3.004z`,key:`ukzhwg`}],[`path`,{d:`M14.487 7.858A1 1 0 0 1 14 7V2`,key:`1klhew`}],[`path`,{d:`M20 19.645V20a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l2.516 2.516`,key:`rxaxab`}],[`path`,{d:`M8 18h1`,key:`13wk12`}]]),_e=x(`file-plus-corner`,[[`path`,{d:`M11.35 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v5.35`,key:`17jvcc`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M14 19h6`,key:`bvotb8`}],[`path`,{d:`M17 16v6`,key:`18yu1i`}]]),ve=x(`file-text`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]),ye=x(`file`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}]]),be=x(`flower-2`,[[`path`,{d:`M12 5a3 3 0 1 1 3 3m-3-3a3 3 0 1 0-3 3m3-3v1M9 8a3 3 0 1 0 3 3M9 8h1m5 0a3 3 0 1 1-3 3m3-3h-1m-2 3v-1`,key:`3pnvol`}],[`circle`,{cx:`12`,cy:`8`,r:`2`,key:`1822b1`}],[`path`,{d:`M12 10v12`,key:`6ubwww`}],[`path`,{d:`M12 22c4.2 0 7-1.667 7-5-4.2 0-7 1.667-7 5Z`,key:`9hd38g`}],[`path`,{d:`M12 22c-4.2 0-7-1.667-7-5 4.2 0 7 1.667 7 5Z`,key:`ufn41s`}]]),xe=x(`folder-cog`,[[`path`,{d:`M10.3 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.98a2 2 0 0 1 1.69.9l.66 1.2A2 2 0 0 0 12 6h8a2 2 0 0 1 2 2v3.3`,key:`128dxu`}],[`path`,{d:`m14.305 19.53.923-.382`,key:`3m78fa`}],[`path`,{d:`m15.228 16.852-.923-.383`,key:`npixar`}],[`path`,{d:`m16.852 15.228-.383-.923`,key:`5xggr7`}],[`path`,{d:`m16.852 20.772-.383.924`,key:`dpfhf9`}],[`path`,{d:`m19.148 15.228.383-.923`,key:`1reyyz`}],[`path`,{d:`m19.53 21.696-.382-.924`,key:`1goivc`}],[`path`,{d:`m20.772 16.852.924-.383`,key:`htqkph`}],[`path`,{d:`m20.772 19.148.924.383`,key:`9w9pjp`}],[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}]]),Se=x(`folder-input`,[[`path`,{d:`M2 9V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-1`,key:`fm4g5t`}],[`path`,{d:`M2 13h10`,key:`pgb2dq`}],[`path`,{d:`m9 16 3-3-3-3`,key:`6m91ic`}]]),Ce=x(`folder-open`,[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`,key:`usdka0`}]]),we=x(`folder-plus`,[[`path`,{d:`M12 10v6`,key:`1bos4e`}],[`path`,{d:`M9 13h6`,key:`1uhe8q`}],[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),Te=x(`folder`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),Ee=x(`funnel`,[[`path`,{d:`M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z`,key:`sc7q7i`}]]),De=x(`gauge`,[[`path`,{d:`m12 14 4-4`,key:`9kzdfg`}],[`path`,{d:`M3.34 19a10 10 0 1 1 17.32 0`,key:`19p75a`}]]),Oe=x(`git-branch`,[[`path`,{d:`M15 6a9 9 0 0 0-9 9V3`,key:`1cii5b`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}]]),W=x(`globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),ke=x(`image-plus`,[[`path`,{d:`M16 5h6`,key:`1vod17`}],[`path`,{d:`M19 2v6`,key:`4bpg5p`}],[`path`,{d:`M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5`,key:`1ue2ih`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}]]),Ae=x(`image`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]),je=x(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),Me=x(`key-round`,[[`path`,{d:`M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z`,key:`1s6t7t`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`w0ekpg`}]]),Ne=x(`layers`,[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`,key:`zw3jo`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`,key:`1wduqc`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`,key:`kqbvx6`}]]),Pe=x(`lightbulb`,[[`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`,key:`1gvzjb`}],[`path`,{d:`M9 18h6`,key:`x1upvd`}],[`path`,{d:`M10 22h4`,key:`ceow96`}]]),Fe=x(`link`,[[`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`,key:`1cjeqo`}],[`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`,key:`19qd67`}]]),Ie=x(`list-checks`,[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`path`,{d:`m3 7 2 2 4-4`,key:`1obspn`}]]),Le=x(`list-ordered`,[[`path`,{d:`M11 5h10`,key:`1cz7ny`}],[`path`,{d:`M11 12h10`,key:`1438ji`}],[`path`,{d:`M11 19h10`,key:`11t30w`}],[`path`,{d:`M4 4h1v5`,key:`10yrso`}],[`path`,{d:`M4 9h2`,key:`r1h2o0`}],[`path`,{d:`M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02`,key:`xtkcd5`}]]),Re=x(`list-tree`,[[`path`,{d:`M8 5h13`,key:`1pao27`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`M3 10a2 2 0 0 0 2 2h3`,key:`1npucw`}],[`path`,{d:`M3 5v12a2 2 0 0 0 2 2h3`,key:`x1gjn2`}]]),ze=x(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]),Be=x(`maximize-2`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`m21 3-7 7`,key:`1l2asr`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M9 21H3v-6`,key:`wtvkvv`}]]),Ve=x(`maximize`,[[`path`,{d:`M8 3H5a2 2 0 0 0-2 2v3`,key:`1dcmit`}],[`path`,{d:`M21 8V5a2 2 0 0 0-2-2h-3`,key:`1e4gt3`}],[`path`,{d:`M3 16v3a2 2 0 0 0 2 2h3`,key:`wsl5sc`}],[`path`,{d:`M16 21h3a2 2 0 0 0 2-2v-3`,key:`18trek`}]]),He=x(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),Ue=x(`message-circle-question-mark`,[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),We=x(`message-square-plus`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}],[`path`,{d:`M12 8v6`,key:`1ib9pf`}],[`path`,{d:`M9 11h6`,key:`1fldmi`}]]),Ge=x(`message-square`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}]]),Ke=x(`messages-square`,[[`path`,{d:`M16 10a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 14.286V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z`,key:`1n2ejm`}],[`path`,{d:`M20 9a2 2 0 0 1 2 2v10.286a.71.71 0 0 1-1.212.502l-2.202-2.202A2 2 0 0 0 17.172 19H10a2 2 0 0 1-2-2v-1`,key:`1qfcsi`}]]),qe=x(`mic`,[[`path`,{d:`M12 19v3`,key:`npa21l`}],[`path`,{d:`M19 10v2a7 7 0 0 1-14 0v-2`,key:`1vc78b`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`13`,rx:`3`,key:`s6n7sd`}]]),Je=x(`minimize-2`,[[`path`,{d:`m14 10 7-7`,key:`oa77jy`}],[`path`,{d:`M20 10h-6V4`,key:`mjg0md`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M4 14h6v6`,key:`rmj7iw`}]]),Ye=x(`minus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]),Xe=x(`monitor`,[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]),Ze=x(`moon`,[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]),Qe=x(`panel-left-close`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`m16 15-3-3 3-3`,key:`14y99z`}]]),$e=x(`panel-left-open`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`m14 9 3 3-3 3`,key:`8010ee`}]]),et=x(`panel-right`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}]]),tt=x(`pencil`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]),nt=x(`pin`,[[`path`,{d:`M12 17v5`,key:`bb1du9`}],[`path`,{d:`M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z`,key:`1nkz8b`}]]),rt=x(`plug`,[[`path`,{d:`M12 22v-5`,key:`1ega77`}],[`path`,{d:`M15 8V2`,key:`18g5xt`}],[`path`,{d:`M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z`,key:`1xoxul`}],[`path`,{d:`M9 8V2`,key:`14iosj`}]]),it=x(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),at=x(`puzzle`,[[`path`,{d:`M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z`,key:`w46dr5`}]]),ot=x(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]),st=x(`rotate-ccw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]),ct=x(`scan`,[[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`,key:`aa7l1z`}],[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`,key:`4qcy5o`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`,key:`6vwrx8`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`,key:`ioqczr`}]]),lt=x(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),ut=x(`send`,[[`path`,{d:`M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z`,key:`1ffxy3`}],[`path`,{d:`m21.854 2.147-10.94 10.939`,key:`12cjpa`}]]),dt=x(`settings-2`,[[`path`,{d:`M14 17H5`,key:`gfn3mx`}],[`path`,{d:`M19 7h-9`,key:`6i9tg`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}],[`circle`,{cx:`7`,cy:`7`,r:`3`,key:`dfmy0x`}]]),ft=x(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),pt=x(`sheet`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`line`,{x1:`3`,x2:`21`,y1:`9`,y2:`9`,key:`1vqk6q`}],[`line`,{x1:`3`,x2:`21`,y1:`15`,y2:`15`,key:`o2sbyz`}],[`line`,{x1:`9`,x2:`9`,y1:`9`,y2:`21`,key:`1ib60c`}],[`line`,{x1:`15`,x2:`15`,y1:`9`,y2:`21`,key:`1n26ft`}]]),mt=x(`sliders-horizontal`,[[`path`,{d:`M10 5H3`,key:`1qgfaw`}],[`path`,{d:`M12 19H3`,key:`yhmn1j`}],[`path`,{d:`M14 3v4`,key:`1sua03`}],[`path`,{d:`M16 17v4`,key:`1q0r14`}],[`path`,{d:`M21 12h-9`,key:`1o4lsq`}],[`path`,{d:`M21 19h-5`,key:`1rlt1p`}],[`path`,{d:`M21 5h-7`,key:`1oszz2`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M8 12H3`,key:`a7s4jb`}]]),ht=x(`sparkles`,[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]),gt=x(`square-pen`,[[`path`,{d:`M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7`,key:`1m0v6g`}],[`path`,{d:`M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z`,key:`ohrbg2`}]]),_t=x(`square-terminal`,[[`path`,{d:`m7 11 2-2-2-2`,key:`1lz0vl`}],[`path`,{d:`M11 13h4`,key:`1p7l4v`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}]]),vt=x(`square`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]),yt=x(`sun`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]),bt=x(`target`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`circle`,{cx:`12`,cy:`12`,r:`6`,key:`1vlfrh`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}]]),xt=x(`terminal`,[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]),St=x(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),Ct=x(`tree-pine`,[[`path`,{d:`m17 14 3 3.3a1 1 0 0 1-.7 1.7H4.7a1 1 0 0 1-.7-1.7L7 14h-.3a1 1 0 0 1-.7-1.7L9 9h-.2A1 1 0 0 1 8 7.3L12 3l4 4.3a1 1 0 0 1-.8 1.7H15l3 3.3a1 1 0 0 1-.7 1.7H17Z`,key:`cpyugq`}],[`path`,{d:`M12 22v-3`,key:`kmzjlo`}]]),wt=x(`triangle-alert`,[[`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`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),Tt=x(`upload`,[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]),Et=x(`workflow`,[[`rect`,{width:`8`,height:`8`,x:`3`,y:`3`,rx:`2`,key:`by2w9f`}],[`path`,{d:`M7 11v4a2 2 0 0 0 2 2h4`,key:`xkn7yn`}],[`rect`,{width:`8`,height:`8`,x:`13`,y:`13`,rx:`2`,key:`1cgmvn`}]]),Dt=x(`wrench`,[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`,key:`1ngwbx`}]]),Ot=x(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),kt=u(),At=e=>typeof e==`string`,jt=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},Mt=e=>e==null?``:String(e),Nt=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},Pt=/###/g,Ft=e=>e&&e.includes(`###`)?e.replace(Pt,`.`):e,It=e=>!e||At(e),Lt=(e,t,n)=>{let r=At(t)?t.split(`.`):t,i=0;for(;i{let{obj:r,k:i}=Lt(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],o=t.slice(0,t.length-1),s=Lt(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=Lt(e,o,Object),s?.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},zt=(e,t,n,r)=>{let{obj:i,k:a}=Lt(e,t,Object);i[a]=i[a]||[],i[a].push(n)},Bt=(e,t)=>{let{obj:n,k:r}=Lt(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},Vt=(e,t,n)=>{let r=Bt(e,n);return r===void 0?Bt(t,n):r},Ht=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(Object.prototype.hasOwnProperty.call(e,r)?At(e[r])||e[r]instanceof String||At(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):Ht(e[r],t[r],n):e[r]=t[r]);return e},Ut=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),Wt={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`,"/":`/`},Gt=e=>At(e)?e.replace(/[&<>"'\/]/g,e=>Wt[e]):e,Kt=class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(t!==void 0)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}},qt=[` `,`,`,`?`,`!`,`;`],Jt=new Kt(20),Yt=(e,t,n)=>{t||=``,n||=``;let r=qt.filter(e=>!t.includes(e)&&!n.includes(e));if(r.length===0)return!0;let i=Jt.getRegExp(`(${r.map(e=>e===`?`?`\\?`:e).join(`|`)})`),a=!i.test(e);if(!a){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(a=!0)}return a},Xt=(e,t,n=`.`)=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let r=t.split(n),i=e;for(let e=0;ee?.replace(/_/g,`-`),Qt={type:`logger`,log(e){this.output(`log`,e)},warn(e){this.output(`warn`,e)},error(e){this.output(`error`,e)},output(e,t){console?.[e]?.apply?.(console,t)}},$t=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||`i18next:`,this.logger=e||Qt,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,`log`,``,!0)}warn(...e){return this.forward(e,`warn`,``,!0)}error(...e){return this.forward(e,`error`,``)}deprecate(...e){return this.forward(e,`warn`,`WARNING DEPRECATED: `,!0)}forward(e,t,n,r){return r&&!this.debug?null:(e=e.map(e=>At(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g,` `):e),At(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t||=this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},en=class{constructor(){this.observers={}}on(e,t){return e.split(` `).forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}once(e,t){let n=(...r)=>{t(...r),this.off(e,n)};return this.on(e,n),this}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r{for(let i=0;i-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){let i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o;e.includes(`.`)?o=e.split(`.`):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):At(n)&&i?o.push(...n.split(i)):o.push(n)));let s=Bt(this.data,o);return!s&&!t&&!n&&e.includes(`.`)&&(e=o[0],t=o[1],n=o.slice(2).join(`.`)),s||!a||!At(n)?s:Xt(this.data?.[e]?.[t],n,i)}addResource(e,t,n,r,i={silent:!1}){let a=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.includes(`.`)&&(o=e.split(`.`),r=t,t=o[1]),this.addNamespaces(t),Rt(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(let r in n)(At(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit(`added`,e,t,n)}addResourceBundle(e,t,n,r,i,a={silent:!1,skipCopy:!1}){let o=[e,t];e.includes(`.`)&&(o=e.split(`.`),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=Bt(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?Ht(s,n,i):s={...s,...n},Rt(this.data,o,s),a.silent||this.emit(`added`,e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(`removed`,e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||=this.options.defaultNS,this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}},nn={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,i)??t}),t}},rn=Symbol(`i18next/PATH_KEY`);function an(){let e=[],t=Object.create(null),n;return t.get=(r,i)=>(n?.revoke?.(),i===rn?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function on(e,t){let{[rn]:n}=e(an()),r=t?.keySeparator??`.`,i=t?.nsSeparator??`:`,a=t?.enableSelector===`strict`;if(n.length>1&&i){let e=t?.ns,o=a?Array.isArray(e)?e:e?[e]:null:Array.isArray(e)?e:null;if(o&&(a?o:o.length>1?o.slice(1):[]).includes(n[0]))return`${n[0]}${i}${n.slice(1).join(r)}`}return n.join(r)}var sn=e=>!At(e)&&typeof e!=`boolean`&&typeof e!=`number`,cn=class e extends en{constructor(e,t={}){super(),Nt([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=$t.create(`translator`),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let n={...t};if(e==null)return!1;let r=this.resolve(e,n);if(r?.res===void 0)return!1;let i=sn(r.res);return!(n.returnObjects===!1&&i)}extractFromKey(e,t){let n=t.nsSeparator===void 0?this.options.nsSeparator:t.nsSeparator;n===void 0&&(n=`:`);let r=t.keySeparator===void 0?this.options.keySeparator:t.keySeparator,i=t.ns||this.options.defaultNS||[],a=n&&e.includes(n),o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!Yt(e,n,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:At(i)?[i]:i};let a=e.split(n);(n!==r||n===r&&this.options.ns.includes(a[0]))&&(i=a.shift()),e=a.join(r)}return{key:e,namespaces:At(i)?[i]:i}}translate(t,n,r){let i=typeof n==`object`?{...n}:n;if(typeof i!=`object`&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i==`object`&&(i={...i}),i||={},t==null)return``;typeof t==`function`&&(t=on(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(e=>typeof e==`function`?on(e,{...this.options,...i}):String(e));let a=i.returnDetails===void 0?this.options.returnDetails:i.returnDetails,o=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,{key:s,namespaces:c}=this.extractFromKey(t[t.length-1],i),l=c[c.length-1],u=i.nsSeparator===void 0?this.options.nsSeparator:i.nsSeparator;u===void 0&&(u=`:`);let d=i.lng||this.language,f=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()===`cimode`)return f?a?{res:`${l}${u}${s}`,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:`${l}${u}${s}`:a?{res:s,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:s;let p=this.resolve(t,i),m=p?.res,h=p?.usedKey||s,g=p?.exactUsedKey||s,_=[`[object Number]`,`[object Function]`,`[object RegExp]`],v=i.joinArrays===void 0?this.options.joinArrays:i.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,b=i.count!==void 0&&!At(i.count),x=e.hasDefaultValue(i),S=b?this.pluralResolver.getSuffix(d,i.count,i):``,C=i.ordinal&&b?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):``,w=b&&!i.ordinal&&i.count===0,T=w&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${S}`]||i[`defaultValue${C}`]||i.defaultValue,E=m;y&&!m&&x&&(E=T);let D=sn(E),O=Object.prototype.toString.apply(E);if(y&&E&&D&&!_.includes(O)&&!(At(v)&&Array.isArray(E))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,E,{...i,ns:c}):`key '${s} (${this.language})' returned an object instead of string.`;return a?(p.res=e,p.usedParams=this.getUsedParamsDetails(i),p):e}if(o){let e=Array.isArray(E),t=e?[]:{},n=e?g:h;for(let e in E)if(Object.prototype.hasOwnProperty.call(E,e)){let r=`${n}${o}${e}`;t[e]=x&&!m?this.translate(r,{...i,defaultValue:sn(T)?T[e]:void 0,joinArrays:!1,ns:c}):this.translate(r,{...i,joinArrays:!1,ns:c}),t[e]===r&&(t[e]=E[e])}m=t}}else if(y&&At(v)&&Array.isArray(m))m=m.join(v),m&&=this.extendTranslation(m,t,i,r);else{let e=!1,n=!1;!this.isValidLookup(m)&&x&&(e=!0,m=T),this.isValidLookup(m)||(n=!0,m=s);let a=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&n?void 0:m,c=x&&T!==m&&this.options.updateMissing;if(n||e||c){if(this.logger.log(c?`updateKey`:`missingKey`,d,l,b&&!c?`${s}${this.pluralResolver.getSuffix(d,i.count,i)}`:s,c?T:m),o){let e=this.resolve(s,{...i,keySeparator:!1});e&&e.res&&this.logger.warn(`Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.`)}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo===`fallback`&&t&&t[0])for(let n=0;n{let r=x&&n!==m?n:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,r,c,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,r,c,i),this.emit(`missingKey`,e,l,t,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,i);w&&i[`defaultValue${this.options.pluralSeparator}zero`]&&!t.includes(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],s+t,i[`defaultValue${t}`]||T)})}):n(e,s,T))}m=this.extendTranslation(m,t,i,p,r),n&&m===s&&this.options.appendNamespaceToMissingKey&&(m=`${l}${u}${s}`),(n||e)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${s}`:s,e?m:void 0,i))}return a?(p.res=m,p.usedParams=this.getUsedParamsDetails(i),p):m}extendTranslation(e,t,n,r,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let a=At(e)&&(n?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:n.interpolation.skipOnVariables),o;if(a){let t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let s=n.replace&&!At(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||r.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;oi?.[0]===e[0]&&!n.context?(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null):this.translate(...e,t),n)),n.interpolation&&this.interpolator.reset()}let a=n.postProcess||this.options.postProcess,o=At(a)?[a]:a;return e!=null&&o?.length&&n.applyPostProcessor!==!1&&(e=nn.handle(o,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,i,a,o;return At(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>typeof e==`function`?on(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),c=s.key;r=c;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));let u=t.count!==void 0&&!At(t.count),d=u&&!t.ordinal&&t.count===0,f=t.context!==void 0&&(At(t.context)||typeof t.context==`number`)&&t.context!==``,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);l.forEach(e=>{this.isValidLookup(n)||(o=e,!this.checkedLoadedFor[`${p[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(this.checkedLoadedFor[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(`, `)}" won't get resolved as namespace "${o}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`)),p.forEach(r=>{if(this.isValidLookup(n))return;a=r;let o=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(t.ordinal&&e.startsWith(i)&&o.push(c+e.replace(i,this.options.pluralSeparator)),o.push(c+e),d&&o.push(c+n)),f){let r=`${c}${this.options.contextSeparator||`_`}${t.context}`;o.push(r),u&&(t.ordinal&&e.startsWith(i)&&o.push(r+e.replace(i,this.options.pluralSeparator)),o.push(r+e),d&&o.push(r+n))}}let s;for(;s=o.pop();)this.isValidLookup(n)||(i=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e===``)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){let t=[`defaultValue`,`ordinal`,`context`,`replace`,`lng`,`lngs`,`fallbackLng`,`ns`,`keySeparator`,`nsSeparator`,`returnObjects`,`returnDetails`,`joinArrays`,`postProcess`,`interpolation`],n=e.replace&&!At(e.replace),r=n?e.replace:e;if(n&&e.count!==void 0&&(r={...r,count:e.count}),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(let e of t)delete r[e]}return r}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.startsWith(`defaultValue`)&&e[t]!==void 0)return!0;return!1}},ln=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=$t.create(`languageUtils`),this.resolveHierarchyCache={}}clearCache(){this.resolveHierarchyCache={}}getScriptPartFromCode(e){if(e=Zt(e),!e||!e.includes(`-`))return null;let t=e.split(`-`);return t.length===2||(t.pop(),t[t.length-1].toLowerCase()===`x`)?null:this.formatLanguageCode(t.join(`-`))}getLanguagePartFromCode(e){if(e=Zt(e),!e||!e.includes(`-`))return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(At(e)&&e.includes(`-`)){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load===`languageOnly`||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(e)}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>e===r?!0:!e.includes(`-`)&&!r.includes(`-`)?!1:!!(e.includes(`-`)&&!r.includes(`-`)&&e.slice(0,e.indexOf(`-`))===r||e.startsWith(r)&&r.length>1))}),t||=this.getFallbackCodes(this.options.fallbackLng)[0],t}getFallbackCodes(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),At(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||=e[this.getScriptPartFromCode(t)],n||=e[this.formatLanguageCode(t)],n||=e[this.getLanguagePartFromCode(t)],n||=e.default,n||[]}toResolveHierarchy(e,t){let n=this.options.fallbackLng,r=Array.isArray(n)?n.join(`|`):n;r!==this._cachedFallbackLng&&(this.resolveHierarchyCache={},this._cachedFallbackLng=r);let i=t===void 0||t===!1||At(t),a=t===void 0&&typeof this.options.fallbackLng==`function`,o=At(e)&&i&&!a,s=null;if(o){let n;n=t===void 0?`undefined`:t===!1?`boolean:false`:`string:${t}`,s=`${e.length}:${e}|${n}`}if(s!==null){let e=this.resolveHierarchyCache[s];if(e!==void 0)return e.slice()}let c=this.getFallbackCodes((t===!1?[]:t)||this.options.fallbackLng||[],e),l=[],u=e=>{e&&(this.isSupportedCode(e)?l.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return At(e)&&(e.includes(`-`)||e.includes(`_`))?(this.options.load!==`languageOnly`&&u(this.formatLanguageCode(e)),this.options.load!==`languageOnly`&&this.options.load!==`currentOnly`&&u(this.getScriptPartFromCode(e)),this.options.load!==`currentOnly`&&u(this.getLanguagePartFromCode(e))):At(e)&&u(this.formatLanguageCode(e)),c.forEach(e=>{l.includes(e)||u(this.formatLanguageCode(e))}),s===null?l:(this.resolveHierarchyCache[s]=l,l.slice())}},un={zero:0,one:1,two:2,few:3,many:4,other:5},dn={select:e=>e===1?`one`:`other`,resolvedOptions:()=>({pluralCategories:[`one`,`other`]})},fn=class{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=$t.create(`pluralResolver`),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n=Zt(e===`dev`?`en`:e),r=t.ordinal?`ordinal`:`cardinal`,i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:r})}catch{if(typeof Intl>`u`)return this.logger.error(`No Intl support, please use an Intl polyfill!`),dn;if(!e.match(/-|_/))return dn;let n=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(n,t)}return this.pluralRulesCache[i]=a,a}needsPlural(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?n.resolvedOptions().pluralCategories.sort((e,t)=>un[e]-un[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:``}${e}`):[]}getSuffix(e,t,n={}){let r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:``}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix(`dev`,t,n))}},pn=(e,t,n,r=`.`,i=!0)=>{let a=Vt(e,t,n);return!a&&i&&At(n)&&(a=Xt(e,n,r),a===void 0&&(a=Xt(t,n,r))),a},mn=e=>e.replace(/\$/g,`$$$$`),hn=class{constructor(e={}){this.logger=$t.create(`interpolator`),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||={escapeValue:!0};let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:a,suffix:o,suffixEscaped:s,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:m,nestingOptionsSeparator:h,maxReplaces:g,alwaysFormat:_}=e.interpolation;this.escape=t===void 0?Gt:t,this.escapeValue=n===void 0||n,this.useRawValueToEscape=r!==void 0&&r,this.prefix=i?Ut(i):a||`{{`,this.suffix=o?Ut(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u?Ut(u):`-`,this.unescapeSuffix=this.unescapePrefix?``:l?Ut(l):``,this.nestingPrefix=d?Ut(d):f||Ut(`$t(`),this.nestingSuffix=p?Ut(p):m||Ut(`)`),this.nestingOptionsSeparator=h||`,`,this.maxReplaces=g||1e3,this.alwaysFormat=_!==void 0&&_,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,`g`);this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let i,a,o,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(!e.includes(this.formatSeparator)){let i=pn(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),a=i.shift().trim(),o=i.join(this.formatSeparator).trim();return this.format(pn(t,s,a,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,{...r,...t,interpolationkey:a})};this.resetRegExp(),!this.escapeValue&&typeof e==`string`&&/\$t\([^)]*\{[^}]*\{\{/.test(e)&&this.logger.warn(`nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.`);let l=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:r.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>e},{regex:this.regexp,safeValue:e=>this.escapeValue?this.escape(e):e}].forEach(t=>{for(o=0;i=t.regex.exec(e);){let n=i[1].trim();if(a=c(n),a===void 0)if(typeof l==`function`){let t=l(e,i,r);a=At(t)?t:``}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a=``;else if(u){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),a=``;else!At(a)&&!this.useRawValueToEscape&&(a=Mt(a));let s=t.safeValue(a);if(e=e.replace(i[0],mn(s)),u?(t.regex.lastIndex+=s.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,i,a,o=(e,t)=>{let n=this.nestingOptionsSeparator;if(!e.includes(n))return e;let r=e.split(RegExp(`${Ut(n)}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,a);let o=i.match(/'/g),s=i.match(/"/g);((o?.length??0)%2==0&&!s||(s?.length??0)%2!=0)&&(i=i.replace(/'/g,`"`));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return a.defaultValue&&a.defaultValue.includes(this.prefix)&&delete a.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];a={...n},a=a.replace&&!At(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=/{.*}/s.test(r[1])?r[1].lastIndexOf(`}`)+1:r[1].indexOf(this.formatSeparator);if(c!==-1&&(s=r[1].slice(c).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,c)),i=t(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!At(i))return i;At(i)||(i=Mt(i)),i||=(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),``),s.length&&(i=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}},gn=e=>{let t=e.toLowerCase().trim(),n={};if(e.includes(`(`)){let r=e.split(`(`);t=r[0].toLowerCase().trim();let i=r[1].slice(0,-1);t===`currency`&&!i.includes(`:`)?n.currency||=i.trim():t===`relativetime`&&!i.includes(`:`)?n.range||=i.trim():i.split(`;`).forEach(e=>{if(e){let[t,...r]=e.split(`:`),i=r.join(`:`).trim().replace(/^'+|'+$/g,``),a=t.trim();n[a]||(n[a]=i),i===`false`&&(n[a]=!1),i===`true`&&(n[a]=!0),isNaN(i)||(n[a]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}},_n=e=>{let t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});let o=r+JSON.stringify(a),s=t[o];return s||(s=e(Zt(r),i),t[o]=s),s(n)}},vn=e=>(t,n,r)=>e(Zt(n),r)(t),yn=class{constructor(e={}){this.logger=$t.create(`formatter`),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||`,`;let n=t.cacheInBuiltFormats?_n:vn;this.formats={number:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:`currency`});return e=>n.format(e)}),datetime:n((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||`day`)}),list:n((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=_n(t)}format(e,t,n,r={}){if(!t||e==null)return e;let i=t.split(this.formatSeparator),a=[];for(let e=0;e-1&&!t.includes(`)`)&&e+1{let{formatName:i,formatOptions:a}=gn(t);if(this.formats[i]){let t=e;try{let o=r?.formatParams?.[r.interpolationkey]||{},s=o.locale||o.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...a,...r,...o})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${i}`),e},e)}},bn=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},xn=class extends en{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=$t.create(`backendConnector`),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){let i={},a={},o={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let o=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(this.state[o]===1?a[o]===void 0&&(a[o]=!0):(this.state[o]=1,r=!1,a[o]===void 0&&(a[o]=!0),i[o]===void 0&&(i[o]=!0),s[t]===void 0&&(s[t]=!0)))}),r||(o[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let r=e.split(`|`),i=r[0],a=r[1];t&&this.emit(`failedLoading`,i,a,t),!t&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let o={};this.queue.forEach(n=>{zt(n.loaded,[i],a),bn(n,e),t&&n.errors.push(t),n.pendingCount===0&&!n.done&&(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{o[e][t]===void 0&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit(`loaded`,o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,i=this.retryTimeout,a){if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a});return}this.readingCalls++;let o=(o,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(o&&s&&r{this.read(e,t,n,r+1,i*2,a)},i);return}a(o,s)},s=this.backend[n].bind(this.backend);if(s.length===2){try{let n=s(e,t);n&&typeof n.then==`function`?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}return}return s(e,t,o)}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`),r&&r();At(e)&&(e=this.languageUtils.toResolveHierarchy(e)),At(t)&&(t=[t]);let i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=``){let n=e.split(`|`),r=n[0],i=n[1];this.read(r,i,`read`,void 0,void 0,(n,a)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&a&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,a),this.loaded(e,n,a)})}saveMissing(e,t,n,r,i,a={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`);return}if(n!=null&&n!==``){if(this.backend?.create){let s={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=c.length===5?c(e,t,n,r,s):c(e,t,n,r),i&&typeof i.then==`function`?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else c(e,t,n,r,o,s)}!e||!e[0]||this.store.addResource(e[0],t,n,r)}}},Sn=()=>({debug:!1,initAsync:!0,ns:[`translation`],defaultNS:[`translation`],fallbackLng:[`dev`],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:`all`,preload:!1,keySeparator:`.`,nsSeparator:`:`,pluralSeparator:`_`,contextSeparator:`_`,enableSelector:!1,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:`fallback`,saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]==`object`&&(t=e[1]),At(e[1])&&(t.defaultValue=e[1]),At(e[2])&&(t.tDescription=e[2]),typeof e[2]==`object`||typeof e[3]==`object`){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,prefix:`{{`,suffix:`}}`,formatSeparator:`,`,unescapePrefix:`-`,nestingPrefix:`$t(`,nestingSuffix:`)`,nestingOptionsSeparator:`,`,maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Cn=e=>(At(e.ns)&&(e.ns=[e.ns]),At(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),At(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes(`cimode`)&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),e),wn=()=>{},Tn=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},En=class e extends en{constructor(e={},t){if(super(),this.options=Cn(e),this.services={},this.logger=$t,this.modules={external:[]},Tn(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,typeof e==`function`&&(t=e,e={}),e.defaultNS==null&&e.ns&&(At(e.ns)?e.defaultNS=e.ns:e.ns.includes(`translation`)||(e.defaultNS=e.ns[0]));let n=Sn();this.options={...n,...this.options,...Cn(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator),typeof this.options.overloadTranslationOptionHandler!=`function`&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler);let r=e=>e?typeof e==`function`?new e:e:null;if(!this.options.isClone){this.modules.logger?$t.init(r(this.modules.logger),this.options):$t.init(null,this.options);let e;e=this.modules.formatter?this.modules.formatter:yn;let t=new ln(this.options);this.store=new tn(this.options.resources,this.options);let n=this.services;n.logger=$t,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new fn(t,{prepend:this.options.pluralSeparator}),e&&(n.formatter=r(e),n.formatter.init&&n.formatter.init(n,this.options),this.options.interpolation.format=n.formatter.format.bind(n.formatter)),n.interpolator=new hn(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new xn(r(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(n.languageDetector=r(this.modules.languageDetector),n.languageDetector.init&&n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=r(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new cn(this.services,this.options),this.translator.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||=wn,this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&e[0]!==`dev`&&(this.options.lng=e[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn(`init: no languageDetector is used and no lng is defined`),[`getResource`,`hasResourceBundle`,`getResourceBundle`,`getDataByLanguage`].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),[`addResource`,`addResources`,`addResourceBundle`,`removeResourceBundle`].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});let i=jt(),a=()=>{let e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn(`init: i18next is already initialized. You should call init just once!`),this.isInitialized=!0,this.options.isClone||this.logger.log(`initialized`,this.options),this.emit(`initialized`,this.options),i.resolve(n),t(e,n)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?a():setTimeout(a,0),i}loadResources(e,t=wn){let n=t,r=At(e)?e:this.language;if(typeof e==`function`&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()===`cimode`&&(!this.options.preload||this.options.preload.length===0))return n();let e=[],t=t=>{t&&t!==`cimode`&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{t!==`cimode`&&(e.includes(t)||e.push(t))})};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{!e&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let r=jt();return typeof e==`function`&&(n=e,e=void 0),typeof t==`function`&&(n=t,t=void 0),e||=this.languages,t||=this.options.ns,n||=wn,this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);if(!e.type)throw Error(`You are passing a wrong module! Please check the object you are passing to i18next.use()`);return e.type===`backend`&&(this.modules.backend=e),(e.type===`logger`||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type===`languageDetector`&&(this.modules.languageDetector=e),e.type===`i18nFormat`&&(this.modules.i18nFormat=e),e.type===`postProcessor`&&nn.addPostProcessor(e),e.type===`formatter`&&(this.modules.formatter=e),e.type===`3rdParty`&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&![`cimode`,`dev`].includes(e)){for(let e=0;e{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,a)=>{a?this.isLanguageChangingTo===e&&(r(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit(`languageChanged`,a),this.logger.log(`languageChanged`,a)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},a=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let n=At(t)?t:t&&t[0],a=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(At(t)?[t]:t);a&&(this.language||r(a),this.translator.language||this.translator.changeLanguage(a),this.services.languageDetector?.cacheUserLanguage?.(a)),this.loadResources(a,e=>{i(e,a)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),n}getFixedT(e,t,n,r){let i=r?.scopeNs,a=(e,t,...r)=>{let o;o=typeof t==`object`?{...t}:this.options.overloadTranslationOptionHandler([e,t].concat(r)),o.lng=o.lng||a.lng,o.lngs=o.lngs||a.lngs;let s=o.ns!==void 0&&o.ns!==null;o.ns=o.ns||a.ns,o.keyPrefix!==``&&(o.keyPrefix=o.keyPrefix||n||a.keyPrefix);let c={...this.options,...o};Array.isArray(i)&&!s&&(c.ns=i),typeof o.keyPrefix==`function`&&(o.keyPrefix=on(o.keyPrefix,c));let l=this.options.keySeparator||`.`,u;return o.keyPrefix&&Array.isArray(e)?u=e.map(e=>(typeof e==`function`&&(e=on(e,c)),`${o.keyPrefix}${l}${e}`)):(typeof e==`function`&&(e=on(e,c)),u=o.keyPrefix?`${o.keyPrefix}${l}${e}`:e),this.t(u,o)};return At(e)?a.lng=e:a.lngs=e,a.ns=t,a.keyPrefix=n,a}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn(`hasLoadedNamespace: i18next was not initialized`,this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(`hasLoadedNamespace: i18n.languages were undefined or empty`,this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()===`cimode`)return!0;let a=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return n===-1||n===0||n===2};if(t.precheck){let e=t.precheck(this,a);if(e!==void 0)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!r||a(i,e)))}loadNamespaces(e,t){let n=jt();return this.options.ns?(At(e)&&(e=[e]),e.forEach(e=>{this.options.ns.includes(e)||this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=jt();At(e)&&(e=[e]);let r=this.options.preload||[],i=e.filter(e=>!r.includes(e)&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language),!e)return`rtl`;try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch{}let t=`ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`),n=this.services?.languageUtils||new ln(Sn());return e.toLowerCase().indexOf(`-latn`)>1?`ltr`:t.includes(n.getLanguagePartFromCode(e))||e.toLowerCase().indexOf(`-arab`)>1?`rtl`:`ltr`}static createInstance(t={},n){let r=new e(t,n);return r.createInstance=e.createInstance,r}cloneInstance(t={},n=wn){let r=t.forkResourceStore;r&&delete t.forkResourceStore;let i={...this.options,...t,isClone:!0},a=new e(i);if((t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),[`store`,`services`,`language`].forEach(e=>{a[e]=this[e]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new tn(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{}),i),a.services.resourceStore=a.store),t.interpolation){let e={...Sn().interpolation,...this.options.interpolation,...t.interpolation},n={...i,interpolation:e};a.services.interpolator=new hn(n)}return a.translator=new cn(a.services,i),a.translator.on(`*`,(e,...t)=>{a.emit(e,...t)}),a.init(i,n),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}.createInstance();En.createInstance,En.dir,En.init,En.loadResources,En.reloadResources,En.use,En.changeLanguage,En.getFixedT,En.t,En.exists,En.setDefaultNamespace,En.hasLoadedNamespace,En.loadNamespaces,En.loadLanguages;var Dn=(e,t,n,r)=>{let i=[n,{code:t,...r||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(i,`warn`,`react-i18next::`,!0);Pn(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...i):console?.warn&&console.warn(...i)},On={},kn=(e,t,n,r)=>{Pn(n)&&On[n]||(Pn(n)&&(On[n]=new Date),Dn(e,t,n,r))},An=(e,t)=>()=>{if(e.isInitialized)t();else{let n=()=>{setTimeout(()=>{e.off(`initialized`,n)},0),t()};e.on(`initialized`,n)}},jn=(e,t,n)=>{e.loadNamespaces(t,An(e,n))},Mn=(e,t,n,r)=>{if(Pn(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return jn(e,n,r);n.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,An(e,r))},Nn=(e,t,n={})=>!t.languages||!t.languages.length?(kn(t,`NO_LANGUAGES`,`i18n.languages were undefined or empty`,{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n&&n.bindI18n.indexOf(`languageChanging`)>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}),Pn=e=>typeof e==`string`,Fn=e=>typeof e==`object`&&!!e,In=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Ln={"&":`&`,"&":`&`,"<":`<`,"<":`<`,">":`>`,">":`>`,"'":`'`,"'":`'`,""":`"`,""":`"`," ":` `," ":` `,"©":`©`,"©":`©`,"®":`®`,"®":`®`,"…":`…`,"…":`…`,"/":`/`,"/":`/`},Rn=e=>Ln[e],zn={bindI18n:`languageChanged`,bindI18nStore:``,transEmptyNodeValue:``,transSupportBasicHtmlNodes:!0,transWrapTextNodes:``,transKeepBasicHtmlNodesFor:[`br`,`strong`,`i`,`p`],useSuspense:!0,unescape:e=>e.replace(In,Rn),transDefaultProps:void 0},Bn=(e={})=>{zn={...zn,...e}},Vn=()=>zn,Hn,Un=e=>{Hn=e},Wn=()=>Hn,Gn={type:`3rdParty`,init(e){Bn(e.options.react),Un(e)}},Kn=(0,_.createContext)(),qn=class{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}},Jn=n((e=>{var t=r();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:n,a=t.useState,o=t.useEffect,s=t.useLayoutEffect,c=t.useDebugValue;function l(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&l({inst:i})},[e,n,t]),o(function(){return u(i)&&l({inst:i}),e(function(){u(i)&&l({inst:i})})},[e]),c(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),Yn=n(((e,t)=>{t.exports=Jn()}))(),Xn={t:(e,t)=>{if(Pn(t))return t;if(Fn(t)&&Pn(t.defaultValue))return t.defaultValue;if(typeof e==`function`)return``;if(Array.isArray(e)){let t=e[e.length-1];return typeof t==`function`?``:t}return e},ready:!1},Zn=()=>()=>{},Qn=(e,t={})=>{let{i18n:n}=t,{i18n:r,defaultNS:i}=(0,_.useContext)(Kn)||{},a=n||r||Wn();a&&!a.reportNamespaces&&(a.reportNamespaces=new qn),a||kn(a,`NO_I18NEXT_INSTANCE`,`useTranslation: You will need to pass in an i18next instance by using initReactI18next or by passing it via props or context. In monorepo setups, make sure there is only one instance of react-i18next.`);let o=(0,_.useMemo)(()=>({...Vn(),...a?.options?.react,...t}),[a,t]),{useSuspense:s,keyPrefix:c}=o,l=e||i||a?.options?.defaultNS,u=Pn(l)?[l]:l||[`translation`],d=(0,_.useMemo)(()=>u,u);a?.reportNamespaces?.addUsedNamespaces?.(d);let f=(0,_.useRef)(0),p=(0,_.useCallback)(e=>{if(!a)return Zn;let{bindI18n:t,bindI18nStore:n}=o,r=()=>{f.current+=1,e()};return t&&a.on(t,r),n&&a.store.on(n,r),()=>{t&&t.split(` `).forEach(e=>a.off(e,r)),n&&n.split(` `).forEach(e=>a.store.off(e,r))}},[a,o]),m=(0,_.useRef)(),h=(0,_.useCallback)(()=>{if(!a)return Xn;let e=!!(a.isInitialized||a.initializedStoreOnce)&&d.every(e=>Nn(e,a,o)),n=t.lng||a.language,r=f.current,i=m.current;if(i&&i.ready===e&&i.lng===n&&i.keyPrefix===c&&i.revision===r)return i;let s={t:a.getFixedT(n,o.nsMode===`fallback`?d:d[0],c,{scopeNs:d}),ready:e,lng:n,keyPrefix:c,revision:r};return m.current=s,s},[a,d,c,o,t.lng]),[g,v]=(0,_.useState)(0),{t:y,ready:b}=(0,Yn.useSyncExternalStore)(p,h,h);(0,_.useEffect)(()=>{if(a&&!b&&!s){let e=()=>v(e=>e+1);t.lng?Mn(a,t.lng,d,e):jn(a,d,e)}},[a,t.lng,d,b,s,g]);let x=a||{},S=(0,_.useRef)(null),C=(0,_.useRef)(),w=e=>{let t=Object.getOwnPropertyDescriptors(e);t.__original&&delete t.__original;let n=Object.create(Object.getPrototypeOf(e),t);if(!Object.prototype.hasOwnProperty.call(n,`__original`))try{Object.defineProperty(n,"__original",{value:e,writable:!1,enumerable:!1,configurable:!1})}catch{}return n},T=(0,_.useMemo)(()=>{let e=x,t=e?.language,n=e;e&&(S.current&&S.current.__original===e&&C.current===t?n=S.current:(n=w(e),S.current=n,C.current=t));let r=!b&&!s?(...e)=>(kn(a,`USE_T_BEFORE_READY`,`useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t.`),y(...e)):y,i=[r,n,b];return i.t=r,i.i18n=n,i.ready=b,i},[y,x,b,x.resolvedLanguage,x.language,x.languages]);if(a&&s&&!b){let e=!1;try{e=!1}catch{}throw e&&kn(a,`SUSPENDED_WHILE_LOADING`,`useTranslation: suspended while translations are loading (useSuspense is true by default). Add a boundary above this component, or set react.useSuspense: false in the i18next init options. https://react.i18next.com/latest/usetranslation-hook`),new Promise(e=>{let n=()=>e();t.lng?Mn(a,t.lng,d,n):jn(a,d,n)})}return T};function $n({i18n:e,defaultNS:t,children:n}){let r=(0,_.useMemo)(()=>({i18n:e,defaultNS:t}),[e,t]);return(0,_.createElement)(Kn.Provider,{value:r},n)}var er=e=>{let t,n=new Set,r=(e,r)=>{let i=typeof e==`function`?e(t):e;if(!Object.is(i,t)){let e=t;t=r??(typeof i!=`object`||!i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e))},o=t=e(r,i,a);return a},tr=(e=>e?er(e):er),nr=e=>e;function rr(e,t=nr){let n=_.useSyncExternalStore(e.subscribe,_.useCallback(()=>t(e.getState()),[e,t]),_.useCallback(()=>t(e.getInitialState()),[e,t]));return _.useDebugValue(n),n}var G=i(),ir=Array.from({length:16},(e,t)=>`cell-${t+1}`);function ar({animated:e=!1,compact:t=!1}){let[n,r]=(0,_.useState)(0),i=t?10:16,a=(0,G.jsxs)(`strong`,{className:t?`brand-lockup compact`:`brand-lockup`,children:[(0,G.jsx)(`span`,{className:`brand-word`,children:`Open`}),(0,G.jsx)(`span`,{className:`pixel-mark`,role:`img`,"aria-label":`OpenPI`,children:ir.slice(0,i).map(e=>(0,G.jsx)(`i`,{},e))})]},n);return e?(0,G.jsx)(`button`,{className:`landing-brand`,type:`button`,"aria-label":`Replay OpenPI logo animation`,onClick:()=>r(e=>e+1),children:a}):a}function or(e,t,n){return Math.min(n,Math.max(t,Math.round(e)))}function sr({side:e,value:t,min:n,max:r,defaultValue:i,collapseThreshold:a,onCollapse:o,onExpandPastMax:s,onChange:c,onDraggingChange:l}){let{t:u}=Qn(),d=(0,_.useRef)(null),f=(e,t)=>{d.current?.pointerId===t&&(d.current=null,e.hasPointerCapture(t)&&e.releasePointerCapture(t),l(!1))},p=e=>c(or(e,n,r));return(0,G.jsx)(`hr`,{className:`pane-resizer ${e}`,tabIndex:0,"aria-label":u(e===`left`?`resizeSidebar`:`resizeWorkbar`),"aria-orientation":`vertical`,"aria-valuenow":t,"aria-valuemin":n,"aria-valuemax":r,"data-pane-resizer":e,onKeyDown:a=>{let o;switch(a.key){case`ArrowLeft`:case`ArrowRight`:o=t+(a.key===`ArrowRight`?1:-1)*(e===`left`?16:-16);break;case`Home`:o=n;break;case`End`:o=r;break;case`Enter`:o=i;break;default:return}a.preventDefault(),p(o)},onDoubleClick:()=>p(i),onPointerDown:e=>{e.button===0&&(e.preventDefault(),d.current={pointerId:e.pointerId,startX:e.clientX,startValue:t},e.currentTarget.setPointerCapture(e.pointerId),l(!0))},onPointerMove:t=>{let n=d.current;if(!n||n.pointerId!==t.pointerId)return;let i=t.clientX-n.startX,c=n.startValue+(e===`left`?i:-i);if(s&&c>=r+48){f(t.currentTarget,t.pointerId),s();return}if(o&&a!==void 0&&c<=a){f(t.currentTarget,t.pointerId),o();return}p(c)},onPointerUp:e=>f(e.currentTarget,e.pointerId),onPointerCancel:e=>f(e.currentTarget,e.pointerId),onLostPointerCapture:()=>{d.current&&(d.current=null,l(!1))}})}async function cr(e){try{return await navigator.clipboard.writeText(e),!0}catch{}let t=document.activeElement,n=window.getSelection(),r=n?Array.from({length:n.rangeCount},(e,t)=>n.getRangeAt(t).cloneRange()):[],i=t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?{start:t.selectionStart,end:t.selectionEnd,direction:t.selectionDirection}:null,a=document.createElement(`textarea`);a.value=e,a.readOnly=!0,a.style.cssText=`position:fixed;opacity:0;pointer-events:none`;try{return document.body.append(a),a.focus({preventScroll:!0}),a.select(),document.execCommand(`copy`)}catch{return!1}finally{if(a.remove(),t instanceof HTMLElement&&t.isConnected&&(t.focus({preventScroll:!0}),i&&i.start!==null&&i.end!==null&&(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement)&&t.setSelectionRange(i.start,i.end,i.direction??void 0)),n){n.removeAllRanges();for(let e of r)e.startContainer.isConnected&&e.endContainer.isConnected&&n.addRange(e)}}}function lr(e){return!!e.trim()&&!e.startsWith(`#`)&&!e.startsWith(`//`)&&(!/^[a-z][a-z\d+.-]*:/iu.test(e)||/^[a-z]:[\\/]/iu.test(e))}var ur=8e3;function dr(e,t){let n=0;for(let r of e){let e=r.codePointAt(0);if(n+=e<=127?1:e<=2047?2:e<=65535?3:4,n>t)return}return n}function fr(e){return dr(e,1/0)}function pr(e){return dr(e,ur)!==void 0}function mr(e){return typeof e==`string`&&/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/iu.test(e)}var hr=Symbol.for(`@tt-a1i/openpi/web-command-feedback/v1`),gr=Reflect.get(globalThis,hr);if(gr!==void 0&&!(gr instanceof WeakMap))throw Error(`Incompatible Web feedback bridge`);gr===void 0&&Object.defineProperty(globalThis,hr,{value:gr??new WeakMap});var _r=12288;function vr(e){return e&&typeof e==`object`&&!Array.isArray(e)?e:{}}function yr(e,t=!1){let n=t?e.slice(-24576):e.slice(0,_r*2),r=n.replace(/\x1b\][^\x07\x1b]*(?:\x07|\x1b\\|$)/gu,``).replace(/(?:\x1b\[|\x9b)[0-?]*[ -/]*[@-~]/gu,``).replace(/[\x00-\x08\x0b-\x1f\x7f-\x9f\u202a-\u202e\u2066-\u2069]/gu,``).split(` `),i=(t?r.slice(-300):r.slice(0,300)).join(` `),a=new TextEncoder().encode(i),o=t?Math.max(0,a.length-_r):0,s=t?a.length:Math.min(a.length,_r);for(;oo&&(a[s]&192)==128;)s--;return{text:new TextDecoder().decode(a.subarray(o,s)),truncated:e.length>n.length||r.length>300||a.length>12288}}function br(e){if(e.evidenceArguments)return e.evidenceArguments;try{return vr(JSON.parse(e.arguments))}catch{return{}}}function xr(e){return[`read`,`write`,`edit`,`bash`,`bg_start`,`bg_status`].includes(e)}function Sr(e,t){if(e===`bash`&&t?.terminalReceipt)return t.terminalReceipt;let n=vr(t?.details);if(e.startsWith(`bg_`)){let e=n.status;if(e===`running`)return{state:`running`};if([`done`,`failed`,`killed`,`timed_out`].includes(String(e)))return{state:e===`killed`?`cancelled`:e===`timed_out`?`timed_out`:e===`failed`?`failed`:`returned`,exitCode:typeof n.exitCode==`number`?n.exitCode:void 0,signal:typeof n.signal==`string`?yr(n.signal).text:void 0}}if(e===`bash`&&t?.isError===!0&&!t.truncation){let e=t.content.trimEnd().split(` `).at(-1);if(e===`Command aborted`)return{state:`cancelled`};if(/^Command timed out after \d+(?:\.\d+)? seconds$/u.test(e??``))return{state:`timed_out`};let n=/^Command exited with code (-?\d+)$/u.exec(e??``);if(n)return{state:`failed`,exitCode:Number(n[1])}}}function Cr(e){let t=/^\s*Tests\s+((?:\d+ (?:passed|failed|skipped|todo)(?:\s*\|\s*)?)+)\s*\((\d+)\)\s*$/mu.exec(e);if(t){let n=Number(/(\d+) passed/u.exec(t[1])?.[1]??0),r=Number(/(\d+) failed/u.exec(t[1])?.[1]??0),i=Number(t[2]);if(Number.isSafeInteger(i)&&n+r<=i)return{format:`Vitest`,tests:i,passed:n,failed:r,cancelled:0,failures:wr(e,/^\s*(?:FAIL\s|×\s)/u)}}let n=/^Ran (\d+) tests? across \d+ files?\./mu.exec(e),r=/^\s*(\d+) pass\s*$/mu.exec(e),i=/^\s*(\d+) fail\s*$/mu.exec(e);if(n&&r&&i){let t=Number(n[1]),a=Number(r[1]),o=Number(i[1]);if(Number.isSafeInteger(t)&&a+o<=t)return{format:`Bun`,tests:t,passed:a,failed:o,cancelled:0,failures:wr(e,/^\s*\(fail\) /u)}}let a=t=>{let n=RegExp(`^[#ℹ] ${t} (\\d+)$`,`mu`).exec(e),r=n?Number(n[1]):void 0;return r!==void 0&&Number.isSafeInteger(r)?r:void 0},o=a(`tests`),s=a(`pass`),c=a(`fail`),l=a(`cancelled`)??0;if(o===void 0||s===void 0||c===void 0||s+c+l>o)return;let u=wr(e,/^(?:\s*not ok \d+\b|✖ )/u);return{format:/^ℹ tests /mu.test(e)?`Node`:`TAP`,tests:o,passed:s,failed:c,cancelled:l,failures:u}}function wr(e,t){return e.split(` `).flatMap((e,n,r)=>t.test(e)?[r.slice(n,n+8).join(` -`)]:[]).slice(0,20)}function Tr(e,t,n){let r=br(e),i=vr(t?.details),a=Sr(e.name,t),o=a?.state??(n===`running`?`running`:t?.isError===!0?`failed`:t?.isError===!1?`returned`:`unknown`),s=[`bash`,`bg_start`,`bg_status`].includes(e.name),c=yr(t?.content??``,s),l=e.name===`read`?/\n\n(\[(?:\d+ more lines in file\. Use offset=\d+ to continue\.|Showing lines [^\n]+)\])$/u.exec(c.text):null,u=c.truncated||!!t?.truncation||vr(i.truncation).truncated===!0||e.evidenceTruncated===!0,d=s?Cr(c.text):void 0,f=e.name===`read`?`file`:[`write`,`edit`].includes(e.name)?`change`:d?`test`:`terminal`,p=[`write`,`edit`].includes(e.name)&&t?.isError===!1&&typeof i.diff==`string`?yr(i.diff):void 0,m=typeof r.offset==`number`&&Number.isSafeInteger(r.offset)&&r.offset>0?r.offset:1;return{kind:f,state:o,processState:a?.state??(e.name===`bash`&&t?.isError===!1?`returned`:e.name===`bash`&&n===`running`?`running`:`unknown`),output:l?c.text.slice(0,l.index):c.text,truncated:u||p?.truncated===!0,readRecovery:l?.[1],numberLines:e.name===`read`&&t?.isError===!1&&vr(i.truncation).firstLineExceedsLimit!==!0&&!!c.text,path:typeof r.path==`string`?yr(r.path).text:void 0,resolvedPath:typeof r.resolvedPath==`string`?yr(r.resolvedPath).text:void 0,command:typeof r.command==`string`?yr(r.command).text:void 0,offset:m,diff:p?.text,tests:d,change:t?.isError===!1&&[`created`,`overwritten`,`unchanged`].includes(String(i.change))?String(i.change):void 0,evidenceUnavailable:typeof i.evidenceUnavailable==`string`?yr(i.evidenceUnavailable).text:void 0,exitCode:a&&`exitCode`in a?a.exitCode:void 0,signal:a&&`signal`in a?a.signal:void 0,recovery:typeof i.fullOutputPath==`string`?yr(i.fullOutputPath).text:void 0,rawArguments:yr(e.arguments).text,rawResult:yr(JSON.stringify({content:t?.content,details:t?.details,isError:t?.isError})).text}}var Er=12e3,Dr=13981016,Or=2097152,kr=new TextEncoder;function Ar(e){return kr.encode(JSON.stringify(e)).byteLength}var jr=`openpi.web.controller`,Mr,Nr,Pr=0;function Fr(e){try{window.sessionStorage.setItem(jr,e)}catch{}return e}async function Ir(){let e=Pr;if(!window.navigator.locks)return Fr(window.crypto.randomUUID());let t=null;try{t=window.sessionStorage.getItem(jr)}catch{}let n=mr(t)?t:window.crypto.randomUUID();for(;;){let t=n,r=await new Promise(n=>{window.navigator.locks.request(`openpi.web.controller:${t}`,{ifAvailable:!0},async t=>{if(e!==Pr){n(null);return}if(!t){n(!1);return}await new Promise(e=>{Nr=e,n(!0)})}).catch(()=>n(null))});if(e!==Pr)throw new DOMException(`Page was suspended`,`AbortError`);if(r===null)return Fr(window.crypto.randomUUID());if(r)return Fr(t);n=window.crypto.randomUUID()}}function Lr(){return Mr??=Ir()}window.addEventListener(`pagehide`,()=>{Pr++,Nr?.(),Nr=void 0,Mr=void 0}),window.addEventListener(`pageshow`,e=>{e.persisted&&Lr().catch(()=>{})});var Rr=`openpi.web.token`,zr=class extends Error{status;code;constructor(e,t,n){super(e),this.status=t,this.code=n,this.name=`WebApiError`}};function Br(){let e=document.querySelector(`meta[name="openpi-web-token"]`)?.content,t=new URLSearchParams(location.hash.slice(1)).get(`token`),n=e&&/^[a-f0-9]{64}$/i.test(e)?e:t;if(t&&history.replaceState(null,``,`${location.pathname}${location.search}`),n){try{window.sessionStorage.setItem(Rr,n)}catch{}return n}try{return window.sessionStorage.getItem(Rr)}catch{return null}}var Vr=class{token=Br();async headers(e=!1){return{Authorization:`Bearer ${this.token??``}`,"X-OpenPI-Web-Controller":await Lr(),...e?{"Content-Type":`application/json`}:{}}}async request(e,t={}){let{timeoutMs:n=15e3,timeoutMessage:r=`Request timed out. Please try again.`,...i}=t,a=new AbortController,o=!1,s=()=>a.abort();t.signal?.aborted&&s(),t.signal?.addEventListener(`abort`,s,{once:!0});let c=window.setTimeout(()=>{o=!0,a.abort()},n);try{let n=await fetch(e,{...i,signal:a.signal,headers:{...await this.headers(!!t.body),...t.headers}}),r=await n.json();if(a.signal.aborted)throw Error(`Request aborted`);if(!n.ok)throw new zr(r.error||`Request failed (${n.status})`,n.status,r.code);return r}catch(e){throw o?Error(r):e}finally{window.clearTimeout(c),t.signal?.removeEventListener(`abort`,s)}}snapshot(e,t){let n=new URLSearchParams;e&&n.set(`path`,e),t&&t.sessionPath===e&&(n.set(`historyAnchor`,t.entryId),n.set(`historySessionId`,t.sessionId));let r=n.size?`?${n}`:``;return this.request(`/api/snapshot${r}`)}searchTranscripts(e,t={}){let n=new URLSearchParams({q:e});return t.includeArchived&&n.set(`includeArchived`,`1`),this.request(`/api/sessions/search?${n}`,{signal:t.signal})}async sessionMessageWindow(e,t){return(await this.request(`/api/session/message-window?${new URLSearchParams({sessionId:e.sessionId,path:e.sessionPath,entryId:e.entryId})}`,{signal:t})).session}async sessionHistory(e,t,n){return(await this.request(`/api/session/history?${new URLSearchParams({sessionId:e.sessionId,path:e.sessionPath,anchorEntryId:e.entryId,beforeEntryId:t})}`,{signal:n,timeoutMessage:`History request timed out. Please retry.`})).session}sessionPromptHistory(e,t,n){return this.request(`/api/session/prompt-history?${new URLSearchParams({sessionId:e.sessionId,path:e.sessionPath,anchorEntryId:e.entryId,...t===null?{}:{beforeEntryId:t}})}`,{signal:n,timeoutMessage:`Prompt history request timed out. Please retry.`})}sessionPromptPreview(e,t,n){return this.request(`/api/session/prompt-preview?${new URLSearchParams({sessionId:e.sessionId,path:e.sessionPath,anchorEntryId:e.entryId,entryId:t})}`,{signal:n,timeoutMessage:`Prompt preview request timed out. Please retry.`})}sessionItem(e,t,n,r,i,a){return this.request(`/api/session/item?${new URLSearchParams({sessionId:e,sessionPath:t,entryId:n,cursor:String(r),...a?{purpose:a}:{}})}`,{signal:i,timeoutMessage:`Message request timed out. Please retry.`})}turnChanges(e,t,n,r,i){return this.request(`/api/turn-changes?${new URLSearchParams({sessionId:e,sessionPath:t,promptEntryId:n,...i?{filePath:i}:{}})}`,{signal:r,timeoutMessage:`Turn changes request timed out. Please retry.`})}gitReview(e,t,n,r){return this.request(`/api/git-review?${new URLSearchParams({sessionId:e,path:t,...r})}`,{signal:n,timeoutMessage:`Git review timed out. Please retry.`})}workspaceFiles(e,t,n,r,i,a){return this.request(`/api/artifacts/files?${new URLSearchParams({sessionId:e,sessionPath:t,path:encodeURI(n),query:r,...a?{cursor:a}:{}})}`,{signal:i})}releaseFileListing(e){return this.request(`/api/artifacts/files?${new URLSearchParams({cursor:e})}`,{method:`DELETE`})}mutateWorkspaceFile(e,t,n){return this.request(`/api/files/mutate`,{method:`POST`,body:JSON.stringify({sessionId:e,sessionPath:t,access:`write-workspace-file`,kind:n.kind,directory:encodeURI(n.directory),name:n.name,...n.kind===`import-file`?{data:n.data}:{}})})}resolveArtifact(e,t,n,r){return this.request(`/api/artifacts/resolve`,{method:`POST`,body:JSON.stringify({sessionId:e,reference:t,parent:n,access:`read-file`}),signal:r})}artifactMetadata(e,t,n){return this.request(`/api/artifacts/content?${new URLSearchParams({sessionId:e,handle:t,metadata:`1`})}`,{signal:n})}artifactPreview(e,t,n,r){return this.request(`/api/artifacts/content?${new URLSearchParams({sessionId:e,handle:t,...r?{offset:String(r.offset),revision:r.revision}:{}})}`,{signal:n})}authorizeArtifact(e,t,n){return this.request(`/api/artifacts/authorize-file`,{method:`POST`,body:JSON.stringify({sessionId:e,reference:t,access:`read-external-file`}),signal:n})}releaseArtifact(e,t){return this.request(`/api/artifacts/content?`+new URLSearchParams({sessionId:e,handle:t}),{method:`DELETE`})}saveArtifact(e,t,n){return this.request(`/api/artifacts/save`,{method:`POST`,body:JSON.stringify({sessionId:e.sessionId,handle:e.handle,revision:t,text:n,access:`write-workspace-file`})})}async downloadArtifact(e,t){let n=new AbortController,r=()=>n.abort();t.addEventListener(`abort`,r,{once:!0}),t.aborted&&r();let i=window.setTimeout(r,15e3);try{let t=await fetch(`/api/artifacts/content?${new URLSearchParams({sessionId:e.sessionId,handle:e.handle,revision:e.revision,download:`1`})}`,{headers:await this.headers(),signal:n.signal});if(!t.ok){let e=await t.json();throw new zr(e.error||`Download failed`,t.status,e.code)}let r=t.body?.getReader();if(!r)throw Error(`Download body unavailable`);let i=[],a=0;try{for(;;){let{value:e,done:t}=await r.read();if(t)break;if(a+=e.byteLength,a>20971520)throw Error(`Download exceeds the 20 MiB limit`);i.push(new Uint8Array(e))}}finally{await r.cancel()}return new Blob(i,{type:`application/octet-stream`})}finally{window.clearTimeout(i),t.removeEventListener(`abort`,r)}}chooseWorkspace(){return this.request(`/api/workspaces/select`,{method:`POST`})}createInteractiveTerminal(e,t,n,r){return this.request(`/api/terminal`,{method:`POST`,body:JSON.stringify({sessionId:e,cols:t,rows:n}),signal:r})}interactiveTerminal(e,t,n){return this.request(`/api/terminal?${new URLSearchParams({sessionId:e,id:t})}`,{signal:n})}closeInteractiveTerminal(e,t){return this.request(`/api/terminal?${new URLSearchParams({sessionId:e,id:t})}`,{method:`DELETE`})}writeInteractiveTerminal(e,t,n){return this.request(`/api/terminal/input`,{method:`POST`,body:JSON.stringify({sessionId:e,id:t,data:n})})}resizeInteractiveTerminal(e,t,n,r){return this.request(`/api/terminal/resize`,{method:`POST`,body:JSON.stringify({sessionId:e,id:t,cols:n,rows:r})})}async streamInteractiveTerminal(e,t,n,r,i){let a=new URLSearchParams({sessionId:e,id:t});n!==void 0&&a.set(`after`,String(n));let o=await fetch(`/api/terminal/events?${a}`,{headers:await this.headers(),signal:r});if(!o.ok){let e=await o.json().catch(()=>({}));throw new zr(e.error||`Terminal stream failed (${o.status})`,o.status,e.code)}let s=o.body?.getReader();if(!s)throw Error(`Terminal stream is unavailable`);let c=new TextDecoder,l=``;try{for(;!r.aborted;){let{value:e,done:t}=await s.read();if(t)break;for(l+=c.decode(e,{stream:!0});;){let e=l.search(/\r?\n\r?\n/u);if(e<0)break;let t=l.slice(0,e),n=l.startsWith(`\r +`)]:[]).slice(0,20)}function Tr(e,t,n){let r=br(e),i=vr(t?.details),a=Sr(e.name,t),o=a?.state??(n===`running`?`running`:t?.isError===!0?`failed`:t?.isError===!1?`returned`:`unknown`),s=[`bash`,`bg_start`,`bg_status`].includes(e.name),c=yr(t?.content??``,s),l=e.name===`read`?/\n\n(\[(?:\d+ more lines in file\. Use offset=\d+ to continue\.|Showing lines [^\n]+)\])$/u.exec(c.text):null,u=c.truncated||!!t?.truncation||vr(i.truncation).truncated===!0||e.evidenceTruncated===!0,d=s?Cr(c.text):void 0,f=e.name===`read`?`file`:[`write`,`edit`].includes(e.name)?`change`:d?`test`:`terminal`,p=[`write`,`edit`].includes(e.name)&&t?.isError===!1&&typeof i.diff==`string`?yr(i.diff):void 0,m=typeof r.offset==`number`&&Number.isSafeInteger(r.offset)&&r.offset>0?r.offset:1;return{kind:f,state:o,processState:a?.state??(e.name===`bash`&&t?.isError===!1?`returned`:e.name===`bash`&&n===`running`?`running`:`unknown`),output:l?c.text.slice(0,l.index):c.text,truncated:u||p?.truncated===!0,readRecovery:l?.[1],numberLines:e.name===`read`&&t?.isError===!1&&vr(i.truncation).firstLineExceedsLimit!==!0&&!!c.text,path:typeof r.path==`string`?yr(r.path).text:void 0,resolvedPath:typeof r.resolvedPath==`string`?yr(r.resolvedPath).text:void 0,command:typeof r.command==`string`?yr(r.command).text:void 0,offset:m,diff:p?.text,tests:d,change:t?.isError===!1&&[`created`,`overwritten`,`unchanged`].includes(String(i.change))?String(i.change):void 0,evidenceUnavailable:typeof i.evidenceUnavailable==`string`?yr(i.evidenceUnavailable).text:void 0,exitCode:a&&`exitCode`in a?a.exitCode:void 0,signal:a&&`signal`in a?a.signal:void 0,recovery:typeof i.fullOutputPath==`string`?yr(i.fullOutputPath).text:void 0,rawArguments:yr(e.arguments).text,rawResult:yr(JSON.stringify({content:t?.content,details:t?.details,isError:t?.isError})).text}}var Er=12e3,Dr=13981016,Or=2097152,kr=new TextEncoder;function Ar(e){return kr.encode(JSON.stringify(e)).byteLength}var jr=`openpi.web.controller`,Mr,Nr,Pr=0;function Fr(e){try{window.sessionStorage.setItem(jr,e)}catch{}return e}async function Ir(){let e=Pr;if(!window.navigator.locks)return Fr(window.crypto.randomUUID());let t=null;try{t=window.sessionStorage.getItem(jr)}catch{}let n=mr(t)?t:window.crypto.randomUUID();for(;;){let t=n,r=await new Promise(n=>{window.navigator.locks.request(`openpi.web.controller:${t}`,{ifAvailable:!0},async t=>{if(e!==Pr){n(null);return}if(!t){n(!1);return}await new Promise(e=>{Nr=e,n(!0)})}).catch(()=>n(null))});if(e!==Pr)throw new DOMException(`Page was suspended`,`AbortError`);if(r===null)return Fr(window.crypto.randomUUID());if(r)return Fr(t);n=window.crypto.randomUUID()}}function Lr(){return Mr??=Ir()}window.addEventListener(`pagehide`,()=>{Pr++,Nr?.(),Nr=void 0,Mr=void 0}),window.addEventListener(`pageshow`,e=>{e.persisted&&Lr().catch(()=>{})});var Rr=`openpi.web.token`,zr=class extends Error{status;code;constructor(e,t,n){super(e),this.status=t,this.code=n,this.name=`WebApiError`}};function Br(){let e=document.querySelector(`meta[name="openpi-web-token"]`)?.content,t=new URLSearchParams(location.hash.slice(1)).get(`token`),n=e&&/^[a-f0-9]{64}$/i.test(e)?e:t;if(t&&history.replaceState(null,``,`${location.pathname}${location.search}`),n){try{window.sessionStorage.setItem(Rr,n)}catch{}return n}try{return window.sessionStorage.getItem(Rr)}catch{return null}}var Vr=class{token=Br();async headers(e=!1){return{Authorization:`Bearer ${this.token??``}`,"X-OpenPI-Web-Controller":await Lr(),...e?{"Content-Type":`application/json`}:{}}}async request(e,t={}){let{timeoutMs:n=15e3,timeoutMessage:r=`Request timed out. Please try again.`,...i}=t,a=new AbortController,o=!1,s=()=>a.abort();t.signal?.aborted&&s(),t.signal?.addEventListener(`abort`,s,{once:!0});let c=window.setTimeout(()=>{o=!0,a.abort()},n);try{let n=await fetch(e,{...i,signal:a.signal,headers:{...await this.headers(!!t.body),...t.headers}}),r=await n.json();if(a.signal.aborted)throw Error(`Request aborted`);if(!n.ok)throw new zr(r.error||`Request failed (${n.status})`,n.status,r.code);return r}catch(e){throw o?Error(r):e}finally{window.clearTimeout(c),t.signal?.removeEventListener(`abort`,s)}}snapshot(e,t){let n=new URLSearchParams;e&&n.set(`path`,e),t&&t.sessionPath===e&&(n.set(`historyAnchor`,t.entryId),n.set(`historySessionId`,t.sessionId));let r=n.size?`?${n}`:``;return this.request(`/api/snapshot${r}`)}searchTranscripts(e,t={}){let n=new URLSearchParams({q:e});return t.includeArchived&&n.set(`includeArchived`,`1`),this.request(`/api/sessions/search?${n}`,{signal:t.signal})}async sessionMessageWindow(e,t){return(await this.request(`/api/session/message-window?${new URLSearchParams({sessionId:e.sessionId,path:e.sessionPath,entryId:e.entryId})}`,{signal:t})).session}async sessionHistory(e,t,n){return(await this.request(`/api/session/history?${new URLSearchParams({sessionId:e.sessionId,path:e.sessionPath,anchorEntryId:e.entryId,beforeEntryId:t})}`,{signal:n,timeoutMessage:`History request timed out. Please retry.`})).session}sessionPromptHistory(e,t,n){return this.request(`/api/session/prompt-history?${new URLSearchParams({sessionId:e.sessionId,path:e.sessionPath,anchorEntryId:e.entryId,...t===null?{}:{beforeEntryId:t}})}`,{signal:n,timeoutMessage:`Prompt history request timed out. Please retry.`})}sessionPromptPreview(e,t,n){return this.request(`/api/session/prompt-preview?${new URLSearchParams({sessionId:e.sessionId,path:e.sessionPath,anchorEntryId:e.entryId,entryId:t})}`,{signal:n,timeoutMessage:`Prompt preview request timed out. Please retry.`})}sessionItem(e,t,n,r,i,a){return this.request(`/api/session/item?${new URLSearchParams({sessionId:e,sessionPath:t,entryId:n,cursor:String(r),...a?{purpose:a}:{}})}`,{signal:i,timeoutMessage:`Message request timed out. Please retry.`})}turnChanges(e,t,n,r,i){return this.request(`/api/turn-changes?${new URLSearchParams({sessionId:e,sessionPath:t,promptEntryId:n,...i?{filePath:i}:{}})}`,{signal:r,timeoutMessage:`Turn changes request timed out. Please retry.`})}gitReview(e,t,n,r){return this.request(`/api/git-review?${new URLSearchParams({sessionId:e,path:t,...r})}`,{signal:n,timeoutMessage:`Git review timed out. Please retry.`})}workspaceFiles(e,t,n,r,i,a){return this.request(`/api/artifacts/files?${new URLSearchParams({sessionId:e,sessionPath:t,path:encodeURI(n),query:r,...a?{cursor:a}:{}})}`,{signal:i})}releaseFileListing(e){return this.request(`/api/artifacts/files?${new URLSearchParams({cursor:e})}`,{method:`DELETE`})}mutateWorkspaceFile(e,t,n){return this.request(`/api/files/mutate`,{method:`POST`,body:JSON.stringify({sessionId:e,sessionPath:t,access:`write-workspace-file`,kind:n.kind,...n.kind===`restore`?{id:n.id,identity:n.identity}:n.kind===`trash`?{path:encodeURI(n.path),identity:n.identity}:{directory:encodeURI(n.directory),name:n.name,...n.kind===`move`?{path:encodeURI(n.path),identity:n.identity}:{},...n.kind===`import-file`?{data:n.data,...n.createParents?{createParents:!0}:{}}:{}}})})}workspaceTrash(e,t,n,r){return this.request(`/api/artifacts/trash?${new URLSearchParams({sessionId:e,sessionPath:t,...r?{cursor:r}:{}})}`,{signal:n})}resolveArtifact(e,t,n,r){return this.request(`/api/artifacts/resolve`,{method:`POST`,body:JSON.stringify({sessionId:e,reference:t,parent:n,access:`read-file`}),signal:r})}artifactMetadata(e,t,n){return this.request(`/api/artifacts/content?${new URLSearchParams({sessionId:e,handle:t,metadata:`1`})}`,{signal:n})}artifactPreview(e,t,n,r){return this.request(`/api/artifacts/content?${new URLSearchParams({sessionId:e,handle:t,...r?{offset:String(r.offset),revision:r.revision}:{}})}`,{signal:n})}authorizeArtifact(e,t,n){return this.request(`/api/artifacts/authorize-file`,{method:`POST`,body:JSON.stringify({sessionId:e,reference:t,access:`read-external-file`}),signal:n})}releaseArtifact(e,t){return this.request(`/api/artifacts/content?`+new URLSearchParams({sessionId:e,handle:t}),{method:`DELETE`})}saveArtifact(e,t,n){return this.request(`/api/artifacts/save`,{method:`POST`,body:JSON.stringify({sessionId:e.sessionId,handle:e.handle,revision:t,text:n,access:`write-workspace-file`})})}async downloadArtifact(e,t){let n=new AbortController,r=()=>n.abort();t.addEventListener(`abort`,r,{once:!0}),t.aborted&&r();let i=window.setTimeout(r,15e3);try{let t=await fetch(`/api/artifacts/content?${new URLSearchParams({sessionId:e.sessionId,handle:e.handle,revision:e.revision,download:`1`})}`,{headers:await this.headers(),signal:n.signal});if(!t.ok){let e=await t.json();throw new zr(e.error||`Download failed`,t.status,e.code)}let r=t.body?.getReader();if(!r)throw Error(`Download body unavailable`);let i=[],a=0;try{for(;;){let{value:e,done:t}=await r.read();if(t)break;if(a+=e.byteLength,a>20971520)throw Error(`Download exceeds the 20 MiB limit`);i.push(new Uint8Array(e))}}finally{await r.cancel()}return new Blob(i,{type:`application/octet-stream`})}finally{window.clearTimeout(i),t.removeEventListener(`abort`,r)}}chooseWorkspace(){return this.request(`/api/workspaces/select`,{method:`POST`})}createInteractiveTerminal(e,t,n,r,i){return this.request(`/api/terminal`,{method:`POST`,body:JSON.stringify({sessionId:e,cols:t,rows:n,...i?{createKey:i}:{}}),signal:r})}interactiveTerminal(e,t,n){return this.request(`/api/terminal?${new URLSearchParams({sessionId:e,id:t})}`,{signal:n})}closeInteractiveTerminal(e,t){return this.request(`/api/terminal?${new URLSearchParams({sessionId:e,id:t})}`,{method:`DELETE`})}writeInteractiveTerminal(e,t,n){return this.request(`/api/terminal/input`,{method:`POST`,body:JSON.stringify({sessionId:e,id:t,data:n})})}resizeInteractiveTerminal(e,t,n,r){return this.request(`/api/terminal/resize`,{method:`POST`,body:JSON.stringify({sessionId:e,id:t,cols:n,rows:r})})}async streamInteractiveTerminal(e,t,n,r,i){let a=new URLSearchParams({sessionId:e,id:t});n!==void 0&&a.set(`after`,String(n));let o=await fetch(`/api/terminal/events?${a}`,{headers:await this.headers(),signal:r});if(!o.ok){let e=await o.json().catch(()=>({}));throw new zr(e.error||`Terminal stream failed (${o.status})`,o.status,e.code)}let s=o.body?.getReader();if(!s)throw Error(`Terminal stream is unavailable`);let c=new TextDecoder,l=``;try{for(;!r.aborted;){let{value:e,done:t}=await s.read();if(t)break;for(l+=c.decode(e,{stream:!0});;){let e=l.search(/\r?\n\r?\n/u);if(e<0)break;let t=l.slice(0,e),n=l.startsWith(`\r `,e)?4:2;l=l.slice(e+n);let r=t.split(/\r?\n/u).filter(e=>e.startsWith(`data:`)).map(e=>e.slice(5).trimStart()).join(` `);r&&i(JSON.parse(r))}}}finally{await s.cancel().catch(()=>void 0)}}renameWorkspace(e,t){return this.request(`/api/workspaces`,{method:`PATCH`,body:JSON.stringify({path:e,name:t})})}removeWorkspace(e){return this.request(`/api/workspaces?path=${encodeURIComponent(e)}`,{method:`DELETE`})}createSession(e,t){return this.request(`/api/sessions`,{method:`POST`,body:JSON.stringify({workspacePath:e,commandId:t})})}selectSession(e){return this.request(`/api/sessions/select`,{method:`POST`,body:JSON.stringify({path:e})})}forkSession(e){return this.request(`/api/session/fork`,{method:`POST`,body:JSON.stringify(e)})}renameSession(e,t){return this.request(`/api/sessions`,{method:`PATCH`,body:JSON.stringify({path:e,name:t})})}setSessionPin(e,t,n,r){return this.request(`/api/sessions/pin`,{method:`POST`,body:JSON.stringify({path:e,id:t,pinned:n,before:r})})}archiveSession(e){return this.request(`/api/sessions/archive?path=${encodeURIComponent(e)}`,{method:`POST`})}unarchiveSession(e){return this.request(`/api/sessions/unarchive?path=${encodeURIComponent(e)}`,{method:`POST`})}listArchivedSessions(e={},t){let n=new URLSearchParams;return e.query!==void 0&&n.set(`q`,e.query),e.cursor!==void 0&&n.set(`cursor`,e.cursor),e.limit!==void 0&&n.set(`limit`,String(e.limit)),this.request(`/api/sessions/archived?${n}`,{signal:t})}thinking(e,t){return this.request(`/api/thinking?sessionId=${encodeURIComponent(e)}`,{signal:t})}setThinkingLevel(e,t,n){return this.request(`/api/thinking`,{method:`POST`,body:JSON.stringify({sessionId:e,sessionPath:n,level:t})})}setPlanMode(e,t,n,r){return this.request(`/api/plan`,{method:`POST`,body:JSON.stringify({sessionId:e,sessionPath:t,enabled:n,expectedRevision:r})})}compactSession(e,t){return this.request(`/api/compact`,{method:`POST`,body:JSON.stringify({sessionId:e,sessionPath:t}),timeoutMs:3e5})}updatePromptQueue(e,t,n){return this.request(`/api/prompt-queue`,{method:`POST`,body:JSON.stringify({sessionId:e,sessionPath:t,action:n})})}preparePlanImplementation(e,t,n){return this.request(`/api/plan/implement`,{method:`POST`,body:JSON.stringify({sessionId:e,sessionPath:t,expectedRevision:n})})}trust(e,t){return this.request(`/api/trust?sessionId=${encodeURIComponent(e)}`,{signal:t})}providerAuth(e,t){return this.request(`/api/providers/auth-status?sessionId=${encodeURIComponent(e)}`,{signal:t})}saveProviderKey(e,t,n,r){return this.request(`/api/providers/api-key`,{method:`POST`,body:JSON.stringify({sessionId:e,provider:t,apiKey:n}),signal:r})}modelConfigurations(e,t){return this.request(`/api/models/configuration?sessionId=${encodeURIComponent(e)}`,{signal:t})}saveModelConfiguration(e,t,n,r){return this.request(`/api/models/configuration`,{method:`POST`,body:JSON.stringify({sessionId:e,revision:t,model:n}),signal:r})}changeProviderConfiguration(e,t,n,r){return this.request(`/api/providers/configuration`,{method:`POST`,body:JSON.stringify({sessionId:e,revision:t,change:n}),signal:r})}commands(e,t){return this.request(`/api/commands?sessionId=${encodeURIComponent(e)}`,{signal:t})}settingsCatalog(e,t){return this.request(`/api/settings/catalog?sessionId=${encodeURIComponent(e)}`,{signal:t})}savePreferences(e){return this.request(`/api/settings/preferences`,{method:`POST`,body:JSON.stringify(e)})}discoverProviderModels(e,t,n){return this.request(`/api/models/discover`,{method:`POST`,body:JSON.stringify({sessionId:e,connection:t}),signal:n})}saveModelConfigurations(e,t,n,r){return this.request(`/api/models/configurations`,{method:`POST`,body:JSON.stringify({sessionId:e,revision:t,models:n}),signal:r})}terminalDetail(e,t,n){return this.request(`/api/capabilities/detail?kind=background-terminals&id=${encodeURIComponent(t)}&sessionId=${encodeURIComponent(e)}`,{signal:n})}subagentDetail(e,t,n){return this.request(`/api/capabilities/detail?kind=subagents&id=${encodeURIComponent(t)}&sessionId=${encodeURIComponent(e)}`,{signal:n})}subagentAction(e,t,n){return this.request(`/api/capabilities/action`,{method:`POST`,body:JSON.stringify({sessionId:e,...t}),signal:n})}selectModel(e,t,n,r){return this.request(`/api/model`,{method:`POST`,body:JSON.stringify({provider:e,modelId:t,sessionId:n,sessionPath:r})})}searchModels(e,t,n){let r=new URLSearchParams({query:e,limit:`50`});return t&&r.set(`sessionId`,t),this.request(`/api/models?${r}`,{signal:n})}cancelActiveTurn(e){return this.request(`/api/turns/cancel`,{method:`POST`,body:JSON.stringify({sessionId:e.sessionId,commandId:e.commandId,epoch:e.epoch})})}pendingQuestions(e,t){return this.request(`/api/questions/pending?sessionId=${encodeURIComponent(e)}`,{signal:t})}async answerQuestions(e,t,n){try{return await this.request(`/api/questions/answer`,{method:`POST`,body:JSON.stringify({sessionId:e.sessionId,requestId:e.requestId,action:t===null?`dismiss`:`answer`,...t===null?{}:{answers:t}}),signal:n})}catch(e){if(e instanceof zr&&e.code===`STALE_QUESTION`)return{state:`stale`};throw e}}async sessionSources(e,t,n,r=0,i){let a=new URLSearchParams({sessionId:e,path:t,offset:String(r),...i?{revision:i}:{}});return this.request(`/api/session-sources?${a}`,{signal:n})}async sourceImage(e,t,n,r,i){let a=new URLSearchParams({sessionId:e,path:t,entryId:n,part:String(r)});return this.request(`/api/session-sources/image?${a}`,{signal:i})}uploadPromptFiles(e,t,n,r){return this.request(`/api/prompt-files`,{method:`POST`,body:JSON.stringify({sessionId:e,sessionPath:t,files:n}),signal:r,timeoutMs:6e4,timeoutMessage:`File upload timed out. Keep the attachments and retry; an identical upload safely recovers its original paths.`})}async prompt(e,t,n,r,i=!1,a=[],o,s){let c=await this.request(`/api/prompt`,{method:`POST`,body:JSON.stringify({sessionId:e,sessionPath:r,content:t,commandId:n,retry:i,images:a,...o===void 0?{}:{planRevision:o},...s,controllerId:await Lr()}),timeoutMs:3e4,timeoutMessage:`Request timed out; admission may still be pending. Retry the same message to recover its receipt.`});if(typeof c.id!=`string`||!c.id||c.accepted!==!0)throw Error(`Invalid prompt receipt; retry the same message to recover its admission.`);return c}};function Hr(e,t){return t.every((t,n)=>e[n]===t)}function Ur(e){if(Hr(e,[137,80,78,71,13,10,26,10]))return`image/png`;if(Hr(e,[255,216,255]))return`image/jpeg`;let t=new TextDecoder(`ascii`).decode(e.subarray(0,12));return t.startsWith(`GIF87a`)||t.startsWith(`GIF89a`)?`image/gif`:t.startsWith(`RIFF`)&&t.slice(8,12)===`WEBP`?`image/webp`:null}function Wr(e){let t=``,n=32768;for(let r=0;r10485760)throw Error(`image-size`);let t=await e.arrayBuffer().catch(()=>{throw Error(`image-read`)}),n=new Uint8Array(t),r=Ur(n);if(!r)throw Error(`image-type`);let i=Wr(n);return{id:globalThis.crypto?.randomUUID?.()??`${Date.now()}-${e.name}`,name:e.name||`image`,size:n.length,mimeType:r,data:i,previewUrl:`data:${r};base64,${i}`}}function Kr(e,t){this.v=e,this.k=t}function qr(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n`u`?null:ji(BigInt.prototype.toString),Ei=typeof Symbol>`u`?null:ji(Symbol.prototype.toString),Di=ji(Object.prototype.hasOwnProperty),Oi=ji(Object.prototype.toString),ki=ji(RegExp.prototype.test),Ai=Mi(TypeError);function ji(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return li(e,t,n)}}function Mi(e){return function(){return ui(e,[...arguments])}}function Ni(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_i;if(ti&&ti(e,null),!gi(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(ni(t)||(t[r]=e),i=e)}e[i]=!0}return e}function Pi(e){for(let t=0;t/g),Qi=oi(/\${[\w\W]*/g),$i=oi(/^data-[\-\w.\u00B7-\uFFFF]+$/),ea=oi(/^aria-[\-\w]+$/),ta=oi(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),na=oi(/^(?:\w+script|data):/i),ra=oi(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ia=oi(/^html$/i),aa=oi(/^[a-z][.\w]*(-[.\w]+)+$/i),oa=oi(/<[/\w!]/g),sa=oi(/<[/\w]/g),ca=oi(/<\/no(script|embed|frames)/i),la=oi(/\/>/i),ua={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},da=[`style`,`script`,`xmp`,`iframe`,`noembed`,`noframes`,`plaintext`,`noscript`],fa=ai(Ni({},da)),pa=function(){let e={};return di(da,t=>{e[t]=oi(RegExp(`])`,`i`))}),ai(e)}(),ma=function(){return typeof window>`u`?null:window},ha=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},ga=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},_a=function(e,t,n,r){return Di(e,t)&&gi(e[t])?Ni(r.base?Fi(r.base):{},e[t],r.transform):n},va=function(e,t,n){let r=Di(e,t)?e[t]:void 0;return r&&typeof r==`object`?Fi(r):n()};function ya(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ma(),t=e=>ya(e);if(t.version=`3.4.16`,t.removed=[],!e||!e.document||e.document.nodeType!==ua.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let l=e.DOMParser,u=e.trustedTypes,d=s.prototype,f=Li(d,`cloneNode`),p=Li(d,`remove`),m=Li(d,`removeAttributeNode`),h=Li(d,`nextSibling`),g=Li(d,`childNodes`),_=Li(d,`parentNode`),v=Li(d,`shadowRoot`),y=Li(d,`attributes`),b=o&&o.prototype?Li(o.prototype,`nodeType`):null,x=o&&o.prototype?Li(o.prototype,`nodeName`):null,S=o&&o.prototype?Li(o.prototype,`ownerDocument`):null,C=function(e){return b?b(e):e.nodeType},w=function(e){return x?x(e):e.nodeName};if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let T,E=``,D,O=!1,k=0,A=function(){if(k>0)throw Ai(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},j=function(e){A(),k++;try{return T.createHTML(e)}finally{k--}},M=function(e){A(),k++;try{return T.createScriptURL(e)}finally{k--}},N=function(){return O||=(D=ha(u,i),!0),D},P=n,F=P.implementation,I=P.createNodeIterator,L=P.createDocumentFragment,R=P.getElementsByTagName,ee=r.importNode,z=ga();t.isSupported=typeof ei==`function`&&typeof _==`function`&&F&&F.createHTMLDocument!==void 0;let te=Xi,ne=Zi,re=Qi,ie=$i,ae=ea,oe=na,B=ra,se=aa,ce=ta,le=null,V=Ni({},[...zi,...Bi,...Vi,...Ui,...Gi]),H=null,ue=Ni({},[...Ki,...qi,...Ji,...Yi]),de=Object.seal(si(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),fe=null,pe=null,me=Object.seal(si(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),he=!0,ge=!0,_e=!1,ve=!0,ye=!1,be=!0,xe=!1,Se=!1,Ce=null,we=null,Te=!1,U=!1,Ee=!1,De=!1,Oe=!0,ke=!1,Ae=`user-content-`,je=!0,Me=!1,Ne={},Pe=null,Fe=Ni({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),Ie=null,Le=Ni({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Re=null,ze=Ni({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),Be=`http://www.w3.org/1998/Math/MathML`,Ve=`http://www.w3.org/2000/svg`,He=`http://www.w3.org/1999/xhtml`,Ue=He,We=!1,Ge=null,Ke=Ni({},[Be,Ve,He],vi),qe=ai([`mi`,`mo`,`mn`,`ms`,`mtext`]),Je=Ni({},qe),Ye=ai([`annotation-xml`]),Xe=Ni({},Ye),Ze=Ni({},[`title`,`style`,`font`,`a`,`script`]),Qe=null,$e=[`application/xhtml+xml`,`text/html`],et=null,tt=null,nt=n.createElement(`form`),rt=function(e){return e instanceof RegExp||e instanceof Function},it=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(tt&&tt===e)return;(!e||typeof e!=`object`)&&(e={}),e=Fi(e),Qe=$e.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,et=Qe===`application/xhtml+xml`?vi:_i,le=_a(e,`ALLOWED_TAGS`,V,{transform:et}),H=_a(e,`ALLOWED_ATTR`,ue,{transform:et}),Ge=_a(e,`ALLOWED_NAMESPACES`,Ke,{transform:vi}),Re=_a(e,`ADD_URI_SAFE_ATTR`,ze,{transform:et,base:ze}),Ie=_a(e,`ADD_DATA_URI_TAGS`,Le,{transform:et,base:Le}),Pe=_a(e,`FORBID_CONTENTS`,Fe,{transform:et}),fe=_a(e,`FORBID_TAGS`,Fi({}),{transform:et}),pe=_a(e,`FORBID_ATTR`,Fi({}),{transform:et}),Ne=Di(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?Fi(e.USE_PROFILES):e.USE_PROFILES:!1,he=e.ALLOW_ARIA_ATTR!==!1,ge=e.ALLOW_DATA_ATTR!==!1,_e=e.ALLOW_UNKNOWN_PROTOCOLS||!1,ve=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ye=e.SAFE_FOR_TEMPLATES||!1,be=e.SAFE_FOR_XML!==!1,xe=e.WHOLE_DOCUMENT||!1,U=e.RETURN_DOM||!1,Ee=e.RETURN_DOM_FRAGMENT||!1,De=e.RETURN_TRUSTED_TYPE||!1,Te=e.FORCE_BODY||!1,Oe=e.SANITIZE_DOM!==!1,ke=e.SANITIZE_NAMED_PROPS||!1,je=e.KEEP_CONTENT!==!1,Me=e.IN_PLACE||!1,ce=Ri(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:ta,Ue=typeof e.NAMESPACE==`string`?e.NAMESPACE:He,Je=va(e,`MATHML_TEXT_INTEGRATION_POINTS`,()=>Ni({},qe)),Xe=va(e,`HTML_INTEGRATION_POINTS`,()=>Ni({},Ye));let t=va(e,`CUSTOM_ELEMENT_HANDLING`,()=>si(null));if(de=si(null),Di(t,`tagNameCheck`)&&rt(t.tagNameCheck)&&(de.tagNameCheck=t.tagNameCheck),Di(t,`attributeNameCheck`)&&rt(t.attributeNameCheck)&&(de.attributeNameCheck=t.attributeNameCheck),Di(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(de.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),oi(de),ye&&(ge=!1),Ee&&(U=!0),Ne&&(le=Ni({},Gi),H=si(null),Ne.html===!0&&(Ni(le,zi),Ni(H,Ki)),Ne.svg===!0&&(Ni(le,Bi),Ni(H,qi),Ni(H,Yi)),Ne.svgFilters===!0&&(Ni(le,Vi),Ni(H,qi),Ni(H,Yi)),Ne.mathMl===!0&&(Ni(le,Ui),Ni(H,Ji),Ni(H,Yi))),me.tagCheck=null,me.attributeCheck=null,Di(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?me.tagCheck=e.ADD_TAGS:gi(e.ADD_TAGS)&&(le===V&&(le=Fi(le)),Ni(le,e.ADD_TAGS,et))),Di(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?me.attributeCheck=e.ADD_ATTR:gi(e.ADD_ATTR)&&(H===ue&&(H=Fi(H)),Ni(H,e.ADD_ATTR,et))),Di(e,`ADD_FORBID_CONTENTS`)&&gi(e.ADD_FORBID_CONTENTS)&&(Pe===Fe&&(Pe=Fi(Pe)),Ni(Pe,e.ADD_FORBID_CONTENTS,et)),je&&(le[`#text`]=!0),xe&&Ni(le,[`html`,`head`,`body`]),le.table&&(Ni(le,[`tbody`]),delete fe.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw Ai(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw Ai(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=T;T=e.TRUSTED_TYPES_POLICY;try{E=j(``)}catch(e){throw T=t,e}}else e.TRUSTED_TYPES_POLICY===null?(T=void 0,E=``):(T===void 0&&(T=N()),T&&typeof E==`string`&&(E=j(``)));ai&&ai(e),tt=e},at=Ni({},[...Bi,...Vi,...Hi]),ot=Ni({},[...Ui,...Wi]),st=function(e,t,n){return t.namespaceURI===He?e===`svg`:t.namespaceURI===Be?e===`svg`&&(n===`annotation-xml`||Je[n]):!!at[e]},ct=function(e,t,n){return t.namespaceURI===He?e===`math`:t.namespaceURI===Ve?e===`math`&&Xe[n]:!!ot[e]},lt=function(e,t,n){return t.namespaceURI===Ve&&!Xe[n]||t.namespaceURI===Be&&!Je[n]?!1:!ot[e]&&(Ze[e]||!at[e])},ut=function(e){let t=_(e);(!t||!t.tagName)&&(t={namespaceURI:Ue,tagName:`template`});let n=_i(e.tagName),r=_i(t.tagName);return Ge[e.namespaceURI]?e.namespaceURI===Ve?st(n,t,r):e.namespaceURI===Be?ct(n,t,r):e.namespaceURI===He?lt(n,t,r):!!(Qe===`application/xhtml+xml`&&Ge[e.namespaceURI]):!1},dt=function(e){mi(t.removed,{element:e});try{_(e).removeChild(e)}catch{if(p(e),!_(e))throw Ai(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},ft=function(e,t,n){try{m(e,t)}catch{try{e.removeAttribute(n)}catch{}}},pt=function(e){gt(e);let t=g(e);if(t){let e=[];di(t,t=>{mi(e,t)}),di(e,e=>{try{p(e)}catch{}})}let n=y(e);if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;typeof i==`string`&&ft(e,r,i)}},mt=function(e,n,r){if(!r)try{r=n.getAttributeNode(e)}catch{r=null}mi(t.removed,{attribute:r||null,from:n});try{r?m(n,r):n.removeAttribute(e)}catch{try{n.removeAttribute(e)}catch{}}if(e===`is`)if(U||Ee)try{dt(n)}catch{}else try{n.setAttribute(e,``)}catch{}},ht=function(e){let t=y(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;typeof i!=`string`||H[et(i)]||ft(e,r,i)}},gt=function(e){let t=[e];for(;t.length>0;){let e=t.pop();C(e)===ua.element&&ht(e);let n=g(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},_t=function(e,t){return be?e===`patchsrc`||e===`for`&&t!==`label`&&t!==`output`:!1},vt=function(e){if(!be)return;let t=[e];for(;t.length>0;){let e=t.pop(),n=C(e);if(n===ua.processingInstruction||n===ua.comment&&ki(sa,e.data)){try{p(e)}catch{}continue}if(n===ua.element){let t=e,n=et(w(e));try{t.hasAttribute&&t.hasAttribute(`patchsrc`)&&t.removeAttribute(`patchsrc`),t.hasAttribute&&t.hasAttribute(`for`)&&_t(`for`,n)&&t.removeAttribute(`for`)}catch{}}let r=g(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},yt=function(e){let t=null,r=null;if(Te)e=``+e;else{let t=yi(e,/^[\r\n\t ]+/);r=t&&t[0]}Qe===`application/xhtml+xml`&&Ue===He&&(e=``+e+``);let i=T?j(e):e;if(Ue===He)try{t=new l().parseFromString(i,Qe)}catch{}if(!t||!t.documentElement){t=F.createDocument(Ue,`template`,null);try{t.documentElement.innerHTML=We?E:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),Ue===He?R.call(t,xe?`html`:`body`)[0]:xe?t.documentElement:a},bt=function(e){let t=S?S(e):e.ownerDocument;return I.call(t||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},xt=function(e){return e=bi(e,te,` `),e=bi(e,ne,` `),e=bi(e,re,` `),e},St=function(e){e.normalize();let t=S?S(e):e.ownerDocument,n=I.call(t||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=xt(r.data),r=n.nextNode();let i=e.querySelectorAll?.call(e,`template`);i&&di(i,e=>{wt(e.content)&&St(e.content)})},Ct=function(e){let t=x?x(e):null;return typeof t!=`string`||et(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==y(e)||typeof e.removeAttribute!=`function`||typeof e.removeAttributeNode!=`function`||typeof e.getAttributeNode!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==b(e)||e.childNodes!==g(e)},wt=function(e){if(!b||typeof e!=`object`||!e)return!1;try{return b(e)===ua.documentFragment}catch{return!1}},Tt=function(e){if(!b||typeof e!=`object`||!e)return!1;try{return typeof b(e)==`number`}catch{return!1}};function Et(e,n,r){e.length!==0&&di(e,e=>{e.call(t,n,r,tt)})}let Dt=function(e,t){return!!(be&&e.hasChildNodes()&&!Tt(e.firstElementChild)&&ki(oa,e.textContent)&&ki(oa,e.innerHTML)||be&&e.namespaceURI===He&&fa[t]&&(Tt(e.firstElementChild)||typeof e.textContent==`string`&&ki(pa[t],e.textContent))||e.nodeType===ua.processingInstruction||be&&e.nodeType===ua.comment&&ki(sa,e.data))},Ot=function(e,t){return e instanceof RegExp?ki(e,t):e instanceof Function&&!!e(t,...[...arguments].slice(2))},kt=function(e,t,n){if(!fe[t]&&Ft(t)&&Ot(de.tagNameCheck,t))return!1;if(je&&!Pe[t]){let t=_(e),r=g(e);if(r&&t){let i=r.length;for(let a=i-1;a>=0;--a){let i=e===n?f(r[a],!0):r[a];t.insertBefore(i,h(e))}}}return dt(e),!0},At=function(e,t,n,r){return e.length===0?t:t===n||t===r?Fi(t):t},jt=function(e,t){return e===t||_(e)!==null?!1:(Me&>(e),!0)},Mt=function(e,n){if(Et(z.beforeSanitizeElements,e,null),jt(e,n))return!0;if(Ct(e))return dt(e),!0;let r=et(w(e));if(le=At(z.uponSanitizeElement,le,V,Ce),Et(z.uponSanitizeElement,e,{tagName:r,allowedTags:le}),jt(e,n))return!0;if(Dt(e,r))return dt(e),!0;if(fe[r]||!(me.tagCheck instanceof Function&&me.tagCheck(r))&&!le[r]){let t=kt(e,r,n);return t===!1&&(Et(z.afterSanitizeElements,e,null),jt(e,n))?!0:t}if(C(e)===ua.element&&!ut(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&ki(ca,e.innerHTML))return dt(e),!0;if(ye&&e.nodeType===ua.text){let n=xt(e.textContent);e.textContent!==n&&(mi(t.removed,{element:e.cloneNode()}),e.textContent=n)}return Et(z.afterSanitizeElements,e,null),jt(e,n)},Nt=function(e,t,r){if(pe[t]||_t(t,e)||Oe&&(t===`id`||t===`name`)&&(r in n||r in nt))return!1;let i=H[t]||me.attributeCheck instanceof Function&&me.attributeCheck(t,e);return ge&&ki(ie,t)||he&&ki(ae,t)?!0:i?Re[t]||ki(ce,bi(r,B,``))||(t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&xi(r,`data:`)===0&&Ie[e]||_e&&!ki(oe,bi(r,B,``))?!0:!r:Ft(e)&&Ot(de.tagNameCheck,e)&&Ot(de.attributeNameCheck,t,e)||t===`is`&&de.allowCustomizedBuiltInElements&&Ot(de.tagNameCheck,r)},Pt=Ni({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),Ft=function(e){return!Pt[_i(e)]&&ki(se,e)},It=function(e,t,n,r){if(T&&typeof u==`object`&&typeof u.getAttributeType==`function`&&!n)switch(u.getAttributeType(e,t)){case`TrustedHTML`:return j(r);case`TrustedScriptURL`:return M(r)}return r},Lt=function(e,t,n,r){try{return n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),!Ct(e)||(dt(e),!1)}catch{return mt(t,e),!1}},Rt=function(e,n){if(Et(z.beforeSanitizeAttributes,e,null),jt(e,n))return;let r=e.attributes;if(!r||Ct(e))return;H=At(z.uponSanitizeAttribute,H,ue,we);let i={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:H,forceKeepAttr:void 0},a=r.length,o=et(e.nodeName);for(;a--;){let n=r[a],s=n.name,c=n.namespaceURI,l=n.value,u=et(s),d=l,f=s===`value`?d:Si(d),p=!1;if(i.attrName=u,i.attrValue=f,i.keepAttr=!0,i.forceKeepAttr=void 0,Et(z.uponSanitizeAttribute,e,i),f=i.attrValue,ke&&(u===`id`||u===`name`)&&xi(f,Ae)!==0&&(mt(s,e,n),f=Ae+f,p=!0),be&&ki(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)){mt(s,e,n);continue}if(u===`attributename`&&yi(f,`href`)){mt(s,e,n);continue}if(!i.forceKeepAttr){if(!i.keepAttr){mt(s,e,n);continue}if(!ve&&ki(la,f)){mt(s,e,n);continue}if(ye&&(f=xt(f)),!Nt(o,u,f)){mt(s,e,n);continue}f=It(o,u,c,f),f!==d&&Lt(e,s,c,f)&&p&&pi(t.removed)}}Et(z.afterSanitizeAttributes,e,null),jt(e,n)},zt=function(e){let t=null,n=bt(e);for(Et(z.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(Et(z.uponSanitizeShadowNode,t,null),Mt(t,e),Rt(t,e),wt(t.content)&&zt(t.content),C(t)===ua.element){let e=v(t);wt(e)&&(Bt(e),zt(e))}Et(z.afterSanitizeShadowDOM,e,null)},Bt=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){zt(e.shadow);continue}let n=e.node,r=C(n)===ua.element,i=g(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=x?x(n):null;if(typeof e==`string`&&et(e)===`template`){let e=n.content;wt(e)&&t.push({node:e,shadow:null})}}if(r){let e=v(n);wt(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(We=!e,We&&(e=``),typeof e!=`string`&&!Tt(e)&&(e=Ii(e),typeof e!=`string`))throw Ai(`dirty is not a string, aborting`);if(!t.isSupported)return e;Se?(le=Ce,H=we):it(n),(z.uponSanitizeElement.length>0||z.uponSanitizeAttribute.length>0)&&(le=Fi(le)),z.uponSanitizeAttribute.length>0&&(H=Fi(H)),t.removed=[];let c=Me&&typeof e!=`string`&&Tt(e);if(c){vt(e);let t=w(e);if(typeof t==`string`){let n=et(t);if(!le[n]||fe[n])throw pt(e),Ai(`root node is forbidden and cannot be sanitized in-place`)}if(Ct(e))throw pt(e),Ai(`root node is clobbered and cannot be sanitized in-place`);try{Bt(e)}catch(t){throw pt(e),t}}else if(Tt(e))i=yt(``),a=i.ownerDocument.importNode(e,!0),a.nodeType===ua.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),Bt(i);else{if(!U&&!ye&&!xe&&e.indexOf(`<`)===-1)return T&&De?j(e):e;if(i=yt(e),!i)return U?null:De?E:``}i&&Te&&dt(i.firstChild);let l=c?e:i;try{let e=bt(l);for(;o=e.nextNode();)Mt(o,l),Rt(o,l),wt(o.content)&&zt(o.content)}catch(n){throw c&&(pt(e),di(t.removed,e=>{e.element&>(e.element)})),n}if(c){let n=!1;if(di(t.removed,t=>{t.element&&(t.element===e&&(n=!0),gt(t.element))}),n)throw Ai(`a node selected for removal could not be safely returned; refusing to sanitize in place`);return ye&&St(e),e}if(U){if(ye&&St(i),Ee)for(s=L.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(H.shadowroot||H.shadowrootmode)&&(s=ee.call(r,s,!0)),s}let u=xe?i.outerHTML:i.innerHTML;return xe&&le[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&ki(ia,i.ownerDocument.doctype.name)&&(u=` -`+u),ye&&(u=xt(u)),T&&De?j(u):u},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};it(e),Se=!0,Ce=le,we=H},t.clearConfig=function(){tt=null,Se=!1,Ce=null,we=null,T=D,E=``},t.isValidAttribute=function(e,t,n){tt||it({});let r=et(e),i=et(t);return Nt(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&Di(z,e)&&mi(z[e],t)},t.removeHook=function(e,t){if(Di(z,e)){if(t!==void 0){let n=fi(z[e],t);return n===-1?void 0:hi(z[e],n,1)[0]}return pi(z[e])}},t.removeHooks=function(e){Di(z,e)&&(z[e]=[])},t.removeAllHooks=function(){z=ga()},t}var ba=ya();function xa(e){let t=[],n=String(e||``),r=n.indexOf(`,`),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);let e=n.slice(i,r).trim();(e||!a)&&t.push(e),i=r+1,r=n.indexOf(`,`,i)}return t}function Sa(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var Ca=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,wa=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ta={};function Ea(e,t){return((t||Ta).jsx?wa:Ca).test(e)}var Da=/[ \t\n\f\r]/g;function Oa(e){return typeof e==`object`?e.type===`text`&&ka(e.value):ka(e)}function ka(e){return e.replace(Da,``)===``}var Aa=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};Aa.prototype.normal={},Aa.prototype.property={},Aa.prototype.space=void 0;function ja(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new Aa(n,r,t)}function Ma(e){return e.toLowerCase()}var Na=class{constructor(e,t){this.attribute=t,this.property=e}};Na.prototype.attribute=``,Na.prototype.booleanish=!1,Na.prototype.boolean=!1,Na.prototype.commaOrSpaceSeparated=!1,Na.prototype.commaSeparated=!1,Na.prototype.defined=!1,Na.prototype.mustUseProperty=!1,Na.prototype.number=!1,Na.prototype.overloadedBoolean=!1,Na.prototype.property=``,Na.prototype.spaceSeparated=!1,Na.prototype.space=void 0;var Pa=t({boolean:()=>Ia,booleanish:()=>La,commaOrSpaceSeparated:()=>Va,commaSeparated:()=>Ba,number:()=>G,overloadedBoolean:()=>Ra,spaceSeparated:()=>za}),Fa=0,Ia=Ha(),La=Ha(),Ra=Ha(),G=Ha(),za=Ha(),Ba=Ha(),Va=Ha();function Ha(){return 2**++Fa}var Ua=Object.keys(Pa),Wa=class extends Na{constructor(e,t,n,r){let i=-1;if(super(e,t),Ga(this,`space`,r),typeof n==`number`)for(;++i4&&n.slice(0,4)===`data`&&io.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(ro,so);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!ro.test(e)){let n=e.replace(no,oo);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=Wa}return new i(r,t)}function oo(e){return`-`+e.toLowerCase()}function so(e){return e.charAt(1).toUpperCase()}var co=ja([qa,Xa,Qa,$a,eo],`html`),lo=ja([qa,Za,Qa,$a,eo],`svg`);function uo(e){let t=String(e||``).trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function fo(e){return e.join(` `).trim()}var po=n(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g;function u(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,u=1;function f(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(` -`);u=~n?e.length-n:u+e.length}function p(){var e={line:l,column:u};return function(t){return t.position=new m(e),_(),t}}function m(e){this.start=e,this.end={line:l,column:u},this.source=t.source}m.prototype.content=e;function h(n){var r=Error(t.source+`:`+l+`:`+u+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=u,r.source=e,!t.silent)throw r}function g(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function _(){g(i)}function v(e){var t;for(e||=[];t=y();)t!==!1&&e.push(t);return e}function y(){var t=p();if(e.charAt(0)==`/`&&e.charAt(1)==`*`){for(var n=2;e.charAt(n)!=``&&(e.charAt(n)!=`*`||e.charAt(n+1)!=`/`);)++n;if(n+=2,e.charAt(n-1)===``)return h(`End of comment missing`);var r=e.slice(2,n-2);return u+=2,f(r),e=e.slice(n),u+=2,t({type:`comment`,comment:r})}}function b(){var e=p(),t=g(a);if(t){if(y(),!g(o))return h(`property missing ':'`);var r=g(s),i=e({type:`declaration`,property:d(t[0].replace(n,``)),value:r?d(r[0].replace(n,``)):``});return g(c),i}}function x(){var e=[];v(e);for(var t;t=b();)t!==!1&&(e.push(t),v(e));return e}return _(),x()}function d(e){return e?e.replace(l,``):``}t.exports=u})),mo=n((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var n=t(po());function r(e,t){let r=null;if(!e||typeof e!=`string`)return r;let i=(0,n.default)(e),a=typeof t==`function`;return i.forEach(e=>{if(e.type!==`declaration`)return;let{property:n,value:i}=e;a?t(n,i,e):i&&(r||={},r[n]=i)}),r}})),ho=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),go=n(((e,t)=>{var n=(e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(mo()),r=ho();function i(e,t){var i={};return!e||typeof e!=`string`||(0,n.default)(e,function(e,n){e&&n&&(i[(0,r.camelCase)(e,t)]=n)}),i}i.default=i,t.exports=i})),_o=yo(`end`),vo=yo(`start`);function yo(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function bo(e){let t=vo(e),n=_o(e);if(t&&n)return{start:t,end:n}}function xo(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?Co(e.position):`start`in e||`end`in e?Co(e):`line`in e||`column`in e?So(e):``}function So(e){return wo(e&&e.line)+`:`+wo(e&&e.column)}function Co(e){return So(e&&e.start)+`-`+So(e&&e.end)}function wo(e){return e&&typeof e==`number`?e:1}var To=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=xo(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};To.prototype.file=``,To.prototype.name=``,To.prototype.reason=``,To.prototype.message=``,To.prototype.stack=``,To.prototype.column=void 0,To.prototype.line=void 0,To.prototype.ancestors=void 0,To.prototype.cause=void 0,To.prototype.fatal=void 0,To.prototype.place=void 0,To.prototype.ruleId=void 0,To.prototype.source=void 0;var Eo=e(go(),1),Do={}.hasOwnProperty,Oo=new Map,ko=/[A-Z]/g,Ao=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),jo=new Set([`td`,`th`]);function Mo(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=Uo(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=Ho(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||`react`,evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space===`svg`?lo:co,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=No(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function No(e,t,n){if(t.type===`element`)return Po(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return Fo(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return Lo(e,t,n);if(t.type===`mdxjsEsm`)return Io(e,t);if(t.type===`root`)return Ro(e,t,n);if(t.type===`text`)return zo(e,t)}function Po(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=lo,e.schema=i),e.ancestors.push(t);let a=Yo(e,t.tagName,!1),o=Wo(e,t),s=Ko(e,t);return Ao.has(t.tagName)&&(s=s.filter(function(e){return typeof e!=`string`||!Oa(e)})),Bo(e,o,a,t),Vo(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Fo(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}Xo(e,t.position)}function Io(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Xo(e,t.position)}function Lo(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=lo,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:Yo(e,t.name,!0),o=Go(e,t),s=Ko(e,t);return Bo(e,o,a,t),Vo(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Ro(e,t,n){let r={};return Vo(r,Ko(e,t)),e.create(t,e.Fragment,r,n)}function zo(e,t){return t.value}function Bo(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Vo(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function Ho(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function Uo(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=vo(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function Wo(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&Do.call(t.properties,i)){let a=qo(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&jo.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function Go(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else Xo(e,t.position);else{let i=r.name,a;if(r.value&&typeof r.value==`object`)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else Xo(e,t.position);else a=r.value===null||r.value;n[i]=a}return n}function Ko(e,t){let n=[],r=-1,i=e.passKeys?new Map:Oo;for(;++ri?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a0?(cs(e,e.length,0,t),e):t}var us={}.hasOwnProperty;function ds(e){let t={},n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?`�`:String.fromCodePoint(n)}function hs(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var gs=Os(/[A-Za-z]/),_s=Os(/[\dA-Za-z]/),vs=Os(/[#-'*+\--9=?A-Z^-~]/);function ys(e){return e!==null&&(e<32||e===127)}var bs=Os(/\d/),xs=Os(/[\dA-Fa-f]/),Ss=Os(/[!-/:-@[-`{-~]/);function Cs(e){return e!==null&&e<-2}function ws(e){return e!==null&&(e<0||e===32)}function Ts(e){return e===-2||e===-1||e===32}var Es=Os(/\p{P}|\p{S}/u),Ds=Os(/\s/);function Os(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function ks(e){let t=[],n=-1,r=0,i=0;for(;++n55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function As(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return Ts(r)?(e.enter(n),s(r)):t(r)}function s(r){return Ts(r)&&a++o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;er;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Is(e,t,n){return As(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function Ls(e){if(e===null||ws(e)||Ds(e))return 1;if(Es(e))return 2}function Rs(e,t,n){let r=[],i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let d={...e[r][1].end},f={...e[n][1].start};Hs(d,-c),Hs(f,c),o={type:c>1?`strongSequence`:`emphasisSequence`,start:d,end:{...e[r][1].end}},s={type:c>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:f},a={type:c>1?`strongText`:`emphasisText`,start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?`strong`:`emphasis`,start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=ls(l,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),l=ls(l,[[`enter`,i,t],[`enter`,o,t],[`exit`,o,t],[`enter`,a,t]]),l=ls(l,Rs(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=ls(l,[[`exit`,a,t],[`enter`,s,t],[`exit`,s,t],[`exit`,i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,l=ls(l,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):u=0,cs(e,r-1,n-r+3,l),n=r+l.length-u-2;break}}for(n=-1;++n0&&Ts(t)?As(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||Cs(t)?e.check(tc,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||Cs(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),Ts(t)?As(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),Ts(t)?As(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||Cs(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}function ic(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var ac={name:`codeIndented`,tokenize:sc},oc={partial:!0,tokenize:cc};function sc(e,t,n){let r=this;return i;function i(t){return e.enter(`codeIndented`),As(e,a,`linePrefix`,5)(t)}function a(e){let t=r.events[r.events.length-1];return t&&t[1].type===`linePrefix`&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return t===null?c(t):Cs(t)?e.attempt(oc,o,c)(t):(e.enter(`codeFlowValue`),s(t))}function s(t){return t===null||Cs(t)?(e.exit(`codeFlowValue`),o(t)):(e.consume(t),s)}function c(n){return e.exit(`codeIndented`),t(n)}}function cc(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):Cs(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),i):As(e,a,`linePrefix`,5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):Cs(e)?i(e):n(e)}}var lc={name:`codeText`,previous:dc,resolve:uc,tokenize:fc};function uc(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return ethis.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&mc(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),mc(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),mc(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function Sc(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||ys(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||Cs(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||ws(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):Cs(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||Cs(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!Ts(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function wc(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):Cs(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),As(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||Cs(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function Tc(e,t){let n;return r;function r(i){return Cs(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):Ts(i)?As(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var Ec={name:`definition`,tokenize:Oc},Dc={partial:!0,tokenize:kc};function Oc(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return Cc.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=hs(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return ws(t)?Tc(e,l)(t):l(t)}function l(t){return Sc(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(Dc,d,d)(t)}function d(t){return Ts(t)?As(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||Cs(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function kc(e,t,n){return r;function r(t){return ws(t)?Tc(e,i)(t):n(t)}function i(t){return wc(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return Ts(t)?As(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||Cs(e)?t(e):n(e)}}var Ac={name:`hardBreakEscape`,tokenize:jc};function jc(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return Cs(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var Mc={name:`headingAtx`,resolve:Nc,tokenize:Pc};function Nc(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r&&(i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`},cs(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])),e}function Pc(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||ws(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||Cs(n)?(e.exit(`atxHeading`),t(n)):Ts(n)?As(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||ws(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var Fc=`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`.split(`.`),Ic=[`pre`,`script`,`style`,`textarea`],Lc={concrete:!0,name:`htmlFlow`,resolveTo:Bc,tokenize:Vc},Rc={partial:!0,tokenize:Uc},zc={partial:!0,tokenize:Hc};function Bc(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 Vc(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:I):gs(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):gs(a)?(e.consume(a),i=4,r.interrupt?t:I):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:I):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:O:m):n(i)}function h(t){return gs(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||ws(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&Ic.includes(l)?(i=1,r.interrupt?t(s):O(s)):Fc.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):O(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||_s(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:O):n(i)}function v(t){return Ts(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||gs(t)?(e.consume(t),b):Ts(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||_s(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):Ts(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):Ts(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||Cs(t)?n(t):(e.consume(t),C)}function w(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||ws(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||Ts(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||Cs(t)?O(t):Ts(t)?(e.consume(t),D):n(t)}function O(t){return t===45&&i===2?(e.consume(t),M):t===60&&i===1?(e.consume(t),N):t===62&&i===4?(e.consume(t),L):t===63&&i===3?(e.consume(t),I):t===93&&i===5?(e.consume(t),F):Cs(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(Rc,R,k)(t)):t===null||Cs(t)?(e.exit(`htmlFlowData`),k(t)):(e.consume(t),O)}function k(t){return e.check(zc,A,R)(t)}function A(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),j}function j(t){return t===null||Cs(t)?k(t):(e.enter(`htmlFlowData`),O(t))}function M(t){return t===45?(e.consume(t),I):O(t)}function N(t){return t===47?(e.consume(t),o=``,P):O(t)}function P(t){if(t===62){let n=o.toLowerCase();return Ic.includes(n)?(e.consume(t),L):O(t)}return gs(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),P):O(t)}function F(t){return t===93?(e.consume(t),I):O(t)}function I(t){return t===62?(e.consume(t),L):t===45&&i===2?(e.consume(t),I):O(t)}function L(t){return t===null||Cs(t)?(e.exit(`htmlFlowData`),R(t)):(e.consume(t),L)}function R(n){return e.exit(`htmlFlow`),t(n)}}function Hc(e,t,n){let r=this;return i;function i(t){return Cs(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a):n(t)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function Uc(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(Gs,t,n)}}var Wc={name:`htmlText`,tokenize:Gc};function Gc(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):gs(t)?(e.consume(t),w):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):gs(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):Cs(t)?(o=d,N(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?M(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):Cs(t)?(o=h,N(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?M(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?M(t):Cs(t)?(o=v,N(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):Cs(t)?(o=y,N(t)):(e.consume(t),y)}function b(e){return e===62?M(e):y(e)}function x(t){return gs(t)?(e.consume(t),S):n(t)}function S(t){return t===45||_s(t)?(e.consume(t),S):C(t)}function C(t){return Cs(t)?(o=C,N(t)):Ts(t)?(e.consume(t),C):M(t)}function w(t){return t===45||_s(t)?(e.consume(t),w):t===47||t===62||ws(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),M):t===58||t===95||gs(t)?(e.consume(t),E):Cs(t)?(o=T,N(t)):Ts(t)?(e.consume(t),T):M(t)}function E(t){return t===45||t===46||t===58||t===95||_s(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),O):Cs(t)?(o=D,N(t)):Ts(t)?(e.consume(t),D):T(t)}function O(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,k):Cs(t)?(o=O,N(t)):Ts(t)?(e.consume(t),O):(e.consume(t),A)}function k(t){return t===i?(e.consume(t),i=void 0,j):t===null?n(t):Cs(t)?(o=k,N(t)):(e.consume(t),k)}function A(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||ws(t)?T(t):(e.consume(t),A)}function j(e){return e===47||e===62||ws(e)?T(e):n(e)}function M(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function N(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),P}function P(t){return Ts(t)?As(e,F,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):F(t)}function F(t){return e.enter(`htmlTextData`),o(t)}}var Kc={name:`labelEnd`,resolveAll:Xc,resolveTo:Zc,tokenize:Qc},qc={tokenize:$c},Jc={tokenize:el},Yc={tokenize:tl};function Xc(e){let t=-1,n=[];for(;++t=3&&(a===null||Cs(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),Ts(t)?As(e,s,`whitespace`)(t):s(t))}}var ul={continuation:{tokenize:ml},exit:gl,name:`list`,tokenize:pl},dl={partial:!0,tokenize:_l},fl={partial:!0,tokenize:hl};function pl(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:bs(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(cl,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return bs(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(Gs,r.interrupt?n:u,e.attempt(dl,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return Ts(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function ml(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(Gs,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,As(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!Ts(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(fl,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,As(e,e.attempt(ul,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function hl(e,t,n){let r=this;return As(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function gl(e){e.exit(this.containerState.type)}function _l(e,t,n){let r=this;return As(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!Ts(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var vl={name:`setextUnderline`,resolveTo:yl,tokenize:bl};function yl(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]===`enter`){if(e[n][1].type===`content`){r=n;break}e[n][1].type===`paragraph`&&(i=n)}else e[n][1].type===`content`&&e.splice(n,1),!a&&e[n][1].type===`definition`&&(a=n);let o={type:`setextHeading`,start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type=`setextHeadingText`,a?(e.splice(i,0,[`enter`,o,t]),e.splice(a+1,0,[`exit`,e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push([`exit`,o,t]),e}function bl(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),Ts(t)?As(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||Cs(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var xl={tokenize:Sl};function Sl(e){let t=this,n=e.attempt(Gs,r,e.attempt(this.parser.constructs.flowInitial,i,As(e,e.attempt(this.parser.constructs.flow,i,e.attempt(_c,i)),`linePrefix`)));return n;function r(r){if(r===null){e.consume(r);return}return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null){e.consume(r);return}return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var Cl={resolveAll:Dl()},wl=El(`string`),Tl=El(`text`);function El(e){return{resolveAll:Dl(e===`text`?Ol:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null){t.consume(e);return}return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++iLl,contentInitial:()=>jl,disable:()=>Rl,document:()=>Al,flow:()=>Nl,flowInitial:()=>Ml,insideSpan:()=>Il,string:()=>Pl,text:()=>Fl}),Al={42:ul,43:ul,45:ul,48:ul,49:ul,50:ul,51:ul,52:ul,53:ul,54:ul,55:ul,56:ul,57:ul,62:qs},jl={91:Ec},Ml={[-2]:ac,[-1]:ac,32:ac},Nl={35:Mc,42:cl,45:[vl,cl],60:Lc,61:vl,95:cl,96:nc,126:nc},Pl={38:$s,92:Zs},Fl={[-5]:ol,[-4]:ol,[-3]:ol,33:nl,38:$s,42:zs,60:[Us,Wc],91:il,92:[Ac,Zs],93:Kc,95:zs,96:lc},Il={null:[zs,Cl]},Ll={null:[42,95]},Rl={null:[]};function zl(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=ls(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=Rs(a,l.events,l),l.events):[]}function f(e,t){return Vl(p(e),t)}function p(e){return Bl(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,E()}function g(){let e;for(;r._index-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function Vl(e,t){let n=-1,r=[],i;for(;++n`u`?null:ji(BigInt.prototype.toString),Ei=typeof Symbol>`u`?null:ji(Symbol.prototype.toString),Di=ji(Object.prototype.hasOwnProperty),Oi=ji(Object.prototype.toString),ki=ji(RegExp.prototype.test),Ai=Mi(TypeError);function ji(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return li(e,t,n)}}function Mi(e){return function(){return ui(e,[...arguments])}}function Ni(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_i;if(ti&&ti(e,null),!gi(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(ni(t)||(t[r]=e),i=e)}e[i]=!0}return e}function Pi(e){for(let t=0;t/g),Qi=oi(/\${[\w\W]*/g),$i=oi(/^data-[\-\w.\u00B7-\uFFFF]+$/),ea=oi(/^aria-[\-\w]+$/),ta=oi(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),na=oi(/^(?:\w+script|data):/i),ra=oi(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ia=oi(/^html$/i),aa=oi(/^[a-z][.\w]*(-[.\w]+)+$/i),oa=oi(/<[/\w!]/g),sa=oi(/<[/\w]/g),ca=oi(/<\/no(script|embed|frames)/i),la=oi(/\/>/i),ua={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},da=[`style`,`script`,`xmp`,`iframe`,`noembed`,`noframes`,`plaintext`,`noscript`],fa=ai(Ni({},da)),pa=function(){let e={};return di(da,t=>{e[t]=oi(RegExp(`])`,`i`))}),ai(e)}(),ma=function(){return typeof window>`u`?null:window},ha=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},ga=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},_a=function(e,t,n,r){return Di(e,t)&&gi(e[t])?Ni(r.base?Fi(r.base):{},e[t],r.transform):n},va=function(e,t,n){let r=Di(e,t)?e[t]:void 0;return r&&typeof r==`object`?Fi(r):n()};function ya(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ma(),t=e=>ya(e);if(t.version=`3.4.16`,t.removed=[],!e||!e.document||e.document.nodeType!==ua.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let l=e.DOMParser,u=e.trustedTypes,d=s.prototype,f=Li(d,`cloneNode`),p=Li(d,`remove`),m=Li(d,`removeAttributeNode`),h=Li(d,`nextSibling`),g=Li(d,`childNodes`),_=Li(d,`parentNode`),v=Li(d,`shadowRoot`),y=Li(d,`attributes`),b=o&&o.prototype?Li(o.prototype,`nodeType`):null,x=o&&o.prototype?Li(o.prototype,`nodeName`):null,S=o&&o.prototype?Li(o.prototype,`ownerDocument`):null,C=function(e){return b?b(e):e.nodeType},w=function(e){return x?x(e):e.nodeName};if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let T,E=``,D,O=!1,k=0,A=function(){if(k>0)throw Ai(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},j=function(e){A(),k++;try{return T.createHTML(e)}finally{k--}},M=function(e){A(),k++;try{return T.createScriptURL(e)}finally{k--}},N=function(){return O||=(D=ha(u,i),!0),D},P=n,F=P.implementation,I=P.createNodeIterator,L=P.createDocumentFragment,R=P.getElementsByTagName,z=r.importNode,B=ga();t.isSupported=typeof ei==`function`&&typeof _==`function`&&F&&F.createHTMLDocument!==void 0;let V=Xi,ee=Zi,te=Qi,ne=$i,re=ea,ie=na,ae=ra,oe=aa,se=ta,ce=null,H=Ni({},[...zi,...Bi,...Vi,...Ui,...Gi]),U=null,le=Ni({},[...Ki,...qi,...Ji,...Yi]),ue=Object.seal(si(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),de=null,fe=null,pe=Object.seal(si(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),me=!0,he=!0,ge=!1,_e=!0,ve=!1,ye=!0,be=!1,xe=!1,Se=null,Ce=null,we=!1,Te=!1,Ee=!1,De=!1,Oe=!0,W=!1,ke=`user-content-`,Ae=!0,je=!1,Me={},Ne=null,Pe=Ni({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),Fe=null,Ie=Ni({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Le=null,Re=Ni({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),ze=`http://www.w3.org/1998/Math/MathML`,Be=`http://www.w3.org/2000/svg`,Ve=`http://www.w3.org/1999/xhtml`,He=Ve,Ue=!1,We=null,Ge=Ni({},[ze,Be,Ve],vi),Ke=ai([`mi`,`mo`,`mn`,`ms`,`mtext`]),qe=Ni({},Ke),Je=ai([`annotation-xml`]),Ye=Ni({},Je),Xe=Ni({},[`title`,`style`,`font`,`a`,`script`]),Ze=null,Qe=[`application/xhtml+xml`,`text/html`],$e=null,et=null,tt=n.createElement(`form`),nt=function(e){return e instanceof RegExp||e instanceof Function},rt=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(et&&et===e)return;(!e||typeof e!=`object`)&&(e={}),e=Fi(e),Ze=Qe.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,$e=Ze===`application/xhtml+xml`?vi:_i,ce=_a(e,`ALLOWED_TAGS`,H,{transform:$e}),U=_a(e,`ALLOWED_ATTR`,le,{transform:$e}),We=_a(e,`ALLOWED_NAMESPACES`,Ge,{transform:vi}),Le=_a(e,`ADD_URI_SAFE_ATTR`,Re,{transform:$e,base:Re}),Fe=_a(e,`ADD_DATA_URI_TAGS`,Ie,{transform:$e,base:Ie}),Ne=_a(e,`FORBID_CONTENTS`,Pe,{transform:$e}),de=_a(e,`FORBID_TAGS`,Fi({}),{transform:$e}),fe=_a(e,`FORBID_ATTR`,Fi({}),{transform:$e}),Me=Di(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?Fi(e.USE_PROFILES):e.USE_PROFILES:!1,me=e.ALLOW_ARIA_ATTR!==!1,he=e.ALLOW_DATA_ATTR!==!1,ge=e.ALLOW_UNKNOWN_PROTOCOLS||!1,_e=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ve=e.SAFE_FOR_TEMPLATES||!1,ye=e.SAFE_FOR_XML!==!1,be=e.WHOLE_DOCUMENT||!1,Te=e.RETURN_DOM||!1,Ee=e.RETURN_DOM_FRAGMENT||!1,De=e.RETURN_TRUSTED_TYPE||!1,we=e.FORCE_BODY||!1,Oe=e.SANITIZE_DOM!==!1,W=e.SANITIZE_NAMED_PROPS||!1,Ae=e.KEEP_CONTENT!==!1,je=e.IN_PLACE||!1,se=Ri(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:ta,He=typeof e.NAMESPACE==`string`?e.NAMESPACE:Ve,qe=va(e,`MATHML_TEXT_INTEGRATION_POINTS`,()=>Ni({},Ke)),Ye=va(e,`HTML_INTEGRATION_POINTS`,()=>Ni({},Je));let t=va(e,`CUSTOM_ELEMENT_HANDLING`,()=>si(null));if(ue=si(null),Di(t,`tagNameCheck`)&&nt(t.tagNameCheck)&&(ue.tagNameCheck=t.tagNameCheck),Di(t,`attributeNameCheck`)&&nt(t.attributeNameCheck)&&(ue.attributeNameCheck=t.attributeNameCheck),Di(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(ue.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),oi(ue),ve&&(he=!1),Ee&&(Te=!0),Me&&(ce=Ni({},Gi),U=si(null),Me.html===!0&&(Ni(ce,zi),Ni(U,Ki)),Me.svg===!0&&(Ni(ce,Bi),Ni(U,qi),Ni(U,Yi)),Me.svgFilters===!0&&(Ni(ce,Vi),Ni(U,qi),Ni(U,Yi)),Me.mathMl===!0&&(Ni(ce,Ui),Ni(U,Ji),Ni(U,Yi))),pe.tagCheck=null,pe.attributeCheck=null,Di(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?pe.tagCheck=e.ADD_TAGS:gi(e.ADD_TAGS)&&(ce===H&&(ce=Fi(ce)),Ni(ce,e.ADD_TAGS,$e))),Di(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?pe.attributeCheck=e.ADD_ATTR:gi(e.ADD_ATTR)&&(U===le&&(U=Fi(U)),Ni(U,e.ADD_ATTR,$e))),Di(e,`ADD_FORBID_CONTENTS`)&&gi(e.ADD_FORBID_CONTENTS)&&(Ne===Pe&&(Ne=Fi(Ne)),Ni(Ne,e.ADD_FORBID_CONTENTS,$e)),Ae&&(ce[`#text`]=!0),be&&Ni(ce,[`html`,`head`,`body`]),ce.table&&(Ni(ce,[`tbody`]),delete de.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw Ai(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw Ai(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=T;T=e.TRUSTED_TYPES_POLICY;try{E=j(``)}catch(e){throw T=t,e}}else e.TRUSTED_TYPES_POLICY===null?(T=void 0,E=``):(T===void 0&&(T=N()),T&&typeof E==`string`&&(E=j(``)));ai&&ai(e),et=e},it=Ni({},[...Bi,...Vi,...Hi]),at=Ni({},[...Ui,...Wi]),ot=function(e,t,n){return t.namespaceURI===Ve?e===`svg`:t.namespaceURI===ze?e===`svg`&&(n===`annotation-xml`||qe[n]):!!it[e]},st=function(e,t,n){return t.namespaceURI===Ve?e===`math`:t.namespaceURI===Be?e===`math`&&Ye[n]:!!at[e]},ct=function(e,t,n){return t.namespaceURI===Be&&!Ye[n]||t.namespaceURI===ze&&!qe[n]?!1:!at[e]&&(Xe[e]||!it[e])},lt=function(e){let t=_(e);(!t||!t.tagName)&&(t={namespaceURI:He,tagName:`template`});let n=_i(e.tagName),r=_i(t.tagName);return We[e.namespaceURI]?e.namespaceURI===Be?ot(n,t,r):e.namespaceURI===ze?st(n,t,r):e.namespaceURI===Ve?ct(n,t,r):!!(Ze===`application/xhtml+xml`&&We[e.namespaceURI]):!1},ut=function(e){mi(t.removed,{element:e});try{_(e).removeChild(e)}catch{if(p(e),!_(e))throw Ai(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},dt=function(e,t,n){try{m(e,t)}catch{try{e.removeAttribute(n)}catch{}}},ft=function(e){ht(e);let t=g(e);if(t){let e=[];di(t,t=>{mi(e,t)}),di(e,e=>{try{p(e)}catch{}})}let n=y(e);if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;typeof i==`string`&&dt(e,r,i)}},pt=function(e,n,r){if(!r)try{r=n.getAttributeNode(e)}catch{r=null}mi(t.removed,{attribute:r||null,from:n});try{r?m(n,r):n.removeAttribute(e)}catch{try{n.removeAttribute(e)}catch{}}if(e===`is`)if(Te||Ee)try{ut(n)}catch{}else try{n.setAttribute(e,``)}catch{}},mt=function(e){let t=y(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;typeof i!=`string`||U[$e(i)]||dt(e,r,i)}},ht=function(e){let t=[e];for(;t.length>0;){let e=t.pop();C(e)===ua.element&&mt(e);let n=g(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},gt=function(e,t){return ye?e===`patchsrc`||e===`for`&&t!==`label`&&t!==`output`:!1},_t=function(e){if(!ye)return;let t=[e];for(;t.length>0;){let e=t.pop(),n=C(e);if(n===ua.processingInstruction||n===ua.comment&&ki(sa,e.data)){try{p(e)}catch{}continue}if(n===ua.element){let t=e,n=$e(w(e));try{t.hasAttribute&&t.hasAttribute(`patchsrc`)&&t.removeAttribute(`patchsrc`),t.hasAttribute&&t.hasAttribute(`for`)&>(`for`,n)&&t.removeAttribute(`for`)}catch{}}let r=g(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},vt=function(e){let t=null,r=null;if(we)e=``+e;else{let t=yi(e,/^[\r\n\t ]+/);r=t&&t[0]}Ze===`application/xhtml+xml`&&He===Ve&&(e=``+e+``);let i=T?j(e):e;if(He===Ve)try{t=new l().parseFromString(i,Ze)}catch{}if(!t||!t.documentElement){t=F.createDocument(He,`template`,null);try{t.documentElement.innerHTML=Ue?E:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),He===Ve?R.call(t,be?`html`:`body`)[0]:be?t.documentElement:a},yt=function(e){let t=S?S(e):e.ownerDocument;return I.call(t||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},bt=function(e){return e=bi(e,V,` `),e=bi(e,ee,` `),e=bi(e,te,` `),e},xt=function(e){e.normalize();let t=S?S(e):e.ownerDocument,n=I.call(t||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=bt(r.data),r=n.nextNode();let i=e.querySelectorAll?.call(e,`template`);i&&di(i,e=>{Ct(e.content)&&xt(e.content)})},St=function(e){let t=x?x(e):null;return typeof t!=`string`||$e(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==y(e)||typeof e.removeAttribute!=`function`||typeof e.removeAttributeNode!=`function`||typeof e.getAttributeNode!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==b(e)||e.childNodes!==g(e)},Ct=function(e){if(!b||typeof e!=`object`||!e)return!1;try{return b(e)===ua.documentFragment}catch{return!1}},wt=function(e){if(!b||typeof e!=`object`||!e)return!1;try{return typeof b(e)==`number`}catch{return!1}};function Tt(e,n,r){e.length!==0&&di(e,e=>{e.call(t,n,r,et)})}let Et=function(e,t){return!!(ye&&e.hasChildNodes()&&!wt(e.firstElementChild)&&ki(oa,e.textContent)&&ki(oa,e.innerHTML)||ye&&e.namespaceURI===Ve&&fa[t]&&(wt(e.firstElementChild)||typeof e.textContent==`string`&&ki(pa[t],e.textContent))||e.nodeType===ua.processingInstruction||ye&&e.nodeType===ua.comment&&ki(sa,e.data))},Dt=function(e,t){return e instanceof RegExp?ki(e,t):e instanceof Function&&!!e(t,...[...arguments].slice(2))},Ot=function(e,t,n){if(!de[t]&&Pt(t)&&Dt(ue.tagNameCheck,t))return!1;if(Ae&&!Ne[t]){let t=_(e),r=g(e);if(r&&t){let i=r.length;for(let a=i-1;a>=0;--a){let i=e===n?f(r[a],!0):r[a];t.insertBefore(i,h(e))}}}return ut(e),!0},kt=function(e,t,n,r){return e.length===0?t:t===n||t===r?Fi(t):t},At=function(e,t){return e===t||_(e)!==null?!1:(je&&ht(e),!0)},jt=function(e,n){if(Tt(B.beforeSanitizeElements,e,null),At(e,n))return!0;if(St(e))return ut(e),!0;let r=$e(w(e));if(ce=kt(B.uponSanitizeElement,ce,H,Se),Tt(B.uponSanitizeElement,e,{tagName:r,allowedTags:ce}),At(e,n))return!0;if(Et(e,r))return ut(e),!0;if(de[r]||!(pe.tagCheck instanceof Function&&pe.tagCheck(r))&&!ce[r]){let t=Ot(e,r,n);return t===!1&&(Tt(B.afterSanitizeElements,e,null),At(e,n))?!0:t}if(C(e)===ua.element&&!lt(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&ki(ca,e.innerHTML))return ut(e),!0;if(ve&&e.nodeType===ua.text){let n=bt(e.textContent);e.textContent!==n&&(mi(t.removed,{element:e.cloneNode()}),e.textContent=n)}return Tt(B.afterSanitizeElements,e,null),At(e,n)},Mt=function(e,t,r){if(fe[t]||gt(t,e)||Oe&&(t===`id`||t===`name`)&&(r in n||r in tt))return!1;let i=U[t]||pe.attributeCheck instanceof Function&&pe.attributeCheck(t,e);return he&&ki(ne,t)||me&&ki(re,t)?!0:i?Le[t]||ki(se,bi(r,ae,``))||(t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&xi(r,`data:`)===0&&Fe[e]||ge&&!ki(ie,bi(r,ae,``))?!0:!r:Pt(e)&&Dt(ue.tagNameCheck,e)&&Dt(ue.attributeNameCheck,t,e)||t===`is`&&ue.allowCustomizedBuiltInElements&&Dt(ue.tagNameCheck,r)},Nt=Ni({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),Pt=function(e){return!Nt[_i(e)]&&ki(oe,e)},Ft=function(e,t,n,r){if(T&&typeof u==`object`&&typeof u.getAttributeType==`function`&&!n)switch(u.getAttributeType(e,t)){case`TrustedHTML`:return j(r);case`TrustedScriptURL`:return M(r)}return r},It=function(e,t,n,r){try{return n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),!St(e)||(ut(e),!1)}catch{return pt(t,e),!1}},Lt=function(e,n){if(Tt(B.beforeSanitizeAttributes,e,null),At(e,n))return;let r=e.attributes;if(!r||St(e))return;U=kt(B.uponSanitizeAttribute,U,le,Ce);let i={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:U,forceKeepAttr:void 0},a=r.length,o=$e(e.nodeName);for(;a--;){let n=r[a],s=n.name,c=n.namespaceURI,l=n.value,u=$e(s),d=l,f=s===`value`?d:Si(d),p=!1;if(i.attrName=u,i.attrValue=f,i.keepAttr=!0,i.forceKeepAttr=void 0,Tt(B.uponSanitizeAttribute,e,i),f=i.attrValue,W&&(u===`id`||u===`name`)&&xi(f,ke)!==0&&(pt(s,e,n),f=ke+f,p=!0),ye&&ki(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)){pt(s,e,n);continue}if(u===`attributename`&&yi(f,`href`)){pt(s,e,n);continue}if(!i.forceKeepAttr){if(!i.keepAttr){pt(s,e,n);continue}if(!_e&&ki(la,f)){pt(s,e,n);continue}if(ve&&(f=bt(f)),!Mt(o,u,f)){pt(s,e,n);continue}f=Ft(o,u,c,f),f!==d&&It(e,s,c,f)&&p&&pi(t.removed)}}Tt(B.afterSanitizeAttributes,e,null),At(e,n)},Rt=function(e){let t=null,n=yt(e);for(Tt(B.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(Tt(B.uponSanitizeShadowNode,t,null),jt(t,e),Lt(t,e),Ct(t.content)&&Rt(t.content),C(t)===ua.element){let e=v(t);Ct(e)&&(zt(e),Rt(e))}Tt(B.afterSanitizeShadowDOM,e,null)},zt=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){Rt(e.shadow);continue}let n=e.node,r=C(n)===ua.element,i=g(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=x?x(n):null;if(typeof e==`string`&&$e(e)===`template`){let e=n.content;Ct(e)&&t.push({node:e,shadow:null})}}if(r){let e=v(n);Ct(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(Ue=!e,Ue&&(e=``),typeof e!=`string`&&!wt(e)&&(e=Ii(e),typeof e!=`string`))throw Ai(`dirty is not a string, aborting`);if(!t.isSupported)return e;xe?(ce=Se,U=Ce):rt(n),(B.uponSanitizeElement.length>0||B.uponSanitizeAttribute.length>0)&&(ce=Fi(ce)),B.uponSanitizeAttribute.length>0&&(U=Fi(U)),t.removed=[];let c=je&&typeof e!=`string`&&wt(e);if(c){_t(e);let t=w(e);if(typeof t==`string`){let n=$e(t);if(!ce[n]||de[n])throw ft(e),Ai(`root node is forbidden and cannot be sanitized in-place`)}if(St(e))throw ft(e),Ai(`root node is clobbered and cannot be sanitized in-place`);try{zt(e)}catch(t){throw ft(e),t}}else if(wt(e))i=vt(``),a=i.ownerDocument.importNode(e,!0),a.nodeType===ua.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),zt(i);else{if(!Te&&!ve&&!be&&e.indexOf(`<`)===-1)return T&&De?j(e):e;if(i=vt(e),!i)return Te?null:De?E:``}i&&we&&ut(i.firstChild);let l=c?e:i;try{let e=yt(l);for(;o=e.nextNode();)jt(o,l),Lt(o,l),Ct(o.content)&&Rt(o.content)}catch(n){throw c&&(ft(e),di(t.removed,e=>{e.element&&ht(e.element)})),n}if(c){let n=!1;if(di(t.removed,t=>{t.element&&(t.element===e&&(n=!0),ht(t.element))}),n)throw Ai(`a node selected for removal could not be safely returned; refusing to sanitize in place`);return ve&&xt(e),e}if(Te){if(ve&&xt(i),Ee)for(s=L.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(U.shadowroot||U.shadowrootmode)&&(s=z.call(r,s,!0)),s}let u=be?i.outerHTML:i.innerHTML;return be&&ce[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&ki(ia,i.ownerDocument.doctype.name)&&(u=` +`+u),ve&&(u=bt(u)),T&&De?j(u):u},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};rt(e),xe=!0,Se=ce,Ce=U},t.clearConfig=function(){et=null,xe=!1,Se=null,Ce=null,T=D,E=``},t.isValidAttribute=function(e,t,n){et||rt({});let r=$e(e),i=$e(t);return Mt(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&Di(B,e)&&mi(B[e],t)},t.removeHook=function(e,t){if(Di(B,e)){if(t!==void 0){let n=fi(B[e],t);return n===-1?void 0:hi(B[e],n,1)[0]}return pi(B[e])}},t.removeHooks=function(e){Di(B,e)&&(B[e]=[])},t.removeAllHooks=function(){B=ga()},t}var ba=ya();function xa(e){let t=[],n=String(e||``),r=n.indexOf(`,`),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);let e=n.slice(i,r).trim();(e||!a)&&t.push(e),i=r+1,r=n.indexOf(`,`,i)}return t}function Sa(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var Ca=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,wa=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ta={};function Ea(e,t){return((t||Ta).jsx?wa:Ca).test(e)}var Da=/[ \t\n\f\r]/g;function Oa(e){return typeof e==`object`?e.type===`text`&&ka(e.value):ka(e)}function ka(e){return e.replace(Da,``)===``}var Aa=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};Aa.prototype.normal={},Aa.prototype.property={},Aa.prototype.space=void 0;function ja(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new Aa(n,r,t)}function Ma(e){return e.toLowerCase()}var Na=class{constructor(e,t){this.attribute=t,this.property=e}};Na.prototype.attribute=``,Na.prototype.booleanish=!1,Na.prototype.boolean=!1,Na.prototype.commaOrSpaceSeparated=!1,Na.prototype.commaSeparated=!1,Na.prototype.defined=!1,Na.prototype.mustUseProperty=!1,Na.prototype.number=!1,Na.prototype.overloadedBoolean=!1,Na.prototype.property=``,Na.prototype.spaceSeparated=!1,Na.prototype.space=void 0;var Pa=t({boolean:()=>Ia,booleanish:()=>La,commaOrSpaceSeparated:()=>Ha,commaSeparated:()=>Va,number:()=>za,overloadedBoolean:()=>Ra,spaceSeparated:()=>Ba}),Fa=0,Ia=Ua(),La=Ua(),Ra=Ua(),za=Ua(),Ba=Ua(),Va=Ua(),Ha=Ua();function Ua(){return 2**++Fa}var Wa=Object.keys(Pa),Ga=class extends Na{constructor(e,t,n,r){let i=-1;if(super(e,t),Ka(this,`space`,r),typeof n==`number`)for(;++i4&&n.slice(0,4)===`data`&&ao.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(io,co);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!io.test(e)){let n=e.replace(ro,so);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=Ga}return new i(r,t)}function so(e){return`-`+e.toLowerCase()}function co(e){return e.charAt(1).toUpperCase()}var lo=ja([Ja,Za,$a,eo,to],`html`),uo=ja([Ja,Qa,$a,eo,to],`svg`);function fo(e){let t=String(e||``).trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function po(e){return e.join(` `).trim()}var mo=n(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g;function u(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,u=1;function f(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(` +`);u=~n?e.length-n:u+e.length}function p(){var e={line:l,column:u};return function(t){return t.position=new m(e),_(),t}}function m(e){this.start=e,this.end={line:l,column:u},this.source=t.source}m.prototype.content=e;function h(n){var r=Error(t.source+`:`+l+`:`+u+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=u,r.source=e,!t.silent)throw r}function g(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function _(){g(i)}function v(e){var t;for(e||=[];t=y();)t!==!1&&e.push(t);return e}function y(){var t=p();if(e.charAt(0)==`/`&&e.charAt(1)==`*`){for(var n=2;e.charAt(n)!=``&&(e.charAt(n)!=`*`||e.charAt(n+1)!=`/`);)++n;if(n+=2,e.charAt(n-1)===``)return h(`End of comment missing`);var r=e.slice(2,n-2);return u+=2,f(r),e=e.slice(n),u+=2,t({type:`comment`,comment:r})}}function b(){var e=p(),t=g(a);if(t){if(y(),!g(o))return h(`property missing ':'`);var r=g(s),i=e({type:`declaration`,property:d(t[0].replace(n,``)),value:r?d(r[0].replace(n,``)):``});return g(c),i}}function x(){var e=[];v(e);for(var t;t=b();)t!==!1&&(e.push(t),v(e));return e}return _(),x()}function d(e){return e?e.replace(l,``):``}t.exports=u})),ho=n((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var n=t(mo());function r(e,t){let r=null;if(!e||typeof e!=`string`)return r;let i=(0,n.default)(e),a=typeof t==`function`;return i.forEach(e=>{if(e.type!==`declaration`)return;let{property:n,value:i}=e;a?t(n,i,e):i&&(r||={},r[n]=i)}),r}})),go=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),_o=n(((e,t)=>{var n=(e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(ho()),r=go();function i(e,t){var i={};return!e||typeof e!=`string`||(0,n.default)(e,function(e,n){e&&n&&(i[(0,r.camelCase)(e,t)]=n)}),i}i.default=i,t.exports=i})),vo=bo(`end`),yo=bo(`start`);function bo(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function xo(e){let t=yo(e),n=vo(e);if(t&&n)return{start:t,end:n}}function So(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?wo(e.position):`start`in e||`end`in e?wo(e):`line`in e||`column`in e?Co(e):``}function Co(e){return To(e&&e.line)+`:`+To(e&&e.column)}function wo(e){return Co(e&&e.start)+`-`+Co(e&&e.end)}function To(e){return e&&typeof e==`number`?e:1}var Eo=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=So(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};Eo.prototype.file=``,Eo.prototype.name=``,Eo.prototype.reason=``,Eo.prototype.message=``,Eo.prototype.stack=``,Eo.prototype.column=void 0,Eo.prototype.line=void 0,Eo.prototype.ancestors=void 0,Eo.prototype.cause=void 0,Eo.prototype.fatal=void 0,Eo.prototype.place=void 0,Eo.prototype.ruleId=void 0,Eo.prototype.source=void 0;var Do=e(_o(),1),Oo={}.hasOwnProperty,ko=new Map,Ao=/[A-Z]/g,jo=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),Mo=new Set([`td`,`th`]);function No(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=Wo(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=Uo(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||`react`,evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space===`svg`?uo:lo,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Po(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function Po(e,t,n){if(t.type===`element`)return Fo(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return Io(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return Ro(e,t,n);if(t.type===`mdxjsEsm`)return Lo(e,t);if(t.type===`root`)return zo(e,t,n);if(t.type===`text`)return Bo(e,t)}function Fo(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=uo,e.schema=i),e.ancestors.push(t);let a=Xo(e,t.tagName,!1),o=Go(e,t),s=qo(e,t);return jo.has(t.tagName)&&(s=s.filter(function(e){return typeof e!=`string`||!Oa(e)})),Vo(e,o,a,t),Ho(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Io(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}Zo(e,t.position)}function Lo(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Zo(e,t.position)}function Ro(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=uo,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:Xo(e,t.name,!0),o=Ko(e,t),s=qo(e,t);return Vo(e,o,a,t),Ho(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function zo(e,t,n){let r={};return Ho(r,qo(e,t)),e.create(t,e.Fragment,r,n)}function Bo(e,t){return t.value}function Vo(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Ho(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function Uo(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function Wo(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=yo(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function Go(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&Oo.call(t.properties,i)){let a=Jo(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&Mo.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function Ko(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else Zo(e,t.position);else{let i=r.name,a;if(r.value&&typeof r.value==`object`)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else Zo(e,t.position);else a=r.value===null||r.value;n[i]=a}return n}function qo(e,t){let n=[],r=-1,i=e.passKeys?new Map:ko;for(;++ri?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a0?(ls(e,e.length,0,t),e):t}var ds={}.hasOwnProperty;function fs(e){let t={},n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?`�`:String.fromCodePoint(n)}function gs(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var _s=ks(/[A-Za-z]/),vs=ks(/[\dA-Za-z]/),ys=ks(/[#-'*+\--9=?A-Z^-~]/);function bs(e){return e!==null&&(e<32||e===127)}var xs=ks(/\d/),Ss=ks(/[\dA-Fa-f]/),Cs=ks(/[!-/:-@[-`{-~]/);function ws(e){return e!==null&&e<-2}function Ts(e){return e!==null&&(e<0||e===32)}function Es(e){return e===-2||e===-1||e===32}var Ds=ks(/\p{P}|\p{S}/u),Os=ks(/\s/);function ks(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function As(e){let t=[],n=-1,r=0,i=0;for(;++n55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function js(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return Es(r)?(e.enter(n),s(r)):t(r)}function s(r){return Es(r)&&a++o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;er;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Ls(e,t,n){return js(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function Rs(e){if(e===null||Ts(e)||Os(e))return 1;if(Ds(e))return 2}function zs(e,t,n){let r=[],i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let d={...e[r][1].end},f={...e[n][1].start};Us(d,-c),Us(f,c),o={type:c>1?`strongSequence`:`emphasisSequence`,start:d,end:{...e[r][1].end}},s={type:c>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:f},a={type:c>1?`strongText`:`emphasisText`,start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?`strong`:`emphasis`,start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=us(l,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),l=us(l,[[`enter`,i,t],[`enter`,o,t],[`exit`,o,t],[`enter`,a,t]]),l=us(l,zs(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=us(l,[[`exit`,a,t],[`enter`,s,t],[`exit`,s,t],[`exit`,i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,l=us(l,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):u=0,ls(e,r-1,n-r+3,l),n=r+l.length-u-2;break}}for(n=-1;++n0&&Es(t)?js(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||ws(t)?e.check(nc,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||ws(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),Es(t)?js(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),Es(t)?js(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||ws(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}function ac(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var oc={name:`codeIndented`,tokenize:cc},sc={partial:!0,tokenize:lc};function cc(e,t,n){let r=this;return i;function i(t){return e.enter(`codeIndented`),js(e,a,`linePrefix`,5)(t)}function a(e){let t=r.events[r.events.length-1];return t&&t[1].type===`linePrefix`&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return t===null?c(t):ws(t)?e.attempt(sc,o,c)(t):(e.enter(`codeFlowValue`),s(t))}function s(t){return t===null||ws(t)?(e.exit(`codeFlowValue`),o(t)):(e.consume(t),s)}function c(n){return e.exit(`codeIndented`),t(n)}}function lc(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):ws(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),i):js(e,a,`linePrefix`,5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):ws(e)?i(e):n(e)}}var uc={name:`codeText`,previous:fc,resolve:dc,tokenize:pc};function dc(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return ethis.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&hc(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),hc(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),hc(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function Cc(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||bs(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||ws(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||Ts(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):ws(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||ws(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!Es(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function Tc(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):ws(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),js(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||ws(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function Ec(e,t){let n;return r;function r(i){return ws(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):Es(i)?js(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var Dc={name:`definition`,tokenize:kc},Oc={partial:!0,tokenize:Ac};function kc(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return wc.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=gs(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return Ts(t)?Ec(e,l)(t):l(t)}function l(t){return Cc(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(Oc,d,d)(t)}function d(t){return Es(t)?js(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||ws(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function Ac(e,t,n){return r;function r(t){return Ts(t)?Ec(e,i)(t):n(t)}function i(t){return Tc(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return Es(t)?js(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||ws(e)?t(e):n(e)}}var jc={name:`hardBreakEscape`,tokenize:Mc};function Mc(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return ws(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var Nc={name:`headingAtx`,resolve:Pc,tokenize:Fc};function Pc(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r&&(i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`},ls(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])),e}function Fc(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||Ts(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||ws(n)?(e.exit(`atxHeading`),t(n)):Es(n)?js(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||Ts(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var Ic=`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`.split(`.`),Lc=[`pre`,`script`,`style`,`textarea`],Rc={concrete:!0,name:`htmlFlow`,resolveTo:Vc,tokenize:Hc},zc={partial:!0,tokenize:Wc},Bc={partial:!0,tokenize:Uc};function Vc(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 Hc(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:I):_s(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):_s(a)?(e.consume(a),i=4,r.interrupt?t:I):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:I):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:O:m):n(i)}function h(t){return _s(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||Ts(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&Lc.includes(l)?(i=1,r.interrupt?t(s):O(s)):Ic.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):O(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||vs(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:O):n(i)}function v(t){return Es(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||_s(t)?(e.consume(t),b):Es(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||vs(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):Es(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):Es(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||ws(t)?n(t):(e.consume(t),C)}function w(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||Ts(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||Es(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||ws(t)?O(t):Es(t)?(e.consume(t),D):n(t)}function O(t){return t===45&&i===2?(e.consume(t),M):t===60&&i===1?(e.consume(t),N):t===62&&i===4?(e.consume(t),L):t===63&&i===3?(e.consume(t),I):t===93&&i===5?(e.consume(t),F):ws(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(zc,R,k)(t)):t===null||ws(t)?(e.exit(`htmlFlowData`),k(t)):(e.consume(t),O)}function k(t){return e.check(Bc,A,R)(t)}function A(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),j}function j(t){return t===null||ws(t)?k(t):(e.enter(`htmlFlowData`),O(t))}function M(t){return t===45?(e.consume(t),I):O(t)}function N(t){return t===47?(e.consume(t),o=``,P):O(t)}function P(t){if(t===62){let n=o.toLowerCase();return Lc.includes(n)?(e.consume(t),L):O(t)}return _s(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),P):O(t)}function F(t){return t===93?(e.consume(t),I):O(t)}function I(t){return t===62?(e.consume(t),L):t===45&&i===2?(e.consume(t),I):O(t)}function L(t){return t===null||ws(t)?(e.exit(`htmlFlowData`),R(t)):(e.consume(t),L)}function R(n){return e.exit(`htmlFlow`),t(n)}}function Uc(e,t,n){let r=this;return i;function i(t){return ws(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a):n(t)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function Wc(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(Ks,t,n)}}var Gc={name:`htmlText`,tokenize:Kc};function Kc(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):_s(t)?(e.consume(t),w):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):_s(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):ws(t)?(o=d,N(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?M(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):ws(t)?(o=h,N(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?M(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?M(t):ws(t)?(o=v,N(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):ws(t)?(o=y,N(t)):(e.consume(t),y)}function b(e){return e===62?M(e):y(e)}function x(t){return _s(t)?(e.consume(t),S):n(t)}function S(t){return t===45||vs(t)?(e.consume(t),S):C(t)}function C(t){return ws(t)?(o=C,N(t)):Es(t)?(e.consume(t),C):M(t)}function w(t){return t===45||vs(t)?(e.consume(t),w):t===47||t===62||Ts(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),M):t===58||t===95||_s(t)?(e.consume(t),E):ws(t)?(o=T,N(t)):Es(t)?(e.consume(t),T):M(t)}function E(t){return t===45||t===46||t===58||t===95||vs(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),O):ws(t)?(o=D,N(t)):Es(t)?(e.consume(t),D):T(t)}function O(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,k):ws(t)?(o=O,N(t)):Es(t)?(e.consume(t),O):(e.consume(t),A)}function k(t){return t===i?(e.consume(t),i=void 0,j):t===null?n(t):ws(t)?(o=k,N(t)):(e.consume(t),k)}function A(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||Ts(t)?T(t):(e.consume(t),A)}function j(e){return e===47||e===62||Ts(e)?T(e):n(e)}function M(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function N(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),P}function P(t){return Es(t)?js(e,F,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):F(t)}function F(t){return e.enter(`htmlTextData`),o(t)}}var qc={name:`labelEnd`,resolveAll:Zc,resolveTo:Qc,tokenize:$c},Jc={tokenize:el},Yc={tokenize:tl},Xc={tokenize:nl};function Zc(e){let t=-1,n=[];for(;++t=3&&(a===null||ws(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),Es(t)?js(e,s,`whitespace`)(t):s(t))}}var dl={continuation:{tokenize:hl},exit:_l,name:`list`,tokenize:ml},fl={partial:!0,tokenize:vl},pl={partial:!0,tokenize:gl};function ml(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:xs(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(ll,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return xs(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(Ks,r.interrupt?n:u,e.attempt(fl,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return Es(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function hl(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(Ks,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,js(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!Es(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(pl,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,js(e,e.attempt(dl,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function gl(e,t,n){let r=this;return js(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function _l(e){e.exit(this.containerState.type)}function vl(e,t,n){let r=this;return js(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!Es(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var yl={name:`setextUnderline`,resolveTo:bl,tokenize:xl};function bl(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]===`enter`){if(e[n][1].type===`content`){r=n;break}e[n][1].type===`paragraph`&&(i=n)}else e[n][1].type===`content`&&e.splice(n,1),!a&&e[n][1].type===`definition`&&(a=n);let o={type:`setextHeading`,start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type=`setextHeadingText`,a?(e.splice(i,0,[`enter`,o,t]),e.splice(a+1,0,[`exit`,e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push([`exit`,o,t]),e}function xl(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),Es(t)?js(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||ws(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var Sl={tokenize:Cl};function Cl(e){let t=this,n=e.attempt(Ks,r,e.attempt(this.parser.constructs.flowInitial,i,js(e,e.attempt(this.parser.constructs.flow,i,e.attempt(vc,i)),`linePrefix`)));return n;function r(r){if(r===null){e.consume(r);return}return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null){e.consume(r);return}return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var wl={resolveAll:Ol()},Tl=Dl(`string`),El=Dl(`text`);function Dl(e){return{resolveAll:Ol(e===`text`?kl:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null){t.consume(e);return}return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++iRl,contentInitial:()=>Ml,disable:()=>zl,document:()=>jl,flow:()=>Pl,flowInitial:()=>Nl,insideSpan:()=>Ll,string:()=>Fl,text:()=>Il}),jl={42:dl,43:dl,45:dl,48:dl,49:dl,50:dl,51:dl,52:dl,53:dl,54:dl,55:dl,56:dl,57:dl,62:Js},Ml={91:Dc},Nl={[-2]:oc,[-1]:oc,32:oc},Pl={35:Nc,42:ll,45:[yl,ll],60:Rc,61:yl,95:ll,96:rc,126:rc},Fl={38:ec,92:Qs},Il={[-5]:sl,[-4]:sl,[-3]:sl,33:rl,38:ec,42:Bs,60:[Ws,Gc],91:al,92:[jc,Qs],93:qc,95:Bs,96:uc},Ll={null:[Bs,wl]},Rl={null:[42,95]},zl={null:[]};function Bl(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=us(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=zs(a,l.events,l),l.events):[]}function f(e,t){return Hl(p(e),t)}function p(e){return Vl(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,E()}function g(){let e;for(;r._index-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function Hl(e,t){let n=-1,r=[],i;for(;++n0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||tu).call(a,void 0,e[0])}for(r.position={start:Ql(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Ql(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d0&&(r.className=[`language-`+i[0]]);let a={type:`element`,tagName:`code`,properties:r,children:[{type:`text`,value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:`element`,tagName:`pre`,properties:{},children:[a]},e.patch(t,a),a}function ou(e,t){let n={type:`element`,tagName:`del`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function su(e,t){let n={type:`element`,tagName:`em`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function cu(e,t){let n=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,r=String(t.identifier).toUpperCase(),i=ks(r.toLowerCase()),a=e.footnoteOrder.indexOf(r),o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(r,s);let c={type:`element`,tagName:`a`,properties:{href:`#`+n+`fn-`+i,id:n+`fnref-`+i+(s>1?`-`+s:``),dataFootnoteRef:!0,ariaDescribedBy:[`footnote-label`]},children:[{type:`text`,value:String(o)}]};e.patch(t,c);let l={type:`element`,tagName:`sup`,properties:{},children:[c]};return e.patch(t,l),e.applyData(t,l)}function lu(e,t){let n={type:`element`,tagName:`h`+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function uu(e,t){if(e.options.allowDangerousHtml){let n={type:`raw`,value:t.value};return e.patch(t,n),e.applyData(t,n)}}function du(e,t){let n=t.referenceType,r=`]`;if(n===`collapsed`?r+=`[]`:n===`full`&&(r+=`[`+(t.label||t.identifier)+`]`),t.type===`imageReference`)return[{type:`text`,value:`![`+t.alt+r}];let i=e.all(t),a=i[0];a&&a.type===`text`?a.value=`[`+a.value:i.unshift({type:`text`,value:`[`});let o=i[i.length-1];return o&&o.type===`text`?o.value+=r:i.push({type:`text`,value:r}),i}function fu(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return du(e,t);let i={src:ks(r.url||``),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`img`,properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function pu(e,t){let n={src:ks(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`img`,properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function mu(e,t){let n={type:`text`,value:t.value.replace(/\r?\n|\r/g,` `)};e.patch(t,n);let r={type:`element`,tagName:`code`,properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function hu(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return du(e,t);let i={href:ks(r.url||``)};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`a`,properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function gu(e,t){let n={href:ks(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`a`,properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function _u(e,t,n){let r=e.all(t),i=n?vu(n):yu(t),a={},o=[];if(typeof t.checked==`boolean`){let e=r[0],n;e&&e.type===`element`&&e.tagName===`p`?n=e:(n={type:`element`,tagName:`p`,properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:`text`,value:` `}),n.children.unshift({type:`element`,tagName:`input`,properties:{type:`checkbox`,checked:t.checked,disabled:!0},children:[]}),a.className=[`task-list-item`]}let s=-1;for(;++s0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||nu).call(a,void 0,e[0])}for(r.position={start:$l(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:$l(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d0&&(r.className=[`language-`+i[0]]);let a={type:`element`,tagName:`code`,properties:r,children:[{type:`text`,value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:`element`,tagName:`pre`,properties:{},children:[a]},e.patch(t,a),a}function su(e,t){let n={type:`element`,tagName:`del`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function cu(e,t){let n={type:`element`,tagName:`em`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function lu(e,t){let n=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,r=String(t.identifier).toUpperCase(),i=As(r.toLowerCase()),a=e.footnoteOrder.indexOf(r),o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(r,s);let c={type:`element`,tagName:`a`,properties:{href:`#`+n+`fn-`+i,id:n+`fnref-`+i+(s>1?`-`+s:``),dataFootnoteRef:!0,ariaDescribedBy:[`footnote-label`]},children:[{type:`text`,value:String(o)}]};e.patch(t,c);let l={type:`element`,tagName:`sup`,properties:{},children:[c]};return e.patch(t,l),e.applyData(t,l)}function uu(e,t){let n={type:`element`,tagName:`h`+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function du(e,t){if(e.options.allowDangerousHtml){let n={type:`raw`,value:t.value};return e.patch(t,n),e.applyData(t,n)}}function fu(e,t){let n=t.referenceType,r=`]`;if(n===`collapsed`?r+=`[]`:n===`full`&&(r+=`[`+(t.label||t.identifier)+`]`),t.type===`imageReference`)return[{type:`text`,value:`![`+t.alt+r}];let i=e.all(t),a=i[0];a&&a.type===`text`?a.value=`[`+a.value:i.unshift({type:`text`,value:`[`});let o=i[i.length-1];return o&&o.type===`text`?o.value+=r:i.push({type:`text`,value:r}),i}function pu(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return fu(e,t);let i={src:As(r.url||``),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`img`,properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function mu(e,t){let n={src:As(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`img`,properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function hu(e,t){let n={type:`text`,value:t.value.replace(/\r?\n|\r/g,` `)};e.patch(t,n);let r={type:`element`,tagName:`code`,properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function gu(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return fu(e,t);let i={href:As(r.url||``)};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`a`,properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function _u(e,t){let n={href:As(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`a`,properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function vu(e,t,n){let r=e.all(t),i=n?yu(n):bu(t),a={},o=[];if(typeof t.checked==`boolean`){let e=r[0],n;e&&e.type===`element`&&e.tagName===`p`?n=e:(n={type:`element`,tagName:`p`,properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:`text`,value:` `}),n.children.unshift({type:`element`,tagName:`input`,properties:{type:`checkbox`,checked:t.checked,disabled:!0},children:[]}),a.className=[`task-list-item`]}let s=-1;for(;++s1}function bu(e,t){let n={},r=e.all(t),i=-1;for(typeof t.start==`number`&&t.start!==1&&(n.start=t.start);++i0){let r={type:`element`,tagName:`tbody`,properties:{},children:e.wrap(n,!0)},a=vo(t.children[1]),o=_o(t.children[t.children.length-1]);a&&o&&(r.position={start:a,end:o}),i.push(r)}let a={type:`element`,tagName:`table`,properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function Tu(e,t,n){let r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?`th`:`td`,a=n&&n.type===`table`?n.align:void 0,o=a?a.length:t.children.length,s=-1,c=[];for(;++s0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(Au(t.slice(i),i>0,!1)),a.join(``)}function Au(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;t===Du||t===Ou;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;t===Du||t===Ou;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):``}function ju(e,t){let n={type:`text`,value:ku(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Mu(e,t){let n={type:`element`,tagName:`hr`,properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}var Nu={blockquote:ru,break:iu,code:au,delete:ou,emphasis:su,footnoteReference:cu,heading:lu,html:uu,imageReference:fu,image:pu,inlineCode:mu,linkReference:hu,link:gu,listItem:_u,list:bu,paragraph:xu,root:Su,strong:Cu,table:wu,tableCell:Eu,tableRow:Tu,text:ju,thematicBreak:Mu,toml:Pu,yaml:Pu,definition:Pu,footnoteDefinition:Pu};function Pu(){}var{defineProperty:Fu}=Object,Iu=typeof self==`object`?self:globalThis,Lu=(e,t)=>{switch(e){case`Function`:case`SharedWorker`:case`Worker`:case`eval`:case`setInterval`:case`setTimeout`:throw TypeError(`unable to deserialize `+e)}return new Iu[e](t)},Ru=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o){let i=r(t),a=r(n);i===`__proto__`?Fu(e,i,{value:a,configurable:!0,enumerable:!0,writable:!0}):e[i]=a}return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(typeof Iu[e]==`function`?Lu(e,t):Error(t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}case`-0`:return-0}return n(Lu(a,o),i)};return r},zu=e=>Ru(new Map,e)(0),Bu=``,{toString:Vu}={},{keys:Hu,is:Uu}=Object,Wu=e=>{let t=typeof e;if(t!==`object`||!e)return[0,t];let n=Vu.call(e).slice(8,-1);switch(n){case`Array`:return[1,Bu];case`Object`:return[2,Bu];case`Date`:return[3,Bu];case`RegExp`:return[4,Bu];case`Map`:return[5,Bu];case`Set`:return[6,Bu];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:e instanceof Error?[7,e.name||`Error`]:[2,n]},Gu=([e,t])=>e===0&&(t===`function`||t===`symbol`),Ku=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=o=>{if(n.has(o))return n.get(o);let[s,c]=Wu(o);switch(s){case 0:{let t=o;switch(c){case`bigint`:s=8,t=o.toString();break;case`number`:if(!o&&Uu(o,-0))return r.push([`-0`])-1;break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize `+c);t=null;break;case`undefined`:return i([-1],o)}return i([s,t],o)}case 1:{if(c){let e=o;return c===`DataView`?e=new Uint8Array(o.buffer):c===`ArrayBuffer`&&(e=new Uint8Array(o)),i([c,[...e]],o)}let e=[],t=i([s,e],o);for(let t of o)e.push(a(t));return t}case 2:{if(c)switch(c){case`BigInt`:return i([c,o.toString()],o);case`Boolean`:case`Number`:case`String`:return i([c,o.valueOf()],o)}if(t&&`toJSON`in o)return a(o.toJSON());let n=[],r=i([s,n],o);for(let t of Hu(o))(e||!Gu(Wu(o[t])))&&n.push([a(t),a(o[t])]);return r}case 3:return i([s,isNaN(o.getTime())?Bu:o.toISOString()],o);case 4:{let{source:e,flags:t}=o;return i([s,{source:e,flags:t}],o)}case 5:{let t=[],n=i([s,t],o);for(let[n,r]of o)(e||!(Gu(Wu(n))||Gu(Wu(r))))&&t.push([a(n),a(r)]);return n}case 6:{let t=[],n=i([s,t],o);for(let n of o)(e||!Gu(Wu(n)))&&t.push(a(n));return n}}let{message:l}=o;return i([s,{name:c,message:l}],o)};return a},qu=(e,{json:t,lossy:n}={})=>{let r=[];return Ku(!(t||n),!!t,new Map,r)(e),r},Ju=typeof structuredClone==`function`?(e,t)=>t&&(`json`in t||`lossy`in t)?zu(qu(e,t)):structuredClone(e):(e,t)=>zu(qu(e,t));function Yu(e,t){let n=[{type:`text`,value:`↩`}];return t>1&&n.push({type:`element`,tagName:`sup`,properties:{},children:[{type:`text`,value:String(t)}]}),n}function Xu(e,t){return`Back to reference `+(e+1)+(t>1?`-`+t:``)}function Zu(e){let t=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,n=e.options.footnoteBackContent||Yu,r=e.options.footnoteBackLabel||Xu,i=e.options.footnoteLabel||`Footnotes`,a=e.options.footnoteLabelTagName||`h2`,o=e.options.footnoteLabelProperties||{className:[`sr-only`]},s=[],c=-1;for(;++c0&&d.push({type:`text`,value:` `});let e=typeof n==`string`?n:n(c,u);typeof e==`string`&&(e={type:`text`,value:e}),d.push({type:`element`,tagName:`a`,properties:{href:`#`+t+`fnref-`+l+(u>1?`-`+u:``),dataFootnoteBackref:``,ariaLabel:typeof r==`string`?r:r(c,u),className:[`data-footnote-backref`]},children:Array.isArray(e)?e:[e]})}let p=a[a.length-1];if(p&&p.type===`element`&&p.tagName===`p`){let e=p.children[p.children.length-1];e&&e.type===`text`?e.value+=` `:p.children.push({type:`text`,value:` `}),p.children.push(...d)}else a.push(...d);let m={type:`element`,tagName:`li`,properties:{id:t+`fn-`+l},children:e.wrap(a,!0)};e.patch(i,m),s.push(m)}if(s.length!==0)return{type:`element`,tagName:`section`,properties:{dataFootnotes:!0,className:[`footnotes`]},children:[{type:`element`,tagName:a,properties:{...Ju(o),id:`footnote-label`},children:[{type:`text`,value:i}]},{type:`text`,value:` +`});let l={type:`element`,tagName:`li`,properties:a,children:o};return e.patch(t,l),e.applyData(t,l)}function yu(e){let t=!1;if(e.type===`list`){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r1}function xu(e,t){let n={},r=e.all(t),i=-1;for(typeof t.start==`number`&&t.start!==1&&(n.start=t.start);++i0){let r={type:`element`,tagName:`tbody`,properties:{},children:e.wrap(n,!0)},a=yo(t.children[1]),o=vo(t.children[t.children.length-1]);a&&o&&(r.position={start:a,end:o}),i.push(r)}let a={type:`element`,tagName:`table`,properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function Eu(e,t,n){let r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?`th`:`td`,a=n&&n.type===`table`?n.align:void 0,o=a?a.length:t.children.length,s=-1,c=[];for(;++s0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(ju(t.slice(i),i>0,!1)),a.join(``)}function ju(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;t===Ou||t===ku;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;t===Ou||t===ku;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):``}function Mu(e,t){let n={type:`text`,value:Au(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Nu(e,t){let n={type:`element`,tagName:`hr`,properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}var Pu={blockquote:iu,break:au,code:ou,delete:su,emphasis:cu,footnoteReference:lu,heading:uu,html:du,imageReference:pu,image:mu,inlineCode:hu,linkReference:gu,link:_u,listItem:vu,list:xu,paragraph:Su,root:Cu,strong:wu,table:Tu,tableCell:Du,tableRow:Eu,text:Mu,thematicBreak:Nu,toml:Fu,yaml:Fu,definition:Fu,footnoteDefinition:Fu};function Fu(){}var{defineProperty:Iu}=Object,Lu=typeof self==`object`?self:globalThis,Ru=(e,t)=>{switch(e){case`Function`:case`SharedWorker`:case`Worker`:case`eval`:case`setInterval`:case`setTimeout`:throw TypeError(`unable to deserialize `+e)}return new Lu[e](t)},zu=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o){let i=r(t),a=r(n);i===`__proto__`?Iu(e,i,{value:a,configurable:!0,enumerable:!0,writable:!0}):e[i]=a}return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(typeof Lu[e]==`function`?Ru(e,t):Error(t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}case`-0`:return-0}return n(Ru(a,o),i)};return r},Bu=e=>zu(new Map,e)(0),Vu=``,{toString:Hu}={},{keys:Uu,is:Wu}=Object,Gu=e=>{let t=typeof e;if(t!==`object`||!e)return[0,t];let n=Hu.call(e).slice(8,-1);switch(n){case`Array`:return[1,Vu];case`Object`:return[2,Vu];case`Date`:return[3,Vu];case`RegExp`:return[4,Vu];case`Map`:return[5,Vu];case`Set`:return[6,Vu];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:e instanceof Error?[7,e.name||`Error`]:[2,n]},Ku=([e,t])=>e===0&&(t===`function`||t===`symbol`),qu=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=o=>{if(n.has(o))return n.get(o);let[s,c]=Gu(o);switch(s){case 0:{let t=o;switch(c){case`bigint`:s=8,t=o.toString();break;case`number`:if(!o&&Wu(o,-0))return r.push([`-0`])-1;break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize `+c);t=null;break;case`undefined`:return i([-1],o)}return i([s,t],o)}case 1:{if(c){let e=o;return c===`DataView`?e=new Uint8Array(o.buffer):c===`ArrayBuffer`&&(e=new Uint8Array(o)),i([c,[...e]],o)}let e=[],t=i([s,e],o);for(let t of o)e.push(a(t));return t}case 2:{if(c)switch(c){case`BigInt`:return i([c,o.toString()],o);case`Boolean`:case`Number`:case`String`:return i([c,o.valueOf()],o)}if(t&&`toJSON`in o)return a(o.toJSON());let n=[],r=i([s,n],o);for(let t of Uu(o))(e||!Ku(Gu(o[t])))&&n.push([a(t),a(o[t])]);return r}case 3:return i([s,isNaN(o.getTime())?Vu:o.toISOString()],o);case 4:{let{source:e,flags:t}=o;return i([s,{source:e,flags:t}],o)}case 5:{let t=[],n=i([s,t],o);for(let[n,r]of o)(e||!(Ku(Gu(n))||Ku(Gu(r))))&&t.push([a(n),a(r)]);return n}case 6:{let t=[],n=i([s,t],o);for(let n of o)(e||!Ku(Gu(n)))&&t.push(a(n));return n}}let{message:l}=o;return i([s,{name:c,message:l}],o)};return a},Ju=(e,{json:t,lossy:n}={})=>{let r=[];return qu(!(t||n),!!t,new Map,r)(e),r},Yu=typeof structuredClone==`function`?(e,t)=>t&&(`json`in t||`lossy`in t)?Bu(Ju(e,t)):structuredClone(e):(e,t)=>Bu(Ju(e,t));function Xu(e,t){let n=[{type:`text`,value:`↩`}];return t>1&&n.push({type:`element`,tagName:`sup`,properties:{},children:[{type:`text`,value:String(t)}]}),n}function Zu(e,t){return`Back to reference `+(e+1)+(t>1?`-`+t:``)}function Qu(e){let t=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,n=e.options.footnoteBackContent||Xu,r=e.options.footnoteBackLabel||Zu,i=e.options.footnoteLabel||`Footnotes`,a=e.options.footnoteLabelTagName||`h2`,o=e.options.footnoteLabelProperties||{className:[`sr-only`]},s=[],c=-1;for(;++c0&&d.push({type:`text`,value:` `});let e=typeof n==`string`?n:n(c,u);typeof e==`string`&&(e={type:`text`,value:e}),d.push({type:`element`,tagName:`a`,properties:{href:`#`+t+`fnref-`+l+(u>1?`-`+u:``),dataFootnoteBackref:``,ariaLabel:typeof r==`string`?r:r(c,u),className:[`data-footnote-backref`]},children:Array.isArray(e)?e:[e]})}let p=a[a.length-1];if(p&&p.type===`element`&&p.tagName===`p`){let e=p.children[p.children.length-1];e&&e.type===`text`?e.value+=` `:p.children.push({type:`text`,value:` `}),p.children.push(...d)}else a.push(...d);let m={type:`element`,tagName:`li`,properties:{id:t+`fn-`+l},children:e.wrap(a,!0)};e.patch(i,m),s.push(m)}if(s.length!==0)return{type:`element`,tagName:`section`,properties:{dataFootnotes:!0,className:[`footnotes`]},children:[{type:`element`,tagName:a,properties:{...Yu(o),id:`footnote-label`},children:[{type:`text`,value:i}]},{type:`text`,value:` `},{type:`element`,tagName:`ol`,properties:{},children:e.wrap(s,!0)},{type:`text`,value:` -`}]}}var Qu=(function(e){if(e==null)return rd;if(typeof e==`function`)return nd(e);if(typeof e==`object`)return Array.isArray(e)?$u(e):ed(e);if(typeof e==`string`)return td(e);throw Error(`Expected function, string, or object as test`)});function $u(e){let t=[],n=-1;for(;++n`:``))+`)`})}return u;function u(){let l=od,u,d,f;if((!t||a(e,i,c[c.length-1]||void 0))&&(l=cd(n(e,c)),l[0]===!1))return l;if(`children`in e&&e.children){let t=e;if(t.children&&l[0]!==`skip`)for(d=(r?t.children.length:-1)+o,f=c.concat(t);d>-1&&d`:``))+`)`})}return u;function u(){let l=sd,u,d,f;if((!t||a(e,i,c[c.length-1]||void 0))&&(l=ld(n(e,c)),l[0]===!1))return l;if(`children`in e&&e.children){let t=e;if(t.children&&l[0]!==`skip`)for(d=(r?t.children.length:-1)+o,f=c.concat(t);d>-1&&d0&&n.push({type:`text`,value:` -`}),n}function _d(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function vd(e,t){let n=fd(e,t),r=n.one(e,void 0),i=Zu(n),a=Array.isArray(r)?{type:`root`,children:r}:r||{type:`root`,children:[]};return i&&(`children`in a,a.children.push({type:`text`,value:` -`},i)),a}function yd(e,t){return e&&`run`in e?async function(n,r){let i=vd(n,{file:r,...t});await e.run(i,r)}:function(n,r){return vd(n,{file:r,...e||t})}}function bd(e){if(e)throw e}var xd=n(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});ft.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}var Td={basename:Ed,dirname:Dd,extname:Od,join:kd,sep:`/`};function Ed(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);Md(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function Dd(e){if(Md(e),e.length===0)return`.`;let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||=!0;return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function Od(e){Md(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function kd(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function jd(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function Md(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var Nd={cwd:Pd};function Pd(){return`/`}function Fd(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function Id(e){if(typeof e==`string`)e=new URL(e);else if(!Fd(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code=`ERR_INVALID_ARG_TYPE`,t}if(e.protocol!==`file:`){let e=TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return Ld(e)}function Ld(e){if(e.hostname!==``){let e=TypeError(`File URL host must be "localhost" or empty on darwin`);throw e.code=`ERR_INVALID_FILE_URL_HOST`,e}let t=e.pathname,n=-1;for(;++n0){let[r,...a]=t,o=n[i][1];Sd(o)&&Sd(r)&&(r=(0,Gd.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function Jd(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function Yd(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function Xd(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Zd(e){if(!Sd(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function Qd(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function $d(e){return ef(e)?e:new zd(e)}function ef(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function tf(e){return typeof e==`string`||nf(e)}function nf(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var rf=[],af={allowDangerousHtml:!0},of=/^(https?|ircs?|mailto|xmpp)$/i,sf=[{from:`astPlugins`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowDangerousHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowNode`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowElement`},{from:`allowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowedElements`},{from:`className`,id:`remove-classname`},{from:`disallowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`disallowedElements`},{from:`escapeHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`includeElementIndex`,id:`#remove-includeelementindex`},{from:`includeNodeIndex`,id:`change-includenodeindex-to-includeelementindex`},{from:`linkTarget`,id:`remove-linktarget`},{from:`plugins`,id:`change-plugins-to-remarkplugins`,to:`remarkPlugins`},{from:`rawSourcePos`,id:`#remove-rawsourcepos`},{from:`renderers`,id:`change-renderers-to-components`,to:`components`},{from:`source`,id:`change-source-to-children`,to:`children`},{from:`sourcePos`,id:`#remove-sourcepos`},{from:`transformImageUri`,id:`#add-urltransform`,to:`urlTransform`},{from:`transformLinkUri`,id:`#add-urltransform`,to:`urlTransform`}];function cf(e){let t=lf(e),n=uf(e);return df(t.runSync(t.parse(n),n),e)}function lf(e){let t=e.rehypePlugins||rf,n=e.remarkPlugins||rf,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...af}:af;return qd().use(nu).use(n).use(yd,r).use(t)}function uf(e){let t=e.children||``,n=new zd;return typeof t==`string`?n.value=t:``+t,n}function df(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||ff;for(let e of sf)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return ld(e,l),Mo(e,{Fragment:W.Fragment,components:i,ignoreInvalidStyle:!0,jsx:W.jsx,jsxs:W.jsxs,passKeys:!0,passNode:!0});function l(e,t,i){if(e.type===`raw`&&i&&typeof t==`number`)return o?i.children.splice(t,1):i.children[t]={type:`text`,value:e.value},t;if(e.type===`element`){let t;for(t in es)if(Object.hasOwn(es,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=es[t];(r===null||r.includes(e.tagName))&&(e.properties[t]=c(String(n||``),t,e))}}if(e.type===`element`){let o=n?!n.includes(e.tagName):a?a.includes(e.tagName):!1;if(!o&&r&&typeof t==`number`&&(o=!r(e,t,i)),o&&i&&typeof t==`number`)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}}function ff(e){let t=e.indexOf(`:`),n=e.indexOf(`?`),r=e.indexOf(`#`),i=e.indexOf(`/`);return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||of.test(e.slice(0,t))?e:``}var pf=/[#.]/g;function mf(e,t){let n=e||``,r={},i=0,a,o;for(;i-1&&e<=t.length){let r=0;for(;;){let i=n[r];if(i===void 0){let e=Ef(t,n[r-1]);i=e===-1?t.length+1:e+1,n[r]=i}if(i>e)return{line:r+1,column:e-(r>0?n[r-1]:0)+1,offset:e};r++}}}function i(e){if(e&&typeof e.line==`number`&&typeof e.column==`number`&&!Number.isNaN(e.line)&&!Number.isNaN(e.column)){for(;n.length1?n[e.line-2]:0)+e.column-1;if(r=55296&&e<=57343}function rp(e){return e>=56320&&e<=57343}function ip(e,t){return(e-55296)*1024+9216+t}function ap(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function op(e){return e>=64976&&e<=65007||ep.has(e)}var q;(function(e){e.controlCharacterInInputStream=`control-character-in-input-stream`,e.noncharacterInInputStream=`noncharacter-in-input-stream`,e.surrogateInInputStream=`surrogate-in-input-stream`,e.nonVoidHtmlElementStartTagWithTrailingSolidus=`non-void-html-element-start-tag-with-trailing-solidus`,e.endTagWithAttributes=`end-tag-with-attributes`,e.endTagWithTrailingSolidus=`end-tag-with-trailing-solidus`,e.unexpectedSolidusInTag=`unexpected-solidus-in-tag`,e.unexpectedNullCharacter=`unexpected-null-character`,e.unexpectedQuestionMarkInsteadOfTagName=`unexpected-question-mark-instead-of-tag-name`,e.invalidFirstCharacterOfTagName=`invalid-first-character-of-tag-name`,e.unexpectedEqualsSignBeforeAttributeName=`unexpected-equals-sign-before-attribute-name`,e.missingEndTagName=`missing-end-tag-name`,e.unexpectedCharacterInAttributeName=`unexpected-character-in-attribute-name`,e.unknownNamedCharacterReference=`unknown-named-character-reference`,e.missingSemicolonAfterCharacterReference=`missing-semicolon-after-character-reference`,e.unexpectedCharacterAfterDoctypeSystemIdentifier=`unexpected-character-after-doctype-system-identifier`,e.unexpectedCharacterInUnquotedAttributeValue=`unexpected-character-in-unquoted-attribute-value`,e.eofBeforeTagName=`eof-before-tag-name`,e.eofInTag=`eof-in-tag`,e.missingAttributeValue=`missing-attribute-value`,e.missingWhitespaceBetweenAttributes=`missing-whitespace-between-attributes`,e.missingWhitespaceAfterDoctypePublicKeyword=`missing-whitespace-after-doctype-public-keyword`,e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers=`missing-whitespace-between-doctype-public-and-system-identifiers`,e.missingWhitespaceAfterDoctypeSystemKeyword=`missing-whitespace-after-doctype-system-keyword`,e.missingQuoteBeforeDoctypePublicIdentifier=`missing-quote-before-doctype-public-identifier`,e.missingQuoteBeforeDoctypeSystemIdentifier=`missing-quote-before-doctype-system-identifier`,e.missingDoctypePublicIdentifier=`missing-doctype-public-identifier`,e.missingDoctypeSystemIdentifier=`missing-doctype-system-identifier`,e.abruptDoctypePublicIdentifier=`abrupt-doctype-public-identifier`,e.abruptDoctypeSystemIdentifier=`abrupt-doctype-system-identifier`,e.cdataInHtmlContent=`cdata-in-html-content`,e.incorrectlyOpenedComment=`incorrectly-opened-comment`,e.eofInScriptHtmlCommentLikeText=`eof-in-script-html-comment-like-text`,e.eofInDoctype=`eof-in-doctype`,e.nestedComment=`nested-comment`,e.abruptClosingOfEmptyComment=`abrupt-closing-of-empty-comment`,e.eofInComment=`eof-in-comment`,e.incorrectlyClosedComment=`incorrectly-closed-comment`,e.eofInCdata=`eof-in-cdata`,e.absenceOfDigitsInNumericCharacterReference=`absence-of-digits-in-numeric-character-reference`,e.nullCharacterReference=`null-character-reference`,e.surrogateCharacterReference=`surrogate-character-reference`,e.characterReferenceOutsideUnicodeRange=`character-reference-outside-unicode-range`,e.controlCharacterReference=`control-character-reference`,e.noncharacterCharacterReference=`noncharacter-character-reference`,e.missingWhitespaceBeforeDoctypeName=`missing-whitespace-before-doctype-name`,e.missingDoctypeName=`missing-doctype-name`,e.invalidCharacterSequenceAfterDoctypeName=`invalid-character-sequence-after-doctype-name`,e.duplicateAttribute=`duplicate-attribute`,e.nonConformingDoctype=`non-conforming-doctype`,e.missingDoctype=`missing-doctype`,e.misplacedDoctype=`misplaced-doctype`,e.endTagWithoutMatchingOpenElement=`end-tag-without-matching-open-element`,e.closingOfElementWithOpenChildElements=`closing-of-element-with-open-child-elements`,e.disallowedContentInNoscriptInHead=`disallowed-content-in-noscript-in-head`,e.openElementsLeftAfterEof=`open-elements-left-after-eof`,e.abandonedHeadElementChild=`abandoned-head-element-child`,e.misplacedStartTagForHeadElement=`misplaced-start-tag-for-head-element`,e.nestedNoscriptInHead=`nested-noscript-in-head`,e.eofInElementThatCanContainOnlyText=`eof-in-element-that-can-contain-only-text`})(q||={});var sp=65536,cp=class{constructor(e){this.handler=e,this.html=``,this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=sp,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,t){let{line:n,col:r,offset:i}=this,a=r+t,o=i+t;return{code:e,startLine:n,endLine:n,startCol:a,endCol:a,startOffset:o,endOffset:o}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){let t=this.html.charCodeAt(this.pos+1);if(rp(t))return this.pos++,this._addGap(),ip(e,t)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,K.EOF;return this._err(q.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let t=0;t=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,K.EOF;let n=this.html.charCodeAt(t);return n===K.CARRIAGE_RETURN?K.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,K.EOF;let e=this.html.charCodeAt(this.pos);return e===K.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,K.LINE_FEED):e===K.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,np(e)&&(e=this._processSurrogate(e)),this.handler.onParseError===null||e>31&&e<127||e===K.LINE_FEED||e===K.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){ap(e)?this._err(q.controlCharacterInInputStream):op(e)&&this._err(q.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}var dp=new Uint16Array(`ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻\xA0ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌`.split(``).map(e=>e.charCodeAt(0))),fp=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]]);String.fromCodePoint;function pp(e){return e>=55296&&e<=57343||e>1114111?65533:fp.get(e)??e}var mp;(function(e){e[e.NUM=35]=`NUM`,e[e.SEMI=59]=`SEMI`,e[e.EQUALS=61]=`EQUALS`,e[e.ZERO=48]=`ZERO`,e[e.NINE=57]=`NINE`,e[e.LOWER_A=97]=`LOWER_A`,e[e.LOWER_F=102]=`LOWER_F`,e[e.LOWER_X=120]=`LOWER_X`,e[e.LOWER_Z=122]=`LOWER_Z`,e[e.UPPER_A=65]=`UPPER_A`,e[e.UPPER_F=70]=`UPPER_F`,e[e.UPPER_Z=90]=`UPPER_Z`})(mp||={});var hp=32,gp;(function(e){e[e.VALUE_LENGTH=49152]=`VALUE_LENGTH`,e[e.BRANCH_LENGTH=16256]=`BRANCH_LENGTH`,e[e.JUMP_TABLE=127]=`JUMP_TABLE`})(gp||={});function _p(e){return e>=mp.ZERO&&e<=mp.NINE}function vp(e){return e>=mp.UPPER_A&&e<=mp.UPPER_F||e>=mp.LOWER_A&&e<=mp.LOWER_F}function yp(e){return e>=mp.UPPER_A&&e<=mp.UPPER_Z||e>=mp.LOWER_A&&e<=mp.LOWER_Z||_p(e)}function bp(e){return e===mp.EQUALS||yp(e)}var xp;(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`})(xp||={});var Sp;(function(e){e[e.Legacy=0]=`Legacy`,e[e.Strict=1]=`Strict`,e[e.Attribute=2]=`Attribute`})(Sp||={});var Cp=class{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=xp.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Sp.Strict}startEntity(e){this.decodeMode=e,this.state=xp.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case xp.EntityStart:return e.charCodeAt(t)===mp.NUM?(this.state=xp.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=xp.NamedEntity,this.stateNamedEntity(e,t));case xp.NumericStart:return this.stateNumericStart(e,t);case xp.NumericDecimal:return this.stateNumericDecimal(e,t);case xp.NumericHex:return this.stateNumericHex(e,t);case xp.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|hp)===mp.LOWER_X?(this.state=xp.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=xp.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){let i=n-t;this.result=this.result*r**+i+Number.parseInt(e.substr(t,i),r),this.consumed+=i}}stateNumericHex(e,t){let n=t;for(;t>14;for(;t>14,i!==0){if(a===mp.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==Sp.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:n}=this,r=(n[t]&gp.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),(e=this.errors)==null||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){let{decodeTree:r}=this;return this.emitCodePoint(t===1?r[e]&~gp.VALUE_LENGTH:r[e+1],n),t===3&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case xp.NamedEntity:return this.result!==0&&(this.decodeMode!==Sp.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case xp.NumericDecimal:return this.emitNumericEntity(0,2);case xp.NumericHex:return this.emitNumericEntity(0,3);case xp.NumericStart:return(e=this.errors)==null||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case xp.EntityStart:return 0}}};function wp(e,t,n,r){let i=(t&gp.BRANCH_LENGTH)>>7,a=t&gp.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){let t=r-a;return t<0||t>=i?-1:e[n+t]-1}let o=n,s=o+i-1;for(;o<=s;){let t=o+s>>>1,n=e[t];if(nr)s=t-1;else return e[t+i]}return-1}var J;(function(e){e.HTML=`http://www.w3.org/1999/xhtml`,e.MATHML=`http://www.w3.org/1998/Math/MathML`,e.SVG=`http://www.w3.org/2000/svg`,e.XLINK=`http://www.w3.org/1999/xlink`,e.XML=`http://www.w3.org/XML/1998/namespace`,e.XMLNS=`http://www.w3.org/2000/xmlns/`})(J||={});var Tp;(function(e){e.TYPE=`type`,e.ACTION=`action`,e.ENCODING=`encoding`,e.PROMPT=`prompt`,e.NAME=`name`,e.COLOR=`color`,e.FACE=`face`,e.SIZE=`size`})(Tp||={});var Ep;(function(e){e.NO_QUIRKS=`no-quirks`,e.QUIRKS=`quirks`,e.LIMITED_QUIRKS=`limited-quirks`})(Ep||={});var Y;(function(e){e.A=`a`,e.ADDRESS=`address`,e.ANNOTATION_XML=`annotation-xml`,e.APPLET=`applet`,e.AREA=`area`,e.ARTICLE=`article`,e.ASIDE=`aside`,e.B=`b`,e.BASE=`base`,e.BASEFONT=`basefont`,e.BGSOUND=`bgsound`,e.BIG=`big`,e.BLOCKQUOTE=`blockquote`,e.BODY=`body`,e.BR=`br`,e.BUTTON=`button`,e.CAPTION=`caption`,e.CENTER=`center`,e.CODE=`code`,e.COL=`col`,e.COLGROUP=`colgroup`,e.DD=`dd`,e.DESC=`desc`,e.DETAILS=`details`,e.DIALOG=`dialog`,e.DIR=`dir`,e.DIV=`div`,e.DL=`dl`,e.DT=`dt`,e.EM=`em`,e.EMBED=`embed`,e.FIELDSET=`fieldset`,e.FIGCAPTION=`figcaption`,e.FIGURE=`figure`,e.FONT=`font`,e.FOOTER=`footer`,e.FOREIGN_OBJECT=`foreignObject`,e.FORM=`form`,e.FRAME=`frame`,e.FRAMESET=`frameset`,e.H1=`h1`,e.H2=`h2`,e.H3=`h3`,e.H4=`h4`,e.H5=`h5`,e.H6=`h6`,e.HEAD=`head`,e.HEADER=`header`,e.HGROUP=`hgroup`,e.HR=`hr`,e.HTML=`html`,e.I=`i`,e.IMG=`img`,e.IMAGE=`image`,e.INPUT=`input`,e.IFRAME=`iframe`,e.KEYGEN=`keygen`,e.LABEL=`label`,e.LI=`li`,e.LINK=`link`,e.LISTING=`listing`,e.MAIN=`main`,e.MALIGNMARK=`malignmark`,e.MARQUEE=`marquee`,e.MATH=`math`,e.MENU=`menu`,e.META=`meta`,e.MGLYPH=`mglyph`,e.MI=`mi`,e.MO=`mo`,e.MN=`mn`,e.MS=`ms`,e.MTEXT=`mtext`,e.NAV=`nav`,e.NOBR=`nobr`,e.NOFRAMES=`noframes`,e.NOEMBED=`noembed`,e.NOSCRIPT=`noscript`,e.OBJECT=`object`,e.OL=`ol`,e.OPTGROUP=`optgroup`,e.OPTION=`option`,e.P=`p`,e.PARAM=`param`,e.PLAINTEXT=`plaintext`,e.PRE=`pre`,e.RB=`rb`,e.RP=`rp`,e.RT=`rt`,e.RTC=`rtc`,e.RUBY=`ruby`,e.S=`s`,e.SCRIPT=`script`,e.SEARCH=`search`,e.SECTION=`section`,e.SELECT=`select`,e.SOURCE=`source`,e.SMALL=`small`,e.SPAN=`span`,e.STRIKE=`strike`,e.STRONG=`strong`,e.STYLE=`style`,e.SUB=`sub`,e.SUMMARY=`summary`,e.SUP=`sup`,e.TABLE=`table`,e.TBODY=`tbody`,e.TEMPLATE=`template`,e.TEXTAREA=`textarea`,e.TFOOT=`tfoot`,e.TD=`td`,e.TH=`th`,e.THEAD=`thead`,e.TITLE=`title`,e.TR=`tr`,e.TRACK=`track`,e.TT=`tt`,e.U=`u`,e.UL=`ul`,e.SVG=`svg`,e.VAR=`var`,e.WBR=`wbr`,e.XMP=`xmp`})(Y||={});var X;(function(e){e[e.UNKNOWN=0]=`UNKNOWN`,e[e.A=1]=`A`,e[e.ADDRESS=2]=`ADDRESS`,e[e.ANNOTATION_XML=3]=`ANNOTATION_XML`,e[e.APPLET=4]=`APPLET`,e[e.AREA=5]=`AREA`,e[e.ARTICLE=6]=`ARTICLE`,e[e.ASIDE=7]=`ASIDE`,e[e.B=8]=`B`,e[e.BASE=9]=`BASE`,e[e.BASEFONT=10]=`BASEFONT`,e[e.BGSOUND=11]=`BGSOUND`,e[e.BIG=12]=`BIG`,e[e.BLOCKQUOTE=13]=`BLOCKQUOTE`,e[e.BODY=14]=`BODY`,e[e.BR=15]=`BR`,e[e.BUTTON=16]=`BUTTON`,e[e.CAPTION=17]=`CAPTION`,e[e.CENTER=18]=`CENTER`,e[e.CODE=19]=`CODE`,e[e.COL=20]=`COL`,e[e.COLGROUP=21]=`COLGROUP`,e[e.DD=22]=`DD`,e[e.DESC=23]=`DESC`,e[e.DETAILS=24]=`DETAILS`,e[e.DIALOG=25]=`DIALOG`,e[e.DIR=26]=`DIR`,e[e.DIV=27]=`DIV`,e[e.DL=28]=`DL`,e[e.DT=29]=`DT`,e[e.EM=30]=`EM`,e[e.EMBED=31]=`EMBED`,e[e.FIELDSET=32]=`FIELDSET`,e[e.FIGCAPTION=33]=`FIGCAPTION`,e[e.FIGURE=34]=`FIGURE`,e[e.FONT=35]=`FONT`,e[e.FOOTER=36]=`FOOTER`,e[e.FOREIGN_OBJECT=37]=`FOREIGN_OBJECT`,e[e.FORM=38]=`FORM`,e[e.FRAME=39]=`FRAME`,e[e.FRAMESET=40]=`FRAMESET`,e[e.H1=41]=`H1`,e[e.H2=42]=`H2`,e[e.H3=43]=`H3`,e[e.H4=44]=`H4`,e[e.H5=45]=`H5`,e[e.H6=46]=`H6`,e[e.HEAD=47]=`HEAD`,e[e.HEADER=48]=`HEADER`,e[e.HGROUP=49]=`HGROUP`,e[e.HR=50]=`HR`,e[e.HTML=51]=`HTML`,e[e.I=52]=`I`,e[e.IMG=53]=`IMG`,e[e.IMAGE=54]=`IMAGE`,e[e.INPUT=55]=`INPUT`,e[e.IFRAME=56]=`IFRAME`,e[e.KEYGEN=57]=`KEYGEN`,e[e.LABEL=58]=`LABEL`,e[e.LI=59]=`LI`,e[e.LINK=60]=`LINK`,e[e.LISTING=61]=`LISTING`,e[e.MAIN=62]=`MAIN`,e[e.MALIGNMARK=63]=`MALIGNMARK`,e[e.MARQUEE=64]=`MARQUEE`,e[e.MATH=65]=`MATH`,e[e.MENU=66]=`MENU`,e[e.META=67]=`META`,e[e.MGLYPH=68]=`MGLYPH`,e[e.MI=69]=`MI`,e[e.MO=70]=`MO`,e[e.MN=71]=`MN`,e[e.MS=72]=`MS`,e[e.MTEXT=73]=`MTEXT`,e[e.NAV=74]=`NAV`,e[e.NOBR=75]=`NOBR`,e[e.NOFRAMES=76]=`NOFRAMES`,e[e.NOEMBED=77]=`NOEMBED`,e[e.NOSCRIPT=78]=`NOSCRIPT`,e[e.OBJECT=79]=`OBJECT`,e[e.OL=80]=`OL`,e[e.OPTGROUP=81]=`OPTGROUP`,e[e.OPTION=82]=`OPTION`,e[e.P=83]=`P`,e[e.PARAM=84]=`PARAM`,e[e.PLAINTEXT=85]=`PLAINTEXT`,e[e.PRE=86]=`PRE`,e[e.RB=87]=`RB`,e[e.RP=88]=`RP`,e[e.RT=89]=`RT`,e[e.RTC=90]=`RTC`,e[e.RUBY=91]=`RUBY`,e[e.S=92]=`S`,e[e.SCRIPT=93]=`SCRIPT`,e[e.SEARCH=94]=`SEARCH`,e[e.SECTION=95]=`SECTION`,e[e.SELECT=96]=`SELECT`,e[e.SOURCE=97]=`SOURCE`,e[e.SMALL=98]=`SMALL`,e[e.SPAN=99]=`SPAN`,e[e.STRIKE=100]=`STRIKE`,e[e.STRONG=101]=`STRONG`,e[e.STYLE=102]=`STYLE`,e[e.SUB=103]=`SUB`,e[e.SUMMARY=104]=`SUMMARY`,e[e.SUP=105]=`SUP`,e[e.TABLE=106]=`TABLE`,e[e.TBODY=107]=`TBODY`,e[e.TEMPLATE=108]=`TEMPLATE`,e[e.TEXTAREA=109]=`TEXTAREA`,e[e.TFOOT=110]=`TFOOT`,e[e.TD=111]=`TD`,e[e.TH=112]=`TH`,e[e.THEAD=113]=`THEAD`,e[e.TITLE=114]=`TITLE`,e[e.TR=115]=`TR`,e[e.TRACK=116]=`TRACK`,e[e.TT=117]=`TT`,e[e.U=118]=`U`,e[e.UL=119]=`UL`,e[e.SVG=120]=`SVG`,e[e.VAR=121]=`VAR`,e[e.WBR=122]=`WBR`,e[e.XMP=123]=`XMP`})(X||={});var Dp=new Map([[Y.A,X.A],[Y.ADDRESS,X.ADDRESS],[Y.ANNOTATION_XML,X.ANNOTATION_XML],[Y.APPLET,X.APPLET],[Y.AREA,X.AREA],[Y.ARTICLE,X.ARTICLE],[Y.ASIDE,X.ASIDE],[Y.B,X.B],[Y.BASE,X.BASE],[Y.BASEFONT,X.BASEFONT],[Y.BGSOUND,X.BGSOUND],[Y.BIG,X.BIG],[Y.BLOCKQUOTE,X.BLOCKQUOTE],[Y.BODY,X.BODY],[Y.BR,X.BR],[Y.BUTTON,X.BUTTON],[Y.CAPTION,X.CAPTION],[Y.CENTER,X.CENTER],[Y.CODE,X.CODE],[Y.COL,X.COL],[Y.COLGROUP,X.COLGROUP],[Y.DD,X.DD],[Y.DESC,X.DESC],[Y.DETAILS,X.DETAILS],[Y.DIALOG,X.DIALOG],[Y.DIR,X.DIR],[Y.DIV,X.DIV],[Y.DL,X.DL],[Y.DT,X.DT],[Y.EM,X.EM],[Y.EMBED,X.EMBED],[Y.FIELDSET,X.FIELDSET],[Y.FIGCAPTION,X.FIGCAPTION],[Y.FIGURE,X.FIGURE],[Y.FONT,X.FONT],[Y.FOOTER,X.FOOTER],[Y.FOREIGN_OBJECT,X.FOREIGN_OBJECT],[Y.FORM,X.FORM],[Y.FRAME,X.FRAME],[Y.FRAMESET,X.FRAMESET],[Y.H1,X.H1],[Y.H2,X.H2],[Y.H3,X.H3],[Y.H4,X.H4],[Y.H5,X.H5],[Y.H6,X.H6],[Y.HEAD,X.HEAD],[Y.HEADER,X.HEADER],[Y.HGROUP,X.HGROUP],[Y.HR,X.HR],[Y.HTML,X.HTML],[Y.I,X.I],[Y.IMG,X.IMG],[Y.IMAGE,X.IMAGE],[Y.INPUT,X.INPUT],[Y.IFRAME,X.IFRAME],[Y.KEYGEN,X.KEYGEN],[Y.LABEL,X.LABEL],[Y.LI,X.LI],[Y.LINK,X.LINK],[Y.LISTING,X.LISTING],[Y.MAIN,X.MAIN],[Y.MALIGNMARK,X.MALIGNMARK],[Y.MARQUEE,X.MARQUEE],[Y.MATH,X.MATH],[Y.MENU,X.MENU],[Y.META,X.META],[Y.MGLYPH,X.MGLYPH],[Y.MI,X.MI],[Y.MO,X.MO],[Y.MN,X.MN],[Y.MS,X.MS],[Y.MTEXT,X.MTEXT],[Y.NAV,X.NAV],[Y.NOBR,X.NOBR],[Y.NOFRAMES,X.NOFRAMES],[Y.NOEMBED,X.NOEMBED],[Y.NOSCRIPT,X.NOSCRIPT],[Y.OBJECT,X.OBJECT],[Y.OL,X.OL],[Y.OPTGROUP,X.OPTGROUP],[Y.OPTION,X.OPTION],[Y.P,X.P],[Y.PARAM,X.PARAM],[Y.PLAINTEXT,X.PLAINTEXT],[Y.PRE,X.PRE],[Y.RB,X.RB],[Y.RP,X.RP],[Y.RT,X.RT],[Y.RTC,X.RTC],[Y.RUBY,X.RUBY],[Y.S,X.S],[Y.SCRIPT,X.SCRIPT],[Y.SEARCH,X.SEARCH],[Y.SECTION,X.SECTION],[Y.SELECT,X.SELECT],[Y.SOURCE,X.SOURCE],[Y.SMALL,X.SMALL],[Y.SPAN,X.SPAN],[Y.STRIKE,X.STRIKE],[Y.STRONG,X.STRONG],[Y.STYLE,X.STYLE],[Y.SUB,X.SUB],[Y.SUMMARY,X.SUMMARY],[Y.SUP,X.SUP],[Y.TABLE,X.TABLE],[Y.TBODY,X.TBODY],[Y.TEMPLATE,X.TEMPLATE],[Y.TEXTAREA,X.TEXTAREA],[Y.TFOOT,X.TFOOT],[Y.TD,X.TD],[Y.TH,X.TH],[Y.THEAD,X.THEAD],[Y.TITLE,X.TITLE],[Y.TR,X.TR],[Y.TRACK,X.TRACK],[Y.TT,X.TT],[Y.U,X.U],[Y.UL,X.UL],[Y.SVG,X.SVG],[Y.VAR,X.VAR],[Y.WBR,X.WBR],[Y.XMP,X.XMP]]);function Op(e){return Dp.get(e)??X.UNKNOWN}var kp=X,Ap={[J.HTML]:new Set([kp.ADDRESS,kp.APPLET,kp.AREA,kp.ARTICLE,kp.ASIDE,kp.BASE,kp.BASEFONT,kp.BGSOUND,kp.BLOCKQUOTE,kp.BODY,kp.BR,kp.BUTTON,kp.CAPTION,kp.CENTER,kp.COL,kp.COLGROUP,kp.DD,kp.DETAILS,kp.DIR,kp.DIV,kp.DL,kp.DT,kp.EMBED,kp.FIELDSET,kp.FIGCAPTION,kp.FIGURE,kp.FOOTER,kp.FORM,kp.FRAME,kp.FRAMESET,kp.H1,kp.H2,kp.H3,kp.H4,kp.H5,kp.H6,kp.HEAD,kp.HEADER,kp.HGROUP,kp.HR,kp.HTML,kp.IFRAME,kp.IMG,kp.INPUT,kp.LI,kp.LINK,kp.LISTING,kp.MAIN,kp.MARQUEE,kp.MENU,kp.META,kp.NAV,kp.NOEMBED,kp.NOFRAMES,kp.NOSCRIPT,kp.OBJECT,kp.OL,kp.P,kp.PARAM,kp.PLAINTEXT,kp.PRE,kp.SCRIPT,kp.SECTION,kp.SELECT,kp.SOURCE,kp.STYLE,kp.SUMMARY,kp.TABLE,kp.TBODY,kp.TD,kp.TEMPLATE,kp.TEXTAREA,kp.TFOOT,kp.TH,kp.THEAD,kp.TITLE,kp.TR,kp.TRACK,kp.UL,kp.WBR,kp.XMP]),[J.MATHML]:new Set([kp.MI,kp.MO,kp.MN,kp.MS,kp.MTEXT,kp.ANNOTATION_XML]),[J.SVG]:new Set([kp.TITLE,kp.FOREIGN_OBJECT,kp.DESC]),[J.XLINK]:new Set,[J.XML]:new Set,[J.XMLNS]:new Set},jp=new Set([kp.H1,kp.H2,kp.H3,kp.H4,kp.H5,kp.H6]);Y.STYLE,Y.SCRIPT,Y.XMP,Y.IFRAME,Y.NOEMBED,Y.NOFRAMES,Y.PLAINTEXT;var Z;(function(e){e[e.DATA=0]=`DATA`,e[e.RCDATA=1]=`RCDATA`,e[e.RAWTEXT=2]=`RAWTEXT`,e[e.SCRIPT_DATA=3]=`SCRIPT_DATA`,e[e.PLAINTEXT=4]=`PLAINTEXT`,e[e.TAG_OPEN=5]=`TAG_OPEN`,e[e.END_TAG_OPEN=6]=`END_TAG_OPEN`,e[e.TAG_NAME=7]=`TAG_NAME`,e[e.RCDATA_LESS_THAN_SIGN=8]=`RCDATA_LESS_THAN_SIGN`,e[e.RCDATA_END_TAG_OPEN=9]=`RCDATA_END_TAG_OPEN`,e[e.RCDATA_END_TAG_NAME=10]=`RCDATA_END_TAG_NAME`,e[e.RAWTEXT_LESS_THAN_SIGN=11]=`RAWTEXT_LESS_THAN_SIGN`,e[e.RAWTEXT_END_TAG_OPEN=12]=`RAWTEXT_END_TAG_OPEN`,e[e.RAWTEXT_END_TAG_NAME=13]=`RAWTEXT_END_TAG_NAME`,e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]=`SCRIPT_DATA_LESS_THAN_SIGN`,e[e.SCRIPT_DATA_END_TAG_OPEN=15]=`SCRIPT_DATA_END_TAG_OPEN`,e[e.SCRIPT_DATA_END_TAG_NAME=16]=`SCRIPT_DATA_END_TAG_NAME`,e[e.SCRIPT_DATA_ESCAPE_START=17]=`SCRIPT_DATA_ESCAPE_START`,e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]=`SCRIPT_DATA_ESCAPE_START_DASH`,e[e.SCRIPT_DATA_ESCAPED=19]=`SCRIPT_DATA_ESCAPED`,e[e.SCRIPT_DATA_ESCAPED_DASH=20]=`SCRIPT_DATA_ESCAPED_DASH`,e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]=`SCRIPT_DATA_ESCAPED_DASH_DASH`,e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]=`SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN`,e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]=`SCRIPT_DATA_ESCAPED_END_TAG_OPEN`,e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]=`SCRIPT_DATA_ESCAPED_END_TAG_NAME`,e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]=`SCRIPT_DATA_DOUBLE_ESCAPE_START`,e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]=`SCRIPT_DATA_DOUBLE_ESCAPED`,e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]=`SCRIPT_DATA_DOUBLE_ESCAPED_DASH`,e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]=`SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH`,e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]=`SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN`,e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]=`SCRIPT_DATA_DOUBLE_ESCAPE_END`,e[e.BEFORE_ATTRIBUTE_NAME=31]=`BEFORE_ATTRIBUTE_NAME`,e[e.ATTRIBUTE_NAME=32]=`ATTRIBUTE_NAME`,e[e.AFTER_ATTRIBUTE_NAME=33]=`AFTER_ATTRIBUTE_NAME`,e[e.BEFORE_ATTRIBUTE_VALUE=34]=`BEFORE_ATTRIBUTE_VALUE`,e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]=`ATTRIBUTE_VALUE_DOUBLE_QUOTED`,e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]=`ATTRIBUTE_VALUE_SINGLE_QUOTED`,e[e.ATTRIBUTE_VALUE_UNQUOTED=37]=`ATTRIBUTE_VALUE_UNQUOTED`,e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]=`AFTER_ATTRIBUTE_VALUE_QUOTED`,e[e.SELF_CLOSING_START_TAG=39]=`SELF_CLOSING_START_TAG`,e[e.BOGUS_COMMENT=40]=`BOGUS_COMMENT`,e[e.MARKUP_DECLARATION_OPEN=41]=`MARKUP_DECLARATION_OPEN`,e[e.COMMENT_START=42]=`COMMENT_START`,e[e.COMMENT_START_DASH=43]=`COMMENT_START_DASH`,e[e.COMMENT=44]=`COMMENT`,e[e.COMMENT_LESS_THAN_SIGN=45]=`COMMENT_LESS_THAN_SIGN`,e[e.COMMENT_LESS_THAN_SIGN_BANG=46]=`COMMENT_LESS_THAN_SIGN_BANG`,e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]=`COMMENT_LESS_THAN_SIGN_BANG_DASH`,e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]=`COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH`,e[e.COMMENT_END_DASH=49]=`COMMENT_END_DASH`,e[e.COMMENT_END=50]=`COMMENT_END`,e[e.COMMENT_END_BANG=51]=`COMMENT_END_BANG`,e[e.DOCTYPE=52]=`DOCTYPE`,e[e.BEFORE_DOCTYPE_NAME=53]=`BEFORE_DOCTYPE_NAME`,e[e.DOCTYPE_NAME=54]=`DOCTYPE_NAME`,e[e.AFTER_DOCTYPE_NAME=55]=`AFTER_DOCTYPE_NAME`,e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]=`AFTER_DOCTYPE_PUBLIC_KEYWORD`,e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]=`BEFORE_DOCTYPE_PUBLIC_IDENTIFIER`,e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]=`DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED`,e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]=`DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED`,e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]=`AFTER_DOCTYPE_PUBLIC_IDENTIFIER`,e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]=`BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS`,e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]=`AFTER_DOCTYPE_SYSTEM_KEYWORD`,e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]=`BEFORE_DOCTYPE_SYSTEM_IDENTIFIER`,e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]=`DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED`,e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]=`DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED`,e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]=`AFTER_DOCTYPE_SYSTEM_IDENTIFIER`,e[e.BOGUS_DOCTYPE=67]=`BOGUS_DOCTYPE`,e[e.CDATA_SECTION=68]=`CDATA_SECTION`,e[e.CDATA_SECTION_BRACKET=69]=`CDATA_SECTION_BRACKET`,e[e.CDATA_SECTION_END=70]=`CDATA_SECTION_END`,e[e.CHARACTER_REFERENCE=71]=`CHARACTER_REFERENCE`,e[e.AMBIGUOUS_AMPERSAND=72]=`AMBIGUOUS_AMPERSAND`})(Z||={});var Mp={DATA:Z.DATA,RCDATA:Z.RCDATA,RAWTEXT:Z.RAWTEXT,SCRIPT_DATA:Z.SCRIPT_DATA,PLAINTEXT:Z.PLAINTEXT,CDATA_SECTION:Z.CDATA_SECTION};function Np(e){return e>=K.DIGIT_0&&e<=K.DIGIT_9}function Pp(e){return e>=K.LATIN_CAPITAL_A&&e<=K.LATIN_CAPITAL_Z}function Fp(e){return e>=K.LATIN_SMALL_A&&e<=K.LATIN_SMALL_Z}function Ip(e){return Fp(e)||Pp(e)}function Lp(e){return Ip(e)||Np(e)}function Rp(e){return e+32}function zp(e){return e===K.SPACE||e===K.LINE_FEED||e===K.TABULATION||e===K.FORM_FEED}function Bp(e){return zp(e)||e===K.SOLIDUS||e===K.GREATER_THAN_SIGN}function Vp(e){return e===K.NULL?q.nullCharacterReference:e>1114111?q.characterReferenceOutsideUnicodeRange:np(e)?q.surrogateCharacterReference:op(e)?q.noncharacterCharacterReference:ap(e)||e===K.CARRIAGE_RETURN?q.controlCharacterReference:null}var Hp=class{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName=``,this.active=!1,this.state=Z.DATA,this.returnState=Z.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:``,value:``},this.preprocessor=new cp(t),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Cp(dp,(e,t)=>{this.preprocessor.pos=this.entityStartPos+t-1,this._flushCodePointConsumedAsCharacterReference(e)},t.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(q.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:e=>{this._err(q.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+e)},validateNumericCharacterReference:e=>{let t=Vp(e);t&&this._err(t,1)}}:void 0)}_err(e,t=0){var n,r;(r=(n=this.handler).onParseError)==null||r.call(n,this.preprocessor.getError(e,t))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;let e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw Error(`Parser was already resumed`);this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||e?.())}write(e,t,n){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||n?.()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t0&&this._err(q.endTagWithAttributes),e.selfClosing&&this._err(q.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case lp.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case lp.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case lp.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){let e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:lp.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken)if(this.currentCharacterToken.type===e){this.currentCharacterToken.chars+=t;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(e,t)}_emitCodePoint(e){let t=zp(e)?lp.WHITESPACE_CHARACTER:e===K.NULL?lp.NULL_CHARACTER:lp.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(lp.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=Z.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Sp.Attribute:Sp.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===Z.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===Z.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===Z.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case Z.DATA:this._stateData(e);break;case Z.RCDATA:this._stateRcdata(e);break;case Z.RAWTEXT:this._stateRawtext(e);break;case Z.SCRIPT_DATA:this._stateScriptData(e);break;case Z.PLAINTEXT:this._statePlaintext(e);break;case Z.TAG_OPEN:this._stateTagOpen(e);break;case Z.END_TAG_OPEN:this._stateEndTagOpen(e);break;case Z.TAG_NAME:this._stateTagName(e);break;case Z.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case Z.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case Z.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case Z.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case Z.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case Z.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case Z.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case Z.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case Z.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case Z.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case Z.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case Z.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case Z.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case Z.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case Z.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case Z.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case Z.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case Z.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case Z.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case Z.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case Z.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case Z.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case Z.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case Z.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case Z.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case Z.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case Z.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case Z.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case Z.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case Z.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case Z.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case Z.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case Z.BOGUS_COMMENT:this._stateBogusComment(e);break;case Z.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case Z.COMMENT_START:this._stateCommentStart(e);break;case Z.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case Z.COMMENT:this._stateComment(e);break;case Z.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case Z.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case Z.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case Z.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case Z.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case Z.COMMENT_END:this._stateCommentEnd(e);break;case Z.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case Z.DOCTYPE:this._stateDoctype(e);break;case Z.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case Z.DOCTYPE_NAME:this._stateDoctypeName(e);break;case Z.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case Z.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case Z.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case Z.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case Z.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case Z.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case Z.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case Z.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case Z.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case Z.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case Z.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case Z.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case Z.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case Z.CDATA_SECTION:this._stateCdataSection(e);break;case Z.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case Z.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case Z.CHARACTER_REFERENCE:this._stateCharacterReference();break;case Z.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;default:throw Error(`Unknown state`)}}_stateData(e){switch(e){case K.LESS_THAN_SIGN:this.state=Z.TAG_OPEN;break;case K.AMPERSAND:this._startCharacterReference();break;case K.NULL:this._err(q.unexpectedNullCharacter),this._emitCodePoint(e);break;case K.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case K.AMPERSAND:this._startCharacterReference();break;case K.LESS_THAN_SIGN:this.state=Z.RCDATA_LESS_THAN_SIGN;break;case K.NULL:this._err(q.unexpectedNullCharacter),this._emitChars(`�`);break;case K.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case K.LESS_THAN_SIGN:this.state=Z.RAWTEXT_LESS_THAN_SIGN;break;case K.NULL:this._err(q.unexpectedNullCharacter),this._emitChars(`�`);break;case K.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case K.LESS_THAN_SIGN:this.state=Z.SCRIPT_DATA_LESS_THAN_SIGN;break;case K.NULL:this._err(q.unexpectedNullCharacter),this._emitChars(`�`);break;case K.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case K.NULL:this._err(q.unexpectedNullCharacter),this._emitChars(`�`);break;case K.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(Ip(e))this._createStartTagToken(),this.state=Z.TAG_NAME,this._stateTagName(e);else switch(e){case K.EXCLAMATION_MARK:this.state=Z.MARKUP_DECLARATION_OPEN;break;case K.SOLIDUS:this.state=Z.END_TAG_OPEN;break;case K.QUESTION_MARK:this._err(q.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=Z.BOGUS_COMMENT,this._stateBogusComment(e);break;case K.EOF:this._err(q.eofBeforeTagName),this._emitChars(`<`),this._emitEOFToken();break;default:this._err(q.invalidFirstCharacterOfTagName),this._emitChars(`<`),this.state=Z.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(Ip(e))this._createEndTagToken(),this.state=Z.TAG_NAME,this._stateTagName(e);else switch(e){case K.GREATER_THAN_SIGN:this._err(q.missingEndTagName),this.state=Z.DATA;break;case K.EOF:this._err(q.eofBeforeTagName),this._emitChars(``);break;case K.NULL:this._err(q.unexpectedNullCharacter),this.state=Z.SCRIPT_DATA_ESCAPED,this._emitChars(`�`);break;case K.EOF:this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Z.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===K.SOLIDUS?this.state=Z.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Ip(e)?(this._emitChars(`<`),this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars(`<`),this.state=Z.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){Ip(e)?(this.state=Z.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars(``);break;case K.NULL:this._err(q.unexpectedNullCharacter),this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(`�`);break;case K.EOF:this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===K.SOLIDUS?(this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars(`/`)):(this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(tp.SCRIPT,!1)&&Bp(this.preprocessor.peek(tp.SCRIPT.length))){this._emitCodePoint(e);for(let e=0;e0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){let n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&(this.current=t)}insertAfter(e,t,n){let r=this._indexOf(e)+1;this.items.splice(r,0,t),this.tagIDs.splice(r,0,n),this.stackTop++,r===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,r===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do t=this.tagIDs.lastIndexOf(e,t-1);while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==J.HTML);this.shortenToLength(Math.max(t,0))}shortenToLength(e){for(;this.stackTop>=e;){let t=this.current;this.tmplCount>0&&this._isInTemplate()&&--this.tmplCount,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop=0;n--)if(e.has(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===t)return n;return-1}clearBackTo(e,t){let n=this._indexOfTagNames(e,t);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(Qp,J.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Zp,J.HTML)}clearBackToTableRowContext(){this.clearBackTo(Xp,J.HTML)}remove(e){let t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===X.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===X.HTML}hasInDynamicScope(e,t){for(let n=this.stackTop;n>=0;n--){let r=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case J.HTML:if(r===e)return!0;if(t.has(r))return!1;break;case J.SVG:if(Yp.has(r))return!1;break;case J.MATHML:if(Jp.has(r))return!1}}return!0}hasInScope(e){return this.hasInDynamicScope(e,Gp)}hasInListItemScope(e){return this.hasInDynamicScope(e,Kp)}hasInButtonScope(e){return this.hasInDynamicScope(e,qp)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){let t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case J.HTML:if(jp.has(t))return!0;if(Gp.has(t))return!1;break;case J.SVG:if(Yp.has(t))return!1;break;case J.MATHML:if(Jp.has(t))return!1}}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===J.HTML)switch(this.tagIDs[t]){case e:return!0;case X.TABLE:case X.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===J.HTML)switch(this.tagIDs[e]){case X.TBODY:case X.THEAD:case X.TFOOT:return!0;case X.TABLE:case X.HTML:return!1}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===J.HTML)switch(this.tagIDs[t]){case e:return!0;case X.OPTION:case X.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&Up.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&Wp.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==void 0&&this.currentTagId!==e&&Wp.has(this.currentTagId);)this.pop()}},tm=3,nm;(function(e){e[e.Marker=0]=`Marker`,e[e.Element=1]=`Element`})(nm||={});var rm={type:nm.Marker},im=class{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){let n=[],r=t.length,i=this.treeAdapter.getTagName(e),a=this.treeAdapter.getNamespaceURI(e);for(let e=0;e[e.name,e.value])),i=0;for(let e=0;er.get(e.name)===e.value)&&(i+=1,i>=tm&&this.entries.splice(t.idx,1))}}insertMarker(){this.entries.unshift(rm)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:nm.Element,element:e,token:t})}insertElementAfterBookmark(e,t){let n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:nm.Element,element:e,token:t})}removeEntry(e){let t=this.entries.indexOf(e);t!==-1&&this.entries.splice(t,1)}clearToLastMarker(){let e=this.entries.indexOf(rm);e===-1?this.entries.length=0:this.entries.splice(0,e+1)}getElementEntryInScopeWithTagName(e){let t=this.entries.find(t=>t.type===nm.Marker||this.treeAdapter.getTagName(t.element)===e);return t&&t.type===nm.Element?t:null}getElementEntry(e){return this.entries.find(t=>t.type===nm.Element&&t.element===e)}},am={createDocument(){return{nodeName:`#document`,mode:Ep.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:`#document-fragment`,childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:`#comment`,data:e,parentNode:null}},createTextNode(e){return{nodeName:`#text`,value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){let r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){let i=e.childNodes.find(e=>e.nodeName===`#documentType`);if(i)i.name=t,i.publicId=n,i.systemId=r;else{let i={nodeName:`#documentType`,name:t,publicId:n,systemId:r,parentNode:null};am.appendChild(e,i)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){let t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){let n=e.childNodes[e.childNodes.length-1];if(am.isTextNode(n)){n.value+=t;return}}am.appendChild(e,am.createTextNode(t))},insertTextBefore(e,t,n){let r=e.childNodes[e.childNodes.indexOf(n)-1];r&&am.isTextNode(r)?r.value+=t:am.insertBefore(e,am.createTextNode(t),n)},adoptAttributes(e,t){let n=new Set(e.attrs.map(e=>e.name));for(let r=0;re.startsWith(t))}function hm(e){return e.name===om&&e.publicId===null&&(e.systemId===null||e.systemId===sm)}function gm(e){if(e.name!==om)return Ep.QUIRKS;let{systemId:t}=e;if(t&&t.toLowerCase()===cm)return Ep.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),dm.has(n))return Ep.QUIRKS;let e=t===null?um:lm;if(mm(n,e))return Ep.QUIRKS;if(e=t===null?fm:pm,mm(n,e))return Ep.LIMITED_QUIRKS}return Ep.NO_QUIRKS}var _m={TEXT_HTML:`text/html`,APPLICATION_XML:`application/xhtml+xml`},vm=`definitionurl`,ym=`definitionURL`,bm=new Map(`attributeName.attributeType.baseFrequency.baseProfile.calcMode.clipPathUnits.diffuseConstant.edgeMode.filterUnits.glyphRef.gradientTransform.gradientUnits.kernelMatrix.kernelUnitLength.keyPoints.keySplines.keyTimes.lengthAdjust.limitingConeAngle.markerHeight.markerUnits.markerWidth.maskContentUnits.maskUnits.numOctaves.pathLength.patternContentUnits.patternTransform.patternUnits.pointsAtX.pointsAtY.pointsAtZ.preserveAlpha.preserveAspectRatio.primitiveUnits.refX.refY.repeatCount.repeatDur.requiredExtensions.requiredFeatures.specularConstant.specularExponent.spreadMethod.startOffset.stdDeviation.stitchTiles.surfaceScale.systemLanguage.tableValues.targetX.targetY.textLength.viewBox.viewTarget.xChannelSelector.yChannelSelector.zoomAndPan`.split(`.`).map(e=>[e.toLowerCase(),e])),xm=new Map([[`xlink:actuate`,{prefix:`xlink`,name:`actuate`,namespace:J.XLINK}],[`xlink:arcrole`,{prefix:`xlink`,name:`arcrole`,namespace:J.XLINK}],[`xlink:href`,{prefix:`xlink`,name:`href`,namespace:J.XLINK}],[`xlink:role`,{prefix:`xlink`,name:`role`,namespace:J.XLINK}],[`xlink:show`,{prefix:`xlink`,name:`show`,namespace:J.XLINK}],[`xlink:title`,{prefix:`xlink`,name:`title`,namespace:J.XLINK}],[`xlink:type`,{prefix:`xlink`,name:`type`,namespace:J.XLINK}],[`xml:lang`,{prefix:`xml`,name:`lang`,namespace:J.XML}],[`xml:space`,{prefix:`xml`,name:`space`,namespace:J.XML}],[`xmlns`,{prefix:``,name:`xmlns`,namespace:J.XMLNS}],[`xmlns:xlink`,{prefix:`xmlns`,name:`xlink`,namespace:J.XMLNS}]]),Sm=new Map(`altGlyph.altGlyphDef.altGlyphItem.animateColor.animateMotion.animateTransform.clipPath.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.foreignObject.glyphRef.linearGradient.radialGradient.textPath`.split(`.`).map(e=>[e.toLowerCase(),e])),Cm=new Set([X.B,X.BIG,X.BLOCKQUOTE,X.BODY,X.BR,X.CENTER,X.CODE,X.DD,X.DIV,X.DL,X.DT,X.EM,X.EMBED,X.H1,X.H2,X.H3,X.H4,X.H5,X.H6,X.HEAD,X.HR,X.I,X.IMG,X.LI,X.LISTING,X.MENU,X.META,X.NOBR,X.OL,X.P,X.PRE,X.RUBY,X.S,X.SMALL,X.SPAN,X.STRONG,X.STRIKE,X.SUB,X.SUP,X.TABLE,X.TT,X.U,X.UL,X.VAR]);function wm(e){let t=e.tagID;return t===X.FONT&&e.attrs.some(({name:e})=>e===Tp.COLOR||e===Tp.SIZE||e===Tp.FACE)||Cm.has(t)}function Tm(e){for(let t=0;t0&&this._setContextModes(e,t)}onItemPop(e,t){var n,r;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),(r=(n=this.treeAdapter).onItemPop)==null||r.call(n,e,this.openElements.current),t){let e,t;this.openElements.stackTop===0&&this.fragmentContext?(e=this.fragmentContext,t=this.fragmentContextID):{current:e,currentTagId:t}=this.openElements,this._setContextModes(e,t)}}_setContextModes(e,t){let n=e===this.document||e&&this.treeAdapter.getNamespaceURI(e)===J.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&e!==void 0&&t!==void 0&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,J.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=Q.TEXT}switchToPlaintextParsing(){this.insertionMode=Q.TEXT,this.originalInsertionMode=Q.IN_BODY,this.tokenizer.state=Mp.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===Y.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==J.HTML))switch(this.fragmentContextID){case X.TITLE:case X.TEXTAREA:this.tokenizer.state=Mp.RCDATA;break;case X.STYLE:case X.XMP:case X.IFRAME:case X.NOEMBED:case X.NOFRAMES:case X.NOSCRIPT:this.tokenizer.state=Mp.RAWTEXT;break;case X.SCRIPT:this.tokenizer.state=Mp.SCRIPT_DATA;break;case X.PLAINTEXT:this.tokenizer.state=Mp.PLAINTEXT}}_setDocumentType(e){let t=e.name||``,n=e.publicId||``,r=e.systemId||``;if(this.treeAdapter.setDocumentType(this.document,t,n,r),e.location){let t=this.treeAdapter.getChildNodes(this.document).find(e=>this.treeAdapter.isDocumentTypeNode(e));t&&this.treeAdapter.setNodeSourceCodeLocation(t,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){let n=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{let t=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(t??this.document,e)}}_appendElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location)}_insertElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID)}_insertFakeElement(e,t){let n=this.treeAdapter.createElement(e,J.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}_insertTemplate(e){let t=this.treeAdapter.createElement(e.tagName,J.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){let e=this.treeAdapter.createElement(Y.HTML,J.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,X.HTML)}_appendCommentNode(e,t){let n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}_insertCharacters(e){let t,n;if(this._shouldFosterParentOnInsertion()?({parent:t,beforeElement:n}=this._findFosterParentingLocation(),n?this.treeAdapter.insertTextBefore(t,e.chars,n):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;let r=this.treeAdapter.getChildNodes(t),i=r[(n?r.lastIndexOf(n):r.length)-1];if(this.treeAdapter.getNodeSourceCodeLocation(i)){let{endLine:t,endCol:n,endOffset:r}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(i,{endLine:t,endCol:n,endOffset:r})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,e.location)}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){let n=t.location,r=this.treeAdapter.getTagName(e),i=t.type===lp.END_TAG&&r===t.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,i)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let t,n;return this.openElements.stackTop===0&&this.fragmentContext?(t=this.fragmentContext,n=this.fragmentContextID):{current:t,currentTagId:n}=this.openElements,e.tagID===X.SVG&&this.treeAdapter.getTagName(t)===Y.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(t)===J.MATHML?!1:this.tokenizer.inForeignNode||(e.tagID===X.MGLYPH||e.tagID===X.MALIGNMARK)&&n!==void 0&&!this._isIntegrationPoint(n,t,J.HTML)}_processToken(e){switch(e.type){case lp.CHARACTER:this.onCharacter(e);break;case lp.NULL_CHARACTER:this.onNullCharacter(e);break;case lp.COMMENT:this.onComment(e);break;case lp.DOCTYPE:this.onDoctype(e);break;case lp.START_TAG:this._processStartTag(e);break;case lp.END_TAG:this.onEndTag(e);break;case lp.EOF:this.onEof(e);break;case lp.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,n){return jm(e,this.treeAdapter.getNamespaceURI(t),this.treeAdapter.getAttrList(t),n)}_reconstructActiveFormattingElements(){let e=this.activeFormattingElements.entries.length;if(e){let t=this.activeFormattingElements.entries.findIndex(e=>e.type===nm.Marker||this.openElements.contains(e.element)),n=t===-1?e-1:t-1;for(let e=n;e>=0;e--){let t=this.activeFormattingElements.entries[e];this._insertElement(t.token,this.treeAdapter.getNamespaceURI(t.element)),t.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=Q.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(X.P),this.openElements.popUntilTagNamePopped(X.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(e===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case X.TR:this.insertionMode=Q.IN_ROW;return;case X.TBODY:case X.THEAD:case X.TFOOT:this.insertionMode=Q.IN_TABLE_BODY;return;case X.CAPTION:this.insertionMode=Q.IN_CAPTION;return;case X.COLGROUP:this.insertionMode=Q.IN_COLUMN_GROUP;return;case X.TABLE:this.insertionMode=Q.IN_TABLE;return;case X.BODY:this.insertionMode=Q.IN_BODY;return;case X.FRAMESET:this.insertionMode=Q.IN_FRAMESET;return;case X.SELECT:this._resetInsertionModeForSelect(e);return;case X.TEMPLATE:this.insertionMode=this.tmplInsertionModeStack[0];return;case X.HTML:this.insertionMode=this.headElement?Q.AFTER_HEAD:Q.BEFORE_HEAD;return;case X.TD:case X.TH:if(e>0){this.insertionMode=Q.IN_CELL;return}break;case X.HEAD:if(e>0){this.insertionMode=Q.IN_HEAD;return}}this.insertionMode=Q.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){let e=this.openElements.tagIDs[t];if(e===X.TEMPLATE)break;if(e===X.TABLE){this.insertionMode=Q.IN_SELECT_IN_TABLE;return}}this.insertionMode=Q.IN_SELECT}_isElementCausesFosterParenting(e){return Im.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){let t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case X.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===J.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case X.TABLE:{let n=this.treeAdapter.getParentNode(t);return n?{parent:n,beforeElement:t}:{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){let t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){return Ap[this.treeAdapter.getNamespaceURI(e)].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){n_(this,e);return}switch(this.insertionMode){case Q.INITIAL:Zm(this,e);break;case Q.BEFORE_HTML:eh(this,e);break;case Q.BEFORE_HEAD:rh(this,e);break;case Q.IN_HEAD:sh(this,e);break;case Q.IN_HEAD_NO_SCRIPT:uh(this,e);break;case Q.AFTER_HEAD:ph(this,e);break;case Q.IN_BODY:case Q.IN_CAPTION:case Q.IN_CELL:case Q.IN_TEMPLATE:gh(this,e);break;case Q.TEXT:case Q.IN_SELECT:case Q.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case Q.IN_TABLE:case Q.IN_TABLE_BODY:case Q.IN_ROW:dg(this,e);break;case Q.IN_TABLE_TEXT:wg(this,e);break;case Q.IN_COLUMN_GROUP:jg(this,e);break;case Q.AFTER_BODY:qg(this,e);break;case Q.AFTER_AFTER_BODY:$g(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){t_(this,e);return}switch(this.insertionMode){case Q.INITIAL:Zm(this,e);break;case Q.BEFORE_HTML:eh(this,e);break;case Q.BEFORE_HEAD:rh(this,e);break;case Q.IN_HEAD:sh(this,e);break;case Q.IN_HEAD_NO_SCRIPT:uh(this,e);break;case Q.AFTER_HEAD:ph(this,e);break;case Q.TEXT:this._insertCharacters(e);break;case Q.IN_TABLE:case Q.IN_TABLE_BODY:case Q.IN_ROW:dg(this,e);break;case Q.IN_COLUMN_GROUP:jg(this,e);break;case Q.AFTER_BODY:qg(this,e);break;case Q.AFTER_AFTER_BODY:$g(this,e)}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML){Km(this,e);return}switch(this.insertionMode){case Q.INITIAL:case Q.BEFORE_HTML:case Q.BEFORE_HEAD:case Q.IN_HEAD:case Q.IN_HEAD_NO_SCRIPT:case Q.AFTER_HEAD:case Q.IN_BODY:case Q.IN_TABLE:case Q.IN_CAPTION:case Q.IN_COLUMN_GROUP:case Q.IN_TABLE_BODY:case Q.IN_ROW:case Q.IN_CELL:case Q.IN_SELECT:case Q.IN_SELECT_IN_TABLE:case Q.IN_TEMPLATE:case Q.IN_FRAMESET:case Q.AFTER_FRAMESET:Km(this,e);break;case Q.IN_TABLE_TEXT:Tg(this,e);break;case Q.AFTER_BODY:qm(this,e);break;case Q.AFTER_AFTER_BODY:case Q.AFTER_AFTER_FRAMESET:Jm(this,e)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case Q.INITIAL:Xm(this,e);break;case Q.BEFORE_HEAD:case Q.IN_HEAD:case Q.IN_HEAD_NO_SCRIPT:case Q.AFTER_HEAD:this._err(e,q.misplacedDoctype);break;case Q.IN_TABLE_TEXT:Tg(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,q.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?i_(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case Q.INITIAL:Zm(this,e);break;case Q.BEFORE_HTML:Qm(this,e);break;case Q.BEFORE_HEAD:th(this,e);break;case Q.IN_HEAD:ih(this,e);break;case Q.IN_HEAD_NO_SCRIPT:ch(this,e);break;case Q.AFTER_HEAD:dh(this,e);break;case Q.IN_BODY:Yh(this,e);break;case Q.IN_TABLE:bg(this,e);break;case Q.IN_TABLE_TEXT:Tg(this,e);break;case Q.IN_CAPTION:Dg(this,e);break;case Q.IN_COLUMN_GROUP:kg(this,e);break;case Q.IN_TABLE_BODY:Mg(this,e);break;case Q.IN_ROW:Pg(this,e);break;case Q.IN_CELL:Ig(this,e);break;case Q.IN_SELECT:Rg(this,e);break;case Q.IN_SELECT_IN_TABLE:Bg(this,e);break;case Q.IN_TEMPLATE:Hg(this,e);break;case Q.AFTER_BODY:Gg(this,e);break;case Q.IN_FRAMESET:Jg(this,e);break;case Q.AFTER_FRAMESET:Xg(this,e);break;case Q.AFTER_AFTER_BODY:Qg(this,e);break;case Q.AFTER_AFTER_FRAMESET:e_(this,e)}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?a_(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case Q.INITIAL:Zm(this,e);break;case Q.BEFORE_HTML:$m(this,e);break;case Q.BEFORE_HEAD:nh(this,e);break;case Q.IN_HEAD:ah(this,e);break;case Q.IN_HEAD_NO_SCRIPT:lh(this,e);break;case Q.AFTER_HEAD:fh(this,e);break;case Q.IN_BODY:sg(this,e);break;case Q.TEXT:lg(this,e);break;case Q.IN_TABLE:xg(this,e);break;case Q.IN_TABLE_TEXT:Tg(this,e);break;case Q.IN_CAPTION:Og(this,e);break;case Q.IN_COLUMN_GROUP:Ag(this,e);break;case Q.IN_TABLE_BODY:Ng(this,e);break;case Q.IN_ROW:Fg(this,e);break;case Q.IN_CELL:Lg(this,e);break;case Q.IN_SELECT:zg(this,e);break;case Q.IN_SELECT_IN_TABLE:Vg(this,e);break;case Q.IN_TEMPLATE:Ug(this,e);break;case Q.AFTER_BODY:Kg(this,e);break;case Q.IN_FRAMESET:Yg(this,e);break;case Q.AFTER_FRAMESET:Zg(this,e);break;case Q.AFTER_AFTER_BODY:$g(this,e)}}onEof(e){switch(this.insertionMode){case Q.INITIAL:Zm(this,e);break;case Q.BEFORE_HTML:eh(this,e);break;case Q.BEFORE_HEAD:rh(this,e);break;case Q.IN_HEAD:sh(this,e);break;case Q.IN_HEAD_NO_SCRIPT:uh(this,e);break;case Q.AFTER_HEAD:ph(this,e);break;case Q.IN_BODY:case Q.IN_TABLE:case Q.IN_CAPTION:case Q.IN_COLUMN_GROUP:case Q.IN_TABLE_BODY:case Q.IN_ROW:case Q.IN_CELL:case Q.IN_SELECT:case Q.IN_SELECT_IN_TABLE:cg(this,e);break;case Q.TEXT:ug(this,e);break;case Q.IN_TABLE_TEXT:Tg(this,e);break;case Q.IN_TEMPLATE:Wg(this,e);break;case Q.AFTER_BODY:case Q.IN_FRAMESET:case Q.AFTER_FRAMESET:case Q.AFTER_AFTER_BODY:case Q.AFTER_AFTER_FRAMESET:Ym(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===K.LINE_FEED)){if(e.chars.length===1)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(e);return}switch(this.insertionMode){case Q.IN_HEAD:case Q.IN_HEAD_NO_SCRIPT:case Q.AFTER_HEAD:case Q.TEXT:case Q.IN_COLUMN_GROUP:case Q.IN_SELECT:case Q.IN_SELECT_IN_TABLE:case Q.IN_FRAMESET:case Q.AFTER_FRAMESET:this._insertCharacters(e);break;case Q.IN_BODY:case Q.IN_CAPTION:case Q.IN_CELL:case Q.IN_TEMPLATE:case Q.AFTER_BODY:case Q.AFTER_AFTER_BODY:case Q.AFTER_AFTER_FRAMESET:hh(this,e);break;case Q.IN_TABLE:case Q.IN_TABLE_BODY:case Q.IN_ROW:dg(this,e);break;case Q.IN_TABLE_TEXT:Cg(this,e)}}};function zm(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):og(e,t),n}function Bm(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){let i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function Vm(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,o=i;o!==n;a++,o=i){i=e.openElements.getCommonAncestor(o);let n=e.activeFormattingElements.getElementEntry(o),s=n&&a>=Pm;!n||s?(s&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(o)):(o=Hm(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}function Hm(e,t){let n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function Um(e,t,n){let r=Op(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(r))e._fosterParentElement(n);else{let i=e.treeAdapter.getNamespaceURI(t);r===X.TEMPLATE&&i===J.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function Wm(e,t,n){let r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,i.tagID)}function Gm(e,t){for(let n=0;n=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){let n=e.openElements.items[0],r=e.treeAdapter.getNodeSourceCodeLocation(n);if(r&&!r.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){let n=e.openElements.items[1],r=e.treeAdapter.getNodeSourceCodeLocation(n);r&&!r.endTag&&e._setEndLocation(n,t)}}}}function Xm(e,t){e._setDocumentType(t);let n=t.forceQuirks?Ep.QUIRKS:gm(t);hm(t)||e._err(t,q.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=Q.BEFORE_HTML}function Zm(e,t){e._err(t,q.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Ep.QUIRKS),e.insertionMode=Q.BEFORE_HTML,e._processToken(t)}function Qm(e,t){t.tagID===X.HTML?(e._insertElement(t,J.HTML),e.insertionMode=Q.BEFORE_HEAD):eh(e,t)}function $m(e,t){let n=t.tagID;(n===X.HTML||n===X.HEAD||n===X.BODY||n===X.BR)&&eh(e,t)}function eh(e,t){e._insertFakeRootElement(),e.insertionMode=Q.BEFORE_HEAD,e._processToken(t)}function th(e,t){switch(t.tagID){case X.HTML:Yh(e,t);break;case X.HEAD:e._insertElement(t,J.HTML),e.headElement=e.openElements.current,e.insertionMode=Q.IN_HEAD;break;default:rh(e,t)}}function nh(e,t){let n=t.tagID;n===X.HEAD||n===X.BODY||n===X.HTML||n===X.BR?rh(e,t):e._err(t,q.endTagWithoutMatchingOpenElement)}function rh(e,t){e._insertFakeElement(Y.HEAD,X.HEAD),e.headElement=e.openElements.current,e.insertionMode=Q.IN_HEAD,e._processToken(t)}function ih(e,t){switch(t.tagID){case X.HTML:Yh(e,t);break;case X.BASE:case X.BASEFONT:case X.BGSOUND:case X.LINK:case X.META:e._appendElement(t,J.HTML),t.ackSelfClosing=!0;break;case X.TITLE:e._switchToTextParsing(t,Mp.RCDATA);break;case X.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,Mp.RAWTEXT):(e._insertElement(t,J.HTML),e.insertionMode=Q.IN_HEAD_NO_SCRIPT);break;case X.NOFRAMES:case X.STYLE:e._switchToTextParsing(t,Mp.RAWTEXT);break;case X.SCRIPT:e._switchToTextParsing(t,Mp.SCRIPT_DATA);break;case X.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=Q.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(Q.IN_TEMPLATE);break;case X.HEAD:e._err(t,q.misplacedStartTagForHeadElement);break;default:sh(e,t)}}function ah(e,t){switch(t.tagID){case X.HEAD:e.openElements.pop(),e.insertionMode=Q.AFTER_HEAD;break;case X.BODY:case X.BR:case X.HTML:sh(e,t);break;case X.TEMPLATE:oh(e,t);break;default:e._err(t,q.endTagWithoutMatchingOpenElement)}}function oh(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==X.TEMPLATE&&e._err(t,q.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(X.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,q.endTagWithoutMatchingOpenElement)}function sh(e,t){e.openElements.pop(),e.insertionMode=Q.AFTER_HEAD,e._processToken(t)}function ch(e,t){switch(t.tagID){case X.HTML:Yh(e,t);break;case X.BASEFONT:case X.BGSOUND:case X.HEAD:case X.LINK:case X.META:case X.NOFRAMES:case X.STYLE:ih(e,t);break;case X.NOSCRIPT:e._err(t,q.nestedNoscriptInHead);break;default:uh(e,t)}}function lh(e,t){switch(t.tagID){case X.NOSCRIPT:e.openElements.pop(),e.insertionMode=Q.IN_HEAD;break;case X.BR:uh(e,t);break;default:e._err(t,q.endTagWithoutMatchingOpenElement)}}function uh(e,t){let n=t.type===lp.EOF?q.openElementsLeftAfterEof:q.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=Q.IN_HEAD,e._processToken(t)}function dh(e,t){switch(t.tagID){case X.HTML:Yh(e,t);break;case X.BODY:e._insertElement(t,J.HTML),e.framesetOk=!1,e.insertionMode=Q.IN_BODY;break;case X.FRAMESET:e._insertElement(t,J.HTML),e.insertionMode=Q.IN_FRAMESET;break;case X.BASE:case X.BASEFONT:case X.BGSOUND:case X.LINK:case X.META:case X.NOFRAMES:case X.SCRIPT:case X.STYLE:case X.TEMPLATE:case X.TITLE:e._err(t,q.abandonedHeadElementChild),e.openElements.push(e.headElement,X.HEAD),ih(e,t),e.openElements.remove(e.headElement);break;case X.HEAD:e._err(t,q.misplacedStartTagForHeadElement);break;default:ph(e,t)}}function fh(e,t){switch(t.tagID){case X.BODY:case X.HTML:case X.BR:ph(e,t);break;case X.TEMPLATE:oh(e,t);break;default:e._err(t,q.endTagWithoutMatchingOpenElement)}}function ph(e,t){e._insertFakeElement(Y.BODY,X.BODY),e.insertionMode=Q.IN_BODY,mh(e,t)}function mh(e,t){switch(t.type){case lp.CHARACTER:gh(e,t);break;case lp.WHITESPACE_CHARACTER:hh(e,t);break;case lp.COMMENT:Km(e,t);break;case lp.START_TAG:Yh(e,t);break;case lp.END_TAG:sg(e,t);break;case lp.EOF:cg(e,t)}}function hh(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function gh(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function _h(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function vh(e,t){let n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function yh(e,t){let n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,J.HTML),e.insertionMode=Q.IN_FRAMESET)}function bh(e,t){e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._insertElement(t,J.HTML)}function xh(e,t){e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&jp.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,J.HTML)}function Sh(e,t){e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._insertElement(t,J.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Ch(e,t){let n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._insertElement(t,J.HTML),n||(e.formElement=e.openElements.current))}function wh(e,t){e.framesetOk=!1;let n=t.tagID;for(let t=e.openElements.stackTop;t>=0;t--){let r=e.openElements.tagIDs[t];if(n===X.LI&&r===X.LI||(n===X.DD||n===X.DT)&&(r===X.DD||r===X.DT)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r);break}if(r!==X.ADDRESS&&r!==X.DIV&&r!==X.P&&e._isSpecialElement(e.openElements.items[t],r))break}e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._insertElement(t,J.HTML)}function Th(e,t){e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._insertElement(t,J.HTML),e.tokenizer.state=Mp.PLAINTEXT}function Eh(e,t){e.openElements.hasInScope(X.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(X.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.framesetOk=!1}function Dh(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(Y.A);n&&(Gm(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Oh(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function kh(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(X.NOBR)&&(Gm(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,J.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Ah(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function jh(e,t){e.treeAdapter.getDocumentMode(e.document)!==Ep.QUIRKS&&e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._insertElement(t,J.HTML),e.framesetOk=!1,e.insertionMode=Q.IN_TABLE}function Mh(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,J.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Nh(e){let t=up(e,Tp.TYPE);return t!=null&&t.toLowerCase()===Mm}function Ph(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,J.HTML),Nh(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function Fh(e,t){e._appendElement(t,J.HTML),t.ackSelfClosing=!0}function Ih(e,t){e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._appendElement(t,J.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Lh(e,t){t.tagName=Y.IMG,t.tagID=X.IMG,Mh(e,t)}function Rh(e,t){e._insertElement(t,J.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Mp.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Q.TEXT}function zh(e,t){e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Mp.RAWTEXT)}function Bh(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Mp.RAWTEXT)}function Vh(e,t){e._switchToTextParsing(t,Mp.RAWTEXT)}function Hh(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===Q.IN_TABLE||e.insertionMode===Q.IN_CAPTION||e.insertionMode===Q.IN_TABLE_BODY||e.insertionMode===Q.IN_ROW||e.insertionMode===Q.IN_CELL?Q.IN_SELECT_IN_TABLE:Q.IN_SELECT}function Uh(e,t){e.openElements.currentTagId===X.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML)}function Wh(e,t){e.openElements.hasInScope(X.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,J.HTML)}function Gh(e,t){e.openElements.hasInScope(X.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(X.RTC),e._insertElement(t,J.HTML)}function Kh(e,t){e._reconstructActiveFormattingElements(),Tm(t),Dm(t),t.selfClosing?e._appendElement(t,J.MATHML):e._insertElement(t,J.MATHML),t.ackSelfClosing=!0}function qh(e,t){e._reconstructActiveFormattingElements(),Em(t),Dm(t),t.selfClosing?e._appendElement(t,J.SVG):e._insertElement(t,J.SVG),t.ackSelfClosing=!0}function Jh(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML)}function Yh(e,t){switch(t.tagID){case X.I:case X.S:case X.B:case X.U:case X.EM:case X.TT:case X.BIG:case X.CODE:case X.FONT:case X.SMALL:case X.STRIKE:case X.STRONG:Oh(e,t);break;case X.A:Dh(e,t);break;case X.H1:case X.H2:case X.H3:case X.H4:case X.H5:case X.H6:xh(e,t);break;case X.P:case X.DL:case X.OL:case X.UL:case X.DIV:case X.DIR:case X.NAV:case X.MAIN:case X.MENU:case X.ASIDE:case X.CENTER:case X.FIGURE:case X.FOOTER:case X.HEADER:case X.HGROUP:case X.DIALOG:case X.DETAILS:case X.ADDRESS:case X.ARTICLE:case X.SEARCH:case X.SECTION:case X.SUMMARY:case X.FIELDSET:case X.BLOCKQUOTE:case X.FIGCAPTION:bh(e,t);break;case X.LI:case X.DD:case X.DT:wh(e,t);break;case X.BR:case X.IMG:case X.WBR:case X.AREA:case X.EMBED:case X.KEYGEN:Mh(e,t);break;case X.HR:Ih(e,t);break;case X.RB:case X.RTC:Wh(e,t);break;case X.RT:case X.RP:Gh(e,t);break;case X.PRE:case X.LISTING:Sh(e,t);break;case X.XMP:zh(e,t);break;case X.SVG:qh(e,t);break;case X.HTML:_h(e,t);break;case X.BASE:case X.LINK:case X.META:case X.STYLE:case X.TITLE:case X.SCRIPT:case X.BGSOUND:case X.BASEFONT:case X.TEMPLATE:ih(e,t);break;case X.BODY:vh(e,t);break;case X.FORM:Ch(e,t);break;case X.NOBR:kh(e,t);break;case X.MATH:Kh(e,t);break;case X.TABLE:jh(e,t);break;case X.INPUT:Ph(e,t);break;case X.PARAM:case X.TRACK:case X.SOURCE:Fh(e,t);break;case X.IMAGE:Lh(e,t);break;case X.BUTTON:Eh(e,t);break;case X.APPLET:case X.OBJECT:case X.MARQUEE:Ah(e,t);break;case X.IFRAME:Bh(e,t);break;case X.SELECT:Hh(e,t);break;case X.OPTION:case X.OPTGROUP:Uh(e,t);break;case X.NOEMBED:case X.NOFRAMES:Vh(e,t);break;case X.FRAMESET:yh(e,t);break;case X.TEXTAREA:Rh(e,t);break;case X.NOSCRIPT:e.options.scriptingEnabled?Vh(e,t):Jh(e,t);break;case X.PLAINTEXT:Th(e,t);break;case X.COL:case X.TH:case X.TD:case X.TR:case X.HEAD:case X.FRAME:case X.TBODY:case X.TFOOT:case X.THEAD:case X.CAPTION:case X.COLGROUP:break;default:Jh(e,t)}}function Xh(e,t){if(e.openElements.hasInScope(X.BODY)&&(e.insertionMode=Q.AFTER_BODY,e.options.sourceCodeLocationInfo)){let n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function Zh(e,t){e.openElements.hasInScope(X.BODY)&&(e.insertionMode=Q.AFTER_BODY,Kg(e,t))}function Qh(e,t){let n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function $h(e){let t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(X.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(X.FORM):n&&e.openElements.remove(n))}function eg(e){e.openElements.hasInButtonScope(X.P)||e._insertFakeElement(Y.P,X.P),e._closePElement()}function tg(e){e.openElements.hasInListItemScope(X.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(X.LI),e.openElements.popUntilTagNamePopped(X.LI))}function ng(e,t){let n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function rg(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function ig(e,t){let n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function ag(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(Y.BR,X.BR),e.openElements.pop(),e.framesetOk=!1}function og(e,t){let n=t.tagName,r=t.tagID;for(let t=e.openElements.stackTop;t>0;t--){let i=e.openElements.items[t],a=e.openElements.tagIDs[t];if(r===a&&(r!==X.UNKNOWN||e.treeAdapter.getTagName(i)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=t&&e.openElements.shortenToLength(t);break}if(e._isSpecialElement(i,a))break}}function sg(e,t){switch(t.tagID){case X.A:case X.B:case X.I:case X.S:case X.U:case X.EM:case X.TT:case X.BIG:case X.CODE:case X.FONT:case X.NOBR:case X.SMALL:case X.STRIKE:case X.STRONG:Gm(e,t);break;case X.P:eg(e);break;case X.DL:case X.UL:case X.OL:case X.DIR:case X.DIV:case X.NAV:case X.PRE:case X.MAIN:case X.MENU:case X.ASIDE:case X.BUTTON:case X.CENTER:case X.FIGURE:case X.FOOTER:case X.HEADER:case X.HGROUP:case X.DIALOG:case X.ADDRESS:case X.ARTICLE:case X.DETAILS:case X.SEARCH:case X.SECTION:case X.SUMMARY:case X.LISTING:case X.FIELDSET:case X.BLOCKQUOTE:case X.FIGCAPTION:Qh(e,t);break;case X.LI:tg(e);break;case X.DD:case X.DT:ng(e,t);break;case X.H1:case X.H2:case X.H3:case X.H4:case X.H5:case X.H6:rg(e);break;case X.BR:ag(e);break;case X.BODY:Xh(e,t);break;case X.HTML:Zh(e,t);break;case X.FORM:$h(e);break;case X.APPLET:case X.OBJECT:case X.MARQUEE:ig(e,t);break;case X.TEMPLATE:oh(e,t);break;default:og(e,t)}}function cg(e,t){e.tmplInsertionModeStack.length>0?Wg(e,t):Ym(e,t)}function lg(e,t){var n;t.tagID===X.SCRIPT&&((n=e.scriptHandler)==null||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function ug(e,t){e._err(t,q.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function dg(e,t){if(e.openElements.currentTagId!==void 0&&Im.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=Q.IN_TABLE_TEXT,t.type){case lp.CHARACTER:wg(e,t);break;case lp.WHITESPACE_CHARACTER:Cg(e,t)}else Sg(e,t)}function fg(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,J.HTML),e.insertionMode=Q.IN_CAPTION}function pg(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,J.HTML),e.insertionMode=Q.IN_COLUMN_GROUP}function mg(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Y.COLGROUP,X.COLGROUP),e.insertionMode=Q.IN_COLUMN_GROUP,kg(e,t)}function hg(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,J.HTML),e.insertionMode=Q.IN_TABLE_BODY}function gg(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Y.TBODY,X.TBODY),e.insertionMode=Q.IN_TABLE_BODY,Mg(e,t)}function _g(e,t){e.openElements.hasInTableScope(X.TABLE)&&(e.openElements.popUntilTagNamePopped(X.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function vg(e,t){Nh(t)?e._appendElement(t,J.HTML):Sg(e,t),t.ackSelfClosing=!0}function yg(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,J.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function bg(e,t){switch(t.tagID){case X.TD:case X.TH:case X.TR:gg(e,t);break;case X.STYLE:case X.SCRIPT:case X.TEMPLATE:ih(e,t);break;case X.COL:mg(e,t);break;case X.FORM:yg(e,t);break;case X.TABLE:_g(e,t);break;case X.TBODY:case X.TFOOT:case X.THEAD:hg(e,t);break;case X.INPUT:vg(e,t);break;case X.CAPTION:fg(e,t);break;case X.COLGROUP:pg(e,t);break;default:Sg(e,t)}}function xg(e,t){switch(t.tagID){case X.TABLE:e.openElements.hasInTableScope(X.TABLE)&&(e.openElements.popUntilTagNamePopped(X.TABLE),e._resetInsertionMode());break;case X.TEMPLATE:oh(e,t);break;case X.BODY:case X.CAPTION:case X.COL:case X.COLGROUP:case X.HTML:case X.TBODY:case X.TD:case X.TFOOT:case X.TH:case X.THEAD:case X.TR:break;default:Sg(e,t)}}function Sg(e,t){let n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,mh(e,t),e.fosterParentingEnabled=n}function Cg(e,t){e.pendingCharacterTokens.push(t)}function wg(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Tg(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0&&e.openElements.currentTagId===X.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===X.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===X.OPTGROUP&&e.openElements.pop();break;case X.OPTION:e.openElements.currentTagId===X.OPTION&&e.openElements.pop();break;case X.SELECT:e.openElements.hasInSelectScope(X.SELECT)&&(e.openElements.popUntilTagNamePopped(X.SELECT),e._resetInsertionMode());break;case X.TEMPLATE:oh(e,t)}}function Bg(e,t){let n=t.tagID;n===X.CAPTION||n===X.TABLE||n===X.TBODY||n===X.TFOOT||n===X.THEAD||n===X.TR||n===X.TD||n===X.TH?(e.openElements.popUntilTagNamePopped(X.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Rg(e,t)}function Vg(e,t){let n=t.tagID;n===X.CAPTION||n===X.TABLE||n===X.TBODY||n===X.TFOOT||n===X.THEAD||n===X.TR||n===X.TD||n===X.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(X.SELECT),e._resetInsertionMode(),e.onEndTag(t)):zg(e,t)}function Hg(e,t){switch(t.tagID){case X.BASE:case X.BASEFONT:case X.BGSOUND:case X.LINK:case X.META:case X.NOFRAMES:case X.SCRIPT:case X.STYLE:case X.TEMPLATE:case X.TITLE:ih(e,t);break;case X.CAPTION:case X.COLGROUP:case X.TBODY:case X.TFOOT:case X.THEAD:e.tmplInsertionModeStack[0]=Q.IN_TABLE,e.insertionMode=Q.IN_TABLE,bg(e,t);break;case X.COL:e.tmplInsertionModeStack[0]=Q.IN_COLUMN_GROUP,e.insertionMode=Q.IN_COLUMN_GROUP,kg(e,t);break;case X.TR:e.tmplInsertionModeStack[0]=Q.IN_TABLE_BODY,e.insertionMode=Q.IN_TABLE_BODY,Mg(e,t);break;case X.TD:case X.TH:e.tmplInsertionModeStack[0]=Q.IN_ROW,e.insertionMode=Q.IN_ROW,Pg(e,t);break;default:e.tmplInsertionModeStack[0]=Q.IN_BODY,e.insertionMode=Q.IN_BODY,Yh(e,t)}}function Ug(e,t){t.tagID===X.TEMPLATE&&oh(e,t)}function Wg(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(X.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Ym(e,t)}function Gg(e,t){t.tagID===X.HTML?Yh(e,t):qg(e,t)}function Kg(e,t){if(t.tagID===X.HTML){if(e.fragmentContext||(e.insertionMode=Q.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===X.HTML){e._setEndLocation(e.openElements.items[0],t);let n=e.openElements.items[1];n&&!e.treeAdapter.getNodeSourceCodeLocation(n)?.endTag&&e._setEndLocation(n,t)}}else qg(e,t)}function qg(e,t){e.insertionMode=Q.IN_BODY,mh(e,t)}function Jg(e,t){switch(t.tagID){case X.HTML:Yh(e,t);break;case X.FRAMESET:e._insertElement(t,J.HTML);break;case X.FRAME:e._appendElement(t,J.HTML),t.ackSelfClosing=!0;break;case X.NOFRAMES:ih(e,t)}}function Yg(e,t){t.tagID===X.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==X.FRAMESET&&(e.insertionMode=Q.AFTER_FRAMESET))}function Xg(e,t){switch(t.tagID){case X.HTML:Yh(e,t);break;case X.NOFRAMES:ih(e,t)}}function Zg(e,t){t.tagID===X.HTML&&(e.insertionMode=Q.AFTER_AFTER_FRAMESET)}function Qg(e,t){t.tagID===X.HTML?Yh(e,t):$g(e,t)}function $g(e,t){e.insertionMode=Q.IN_BODY,mh(e,t)}function e_(e,t){switch(t.tagID){case X.HTML:Yh(e,t);break;case X.NOFRAMES:ih(e,t)}}function t_(e,t){t.chars=`�`,e._insertCharacters(t)}function n_(e,t){e._insertCharacters(t),e.framesetOk=!1}function r_(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==J.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function i_(e,t){if(wm(t))r_(e),e._startTagOutsideForeignContent(t);else{let n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===J.MATHML?Tm(t):r===J.SVG&&(Om(t),Em(t)),Dm(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function a_(e,t){if(t.tagID===X.P||t.tagID===X.BR){r_(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){let r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===J.HTML){e._endTagOutsideForeignContent(t);break}let i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}Y.AREA,Y.BASE,Y.BASEFONT,Y.BGSOUND,Y.BR,Y.COL,Y.EMBED,Y.FRAME,Y.HR,Y.IMG,Y.INPUT,Y.KEYGEN,Y.LINK,Y.META,Y.PARAM,Y.SOURCE,Y.TRACK,Y.WBR;var o_=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,s_=new Set([`mdxFlowExpression`,`mdxJsxFlowElement`,`mdxJsxTextElement`,`mdxTextExpression`,`mdxjsEsm`]),c_={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function l_(e,t){let n=C_(e),r=zf(`type`,{handlers:{root:d_,element:f_,text:p_,comment:g_,doctype:m_,raw:__},unknown:v_}),i={parser:n?new Rm(c_):Rm.getFragmentParser(void 0,c_),handle(e){r(e,i)},stitches:!1,options:t||{}};r(e,i),y_(i,vo());let a=Af(n?i.parser.document:i.parser.getFragment(),{file:i.options.file});return i.stitches&&ld(a,`comment`,function(e,t,n){let r=e;if(r.value.stitch&&n&&t!==void 0){let e=n.children;return e[t]=r.value.stitch,t}}),a.type===`root`&&a.children.length===1&&a.children[0].type===e.type?a.children[0]:a}function u_(e,t){let n=-1;if(e)for(;++n4&&(t.parser.tokenizer.state=0);let n={type:lp.CHARACTER,chars:e.value,location:w_(e)};y_(t,vo(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function m_(e,t){let n={type:lp.DOCTYPE,name:`html`,forceQuirks:!1,publicId:``,systemId:``,location:w_(e)};y_(t,vo(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function h_(e,t){t.stitches=!0;let n=T_(e);`children`in e&&`children`in n&&(n.children=l_({type:`root`,children:e.children},t.options).children),g_({type:`comment`,value:{stitch:n}},t)}function g_(e,t){let n=e.value,r={type:lp.COMMENT,data:n,location:w_(e)};y_(t,vo(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function __(e,t){if(t.parser.tokenizer.preprocessor.html=``,t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,b_(t,vo(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(o_,`<$1$2`):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;let e=t.parser.tokenizer._consume();t.parser.tokenizer._callState(e)}}function v_(e,t){let n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))h_(n,t);else{let e=``;throw s_.has(n.type)&&(e=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),Error("Cannot compile `"+n.type+"` node"+e)}}function y_(e,t){b_(e,t);let n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Mp.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:``,value:``}}function b_(e,t){if(t&&t.offset!==void 0){let n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function x_(e,t){let n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Mp.PLAINTEXT)return;y_(t,vo(e));let r=t.parser.openElements.current,i=`namespaceURI`in r?r.namespaceURI:Df.html;i===Df.html&&n===`svg`&&(i=Df.svg);let a=Uf({...e,children:[]},{space:i===Df.svg?`svg`:`html`}),o={type:lp.START_TAG,tagName:n,tagID:Op(n),selfClosing:!1,ackSelfClosing:!1,attrs:`attrs`in a?a.attrs:[],location:w_(e)};t.parser.currentToken=o,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function S_(e,t){let n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&$f.includes(n)||t.parser.tokenizer.state===Mp.PLAINTEXT)return;y_(t,_o(e));let r={type:lp.END_TAG,tagName:n,tagID:Op(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:w_(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Mp.RCDATA||t.parser.tokenizer.state===Mp.RAWTEXT||t.parser.tokenizer.state===Mp.SCRIPT_DATA)&&(t.parser.tokenizer.state=Mp.DATA)}function C_(e){let t=e.type===`root`?e.children[0]:e;return!!(t&&(t.type===`doctype`||t.type===`element`&&t.tagName.toLowerCase()===`html`))}function w_(e){let t=vo(e)||{line:void 0,column:void 0,offset:void 0},n=_o(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function T_(e){return`children`in e?Ju({...e,children:[]}):Ju(e)}function E_(e){return function(t,n){return l_(t,{...e,file:n})}}var D_=[`ariaDescribedBy`,`ariaLabel`,`ariaLabelledBy`],O_={ancestors:{tbody:[`table`],td:[`table`],th:[`table`],thead:[`table`],tfoot:[`table`],tr:[`table`]},attributes:{a:[...D_,`dataFootnoteBackref`,`dataFootnoteRef`,[`className`,`data-footnote-backref`],`href`],blockquote:[`cite`],code:[[`className`,/^language-./]],del:[`cite`],div:[`itemScope`,`itemType`],dl:[...D_],h2:[[`className`,`sr-only`]],img:[...D_,`longDesc`,`src`],input:[[`disabled`,!0],[`type`,`checkbox`]],ins:[`cite`],li:[[`className`,`task-list-item`]],ol:[...D_,[`className`,`contains-task-list`]],q:[`cite`],section:[`dataFootnotes`,[`className`,`footnotes`]],source:[`srcSet`],summary:[...D_],table:[...D_],ul:[...D_,[`className`,`contains-task-list`]],"*":`abbr.accept.acceptCharset.accessKey.action.align.alt.axis.border.cellPadding.cellSpacing.char.charOff.charSet.checked.clear.colSpan.color.cols.compact.coords.dateTime.dir.encType.frame.hSpace.headers.height.hrefLang.htmlFor.id.isMap.itemProp.label.lang.maxLength.media.method.multiple.name.noHref.noShade.noWrap.open.prompt.readOnly.rev.rowSpan.rows.rules.scope.selected.shape.size.span.start.summary.tabIndex.title.useMap.vAlign.value.width`.split(`.`)},clobber:[`ariaDescribedBy`,`ariaLabelledBy`,`id`,`name`],clobberPrefix:`user-content-`,protocols:{cite:[`http`,`https`],href:[`http`,`https`,`irc`,`ircs`,`mailto`,`xmpp`],longDesc:[`http`,`https`],src:[`http`,`https`]},required:{input:{disabled:!0,type:`checkbox`}},strip:[`script`],tagNames:`a.b.blockquote.br.code.dd.del.details.div.dl.dt.em.h1.h2.h3.h4.h5.h6.hr.i.img.input.ins.kbd.li.ol.p.picture.pre.q.rp.rt.ruby.s.samp.section.source.span.strike.strong.sub.summary.sup.table.tbody.td.tfoot.th.thead.tr.tt.ul.var`.split(`.`)},k_={}.hasOwnProperty;function A_(e,t){let n={type:`root`,children:[]},r=j_({schema:t?{...O_,...t}:O_,stack:[]},e);return r&&(Array.isArray(r)?r.length===1?n=r[0]:n.children=r:n=r),n}function j_(e,t){if(t&&typeof t==`object`){let n=t;switch(typeof n.type==`string`?n.type:``){case`comment`:return M_(e,n);case`doctype`:return N_(e,n);case`element`:return P_(e,n);case`root`:return F_(e,n);case`text`:return I_(e,n)}}}function M_(e,t){if(e.schema.allowComments){let e=typeof t.value==`string`?t.value:``,n=e.indexOf(`-->`),r={type:`comment`,value:n<0?e:e.slice(0,n)};return U_(r,t),r}}function N_(e,t){if(e.schema.allowDoctypes){let e={type:`doctype`};return U_(e,t),e}}function P_(e,t){let n=typeof t.tagName==`string`?t.tagName:``;e.stack.push(n);let r=L_(e,t.children),i=R_(e,t.properties);e.stack.pop();let a=!1;if(n&&n!==`*`&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(a=!0,e.schema.ancestors&&k_.call(e.schema.ancestors,n))){let t=e.schema.ancestors[n],r=-1;for(a=!1;++r1){let e=!1,n=0;for(;++n-1&&a>c||o>-1&&a>o||s>-1&&a>s)return!0;let l=-1;for(;++l4&&t.slice(0,4).toLowerCase()===`data`)return n}function G_(e){return function(t){return A_(t,e)}}function K_(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}function q_(e,t,n){let r=Qu((n||{}).ignore||[]),i=J_(t),a=-1;for(;++a0?{type:`text`,value:a}:void 0),a===!1?r.lastIndex=n+1:(s!==n&&u.push({type:`text`,value:e.value.slice(s,n)}),Array.isArray(a)?u.push(...a):a&&u.push(a),s=n+d[0].length,l=!0),!r.global)break;d=r.exec(e.value)}return l?(s?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(`)`),i=ev(e,`(`),a=ev(e,`)`);for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(`)`),a++;return[e,n]}function gv(e,t){let n=e.input.charCodeAt(e.index-1);return(e.index===0||Ds(n)||Es(n))&&(!t||n!==47)}Ev.peek=Tv;function _v(){this.buffer()}function vv(e){this.enter({type:`footnoteReference`,identifier:``,label:``},e)}function yv(){this.buffer()}function bv(e){this.enter({type:`footnoteDefinition`,identifier:``,label:``,children:[]},e)}function xv(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=hs(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Sv(e){this.exit(e)}function Cv(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=hs(this.sliceSerialize(e)).toLowerCase(),n.label=t}function wv(e){this.exit(e)}function Tv(){return`[`}function Ev(e,t,n,r){let i=n.createTracker(r),a=i.move(`[^`),o=n.enter(`footnoteReference`),s=n.enter(`reference`);return a+=i.move(n.safe(n.associationId(e),{after:`]`,before:a})),s(),o(),a+=i.move(`]`),a}function Dv(){return{enter:{gfmFootnoteCallString:_v,gfmFootnoteCall:vv,gfmFootnoteDefinitionLabelString:yv,gfmFootnoteDefinition:bv},exit:{gfmFootnoteCallString:xv,gfmFootnoteCall:Sv,gfmFootnoteDefinitionLabelString:Cv,gfmFootnoteDefinition:wv}}}function Ov(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Ev},unsafe:[{character:`[`,inConstruct:[`label`,`phrasing`,`reference`]}]};function n(e,n,r,i){let a=r.createTracker(i),o=a.move(`[^`),s=r.enter(`footnoteDefinition`),c=r.enter(`label`);return o+=a.move(r.safe(r.associationId(e),{before:o,after:`]`})),c(),o+=a.move(`]:`),e.children&&e.children.length>0&&(a.shift(4),o+=a.move((t?` -`:` `)+r.indentLines(r.containerFlow(e,a.current()),t?Av:kv))),s(),o}}function kv(e,t,n){return t===0?e:Av(e,t,n)}function Av(e,t,n){return(n?``:` `)+e}var jv=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`];Iv.peek=Lv;function Mv(){return{canContainEols:[`delete`],enter:{strikethrough:Pv},exit:{strikethrough:Fv}}}function Nv(){return{unsafe:[{character:`~`,inConstruct:`phrasing`,notInConstruct:jv}],handlers:{delete:Iv}}}function Pv(e){this.enter({type:`delete`,children:[]},e)}function Fv(e){this.exit(e)}function Iv(e,t,n,r){let i=n.createTracker(r),a=n.enter(`strikethrough`),o=i.move(`~~`);return o+=n.containerPhrasing(e,{...i.current(),before:o,after:`~`}),o+=i.move(`~~`),a(),o}function Lv(){return`~`}function Rv(e){return e.length}function zv(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||Rv,a=[],o=[],s=[],c=[],l=0,u=-1;for(;++ul&&(l=e[u].length);++ac[a])&&(c[a]=e)}t.push(o)}o[u]=t,s[u]=r}let d=-1;if(typeof r==`object`&&`length`in r)for(;++dc[d]&&(c[d]=i),p[d]=i),f[d]=o}o.splice(1,0,f),s.splice(1,0,p),u=-1;let m=[];for(;++u `),a.shift(2);let o=n.indentLines(n.containerFlow(e,a.current()),Uv);return i(),o}function Uv(e,t,n){return`>`+(n?``:` `)+e}function Wv(e,t){return Gv(e,t.inConstruct,!0)&&!Gv(e,t.notInConstruct,!1)}function Gv(e,t,n){if(typeof t==`string`&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++ro&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}function Jv(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function Yv(e){let t=e.options.fence||"`";if(t!=="`"&&t!==`~`)throw Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function Xv(e,t,n,r){let i=Yv(n),a=e.value||``,o=i==="`"?`GraveAccent`:`Tilde`;if(Jv(e,n)){let e=n.enter(`codeIndented`),t=n.indentLines(a,Zv);return e(),t}let s=n.createTracker(r),c=i.repeat(Math.max(qv(a,i)+1,3)),l=n.enter(`codeFenced`),u=s.move(c);if(e.lang){let t=n.enter(`codeFencedLang${o}`);u+=s.move(n.safe(e.lang,{before:u,after:` `,encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){let t=n.enter(`codeFencedMeta${o}`);u+=s.move(` `),u+=s.move(n.safe(e.meta,{before:u,after:` +`}),n}function vd(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function yd(e,t){let n=pd(e,t),r=n.one(e,void 0),i=Qu(n),a=Array.isArray(r)?{type:`root`,children:r}:r||{type:`root`,children:[]};return i&&(`children`in a,a.children.push({type:`text`,value:` +`},i)),a}function bd(e,t){return e&&`run`in e?async function(n,r){let i=yd(n,{file:r,...t});await e.run(i,r)}:function(n,r){return yd(n,{file:r,...e||t})}}function xd(e){if(e)throw e}var Sd=n(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});ft.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}var Ed={basename:Dd,dirname:Od,extname:kd,join:Ad,sep:`/`};function Dd(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);Nd(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function Od(e){if(Nd(e),e.length===0)return`.`;let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||=!0;return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function kd(e){Nd(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function Ad(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function Md(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function Nd(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var Pd={cwd:Fd};function Fd(){return`/`}function Id(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function Ld(e){if(typeof e==`string`)e=new URL(e);else if(!Id(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code=`ERR_INVALID_ARG_TYPE`,t}if(e.protocol!==`file:`){let e=TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return Rd(e)}function Rd(e){if(e.hostname!==``){let e=TypeError(`File URL host must be "localhost" or empty on darwin`);throw e.code=`ERR_INVALID_FILE_URL_HOST`,e}let t=e.pathname,n=-1;for(;++n0){let[r,...a]=t,o=n[i][1];Cd(o)&&Cd(r)&&(r=(0,Kd.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function Yd(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function Xd(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function Zd(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Qd(e){if(!Cd(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function $d(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function ef(e){return tf(e)?e:new Bd(e)}function tf(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function nf(e){return typeof e==`string`||rf(e)}function rf(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var af=[],of={allowDangerousHtml:!0},sf=/^(https?|ircs?|mailto|xmpp)$/i,cf=[{from:`astPlugins`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowDangerousHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowNode`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowElement`},{from:`allowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowedElements`},{from:`className`,id:`remove-classname`},{from:`disallowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`disallowedElements`},{from:`escapeHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`includeElementIndex`,id:`#remove-includeelementindex`},{from:`includeNodeIndex`,id:`change-includenodeindex-to-includeelementindex`},{from:`linkTarget`,id:`remove-linktarget`},{from:`plugins`,id:`change-plugins-to-remarkplugins`,to:`remarkPlugins`},{from:`rawSourcePos`,id:`#remove-rawsourcepos`},{from:`renderers`,id:`change-renderers-to-components`,to:`components`},{from:`source`,id:`change-source-to-children`,to:`children`},{from:`sourcePos`,id:`#remove-sourcepos`},{from:`transformImageUri`,id:`#add-urltransform`,to:`urlTransform`},{from:`transformLinkUri`,id:`#add-urltransform`,to:`urlTransform`}];function lf(e){let t=uf(e),n=df(e);return ff(t.runSync(t.parse(n),n),e)}function uf(e){let t=e.rehypePlugins||af,n=e.remarkPlugins||af,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...of}:of;return Jd().use(ru).use(n).use(bd,r).use(t)}function df(e){let t=e.children||``,n=new Bd;return typeof t==`string`?n.value=t:``+t,n}function ff(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||pf;for(let e of cf)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return ud(e,l),No(e,{Fragment:G.Fragment,components:i,ignoreInvalidStyle:!0,jsx:G.jsx,jsxs:G.jsxs,passKeys:!0,passNode:!0});function l(e,t,i){if(e.type===`raw`&&i&&typeof t==`number`)return o?i.children.splice(t,1):i.children[t]={type:`text`,value:e.value},t;if(e.type===`element`){let t;for(t in ts)if(Object.hasOwn(ts,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=ts[t];(r===null||r.includes(e.tagName))&&(e.properties[t]=c(String(n||``),t,e))}}if(e.type===`element`){let o=n?!n.includes(e.tagName):a?a.includes(e.tagName):!1;if(!o&&r&&typeof t==`number`&&(o=!r(e,t,i)),o&&i&&typeof t==`number`)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}}function pf(e){let t=e.indexOf(`:`),n=e.indexOf(`?`),r=e.indexOf(`#`),i=e.indexOf(`/`);return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||sf.test(e.slice(0,t))?e:``}var mf=/[#.]/g;function hf(e,t){let n=e||``,r={},i=0,a,o;for(;i-1&&e<=t.length){let r=0;for(;;){let i=n[r];if(i===void 0){let e=Df(t,n[r-1]);i=e===-1?t.length+1:e+1,n[r]=i}if(i>e)return{line:r+1,column:e-(r>0?n[r-1]:0)+1,offset:e};r++}}}function i(e){if(e&&typeof e.line==`number`&&typeof e.column==`number`&&!Number.isNaN(e.line)&&!Number.isNaN(e.column)){for(;n.length1?n[e.line-2]:0)+e.column-1;if(r=55296&&e<=57343}function ip(e){return e>=56320&&e<=57343}function ap(e,t){return(e-55296)*1024+9216+t}function op(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function sp(e){return e>=64976&&e<=65007||tp.has(e)}var q;(function(e){e.controlCharacterInInputStream=`control-character-in-input-stream`,e.noncharacterInInputStream=`noncharacter-in-input-stream`,e.surrogateInInputStream=`surrogate-in-input-stream`,e.nonVoidHtmlElementStartTagWithTrailingSolidus=`non-void-html-element-start-tag-with-trailing-solidus`,e.endTagWithAttributes=`end-tag-with-attributes`,e.endTagWithTrailingSolidus=`end-tag-with-trailing-solidus`,e.unexpectedSolidusInTag=`unexpected-solidus-in-tag`,e.unexpectedNullCharacter=`unexpected-null-character`,e.unexpectedQuestionMarkInsteadOfTagName=`unexpected-question-mark-instead-of-tag-name`,e.invalidFirstCharacterOfTagName=`invalid-first-character-of-tag-name`,e.unexpectedEqualsSignBeforeAttributeName=`unexpected-equals-sign-before-attribute-name`,e.missingEndTagName=`missing-end-tag-name`,e.unexpectedCharacterInAttributeName=`unexpected-character-in-attribute-name`,e.unknownNamedCharacterReference=`unknown-named-character-reference`,e.missingSemicolonAfterCharacterReference=`missing-semicolon-after-character-reference`,e.unexpectedCharacterAfterDoctypeSystemIdentifier=`unexpected-character-after-doctype-system-identifier`,e.unexpectedCharacterInUnquotedAttributeValue=`unexpected-character-in-unquoted-attribute-value`,e.eofBeforeTagName=`eof-before-tag-name`,e.eofInTag=`eof-in-tag`,e.missingAttributeValue=`missing-attribute-value`,e.missingWhitespaceBetweenAttributes=`missing-whitespace-between-attributes`,e.missingWhitespaceAfterDoctypePublicKeyword=`missing-whitespace-after-doctype-public-keyword`,e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers=`missing-whitespace-between-doctype-public-and-system-identifiers`,e.missingWhitespaceAfterDoctypeSystemKeyword=`missing-whitespace-after-doctype-system-keyword`,e.missingQuoteBeforeDoctypePublicIdentifier=`missing-quote-before-doctype-public-identifier`,e.missingQuoteBeforeDoctypeSystemIdentifier=`missing-quote-before-doctype-system-identifier`,e.missingDoctypePublicIdentifier=`missing-doctype-public-identifier`,e.missingDoctypeSystemIdentifier=`missing-doctype-system-identifier`,e.abruptDoctypePublicIdentifier=`abrupt-doctype-public-identifier`,e.abruptDoctypeSystemIdentifier=`abrupt-doctype-system-identifier`,e.cdataInHtmlContent=`cdata-in-html-content`,e.incorrectlyOpenedComment=`incorrectly-opened-comment`,e.eofInScriptHtmlCommentLikeText=`eof-in-script-html-comment-like-text`,e.eofInDoctype=`eof-in-doctype`,e.nestedComment=`nested-comment`,e.abruptClosingOfEmptyComment=`abrupt-closing-of-empty-comment`,e.eofInComment=`eof-in-comment`,e.incorrectlyClosedComment=`incorrectly-closed-comment`,e.eofInCdata=`eof-in-cdata`,e.absenceOfDigitsInNumericCharacterReference=`absence-of-digits-in-numeric-character-reference`,e.nullCharacterReference=`null-character-reference`,e.surrogateCharacterReference=`surrogate-character-reference`,e.characterReferenceOutsideUnicodeRange=`character-reference-outside-unicode-range`,e.controlCharacterReference=`control-character-reference`,e.noncharacterCharacterReference=`noncharacter-character-reference`,e.missingWhitespaceBeforeDoctypeName=`missing-whitespace-before-doctype-name`,e.missingDoctypeName=`missing-doctype-name`,e.invalidCharacterSequenceAfterDoctypeName=`invalid-character-sequence-after-doctype-name`,e.duplicateAttribute=`duplicate-attribute`,e.nonConformingDoctype=`non-conforming-doctype`,e.missingDoctype=`missing-doctype`,e.misplacedDoctype=`misplaced-doctype`,e.endTagWithoutMatchingOpenElement=`end-tag-without-matching-open-element`,e.closingOfElementWithOpenChildElements=`closing-of-element-with-open-child-elements`,e.disallowedContentInNoscriptInHead=`disallowed-content-in-noscript-in-head`,e.openElementsLeftAfterEof=`open-elements-left-after-eof`,e.abandonedHeadElementChild=`abandoned-head-element-child`,e.misplacedStartTagForHeadElement=`misplaced-start-tag-for-head-element`,e.nestedNoscriptInHead=`nested-noscript-in-head`,e.eofInElementThatCanContainOnlyText=`eof-in-element-that-can-contain-only-text`})(q||={});var cp=65536,lp=class{constructor(e){this.handler=e,this.html=``,this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=cp,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,t){let{line:n,col:r,offset:i}=this,a=r+t,o=i+t;return{code:e,startLine:n,endLine:n,startCol:a,endCol:a,startOffset:o,endOffset:o}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){let t=this.html.charCodeAt(this.pos+1);if(ip(t))return this.pos++,this._addGap(),ap(e,t)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,K.EOF;return this._err(q.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let t=0;t=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,K.EOF;let n=this.html.charCodeAt(t);return n===K.CARRIAGE_RETURN?K.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,K.EOF;let e=this.html.charCodeAt(this.pos);return e===K.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,K.LINE_FEED):e===K.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,rp(e)&&(e=this._processSurrogate(e)),this.handler.onParseError===null||e>31&&e<127||e===K.LINE_FEED||e===K.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){op(e)?this._err(q.controlCharacterInInputStream):sp(e)&&this._err(q.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}var fp=new Uint16Array(`ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻\xA0ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌`.split(``).map(e=>e.charCodeAt(0))),pp=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]]);String.fromCodePoint;function mp(e){return e>=55296&&e<=57343||e>1114111?65533:pp.get(e)??e}var hp;(function(e){e[e.NUM=35]=`NUM`,e[e.SEMI=59]=`SEMI`,e[e.EQUALS=61]=`EQUALS`,e[e.ZERO=48]=`ZERO`,e[e.NINE=57]=`NINE`,e[e.LOWER_A=97]=`LOWER_A`,e[e.LOWER_F=102]=`LOWER_F`,e[e.LOWER_X=120]=`LOWER_X`,e[e.LOWER_Z=122]=`LOWER_Z`,e[e.UPPER_A=65]=`UPPER_A`,e[e.UPPER_F=70]=`UPPER_F`,e[e.UPPER_Z=90]=`UPPER_Z`})(hp||={});var gp=32,_p;(function(e){e[e.VALUE_LENGTH=49152]=`VALUE_LENGTH`,e[e.BRANCH_LENGTH=16256]=`BRANCH_LENGTH`,e[e.JUMP_TABLE=127]=`JUMP_TABLE`})(_p||={});function vp(e){return e>=hp.ZERO&&e<=hp.NINE}function yp(e){return e>=hp.UPPER_A&&e<=hp.UPPER_F||e>=hp.LOWER_A&&e<=hp.LOWER_F}function bp(e){return e>=hp.UPPER_A&&e<=hp.UPPER_Z||e>=hp.LOWER_A&&e<=hp.LOWER_Z||vp(e)}function xp(e){return e===hp.EQUALS||bp(e)}var Sp;(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`})(Sp||={});var Cp;(function(e){e[e.Legacy=0]=`Legacy`,e[e.Strict=1]=`Strict`,e[e.Attribute=2]=`Attribute`})(Cp||={});var wp=class{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=Sp.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Cp.Strict}startEntity(e){this.decodeMode=e,this.state=Sp.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case Sp.EntityStart:return e.charCodeAt(t)===hp.NUM?(this.state=Sp.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=Sp.NamedEntity,this.stateNamedEntity(e,t));case Sp.NumericStart:return this.stateNumericStart(e,t);case Sp.NumericDecimal:return this.stateNumericDecimal(e,t);case Sp.NumericHex:return this.stateNumericHex(e,t);case Sp.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|gp)===hp.LOWER_X?(this.state=Sp.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=Sp.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){let i=n-t;this.result=this.result*r**+i+Number.parseInt(e.substr(t,i),r),this.consumed+=i}}stateNumericHex(e,t){let n=t;for(;t>14;for(;t>14,i!==0){if(a===hp.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==Cp.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:n}=this,r=(n[t]&_p.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),(e=this.errors)==null||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){let{decodeTree:r}=this;return this.emitCodePoint(t===1?r[e]&~_p.VALUE_LENGTH:r[e+1],n),t===3&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case Sp.NamedEntity:return this.result!==0&&(this.decodeMode!==Cp.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Sp.NumericDecimal:return this.emitNumericEntity(0,2);case Sp.NumericHex:return this.emitNumericEntity(0,3);case Sp.NumericStart:return(e=this.errors)==null||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Sp.EntityStart:return 0}}};function Tp(e,t,n,r){let i=(t&_p.BRANCH_LENGTH)>>7,a=t&_p.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){let t=r-a;return t<0||t>=i?-1:e[n+t]-1}let o=n,s=o+i-1;for(;o<=s;){let t=o+s>>>1,n=e[t];if(nr)s=t-1;else return e[t+i]}return-1}var J;(function(e){e.HTML=`http://www.w3.org/1999/xhtml`,e.MATHML=`http://www.w3.org/1998/Math/MathML`,e.SVG=`http://www.w3.org/2000/svg`,e.XLINK=`http://www.w3.org/1999/xlink`,e.XML=`http://www.w3.org/XML/1998/namespace`,e.XMLNS=`http://www.w3.org/2000/xmlns/`})(J||={});var Ep;(function(e){e.TYPE=`type`,e.ACTION=`action`,e.ENCODING=`encoding`,e.PROMPT=`prompt`,e.NAME=`name`,e.COLOR=`color`,e.FACE=`face`,e.SIZE=`size`})(Ep||={});var Dp;(function(e){e.NO_QUIRKS=`no-quirks`,e.QUIRKS=`quirks`,e.LIMITED_QUIRKS=`limited-quirks`})(Dp||={});var Y;(function(e){e.A=`a`,e.ADDRESS=`address`,e.ANNOTATION_XML=`annotation-xml`,e.APPLET=`applet`,e.AREA=`area`,e.ARTICLE=`article`,e.ASIDE=`aside`,e.B=`b`,e.BASE=`base`,e.BASEFONT=`basefont`,e.BGSOUND=`bgsound`,e.BIG=`big`,e.BLOCKQUOTE=`blockquote`,e.BODY=`body`,e.BR=`br`,e.BUTTON=`button`,e.CAPTION=`caption`,e.CENTER=`center`,e.CODE=`code`,e.COL=`col`,e.COLGROUP=`colgroup`,e.DD=`dd`,e.DESC=`desc`,e.DETAILS=`details`,e.DIALOG=`dialog`,e.DIR=`dir`,e.DIV=`div`,e.DL=`dl`,e.DT=`dt`,e.EM=`em`,e.EMBED=`embed`,e.FIELDSET=`fieldset`,e.FIGCAPTION=`figcaption`,e.FIGURE=`figure`,e.FONT=`font`,e.FOOTER=`footer`,e.FOREIGN_OBJECT=`foreignObject`,e.FORM=`form`,e.FRAME=`frame`,e.FRAMESET=`frameset`,e.H1=`h1`,e.H2=`h2`,e.H3=`h3`,e.H4=`h4`,e.H5=`h5`,e.H6=`h6`,e.HEAD=`head`,e.HEADER=`header`,e.HGROUP=`hgroup`,e.HR=`hr`,e.HTML=`html`,e.I=`i`,e.IMG=`img`,e.IMAGE=`image`,e.INPUT=`input`,e.IFRAME=`iframe`,e.KEYGEN=`keygen`,e.LABEL=`label`,e.LI=`li`,e.LINK=`link`,e.LISTING=`listing`,e.MAIN=`main`,e.MALIGNMARK=`malignmark`,e.MARQUEE=`marquee`,e.MATH=`math`,e.MENU=`menu`,e.META=`meta`,e.MGLYPH=`mglyph`,e.MI=`mi`,e.MO=`mo`,e.MN=`mn`,e.MS=`ms`,e.MTEXT=`mtext`,e.NAV=`nav`,e.NOBR=`nobr`,e.NOFRAMES=`noframes`,e.NOEMBED=`noembed`,e.NOSCRIPT=`noscript`,e.OBJECT=`object`,e.OL=`ol`,e.OPTGROUP=`optgroup`,e.OPTION=`option`,e.P=`p`,e.PARAM=`param`,e.PLAINTEXT=`plaintext`,e.PRE=`pre`,e.RB=`rb`,e.RP=`rp`,e.RT=`rt`,e.RTC=`rtc`,e.RUBY=`ruby`,e.S=`s`,e.SCRIPT=`script`,e.SEARCH=`search`,e.SECTION=`section`,e.SELECT=`select`,e.SOURCE=`source`,e.SMALL=`small`,e.SPAN=`span`,e.STRIKE=`strike`,e.STRONG=`strong`,e.STYLE=`style`,e.SUB=`sub`,e.SUMMARY=`summary`,e.SUP=`sup`,e.TABLE=`table`,e.TBODY=`tbody`,e.TEMPLATE=`template`,e.TEXTAREA=`textarea`,e.TFOOT=`tfoot`,e.TD=`td`,e.TH=`th`,e.THEAD=`thead`,e.TITLE=`title`,e.TR=`tr`,e.TRACK=`track`,e.TT=`tt`,e.U=`u`,e.UL=`ul`,e.SVG=`svg`,e.VAR=`var`,e.WBR=`wbr`,e.XMP=`xmp`})(Y||={});var X;(function(e){e[e.UNKNOWN=0]=`UNKNOWN`,e[e.A=1]=`A`,e[e.ADDRESS=2]=`ADDRESS`,e[e.ANNOTATION_XML=3]=`ANNOTATION_XML`,e[e.APPLET=4]=`APPLET`,e[e.AREA=5]=`AREA`,e[e.ARTICLE=6]=`ARTICLE`,e[e.ASIDE=7]=`ASIDE`,e[e.B=8]=`B`,e[e.BASE=9]=`BASE`,e[e.BASEFONT=10]=`BASEFONT`,e[e.BGSOUND=11]=`BGSOUND`,e[e.BIG=12]=`BIG`,e[e.BLOCKQUOTE=13]=`BLOCKQUOTE`,e[e.BODY=14]=`BODY`,e[e.BR=15]=`BR`,e[e.BUTTON=16]=`BUTTON`,e[e.CAPTION=17]=`CAPTION`,e[e.CENTER=18]=`CENTER`,e[e.CODE=19]=`CODE`,e[e.COL=20]=`COL`,e[e.COLGROUP=21]=`COLGROUP`,e[e.DD=22]=`DD`,e[e.DESC=23]=`DESC`,e[e.DETAILS=24]=`DETAILS`,e[e.DIALOG=25]=`DIALOG`,e[e.DIR=26]=`DIR`,e[e.DIV=27]=`DIV`,e[e.DL=28]=`DL`,e[e.DT=29]=`DT`,e[e.EM=30]=`EM`,e[e.EMBED=31]=`EMBED`,e[e.FIELDSET=32]=`FIELDSET`,e[e.FIGCAPTION=33]=`FIGCAPTION`,e[e.FIGURE=34]=`FIGURE`,e[e.FONT=35]=`FONT`,e[e.FOOTER=36]=`FOOTER`,e[e.FOREIGN_OBJECT=37]=`FOREIGN_OBJECT`,e[e.FORM=38]=`FORM`,e[e.FRAME=39]=`FRAME`,e[e.FRAMESET=40]=`FRAMESET`,e[e.H1=41]=`H1`,e[e.H2=42]=`H2`,e[e.H3=43]=`H3`,e[e.H4=44]=`H4`,e[e.H5=45]=`H5`,e[e.H6=46]=`H6`,e[e.HEAD=47]=`HEAD`,e[e.HEADER=48]=`HEADER`,e[e.HGROUP=49]=`HGROUP`,e[e.HR=50]=`HR`,e[e.HTML=51]=`HTML`,e[e.I=52]=`I`,e[e.IMG=53]=`IMG`,e[e.IMAGE=54]=`IMAGE`,e[e.INPUT=55]=`INPUT`,e[e.IFRAME=56]=`IFRAME`,e[e.KEYGEN=57]=`KEYGEN`,e[e.LABEL=58]=`LABEL`,e[e.LI=59]=`LI`,e[e.LINK=60]=`LINK`,e[e.LISTING=61]=`LISTING`,e[e.MAIN=62]=`MAIN`,e[e.MALIGNMARK=63]=`MALIGNMARK`,e[e.MARQUEE=64]=`MARQUEE`,e[e.MATH=65]=`MATH`,e[e.MENU=66]=`MENU`,e[e.META=67]=`META`,e[e.MGLYPH=68]=`MGLYPH`,e[e.MI=69]=`MI`,e[e.MO=70]=`MO`,e[e.MN=71]=`MN`,e[e.MS=72]=`MS`,e[e.MTEXT=73]=`MTEXT`,e[e.NAV=74]=`NAV`,e[e.NOBR=75]=`NOBR`,e[e.NOFRAMES=76]=`NOFRAMES`,e[e.NOEMBED=77]=`NOEMBED`,e[e.NOSCRIPT=78]=`NOSCRIPT`,e[e.OBJECT=79]=`OBJECT`,e[e.OL=80]=`OL`,e[e.OPTGROUP=81]=`OPTGROUP`,e[e.OPTION=82]=`OPTION`,e[e.P=83]=`P`,e[e.PARAM=84]=`PARAM`,e[e.PLAINTEXT=85]=`PLAINTEXT`,e[e.PRE=86]=`PRE`,e[e.RB=87]=`RB`,e[e.RP=88]=`RP`,e[e.RT=89]=`RT`,e[e.RTC=90]=`RTC`,e[e.RUBY=91]=`RUBY`,e[e.S=92]=`S`,e[e.SCRIPT=93]=`SCRIPT`,e[e.SEARCH=94]=`SEARCH`,e[e.SECTION=95]=`SECTION`,e[e.SELECT=96]=`SELECT`,e[e.SOURCE=97]=`SOURCE`,e[e.SMALL=98]=`SMALL`,e[e.SPAN=99]=`SPAN`,e[e.STRIKE=100]=`STRIKE`,e[e.STRONG=101]=`STRONG`,e[e.STYLE=102]=`STYLE`,e[e.SUB=103]=`SUB`,e[e.SUMMARY=104]=`SUMMARY`,e[e.SUP=105]=`SUP`,e[e.TABLE=106]=`TABLE`,e[e.TBODY=107]=`TBODY`,e[e.TEMPLATE=108]=`TEMPLATE`,e[e.TEXTAREA=109]=`TEXTAREA`,e[e.TFOOT=110]=`TFOOT`,e[e.TD=111]=`TD`,e[e.TH=112]=`TH`,e[e.THEAD=113]=`THEAD`,e[e.TITLE=114]=`TITLE`,e[e.TR=115]=`TR`,e[e.TRACK=116]=`TRACK`,e[e.TT=117]=`TT`,e[e.U=118]=`U`,e[e.UL=119]=`UL`,e[e.SVG=120]=`SVG`,e[e.VAR=121]=`VAR`,e[e.WBR=122]=`WBR`,e[e.XMP=123]=`XMP`})(X||={});var Op=new Map([[Y.A,X.A],[Y.ADDRESS,X.ADDRESS],[Y.ANNOTATION_XML,X.ANNOTATION_XML],[Y.APPLET,X.APPLET],[Y.AREA,X.AREA],[Y.ARTICLE,X.ARTICLE],[Y.ASIDE,X.ASIDE],[Y.B,X.B],[Y.BASE,X.BASE],[Y.BASEFONT,X.BASEFONT],[Y.BGSOUND,X.BGSOUND],[Y.BIG,X.BIG],[Y.BLOCKQUOTE,X.BLOCKQUOTE],[Y.BODY,X.BODY],[Y.BR,X.BR],[Y.BUTTON,X.BUTTON],[Y.CAPTION,X.CAPTION],[Y.CENTER,X.CENTER],[Y.CODE,X.CODE],[Y.COL,X.COL],[Y.COLGROUP,X.COLGROUP],[Y.DD,X.DD],[Y.DESC,X.DESC],[Y.DETAILS,X.DETAILS],[Y.DIALOG,X.DIALOG],[Y.DIR,X.DIR],[Y.DIV,X.DIV],[Y.DL,X.DL],[Y.DT,X.DT],[Y.EM,X.EM],[Y.EMBED,X.EMBED],[Y.FIELDSET,X.FIELDSET],[Y.FIGCAPTION,X.FIGCAPTION],[Y.FIGURE,X.FIGURE],[Y.FONT,X.FONT],[Y.FOOTER,X.FOOTER],[Y.FOREIGN_OBJECT,X.FOREIGN_OBJECT],[Y.FORM,X.FORM],[Y.FRAME,X.FRAME],[Y.FRAMESET,X.FRAMESET],[Y.H1,X.H1],[Y.H2,X.H2],[Y.H3,X.H3],[Y.H4,X.H4],[Y.H5,X.H5],[Y.H6,X.H6],[Y.HEAD,X.HEAD],[Y.HEADER,X.HEADER],[Y.HGROUP,X.HGROUP],[Y.HR,X.HR],[Y.HTML,X.HTML],[Y.I,X.I],[Y.IMG,X.IMG],[Y.IMAGE,X.IMAGE],[Y.INPUT,X.INPUT],[Y.IFRAME,X.IFRAME],[Y.KEYGEN,X.KEYGEN],[Y.LABEL,X.LABEL],[Y.LI,X.LI],[Y.LINK,X.LINK],[Y.LISTING,X.LISTING],[Y.MAIN,X.MAIN],[Y.MALIGNMARK,X.MALIGNMARK],[Y.MARQUEE,X.MARQUEE],[Y.MATH,X.MATH],[Y.MENU,X.MENU],[Y.META,X.META],[Y.MGLYPH,X.MGLYPH],[Y.MI,X.MI],[Y.MO,X.MO],[Y.MN,X.MN],[Y.MS,X.MS],[Y.MTEXT,X.MTEXT],[Y.NAV,X.NAV],[Y.NOBR,X.NOBR],[Y.NOFRAMES,X.NOFRAMES],[Y.NOEMBED,X.NOEMBED],[Y.NOSCRIPT,X.NOSCRIPT],[Y.OBJECT,X.OBJECT],[Y.OL,X.OL],[Y.OPTGROUP,X.OPTGROUP],[Y.OPTION,X.OPTION],[Y.P,X.P],[Y.PARAM,X.PARAM],[Y.PLAINTEXT,X.PLAINTEXT],[Y.PRE,X.PRE],[Y.RB,X.RB],[Y.RP,X.RP],[Y.RT,X.RT],[Y.RTC,X.RTC],[Y.RUBY,X.RUBY],[Y.S,X.S],[Y.SCRIPT,X.SCRIPT],[Y.SEARCH,X.SEARCH],[Y.SECTION,X.SECTION],[Y.SELECT,X.SELECT],[Y.SOURCE,X.SOURCE],[Y.SMALL,X.SMALL],[Y.SPAN,X.SPAN],[Y.STRIKE,X.STRIKE],[Y.STRONG,X.STRONG],[Y.STYLE,X.STYLE],[Y.SUB,X.SUB],[Y.SUMMARY,X.SUMMARY],[Y.SUP,X.SUP],[Y.TABLE,X.TABLE],[Y.TBODY,X.TBODY],[Y.TEMPLATE,X.TEMPLATE],[Y.TEXTAREA,X.TEXTAREA],[Y.TFOOT,X.TFOOT],[Y.TD,X.TD],[Y.TH,X.TH],[Y.THEAD,X.THEAD],[Y.TITLE,X.TITLE],[Y.TR,X.TR],[Y.TRACK,X.TRACK],[Y.TT,X.TT],[Y.U,X.U],[Y.UL,X.UL],[Y.SVG,X.SVG],[Y.VAR,X.VAR],[Y.WBR,X.WBR],[Y.XMP,X.XMP]]);function kp(e){return Op.get(e)??X.UNKNOWN}var Ap=X,jp={[J.HTML]:new Set([Ap.ADDRESS,Ap.APPLET,Ap.AREA,Ap.ARTICLE,Ap.ASIDE,Ap.BASE,Ap.BASEFONT,Ap.BGSOUND,Ap.BLOCKQUOTE,Ap.BODY,Ap.BR,Ap.BUTTON,Ap.CAPTION,Ap.CENTER,Ap.COL,Ap.COLGROUP,Ap.DD,Ap.DETAILS,Ap.DIR,Ap.DIV,Ap.DL,Ap.DT,Ap.EMBED,Ap.FIELDSET,Ap.FIGCAPTION,Ap.FIGURE,Ap.FOOTER,Ap.FORM,Ap.FRAME,Ap.FRAMESET,Ap.H1,Ap.H2,Ap.H3,Ap.H4,Ap.H5,Ap.H6,Ap.HEAD,Ap.HEADER,Ap.HGROUP,Ap.HR,Ap.HTML,Ap.IFRAME,Ap.IMG,Ap.INPUT,Ap.LI,Ap.LINK,Ap.LISTING,Ap.MAIN,Ap.MARQUEE,Ap.MENU,Ap.META,Ap.NAV,Ap.NOEMBED,Ap.NOFRAMES,Ap.NOSCRIPT,Ap.OBJECT,Ap.OL,Ap.P,Ap.PARAM,Ap.PLAINTEXT,Ap.PRE,Ap.SCRIPT,Ap.SECTION,Ap.SELECT,Ap.SOURCE,Ap.STYLE,Ap.SUMMARY,Ap.TABLE,Ap.TBODY,Ap.TD,Ap.TEMPLATE,Ap.TEXTAREA,Ap.TFOOT,Ap.TH,Ap.THEAD,Ap.TITLE,Ap.TR,Ap.TRACK,Ap.UL,Ap.WBR,Ap.XMP]),[J.MATHML]:new Set([Ap.MI,Ap.MO,Ap.MN,Ap.MS,Ap.MTEXT,Ap.ANNOTATION_XML]),[J.SVG]:new Set([Ap.TITLE,Ap.FOREIGN_OBJECT,Ap.DESC]),[J.XLINK]:new Set,[J.XML]:new Set,[J.XMLNS]:new Set},Mp=new Set([Ap.H1,Ap.H2,Ap.H3,Ap.H4,Ap.H5,Ap.H6]);Y.STYLE,Y.SCRIPT,Y.XMP,Y.IFRAME,Y.NOEMBED,Y.NOFRAMES,Y.PLAINTEXT;var Z;(function(e){e[e.DATA=0]=`DATA`,e[e.RCDATA=1]=`RCDATA`,e[e.RAWTEXT=2]=`RAWTEXT`,e[e.SCRIPT_DATA=3]=`SCRIPT_DATA`,e[e.PLAINTEXT=4]=`PLAINTEXT`,e[e.TAG_OPEN=5]=`TAG_OPEN`,e[e.END_TAG_OPEN=6]=`END_TAG_OPEN`,e[e.TAG_NAME=7]=`TAG_NAME`,e[e.RCDATA_LESS_THAN_SIGN=8]=`RCDATA_LESS_THAN_SIGN`,e[e.RCDATA_END_TAG_OPEN=9]=`RCDATA_END_TAG_OPEN`,e[e.RCDATA_END_TAG_NAME=10]=`RCDATA_END_TAG_NAME`,e[e.RAWTEXT_LESS_THAN_SIGN=11]=`RAWTEXT_LESS_THAN_SIGN`,e[e.RAWTEXT_END_TAG_OPEN=12]=`RAWTEXT_END_TAG_OPEN`,e[e.RAWTEXT_END_TAG_NAME=13]=`RAWTEXT_END_TAG_NAME`,e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]=`SCRIPT_DATA_LESS_THAN_SIGN`,e[e.SCRIPT_DATA_END_TAG_OPEN=15]=`SCRIPT_DATA_END_TAG_OPEN`,e[e.SCRIPT_DATA_END_TAG_NAME=16]=`SCRIPT_DATA_END_TAG_NAME`,e[e.SCRIPT_DATA_ESCAPE_START=17]=`SCRIPT_DATA_ESCAPE_START`,e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]=`SCRIPT_DATA_ESCAPE_START_DASH`,e[e.SCRIPT_DATA_ESCAPED=19]=`SCRIPT_DATA_ESCAPED`,e[e.SCRIPT_DATA_ESCAPED_DASH=20]=`SCRIPT_DATA_ESCAPED_DASH`,e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]=`SCRIPT_DATA_ESCAPED_DASH_DASH`,e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]=`SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN`,e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]=`SCRIPT_DATA_ESCAPED_END_TAG_OPEN`,e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]=`SCRIPT_DATA_ESCAPED_END_TAG_NAME`,e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]=`SCRIPT_DATA_DOUBLE_ESCAPE_START`,e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]=`SCRIPT_DATA_DOUBLE_ESCAPED`,e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]=`SCRIPT_DATA_DOUBLE_ESCAPED_DASH`,e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]=`SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH`,e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]=`SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN`,e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]=`SCRIPT_DATA_DOUBLE_ESCAPE_END`,e[e.BEFORE_ATTRIBUTE_NAME=31]=`BEFORE_ATTRIBUTE_NAME`,e[e.ATTRIBUTE_NAME=32]=`ATTRIBUTE_NAME`,e[e.AFTER_ATTRIBUTE_NAME=33]=`AFTER_ATTRIBUTE_NAME`,e[e.BEFORE_ATTRIBUTE_VALUE=34]=`BEFORE_ATTRIBUTE_VALUE`,e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]=`ATTRIBUTE_VALUE_DOUBLE_QUOTED`,e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]=`ATTRIBUTE_VALUE_SINGLE_QUOTED`,e[e.ATTRIBUTE_VALUE_UNQUOTED=37]=`ATTRIBUTE_VALUE_UNQUOTED`,e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]=`AFTER_ATTRIBUTE_VALUE_QUOTED`,e[e.SELF_CLOSING_START_TAG=39]=`SELF_CLOSING_START_TAG`,e[e.BOGUS_COMMENT=40]=`BOGUS_COMMENT`,e[e.MARKUP_DECLARATION_OPEN=41]=`MARKUP_DECLARATION_OPEN`,e[e.COMMENT_START=42]=`COMMENT_START`,e[e.COMMENT_START_DASH=43]=`COMMENT_START_DASH`,e[e.COMMENT=44]=`COMMENT`,e[e.COMMENT_LESS_THAN_SIGN=45]=`COMMENT_LESS_THAN_SIGN`,e[e.COMMENT_LESS_THAN_SIGN_BANG=46]=`COMMENT_LESS_THAN_SIGN_BANG`,e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]=`COMMENT_LESS_THAN_SIGN_BANG_DASH`,e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]=`COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH`,e[e.COMMENT_END_DASH=49]=`COMMENT_END_DASH`,e[e.COMMENT_END=50]=`COMMENT_END`,e[e.COMMENT_END_BANG=51]=`COMMENT_END_BANG`,e[e.DOCTYPE=52]=`DOCTYPE`,e[e.BEFORE_DOCTYPE_NAME=53]=`BEFORE_DOCTYPE_NAME`,e[e.DOCTYPE_NAME=54]=`DOCTYPE_NAME`,e[e.AFTER_DOCTYPE_NAME=55]=`AFTER_DOCTYPE_NAME`,e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]=`AFTER_DOCTYPE_PUBLIC_KEYWORD`,e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]=`BEFORE_DOCTYPE_PUBLIC_IDENTIFIER`,e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]=`DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED`,e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]=`DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED`,e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]=`AFTER_DOCTYPE_PUBLIC_IDENTIFIER`,e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]=`BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS`,e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]=`AFTER_DOCTYPE_SYSTEM_KEYWORD`,e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]=`BEFORE_DOCTYPE_SYSTEM_IDENTIFIER`,e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]=`DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED`,e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]=`DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED`,e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]=`AFTER_DOCTYPE_SYSTEM_IDENTIFIER`,e[e.BOGUS_DOCTYPE=67]=`BOGUS_DOCTYPE`,e[e.CDATA_SECTION=68]=`CDATA_SECTION`,e[e.CDATA_SECTION_BRACKET=69]=`CDATA_SECTION_BRACKET`,e[e.CDATA_SECTION_END=70]=`CDATA_SECTION_END`,e[e.CHARACTER_REFERENCE=71]=`CHARACTER_REFERENCE`,e[e.AMBIGUOUS_AMPERSAND=72]=`AMBIGUOUS_AMPERSAND`})(Z||={});var Np={DATA:Z.DATA,RCDATA:Z.RCDATA,RAWTEXT:Z.RAWTEXT,SCRIPT_DATA:Z.SCRIPT_DATA,PLAINTEXT:Z.PLAINTEXT,CDATA_SECTION:Z.CDATA_SECTION};function Pp(e){return e>=K.DIGIT_0&&e<=K.DIGIT_9}function Fp(e){return e>=K.LATIN_CAPITAL_A&&e<=K.LATIN_CAPITAL_Z}function Ip(e){return e>=K.LATIN_SMALL_A&&e<=K.LATIN_SMALL_Z}function Lp(e){return Ip(e)||Fp(e)}function Rp(e){return Lp(e)||Pp(e)}function zp(e){return e+32}function Bp(e){return e===K.SPACE||e===K.LINE_FEED||e===K.TABULATION||e===K.FORM_FEED}function Vp(e){return Bp(e)||e===K.SOLIDUS||e===K.GREATER_THAN_SIGN}function Hp(e){return e===K.NULL?q.nullCharacterReference:e>1114111?q.characterReferenceOutsideUnicodeRange:rp(e)?q.surrogateCharacterReference:sp(e)?q.noncharacterCharacterReference:op(e)||e===K.CARRIAGE_RETURN?q.controlCharacterReference:null}var Up=class{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName=``,this.active=!1,this.state=Z.DATA,this.returnState=Z.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:``,value:``},this.preprocessor=new lp(t),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new wp(fp,(e,t)=>{this.preprocessor.pos=this.entityStartPos+t-1,this._flushCodePointConsumedAsCharacterReference(e)},t.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(q.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:e=>{this._err(q.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+e)},validateNumericCharacterReference:e=>{let t=Hp(e);t&&this._err(t,1)}}:void 0)}_err(e,t=0){var n,r;(r=(n=this.handler).onParseError)==null||r.call(n,this.preprocessor.getError(e,t))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;let e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw Error(`Parser was already resumed`);this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||e?.())}write(e,t,n){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||n?.()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t0&&this._err(q.endTagWithAttributes),e.selfClosing&&this._err(q.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case up.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case up.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case up.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){let e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:up.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken)if(this.currentCharacterToken.type===e){this.currentCharacterToken.chars+=t;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(e,t)}_emitCodePoint(e){let t=Bp(e)?up.WHITESPACE_CHARACTER:e===K.NULL?up.NULL_CHARACTER:up.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(up.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=Z.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Cp.Attribute:Cp.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===Z.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===Z.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===Z.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case Z.DATA:this._stateData(e);break;case Z.RCDATA:this._stateRcdata(e);break;case Z.RAWTEXT:this._stateRawtext(e);break;case Z.SCRIPT_DATA:this._stateScriptData(e);break;case Z.PLAINTEXT:this._statePlaintext(e);break;case Z.TAG_OPEN:this._stateTagOpen(e);break;case Z.END_TAG_OPEN:this._stateEndTagOpen(e);break;case Z.TAG_NAME:this._stateTagName(e);break;case Z.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case Z.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case Z.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case Z.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case Z.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case Z.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case Z.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case Z.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case Z.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case Z.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case Z.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case Z.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case Z.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case Z.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case Z.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case Z.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case Z.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case Z.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case Z.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case Z.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case Z.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case Z.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case Z.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case Z.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case Z.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case Z.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case Z.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case Z.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case Z.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case Z.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case Z.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case Z.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case Z.BOGUS_COMMENT:this._stateBogusComment(e);break;case Z.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case Z.COMMENT_START:this._stateCommentStart(e);break;case Z.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case Z.COMMENT:this._stateComment(e);break;case Z.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case Z.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case Z.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case Z.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case Z.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case Z.COMMENT_END:this._stateCommentEnd(e);break;case Z.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case Z.DOCTYPE:this._stateDoctype(e);break;case Z.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case Z.DOCTYPE_NAME:this._stateDoctypeName(e);break;case Z.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case Z.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case Z.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case Z.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case Z.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case Z.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case Z.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case Z.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case Z.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case Z.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case Z.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case Z.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case Z.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case Z.CDATA_SECTION:this._stateCdataSection(e);break;case Z.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case Z.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case Z.CHARACTER_REFERENCE:this._stateCharacterReference();break;case Z.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;default:throw Error(`Unknown state`)}}_stateData(e){switch(e){case K.LESS_THAN_SIGN:this.state=Z.TAG_OPEN;break;case K.AMPERSAND:this._startCharacterReference();break;case K.NULL:this._err(q.unexpectedNullCharacter),this._emitCodePoint(e);break;case K.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case K.AMPERSAND:this._startCharacterReference();break;case K.LESS_THAN_SIGN:this.state=Z.RCDATA_LESS_THAN_SIGN;break;case K.NULL:this._err(q.unexpectedNullCharacter),this._emitChars(`�`);break;case K.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case K.LESS_THAN_SIGN:this.state=Z.RAWTEXT_LESS_THAN_SIGN;break;case K.NULL:this._err(q.unexpectedNullCharacter),this._emitChars(`�`);break;case K.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case K.LESS_THAN_SIGN:this.state=Z.SCRIPT_DATA_LESS_THAN_SIGN;break;case K.NULL:this._err(q.unexpectedNullCharacter),this._emitChars(`�`);break;case K.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case K.NULL:this._err(q.unexpectedNullCharacter),this._emitChars(`�`);break;case K.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(Lp(e))this._createStartTagToken(),this.state=Z.TAG_NAME,this._stateTagName(e);else switch(e){case K.EXCLAMATION_MARK:this.state=Z.MARKUP_DECLARATION_OPEN;break;case K.SOLIDUS:this.state=Z.END_TAG_OPEN;break;case K.QUESTION_MARK:this._err(q.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=Z.BOGUS_COMMENT,this._stateBogusComment(e);break;case K.EOF:this._err(q.eofBeforeTagName),this._emitChars(`<`),this._emitEOFToken();break;default:this._err(q.invalidFirstCharacterOfTagName),this._emitChars(`<`),this.state=Z.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(Lp(e))this._createEndTagToken(),this.state=Z.TAG_NAME,this._stateTagName(e);else switch(e){case K.GREATER_THAN_SIGN:this._err(q.missingEndTagName),this.state=Z.DATA;break;case K.EOF:this._err(q.eofBeforeTagName),this._emitChars(``);break;case K.NULL:this._err(q.unexpectedNullCharacter),this.state=Z.SCRIPT_DATA_ESCAPED,this._emitChars(`�`);break;case K.EOF:this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Z.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===K.SOLIDUS?this.state=Z.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Lp(e)?(this._emitChars(`<`),this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars(`<`),this.state=Z.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){Lp(e)?(this.state=Z.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars(``);break;case K.NULL:this._err(q.unexpectedNullCharacter),this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(`�`);break;case K.EOF:this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===K.SOLIDUS?(this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars(`/`)):(this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(np.SCRIPT,!1)&&Vp(this.preprocessor.peek(np.SCRIPT.length))){this._emitCodePoint(e);for(let e=0;e0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){let n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&(this.current=t)}insertAfter(e,t,n){let r=this._indexOf(e)+1;this.items.splice(r,0,t),this.tagIDs.splice(r,0,n),this.stackTop++,r===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,r===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do t=this.tagIDs.lastIndexOf(e,t-1);while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==J.HTML);this.shortenToLength(Math.max(t,0))}shortenToLength(e){for(;this.stackTop>=e;){let t=this.current;this.tmplCount>0&&this._isInTemplate()&&--this.tmplCount,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop=0;n--)if(e.has(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===t)return n;return-1}clearBackTo(e,t){let n=this._indexOfTagNames(e,t);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo($p,J.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Qp,J.HTML)}clearBackToTableRowContext(){this.clearBackTo(Zp,J.HTML)}remove(e){let t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===X.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===X.HTML}hasInDynamicScope(e,t){for(let n=this.stackTop;n>=0;n--){let r=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case J.HTML:if(r===e)return!0;if(t.has(r))return!1;break;case J.SVG:if(Xp.has(r))return!1;break;case J.MATHML:if(Yp.has(r))return!1}}return!0}hasInScope(e){return this.hasInDynamicScope(e,Kp)}hasInListItemScope(e){return this.hasInDynamicScope(e,qp)}hasInButtonScope(e){return this.hasInDynamicScope(e,Jp)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){let t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case J.HTML:if(Mp.has(t))return!0;if(Kp.has(t))return!1;break;case J.SVG:if(Xp.has(t))return!1;break;case J.MATHML:if(Yp.has(t))return!1}}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===J.HTML)switch(this.tagIDs[t]){case e:return!0;case X.TABLE:case X.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===J.HTML)switch(this.tagIDs[e]){case X.TBODY:case X.THEAD:case X.TFOOT:return!0;case X.TABLE:case X.HTML:return!1}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===J.HTML)switch(this.tagIDs[t]){case e:return!0;case X.OPTION:case X.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&Wp.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&Gp.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==void 0&&this.currentTagId!==e&&Gp.has(this.currentTagId);)this.pop()}},nm=3,rm;(function(e){e[e.Marker=0]=`Marker`,e[e.Element=1]=`Element`})(rm||={});var im={type:rm.Marker},am=class{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){let n=[],r=t.length,i=this.treeAdapter.getTagName(e),a=this.treeAdapter.getNamespaceURI(e);for(let e=0;e[e.name,e.value])),i=0;for(let e=0;er.get(e.name)===e.value)&&(i+=1,i>=nm&&this.entries.splice(t.idx,1))}}insertMarker(){this.entries.unshift(im)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:rm.Element,element:e,token:t})}insertElementAfterBookmark(e,t){let n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:rm.Element,element:e,token:t})}removeEntry(e){let t=this.entries.indexOf(e);t!==-1&&this.entries.splice(t,1)}clearToLastMarker(){let e=this.entries.indexOf(im);e===-1?this.entries.length=0:this.entries.splice(0,e+1)}getElementEntryInScopeWithTagName(e){let t=this.entries.find(t=>t.type===rm.Marker||this.treeAdapter.getTagName(t.element)===e);return t&&t.type===rm.Element?t:null}getElementEntry(e){return this.entries.find(t=>t.type===rm.Element&&t.element===e)}},om={createDocument(){return{nodeName:`#document`,mode:Dp.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:`#document-fragment`,childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:`#comment`,data:e,parentNode:null}},createTextNode(e){return{nodeName:`#text`,value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){let r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){let i=e.childNodes.find(e=>e.nodeName===`#documentType`);if(i)i.name=t,i.publicId=n,i.systemId=r;else{let i={nodeName:`#documentType`,name:t,publicId:n,systemId:r,parentNode:null};om.appendChild(e,i)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){let t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){let n=e.childNodes[e.childNodes.length-1];if(om.isTextNode(n)){n.value+=t;return}}om.appendChild(e,om.createTextNode(t))},insertTextBefore(e,t,n){let r=e.childNodes[e.childNodes.indexOf(n)-1];r&&om.isTextNode(r)?r.value+=t:om.insertBefore(e,om.createTextNode(t),n)},adoptAttributes(e,t){let n=new Set(e.attrs.map(e=>e.name));for(let r=0;re.startsWith(t))}function gm(e){return e.name===sm&&e.publicId===null&&(e.systemId===null||e.systemId===cm)}function _m(e){if(e.name!==sm)return Dp.QUIRKS;let{systemId:t}=e;if(t&&t.toLowerCase()===lm)return Dp.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),fm.has(n))return Dp.QUIRKS;let e=t===null?dm:um;if(hm(n,e))return Dp.QUIRKS;if(e=t===null?pm:mm,hm(n,e))return Dp.LIMITED_QUIRKS}return Dp.NO_QUIRKS}var vm={TEXT_HTML:`text/html`,APPLICATION_XML:`application/xhtml+xml`},ym=`definitionurl`,bm=`definitionURL`,xm=new Map(`attributeName.attributeType.baseFrequency.baseProfile.calcMode.clipPathUnits.diffuseConstant.edgeMode.filterUnits.glyphRef.gradientTransform.gradientUnits.kernelMatrix.kernelUnitLength.keyPoints.keySplines.keyTimes.lengthAdjust.limitingConeAngle.markerHeight.markerUnits.markerWidth.maskContentUnits.maskUnits.numOctaves.pathLength.patternContentUnits.patternTransform.patternUnits.pointsAtX.pointsAtY.pointsAtZ.preserveAlpha.preserveAspectRatio.primitiveUnits.refX.refY.repeatCount.repeatDur.requiredExtensions.requiredFeatures.specularConstant.specularExponent.spreadMethod.startOffset.stdDeviation.stitchTiles.surfaceScale.systemLanguage.tableValues.targetX.targetY.textLength.viewBox.viewTarget.xChannelSelector.yChannelSelector.zoomAndPan`.split(`.`).map(e=>[e.toLowerCase(),e])),Sm=new Map([[`xlink:actuate`,{prefix:`xlink`,name:`actuate`,namespace:J.XLINK}],[`xlink:arcrole`,{prefix:`xlink`,name:`arcrole`,namespace:J.XLINK}],[`xlink:href`,{prefix:`xlink`,name:`href`,namespace:J.XLINK}],[`xlink:role`,{prefix:`xlink`,name:`role`,namespace:J.XLINK}],[`xlink:show`,{prefix:`xlink`,name:`show`,namespace:J.XLINK}],[`xlink:title`,{prefix:`xlink`,name:`title`,namespace:J.XLINK}],[`xlink:type`,{prefix:`xlink`,name:`type`,namespace:J.XLINK}],[`xml:lang`,{prefix:`xml`,name:`lang`,namespace:J.XML}],[`xml:space`,{prefix:`xml`,name:`space`,namespace:J.XML}],[`xmlns`,{prefix:``,name:`xmlns`,namespace:J.XMLNS}],[`xmlns:xlink`,{prefix:`xmlns`,name:`xlink`,namespace:J.XMLNS}]]),Cm=new Map(`altGlyph.altGlyphDef.altGlyphItem.animateColor.animateMotion.animateTransform.clipPath.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.foreignObject.glyphRef.linearGradient.radialGradient.textPath`.split(`.`).map(e=>[e.toLowerCase(),e])),wm=new Set([X.B,X.BIG,X.BLOCKQUOTE,X.BODY,X.BR,X.CENTER,X.CODE,X.DD,X.DIV,X.DL,X.DT,X.EM,X.EMBED,X.H1,X.H2,X.H3,X.H4,X.H5,X.H6,X.HEAD,X.HR,X.I,X.IMG,X.LI,X.LISTING,X.MENU,X.META,X.NOBR,X.OL,X.P,X.PRE,X.RUBY,X.S,X.SMALL,X.SPAN,X.STRONG,X.STRIKE,X.SUB,X.SUP,X.TABLE,X.TT,X.U,X.UL,X.VAR]);function Tm(e){let t=e.tagID;return t===X.FONT&&e.attrs.some(({name:e})=>e===Ep.COLOR||e===Ep.SIZE||e===Ep.FACE)||wm.has(t)}function Em(e){for(let t=0;t0&&this._setContextModes(e,t)}onItemPop(e,t){var n,r;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),(r=(n=this.treeAdapter).onItemPop)==null||r.call(n,e,this.openElements.current),t){let e,t;this.openElements.stackTop===0&&this.fragmentContext?(e=this.fragmentContext,t=this.fragmentContextID):{current:e,currentTagId:t}=this.openElements,this._setContextModes(e,t)}}_setContextModes(e,t){let n=e===this.document||e&&this.treeAdapter.getNamespaceURI(e)===J.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&e!==void 0&&t!==void 0&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,J.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=Q.TEXT}switchToPlaintextParsing(){this.insertionMode=Q.TEXT,this.originalInsertionMode=Q.IN_BODY,this.tokenizer.state=Np.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===Y.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==J.HTML))switch(this.fragmentContextID){case X.TITLE:case X.TEXTAREA:this.tokenizer.state=Np.RCDATA;break;case X.STYLE:case X.XMP:case X.IFRAME:case X.NOEMBED:case X.NOFRAMES:case X.NOSCRIPT:this.tokenizer.state=Np.RAWTEXT;break;case X.SCRIPT:this.tokenizer.state=Np.SCRIPT_DATA;break;case X.PLAINTEXT:this.tokenizer.state=Np.PLAINTEXT}}_setDocumentType(e){let t=e.name||``,n=e.publicId||``,r=e.systemId||``;if(this.treeAdapter.setDocumentType(this.document,t,n,r),e.location){let t=this.treeAdapter.getChildNodes(this.document).find(e=>this.treeAdapter.isDocumentTypeNode(e));t&&this.treeAdapter.setNodeSourceCodeLocation(t,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){let n=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{let t=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(t??this.document,e)}}_appendElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location)}_insertElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID)}_insertFakeElement(e,t){let n=this.treeAdapter.createElement(e,J.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}_insertTemplate(e){let t=this.treeAdapter.createElement(e.tagName,J.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){let e=this.treeAdapter.createElement(Y.HTML,J.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,X.HTML)}_appendCommentNode(e,t){let n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}_insertCharacters(e){let t,n;if(this._shouldFosterParentOnInsertion()?({parent:t,beforeElement:n}=this._findFosterParentingLocation(),n?this.treeAdapter.insertTextBefore(t,e.chars,n):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;let r=this.treeAdapter.getChildNodes(t),i=r[(n?r.lastIndexOf(n):r.length)-1];if(this.treeAdapter.getNodeSourceCodeLocation(i)){let{endLine:t,endCol:n,endOffset:r}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(i,{endLine:t,endCol:n,endOffset:r})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,e.location)}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){let n=t.location,r=this.treeAdapter.getTagName(e),i=t.type===up.END_TAG&&r===t.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,i)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let t,n;return this.openElements.stackTop===0&&this.fragmentContext?(t=this.fragmentContext,n=this.fragmentContextID):{current:t,currentTagId:n}=this.openElements,e.tagID===X.SVG&&this.treeAdapter.getTagName(t)===Y.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(t)===J.MATHML?!1:this.tokenizer.inForeignNode||(e.tagID===X.MGLYPH||e.tagID===X.MALIGNMARK)&&n!==void 0&&!this._isIntegrationPoint(n,t,J.HTML)}_processToken(e){switch(e.type){case up.CHARACTER:this.onCharacter(e);break;case up.NULL_CHARACTER:this.onNullCharacter(e);break;case up.COMMENT:this.onComment(e);break;case up.DOCTYPE:this.onDoctype(e);break;case up.START_TAG:this._processStartTag(e);break;case up.END_TAG:this.onEndTag(e);break;case up.EOF:this.onEof(e);break;case up.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,n){return Mm(e,this.treeAdapter.getNamespaceURI(t),this.treeAdapter.getAttrList(t),n)}_reconstructActiveFormattingElements(){let e=this.activeFormattingElements.entries.length;if(e){let t=this.activeFormattingElements.entries.findIndex(e=>e.type===rm.Marker||this.openElements.contains(e.element)),n=t===-1?e-1:t-1;for(let e=n;e>=0;e--){let t=this.activeFormattingElements.entries[e];this._insertElement(t.token,this.treeAdapter.getNamespaceURI(t.element)),t.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=Q.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(X.P),this.openElements.popUntilTagNamePopped(X.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(e===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case X.TR:this.insertionMode=Q.IN_ROW;return;case X.TBODY:case X.THEAD:case X.TFOOT:this.insertionMode=Q.IN_TABLE_BODY;return;case X.CAPTION:this.insertionMode=Q.IN_CAPTION;return;case X.COLGROUP:this.insertionMode=Q.IN_COLUMN_GROUP;return;case X.TABLE:this.insertionMode=Q.IN_TABLE;return;case X.BODY:this.insertionMode=Q.IN_BODY;return;case X.FRAMESET:this.insertionMode=Q.IN_FRAMESET;return;case X.SELECT:this._resetInsertionModeForSelect(e);return;case X.TEMPLATE:this.insertionMode=this.tmplInsertionModeStack[0];return;case X.HTML:this.insertionMode=this.headElement?Q.AFTER_HEAD:Q.BEFORE_HEAD;return;case X.TD:case X.TH:if(e>0){this.insertionMode=Q.IN_CELL;return}break;case X.HEAD:if(e>0){this.insertionMode=Q.IN_HEAD;return}}this.insertionMode=Q.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){let e=this.openElements.tagIDs[t];if(e===X.TEMPLATE)break;if(e===X.TABLE){this.insertionMode=Q.IN_SELECT_IN_TABLE;return}}this.insertionMode=Q.IN_SELECT}_isElementCausesFosterParenting(e){return Lm.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){let t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case X.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===J.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case X.TABLE:{let n=this.treeAdapter.getParentNode(t);return n?{parent:n,beforeElement:t}:{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){let t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){return jp[this.treeAdapter.getNamespaceURI(e)].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){r_(this,e);return}switch(this.insertionMode){case Q.INITIAL:Qm(this,e);break;case Q.BEFORE_HTML:th(this,e);break;case Q.BEFORE_HEAD:ih(this,e);break;case Q.IN_HEAD:ch(this,e);break;case Q.IN_HEAD_NO_SCRIPT:dh(this,e);break;case Q.AFTER_HEAD:mh(this,e);break;case Q.IN_BODY:case Q.IN_CAPTION:case Q.IN_CELL:case Q.IN_TEMPLATE:_h(this,e);break;case Q.TEXT:case Q.IN_SELECT:case Q.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case Q.IN_TABLE:case Q.IN_TABLE_BODY:case Q.IN_ROW:fg(this,e);break;case Q.IN_TABLE_TEXT:Tg(this,e);break;case Q.IN_COLUMN_GROUP:Mg(this,e);break;case Q.AFTER_BODY:Jg(this,e);break;case Q.AFTER_AFTER_BODY:e_(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){n_(this,e);return}switch(this.insertionMode){case Q.INITIAL:Qm(this,e);break;case Q.BEFORE_HTML:th(this,e);break;case Q.BEFORE_HEAD:ih(this,e);break;case Q.IN_HEAD:ch(this,e);break;case Q.IN_HEAD_NO_SCRIPT:dh(this,e);break;case Q.AFTER_HEAD:mh(this,e);break;case Q.TEXT:this._insertCharacters(e);break;case Q.IN_TABLE:case Q.IN_TABLE_BODY:case Q.IN_ROW:fg(this,e);break;case Q.IN_COLUMN_GROUP:Mg(this,e);break;case Q.AFTER_BODY:Jg(this,e);break;case Q.AFTER_AFTER_BODY:e_(this,e)}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML){qm(this,e);return}switch(this.insertionMode){case Q.INITIAL:case Q.BEFORE_HTML:case Q.BEFORE_HEAD:case Q.IN_HEAD:case Q.IN_HEAD_NO_SCRIPT:case Q.AFTER_HEAD:case Q.IN_BODY:case Q.IN_TABLE:case Q.IN_CAPTION:case Q.IN_COLUMN_GROUP:case Q.IN_TABLE_BODY:case Q.IN_ROW:case Q.IN_CELL:case Q.IN_SELECT:case Q.IN_SELECT_IN_TABLE:case Q.IN_TEMPLATE:case Q.IN_FRAMESET:case Q.AFTER_FRAMESET:qm(this,e);break;case Q.IN_TABLE_TEXT:Eg(this,e);break;case Q.AFTER_BODY:Jm(this,e);break;case Q.AFTER_AFTER_BODY:case Q.AFTER_AFTER_FRAMESET:Ym(this,e)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case Q.INITIAL:Zm(this,e);break;case Q.BEFORE_HEAD:case Q.IN_HEAD:case Q.IN_HEAD_NO_SCRIPT:case Q.AFTER_HEAD:this._err(e,q.misplacedDoctype);break;case Q.IN_TABLE_TEXT:Eg(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,q.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?a_(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case Q.INITIAL:Qm(this,e);break;case Q.BEFORE_HTML:$m(this,e);break;case Q.BEFORE_HEAD:nh(this,e);break;case Q.IN_HEAD:ah(this,e);break;case Q.IN_HEAD_NO_SCRIPT:lh(this,e);break;case Q.AFTER_HEAD:fh(this,e);break;case Q.IN_BODY:Xh(this,e);break;case Q.IN_TABLE:xg(this,e);break;case Q.IN_TABLE_TEXT:Eg(this,e);break;case Q.IN_CAPTION:Og(this,e);break;case Q.IN_COLUMN_GROUP:Ag(this,e);break;case Q.IN_TABLE_BODY:Ng(this,e);break;case Q.IN_ROW:Fg(this,e);break;case Q.IN_CELL:Lg(this,e);break;case Q.IN_SELECT:zg(this,e);break;case Q.IN_SELECT_IN_TABLE:Vg(this,e);break;case Q.IN_TEMPLATE:Ug(this,e);break;case Q.AFTER_BODY:Kg(this,e);break;case Q.IN_FRAMESET:Yg(this,e);break;case Q.AFTER_FRAMESET:Zg(this,e);break;case Q.AFTER_AFTER_BODY:$g(this,e);break;case Q.AFTER_AFTER_FRAMESET:t_(this,e)}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?o_(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case Q.INITIAL:Qm(this,e);break;case Q.BEFORE_HTML:eh(this,e);break;case Q.BEFORE_HEAD:rh(this,e);break;case Q.IN_HEAD:oh(this,e);break;case Q.IN_HEAD_NO_SCRIPT:uh(this,e);break;case Q.AFTER_HEAD:ph(this,e);break;case Q.IN_BODY:cg(this,e);break;case Q.TEXT:ug(this,e);break;case Q.IN_TABLE:Sg(this,e);break;case Q.IN_TABLE_TEXT:Eg(this,e);break;case Q.IN_CAPTION:kg(this,e);break;case Q.IN_COLUMN_GROUP:jg(this,e);break;case Q.IN_TABLE_BODY:Pg(this,e);break;case Q.IN_ROW:Ig(this,e);break;case Q.IN_CELL:Rg(this,e);break;case Q.IN_SELECT:Bg(this,e);break;case Q.IN_SELECT_IN_TABLE:Hg(this,e);break;case Q.IN_TEMPLATE:Wg(this,e);break;case Q.AFTER_BODY:qg(this,e);break;case Q.IN_FRAMESET:Xg(this,e);break;case Q.AFTER_FRAMESET:Qg(this,e);break;case Q.AFTER_AFTER_BODY:e_(this,e)}}onEof(e){switch(this.insertionMode){case Q.INITIAL:Qm(this,e);break;case Q.BEFORE_HTML:th(this,e);break;case Q.BEFORE_HEAD:ih(this,e);break;case Q.IN_HEAD:ch(this,e);break;case Q.IN_HEAD_NO_SCRIPT:dh(this,e);break;case Q.AFTER_HEAD:mh(this,e);break;case Q.IN_BODY:case Q.IN_TABLE:case Q.IN_CAPTION:case Q.IN_COLUMN_GROUP:case Q.IN_TABLE_BODY:case Q.IN_ROW:case Q.IN_CELL:case Q.IN_SELECT:case Q.IN_SELECT_IN_TABLE:lg(this,e);break;case Q.TEXT:dg(this,e);break;case Q.IN_TABLE_TEXT:Eg(this,e);break;case Q.IN_TEMPLATE:Gg(this,e);break;case Q.AFTER_BODY:case Q.IN_FRAMESET:case Q.AFTER_FRAMESET:case Q.AFTER_AFTER_BODY:case Q.AFTER_AFTER_FRAMESET:Xm(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===K.LINE_FEED)){if(e.chars.length===1)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(e);return}switch(this.insertionMode){case Q.IN_HEAD:case Q.IN_HEAD_NO_SCRIPT:case Q.AFTER_HEAD:case Q.TEXT:case Q.IN_COLUMN_GROUP:case Q.IN_SELECT:case Q.IN_SELECT_IN_TABLE:case Q.IN_FRAMESET:case Q.AFTER_FRAMESET:this._insertCharacters(e);break;case Q.IN_BODY:case Q.IN_CAPTION:case Q.IN_CELL:case Q.IN_TEMPLATE:case Q.AFTER_BODY:case Q.AFTER_AFTER_BODY:case Q.AFTER_AFTER_FRAMESET:gh(this,e);break;case Q.IN_TABLE:case Q.IN_TABLE_BODY:case Q.IN_ROW:fg(this,e);break;case Q.IN_TABLE_TEXT:wg(this,e)}}};function Bm(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):sg(e,t),n}function Vm(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){let i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function Hm(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,o=i;o!==n;a++,o=i){i=e.openElements.getCommonAncestor(o);let n=e.activeFormattingElements.getElementEntry(o),s=n&&a>=Fm;!n||s?(s&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(o)):(o=Um(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}function Um(e,t){let n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function Wm(e,t,n){let r=kp(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(r))e._fosterParentElement(n);else{let i=e.treeAdapter.getNamespaceURI(t);r===X.TEMPLATE&&i===J.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function Gm(e,t,n){let r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,i.tagID)}function Km(e,t){for(let n=0;n=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){let n=e.openElements.items[0],r=e.treeAdapter.getNodeSourceCodeLocation(n);if(r&&!r.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){let n=e.openElements.items[1],r=e.treeAdapter.getNodeSourceCodeLocation(n);r&&!r.endTag&&e._setEndLocation(n,t)}}}}function Zm(e,t){e._setDocumentType(t);let n=t.forceQuirks?Dp.QUIRKS:_m(t);gm(t)||e._err(t,q.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=Q.BEFORE_HTML}function Qm(e,t){e._err(t,q.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Dp.QUIRKS),e.insertionMode=Q.BEFORE_HTML,e._processToken(t)}function $m(e,t){t.tagID===X.HTML?(e._insertElement(t,J.HTML),e.insertionMode=Q.BEFORE_HEAD):th(e,t)}function eh(e,t){let n=t.tagID;(n===X.HTML||n===X.HEAD||n===X.BODY||n===X.BR)&&th(e,t)}function th(e,t){e._insertFakeRootElement(),e.insertionMode=Q.BEFORE_HEAD,e._processToken(t)}function nh(e,t){switch(t.tagID){case X.HTML:Xh(e,t);break;case X.HEAD:e._insertElement(t,J.HTML),e.headElement=e.openElements.current,e.insertionMode=Q.IN_HEAD;break;default:ih(e,t)}}function rh(e,t){let n=t.tagID;n===X.HEAD||n===X.BODY||n===X.HTML||n===X.BR?ih(e,t):e._err(t,q.endTagWithoutMatchingOpenElement)}function ih(e,t){e._insertFakeElement(Y.HEAD,X.HEAD),e.headElement=e.openElements.current,e.insertionMode=Q.IN_HEAD,e._processToken(t)}function ah(e,t){switch(t.tagID){case X.HTML:Xh(e,t);break;case X.BASE:case X.BASEFONT:case X.BGSOUND:case X.LINK:case X.META:e._appendElement(t,J.HTML),t.ackSelfClosing=!0;break;case X.TITLE:e._switchToTextParsing(t,Np.RCDATA);break;case X.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,Np.RAWTEXT):(e._insertElement(t,J.HTML),e.insertionMode=Q.IN_HEAD_NO_SCRIPT);break;case X.NOFRAMES:case X.STYLE:e._switchToTextParsing(t,Np.RAWTEXT);break;case X.SCRIPT:e._switchToTextParsing(t,Np.SCRIPT_DATA);break;case X.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=Q.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(Q.IN_TEMPLATE);break;case X.HEAD:e._err(t,q.misplacedStartTagForHeadElement);break;default:ch(e,t)}}function oh(e,t){switch(t.tagID){case X.HEAD:e.openElements.pop(),e.insertionMode=Q.AFTER_HEAD;break;case X.BODY:case X.BR:case X.HTML:ch(e,t);break;case X.TEMPLATE:sh(e,t);break;default:e._err(t,q.endTagWithoutMatchingOpenElement)}}function sh(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==X.TEMPLATE&&e._err(t,q.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(X.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,q.endTagWithoutMatchingOpenElement)}function ch(e,t){e.openElements.pop(),e.insertionMode=Q.AFTER_HEAD,e._processToken(t)}function lh(e,t){switch(t.tagID){case X.HTML:Xh(e,t);break;case X.BASEFONT:case X.BGSOUND:case X.HEAD:case X.LINK:case X.META:case X.NOFRAMES:case X.STYLE:ah(e,t);break;case X.NOSCRIPT:e._err(t,q.nestedNoscriptInHead);break;default:dh(e,t)}}function uh(e,t){switch(t.tagID){case X.NOSCRIPT:e.openElements.pop(),e.insertionMode=Q.IN_HEAD;break;case X.BR:dh(e,t);break;default:e._err(t,q.endTagWithoutMatchingOpenElement)}}function dh(e,t){let n=t.type===up.EOF?q.openElementsLeftAfterEof:q.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=Q.IN_HEAD,e._processToken(t)}function fh(e,t){switch(t.tagID){case X.HTML:Xh(e,t);break;case X.BODY:e._insertElement(t,J.HTML),e.framesetOk=!1,e.insertionMode=Q.IN_BODY;break;case X.FRAMESET:e._insertElement(t,J.HTML),e.insertionMode=Q.IN_FRAMESET;break;case X.BASE:case X.BASEFONT:case X.BGSOUND:case X.LINK:case X.META:case X.NOFRAMES:case X.SCRIPT:case X.STYLE:case X.TEMPLATE:case X.TITLE:e._err(t,q.abandonedHeadElementChild),e.openElements.push(e.headElement,X.HEAD),ah(e,t),e.openElements.remove(e.headElement);break;case X.HEAD:e._err(t,q.misplacedStartTagForHeadElement);break;default:mh(e,t)}}function ph(e,t){switch(t.tagID){case X.BODY:case X.HTML:case X.BR:mh(e,t);break;case X.TEMPLATE:sh(e,t);break;default:e._err(t,q.endTagWithoutMatchingOpenElement)}}function mh(e,t){e._insertFakeElement(Y.BODY,X.BODY),e.insertionMode=Q.IN_BODY,hh(e,t)}function hh(e,t){switch(t.type){case up.CHARACTER:_h(e,t);break;case up.WHITESPACE_CHARACTER:gh(e,t);break;case up.COMMENT:qm(e,t);break;case up.START_TAG:Xh(e,t);break;case up.END_TAG:cg(e,t);break;case up.EOF:lg(e,t)}}function gh(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function _h(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function vh(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function yh(e,t){let n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function bh(e,t){let n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,J.HTML),e.insertionMode=Q.IN_FRAMESET)}function xh(e,t){e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._insertElement(t,J.HTML)}function Sh(e,t){e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&Mp.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,J.HTML)}function Ch(e,t){e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._insertElement(t,J.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function wh(e,t){let n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._insertElement(t,J.HTML),n||(e.formElement=e.openElements.current))}function Th(e,t){e.framesetOk=!1;let n=t.tagID;for(let t=e.openElements.stackTop;t>=0;t--){let r=e.openElements.tagIDs[t];if(n===X.LI&&r===X.LI||(n===X.DD||n===X.DT)&&(r===X.DD||r===X.DT)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r);break}if(r!==X.ADDRESS&&r!==X.DIV&&r!==X.P&&e._isSpecialElement(e.openElements.items[t],r))break}e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._insertElement(t,J.HTML)}function Eh(e,t){e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._insertElement(t,J.HTML),e.tokenizer.state=Np.PLAINTEXT}function Dh(e,t){e.openElements.hasInScope(X.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(X.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.framesetOk=!1}function Oh(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(Y.A);n&&(Km(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function kh(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Ah(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(X.NOBR)&&(Km(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,J.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function jh(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Mh(e,t){e.treeAdapter.getDocumentMode(e.document)!==Dp.QUIRKS&&e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._insertElement(t,J.HTML),e.framesetOk=!1,e.insertionMode=Q.IN_TABLE}function Nh(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,J.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Ph(e){let t=dp(e,Ep.TYPE);return t!=null&&t.toLowerCase()===Nm}function Fh(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,J.HTML),Ph(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function Ih(e,t){e._appendElement(t,J.HTML),t.ackSelfClosing=!0}function Lh(e,t){e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._appendElement(t,J.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Rh(e,t){t.tagName=Y.IMG,t.tagID=X.IMG,Nh(e,t)}function zh(e,t){e._insertElement(t,J.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Np.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Q.TEXT}function Bh(e,t){e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Np.RAWTEXT)}function Vh(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Np.RAWTEXT)}function Hh(e,t){e._switchToTextParsing(t,Np.RAWTEXT)}function Uh(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===Q.IN_TABLE||e.insertionMode===Q.IN_CAPTION||e.insertionMode===Q.IN_TABLE_BODY||e.insertionMode===Q.IN_ROW||e.insertionMode===Q.IN_CELL?Q.IN_SELECT_IN_TABLE:Q.IN_SELECT}function Wh(e,t){e.openElements.currentTagId===X.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML)}function Gh(e,t){e.openElements.hasInScope(X.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,J.HTML)}function Kh(e,t){e.openElements.hasInScope(X.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(X.RTC),e._insertElement(t,J.HTML)}function qh(e,t){e._reconstructActiveFormattingElements(),Em(t),Om(t),t.selfClosing?e._appendElement(t,J.MATHML):e._insertElement(t,J.MATHML),t.ackSelfClosing=!0}function Jh(e,t){e._reconstructActiveFormattingElements(),Dm(t),Om(t),t.selfClosing?e._appendElement(t,J.SVG):e._insertElement(t,J.SVG),t.ackSelfClosing=!0}function Yh(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML)}function Xh(e,t){switch(t.tagID){case X.I:case X.S:case X.B:case X.U:case X.EM:case X.TT:case X.BIG:case X.CODE:case X.FONT:case X.SMALL:case X.STRIKE:case X.STRONG:kh(e,t);break;case X.A:Oh(e,t);break;case X.H1:case X.H2:case X.H3:case X.H4:case X.H5:case X.H6:Sh(e,t);break;case X.P:case X.DL:case X.OL:case X.UL:case X.DIV:case X.DIR:case X.NAV:case X.MAIN:case X.MENU:case X.ASIDE:case X.CENTER:case X.FIGURE:case X.FOOTER:case X.HEADER:case X.HGROUP:case X.DIALOG:case X.DETAILS:case X.ADDRESS:case X.ARTICLE:case X.SEARCH:case X.SECTION:case X.SUMMARY:case X.FIELDSET:case X.BLOCKQUOTE:case X.FIGCAPTION:xh(e,t);break;case X.LI:case X.DD:case X.DT:Th(e,t);break;case X.BR:case X.IMG:case X.WBR:case X.AREA:case X.EMBED:case X.KEYGEN:Nh(e,t);break;case X.HR:Lh(e,t);break;case X.RB:case X.RTC:Gh(e,t);break;case X.RT:case X.RP:Kh(e,t);break;case X.PRE:case X.LISTING:Ch(e,t);break;case X.XMP:Bh(e,t);break;case X.SVG:Jh(e,t);break;case X.HTML:vh(e,t);break;case X.BASE:case X.LINK:case X.META:case X.STYLE:case X.TITLE:case X.SCRIPT:case X.BGSOUND:case X.BASEFONT:case X.TEMPLATE:ah(e,t);break;case X.BODY:yh(e,t);break;case X.FORM:wh(e,t);break;case X.NOBR:Ah(e,t);break;case X.MATH:qh(e,t);break;case X.TABLE:Mh(e,t);break;case X.INPUT:Fh(e,t);break;case X.PARAM:case X.TRACK:case X.SOURCE:Ih(e,t);break;case X.IMAGE:Rh(e,t);break;case X.BUTTON:Dh(e,t);break;case X.APPLET:case X.OBJECT:case X.MARQUEE:jh(e,t);break;case X.IFRAME:Vh(e,t);break;case X.SELECT:Uh(e,t);break;case X.OPTION:case X.OPTGROUP:Wh(e,t);break;case X.NOEMBED:case X.NOFRAMES:Hh(e,t);break;case X.FRAMESET:bh(e,t);break;case X.TEXTAREA:zh(e,t);break;case X.NOSCRIPT:e.options.scriptingEnabled?Hh(e,t):Yh(e,t);break;case X.PLAINTEXT:Eh(e,t);break;case X.COL:case X.TH:case X.TD:case X.TR:case X.HEAD:case X.FRAME:case X.TBODY:case X.TFOOT:case X.THEAD:case X.CAPTION:case X.COLGROUP:break;default:Yh(e,t)}}function Zh(e,t){if(e.openElements.hasInScope(X.BODY)&&(e.insertionMode=Q.AFTER_BODY,e.options.sourceCodeLocationInfo)){let n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function Qh(e,t){e.openElements.hasInScope(X.BODY)&&(e.insertionMode=Q.AFTER_BODY,qg(e,t))}function $h(e,t){let n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function eg(e){let t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(X.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(X.FORM):n&&e.openElements.remove(n))}function tg(e){e.openElements.hasInButtonScope(X.P)||e._insertFakeElement(Y.P,X.P),e._closePElement()}function ng(e){e.openElements.hasInListItemScope(X.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(X.LI),e.openElements.popUntilTagNamePopped(X.LI))}function rg(e,t){let n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function ig(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function ag(e,t){let n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function og(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(Y.BR,X.BR),e.openElements.pop(),e.framesetOk=!1}function sg(e,t){let n=t.tagName,r=t.tagID;for(let t=e.openElements.stackTop;t>0;t--){let i=e.openElements.items[t],a=e.openElements.tagIDs[t];if(r===a&&(r!==X.UNKNOWN||e.treeAdapter.getTagName(i)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=t&&e.openElements.shortenToLength(t);break}if(e._isSpecialElement(i,a))break}}function cg(e,t){switch(t.tagID){case X.A:case X.B:case X.I:case X.S:case X.U:case X.EM:case X.TT:case X.BIG:case X.CODE:case X.FONT:case X.NOBR:case X.SMALL:case X.STRIKE:case X.STRONG:Km(e,t);break;case X.P:tg(e);break;case X.DL:case X.UL:case X.OL:case X.DIR:case X.DIV:case X.NAV:case X.PRE:case X.MAIN:case X.MENU:case X.ASIDE:case X.BUTTON:case X.CENTER:case X.FIGURE:case X.FOOTER:case X.HEADER:case X.HGROUP:case X.DIALOG:case X.ADDRESS:case X.ARTICLE:case X.DETAILS:case X.SEARCH:case X.SECTION:case X.SUMMARY:case X.LISTING:case X.FIELDSET:case X.BLOCKQUOTE:case X.FIGCAPTION:$h(e,t);break;case X.LI:ng(e);break;case X.DD:case X.DT:rg(e,t);break;case X.H1:case X.H2:case X.H3:case X.H4:case X.H5:case X.H6:ig(e);break;case X.BR:og(e);break;case X.BODY:Zh(e,t);break;case X.HTML:Qh(e,t);break;case X.FORM:eg(e);break;case X.APPLET:case X.OBJECT:case X.MARQUEE:ag(e,t);break;case X.TEMPLATE:sh(e,t);break;default:sg(e,t)}}function lg(e,t){e.tmplInsertionModeStack.length>0?Gg(e,t):Xm(e,t)}function ug(e,t){var n;t.tagID===X.SCRIPT&&((n=e.scriptHandler)==null||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function dg(e,t){e._err(t,q.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function fg(e,t){if(e.openElements.currentTagId!==void 0&&Lm.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=Q.IN_TABLE_TEXT,t.type){case up.CHARACTER:Tg(e,t);break;case up.WHITESPACE_CHARACTER:wg(e,t)}else Cg(e,t)}function pg(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,J.HTML),e.insertionMode=Q.IN_CAPTION}function mg(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,J.HTML),e.insertionMode=Q.IN_COLUMN_GROUP}function hg(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Y.COLGROUP,X.COLGROUP),e.insertionMode=Q.IN_COLUMN_GROUP,Ag(e,t)}function gg(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,J.HTML),e.insertionMode=Q.IN_TABLE_BODY}function _g(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Y.TBODY,X.TBODY),e.insertionMode=Q.IN_TABLE_BODY,Ng(e,t)}function vg(e,t){e.openElements.hasInTableScope(X.TABLE)&&(e.openElements.popUntilTagNamePopped(X.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function yg(e,t){Ph(t)?e._appendElement(t,J.HTML):Cg(e,t),t.ackSelfClosing=!0}function bg(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,J.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function xg(e,t){switch(t.tagID){case X.TD:case X.TH:case X.TR:_g(e,t);break;case X.STYLE:case X.SCRIPT:case X.TEMPLATE:ah(e,t);break;case X.COL:hg(e,t);break;case X.FORM:bg(e,t);break;case X.TABLE:vg(e,t);break;case X.TBODY:case X.TFOOT:case X.THEAD:gg(e,t);break;case X.INPUT:yg(e,t);break;case X.CAPTION:pg(e,t);break;case X.COLGROUP:mg(e,t);break;default:Cg(e,t)}}function Sg(e,t){switch(t.tagID){case X.TABLE:e.openElements.hasInTableScope(X.TABLE)&&(e.openElements.popUntilTagNamePopped(X.TABLE),e._resetInsertionMode());break;case X.TEMPLATE:sh(e,t);break;case X.BODY:case X.CAPTION:case X.COL:case X.COLGROUP:case X.HTML:case X.TBODY:case X.TD:case X.TFOOT:case X.TH:case X.THEAD:case X.TR:break;default:Cg(e,t)}}function Cg(e,t){let n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,hh(e,t),e.fosterParentingEnabled=n}function wg(e,t){e.pendingCharacterTokens.push(t)}function Tg(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Eg(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0&&e.openElements.currentTagId===X.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===X.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===X.OPTGROUP&&e.openElements.pop();break;case X.OPTION:e.openElements.currentTagId===X.OPTION&&e.openElements.pop();break;case X.SELECT:e.openElements.hasInSelectScope(X.SELECT)&&(e.openElements.popUntilTagNamePopped(X.SELECT),e._resetInsertionMode());break;case X.TEMPLATE:sh(e,t)}}function Vg(e,t){let n=t.tagID;n===X.CAPTION||n===X.TABLE||n===X.TBODY||n===X.TFOOT||n===X.THEAD||n===X.TR||n===X.TD||n===X.TH?(e.openElements.popUntilTagNamePopped(X.SELECT),e._resetInsertionMode(),e._processStartTag(t)):zg(e,t)}function Hg(e,t){let n=t.tagID;n===X.CAPTION||n===X.TABLE||n===X.TBODY||n===X.TFOOT||n===X.THEAD||n===X.TR||n===X.TD||n===X.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(X.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Bg(e,t)}function Ug(e,t){switch(t.tagID){case X.BASE:case X.BASEFONT:case X.BGSOUND:case X.LINK:case X.META:case X.NOFRAMES:case X.SCRIPT:case X.STYLE:case X.TEMPLATE:case X.TITLE:ah(e,t);break;case X.CAPTION:case X.COLGROUP:case X.TBODY:case X.TFOOT:case X.THEAD:e.tmplInsertionModeStack[0]=Q.IN_TABLE,e.insertionMode=Q.IN_TABLE,xg(e,t);break;case X.COL:e.tmplInsertionModeStack[0]=Q.IN_COLUMN_GROUP,e.insertionMode=Q.IN_COLUMN_GROUP,Ag(e,t);break;case X.TR:e.tmplInsertionModeStack[0]=Q.IN_TABLE_BODY,e.insertionMode=Q.IN_TABLE_BODY,Ng(e,t);break;case X.TD:case X.TH:e.tmplInsertionModeStack[0]=Q.IN_ROW,e.insertionMode=Q.IN_ROW,Fg(e,t);break;default:e.tmplInsertionModeStack[0]=Q.IN_BODY,e.insertionMode=Q.IN_BODY,Xh(e,t)}}function Wg(e,t){t.tagID===X.TEMPLATE&&sh(e,t)}function Gg(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(X.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Xm(e,t)}function Kg(e,t){t.tagID===X.HTML?Xh(e,t):Jg(e,t)}function qg(e,t){if(t.tagID===X.HTML){if(e.fragmentContext||(e.insertionMode=Q.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===X.HTML){e._setEndLocation(e.openElements.items[0],t);let n=e.openElements.items[1];n&&!e.treeAdapter.getNodeSourceCodeLocation(n)?.endTag&&e._setEndLocation(n,t)}}else Jg(e,t)}function Jg(e,t){e.insertionMode=Q.IN_BODY,hh(e,t)}function Yg(e,t){switch(t.tagID){case X.HTML:Xh(e,t);break;case X.FRAMESET:e._insertElement(t,J.HTML);break;case X.FRAME:e._appendElement(t,J.HTML),t.ackSelfClosing=!0;break;case X.NOFRAMES:ah(e,t)}}function Xg(e,t){t.tagID===X.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==X.FRAMESET&&(e.insertionMode=Q.AFTER_FRAMESET))}function Zg(e,t){switch(t.tagID){case X.HTML:Xh(e,t);break;case X.NOFRAMES:ah(e,t)}}function Qg(e,t){t.tagID===X.HTML&&(e.insertionMode=Q.AFTER_AFTER_FRAMESET)}function $g(e,t){t.tagID===X.HTML?Xh(e,t):e_(e,t)}function e_(e,t){e.insertionMode=Q.IN_BODY,hh(e,t)}function t_(e,t){switch(t.tagID){case X.HTML:Xh(e,t);break;case X.NOFRAMES:ah(e,t)}}function n_(e,t){t.chars=`�`,e._insertCharacters(t)}function r_(e,t){e._insertCharacters(t),e.framesetOk=!1}function i_(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==J.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function a_(e,t){if(Tm(t))i_(e),e._startTagOutsideForeignContent(t);else{let n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===J.MATHML?Em(t):r===J.SVG&&(km(t),Dm(t)),Om(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function o_(e,t){if(t.tagID===X.P||t.tagID===X.BR){i_(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){let r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===J.HTML){e._endTagOutsideForeignContent(t);break}let i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}Y.AREA,Y.BASE,Y.BASEFONT,Y.BGSOUND,Y.BR,Y.COL,Y.EMBED,Y.FRAME,Y.HR,Y.IMG,Y.INPUT,Y.KEYGEN,Y.LINK,Y.META,Y.PARAM,Y.SOURCE,Y.TRACK,Y.WBR;var s_=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,c_=new Set([`mdxFlowExpression`,`mdxJsxFlowElement`,`mdxJsxTextElement`,`mdxTextExpression`,`mdxjsEsm`]),l_={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function u_(e,t){let n=w_(e),r=Bf(`type`,{handlers:{root:f_,element:p_,text:m_,comment:__,doctype:h_,raw:v_},unknown:y_}),i={parser:n?new zm(l_):zm.getFragmentParser(void 0,l_),handle(e){r(e,i)},stitches:!1,options:t||{}};r(e,i),b_(i,yo());let a=jf(n?i.parser.document:i.parser.getFragment(),{file:i.options.file});return i.stitches&&ud(a,`comment`,function(e,t,n){let r=e;if(r.value.stitch&&n&&t!==void 0){let e=n.children;return e[t]=r.value.stitch,t}}),a.type===`root`&&a.children.length===1&&a.children[0].type===e.type?a.children[0]:a}function d_(e,t){let n=-1;if(e)for(;++n4&&(t.parser.tokenizer.state=0);let n={type:up.CHARACTER,chars:e.value,location:T_(e)};b_(t,yo(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function h_(e,t){let n={type:up.DOCTYPE,name:`html`,forceQuirks:!1,publicId:``,systemId:``,location:T_(e)};b_(t,yo(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function g_(e,t){t.stitches=!0;let n=E_(e);`children`in e&&`children`in n&&(n.children=u_({type:`root`,children:e.children},t.options).children),__({type:`comment`,value:{stitch:n}},t)}function __(e,t){let n=e.value,r={type:up.COMMENT,data:n,location:T_(e)};b_(t,yo(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function v_(e,t){if(t.parser.tokenizer.preprocessor.html=``,t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,x_(t,yo(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(s_,`<$1$2`):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;let e=t.parser.tokenizer._consume();t.parser.tokenizer._callState(e)}}function y_(e,t){let n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))g_(n,t);else{let e=``;throw c_.has(n.type)&&(e=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),Error("Cannot compile `"+n.type+"` node"+e)}}function b_(e,t){x_(e,t);let n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Np.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:``,value:``}}function x_(e,t){if(t&&t.offset!==void 0){let n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function S_(e,t){let n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Np.PLAINTEXT)return;b_(t,yo(e));let r=t.parser.openElements.current,i=`namespaceURI`in r?r.namespaceURI:Of.html;i===Of.html&&n===`svg`&&(i=Of.svg);let a=Wf({...e,children:[]},{space:i===Of.svg?`svg`:`html`}),o={type:up.START_TAG,tagName:n,tagID:kp(n),selfClosing:!1,ackSelfClosing:!1,attrs:`attrs`in a?a.attrs:[],location:T_(e)};t.parser.currentToken=o,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function C_(e,t){let n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&ep.includes(n)||t.parser.tokenizer.state===Np.PLAINTEXT)return;b_(t,vo(e));let r={type:up.END_TAG,tagName:n,tagID:kp(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:T_(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Np.RCDATA||t.parser.tokenizer.state===Np.RAWTEXT||t.parser.tokenizer.state===Np.SCRIPT_DATA)&&(t.parser.tokenizer.state=Np.DATA)}function w_(e){let t=e.type===`root`?e.children[0]:e;return!!(t&&(t.type===`doctype`||t.type===`element`&&t.tagName.toLowerCase()===`html`))}function T_(e){let t=yo(e)||{line:void 0,column:void 0,offset:void 0},n=vo(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function E_(e){return`children`in e?Yu({...e,children:[]}):Yu(e)}function D_(e){return function(t,n){return u_(t,{...e,file:n})}}var O_=[`ariaDescribedBy`,`ariaLabel`,`ariaLabelledBy`],k_={ancestors:{tbody:[`table`],td:[`table`],th:[`table`],thead:[`table`],tfoot:[`table`],tr:[`table`]},attributes:{a:[...O_,`dataFootnoteBackref`,`dataFootnoteRef`,[`className`,`data-footnote-backref`],`href`],blockquote:[`cite`],code:[[`className`,/^language-./]],del:[`cite`],div:[`itemScope`,`itemType`],dl:[...O_],h2:[[`className`,`sr-only`]],img:[...O_,`longDesc`,`src`],input:[[`disabled`,!0],[`type`,`checkbox`]],ins:[`cite`],li:[[`className`,`task-list-item`]],ol:[...O_,[`className`,`contains-task-list`]],q:[`cite`],section:[`dataFootnotes`,[`className`,`footnotes`]],source:[`srcSet`],summary:[...O_],table:[...O_],ul:[...O_,[`className`,`contains-task-list`]],"*":`abbr.accept.acceptCharset.accessKey.action.align.alt.axis.border.cellPadding.cellSpacing.char.charOff.charSet.checked.clear.colSpan.color.cols.compact.coords.dateTime.dir.encType.frame.hSpace.headers.height.hrefLang.htmlFor.id.isMap.itemProp.label.lang.maxLength.media.method.multiple.name.noHref.noShade.noWrap.open.prompt.readOnly.rev.rowSpan.rows.rules.scope.selected.shape.size.span.start.summary.tabIndex.title.useMap.vAlign.value.width`.split(`.`)},clobber:[`ariaDescribedBy`,`ariaLabelledBy`,`id`,`name`],clobberPrefix:`user-content-`,protocols:{cite:[`http`,`https`],href:[`http`,`https`,`irc`,`ircs`,`mailto`,`xmpp`],longDesc:[`http`,`https`],src:[`http`,`https`]},required:{input:{disabled:!0,type:`checkbox`}},strip:[`script`],tagNames:`a.b.blockquote.br.code.dd.del.details.div.dl.dt.em.h1.h2.h3.h4.h5.h6.hr.i.img.input.ins.kbd.li.ol.p.picture.pre.q.rp.rt.ruby.s.samp.section.source.span.strike.strong.sub.summary.sup.table.tbody.td.tfoot.th.thead.tr.tt.ul.var`.split(`.`)},A_={}.hasOwnProperty;function j_(e,t){let n={type:`root`,children:[]},r=M_({schema:t?{...k_,...t}:k_,stack:[]},e);return r&&(Array.isArray(r)?r.length===1?n=r[0]:n.children=r:n=r),n}function M_(e,t){if(t&&typeof t==`object`){let n=t;switch(typeof n.type==`string`?n.type:``){case`comment`:return N_(e,n);case`doctype`:return P_(e,n);case`element`:return F_(e,n);case`root`:return I_(e,n);case`text`:return L_(e,n)}}}function N_(e,t){if(e.schema.allowComments){let e=typeof t.value==`string`?t.value:``,n=e.indexOf(`-->`),r={type:`comment`,value:n<0?e:e.slice(0,n)};return W_(r,t),r}}function P_(e,t){if(e.schema.allowDoctypes){let e={type:`doctype`};return W_(e,t),e}}function F_(e,t){let n=typeof t.tagName==`string`?t.tagName:``;e.stack.push(n);let r=R_(e,t.children),i=z_(e,t.properties);e.stack.pop();let a=!1;if(n&&n!==`*`&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(a=!0,e.schema.ancestors&&A_.call(e.schema.ancestors,n))){let t=e.schema.ancestors[n],r=-1;for(a=!1;++r1){let e=!1,n=0;for(;++n-1&&a>c||o>-1&&a>o||s>-1&&a>s)return!0;let l=-1;for(;++l4&&t.slice(0,4).toLowerCase()===`data`)return n}function K_(e){return function(t){return j_(t,e)}}function q_(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}function J_(e,t,n){let r=$u((n||{}).ignore||[]),i=Y_(t),a=-1;for(;++a0?{type:`text`,value:a}:void 0),a===!1?r.lastIndex=n+1:(s!==n&&u.push({type:`text`,value:e.value.slice(s,n)}),Array.isArray(a)?u.push(...a):a&&u.push(a),s=n+d[0].length,l=!0),!r.global)break;d=r.exec(e.value)}return l?(s?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(`)`),i=tv(e,`(`),a=tv(e,`)`);for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(`)`),a++;return[e,n]}function _v(e,t){let n=e.input.charCodeAt(e.index-1);return(e.index===0||Os(n)||Ds(n))&&(!t||n!==47)}Dv.peek=Ev;function vv(){this.buffer()}function yv(e){this.enter({type:`footnoteReference`,identifier:``,label:``},e)}function bv(){this.buffer()}function xv(e){this.enter({type:`footnoteDefinition`,identifier:``,label:``,children:[]},e)}function Sv(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=gs(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Cv(e){this.exit(e)}function wv(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=gs(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Tv(e){this.exit(e)}function Ev(){return`[`}function Dv(e,t,n,r){let i=n.createTracker(r),a=i.move(`[^`),o=n.enter(`footnoteReference`),s=n.enter(`reference`);return a+=i.move(n.safe(n.associationId(e),{after:`]`,before:a})),s(),o(),a+=i.move(`]`),a}function Ov(){return{enter:{gfmFootnoteCallString:vv,gfmFootnoteCall:yv,gfmFootnoteDefinitionLabelString:bv,gfmFootnoteDefinition:xv},exit:{gfmFootnoteCallString:Sv,gfmFootnoteCall:Cv,gfmFootnoteDefinitionLabelString:wv,gfmFootnoteDefinition:Tv}}}function kv(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Dv},unsafe:[{character:`[`,inConstruct:[`label`,`phrasing`,`reference`]}]};function n(e,n,r,i){let a=r.createTracker(i),o=a.move(`[^`),s=r.enter(`footnoteDefinition`),c=r.enter(`label`);return o+=a.move(r.safe(r.associationId(e),{before:o,after:`]`})),c(),o+=a.move(`]:`),e.children&&e.children.length>0&&(a.shift(4),o+=a.move((t?` +`:` `)+r.indentLines(r.containerFlow(e,a.current()),t?jv:Av))),s(),o}}function Av(e,t,n){return t===0?e:jv(e,t,n)}function jv(e,t,n){return(n?``:` `)+e}var Mv=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`];Lv.peek=Rv;function Nv(){return{canContainEols:[`delete`],enter:{strikethrough:Fv},exit:{strikethrough:Iv}}}function Pv(){return{unsafe:[{character:`~`,inConstruct:`phrasing`,notInConstruct:Mv}],handlers:{delete:Lv}}}function Fv(e){this.enter({type:`delete`,children:[]},e)}function Iv(e){this.exit(e)}function Lv(e,t,n,r){let i=n.createTracker(r),a=n.enter(`strikethrough`),o=i.move(`~~`);return o+=n.containerPhrasing(e,{...i.current(),before:o,after:`~`}),o+=i.move(`~~`),a(),o}function Rv(){return`~`}function zv(e){return e.length}function Bv(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||zv,a=[],o=[],s=[],c=[],l=0,u=-1;for(;++ul&&(l=e[u].length);++ac[a])&&(c[a]=e)}t.push(o)}o[u]=t,s[u]=r}let d=-1;if(typeof r==`object`&&`length`in r)for(;++dc[d]&&(c[d]=i),p[d]=i),f[d]=o}o.splice(1,0,f),s.splice(1,0,p),u=-1;let m=[];for(;++u `),a.shift(2);let o=n.indentLines(n.containerFlow(e,a.current()),Wv);return i(),o}function Wv(e,t,n){return`>`+(n?``:` `)+e}function Gv(e,t){return Kv(e,t.inConstruct,!0)&&!Kv(e,t.notInConstruct,!1)}function Kv(e,t,n){if(typeof t==`string`&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++ro&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}function Yv(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function Xv(e){let t=e.options.fence||"`";if(t!=="`"&&t!==`~`)throw Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function Zv(e,t,n,r){let i=Xv(n),a=e.value||``,o=i==="`"?`GraveAccent`:`Tilde`;if(Yv(e,n)){let e=n.enter(`codeIndented`),t=n.indentLines(a,Qv);return e(),t}let s=n.createTracker(r),c=i.repeat(Math.max(Jv(a,i)+1,3)),l=n.enter(`codeFenced`),u=s.move(c);if(e.lang){let t=n.enter(`codeFencedLang${o}`);u+=s.move(n.safe(e.lang,{before:u,after:` `,encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){let t=n.enter(`codeFencedMeta${o}`);u+=s.move(` `),u+=s.move(n.safe(e.meta,{before:u,after:` `,encode:["`"],...s.current()})),t()}return u+=s.move(` `),a&&(u+=s.move(a+` -`)),u+=s.move(c),l(),u}function Zv(e,t,n){return(n?``:` `)+e}function Qv(e){let t=e.options.quote||`"`;if(t!==`"`&&t!==`'`)throw Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function $v(e,t,n,r){let i=Qv(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`definition`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`[`);return l+=c.move(n.safe(n.associationId(e),{before:l,after:`]`,...c.current()})),l+=c.move(`]: `),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:` -`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),o(),l}function ey(e){let t=e.options.emphasis||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function ty(e){return`&#x`+e.toString(16).toUpperCase()+`;`}function ny(e,t,n){let r=Ls(e),i=Ls(t);return r===void 0?i===void 0?n===`_`?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}ry.peek=iy;function ry(e,t,n,r){let i=ey(n),a=n.enter(`emphasis`),o=n.createTracker(r),s=o.move(i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=ny(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=ty(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=ny(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+ty(d));let p=o.move(i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function iy(e,t,n){return n.options.emphasis||`*`}function ay(e,t){let n=!1;return ld(e,function(e){if(`value`in e&&/\r?\n|\r/.test(e.value)||e.type===`break`)return n=!0,!1}),!!((!e.depth||e.depth<3)&&ns(e)&&(t.options.setext||n))}function oy(e,t,n,r){let i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(ay(e,n)){let t=n.enter(`headingSetext`),r=n.enter(`phrasing`),o=n.containerPhrasing(e,{...a.current(),before:` +`)),u+=s.move(c),l(),u}function Qv(e,t,n){return(n?``:` `)+e}function $v(e){let t=e.options.quote||`"`;if(t!==`"`&&t!==`'`)throw Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function ey(e,t,n,r){let i=$v(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`definition`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`[`);return l+=c.move(n.safe(n.associationId(e),{before:l,after:`]`,...c.current()})),l+=c.move(`]: `),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:` +`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),o(),l}function ty(e){let t=e.options.emphasis||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function ny(e){return`&#x`+e.toString(16).toUpperCase()+`;`}function ry(e,t,n){let r=Rs(e),i=Rs(t);return r===void 0?i===void 0?n===`_`?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}iy.peek=ay;function iy(e,t,n,r){let i=ty(n),a=n.enter(`emphasis`),o=n.createTracker(r),s=o.move(i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=ry(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=ny(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=ry(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+ny(d));let p=o.move(i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function ay(e,t,n){return n.options.emphasis||`*`}function oy(e,t){let n=!1;return ud(e,function(e){if(`value`in e&&/\r?\n|\r/.test(e.value)||e.type===`break`)return n=!0,!1}),!!((!e.depth||e.depth<3)&&rs(e)&&(t.options.setext||n))}function sy(e,t,n,r){let i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(oy(e,n)){let t=n.enter(`headingSetext`),r=n.enter(`phrasing`),o=n.containerPhrasing(e,{...a.current(),before:` `,after:` `});return r(),t(),o+` `+(i===1?`=`:`-`).repeat(o.length-(Math.max(o.lastIndexOf(`\r`),o.lastIndexOf(` `))+1))}let o=`#`.repeat(i),s=n.enter(`headingAtx`),c=n.enter(`phrasing`);a.move(o+` `);let l=n.containerPhrasing(e,{before:`# `,after:` -`,...a.current()});return/^[\t ]/.test(l)&&(l=ty(l.charCodeAt(0))+l.slice(1)),l=l?o+` `+l:o,n.options.closeAtx&&(l+=` `+o),c(),s(),l}sy.peek=cy;function sy(e){return e.value||``}function cy(){return`<`}ly.peek=uy;function ly(e,t,n,r){let i=Qv(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`image`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`![`);return l+=c.move(n.safe(e.alt,{before:l,after:`]`,...c.current()})),l+=c.move(`](`),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),l+=c.move(`)`),o(),l}function uy(){return`!`}dy.peek=fy;function dy(e,t,n,r){let i=e.referenceType,a=n.enter(`imageReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`![`),l=n.safe(e.alt,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function fy(){return`!`}py.peek=my;function py(e,t,n){let r=e.value||``,i="`",a=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=` `+r+` `);++a\u007F]/.test(e.url))}gy.peek=_y;function gy(e,t,n,r){let i=Qv(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.createTracker(r),s,c;if(hy(e,n)){let t=n.stack;n.stack=[],s=n.enter(`autolink`);let r=o.move(`<`);return r+=o.move(n.containerPhrasing(e,{before:r,after:`>`,...o.current()})),r+=o.move(`>`),s(),n.stack=t,r}s=n.enter(`link`),c=n.enter(`label`);let l=o.move(`[`);return l+=o.move(n.containerPhrasing(e,{before:l,after:`](`,...o.current()})),l+=o.move(`](`),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter(`destinationLiteral`),l+=o.move(`<`),l+=o.move(n.safe(e.url,{before:l,after:`>`,...o.current()})),l+=o.move(`>`)):(c=n.enter(`destinationRaw`),l+=o.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...o.current()}))),c(),e.title&&(c=n.enter(`title${a}`),l+=o.move(` `+i),l+=o.move(n.safe(e.title,{before:l,after:i,...o.current()})),l+=o.move(i),c()),l+=o.move(`)`),s(),l}function _y(e,t,n){return hy(e,n)?`<`:`[`}vy.peek=yy;function vy(e,t,n,r){let i=e.referenceType,a=n.enter(`linkReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`[`),l=n.containerPhrasing(e,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function yy(){return`[`}function by(e){let t=e.options.bullet||`*`;if(t!==`*`&&t!==`+`&&t!==`-`)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function xy(e){let t=by(e),n=e.options.bulletOther;if(!n)return t===`*`?`-`:`*`;if(n!==`*`&&n!==`+`&&n!==`-`)throw Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function Sy(e){let t=e.options.bulletOrdered||`.`;if(t!==`.`&&t!==`)`)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Cy(e){let t=e.options.rule||`*`;if(t!==`*`&&t!==`-`&&t!==`_`)throw Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function wy(e,t,n,r){let i=n.enter(`list`),a=n.bulletCurrent,o=e.ordered?Sy(n):by(n),s=e.ordered?o===`.`?`)`:`.`:xy(n),c=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){let t=e.children?e.children[0]:void 0;if((o===`*`||o===`-`)&&t&&(!t.children||!t.children[0])&&n.stack[n.stack.length-1]===`list`&&n.stack[n.stack.length-2]===`listItem`&&n.stack[n.stack.length-3]===`list`&&n.stack[n.stack.length-4]===`listItem`&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),Cy(n)===o&&t){let t=-1;for(;++t-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i===`tab`||i===`mixed`&&(t&&t.type===`list`&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);let s=n.createTracker(r);s.move(a+` `.repeat(o-a.length)),s.shift(o);let c=n.enter(`listItem`),l=n.indentLines(n.containerFlow(e,s.current()),u);return c(),l;function u(e,t,n){return t?(n?``:` `.repeat(o))+e:(n?a:a+` `.repeat(o-a.length))+e}}function Dy(e,t,n,r){let i=n.enter(`paragraph`),a=n.enter(`phrasing`),o=n.containerPhrasing(e,r);return a(),i(),o}var Oy=Qu([`break`,`delete`,`emphasis`,`footnote`,`footnoteReference`,`image`,`imageReference`,`inlineCode`,`inlineMath`,`link`,`linkReference`,`mdxJsxTextElement`,`mdxTextExpression`,`strong`,`text`,`textDirective`]);function ky(e,t,n,r){return(e.children.some(function(e){return Oy(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function Ay(e){let t=e.options.strong||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}jy.peek=My;function jy(e,t,n,r){let i=Ay(n),a=n.enter(`strong`),o=n.createTracker(r),s=o.move(i+i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=ny(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=ty(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=ny(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+ty(d));let p=o.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function My(e,t,n){return n.options.strong||`*`}function Ny(e,t,n,r){return n.safe(e.value,r)}function Py(e){let t=e.options.ruleRepetition||3;if(t<3)throw Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function Fy(e,t,n){let r=(Cy(n)+(n.options.ruleSpaces?` `:``)).repeat(Py(n));return n.options.ruleSpaces?r.slice(0,-1):r}var Iy={blockquote:Hv,break:Kv,code:Xv,definition:$v,emphasis:ry,hardBreak:Kv,heading:oy,html:sy,image:ly,imageReference:dy,inlineCode:py,link:gy,linkReference:vy,list:wy,listItem:Ey,paragraph:Dy,root:ky,strong:jy,text:Ny,thematicBreak:Fy};function Ly(){return{enter:{table:Ry,tableData:Hy,tableHeader:Hy,tableRow:By},exit:{codeText:Uy,table:zy,tableData:Vy,tableHeader:Vy,tableRow:Vy}}}function Ry(e){let t=e._align;this.enter({type:`table`,align:t.map(function(e){return e===`none`?null:e}),children:[]},e),this.data.inTable=!0}function zy(e){this.exit(e),this.data.inTable=void 0}function By(e){this.enter({type:`tableRow`,children:[]},e)}function Vy(e){this.exit(e)}function Hy(e){this.enter({type:`tableCell`,children:[]},e)}function Uy(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Wy));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Wy(e,t){return t===`|`?t:e}function Gy(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?` `:`|`;return{unsafe:[{character:`\r`,inConstruct:`tableCell`},{character:` +`,...a.current()});return/^[\t ]/.test(l)&&(l=ny(l.charCodeAt(0))+l.slice(1)),l=l?o+` `+l:o,n.options.closeAtx&&(l+=` `+o),c(),s(),l}cy.peek=ly;function cy(e){return e.value||``}function ly(){return`<`}uy.peek=dy;function uy(e,t,n,r){let i=$v(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`image`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`![`);return l+=c.move(n.safe(e.alt,{before:l,after:`]`,...c.current()})),l+=c.move(`](`),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),l+=c.move(`)`),o(),l}function dy(){return`!`}fy.peek=py;function fy(e,t,n,r){let i=e.referenceType,a=n.enter(`imageReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`![`),l=n.safe(e.alt,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function py(){return`!`}my.peek=hy;function my(e,t,n){let r=e.value||``,i="`",a=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=` `+r+` `);++a\u007F]/.test(e.url))}_y.peek=vy;function _y(e,t,n,r){let i=$v(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.createTracker(r),s,c;if(gy(e,n)){let t=n.stack;n.stack=[],s=n.enter(`autolink`);let r=o.move(`<`);return r+=o.move(n.containerPhrasing(e,{before:r,after:`>`,...o.current()})),r+=o.move(`>`),s(),n.stack=t,r}s=n.enter(`link`),c=n.enter(`label`);let l=o.move(`[`);return l+=o.move(n.containerPhrasing(e,{before:l,after:`](`,...o.current()})),l+=o.move(`](`),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter(`destinationLiteral`),l+=o.move(`<`),l+=o.move(n.safe(e.url,{before:l,after:`>`,...o.current()})),l+=o.move(`>`)):(c=n.enter(`destinationRaw`),l+=o.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...o.current()}))),c(),e.title&&(c=n.enter(`title${a}`),l+=o.move(` `+i),l+=o.move(n.safe(e.title,{before:l,after:i,...o.current()})),l+=o.move(i),c()),l+=o.move(`)`),s(),l}function vy(e,t,n){return gy(e,n)?`<`:`[`}yy.peek=by;function yy(e,t,n,r){let i=e.referenceType,a=n.enter(`linkReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`[`),l=n.containerPhrasing(e,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function by(){return`[`}function xy(e){let t=e.options.bullet||`*`;if(t!==`*`&&t!==`+`&&t!==`-`)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Sy(e){let t=xy(e),n=e.options.bulletOther;if(!n)return t===`*`?`-`:`*`;if(n!==`*`&&n!==`+`&&n!==`-`)throw Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function Cy(e){let t=e.options.bulletOrdered||`.`;if(t!==`.`&&t!==`)`)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function wy(e){let t=e.options.rule||`*`;if(t!==`*`&&t!==`-`&&t!==`_`)throw Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function Ty(e,t,n,r){let i=n.enter(`list`),a=n.bulletCurrent,o=e.ordered?Cy(n):xy(n),s=e.ordered?o===`.`?`)`:`.`:Sy(n),c=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){let t=e.children?e.children[0]:void 0;if((o===`*`||o===`-`)&&t&&(!t.children||!t.children[0])&&n.stack[n.stack.length-1]===`list`&&n.stack[n.stack.length-2]===`listItem`&&n.stack[n.stack.length-3]===`list`&&n.stack[n.stack.length-4]===`listItem`&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),wy(n)===o&&t){let t=-1;for(;++t-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i===`tab`||i===`mixed`&&(t&&t.type===`list`&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);let s=n.createTracker(r);s.move(a+` `.repeat(o-a.length)),s.shift(o);let c=n.enter(`listItem`),l=n.indentLines(n.containerFlow(e,s.current()),u);return c(),l;function u(e,t,n){return t?(n?``:` `.repeat(o))+e:(n?a:a+` `.repeat(o-a.length))+e}}function Oy(e,t,n,r){let i=n.enter(`paragraph`),a=n.enter(`phrasing`),o=n.containerPhrasing(e,r);return a(),i(),o}var ky=$u([`break`,`delete`,`emphasis`,`footnote`,`footnoteReference`,`image`,`imageReference`,`inlineCode`,`inlineMath`,`link`,`linkReference`,`mdxJsxTextElement`,`mdxTextExpression`,`strong`,`text`,`textDirective`]);function Ay(e,t,n,r){return(e.children.some(function(e){return ky(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function jy(e){let t=e.options.strong||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}My.peek=Ny;function My(e,t,n,r){let i=jy(n),a=n.enter(`strong`),o=n.createTracker(r),s=o.move(i+i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=ry(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=ny(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=ry(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+ny(d));let p=o.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function Ny(e,t,n){return n.options.strong||`*`}function Py(e,t,n,r){return n.safe(e.value,r)}function Fy(e){let t=e.options.ruleRepetition||3;if(t<3)throw Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function Iy(e,t,n){let r=(wy(n)+(n.options.ruleSpaces?` `:``)).repeat(Fy(n));return n.options.ruleSpaces?r.slice(0,-1):r}var Ly={blockquote:Uv,break:qv,code:Zv,definition:ey,emphasis:iy,hardBreak:qv,heading:sy,html:cy,image:uy,imageReference:fy,inlineCode:my,link:_y,linkReference:yy,list:Ty,listItem:Dy,paragraph:Oy,root:Ay,strong:My,text:Py,thematicBreak:Iy};function Ry(){return{enter:{table:zy,tableData:Uy,tableHeader:Uy,tableRow:Vy},exit:{codeText:Wy,table:By,tableData:Hy,tableHeader:Hy,tableRow:Hy}}}function zy(e){let t=e._align;this.enter({type:`table`,align:t.map(function(e){return e===`none`?null:e}),children:[]},e),this.data.inTable=!0}function By(e){this.exit(e),this.data.inTable=void 0}function Vy(e){this.enter({type:`tableRow`,children:[]},e)}function Hy(e){this.exit(e)}function Uy(e){this.enter({type:`tableCell`,children:[]},e)}function Wy(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Gy));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Gy(e,t){return t===`|`?t:e}function Ky(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?` `:`|`;return{unsafe:[{character:`\r`,inConstruct:`tableCell`},{character:` `,inConstruct:`tableCell`},{atBreak:!0,character:`|`,after:`[ :-]`},{character:`|`,inConstruct:`tableCell`},{atBreak:!0,character:`:`,after:`-`},{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{inlineCode:f,table:o,tableCell:c,tableRow:s}};function o(e,t,n,r){return l(u(e,n,r),e.align)}function s(e,t,n,r){let i=l([d(e,n,r)]);return i.slice(0,i.indexOf(` -`))}function c(e,t,n,r){let i=n.enter(`tableCell`),o=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function l(e,t){return zv(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function u(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`table`);for(;++i0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var Cb={tokenize:jb,partial:!0};function wb(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:Ob,continuation:{tokenize:kb},exit:Ab}},text:{91:{name:`gfmFootnoteCall`,tokenize:Db},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:Tb,resolveTo:Eb}}}}function Tb(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let e=r.events[i][1];if(e.type===`labelImage`){o=e;break}if(e.type===`gfmFootnoteCall`||e.type===`labelLink`||e.type===`label`||e.type===`image`||e.type===`link`)break}return s;function s(i){if(!o||!o._balanced)return n(i);let s=hs(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?n(i):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),t(i))}}function Eb(e,t){let n=e.length;for(;n--;)if(e[n][1].type===`labelImage`&&e[n][0]===`enter`){e[n][1];break}e[n+1][1].type=`data`,e[n+3][1].type=`gfmFootnoteCallLabelMarker`;let r={type:`gfmFootnoteCall`,start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:`gfmFootnoteCallMarker`,start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:`gfmFootnoteCallString`,start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:`chunkString`,contentType:`string`,start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],[`enter`,r,t],e[n+3],e[n+4],[`enter`,i,t],[`exit`,i,t],[`enter`,a,t],[`enter`,o,t],[`exit`,o,t],[`exit`,a,t],e[e.length-2],e[e.length-1],[`exit`,r,t]];return e.splice(n,e.length-n+1,...s),e}function Db(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return s;function s(t){return e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),c}function c(t){return t===94?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,l):n(t)}function l(s){if(a>999||s===93&&!o||s===null||s===91||ws(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(hs(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return ws(s)||(o=!0),a++,e.consume(s),s===92?u:l}function u(t){return t===91||t===92||t===93?(e.consume(t),a++,l):l(t)}}function Ob(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,s;return c;function c(t){return e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),l}function l(t){return t===94?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,u):n(t)}function u(t){if(o>999||t===93&&!s||t===null||t===91||ws(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=hs(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return ws(t)||(s=!0),o++,e.consume(t),t===92?d:u}function d(t){return t===91||t===92||t===93?(e.consume(t),o++,u):u(t)}function f(t){return t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),i.includes(a)||i.push(a),As(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function kb(e,t,n){return e.check(Gs,t,e.attempt(Cb,t,n))}function Ab(e){e.exit(`gfmFootnoteDefinition`)}function jb(e,t,n){let r=this;return As(e,i,`gfmFootnoteDefinitionIndent`,5);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`gfmFootnoteDefinitionIndent`&&i[2].sliceSerialize(i[1],!0).length===4?t(e):n(e)}}function Mb(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;for(;++n1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=Ls(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var Nb=class{constructor(){this.map=[]}add(e,t,n){Pb(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}};function Pb(e,t,n,r){let i=0;if(n!==0||r.length!==0){for(;i-1;){let e=r.events[t][1].type;if(e===`lineEnding`||e===`linePrefix`)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?S:c;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===124?u(e):(o=!0,a+=1,u(e))}function u(t){return t===null?n(t):Cs(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):Ts(t)?As(e,u,`whitespace`)(t):(a+=1,o&&(o=!1,i+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(`data`),d(t)))}function d(t){return t===null||t===124||ws(t)?(e.exit(`data`),u(t)):(e.consume(t),t===92?f:d)}function f(t){return t===92||t===124?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,Ts(t)?As(e,m,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):m(t))}function m(t){return t===45||t===58?g(t):t===124?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return Ts(t)?As(e,g,`whitespace`)(t):g(t)}function g(t){return t===58?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===45?(a+=1,_(t)):t===null||Cs(t)?b(t):x(t)}function _(t){return t===45?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===45?(e.consume(t),v):t===58?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return Ts(t)?As(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||Cs(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter(`tableRow`),C(t)}function C(n){return n===124?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),C):n===null||Cs(n)?(e.exit(`tableRow`),t(n)):Ts(n)?As(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||ws(t)?(e.exit(`data`),C(t)):(e.consume(t),t===92?T:w)}function T(t){return t===92||t===124?(e.consume(t),w):w(t)}}function Rb(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new Nb;for(;++nn[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},Vb(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function Bb(e,t,n,r,i){let a=[],o=Vb(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function Vb(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var Hb={name:`tasklistCheck`,tokenize:Wb};function Ub(){return{text:{91:Hb}}}function Wb(e,t,n){let r=this;return i;function i(t){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return ws(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return Cs(r)?t(r):Ts(r)?e.check({tokenize:Gb},t,n)(r):n(r)}}function Gb(e,t,n){return As(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function Kb(e){return ds([cb(),wb(),Mb(e),Ib(),Ub()])}var qb={};function Jb(e){let t=this,n=e||qb,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(Kb(n)),a.push(Zy()),o.push(Qy(n))}var Yb=(0,_.createContext)(null),Xb=Promise.resolve();function Zb({src:e,alt:t}){let n=(0,_.useContext)(Yb),r=(0,_.useMemo)(()=>new Vr,[]),[i,a]=(0,_.useState)(``),[o,s]=(0,_.useState)(!1),c=n?.parent;return(0,_.useEffect)(()=>{if(!c||!n?.sessionId)return;let t=n.sessionId,i=new AbortController,o,l;return Xb=Xb.then(async()=>{try{if(i.signal.aborted||(o=(await r.resolveArtifact(t,e,c,i.signal)).handle,i.signal.aborted))return;let n=await r.artifactPreview(t,o,i.signal),s=await r.downloadArtifact(n.artifact,i.signal),u=Ur(new Uint8Array(await s.slice(0,12).arrayBuffer()));if(!u)throw Error(`Unsupported image`);i.signal.aborted||(l=URL.createObjectURL(new Blob([s],{type:u})),a(l))}catch{i.signal.aborted||s(!0)}finally{o&&r.releaseArtifact(t,o).catch(()=>void 0)}}),()=>{i.abort(),l&&URL.revokeObjectURL(l)}},[r,e,c,n?.sessionId]),i?(0,W.jsx)(`img`,{className:`file-inline-image`,src:i,alt:t}):(0,W.jsx)(`span`,{children:o?`[${t||e}]`:t})}var Qb=`modulepreload`,$b=function(e){return`/`+e},ex={},tx=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=$b(t,n),t=s(t),t in ex)return;ex[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:Qb,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},nx=(0,_.lazy)(()=>tx(()=>import(`./app-MermaidPreview.js`).then(e=>e.t),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20])));function rx(){return e=>{let t=e=>e.type===`text`?e.value:e.type===`element`&&![`ul`,`ol`].includes(e.tagName)?e.children.map(t).join(``):``,n=e=>{if(e.type===`element`&&(e.tagName===`li`||e.tagName===`p`)){let n=t(e).trim();for(let t of e.children)t.type===`element`&&t.tagName===`input`&&t.properties.type===`checkbox`&&n&&(t.properties.ariaLabel=n)}for(let t of e.children)t.type===`element`&&n(t)};n(e)}}function ix(){return e=>{let t=e=>{if(e.type===`element`){let t=e.tagName===`a`?`href`:e.tagName===`img`?`src`:void 0,n=t?e.properties[t]:void 0,r=typeof n==`string`?n.replace(/%5c/giu,`\\`):n;t&&typeof r==`string`&&/^[a-z]:[\\/]/iu.test(r)&&!/[\x00-\x1f\x7f]/u.test(r)&&(e.data={...e.data,openpiWindowsPath:r},e.properties[t]=`./`)}for(let n of e.children)n.type===`element`&&t(n)};t(e)}}function ax(e){let t=e?.data?.openpiWindowsPath;return typeof t==`string`?t:void 0}function ox(e){if(!e.trim())return``;try{let t=new URL(e,document.baseURI);return[`http:`,`https:`,`mailto:`,`tel:`].includes(t.protocol)?t.href:``}catch{return``}}function sx({children:e,node:t,...n}){let{t:r}=Qn(),[i,a]=(0,_.useState)(`idle`),o=(0,_.useRef)(0),s=(0,_.useRef)(void 0),c=(0,_.useRef)(null);(0,_.useEffect)(()=>()=>{o.current+=1,window.clearTimeout(s.current)},[]);let l=i===`copied`;return(0,W.jsxs)(`div`,{className:`markdown-code-block`,children:[(0,W.jsxs)(`div`,{className:`markdown-code-toolbar`,children:[i===`failed`&&(0,W.jsx)(`span`,{role:`status`,children:r(`copyCodeFailed`)}),(0,W.jsx)(`button`,{type:`button`,"aria-label":r(l?`copiedCode`:`copyCode`),title:r(l?`copiedCode`:`copyCode`),disabled:i===`copying`,onClick:()=>{let e=++o.current;window.clearTimeout(s.current),a(`copying`),cr(c.current?.textContent??``).then(t=>{e===o.current&&(a(t?`copied`:`failed`),t&&(s.current=window.setTimeout(()=>a(`idle`),1200)))})},children:l?(0,W.jsx)(M,{"aria-hidden":`true`}):(0,W.jsx)(re,{"aria-hidden":`true`})})]}),(0,W.jsx)(`section`,{className:`markdown-code-scroll`,"aria-label":r(`codeBlock`),tabIndex:0,onKeyDown:e=>{if(e.key!==`ArrowLeft`&&e.key!==`ArrowRight`)return;let t=e.currentTarget;t.scrollWidth<=t.clientWidth||(e.preventDefault(),t.scrollLeft+=e.key===`ArrowRight`?40:-40)},children:(0,W.jsx)(`pre`,{ref:c,...n,children:e})})]})}function cx(e){let t=e.children;return(0,_.isValidElement)(t)&&t.props.className===`language-mermaid`?(0,W.jsx)(_.Suspense,{fallback:(0,W.jsx)(`pre`,{children:t.props.children}),children:(0,W.jsx)(nx,{source:String(t.props.children??``)})}):(0,W.jsx)(sx,{...e})}var lx=(0,_.memo)(function({children:e,filePreview:t=!1}){let{t:n}=Qn(),r=(0,_.useContext)(Yb),i=0;return(0,W.jsx)(`div`,{className:`markdown`,children:(0,W.jsx)(cf,{remarkPlugins:[Jb,$_],rehypePlugins:[...t?[E_]:[],ix,G_,rx],urlTransform:e=>lr(e)?e:ox(e),components:{pre:t?cx:sx,table({children:e,...t}){return(0,W.jsx)(`section`,{className:`markdown-table-scroll`,"aria-label":`Table`,tabIndex:0,children:(0,W.jsx)(`table`,{...t,children:e})})},a({href:e,node:t,children:i,...a}){if(e=ax(t)??e,lr(e??``))return r&&!r.disabled?(0,W.jsxs)(`button`,{type:`button`,className:`artifact-link`,title:`Open read-only file: ${e}`,onClick:()=>r.open(e??``,r.parent),children:[i,(0,W.jsxs)(`small`,{className:`artifact-link-path`,"aria-hidden":`true`,children:[` `,`(`,e,`)`]})]}):(0,W.jsxs)(`span`,{title:n(`artifactReferenceUnavailable`,{path:e}),children:[i,(0,W.jsxs)(`small`,{className:`artifact-link-path`,children:[` (`,e,`)`]})]});let o=ox(e??``);return o?(0,W.jsx)(`a`,{...a,href:o,target:`_blank`,rel:`noreferrer`,children:i}):i},img({src:e,node:a,alt:o,title:s}){if(e=ax(a)??e,t&&e&&lr(e)&&r?.parent&&!r.disabled&&i++<16)return(0,W.jsx)(Zb,{src:e,alt:o||``});if(lr(e??``))return r&&!r.disabled?(0,W.jsxs)(`button`,{type:`button`,className:`artifact-link`,title:`Open read-only file: ${e}`,onClick:()=>r.open(e??``,r.parent),children:[`[image: `,o||`image`,`]`,(0,W.jsxs)(`small`,{className:`artifact-link-path`,"aria-hidden":`true`,children:[` `,`(`,e,`)`]})]}):(0,W.jsxs)(`span`,{title:n(`artifactReferenceUnavailable`,{path:e}),children:[`[image: `,o||`image`,`]`,(0,W.jsxs)(`small`,{className:`artifact-link-path`,children:[` (`,e,`)`]})]});let c=ox(e??``),l=o||`image`;return c?(0,W.jsxs)(`a`,{href:c,title:s,target:`_blank`,rel:`noreferrer`,children:[`[image: `,l,`]`]}):(0,W.jsx)(`span`,{children:l})}},children:e})})}),ux=(0,_.createContext)(void 0);function dx(){return(0,_.useContext)(ux)}function fx(e,t){let n=[],r=[],i=``,a=!1,o=!1;for(let s=0;s0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var wb={tokenize:Mb,partial:!0};function Tb(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:kb,continuation:{tokenize:Ab},exit:jb}},text:{91:{name:`gfmFootnoteCall`,tokenize:Ob},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:Eb,resolveTo:Db}}}}function Eb(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let e=r.events[i][1];if(e.type===`labelImage`){o=e;break}if(e.type===`gfmFootnoteCall`||e.type===`labelLink`||e.type===`label`||e.type===`image`||e.type===`link`)break}return s;function s(i){if(!o||!o._balanced)return n(i);let s=gs(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?n(i):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),t(i))}}function Db(e,t){let n=e.length;for(;n--;)if(e[n][1].type===`labelImage`&&e[n][0]===`enter`){e[n][1];break}e[n+1][1].type=`data`,e[n+3][1].type=`gfmFootnoteCallLabelMarker`;let r={type:`gfmFootnoteCall`,start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:`gfmFootnoteCallMarker`,start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:`gfmFootnoteCallString`,start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:`chunkString`,contentType:`string`,start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],[`enter`,r,t],e[n+3],e[n+4],[`enter`,i,t],[`exit`,i,t],[`enter`,a,t],[`enter`,o,t],[`exit`,o,t],[`exit`,a,t],e[e.length-2],e[e.length-1],[`exit`,r,t]];return e.splice(n,e.length-n+1,...s),e}function Ob(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return s;function s(t){return e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),c}function c(t){return t===94?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,l):n(t)}function l(s){if(a>999||s===93&&!o||s===null||s===91||Ts(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(gs(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return Ts(s)||(o=!0),a++,e.consume(s),s===92?u:l}function u(t){return t===91||t===92||t===93?(e.consume(t),a++,l):l(t)}}function kb(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,s;return c;function c(t){return e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),l}function l(t){return t===94?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,u):n(t)}function u(t){if(o>999||t===93&&!s||t===null||t===91||Ts(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=gs(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return Ts(t)||(s=!0),o++,e.consume(t),t===92?d:u}function d(t){return t===91||t===92||t===93?(e.consume(t),o++,u):u(t)}function f(t){return t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),i.includes(a)||i.push(a),js(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function Ab(e,t,n){return e.check(Ks,t,e.attempt(wb,t,n))}function jb(e){e.exit(`gfmFootnoteDefinition`)}function Mb(e,t,n){let r=this;return js(e,i,`gfmFootnoteDefinitionIndent`,5);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`gfmFootnoteDefinitionIndent`&&i[2].sliceSerialize(i[1],!0).length===4?t(e):n(e)}}function Nb(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;for(;++n1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=Rs(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var Pb=class{constructor(){this.map=[]}add(e,t,n){Fb(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}};function Fb(e,t,n,r){let i=0;if(n!==0||r.length!==0){for(;i-1;){let e=r.events[t][1].type;if(e===`lineEnding`||e===`linePrefix`)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?S:c;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===124?u(e):(o=!0,a+=1,u(e))}function u(t){return t===null?n(t):ws(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):Es(t)?js(e,u,`whitespace`)(t):(a+=1,o&&(o=!1,i+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(`data`),d(t)))}function d(t){return t===null||t===124||Ts(t)?(e.exit(`data`),u(t)):(e.consume(t),t===92?f:d)}function f(t){return t===92||t===124?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,Es(t)?js(e,m,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):m(t))}function m(t){return t===45||t===58?g(t):t===124?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return Es(t)?js(e,g,`whitespace`)(t):g(t)}function g(t){return t===58?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===45?(a+=1,_(t)):t===null||ws(t)?b(t):x(t)}function _(t){return t===45?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===45?(e.consume(t),v):t===58?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return Es(t)?js(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||ws(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter(`tableRow`),C(t)}function C(n){return n===124?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),C):n===null||ws(n)?(e.exit(`tableRow`),t(n)):Es(n)?js(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||Ts(t)?(e.exit(`data`),C(t)):(e.consume(t),t===92?T:w)}function T(t){return t===92||t===124?(e.consume(t),w):w(t)}}function zb(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new Pb;for(;++nn[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},Hb(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function Vb(e,t,n,r,i){let a=[],o=Hb(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function Hb(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var Ub={name:`tasklistCheck`,tokenize:Gb};function Wb(){return{text:{91:Ub}}}function Gb(e,t,n){let r=this;return i;function i(t){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return Ts(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return ws(r)?t(r):Es(r)?e.check({tokenize:Kb},t,n)(r):n(r)}}function Kb(e,t,n){return js(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function qb(e){return fs([lb(),Tb(),Nb(e),Lb(),Wb()])}var Jb={};function Yb(e){let t=this,n=e||Jb,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(qb(n)),a.push(Qy()),o.push($y(n))}var Xb=(0,_.createContext)(null),Zb=Promise.resolve();function Qb({src:e,alt:t}){let n=(0,_.useContext)(Xb),r=(0,_.useMemo)(()=>new Vr,[]),[i,a]=(0,_.useState)(``),[o,s]=(0,_.useState)(!1),c=n?.parent;return(0,_.useEffect)(()=>{if(!c||!n?.sessionId)return;let t=n.sessionId,i=new AbortController,o,l;return Zb=Zb.then(async()=>{try{if(i.signal.aborted||(o=(await r.resolveArtifact(t,e,c,i.signal)).handle,i.signal.aborted))return;let n=await r.artifactPreview(t,o,i.signal),s=await r.downloadArtifact(n.artifact,i.signal),u=Ur(new Uint8Array(await s.slice(0,12).arrayBuffer()));if(!u)throw Error(`Unsupported image`);i.signal.aborted||(l=URL.createObjectURL(new Blob([s],{type:u})),a(l))}catch{i.signal.aborted||s(!0)}finally{o&&r.releaseArtifact(t,o).catch(()=>void 0)}}),()=>{i.abort(),l&&URL.revokeObjectURL(l)}},[r,e,c,n?.sessionId]),i?(0,G.jsx)(`img`,{className:`file-inline-image`,src:i,alt:t}):(0,G.jsx)(`span`,{children:o?`[${t||e}]`:t})}var $b=`modulepreload`,ex=function(e){return`/`+e},tx={},nx=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=ex(t,n),t=s(t),t in tx)return;tx[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:$b,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},rx=(0,_.lazy)(()=>nx(()=>import(`./app-MermaidPreview.js`).then(e=>e.t),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20])));function ix(){return e=>{let t=e=>e.type===`text`?e.value:e.type===`element`&&![`ul`,`ol`].includes(e.tagName)?e.children.map(t).join(``):``,n=e=>{if(e.type===`element`&&(e.tagName===`li`||e.tagName===`p`)){let n=t(e).trim();for(let t of e.children)t.type===`element`&&t.tagName===`input`&&t.properties.type===`checkbox`&&n&&(t.properties.ariaLabel=n)}for(let t of e.children)t.type===`element`&&n(t)};n(e)}}function ax(){return e=>{let t=e=>{if(e.type===`element`){let t=e.tagName===`a`?`href`:e.tagName===`img`?`src`:void 0,n=t?e.properties[t]:void 0,r=typeof n==`string`?n.replace(/%5c/giu,`\\`):n;t&&typeof r==`string`&&/^[a-z]:[\\/]/iu.test(r)&&!/[\x00-\x1f\x7f]/u.test(r)&&(e.data={...e.data,openpiWindowsPath:r},e.properties[t]=`./`)}for(let n of e.children)n.type===`element`&&t(n)};t(e)}}function ox(e){let t=e?.data?.openpiWindowsPath;return typeof t==`string`?t:void 0}function sx(e){if(!e.trim())return``;try{let t=new URL(e,document.baseURI);return[`http:`,`https:`,`mailto:`,`tel:`].includes(t.protocol)?t.href:``}catch{return``}}function cx({children:e,node:t,...n}){let{t:r}=Qn(),[i,a]=(0,_.useState)(`idle`),o=(0,_.useRef)(0),s=(0,_.useRef)(void 0),c=(0,_.useRef)(null);(0,_.useEffect)(()=>()=>{o.current+=1,window.clearTimeout(s.current)},[]);let l=i===`copied`;return(0,G.jsxs)(`div`,{className:`markdown-code-block`,children:[(0,G.jsxs)(`div`,{className:`markdown-code-toolbar`,children:[i===`failed`&&(0,G.jsx)(`span`,{role:`status`,children:r(`copyCodeFailed`)}),(0,G.jsx)(`button`,{type:`button`,"aria-label":r(l?`copiedCode`:`copyCode`),title:r(l?`copiedCode`:`copyCode`),disabled:i===`copying`,onClick:()=>{let e=++o.current;window.clearTimeout(s.current),a(`copying`),cr(c.current?.textContent??``).then(t=>{e===o.current&&(a(t?`copied`:`failed`),t&&(s.current=window.setTimeout(()=>a(`idle`),1200)))})},children:l?(0,G.jsx)(M,{"aria-hidden":`true`}):(0,G.jsx)(te,{"aria-hidden":`true`})})]}),(0,G.jsx)(`section`,{className:`markdown-code-scroll`,"aria-label":r(`codeBlock`),tabIndex:0,onKeyDown:e=>{if(e.key!==`ArrowLeft`&&e.key!==`ArrowRight`)return;let t=e.currentTarget;t.scrollWidth<=t.clientWidth||(e.preventDefault(),t.scrollLeft+=e.key===`ArrowRight`?40:-40)},children:(0,G.jsx)(`pre`,{ref:c,...n,children:e})})]})}function lx(e){let t=e.children;return(0,_.isValidElement)(t)&&t.props.className===`language-mermaid`?(0,G.jsx)(_.Suspense,{fallback:(0,G.jsx)(`pre`,{children:t.props.children}),children:(0,G.jsx)(rx,{source:String(t.props.children??``)})}):(0,G.jsx)(cx,{...e})}var ux=(0,_.memo)(function({children:e,filePreview:t=!1}){let{t:n}=Qn(),r=(0,_.useContext)(Xb),i=0;return(0,G.jsx)(`div`,{className:`markdown`,children:(0,G.jsx)(lf,{remarkPlugins:[Yb,ev],rehypePlugins:[...t?[D_]:[],ax,K_,ix],urlTransform:e=>lr(e)?e:sx(e),components:{pre:t?lx:cx,table({children:e,...t}){return(0,G.jsx)(`section`,{className:`markdown-table-scroll`,"aria-label":`Table`,tabIndex:0,children:(0,G.jsx)(`table`,{...t,children:e})})},a({href:e,node:t,children:i,...a}){if(e=ox(t)??e,lr(e??``))return r&&!r.disabled?(0,G.jsxs)(`button`,{type:`button`,className:`artifact-link`,title:`Open read-only file: ${e}`,onClick:()=>r.open(e??``,r.parent),children:[i,(0,G.jsxs)(`small`,{className:`artifact-link-path`,"aria-hidden":`true`,children:[` `,`(`,e,`)`]})]}):(0,G.jsxs)(`span`,{title:n(`artifactReferenceUnavailable`,{path:e}),children:[i,(0,G.jsxs)(`small`,{className:`artifact-link-path`,children:[` (`,e,`)`]})]});let o=sx(e??``);return o?(0,G.jsx)(`a`,{...a,href:o,target:`_blank`,rel:`noreferrer`,children:i}):i},img({src:e,node:a,alt:o,title:s}){if(e=ox(a)??e,t&&e&&lr(e)&&r?.parent&&!r.disabled&&i++<16)return(0,G.jsx)(Qb,{src:e,alt:o||``});if(lr(e??``))return r&&!r.disabled?(0,G.jsxs)(`button`,{type:`button`,className:`artifact-link`,title:`Open read-only file: ${e}`,onClick:()=>r.open(e??``,r.parent),children:[`[image: `,o||`image`,`]`,(0,G.jsxs)(`small`,{className:`artifact-link-path`,"aria-hidden":`true`,children:[` `,`(`,e,`)`]})]}):(0,G.jsxs)(`span`,{title:n(`artifactReferenceUnavailable`,{path:e}),children:[`[image: `,o||`image`,`]`,(0,G.jsxs)(`small`,{className:`artifact-link-path`,children:[` (`,e,`)`]})]});let c=sx(e??``),l=o||`image`;return c?(0,G.jsxs)(`a`,{href:c,title:s,target:`_blank`,rel:`noreferrer`,children:[`[image: `,l,`]`]}):(0,G.jsx)(`span`,{children:l})}},children:e})})}),dx=(0,_.createContext)(void 0);function fx(){return(0,_.useContext)(dx)}function px(e,t){let n=[],r=[],i=``,a=!1,o=!1;for(let s=0;s${e}`}function mx({table:e}){let{t}=Qn(),n=Math.max(0,...e.rows.map(e=>e.length));return(0,W.jsxs)(W.Fragment,{children:[e.truncated&&(0,W.jsx)(`p`,{className:`evidence-warning`,children:t(`filesTableTruncated`)}),(0,W.jsx)(`section`,{className:`file-table-scroll`,"aria-label":e.name||t(`filesTable`),tabIndex:0,children:(0,W.jsxs)(`table`,{className:`file-table`,children:[(0,W.jsx)(`thead`,{children:(0,W.jsxs)(`tr`,{children:[(0,W.jsx)(`th`,{"aria-label":t(`filesRow`)}),Array.from({length:n},(e,t)=>(0,W.jsx)(`th`,{scope:`col`,children:t<26?String.fromCharCode(65+t):`A${String.fromCharCode(65+t-26)}`},t))]})}),(0,W.jsx)(`tbody`,{children:e.rows.map((e,t)=>(0,W.jsxs)(`tr`,{children:[(0,W.jsx)(`th`,{scope:`row`,className:`file-row-number`,children:t+1}),Array.from({length:n},(t,n)=>(0,W.jsx)(`td`,{children:e[n]??``},n))]},t))})]})})]})}function hx({html:e,name:t}){return(0,W.jsx)(`iframe`,{className:`file-preview-frame`,title:t,sandbox:``,referrerPolicy:`no-referrer`,srcDoc:px(e)})}function gx({data:e,extension:t,name:n,initialPage:r,onReadingChange:i}){let{t:a}=Qn(),[o,s]=(0,_.useState)(null),[c,l]=(0,_.useState)(``),[u,d]=(0,_.useState)(r??0);return(0,_.useEffect)(()=>i(u),[i,u]),(0,_.useEffect)(()=>{let n=new Worker(new URL(`/app-office-worker-pvhGCwqI.js`,``+import.meta.url),{type:`module`}),r=window.setTimeout(()=>{n.terminate(),l(a(`filesDocumentLimit`))},15e3);n.onmessage=e=>{clearTimeout(r),n.terminate(),e.data.result?s(e.data.result):l(e.data.error||a(`filesPreviewFailed`))},n.onerror=()=>{clearTimeout(r),n.terminate(),l(a(`filesPreviewFailed`))};let i=e.slice(0);return n.postMessage({data:i,extension:t},[i]),()=>{clearTimeout(r),n.terminate()}},[e,t,a]),c?(0,W.jsx)(`p`,{role:`alert`,className:`evidence-warning`,children:c}):o?o.kind===`document`?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(`p`,{className:`file-preview-note`,children:a(`filesOfficeLayout`)}),(0,W.jsx)(hx,{html:o.html,name:n})]}):o.kind===`sheets`?(0,W.jsxs)(W.Fragment,{children:[o.truncated&&(0,W.jsx)(`p`,{children:a(`filesTableTruncated`)}),(0,W.jsx)(`div`,{className:`file-sheet-tabs`,role:`toolbar`,"aria-label":a(`filesSheets`),children:o.sheets.map((e,t)=>(0,W.jsx)(`button`,{type:`button`,"aria-pressed":u===t,onClick:()=>d(t),children:e.name},e.name))}),o.sheets[u]&&(0,W.jsx)(mx,{table:o.sheets[u]})]}):(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(`div`,{className:`file-preview-toolbar`,children:[(0,W.jsx)(`button`,{type:`button`,disabled:u===0,"aria-label":a(`filesPreviousPage`),onClick:()=>d(e=>e-1),children:(0,W.jsx)(P,{})}),(0,W.jsxs)(`span`,{children:[u+1,` / `,o.slides.length]}),(0,W.jsx)(`button`,{type:`button`,disabled:u===o.slides.length-1,"aria-label":a(`filesNextPage`),onClick:()=>d(e=>e+1),children:(0,W.jsx)(F,{})})]}),(0,W.jsx)(`p`,{className:`file-preview-note`,children:a(`filesSlidesLayout`)}),o.truncated&&(0,W.jsx)(`p`,{children:a(`artifactPreviewTruncated`)}),(0,W.jsx)(hx,{html:o.slides[u],name:n})]}):(0,W.jsx)(`p`,{role:`status`,children:a(`readingFile`)})}function _x({data:e,initialPage:t,initialScale:n,onReadingChange:r}){let{t:i}=Qn(),[a,o]=(0,_.useState)(null),[s,c]=(0,_.useState)(t??1),[l,u]=(0,_.useState)(n??1);(0,_.useEffect)(()=>r(s,l),[r,s,l]);let[d,f]=(0,_.useState)(``),[p,m]=(0,_.useState)(!0),h=(0,_.useRef)(null);return(0,_.useEffect)(()=>{let t=!1,n;return Promise.all([tx(()=>import(`./app-pdf.js`),[]),tx(()=>import(`./app-pdf.worker.min.js`),[])]).then(async([r,i])=>{if(t)return;r.GlobalWorkerOptions.workerSrc=i.default,n=r.getDocument({data:new Uint8Array(e.slice(0)),useWasm:!1,useSystemFonts:!0,disableAutoFetch:!0,maxImageSize:16e6});let a=await n.promise;t||o(a)}).catch(e=>{t||(m(!1),f(e instanceof Error?e.message:i(`filesPreviewFailed`)))}),()=>{t=!0,n?.destroy()}},[e,i]),(0,_.useEffect)(()=>{if(!a||!h.current)return;let e=!1,t,n=h.current;return m(!0),a.getPage(s).then(async r=>{if(e)return;let i=r.getViewport({scale:1}),a=Math.min(l*1.5,Math.sqrt(8e6/(i.width*i.height))),o=r.getViewport({scale:a});n.width=o.width,n.height=o.height,n.style.width=`${Math.min(i.width,n.parentElement?.clientWidth||i.width)*l}px`,t=r.render({canvas:n,viewport:o}),await t.promise,e||(f(``),m(!1))}).catch(t=>{e||(m(!1),f(t instanceof Error?t.message:i(`filesPreviewFailed`)))}),()=>{e=!0,t?.cancel()}},[a,s,l,i]),(0,W.jsxs)(`div`,{className:`file-pdf`,children:[(0,W.jsxs)(`div`,{className:`file-preview-toolbar`,children:[(0,W.jsx)(`button`,{type:`button`,"aria-label":i(`filesPreviousPage`),disabled:!a||s===1,onClick:()=>c(e=>e-1),children:(0,W.jsx)(P,{})}),(0,W.jsxs)(`span`,{children:[s,` / `,a?.numPages??`…`]}),(0,W.jsx)(`button`,{type:`button`,"aria-label":i(`filesNextPage`),disabled:!a||s===a.numPages,onClick:()=>c(e=>e+1),children:(0,W.jsx)(F,{})}),(0,W.jsx)(`button`,{type:`button`,"aria-label":i(`filesZoomOut`),disabled:l<=.5,onClick:()=>u(e=>Math.max(.5,e-.25)),children:(0,W.jsx)(Ye,{})}),(0,W.jsxs)(`button`,{type:`button`,"aria-label":i(`filesZoomReset`),onClick:()=>u(1),children:[(0,W.jsx)(Ve,{}),` `,Math.round(l*100),`%`]}),(0,W.jsx)(`button`,{type:`button`,"aria-label":i(`filesZoomIn`),disabled:l>=3,onClick:()=>u(e=>Math.min(3,e+.25)),children:(0,W.jsx)(it,{})})]}),d&&(0,W.jsx)(`p`,{role:`alert`,children:d}),p&&(0,W.jsx)(`p`,{role:`status`,children:i(`readingFile`)}),(0,W.jsx)(`section`,{className:`file-media-viewport`,tabIndex:0,"aria-label":i(`filePreview`),children:(0,W.jsx)(`canvas`,{ref:h,"aria-label":i(`filesPdfPage`,{page:s}),role:`img`})})]})}function vx({artifact:e,client:t}){let{t:n}=Qn(),r=dx(),i=r?.artifact?.document,a=i?.path===e.path&&i.revision===e.revision?i:void 0,o=(t,n)=>{r?.artifact?.reference===encodeURI(e.path)&&(r.artifact.document={path:e.path,revision:e.revision,page:t,scale:n})},[s,c]=(0,_.useState)(null),[l,u]=(0,_.useState)(``);if((0,_.useEffect)(()=>{let r=new AbortController;return t.downloadArtifact(e,r.signal).then(e=>e.arrayBuffer()).then(e=>{r.signal.aborted||c(e)}).catch(e=>{r.signal.aborted||u(e instanceof Error?e.message:n(`filesPreviewFailed`))}),()=>r.abort()},[e,t,n]),l)return(0,W.jsx)(`p`,{role:`alert`,className:`evidence-warning`,children:l});if(!s)return(0,W.jsx)(`p`,{role:`status`,children:n(`readingFile`)});let d=e.name.split(`.`).at(-1)?.toLowerCase()??``;return d===`pdf`?(0,W.jsx)(_x,{data:s,initialPage:a?.page,initialScale:a?.scale,onReadingChange:o}):(0,W.jsx)(gx,{data:s,extension:d,name:e.name,initialPage:a?.page,onReadingChange:o})}function yx({children:e,text:t}){let{t:n}=Qn(),r=(0,_.useRef)(null),i=(0,_.useRef)(null),a=(0,_.useRef)(null),o=(0,_.useId)(),[s,c]=(0,_.useState)(!1),[l,u]=(0,_.useState)([]),[d,f]=(0,_.useState)(null);(0,_.useLayoutEffect)(()=>{let e=[...r.current?.querySelectorAll(`.markdown h1, .markdown h2, .markdown h3, .markdown h4, .markdown h5, .markdown h6`)??[]].filter(e=>e.textContent?.trim());u(e);let t=r.current?.closest(`.artifact-panel-body`),n=()=>{let n=t?.getBoundingClientRect().top??0;f(e.filter(e=>e.getBoundingClientRect().top<=n+56).at(-1)??e[0]??null)};return n(),t?.addEventListener(`scroll`,n,{passive:!0}),()=>t?.removeEventListener(`scroll`,n)},[t]),(0,_.useEffect)(()=>{if(!s)return;a.current?.querySelector(`button`)?.focus();let e=e=>{e.target instanceof Node&&!a.current?.contains(e.target)&&c(!1)};return document.addEventListener(`pointerdown`,e),()=>document.removeEventListener(`pointerdown`,e)},[s]);let p=e=>{let t=e.parentElement;for(;t&&t!==r.current;)t instanceof HTMLDetailsElement&&(t.open=!0),t=t.parentElement;let n=r.current?.closest(`.artifact-panel-body`);n&&n.scrollTo({top:n.scrollTop+e.getBoundingClientRect().top-n.getBoundingClientRect().top-16,behavior:`instant`}),f(e),c(!1),e.tabIndex=-1,e.focus({preventScroll:!0})};return(0,W.jsxs)(`div`,{className:`file-markdown`,ref:r,children:[l.length>1&&(0,W.jsx)(`div`,{className:`file-outline-bar`,children:(0,W.jsxs)(`section`,{className:`file-outline`,"aria-label":n(`filesOutline`),ref:a,onKeyDown:e=>{e.key===`Escape`&&s&&(e.preventDefault(),e.stopPropagation(),c(!1),i.current?.focus())},children:[(0,W.jsx)(`button`,{type:`button`,ref:i,className:`icon-button`,title:n(`filesOutline`),"aria-label":n(`filesOutline`),"aria-expanded":s,"aria-controls":o,onClick:()=>c(e=>!e),children:(0,W.jsx)(Re,{"aria-hidden":`true`})}),s&&(0,W.jsx)(`nav`,{id:o,"aria-label":n(`filesOutline`),className:`file-outline-panel`,children:l.map((e,t)=>(0,W.jsxs)(`button`,{type:`button`,"aria-current":d===e?`location`:void 0,style:{paddingInlineStart:10+(Number(e.tagName.slice(1))-1)*10},onClick:()=>p(e),children:[(0,W.jsx)(`small`,{"aria-hidden":`true`,children:e.tagName.slice(1)}),(0,W.jsx)(`span`,{children:e.textContent})]},`${t}:${e.textContent}`))})]})}),e]})}function bx({text:e,name:t}){let[n,r]=(0,_.useState)(``);return(0,_.useEffect)(()=>{let n=!1;return r(``),tx(async()=>{let{default:e}=await import(`./app-common.js`);return{default:e}},__vite__mapDeps([21,1])).then(({default:i})=>{let a=t.split(`.`).at(-1)?.toLowerCase()??``,o={tsx:`typescript`,jsx:`javascript`,mjs:`javascript`,cjs:`javascript`,svg:`xml`,html:`xml`,yml:`yaml`,md:`markdown`,sh:`bash`}[a]??a;if(n||e.length>1e5||!i.getLanguage(o))return;let s=i.highlight(e,{language:o,ignoreIllegals:!0});r(ba.sanitize(s.value,{ALLOWED_TAGS:[`span`],ALLOWED_ATTR:[`class`]}))}).catch(()=>void 0),()=>{n=!0}},[e,t]),(0,W.jsx)(`section`,{className:`file-code`,"aria-label":`File preview content`,tabIndex:0,children:(0,W.jsx)(`pre`,{children:n?(0,W.jsx)(`code`,{dangerouslySetInnerHTML:{__html:n}}):(0,W.jsx)(`code`,{children:e})})})}function xx({preview:e,client:t,source:n=!1}){let{t:r}=Qn(),{name:i}=e.artifact,a=i.split(`.`).at(-1)?.toLowerCase()??``,o=e.text,s=Sx(i),c=(0,_.useMemo)(()=>[`csv`,`tsv`].includes(a)?fx(o??``,a===`tsv`?` `:`,`):null,[o,a]);return[`pdf`,`docx`,`xlsx`,`pptx`].includes(a)?(0,W.jsx)(vx,{artifact:e.artifact,client:t}):o===void 0?(0,W.jsx)(`p`,{children:r(`artifactUnsupported`)}):(0,W.jsx)(W.Fragment,{children:n||!s?(0,W.jsx)(bx,{text:o,name:i}):[`md`,`markdown`].includes(a)?(0,W.jsx)(yx,{text:o,children:(0,W.jsx)(lx,{filePreview:!0,children:o})}):c?(0,W.jsx)(mx,{table:c}):(0,W.jsx)(hx,{html:o,name:i})})}function Sx(e){return/\.(?:md|markdown|html?|svg|csv|tsv)$/iu.test(e)}var Cx=new Map;function wx(e,t,n,r){let{t:i}=Qn(),[,a]=(0,_.useReducer)(e=>e+1,0),[o,s]=(0,_.useState)(!1),[c,l]=(0,_.useState)(null),u=e?JSON.stringify([e.artifact.sessionId,t,e.artifact.path]):``,d=(0,_.useRef)(u);d.current=u,(0,_.useEffect)(()=>()=>{d.current=``},[]),(0,_.useEffect)(()=>{let e=e=>{Cx.size&&(e.preventDefault(),e.returnValue=``)};return window.addEventListener(`beforeunload`,e),()=>window.removeEventListener(`beforeunload`,e)},[]);let f=Cx.get(u),p=!!(e?.artifact.editable&&!e.truncated&&(f||Cx.size<16));return{text:f?.text??e?.text??``,dirty:!!f,conflict:!!(f&&e&&f.revision!==e.artifact.revision),canEdit:p,saving:o,change:t=>{!e||o||(e.text?.includes(`\r +`&&s++,n.length===500)){o||=s${e}`}function hx({table:e}){let{t}=Qn(),n=Math.max(0,...e.rows.map(e=>e.length));return(0,G.jsxs)(G.Fragment,{children:[e.truncated&&(0,G.jsx)(`p`,{className:`evidence-warning`,children:t(`filesTableTruncated`)}),(0,G.jsx)(`section`,{className:`file-table-scroll`,"aria-label":e.name||t(`filesTable`),tabIndex:0,children:(0,G.jsxs)(`table`,{className:`file-table`,children:[(0,G.jsx)(`thead`,{children:(0,G.jsxs)(`tr`,{children:[(0,G.jsx)(`th`,{"aria-label":t(`filesRow`)}),Array.from({length:n},(e,t)=>(0,G.jsx)(`th`,{scope:`col`,children:t<26?String.fromCharCode(65+t):`A${String.fromCharCode(65+t-26)}`},t))]})}),(0,G.jsx)(`tbody`,{children:e.rows.map((e,t)=>(0,G.jsxs)(`tr`,{children:[(0,G.jsx)(`th`,{scope:`row`,className:`file-row-number`,children:t+1}),Array.from({length:n},(t,n)=>(0,G.jsx)(`td`,{children:e[n]??``},n))]},t))})]})})]})}function gx({html:e,name:t}){return(0,G.jsx)(`iframe`,{className:`file-preview-frame`,title:t,sandbox:``,referrerPolicy:`no-referrer`,srcDoc:mx(e)})}function _x({data:e,extension:t,name:n,initialPage:r,onReadingChange:i}){let{t:a}=Qn(),[o,s]=(0,_.useState)(null),[c,l]=(0,_.useState)(``),[u,d]=(0,_.useState)(r??0);return(0,_.useEffect)(()=>i(u),[i,u]),(0,_.useEffect)(()=>{let n=new Worker(new URL(`/app-office-worker-pvhGCwqI.js`,``+import.meta.url),{type:`module`}),r=window.setTimeout(()=>{n.terminate(),l(a(`filesDocumentLimit`))},15e3);n.onmessage=e=>{clearTimeout(r),n.terminate(),e.data.result?s(e.data.result):l(e.data.error||a(`filesPreviewFailed`))},n.onerror=()=>{clearTimeout(r),n.terminate(),l(a(`filesPreviewFailed`))};let i=e.slice(0);return n.postMessage({data:i,extension:t},[i]),()=>{clearTimeout(r),n.terminate()}},[e,t,a]),c?(0,G.jsx)(`p`,{role:`alert`,className:`evidence-warning`,children:c}):o?o.kind===`document`?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`p`,{className:`file-preview-note`,children:a(`filesOfficeLayout`)}),(0,G.jsx)(gx,{html:o.html,name:n})]}):o.kind===`sheets`?(0,G.jsxs)(G.Fragment,{children:[o.truncated&&(0,G.jsx)(`p`,{children:a(`filesTableTruncated`)}),(0,G.jsx)(`div`,{className:`file-sheet-tabs`,role:`toolbar`,"aria-label":a(`filesSheets`),children:o.sheets.map((e,t)=>(0,G.jsx)(`button`,{type:`button`,"aria-pressed":u===t,onClick:()=>d(t),children:e.name},e.name))}),o.sheets[u]&&(0,G.jsx)(hx,{table:o.sheets[u]})]}):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`div`,{className:`file-preview-toolbar`,children:[(0,G.jsx)(`button`,{type:`button`,disabled:u===0,"aria-label":a(`filesPreviousPage`),onClick:()=>d(e=>e-1),children:(0,G.jsx)(P,{})}),(0,G.jsxs)(`span`,{children:[u+1,` / `,o.slides.length]}),(0,G.jsx)(`button`,{type:`button`,disabled:u===o.slides.length-1,"aria-label":a(`filesNextPage`),onClick:()=>d(e=>e+1),children:(0,G.jsx)(F,{})})]}),(0,G.jsx)(`p`,{className:`file-preview-note`,children:a(`filesSlidesLayout`)}),o.truncated&&(0,G.jsx)(`p`,{children:a(`artifactPreviewTruncated`)}),(0,G.jsx)(gx,{html:o.slides[u],name:n})]}):(0,G.jsx)(`p`,{role:`status`,children:a(`readingFile`)})}function vx({data:e,initialPage:t,initialScale:n,onReadingChange:r}){let{t:i}=Qn(),[a,o]=(0,_.useState)(null),[s,c]=(0,_.useState)(t??1),[l,u]=(0,_.useState)(n??1);(0,_.useEffect)(()=>r(s,l),[r,s,l]);let[d,f]=(0,_.useState)(``),[p,m]=(0,_.useState)(!0),h=(0,_.useRef)(null);return(0,_.useEffect)(()=>{let t=!1,n;return Promise.all([nx(()=>import(`./app-pdf.js`),[]),nx(()=>import(`./app-pdf.worker.min.js`),[])]).then(async([r,i])=>{if(t)return;r.GlobalWorkerOptions.workerSrc=i.default,n=r.getDocument({data:new Uint8Array(e.slice(0)),useWasm:!1,useSystemFonts:!0,disableAutoFetch:!0,maxImageSize:16e6});let a=await n.promise;t||o(a)}).catch(e=>{t||(m(!1),f(e instanceof Error?e.message:i(`filesPreviewFailed`)))}),()=>{t=!0,n?.destroy()}},[e,i]),(0,_.useEffect)(()=>{if(!a||!h.current)return;let e=!1,t,n=h.current;return m(!0),a.getPage(s).then(async r=>{if(e)return;let i=r.getViewport({scale:1}),a=Math.min(l*1.5,Math.sqrt(8e6/(i.width*i.height))),o=r.getViewport({scale:a});n.width=o.width,n.height=o.height,n.style.width=`${Math.min(i.width,n.parentElement?.clientWidth||i.width)*l}px`,t=r.render({canvas:n,viewport:o}),await t.promise,e||(f(``),m(!1))}).catch(t=>{e||(m(!1),f(t instanceof Error?t.message:i(`filesPreviewFailed`)))}),()=>{e=!0,t?.cancel()}},[a,s,l,i]),(0,G.jsxs)(`div`,{className:`file-pdf`,children:[(0,G.jsxs)(`div`,{className:`file-preview-toolbar`,children:[(0,G.jsx)(`button`,{type:`button`,"aria-label":i(`filesPreviousPage`),disabled:!a||s===1,onClick:()=>c(e=>e-1),children:(0,G.jsx)(P,{})}),(0,G.jsxs)(`span`,{children:[s,` / `,a?.numPages??`…`]}),(0,G.jsx)(`button`,{type:`button`,"aria-label":i(`filesNextPage`),disabled:!a||s===a.numPages,onClick:()=>c(e=>e+1),children:(0,G.jsx)(F,{})}),(0,G.jsx)(`button`,{type:`button`,"aria-label":i(`filesZoomOut`),disabled:l<=.5,onClick:()=>u(e=>Math.max(.5,e-.25)),children:(0,G.jsx)(Ye,{})}),(0,G.jsxs)(`button`,{type:`button`,"aria-label":i(`filesZoomReset`),onClick:()=>u(1),children:[(0,G.jsx)(Ve,{}),` `,Math.round(l*100),`%`]}),(0,G.jsx)(`button`,{type:`button`,"aria-label":i(`filesZoomIn`),disabled:l>=3,onClick:()=>u(e=>Math.min(3,e+.25)),children:(0,G.jsx)(it,{})})]}),d&&(0,G.jsx)(`p`,{role:`alert`,children:d}),p&&(0,G.jsx)(`p`,{role:`status`,children:i(`readingFile`)}),(0,G.jsx)(`section`,{className:`file-media-viewport`,tabIndex:0,"aria-label":i(`filePreview`),children:(0,G.jsx)(`canvas`,{ref:h,"aria-label":i(`filesPdfPage`,{page:s}),role:`img`})})]})}function yx({artifact:e,client:t}){let{t:n}=Qn(),r=fx(),i=r?.artifact?.document,a=i?.path===e.path&&i.revision===e.revision?i:void 0,o=(t,n)=>{r?.artifact?.reference===encodeURI(e.path)&&(r.artifact.document={path:e.path,revision:e.revision,page:t,scale:n})},[s,c]=(0,_.useState)(null),[l,u]=(0,_.useState)(``);if((0,_.useEffect)(()=>{let r=new AbortController;return t.downloadArtifact(e,r.signal).then(e=>e.arrayBuffer()).then(e=>{r.signal.aborted||c(e)}).catch(e=>{r.signal.aborted||u(e instanceof Error?e.message:n(`filesPreviewFailed`))}),()=>r.abort()},[e,t,n]),l)return(0,G.jsx)(`p`,{role:`alert`,className:`evidence-warning`,children:l});if(!s)return(0,G.jsx)(`p`,{role:`status`,children:n(`readingFile`)});let d=e.name.split(`.`).at(-1)?.toLowerCase()??``;return d===`pdf`?(0,G.jsx)(vx,{data:s,initialPage:a?.page,initialScale:a?.scale,onReadingChange:o}):(0,G.jsx)(_x,{data:s,extension:d,name:e.name,initialPage:a?.page,onReadingChange:o})}function bx({children:e,text:t}){let{t:n}=Qn(),r=(0,_.useRef)(null),i=(0,_.useRef)(null),a=(0,_.useRef)(null),o=(0,_.useId)(),[s,c]=(0,_.useState)(!1),[l,u]=(0,_.useState)([]),[d,f]=(0,_.useState)(null);(0,_.useLayoutEffect)(()=>{let e=[...r.current?.querySelectorAll(`.markdown h1, .markdown h2, .markdown h3, .markdown h4, .markdown h5, .markdown h6`)??[]].filter(e=>e.textContent?.trim());u(e);let t=r.current?.closest(`.artifact-panel-body`),n=()=>{let n=t?.getBoundingClientRect().top??0;f(e.filter(e=>e.getBoundingClientRect().top<=n+56).at(-1)??e[0]??null)};return n(),t?.addEventListener(`scroll`,n,{passive:!0}),()=>t?.removeEventListener(`scroll`,n)},[t]),(0,_.useEffect)(()=>{if(!s)return;a.current?.querySelector(`button`)?.focus();let e=e=>{e.target instanceof Node&&!a.current?.contains(e.target)&&c(!1)};return document.addEventListener(`pointerdown`,e),()=>document.removeEventListener(`pointerdown`,e)},[s]);let p=e=>{let t=e.parentElement;for(;t&&t!==r.current;)t instanceof HTMLDetailsElement&&(t.open=!0),t=t.parentElement;let n=r.current?.closest(`.artifact-panel-body`);n&&n.scrollTo({top:n.scrollTop+e.getBoundingClientRect().top-n.getBoundingClientRect().top-16,behavior:`instant`}),f(e),c(!1),e.tabIndex=-1,e.focus({preventScroll:!0})};return(0,G.jsxs)(`div`,{className:`file-markdown`,ref:r,children:[l.length>1&&(0,G.jsx)(`div`,{className:`file-outline-bar`,children:(0,G.jsxs)(`section`,{className:`file-outline`,"aria-label":n(`filesOutline`),ref:a,onKeyDown:e=>{e.key===`Escape`&&s&&(e.preventDefault(),e.stopPropagation(),c(!1),i.current?.focus())},children:[(0,G.jsx)(`button`,{type:`button`,ref:i,className:`icon-button`,title:n(`filesOutline`),"aria-label":n(`filesOutline`),"aria-expanded":s,"aria-controls":o,onClick:()=>c(e=>!e),children:(0,G.jsx)(Re,{"aria-hidden":`true`})}),s&&(0,G.jsx)(`nav`,{id:o,"aria-label":n(`filesOutline`),className:`file-outline-panel`,children:l.map((e,t)=>(0,G.jsxs)(`button`,{type:`button`,"aria-current":d===e?`location`:void 0,style:{paddingInlineStart:10+(Number(e.tagName.slice(1))-1)*10},onClick:()=>p(e),children:[(0,G.jsx)(`small`,{"aria-hidden":`true`,children:e.tagName.slice(1)}),(0,G.jsx)(`span`,{children:e.textContent})]},`${t}:${e.textContent}`))})]})}),e]})}function xx({text:e,name:t}){let[n,r]=(0,_.useState)(``);return(0,_.useEffect)(()=>{let n=!1;return r(``),nx(async()=>{let{default:e}=await import(`./app-common.js`);return{default:e}},__vite__mapDeps([21,1])).then(({default:i})=>{let a=t.split(`.`).at(-1)?.toLowerCase()??``,o={tsx:`typescript`,jsx:`javascript`,mjs:`javascript`,cjs:`javascript`,svg:`xml`,html:`xml`,yml:`yaml`,md:`markdown`,sh:`bash`}[a]??a;if(n||e.length>1e5||!i.getLanguage(o))return;let s=i.highlight(e,{language:o,ignoreIllegals:!0});r(ba.sanitize(s.value,{ALLOWED_TAGS:[`span`],ALLOWED_ATTR:[`class`]}))}).catch(()=>void 0),()=>{n=!0}},[e,t]),(0,G.jsx)(`section`,{className:`file-code`,"aria-label":`File preview content`,tabIndex:0,children:(0,G.jsx)(`pre`,{children:n?(0,G.jsx)(`code`,{dangerouslySetInnerHTML:{__html:n}}):(0,G.jsx)(`code`,{children:e})})})}function Sx({preview:e,client:t,source:n=!1}){let{t:r}=Qn(),{name:i}=e.artifact,a=i.split(`.`).at(-1)?.toLowerCase()??``,o=e.text,s=Cx(i),c=(0,_.useMemo)(()=>[`csv`,`tsv`].includes(a)?px(o??``,a===`tsv`?` `:`,`):null,[o,a]);return[`pdf`,`docx`,`xlsx`,`pptx`].includes(a)?(0,G.jsx)(yx,{artifact:e.artifact,client:t}):o===void 0?(0,G.jsx)(`p`,{children:r(`artifactUnsupported`)}):(0,G.jsx)(G.Fragment,{children:n||!s?(0,G.jsx)(xx,{text:o,name:i}):[`md`,`markdown`].includes(a)?(0,G.jsx)(bx,{text:o,children:(0,G.jsx)(ux,{filePreview:!0,children:o})}):c?(0,G.jsx)(hx,{table:c}):(0,G.jsx)(gx,{html:o,name:i})})}function Cx(e){return/\.(?:md|markdown|html?|svg|csv|tsv)$/iu.test(e)}var wx=new Map;function Tx(e,t,n,r){for(let[i,a]of wx){let o=JSON.parse(i);if(!Array.isArray(o)||o[0]!==e||o[1]!==t||typeof o[2]!=`string`)continue;let s=o[2],c=n.includes(`\\`)?`\\`:`/`;if(s!==n&&!s.startsWith(`${n}${c}`))continue;let l=JSON.stringify([e,t,`${r}${s.slice(n.length)}`]);wx.has(l)||(wx.set(l,a),wx.delete(i))}}function Ex(e,t,n,r){let{t:i}=Qn(),[,a]=(0,_.useReducer)(e=>e+1,0),[o,s]=(0,_.useState)(!1),[c,l]=(0,_.useState)(null),u=e?JSON.stringify([e.artifact.sessionId,t,e.artifact.path]):``,d=(0,_.useRef)(u);d.current=u,(0,_.useEffect)(()=>()=>{d.current=``},[]),(0,_.useEffect)(()=>{let e=e=>{wx.size&&(e.preventDefault(),e.returnValue=``)};return window.addEventListener(`beforeunload`,e),()=>window.removeEventListener(`beforeunload`,e)},[]);let f=wx.get(u),p=!!(e?.artifact.editable&&!e.truncated&&(f||wx.size<16));return{text:f?.text??e?.text??``,dirty:!!f,conflict:!!(f&&e&&f.revision!==e.artifact.revision),canEdit:p,saving:o,change:t=>{!e||o||(e.text?.includes(`\r `)&&!/(?{Cx.delete(u),l(null),a()},reconcile:()=>{!f||!e||e.truncated||(Cx.set(u,{text:f.text,revision:e.artifact.revision}),l(null),a())},save:async()=>{if(!(!f||!e||o||!p)){s(!0),l(null);try{let t=await n.saveArtifact(e.artifact,f.revision,f.text);Cx.get(u)===f&&Cx.delete(u),d.current===u&&(r(f.text,t.revision),l({key:u,error:!1,text:i(`filesSaved`)}))}catch(e){d.current===u&&l({key:u,error:!0,text:e instanceof zr&&e.code===`ARTIFACT_CHANGED`?i(`filesSaveConflict`):i(`filesSaveFailed`)})}finally{s(!1),a()}}},message:c?.key===u?c:null}}function Tx({artifact:e,client:t}){let{t:n}=Qn(),[r,i]=(0,_.useState)(null),[a,o]=(0,_.useState)(null),[s,c]=(0,_.useState)(!1),{sessionId:l,handle:u,revision:d}=e;return(0,_.useEffect)(()=>{let e=new AbortController,r;return i(null),o(null),t.downloadArtifact({sessionId:l,handle:u,revision:d},e.signal).then(async t=>{let a=Ur(new Uint8Array(await t.slice(0,12).arrayBuffer()));if(!e.signal.aborted){if(!a)throw Error(n(`artifactImagePreviewFailed`));r=URL.createObjectURL(new Blob([t],{type:a})),i({url:r,loaded:!1})}}).catch(t=>{e.signal.aborted||o(t instanceof Error?t.message:n(`artifactImagePreviewFailed`))}),()=>{e.abort(),r&&URL.revokeObjectURL(r)}},[l,u,d,t,n]),a?(0,W.jsxs)(`div`,{role:`alert`,className:`evidence-warning`,children:[(0,W.jsx)(`p`,{children:n(`artifactImagePreviewFailed`)}),a!==n(`artifactImagePreviewFailed`)&&(0,W.jsx)(`small`,{children:a})]}):(0,W.jsxs)(`div`,{className:`artifact-image-preview`,"data-original":s,children:[(0,W.jsxs)(`div`,{className:`file-preview-toolbar`,children:[(0,W.jsx)(`button`,{type:`button`,"aria-pressed":!s,onClick:()=>c(!1),children:n(`filesFitImage`)}),(0,W.jsx)(`button`,{type:`button`,"aria-pressed":s,onClick:()=>c(!0),children:n(`filesOriginalImage`)})]}),!r?.loaded&&(0,W.jsx)(`p`,{role:`status`,children:n(`readingFile`)}),(0,W.jsx)(`div`,{className:`file-media-viewport`,children:r&&(0,W.jsx)(`img`,{src:r.url,alt:e.name,hidden:!r.loaded,onLoad:()=>i(e=>e?{...e,loaded:!0}:null),onError:()=>o(n(`artifactImagePreviewFailed`))})})]})}var Ex=(0,_.forwardRef)(function({sessionId:e,sessionPath:t,children:n,disabled:r=!1,embedded:i=!1,active:a=!0,onOpen:o,onClose:s},c){let{t:l}=Qn(),u=(0,_.useMemo)(()=>new Vr,[]),d=dx(),f=i?d?.artifact:void 0,[p,m]=(0,_.useState)(()=>f?{sessionId:e,sessionPath:t,reference:f.reference}:null),[h,g]=(0,_.useState)(null),[v,y]=(0,_.useState)(f?.source??!1),[b,x]=(0,_.useState)(f?.editing??!1),[S,C]=(0,_.useState)(null),[w,T]=(0,_.useState)(!1),[E,D]=(0,_.useState)(!1),[O,k]=(0,_.useState)(null),[A,j]=(0,_.useState)(!1),[N,P]=(0,_.useState)(!1),I=(0,_.useRef)(null),L=(0,_.useRef)(null),R=(0,_.useRef)(0),ee=(0,_.useRef)(null),z=(0,_.useRef)(null),te=(0,_.useRef)(null),ne=(0,_.useRef)(f?.scroll??0),ie=(0,_.useRef)(!!f);(0,_.useLayoutEffect)(()=>{!i||!d||(d.artifact=p?{reference:h?.artifact.path?encodeURI(h.artifact.path):p.reference,source:v,editing:b,scroll:ne.current,document:d.artifact?.document}:void 0)},[i,d,p,h?.artifact.path,v,b]);let ae=(0,_.useRef)(null),B=(0,_.useRef)(new Set),se=(0,_.useRef)(void 0),ce=(0,_.useRef)(!1),le=(0,_.useRef)(null),H=JSON.stringify([e,t,r]),ue=(0,_.useRef)(H);ue.current=H;let de=!!(p&&!r&&p.sessionId===e&&p.sessionPath===t);(0,_.useEffect)(()=>()=>{le.current!==null&&(window.cancelAnimationFrame(le.current),le.current=null)},[H]);let fe=(0,_.useCallback)((n,i,a)=>{if(r)return;let s=document.activeElement,c=a??(s instanceof HTMLElement?s:null),l=!!(i||c?.closest(`.artifact-panel`));l||(L.current=c),o?.(l),le.current!==null&&(window.cancelAnimationFrame(le.current),le.current=null),ce.current=!0,R.current++,g(null),y(!1),x(!1),ne.current=0,ie.current=!1,C(null),T(!1),k(null),j(!1),se.current=i,m({reference:n,parent:i,sessionId:e,sessionPath:t})},[r,o,e,t]),me=(0,_.useCallback)(({restoreFocus:e=!0}={})=>{if(!p)return;let t=++R.current,n=L.current,r=document.activeElement,i=de?`user`:`context`;if(L.current=null,ce.current=!1,se.current=void 0,m(null),g(null),k(null),I.current?.abort(),s?.(i),le.current!==null&&window.cancelAnimationFrame(le.current),i===`context`||!e){le.current=null;return}le.current=window.requestAnimationFrame(()=>{le.current=null,t===R.current&&ue.current===H&&(document.activeElement===document.body||document.activeElement===r||document.activeElement===n)&&n?.isConnected&&n.checkVisibility({visibilityProperty:!0})&&n.focus()})},[s,p,de,H]);(0,_.useImperativeHandle)(c,()=>({close:me}),[me]),(0,_.useLayoutEffect)(()=>{b?z.current?.focus({preventScroll:!0}):te.current&&(te.current.scrollTop=ne.current)},[b]),(0,_.useLayoutEffect)(()=>{!a||!h||!ie.current||!te.current||(te.current.scrollTop=ne.current,ie.current=!1)},[a,h]),(0,_.useEffect)(()=>{!p||de||(R.current++,m(null),g(null),k(null),ce.current=!1,L.current=null,se.current=void 0,s?.(`context`))},[p,de,s]),(0,_.useEffect)(()=>{if(!p||!e||!de||!a)return;let t=new AbortController,n,r=p.parent,i,o=!1,s,c=!1,l=2e3;ce.current&&(ce.current=!1,ee.current?.focus());let d=async()=>{if(document.visibilityState===`hidden`){i=setTimeout(d,2e3);return}try{if(n||=(await(p.external?u.authorizeArtifact(e,p.reference,t.signal):u.resolveArtifact(e,p.reference,r,t.signal))).handle,r&&=(u.releaseArtifact(e,r).catch(()=>void 0),void 0),o){u.releaseArtifact(e,n).catch(()=>void 0);return}if(s){if((await u.artifactMetadata(e,n,t.signal)).identity===s){o||C(null),l=Math.min(l*2,3e4);return}if(c){o||j(!0),l=3e4;return}}let i=await u.artifactPreview(e,n,t.signal);o||(s=i.identity,c=i.text!==void 0,l=2e3,g(e=>e?.artifact.path===i.artifact.path&&e.artifact.revision===i.artifact.revision?{...i,text:e.text,truncated:e.truncated,nextOffset:e.nextOffset}:i),C(null))}catch(e){let t=e instanceof zr&&[401,403,410].includes(e.status);!o&&t&&(g(null),ae.current?.abort()),o||T(e instanceof zr&&e.code===`ARTIFACT_DENIED`),l=Math.min(l*2,3e4),o||C(e instanceof Error?e.message:`Unable to read file`),t&&(o=!0)}finally{o||(i=setTimeout(d,l))}};return d(),()=>{o=!0,t.abort(),clearTimeout(i),ae.current?.abort(),I.current?.abort(),P(!1),D(!1),n&&n!==se.current&&u.releaseArtifact(e,n).catch(()=>void 0),r&&u.releaseArtifact(e,r).catch(()=>void 0);for(let e of B.current)URL.revokeObjectURL(e);B.current.clear()}},[u,p,de,e,a]);let he=(0,_.useMemo)(()=>({open:fe,disabled:r}),[fe,r]),ge=h?.artifact.path??p?.reference??``,_e=h?.artifact.name??ge.split(/[\\/]/u).at(-1)??ge,ve=wx(h,t,u,(e,t)=>{g(n=>n&&{...n,text:e,truncated:!1,nextOffset:void 0,artifact:{...n.artifact,revision:t,bytes:new TextEncoder().encode(e).length}}),j(!1),m(e=>e&&{...e})}),ye=async()=>{if(!h||E)return;let e=new AbortController;ae.current=e,D(!0);try{let t=await u.downloadArtifact(h.artifact,e.signal);if(e.signal.aborted)return;let n=URL.createObjectURL(t);B.current.add(n);let r=document.createElement(`a`);r.href=n,r.download=h.artifact.name,r.click(),setTimeout(()=>{URL.revokeObjectURL(n),B.current.delete(n)},1e3)}catch(t){e.signal.aborted||C(t instanceof Error?t.message:`Download failed`)}finally{e.signal.aborted||D(!1)}},be=async()=>{if(!h?.nextOffset||I.current)return;let e=h,t=new AbortController;I.current=t,P(!0);try{let n=await u.artifactPreview(e.artifact.sessionId,e.artifact.handle,t.signal,{offset:e.nextOffset,revision:e.artifact.revision});t.signal.aborted||g(t=>t?.artifact.handle===e.artifact.handle&&t.artifact.revision===n.artifact.revision?{...n,text:(t.text??``)+(n.text??``)}:t)}catch(e){t.signal.aborted||C(e instanceof Error?e.message:l(`filesReadFailed`))}finally{I.current===t&&(I.current=null,P(!1))}};return(0,W.jsxs)(Yb.Provider,{value:he,children:[n,p&&de&&(0,W.jsxs)(`aside`,{className:`artifact-panel${i?` artifact-panel-embedded`:``}`,"aria-label":l(`filePreview`),onKeyDown:e=>{if(i&&(e.metaKey||e.ctrlKey)&&e.key.toLowerCase()===`s`){e.preventDefault(),e.stopPropagation(),ve.save();return}e.key===`Escape`&&!e.nativeEvent.isComposing&&!e.defaultPrevented&&(e.preventDefault(),e.stopPropagation(),me())},children:[(0,W.jsxs)(`header`,{children:[(0,W.jsxs)(`div`,{className:`artifact-title`,children:[(0,W.jsx)(`small`,{title:ge,children:i?ge.split(/[\\/]/u).slice(0,-1).at(-1)||l(`files`):`${l(`filePreview`)} · ${l(`artifactReadOnly`)}`}),i&&(0,W.jsx)(F,{"aria-hidden":`true`}),(0,W.jsx)(`h2`,{title:ge,children:_e}),ve.dirty&&(0,W.jsx)(`span`,{className:`file-unsaved`,role:`img`,title:l(`filesUnsaved`),"aria-label":l(`filesUnsaved`),children:`●`})]}),(0,W.jsxs)(`div`,{className:`artifact-header-actions`,children:[i&&h?.text!==void 0&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(`fieldset`,{className:`file-mode-switch`,"aria-label":l(`filesMode`),children:[(0,W.jsx)(`button`,{type:`button`,"aria-pressed":!b,onClick:()=>x(!1),children:l(`filesPreview`)}),(0,W.jsx)(`button`,{type:`button`,"aria-pressed":b,disabled:!ve.canEdit,title:l(h.truncated?`filesEditLoadFirst`:h.artifact.editable?`filesEdit`:`filesEditUnavailable`),onClick:()=>{ne.current=te.current?.scrollTop??0,x(!0)},children:l(`filesEdit`)})]}),(0,W.jsx)(`button`,{type:`button`,title:l(ve.saving?`filesSaving`:ve.dirty?`filesSave`:`filesSaved`),"aria-label":l(ve.saving?`filesSaving`:`filesSave`),disabled:!ve.dirty||ve.saving||!ve.canEdit,onClick:()=>void ve.save(),children:(0,W.jsx)(M,{"aria-hidden":`true`})}),ve.dirty&&(0,W.jsx)(`button`,{type:`button`,title:l(`filesDiscard`),"aria-label":l(`filesDiscard`),disabled:ve.saving,onClick:()=>{window.confirm(l(`filesDiscardConfirm`))&&ve.discard()},children:(0,W.jsx)(st,{"aria-hidden":`true`})})]}),!i&&h?.text!==void 0&&Sx(_e)&&(0,W.jsxs)(`button`,{type:`button`,className:`file-source-toggle`,"aria-pressed":v,onClick:()=>y(e=>!e),children:[v?(0,W.jsx)(pe,{"aria-hidden":`true`}):(0,W.jsx)(oe,{"aria-hidden":`true`}),l(v?`filesPreview`:`filesSource`)]}),(0,W.jsx)(`button`,{type:`button`,"aria-label":l(`copyFilePath`),title:l(`copyFilePath`),onClick:()=>{let e=++R.current;cr(ge).then(t=>{e===R.current&&k(t?`copied`:`failed`)})},children:O===`copied`?(0,W.jsx)(M,{"aria-hidden":`true`}):(0,W.jsx)(re,{"aria-hidden":`true`})}),(0,W.jsxs)(`button`,{type:`button`,title:l(`refreshFile`),onClick:()=>{R.current++,k(null),C(null),T(!1),j(!1),se.current=void 0,m(n=>n?{sessionId:e,sessionPath:t,reference:h?encodeURI(h.artifact.path):n.reference,...n.external?{external:!0}:{},...h?{}:{parent:n.parent}}:null)},children:[(0,W.jsx)(ot,{"aria-hidden":`true`}),` `,l(`refreshFile`)]}),(0,W.jsxs)(`button`,{type:`button`,title:l(`downloadFile`),disabled:!h||E,onClick:()=>void ye(),children:[(0,W.jsx)(V,{"aria-hidden":`true`}),` `,l(E?`downloadingFile`:`downloadFile`)]}),(0,W.jsx)(`button`,{ref:ee,type:`button`,"aria-label":l(`closePreview`),title:l(`closePreview`),onClick:()=>me(),children:(0,W.jsx)(Ot,{"aria-hidden":`true`})})]})]}),(0,W.jsxs)(`div`,{className:`artifact-panel-body`,ref:te,onScroll:e=>{ie.current||(ne.current=e.currentTarget.scrollTop,i&&d?.artifact&&(d.artifact.scroll=ne.current))},children:[!i&&(0,W.jsx)(`div`,{className:`artifact-source`,children:(0,W.jsx)(`code`,{title:ge,children:ge})}),O&&(0,W.jsx)(`p`,{role:`status`,children:l(O===`copied`?`filePathCopied`:`copyFailed`)}),S&&(0,W.jsxs)(`p`,{role:`status`,className:`evidence-warning`,children:[h?l(`artifactOlderPreview`):``,S]}),A&&(0,W.jsx)(`p`,{className:`evidence-warning`,role:`status`,children:l(`filesContentChanged`)}),ve.message&&(0,W.jsx)(`p`,{role:`status`,className:ve.message.error?`evidence-warning`:`file-save-status`,children:ve.message.text}),ve.conflict&&(0,W.jsxs)(`div`,{className:`file-conflict`,children:[(0,W.jsx)(`p`,{children:l(`filesSaveConflict`)}),(0,W.jsxs)(`details`,{children:[(0,W.jsx)(`summary`,{children:l(`filesDiskVersion`)}),(0,W.jsx)(`pre`,{children:h?.text})]}),(0,W.jsx)(`button`,{type:`button`,disabled:!ve.canEdit||ve.saving,onClick:ve.reconcile,children:l(`filesReconcile`)})]}),w&&!p.external&&/^(?:\/(?!\/)|[a-z]:[\\/])/iu.test(p.reference)&&(0,W.jsxs)(`div`,{className:`artifact-external-access`,children:[(0,W.jsx)(`p`,{children:l(`artifactExternalAccess`)}),(0,W.jsx)(`button`,{type:`button`,onClick:()=>{ce.current=!0,C(null),T(!1),m({...p,parent:void 0,external:!0})},children:l(`artifactAuthorizeFile`)})]}),!h&&!S&&(0,W.jsx)(`p`,{role:`status`,children:l(`readingFile`)}),h&&(0,W.jsxs)(W.Fragment,{children:[h.truncated&&(0,W.jsx)(`p`,{className:`evidence-warning`,children:l(`artifactPreviewTruncated`)}),/\.(?:png|jpe?g|gif|webp)$/iu.test(h.artifact.name)?(0,W.jsx)(Tx,{artifact:h.artifact,client:u},JSON.stringify([h.artifact.sessionId,h.artifact.path,h.artifact.handle,h.artifact.revision])):(0,W.jsxs)(Yb.Provider,{value:{open:fe,disabled:r,parent:h.artifact.handle,sessionId:e},children:[i&&ve.canEdit&&(0,W.jsx)(`textarea`,{ref:z,hidden:!b,className:`file-editor`,"aria-label":l(`filesEditor`),spellCheck:!1,autoCapitalize:`off`,autoCorrect:`off`,maxLength:1048576,value:ve.text,disabled:ve.saving,onChange:e=>ve.change(e.currentTarget.value)}),!(i&&b&&ve.canEdit)&&(0,W.jsx)(xx,{preview:ve.dirty?{...h,text:ve.text}:h,client:u,source:v},`${h.artifact.path}:${h.artifact.revision}`)]}),h.nextOffset!==void 0&&(0,W.jsx)(`button`,{type:`button`,className:`file-read-more`,disabled:N||A,onClick:()=>void be(),children:l(N?`readingFile`:`filesReadMore`)}),(0,W.jsxs)(`details`,{className:`artifact-file-details`,children:[(0,W.jsx)(`summary`,{children:l(`artifactFileDetails`)}),(0,W.jsx)(`p`,{className:`artifact-session`,children:l(`artifactSession`,{sessionId:e})}),(0,W.jsxs)(`p`,{className:`artifact-revision`,children:[l(`artifactVersion`),`:`,` `,(0,W.jsx)(`code`,{children:h.artifact.revision}),` ·`,` `,l(`artifactBytes`,{count:h.artifact.bytes})]})]})]})]})]})]})}),Dx={},Ox;function kx(){if(Ox)return Dx;Ox=1,Object.defineProperty(Dx,"__esModule",{value:!0}),Dx.styleq=void 0;var e=new WeakMap,t=`$$css`;function n(n){var r,i,a;return n!=null&&(r=n.disableCache===!0,i=n.disableMix===!0,a=n.transform),function(){for(var n=[],o=``,s=null,c=``,l=r?null:e,u=Array(arguments.length),d=0;d0;){var f=u.pop();if(f!=null&&f!==!1){if(Array.isArray(f)){for(var p=0;p0&&(i.style=n),r!=null&&r!==``&&(i[`data-style-src`]=r),i}Object.freeze({});function Mx(e){return(e.style.anchorName??``).split(`,`).map(e=>e.trim()).filter(Boolean)}function Nx(e,t){e.style.anchorName=t.join(`, `)}function Px(e,t){let n=Mx(e);n.includes(t)||(n.push(t),Nx(e,n))}function Fx(e,t){Nx(e,Mx(e).filter(e=>e!==t))}var Ix=0,Lx=null,Rx=!1;function zx(){Ix+=1}function Bx(){Lx=Ix}function Vx(){Rx||typeof document>`u`||(Rx=!0,document.addEventListener(`pointerdown`,zx,!0),document.addEventListener(`keydown`,zx,!0),document.addEventListener(`click`,Bx,!0))}function Hx(){return Vx(),Ix}function Ux(){return Vx(),Lx===Ix}var Wx=new Set(`p.h1.h2.h3.h4.h5.h6.dt.pre.legend.data.dfn.meter.output.progress.option.optgroup.table.thead.tbody.tfoot.tr.colgroup.ul.ol.menu.dl.select.datalist.picture.hgroup.ruby.rt.rp.a.button.label.summary.span.em.strong.b.i.u.s.small.mark.code.kbd.samp.var.sub.sup.abbr.cite.q.time.bdi.bdo.ins.del`.split(`.`));function Gx(e){if(!e)return null;let t=null,n=e;for(;n;)Wx.has(n.tagName.toLowerCase())&&(t=n),n=n.parentElement;return t?.parentElement??null}var Kx={"--color-accent":`var(--color-accent)`,"--color-accent-muted":`var(--color-accent-muted)`,"--color-on-accent":`var(--color-on-accent)`,"--color-neutral":`var(--color-neutral)`,"--color-background-surface":`var(--color-background-surface)`,"--color-background-body":`var(--color-background-body)`,"--color-overlay":`var(--color-overlay)`,"--color-overlay-hover":`var(--color-overlay-hover)`,"--color-overlay-pressed":`var(--color-overlay-pressed)`,"--color-background-muted":`var(--color-background-muted)`,"--color-text-primary":`var(--color-text-primary)`,"--color-text-secondary":`var(--color-text-secondary)`,"--color-text-disabled":`var(--color-text-disabled)`,"--color-text-accent":`var(--color-text-accent)`,"--color-on-dark":`var(--color-on-dark)`,"--color-on-light":`var(--color-on-light)`,"--color-icon-accent":`var(--color-icon-accent)`,"--color-icon-primary":`var(--color-icon-primary)`,"--color-icon-secondary":`var(--color-icon-secondary)`,"--color-icon-disabled":`var(--color-icon-disabled)`,"--color-background-card":`var(--color-background-card)`,"--color-background-popover":`var(--color-background-popover)`,"--color-background-inverted":`var(--color-background-inverted)`,"--color-background-error-inverted":`var(--color-background-error-inverted)`,"--color-success":`var(--color-success)`,"--color-success-muted":`var(--color-success-muted)`,"--color-on-success":`var(--color-on-success)`,"--color-error":`var(--color-error)`,"--color-error-muted":`var(--color-error-muted)`,"--color-on-error":`var(--color-on-error)`,"--color-warning":`var(--color-warning)`,"--color-warning-muted":`var(--color-warning-muted)`,"--color-on-warning":`var(--color-on-warning)`,"--color-border":`var(--color-border)`,"--color-border-emphasized":`var(--color-border-emphasized)`,"--color-skeleton":`var(--color-skeleton)`,"--color-track":`var(--color-track)`,"--color-shadow":`var(--color-shadow)`,"--color-tint-hover":`var(--color-tint-hover)`,"--color-background-blue":`var(--color-background-blue)`,"--color-border-blue":`var(--color-border-blue)`,"--color-icon-blue":`var(--color-icon-blue)`,"--color-text-blue":`var(--color-text-blue)`,"--color-background-cyan":`var(--color-background-cyan)`,"--color-border-cyan":`var(--color-border-cyan)`,"--color-icon-cyan":`var(--color-icon-cyan)`,"--color-text-cyan":`var(--color-text-cyan)`,"--color-background-gray":`var(--color-background-gray)`,"--color-border-gray":`var(--color-border-gray)`,"--color-icon-gray":`var(--color-icon-gray)`,"--color-text-gray":`var(--color-text-gray)`,"--color-background-green":`var(--color-background-green)`,"--color-border-green":`var(--color-border-green)`,"--color-icon-green":`var(--color-icon-green)`,"--color-text-green":`var(--color-text-green)`,"--color-background-orange":`var(--color-background-orange)`,"--color-border-orange":`var(--color-border-orange)`,"--color-icon-orange":`var(--color-icon-orange)`,"--color-text-orange":`var(--color-text-orange)`,"--color-background-pink":`var(--color-background-pink)`,"--color-border-pink":`var(--color-border-pink)`,"--color-icon-pink":`var(--color-icon-pink)`,"--color-text-pink":`var(--color-text-pink)`,"--color-background-purple":`var(--color-background-purple)`,"--color-border-purple":`var(--color-border-purple)`,"--color-icon-purple":`var(--color-icon-purple)`,"--color-text-purple":`var(--color-text-purple)`,"--color-background-red":`var(--color-background-red)`,"--color-border-red":`var(--color-border-red)`,"--color-icon-red":`var(--color-icon-red)`,"--color-text-red":`var(--color-text-red)`,"--color-background-teal":`var(--color-background-teal)`,"--color-border-teal":`var(--color-border-teal)`,"--color-icon-teal":`var(--color-icon-teal)`,"--color-text-teal":`var(--color-text-teal)`,"--color-background-yellow":`var(--color-background-yellow)`,"--color-border-yellow":`var(--color-border-yellow)`,"--color-icon-yellow":`var(--color-icon-yellow)`,"--color-text-yellow":`var(--color-text-yellow)`,__varGroupHash__:`xj0fimd`},qx={"--spacing-0":`var(--spacing-0)`,"--spacing-0-5":`var(--spacing-0-5)`,"--spacing-1":`var(--spacing-1)`,"--spacing-1-5":`var(--spacing-1-5)`,"--spacing-2":`var(--spacing-2)`,"--spacing-3":`var(--spacing-3)`,"--spacing-4":`var(--spacing-4)`,"--spacing-5":`var(--spacing-5)`,"--spacing-6":`var(--spacing-6)`,"--spacing-7":`var(--spacing-7)`,"--spacing-8":`var(--spacing-8)`,"--spacing-9":`var(--spacing-9)`,"--spacing-10":`var(--spacing-10)`,"--spacing-11":`var(--spacing-11)`,"--spacing-12":`var(--spacing-12)`,__varGroupHash__:`x1kvdh9l`},Jx={"--focus-outline-width":`var(--focus-outline-width)`,"--focus-outline-style":`var(--focus-outline-style)`,"--focus-outline-color":`var(--focus-outline-color)`,"--focus-outline-offset":`var(--focus-outline-offset)`,__varGroupHash__:`xzxs3qz`},Yx={"--duration-fast-min":`var(--duration-fast-min)`,"--duration-fast":`var(--duration-fast)`,"--duration-fast-max":`var(--duration-fast-max)`,"--duration-medium-min":`var(--duration-medium-min)`,"--duration-medium":`var(--duration-medium)`,"--duration-medium-max":`var(--duration-medium-max)`,"--duration-slow-min":`var(--duration-slow-min)`,"--duration-slow":`var(--duration-slow)`,"--duration-slow-max":`var(--duration-slow-max)`,__varGroupHash__:`x14lkjui`},Xx={"--ease-standard":`var(--ease-standard)`,__varGroupHash__:`xf09i69`},Zx={0:`spacing0`,.5:`spacing0_5`,1:`spacing1`,1.5:`spacing1_5`,2:`spacing2`,3:`spacing3`,4:`spacing4`,5:`spacing5`,6:`spacing6`,8:`spacing8`,10:`spacing10`},Qx={0:{kZCmMZ:`x18gyask`,kwRFfy:`x1s0aq8i`,kLKAdn:`x1ydh6w3`,kGO01o:`x1l20ajd`,$$css:!0},1:{kZCmMZ:`x1vsv5vr`,kwRFfy:`x1nryj5t`,kLKAdn:`xfsso4q`,kGO01o:`xy143xn`,$$css:!0},2:{kZCmMZ:`x12gdq22`,kwRFfy:`x1djylfy`,kLKAdn:`x1xye8es`,kGO01o:`x1wesfrj`,$$css:!0},3:{kZCmMZ:`x126nfab`,kwRFfy:`x1t818jl`,kLKAdn:`x1vlblms`,kGO01o:`xvmdzux`,$$css:!0},4:{kZCmMZ:`x1rey3nv`,kwRFfy:`xnjyzlh`,kLKAdn:`x1oa1p4a`,kGO01o:`x1awphl8`,$$css:!0},5:{kZCmMZ:`x1blguxw`,kwRFfy:`xdbrk9v`,kLKAdn:`xx7rijo`,kGO01o:`x1hk98q`,$$css:!0},6:{kZCmMZ:`x31w388`,kwRFfy:`x1we12cn`,kLKAdn:`x1adxfkp`,kGO01o:`xjpqqx5`,$$css:!0},8:{kZCmMZ:`x1j3hnjz`,kwRFfy:`x1q91b2g`,kLKAdn:`xoxd1wu`,kGO01o:`x2oz4g1`,$$css:!0},10:{kZCmMZ:`xqp078j`,kwRFfy:`x160ivqr`,kLKAdn:`xk6660b`,kGO01o:`x2izi54`,$$css:!0},"0.5":{kZCmMZ:`x138rykx`,kwRFfy:`x1le3yxw`,kLKAdn:`xbx876j`,kGO01o:`xij103a`,$$css:!0},"1.5":{kZCmMZ:`xfti1ec`,kwRFfy:`x17hk9do`,kLKAdn:`x1kwdpsa`,kGO01o:`x1opdxmq`,$$css:!0}},$x={0:{"--container-padding-inline-start":`x1gu2k80`,"--container-padding-inline-end":`x91ghl5`,$$css:!0},1:{"--container-padding-inline-start":`x1cvlban`,"--container-padding-inline-end":`x2oyxnl`,$$css:!0},2:{"--container-padding-inline-start":`x1xlrr2o`,"--container-padding-inline-end":`xcas3b9`,$$css:!0},3:{"--container-padding-inline-start":`xfdwxua`,"--container-padding-inline-end":`xu0ipoa`,$$css:!0},4:{"--container-padding-inline-start":`x1dlhslv`,"--container-padding-inline-end":`xs0pscg`,$$css:!0},5:{"--container-padding-inline-start":`x1s81nki`,"--container-padding-inline-end":`xgkj7vj`,$$css:!0},6:{"--container-padding-inline-start":`x1ep0dkj`,"--container-padding-inline-end":`x94cj42`,$$css:!0},8:{"--container-padding-inline-start":`xw1diwv`,"--container-padding-inline-end":`x1b9k1pi`,$$css:!0},10:{"--container-padding-inline-start":`xserb3f`,"--container-padding-inline-end":`xx5lg5w`,$$css:!0},"0.5":{"--container-padding-inline-start":`x14ws0sr`,"--container-padding-inline-end":`x1wz3t3y`,$$css:!0},"1.5":{"--container-padding-inline-start":`x176g23i`,"--container-padding-inline-end":`xntetml`,$$css:!0}},eS={0:{"--container-padding-block-start":`x1i3qcxz`,$$css:!0},1:{"--container-padding-block-start":`xnsckjb`,$$css:!0},2:{"--container-padding-block-start":`xa8b4fq`,$$css:!0},3:{"--container-padding-block-start":`x11k4f5r`,$$css:!0},4:{"--container-padding-block-start":`xm01sq8`,$$css:!0},5:{"--container-padding-block-start":`xp8wdkl`,$$css:!0},6:{"--container-padding-block-start":`x1hmud4d`,$$css:!0},8:{"--container-padding-block-start":`xfv60at`,$$css:!0},10:{"--container-padding-block-start":`x17h9kl7`,$$css:!0},"0.5":{"--container-padding-block-start":`xvdf9ev`,$$css:!0},"1.5":{"--container-padding-block-start":`x1kbx601`,$$css:!0}},tS={0:{"--container-padding-block-end":`xkunwnr`,$$css:!0},1:{"--container-padding-block-end":`x57a7ii`,$$css:!0},2:{"--container-padding-block-end":`x1lsgcmx`,$$css:!0},3:{"--container-padding-block-end":`x1q3ppug`,$$css:!0},4:{"--container-padding-block-end":`x4hfsld`,$$css:!0},5:{"--container-padding-block-end":`xbib2ws`,$$css:!0},6:{"--container-padding-block-end":`x1q8d17g`,$$css:!0},8:{"--container-padding-block-end":`x8lgq76`,$$css:!0},10:{"--container-padding-block-end":`x15vxphk`,$$css:!0},"0.5":{"--container-padding-block-end":`x1cao3zv`,$$css:!0},"1.5":{"--container-padding-block-end":`xv53x8y`,$$css:!0}},nS={0:{"--layout-padding-outer-x":`xswhm3q`,$$css:!0},1:{"--layout-padding-outer-x":`xc96xmq`,$$css:!0},2:{"--layout-padding-outer-x":`x15dxnc0`,$$css:!0},3:{"--layout-padding-outer-x":`xadgj3j`,$$css:!0},4:{"--layout-padding-outer-x":`x1v56qcf`,$$css:!0},5:{"--layout-padding-outer-x":`x1nzs0gl`,$$css:!0},6:{"--layout-padding-outer-x":`x1c3n52a`,$$css:!0},8:{"--layout-padding-outer-x":`x1t3kfz`,$$css:!0},10:{"--layout-padding-outer-x":`x1jdf5a4`,$$css:!0},"0.5":{"--layout-padding-outer-x":`xihiwg7`,$$css:!0},"1.5":{"--layout-padding-outer-x":`x1u93lgd`,$$css:!0}},rS={0:{"--layout-padding-outer-y":`x1mzf5mb`,$$css:!0},1:{"--layout-padding-outer-y":`x1gpfxoh`,$$css:!0},2:{"--layout-padding-outer-y":`x10pz7y9`,$$css:!0},3:{"--layout-padding-outer-y":`x1p6yq3h`,$$css:!0},4:{"--layout-padding-outer-y":`xx738ci`,$$css:!0},5:{"--layout-padding-outer-y":`x6yxws5`,$$css:!0},6:{"--layout-padding-outer-y":`x180vrwl`,$$css:!0},8:{"--layout-padding-outer-y":`xid7e43`,$$css:!0},10:{"--layout-padding-outer-y":`x26l4wa`,$$css:!0},"0.5":{"--layout-padding-outer-y":`x1vj96e0`,$$css:!0},"1.5":{"--layout-padding-outer-y":`xd3dqby`,$$css:!0}},iS={0:{kZCmMZ:`x18gyask`,$$css:!0},1:{kZCmMZ:`x1vsv5vr`,$$css:!0},2:{kZCmMZ:`x12gdq22`,$$css:!0},3:{kZCmMZ:`x126nfab`,$$css:!0},4:{kZCmMZ:`x1rey3nv`,$$css:!0},5:{kZCmMZ:`x1blguxw`,$$css:!0},6:{kZCmMZ:`x31w388`,$$css:!0},8:{kZCmMZ:`x1j3hnjz`,$$css:!0},10:{kZCmMZ:`xqp078j`,$$css:!0},"0.5":{kZCmMZ:`x138rykx`,$$css:!0},"1.5":{kZCmMZ:`xfti1ec`,$$css:!0}},aS={0:{kwRFfy:`x1s0aq8i`,$$css:!0},1:{kwRFfy:`x1nryj5t`,$$css:!0},2:{kwRFfy:`x1djylfy`,$$css:!0},3:{kwRFfy:`x1t818jl`,$$css:!0},4:{kwRFfy:`xnjyzlh`,$$css:!0},5:{kwRFfy:`xdbrk9v`,$$css:!0},6:{kwRFfy:`x1we12cn`,$$css:!0},8:{kwRFfy:`x1q91b2g`,$$css:!0},10:{kwRFfy:`x160ivqr`,$$css:!0},"0.5":{kwRFfy:`x1le3yxw`,$$css:!0},"1.5":{kwRFfy:`x17hk9do`,$$css:!0}},oS={0:{kLKAdn:`x1ydh6w3`,$$css:!0},1:{kLKAdn:`xfsso4q`,$$css:!0},2:{kLKAdn:`x1xye8es`,$$css:!0},3:{kLKAdn:`x1vlblms`,$$css:!0},4:{kLKAdn:`x1oa1p4a`,$$css:!0},5:{kLKAdn:`xx7rijo`,$$css:!0},6:{kLKAdn:`x1adxfkp`,$$css:!0},8:{kLKAdn:`xoxd1wu`,$$css:!0},10:{kLKAdn:`xk6660b`,$$css:!0},"0.5":{kLKAdn:`xbx876j`,$$css:!0},"1.5":{kLKAdn:`x1kwdpsa`,$$css:!0}},sS={0:{kGO01o:`x1l20ajd`,$$css:!0},1:{kGO01o:`xy143xn`,$$css:!0},2:{kGO01o:`x1wesfrj`,$$css:!0},3:{kGO01o:`xvmdzux`,$$css:!0},4:{kGO01o:`x1awphl8`,$$css:!0},5:{kGO01o:`x1hk98q`,$$css:!0},6:{kGO01o:`xjpqqx5`,$$css:!0},8:{kGO01o:`x2oz4g1`,$$css:!0},10:{kGO01o:`x2izi54`,$$css:!0},"0.5":{kGO01o:`xij103a`,$$css:!0},"1.5":{kGO01o:`x1opdxmq`,$$css:!0}},cS={reset:{"--container-padding-inline-start":`xrhngw9`,"--container-padding-inline-end":`xjsfl84`,"--container-padding-block-start":`x1047aw6`,"--container-padding-block-end":`xax9j7h`,"--layout-padding-outer-x":`xdt8ak2`,"--layout-padding-outer-y":`x1rs4lu4`,"--layout-padding-inner-x":`x1qfll2g`,"--layout-padding-inner-y":`xyvxpqs`,"--_section-padding-propagated":`x1f17rg1`,$$css:!0}},lS=c(),uS={keoZOQ:`x1vhfslr`,k1K539:`xlm3tn6`,$$css:!0},dS={base:{keoZOQ:`xdj266r`,k1K539:`xat24cr`,keTefX:`x1lziwak`,k71WvV:`x14z9mp`,kLKAdn:`xexx8yu`,kGO01o:`x18d9i69`,kZCmMZ:`x1c1uobl`,kwRFfy:`xyri2b`,kMzoRj:`xc342km`,ksu8eU:`xng3xce`,kVQacm:`x1rea2x4`,kMv6JI:`x9ynric`,kGuDYH:`xjm74w1`,kLWn49:`xw6l6zx`,kWkggS:`xjbqb8w`,$$css:!0},fixed:{kVAEAm:`xixxii4`,$$css:!0},offsetBlock:e=>[uS,{"--x-marginBlockStart":(e=>typeof e==`number`?e+`px`:e??void 0)(e),"--x-marginBlockEnd":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}],offsetInline:e=>[{keTefX:e==null?e:`x4lel18`,k71WvV:e==null?e:`x1c9tiao`,$$css:!0},{"--x-marginInlineStart":(e=>typeof e==`number`?e+`px`:e??void 0)(e),"--x-marginInlineEnd":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}]};function fS(e){return typeof e==`number`?`${e}px`:e}function pS(e,t){let n=e.ownerDocument.defaultView;if(!n)return{};let r=n.getComputedStyle(e),i=n.getComputedStyle(t);return{...r.direction!==i.direction&&{direction:r.direction},...r.writingMode!==i.writingMode&&{writingMode:r.writingMode}}}function mS(e=`above`,t=`center`){if(e===`above`||e===`below`){let n=e===`above`?`self-block-start`:`self-block-end`;return t===`start`?`${n} span-self-inline-end`:t===`end`?`${n} span-self-inline-start`:n}let n=e===`start`?`self-inline-start`:`self-inline-end`;return t===`start`?`${n} span-self-block-end`:t===`end`?`${n} span-self-block-start`:n}function hS(e=`above`,t=`center`){let n=`flip-block, flip-inline, flip-block flip-inline`;if(t!==`center`)return n;if(e===`above`||e===`below`){let[t,r]=e===`above`?[`top`,`bottom`]:[`bottom`,`top`];return`${n}, ${t} span-left, ${t} span-right, ${r} span-left, ${r} span-right`}let[r,i]=e===`start`?[`left`,`right`]:[`right`,`left`];return`${n}, ${r} span-top, ${r} span-bottom, ${i} span-top, ${i} span-bottom`}function gS(e){let{mode:t,onShow:n,onHide:r,lightDismiss:i=!1}=e,a=t===`context`?e.lazyMount??!1:!1,o=(0,_.useId)(),s=`--astryx-layer-${o.replace(/:/g,``)}`,[c,l]=(0,_.useState)(!1),u=(0,_.useRef)(null),d=(0,_.useRef)(null),f=(0,_.useRef)(null),p=(0,_.useRef)(null),m=(0,_.useRef)(null),[h,g]=(0,_.useState)(null),v=(0,_.useRef)(!1),y=(0,_.useRef)(!1),b=(0,_.useRef)(null),x=(0,_.useRef)(null),S=(0,_.useCallback)(()=>{let e=Hx();return b.current===e},[]),C=(0,_.useCallback)(e=>{typeof e.showPopover==`function`?e.showPopover({source:f.current??void 0}):e.style.display=`block`,d.current=e},[]),w=(0,_.useCallback)(e=>{if(t!==`context`)return!0;let n=m.current;if(n===null)return!1;let r=n.portalTarget??p.current?.parentElement??null;return e.parentElement===r},[t]),T=(0,_.useCallback)(()=>{if(t!==`context`)return;let e=p.current,n=e?.parentElement??null;if(!e||!n)return;let r=Gx(n),i={portalTarget:r,portalStyle:r?pS(e,r):{}};m.current=i,g(i)},[t]),E=(0,_.useCallback)(()=>{t!==`context`||!a||(m.current=null,g(null))},[t,a]),D=(0,_.useCallback)(()=>{if(S())return;let e=u.current,t=e&&w(e)?e:null;if(!t){v.current=!0,T();return}y.current||(C(t),y.current=!0,l(!0),n?.())},[n,T,C,w,S]),O=(0,_.useCallback)(()=>{if(v.current=!1,y.current){let e=u.current;d.current=null,y.current=!1,e&&(typeof e.hidePopover==`function`?e.hidePopover():e.style.display=`none`),l(!1),r?.()}E()},[r,E]),k=(0,_.useCallback)(e=>{f.current&&f.current!==e&&Fx(f.current,s),e&&Px(e,s),f.current=e},[s]),A=(0,_.useCallback)(e=>{if(x.current?.(),Ux())return;b.current=Hx();let t=e.defaultView,n=null,r=()=>{b.current=null,e.removeEventListener(`click`,i,!0),n!==null&&(t?.clearTimeout(n),n=null),x.current===r&&(x.current=null)},i=()=>{e.removeEventListener(`click`,i,!0),t?n=t.setTimeout(()=>{n=null,x.current===r&&r()},0):r()};e.addEventListener(`click`,i,!0),x.current=r},[]);(0,_.useEffect)(()=>(Hx(),()=>x.current?.()),[]);let j=(0,_.useCallback)(e=>{e.newState===`closed`&&y.current&&(d.current=null,y.current=!1,A(e.currentTarget?.ownerDocument??document),l(!1),r?.(),E())},[r,E,A]),M=(0,_.useRef)(null),N=(0,_.useRef)(null),P=(0,_.useCallback)((e,t)=>{M.current&&N.current&&(M.current!==e||N.current!==t)&&(M.current.removeEventListener(`toggle`,N.current),M.current=null,N.current=null),e&&M.current!==e&&(e.addEventListener(`toggle`,t),M.current=e,N.current=t)},[]),F=(0,_.useCallback)(e=>{u.current=e,P(e,j),e&&v.current?(v.current=!1,D()):e&&y.current&&d.current!==e&&w(e)&&C(e)},[j,P,D,C,w]),I=(0,_.useCallback)(e=>{p.current=e,e&&(!a||v.current||y.current)&&T()},[a,T]);(0,_.useEffect)(()=>(u.current&&P(u.current,j),()=>{M.current&&N.current&&(M.current.removeEventListener(`toggle`,N.current),M.current=null,N.current=null)}),[j,P]);let L=(0,_.useCallback)((e,t)=>{let n=(0,W.jsx)(`template`,{ref:I});if(h===null)return(0,W.jsx)(W.Fragment,{children:n});let{placement:r=`above`,alignment:a=`center`,positioning:c=`anchor`,offset:l,role:u,"aria-label":d,xstyle:f,className:p,style:m,as:g=`div`,onMouseEnter:_,onMouseLeave:v}=t||{},y=c===`custom`?{positionAnchor:s}:{positionAnchor:s,positionArea:mS(r,a),positionTryFallbacks:hS(r,a)},b=c===`anchor`&&l?r===`above`||r===`below`?dS.offsetBlock(fS(l)):dS.offsetInline(fS(l)):null,x=jx(dS.base,cS.reset,b,f),S=p?`${p} ${x.className??``}`:x.className,C=(0,W.jsx)(g,{ref:F,id:o,role:u,"aria-label":d,popover:i?`auto`:`manual`,className:S,style:{...x.style,...y,...h.portalStyle,...m},onMouseEnter:_,onMouseLeave:v,children:e});return(0,W.jsxs)(W.Fragment,{children:[n,h.portalTarget?(0,lS.createPortal)(C,h.portalTarget):C]})},[s,h,o,i,F,I]),R=(0,_.useCallback)((e,t)=>{let{x:n,y:r,xstyle:a,className:s,style:c}=t,l={top:r,left:n},u=jx(dS.base,cS.reset,dS.fixed,a),d=s?`${s} ${u.className??``}`:u.className;return(0,W.jsx)(`div`,{ref:F,id:o,popover:i?`auto`:`manual`,className:d,style:{...u.style,...l,...c},children:e})},[F,o,i]),ee=(0,_.useMemo)(()=>({ref:k,anchorId:s,show:D,hide:O,isOpen:c,wasJustDismissed:S,id:o,render:L}),[k,s,D,O,c,S,o,L]),z=(0,_.useMemo)(()=>({ref:void 0,show:D,hide:O,isOpen:c,wasJustDismissed:S,id:o,render:R}),[D,O,c,S,o,R]);return t===`context`?ee:z}function _S(e){let t=gS(e);return(0,_.useMemo)(()=>{let{wasJustDismissed:e,...n}=t;return n},[t])}function vS(e){return gS(e)}var yS=`button:not([disabled]), a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"]):not([disabled]), [contenteditable]:not([contenteditable="false"]), audio[controls], video[controls], iframe, details > summary:first-child`,bS=(0,_.createContext)(0);bS.displayName=`LayerDepthContext`;function xS(){return(0,_.use)(bS)}function SS({children:e}){let t=(0,_.use)(bS);return(0,W.jsx)(bS,{value:t+1,children:e})}SS.displayName=`LayerDepthProvider`;var CS=229;function wS(e){return e.isComposing===!0||e.keyCode===CS}var TS=[],ES=new WeakMap,DS=0,OS=!1;function kS(e){let t=ES.get(e);if(t!==void 0)return t;let n=DS++;return ES.set(e,n),n}function AS(e,t){if(e.depth!==t.depth)return e.depth-t.depth;let n=e.getContainer?.()??null,r=t.getContainer?.()??null;if(n!=null&&r!=null&&n!==r){if(r.contains(n))return 1;if(n.contains(r))return-1}return e.seq-t.seq}function jS(e){return e.isPresent?.()??!0}var MS=!1;function NS(){return MS}function PS(){MS=!0}function FS(){MS=!1}function IS(){let e=null;for(let t of TS)jS(t)&&(e==null||AS(t,e)>0)&&(e=t);return e}function LS(e){return IS()?.token===e}function RS(){let e=IS();return e!=null&&(e.behavior===`block`||e.dismiss(),!0)}function zS(e){if(e.key===`Escape`){if(wS(e)){IS()!=null&&e.preventDefault();return}e.defaultPrevented||RS()&&e.preventDefault()}}function BS(){OS||typeof document>`u`||(document.addEventListener(`keydown`,zS),document.addEventListener(`compositionstart`,PS,!0),document.addEventListener(`compositionend`,FS,!0),document.addEventListener(`blur`,FS,!0),OS=!0)}function VS(){!OS||typeof document>`u`||(document.removeEventListener(`keydown`,zS),document.removeEventListener(`compositionstart`,PS,!0),document.removeEventListener(`compositionend`,FS,!0),document.removeEventListener(`blur`,FS,!0),MS=!1,OS=!1)}function HS(e){let t={...e,seq:kS(e.token)};return TS.push(t),BS(),()=>{let e=TS.indexOf(t);e!==-1&&TS.splice(e,1),TS.length===0&&VS()}}function US(e){let{isActive:t,onDismiss:n,escapeBehavior:r=`close`,getContainer:i,isPresent:a,isEnabled:o=!0}=e,s=xS(),c=(0,_.useRef)({}),l=(0,_.useRef)(n),u=(0,_.useRef)(i),d=(0,_.useRef)(a);(0,_.useEffect)(()=>{l.current=n,u.current=i,d.current=a});let f=t&&o;return(0,_.useEffect)(()=>{if(f)return HS({token:c.current,depth:s,behavior:r,getContainer:()=>u.current?.()??null,isPresent:()=>d.current?.()??!0,dismiss:()=>l.current()})},[f,s,r]),{shouldDismissOnCloseRequest:(0,_.useCallback)(()=>f&&!NS()&&LS(c.current),[f])}}var WS=0;function GS(e){if(e.hasAttribute(`inert`)||e.closest(`[inert]`)||e.hidden||e.closest(`[hidden]`)||e.closest(`[aria-hidden="true"]`))return!1;if(typeof window<`u`&&window.getComputedStyle){let t=window.getComputedStyle(e);if(t.visibility===`hidden`||t.display===`none`)return!1}return!0}function KS(e){return Array.from(e.querySelectorAll(yS)).filter(GS)}function qS(e){try{e.focus()}catch{}return document.activeElement===e}function JS(e){let t=KS(e);for(let e of t)if(qS(e))return!0;return!1}function YS(e){let t=KS(e);for(let e=t.length-1;e>=0;e--)if(qS(t[e]))return!0;return!1}function XS(e){let{isActive:t,onEscape:n}=e,r=(0,_.useRef)(null),i=(0,_.useRef)(null),a=(0,_.useRef)(!1),o=t&&n!=null;US({isActive:o,onDismiss:()=>{n?.()},getContainer:()=>r.current}),(0,_.useEffect)(()=>{if(o)return WS+=1,()=>{--WS}},[o]);let s=(0,_.useCallback)(()=>{r.current&&JS(r.current)},[]);return(0,_.useEffect)(()=>{if(!t)return;let e=document.activeElement,n=r.current;return()=>{let t=document.activeElement;(t==null||t===document.body||t===document.documentElement||n!=null&&n.contains(t))&&e!=null&&e.isConnected&&typeof e.focus==`function`&&e.focus()}},[t]),(0,_.useEffect)(()=>{if(!t)return;let e=e=>{let t=r.current;if(!t)return;let n=e.target;if(t.contains(n))i.current=n;else if(a.current){let e=JS(t);e&&i.current===document.activeElement?YS(t):!e&&i.current instanceof HTMLElement&&t.contains(i.current)&&qS(i.current),i.current=document.activeElement}a.current=!1};return document.addEventListener(`focus`,e,!0),()=>{document.removeEventListener(`focus`,e,!0)}},[t]),(0,_.useEffect)(()=>{if(!t)return;let e=e=>{let t=r.current;if(t&&e.key===`Tab`){a.current=!0;let n=KS(t);if(n.length===0){let n=document.activeElement;if(!(n instanceof HTMLElement)||!t.contains(n))return;e.preventDefault(),i.current=n,a.current=!1;return}let r=n[0],o=n[n.length-1];e.shiftKey?document.activeElement===r&&(e.preventDefault(),o.focus()):document.activeElement===o&&(e.preventDefault(),r.focus())}};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[t,n]),{containerRef:r,focusFirst:s}}var ZS=`keyboard`,QS=!1;function $S(){ZS=`pointer`}function eC(e){e.metaKey||e.altKey||e.ctrlKey||(ZS=`keyboard`)}function tC(){QS||typeof document>`u`||(QS=!0,document.addEventListener(`pointerdown`,$S,{capture:!0,passive:!0}),document.addEventListener(`keydown`,eC,{capture:!0,passive:!0}))}function nC(){return ZS}var rC=new Set([`touch`,`pen`]),iC=new Set([`button`,`checkbox`,`combobox`,`link`,`menuitem`,`menuitemcheckbox`,`menuitemradio`,`option`,`radio`,`searchbox`,`slider`,`spinbutton`,`switch`,`tab`,`textbox`]);function aC(e){let t=e.getAttribute(`role`);if(t!=null&&t!==``)return iC.has(t);switch(e.tagName){case`BUTTON`:case`INPUT`:case`LABEL`:case`SELECT`:case`SUMMARY`:case`TEXTAREA`:return!0;case`A`:case`AREA`:return e.hasAttribute(`href`);default:return oC(e)}}function oC(e){if(e.isContentEditable===!0)return!0;let t=e.getAttribute(`contenteditable`);return t!=null&&t!==`false`}function sC(e){let{touchTrigger:t,isEnabled:n,isControlled:r,isOpen:i,layerId:a,triggerRef:o,show:s,hide:c}=e,l=(0,_.useRef)(!1),u=(0,_.useRef)(i);u.current=i;let d=(0,_.useRef)(c);d.current=c;let f=(0,_.useRef)(a);f.current=a;let p=(0,_.useRef)(!1),m=(0,_.useRef)(null);(0,_.useEffect)(()=>{tC()},[]);let h=(0,_.useCallback)(()=>{p.current=!1;let e=m.current;e!=null&&(m.current=null,document.removeEventListener(`pointerdown`,e,!0))},[]),g=(0,_.useCallback)(()=>{if(p.current=!0,m.current!=null)return;let e=e=>{let t=e.target;(t==null||o.current?.contains(t)!==!0&&document.getElementById(f.current)?.contains(t)!==!0)&&(h(),d.current())};m.current=e,document.addEventListener(`pointerdown`,e,!0)},[o,h]);(0,_.useEffect)(()=>h,[h]);let v=(0,_.useCallback)(()=>l.current&&nC()===`pointer`,[]),y=(0,_.useCallback)(e=>{l.current=e.pointerType===`touch`},[]),b=(0,_.useCallback)(e=>{let i=rC.has(e.pointerType);if(l.current=i,!i||r)return!1;let a=o.current;return(t===`auto`?a!=null&&aC(a)?`none`:`tap`:t)===`none`||!n||u.current||p.current?(h(),c(),!0):(g(),s(),!0)},[t,n,r,o,s,c,g,h]),x=(0,_.useRef)(i);return(0,_.useEffect)(()=>{x.current&&!i&&h(),x.current=i},[i,h]),{isTouchPointerRef:l,isTouchInteraction:v,handlePointerEnter:y,handlePointerDown:b,clearTapOpen:h}}Yx[`--duration-fast-max`],Xx[`--ease-standard`];var cC={below:{kKVMdj:`xl1vlw0 x1aquc0h`,k44tkh:`x9uej1z`,kyAemX:`x128ha8g`,kWV6AL:`xskzprw`,$$css:!0},above:{kKVMdj:`x3psbcj x1aquc0h`,k44tkh:`x9uej1z`,kyAemX:`x128ha8g`,kWV6AL:`xskzprw`,$$css:!0},end:{kKVMdj:`x1i331go x1vxsm5i x1aquc0h`,k44tkh:`x9uej1z`,kyAemX:`x128ha8g`,kWV6AL:`xskzprw`,$$css:!0},start:{kKVMdj:`xck01x9 x18lne9g x1aquc0h`,k44tkh:`x9uej1z`,kyAemX:`x128ha8g`,kWV6AL:`xskzprw`,$$css:!0}},lC=`astryx`,uC=lC,dC=lC,fC=lC;function pC(e){return`${uC}-${e}`}function mC(e){return`data-${dC}-${e}`}function hC(e){return`--${fC}-${e}`}function gC(e){return`data-${e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase()}`}function _C(e,t){return/^\d/.test(t)?`${e}-${t}`:t}function vC(e,t){let n=[pC(e)];if(t)for(let[e,r]of Object.entries(t))r!=null&&n.push(_C(e,String(r)));return n.join(` `)}function yC(e){let t={};if(e)for(let[n,r]of Object.entries(e))r!=null&&(t[gC(n)]=String(r));return t}function bC(e,t,n){let r=vC(e,t),i=n?.legacyNames?.map(e=>pC(e))??[];return{className:i.length>0?[r,...i].join(` `):r,...yC(t)}}var xC=100,SC={container:{kWkggS:`x19aspcf`,kMwMTN:`xrkvqaz`,kaIpWk:`x1hviunn`,kMv6JI:`x9ynric`,kGuDYH:`xjm74w1`,kLWn49:`xw6l6zx`,$$css:!0}};function CC(e){return e.hasAttribute(`tabindex`)?e.tabIndex>=0:[`A`,`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`].includes(e.tagName)?!e.disabled:!!e.isContentEditable}function wC(e={}){let{placement:t=`above`,alignment:n=`center`,delay:r=200,hideDelay:i=0,focusTrigger:a=`auto`,touchTrigger:o=`auto`,isEnabled:s=!0,isOpen:c,isDefaultOpen:l=!1,onShow:u,onHide:d}=e,f=_S({mode:`context`,onShow:u,onHide:d}),p=SC.container,m=(0,_.useRef)(null),h=(0,_.useRef)(null),g=(0,_.useRef)(null),v=(0,_.useCallback)(()=>{m.current&&=(clearTimeout(m.current),null),h.current&&=(clearTimeout(h.current),null)},[]),y=(0,_.useCallback)(()=>{v(),f.show()},[v,f]),b=(0,_.useCallback)(()=>{v(),f.hide()},[v,f]),x=sC({touchTrigger:o,isEnabled:s,isControlled:c!==void 0,isOpen:f.isOpen,layerId:f.id,triggerRef:g,show:y,hide:b}),S=(0,_.useCallback)(()=>{!s||c===!1||(v(),m.current=setTimeout(()=>{f.show()},r))},[s,c,v,f,r]),C=(0,_.useCallback)(()=>{c!==!0&&(v(),h.current=setTimeout(()=>{f.hide()},i>0?i:xC))},[c,v,f,i]),w=(0,_.useCallback)(()=>{h.current&&=(clearTimeout(h.current),null)},[]),T=(0,_.useCallback)(()=>{x.isTouchPointerRef.current||S()},[x,S]),E=(0,_.useCallback)(()=>{x.isTouchPointerRef.current||C()},[x,C]),D=(0,_.useCallback)(e=>{s&&(x.isTouchInteraction()||e.target.matches(`:focus-visible`)&&(v(),f.show()))},[s,x,v,f]),O=(0,_.useCallback)(()=>{C()},[C]),k=(0,_.useCallback)(e=>{x.handlePointerDown(e)||c===void 0&&(v(),f.hide())},[x,c,v,f]),{handlePointerEnter:A,clearTapOpen:j}=x,M=(0,_.useCallback)(e=>{g.current&&(g.current.removeEventListener(`mouseenter`,T),g.current.removeEventListener(`mouseleave`,E),g.current.removeEventListener(`focusin`,D),g.current.removeEventListener(`focusout`,O),g.current.removeEventListener(`pointerenter`,A),g.current.removeEventListener(`pointerdown`,k)),e&&(e.addEventListener(`pointerenter`,A),e.addEventListener(`mouseenter`,T),e.addEventListener(`mouseleave`,E),e.addEventListener(`pointerdown`,k),(a===`always`||a===`auto`&&CC(e))&&(e.addEventListener(`focusin`,D),e.addEventListener(`focusout`,O))),g.current=e},[a,T,E,D,O,A,k]),N=(0,_.useCallback)(e=>{f.ref(e),M(e)},[f,M]);(0,_.useEffect)(()=>()=>{v()},[v]),(0,_.useEffect)(()=>{l&&f.show()},[]),(0,_.useEffect)(()=>{c!==void 0&&(c?(v(),f.show()):(v(),f.hide()))},[c,v,f]),US({isActive:!0,isPresent:()=>{let e=typeof document>`u`?null:document.getElementById(f.id);if(e==null)return!1;try{return e.matches(`:popover-open`)}catch{return f.isOpen}},onDismiss:()=>{if(v(),j(),c!==void 0){d?.();return}f.hide()}});let P=(0,_.useCallback)((e,r)=>{let i=r?.placement??t,a={placement:i,alignment:r?.alignment??n,offset:qx[`--spacing-1`],role:`tooltip`,xstyle:[p,cC[i]],className:bC(`tooltip`).className,onMouseEnter:w,onMouseLeave:C};return f.render((0,W.jsx)(`div`,{className:`xfsso4q xy143xn x12gdq22 x1djylfy xw5ewwj x13faqbe`,children:e}),a)},[f,t,n,p,w,C]);return{ref:N,positionRef:f.ref,interactionRef:M,anchorId:f.anchorId,describedBy:f.id,renderTooltip:P}}var TC={primary:{kMwMTN:`x1tgivj0`,$$css:!0},secondary:{kMwMTN:`xv1l7n4`,$$css:!0},disabled:{kMwMTN:`xnbbluu`,$$css:!0},placeholder:{kMwMTN:`xv1l7n4`,$$css:!0},accent:{kMwMTN:`xjse4m1`,$$css:!0},inherit:{kMwMTN:`x1heor9g`,$$css:!0}},EC={normal:{k63SB2:`x1sodnla`,$$css:!0},medium:{k63SB2:`x1e4wzip`,$$css:!0},semibold:{k63SB2:`x2mo6ok`,$$css:!0},bold:{k63SB2:`x1lvx875`,$$css:!0}},DC={body:{k63SB2:`xxovm9e`,$$css:!0},large:{k63SB2:`x149oux8`,$$css:!0},label:{k63SB2:`xmhvcl5`,$$css:!0},code:{k63SB2:`xx3eeay`,$$css:!0},supporting:{k63SB2:`xv8on6e`,$$css:!0},"display-1":{k63SB2:`x1txul5o`,$$css:!0},"display-2":{k63SB2:`x1y36c3f`,$$css:!0},"display-3":{k63SB2:`x1on40hk`,$$css:!0},inherit:{k63SB2:`x1pd3egz`,$$css:!0}},OC={body:{kGuDYH:`xjm74w1`,kLWn49:`xw6l6zx`,$$css:!0},large:{kGuDYH:`x18juvz8`,kLWn49:`xf74fhv`,$$css:!0},label:{kGuDYH:`xcr08ib`,kLWn49:`x1kq96og`,$$css:!0},code:{kGuDYH:`xp03k98`,kLWn49:`x17iicif`,kMv6JI:`x9m5x89`,$$css:!0},supporting:{kGuDYH:`x141an7d`,kLWn49:`x1ltkj2j`,$$css:!0},"display-1":{kGuDYH:`xsub3ws`,kLWn49:`x112ttwr`,$$css:!0},"display-2":{kGuDYH:`x1yego12`,kLWn49:`xh0iwvy`,$$css:!0},"display-3":{kGuDYH:`xlgnzhf`,kLWn49:`x1ujwuaq`,$$css:!0},inherit:{kGuDYH:`x1qlqyl8`,kLWn49:`x15bjb6t`,$$css:!0}},kC={"4xs":{kGuDYH:`xxc45ev`,$$css:!0},"3xs":{kGuDYH:`x10p7juq`,$$css:!0},"2xs":{kGuDYH:`x16a80zy`,$$css:!0},xsm:{kGuDYH:`x51wmvv`,$$css:!0},sm:{kGuDYH:`x1eqnyfr`,$$css:!0},base:{kGuDYH:`x1j29vfg`,$$css:!0},lg:{kGuDYH:`xc7cgfe`,$$css:!0},xl:{kGuDYH:`x1wqms48`,$$css:!0},"2xl":{kGuDYH:`xhs0kqb`,$$css:!0},"3xl":{kGuDYH:`x10srzze`,$$css:!0},"4xl":{kGuDYH:`xqcvi3d`,$$css:!0}},AC={1:{kGuDYH:`xcg7oai`,kLWn49:`xfmsba7`,k63SB2:`x1v68xuy`,$$css:!0},2:{kGuDYH:`x1xvnhcw`,kLWn49:`x1cpk1wn`,k63SB2:`x12yy4cs`,$$css:!0},3:{kGuDYH:`xii13ha`,kLWn49:`xwjzt0u`,k63SB2:`x1jcxfy8`,$$css:!0},4:{kGuDYH:`x8tkxat`,kLWn49:`xqerer`,k63SB2:`x2hcmsi`,$$css:!0},5:{kGuDYH:`xsgqta0`,kLWn49:`xo3gurs`,k63SB2:`xno150v`,$$css:!0},6:{kGuDYH:`xw5ohdf`,kLWn49:`xeixjfn`,k63SB2:`x1pw4frv`,$$css:!0}},jC={inline:{k1xSpc:`xt0psk2`,$$css:!0},block:{k1xSpc:`x1lliihq`,$$css:!0}},MC={singleLine:{kVQacm:`xb3r6kr`,kg5iWk:`xlyipyv`,khDVqt:`xuxw1ft`,k1xSpc:`x1lliihq`,$$css:!0},multiLine:{kVQacm:`xb3r6kr`,k1xSpc:`x104kibb`,kgKLqz:`x1ua5tub`,$$css:!0}},NC={"break-word":{kTgw9:`x1lldw8n`,kHjlTd:`x1mzt3pk`,$$css:!0},"break-all":{kTgw9:`x1yn0g08`,$$css:!0}},PC={wrap:{kN2L0X:`xk4td0m`,$$css:!0},nowrap:{kN2L0X:`xebhuq6`,$$css:!0},balance:{kN2L0X:`x1w2vvpw`,$$css:!0},pretty:{kN2L0X:`x1fzhlzt`,$$css:!0}},FC={enabled:{kxwWH2:`x1b2iylo`,kzeHkT:`xwgcxoh`,k1xSpc:`x1lliihq`,$$css:!0}},IC={strikethrough:{kybGjl:`xmqliwb`,$$css:!0}},LC={enabled:{kcqcaj:`xss6m8b`,$$css:!0}},RC={start:{k9WMMc:`x1yc453h`,$$css:!0},center:{k9WMMc:`x2b8uid`,$$css:!0},end:{k9WMMc:`xp4054r`,$$css:!0}},zC={content:{ks0D6T:`xw5ewwj`,kTgw9:`x13faqbe`,$$css:!0}},BC=null,VC=new Map;function HC(){return typeof ResizeObserver>`u`?null:(BC||=new ResizeObserver(e=>{for(let t of e){let e=VC.get(t.target);e&&e(t)}}),BC)}function UC(e,t){VC.set(e,t),HC()?.observe(e),t({target:e})}function WC(e){VC.delete(e),BC&&(BC.unobserve(e),VC.size===0&&(BC.disconnect(),BC=null))}function GC(e){let{maxLines:t}=e,[n,r]=(0,_.useState)(!1),[i,a]=(0,_.useState)(``),o=(0,_.useRef)(null),s=(0,_.useCallback)(e=>{if(t===0){r(!1);return}if(a(e.textContent??``),t===1)r(e.scrollWidth>e.offsetWidth);else{let t=e.scrollHeight;try{let n=document.createRange();n.selectNodeContents(e),t=n.getBoundingClientRect().height,n.detach()}catch{}r(t>e.offsetHeight)}},[t]);return{ref:(0,_.useCallback)(e=>{o.current&&WC(o.current),o.current=e,e&&t>0?typeof ResizeObserver<`u`?UC(e,()=>{s(e)}):s(e):(r(!1),a(``))},[t,s]),isTruncated:n,fullText:i}}function KC(e){return e===`base`?``:e.split(`+`).map(e=>{let[t,n]=e.split(`:`);return n===void 0?`.${t}`:/^\d/.test(n)?`.${t}-${n}`:`.${n}`}).join(``)}function qC(e,t){let n={...e,...t},r=[e.className,t.className].filter(Boolean).join(` `);r?n.className=r:delete n.className;let i=t.style&&e.style?{...e.style,...t.style}:t.style||e.style;return i?n.style=i:delete n.style,n}function JC(e,t,n,r){if(typeof e==`string`){let i=e,a=t??{className:``},o=n,s=a.className?`${i} ${a.className}`:i;o&&(s=`${s} ${o}`);let c=r&&a.style?{...a.style,...r}:r||a.style;return{...a,className:s,style:c}}let i=qC(e,typeof t==`string`?{className:t}:t??{});return typeof n==`string`?i=qC(i,{className:n}):n!=null&&(i=qC(i,{style:n})),r!=null&&(i=qC(i,{style:r})),i}function YC(...e){return t=>{let n=[];for(let r of e)if(typeof r==`function`){let e=r(t);n.push(typeof e==`function`?e:()=>r(null))}else if(r!=null){let e=r;e.current=t,n.push(()=>{e.current=null})}if(t!=null&&n.length>0)return()=>{for(let e of n)e()}}}function XC(...e){return t=>{for(let n of e)if(n?.(t),t.defaultPrevented)return}}function ZC(e){return e!=null&&typeof e!=`boolean`&&e!==``}function QC(...e){let t=e.flatMap(e=>typeof e==`string`?e.trim().split(/\s+/):[]).filter(Boolean);if(t.length!==0)return Array.from(new Set(t)).join(` `)}function $C(e,t=[],n){return{ariaLabelledBy:n?QC(n.labelID,e):void 0,ariaDescribedBy:QC(n?.describedByIDs,...t)}}var ew={kbCHJM:`x1nrll8i`,k3aq6I:`xsqj5wx`,$$css:!0},tw={mirror:{k3aq6I:`xgtlewx`,$$css:!0},centerInline:e=>[ew,{"--x-transform":`translate(-50%, ${e})`==null?void 0:`translate(-50%, ${e})`}]},nw=Jx[`--focus-outline-width`],rw=Jx[`--focus-outline-style`],iw=Jx[`--focus-outline-color`];Jx[`--focus-outline-offset`],`${nw}${rw}${iw}`;var aw={focusVisible:{kMeerF:`x1k57tk5 x1vidyx5`,k3XXqK:`x1t137rt x1jhp3zv`,kjBf7l:`xx47ajj`,kInvED:`x1wfwxd8 x1vwwbsn`,$$css:!0},focusWithin:{kMeerF:`x1k57tk5 x11j6mr8`,k3XXqK:`x1t137rt xciu248`,kjBf7l:`x1uy843r`,kInvED:`x1wfwxd8 x1jumodi`,$$css:!0},focusWithinFirstChild:{kMeerF:`x1k57tk5 xmmisi4`,k3XXqK:`x1t137rt xfd04fr`,kjBf7l:`xobxmqy`,kInvED:`x1wfwxd8 x2vr5qc`,$$css:!0},suppressed:{kMeerF:`x1k57tk5`,k3XXqK:`x1t137rt`,kInvED:`x1wfwxd8`,$$css:!0},publishFocusVisibleVars:{"--_focus-outline":`x17wzz1v xqih627`,"--_focus-outline-offset":`xgzxwq1 xqchwus`,$$css:!0},focusWithinOrPublished:{kI3sdo:`xaw4jrz x16s19ga`,kInvED:`x1kvmbwa x1jumodi`,$$css:!0}};function ow(e){return(...t)=>jx(e,...t)}var sw={focusVisible:ow(aw.focusVisible),focusWithin:ow(aw.focusWithin),focusWithinFirstChild:ow(aw.focusWithinFirstChild),suppressed:ow(aw.suppressed),publishFocusVisibleVars:ow(aw.publishFocusVisibleVars),focusWithinOrPublished:ow(aw.focusWithinOrPublished)};function cw(e,t,n,r,i,a){return(0,_.useMemo)(()=>YC(e,t,n,r,i,a),[e,t,n,r,i,a])}var lw=(0,_.lazy)(async()=>tx(()=>Promise.resolve().then(()=>EO).then(e=>({default:e.Tooltip})),void 0)),uw={body:`primary`,large:`primary`,label:`primary`,supporting:`secondary`,code:`primary`,"display-1":`primary`,"display-2":`primary`,"display-3":`primary`,inherit:`inherit`};function dw(e){return e in OC?e:`body`}function fw(e){return e in TC?e:`primary`}function pw({type:e=`body`,size:t,color:n,weight:r,display:i=`inline`,maxLines:a=0,hasTruncateTooltip:o=!0,wordBreak:s,textWrap:c,justify:l=`start`,hasCapsize:u=!1,hasStrikethrough:d=!1,hasTabularNumbers:f=!1,xstyle:p,className:m,style:h,as:g=`span`,children:v,ref:y,...b}){let x=n??uw[e]??`primary`,S=dw(e),C=fw(x),w=s??(a===1?`break-all`:`break-word`),T=a>0||u?`block`:i,E=GC({maxLines:a}),D=typeof o==`string`?o:`above`,O=a>0&&o!==!1&&E.isTruncated,k=(0,_.useRef)(null),A=cw(y,E.ref,k),j=a>1?{WebkitLineClamp:a}:void 0;return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(g,{ref:A,...JC(bC(`text`,{type:e,size:t,color:x}),jx(TC[C],OC[S],t&&kC[t],DC[S],r&&EC[r],a===1?MC.singleLine:a>1?MC.multiLine:jC[T],a>0&&NC[w],c&&PC[c],l!==`start`&&RC[l],u&&FC.enabled,d&&IC.strikethrough,f&&LC.enabled,p),m,{...h,...j}),...b,children:v}),O&&(0,W.jsx)(_.Suspense,{fallback:null,children:(0,W.jsx)(lw,{anchorRef:k,content:(0,W.jsx)(`span`,{...jx(zC.content),children:E.fullText}),placement:D})})]})}pw.displayName=`Text`;var mw=.375,hw={sm:{diameter:10,border:2},md:{diameter:14,border:3},lg:{diameter:18,border:3},xl:{diameter:28,border:4}},gw=[`--_spinner-ring-diameter`,`--_spinner-ring-stroke`],_w=`--_spinner-box-size`;function vw(){if(!(typeof CSS>`u`||typeof CSS.registerProperty!=`function`))for(let e of gw)try{CSS.registerProperty({name:e,syntax:``,inherits:!0,initialValue:`0px`})}catch{}}vw();var yw=new Set,bw=!1;function xw(){bw=!1;let e=[];for(let t of yw)e.push(...t.getAnimations());yw.clear();for(let t of e)t.startTime=0}function Sw(e){if(e!=null&&typeof e.getAnimations==`function`)return yw.add(e),bw||(bw=!0,requestAnimationFrame(xw)),()=>{yw.delete(e)}}var Cw={wrapper:{k1xSpc:`x3nfvp2`,kXwgrk:`xdt5ytf`,kGNEyG:`x6s0dn4`,kOIVth:`x1txdalj`,$$css:!0},spinner:{k1xSpc:`xwz0xwf`,kgQiWS:`x1ku5rj1`,kVQacm:`xb3r6kr`,kXLuUW:`xxymvpz`,"--_spinner-ring-diameter":`x2lq4xu`,"--_spinner-ring-stroke":`x10qssua`,"--_spinner-box-size":`x69vvuq`,$$css:!0},circle:{kDwRjp:`xbh8q5q`,kU5bRw:`x1owpc8m`,kPFa82:`xio8zfp`,kfJifR:`xgw3ha0`,$$css:!0},track:{kjVXCG:`xalkhop`,$$css:!0}},ww={sm:{"--spinner-diameter":`x11wm0hx`,"--spinner-stroke-width":`xls98ul`,$$css:!0},md:{"--spinner-diameter":`x15pu9g6`,"--spinner-stroke-width":`xr0wkrm`,$$css:!0},lg:{"--spinner-diameter":`x1w424tr`,"--spinner-stroke-width":`xr0wkrm`,$$css:!0},xl:{"--spinner-diameter":`x1orj1z9`,"--spinner-stroke-width":`x7y2bof`,$$css:!0}},Tw={default:{"--spinner-color":`xt1b8mc`,"--spinner-track-color":`xspt9s2`,$$css:!0},subtle:{"--spinner-color":`x1jevo6s`,"--spinner-track-color":`xspt9s2`,$$css:!0},onMedia:{"--spinner-color":`x13u6jys`,"--spinner-track-color":`x1ufpcf6`,$$css:!0},inherit:{"--spinner-color":`x1uzk0gl`,"--spinner-track-color":`xbfzqbu`,$$css:!0}},Ew={default:{kDd8S0:`x1g350g8`,$$css:!0},subtle:{kDd8S0:`x1g350g8`,$$css:!0},onMedia:{kDd8S0:`x1smxkh6`,$$css:!0},inherit:{kDd8S0:`x7bo2k`,$$css:!0}};function Dw({size:e=`md`,shade:t=`default`,label:n,xstyle:r,className:i,style:a,"aria-label":o,"data-testid":s,ref:c,...l}){let{border:u,diameter:d}=hw[e],f=d+u*2,p=f/2,m=Math.PI*d,h=m*mw,g=n!=null,v=(0,_.useId)(),y=g&&typeof n==`string`&&o==null,b=(0,W.jsx)(`span`,{ref:g?void 0:c,role:`status`,"aria-label":y?void 0:o??(typeof n==`string`?n:void 0)??`Loading`,"aria-labelledby":y?v:void 0,"data-testid":g?void 0:s,...g?{}:l,...JC(g?``:bC(`spinner`,{size:e,shade:t}),jx(Cw.spinner,!g&&ww[e],!g&&Tw[t],!g&&r),g?void 0:i,{...g?{}:a,width:`var(${_w}, ${f}px)`,height:`var(${_w}, ${f}px)`}),children:(0,W.jsxs)(`svg`,{ref:Sw,width:f,height:f,viewBox:`0 0 ${f} ${f}`,"aria-hidden":`true`,className:`xlp1x4z x1lliihq x1so62im x1rea2x4 x14qxm4i xnh0sag xa4qsjk x1ka1v4i x1esw782`,children:[(0,W.jsx)(`circle`,{cx:p,cy:p,r:d/2,strokeWidth:u,...jx(Cw.circle,Cw.track,Ew[t])}),(0,W.jsx)(`circle`,{cx:p,cy:p,r:d/2,strokeWidth:u,strokeDasharray:`${h} ${m-h}`,transform:`rotate(-90 ${p} ${p})`,className:`xbh8q5q x1owpc8m xio8zfp xgw3ha0 xtve3lm x1vy8frr`})]})});return g?(0,W.jsxs)(`div`,{ref:c,"data-testid":s,...l,...JC(bC(`spinner`,{size:e,shade:t}),jx(Cw.wrapper,ww[e],Tw[t],r),i,a),children:[b,typeof n==`string`?(0,W.jsx)(pw,{id:v,type:`body`,weight:`bold`,children:n}):n]}):b}Dw.displayName=`Spinner`;function Ow({children:e,as:t=`span`,ref:n,...r}){return(0,_.createElement)(t,{ref:n,...r,className:`x10l6tqk x1i1rx1s xjm9jq1 xkdpibf x1717udv xb3r6kr xzpqnlu xuxw1ft xng3xce x13vifvy x1o0tod x47corl x87ps6o`},e)}Ow.displayName=`VisuallyHidden`;var kw=`data-astryx-edge-comp`,Aw={keTefX:`x1kftj4p`,k71WvV:`x92e2el`,$$css:!0},jw={inset:e=>[Aw,{"--x-126w13d":(e=>typeof e==`number`?e+`px`:e??void 0)(`calc(-1 * ${e})`),"--x-4drmnv":(e=>typeof e==`number`?e+`px`:e??void 0)(`calc(-1 * ${e})`)}]},Mw=(0,_.createContext)(null);Mw.displayName=`SizeContext`;function Nw(e,t=`md`){let n=(0,_.use)(Mw);return e??n??t}Mw.Provider;var Pw=(0,_.createContext)(null);Pw.displayName=`ButtonGroupContext`;function Fw(){return(0,_.use)(Pw)}var Iw=(0,_.createContext)(null);Iw.displayName=`LinkContext`;function Lw(e){function t({href:t,ref:n,...r}){return(0,_.createElement)(e,{ref:n,href:t,to:t,...r})}return t.displayName=`LinkWithTo(${typeof e==`string`?e:e.displayName||e.name||`Component`})`,t}function Rw(e){let t=(0,_.use)(Iw),n=e??t?.component??`a`;return(0,_.useMemo)(()=>n===`a`?`a`:Lw(n),[n])}`${Kx[`--color-overlay-hover`]}${Kx[`--color-overlay-hover`]}`,`${Kx[`--color-overlay-pressed`]}${Kx[`--color-overlay-pressed`]}`,`${Kx[`--color-neutral`]}${Kx[`--color-neutral`]}`;var zw={backgroundColor:{kWkggS:`xjbqb8w x1anq1lc xoevpu5 xprvw0a`,$$css:!0},backgroundImage:{kKwaWg:`x7uyq82 xmvprkv xetgvay`,$$css:!0},backgroundImageOnNeutral:{kKwaWg:`x14bno8m xzmimnh x1otsd3y xo3fi6e`,$$css:!0}};function Bw(e,t){let n=t&&t.cache?t.cache:Xw,r=t&&t.serializer?t.serializer:Jw;return(t&&t.strategy?t.strategy:Gw)(e,{cache:n,serializer:r})}function Vw(e){return e==null||typeof e==`number`||typeof e==`boolean`}function Hw(e,t,n,r){let i=Vw(r)?r:n(r),a=t.get(i);return a===void 0&&(a=e.call(this,r),t.set(i,a)),a}function Uw(e,t,n){let r=Array.prototype.slice.call(arguments,3),i=n(r),a=t.get(i);return a===void 0&&(a=e.apply(this,r),t.set(i,a)),a}function Ww(e,t,n,r,i){return n.bind(t,e,r,i)}function Gw(e,t){let n=e.length===1?Hw:Uw;return Ww(e,this,n,t.cache.create(),t.serializer)}function Kw(e,t){return Ww(e,this,Uw,t.cache.create(),t.serializer)}function qw(e,t){return Ww(e,this,Hw,t.cache.create(),t.serializer)}var Jw=function(){return JSON.stringify(arguments)},Yw=class{constructor(){this.cache=Object.create(null)}get(e){return this.cache[e]}set(e,t){this.cache[e]=t}},Xw={create:function(){return new Yw}},Zw={variadic:Kw,monadic:qw},Qw=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function $w(e){let t={};return e.replace(Qw,e=>{let n=e.length;switch(e[0]){case`G`:t.era=n===4?`long`:n===5?`narrow`:`short`;break;case`y`:t.year=n===2?`2-digit`:`numeric`;break;case`Y`:case`u`:case`U`:case`r`:throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case`q`:case`Q`:throw RangeError("`q/Q` (quarter) patterns are not supported");case`M`:case`L`:t.month=[`numeric`,`2-digit`,`short`,`long`,`narrow`][n-1];break;case`w`:case`W`:throw RangeError("`w/W` (week) patterns are not supported");case`d`:t.day=[`numeric`,`2-digit`][n-1];break;case`D`:case`F`:case`g`:throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case`E`:t.weekday=n===4?`long`:n===5?`narrow`:`short`;break;case`e`:if(n<4)throw RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=[`short`,`long`,`narrow`,`short`][n-3];break;case`c`:if(n<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=[`short`,`long`,`narrow`,`short`][n-3];break;case`a`:t.hour12=!0;break;case`b`:case`B`:throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case`h`:t.hourCycle=`h12`,t.hour=[`numeric`,`2-digit`][n-1];break;case`H`:t.hourCycle=`h23`,t.hour=[`numeric`,`2-digit`][n-1];break;case`K`:t.hourCycle=`h11`,t.hour=[`numeric`,`2-digit`][n-1];break;case`k`:t.hourCycle=`h24`,t.hour=[`numeric`,`2-digit`][n-1];break;case`j`:case`J`:case`C`:throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case`m`:t.minute=[`numeric`,`2-digit`][n-1];break;case`s`:t.second=[`numeric`,`2-digit`][n-1];break;case`S`:case`A`:throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case`z`:t.timeZoneName=n<4?`short`:`long`;break;case`Z`:case`O`:case`v`:case`V`:case`X`:case`x`:throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return``}),t}var eT=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function tT(e){if(e.length===0)throw Error(`Number skeleton cannot be empty`);let t=e.split(eT).filter(e=>e.length>0),n=[];for(let e of t){let t=e.split(`/`);if(t.length===0)throw Error(`Invalid number skeleton`);let[r,...i]=t;for(let e of i)if(e.length===0)throw Error(`Invalid number skeleton`);n.push({stem:r,options:i})}return n}function nT(e){return e.replace(/^(.*?)-/,``)}var rT=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,iT=/^(@+)?(\+|#+)?[rs]?$/g,aT=/(\*)(0+)|(#+)(0+)|(0+)/g,oT=/^(0+)$/;function sT(e){let t={};return e[e.length-1]===`r`?t.roundingPriority=`morePrecision`:e[e.length-1]===`s`&&(t.roundingPriority=`lessPrecision`),e.replace(iT,function(e,n,r){return typeof r==`string`?r===`+`?t.minimumSignificantDigits=n.length:n[0]===`#`?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof r==`string`?r.length:0)):(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length),``}),t}function cT(e){switch(e){case`sign-auto`:return{signDisplay:`auto`};case`sign-accounting`:case`()`:return{currencySign:`accounting`};case`sign-always`:case`+!`:return{signDisplay:`always`};case`sign-accounting-always`:case`()!`:return{signDisplay:`always`,currencySign:`accounting`};case`sign-except-zero`:case`+?`:return{signDisplay:`exceptZero`};case`sign-accounting-except-zero`:case`()?`:return{signDisplay:`exceptZero`,currencySign:`accounting`};case`sign-never`:case`+_`:return{signDisplay:`never`}}}function lT(e){let t;if(e[0]===`E`&&e[1]===`E`?(t={notation:`engineering`},e=e.slice(2)):e[0]===`E`&&(t={notation:`scientific`},e=e.slice(1)),t){let n=e.slice(0,2);if(n===`+!`?(t.signDisplay=`always`,e=e.slice(2)):n===`+?`&&(t.signDisplay=`exceptZero`,e=e.slice(2)),!oT.test(e))throw Error(`Malformed concise eng/scientific notation`);t.minimumIntegerDigits=e.length}return t}function uT(e){return cT(e)||{}}function dT(e){let t={};for(let n of e){switch(n.stem){case`percent`:case`%`:t.style=`percent`;continue;case`%x100`:t.style=`percent`,t.scale=100;continue;case`currency`:t.style=`currency`,t.currency=n.options[0];continue;case`group-off`:case`,_`:t.useGrouping=!1;continue;case`precision-integer`:case`.`:t.maximumFractionDigits=0;continue;case`measure-unit`:case`unit`:t.style=`unit`,t.unit=nT(n.options[0]);continue;case`compact-short`:case`K`:t.notation=`compact`,t.compactDisplay=`short`;continue;case`compact-long`:case`KK`:t.notation=`compact`,t.compactDisplay=`long`;continue;case`scientific`:t={...t,notation:`scientific`,...n.options.reduce((e,t)=>({...e,...uT(t)}),{})};continue;case`engineering`:t={...t,notation:`engineering`,...n.options.reduce((e,t)=>({...e,...uT(t)}),{})};continue;case`notation-simple`:t.notation=`standard`;continue;case`unit-width-narrow`:t.currencyDisplay=`narrowSymbol`,t.unitDisplay=`narrow`;continue;case`unit-width-short`:t.currencyDisplay=`code`,t.unitDisplay=`short`;continue;case`unit-width-full-name`:t.currencyDisplay=`name`,t.unitDisplay=`long`;continue;case`unit-width-iso-code`:t.currencyDisplay=`symbol`;continue;case`scale`:t.scale=parseFloat(n.options[0]);continue;case`rounding-mode-floor`:t.roundingMode=`floor`;continue;case`rounding-mode-ceiling`:t.roundingMode=`ceil`;continue;case`rounding-mode-down`:t.roundingMode=`trunc`;continue;case`rounding-mode-up`:t.roundingMode=`expand`;continue;case`rounding-mode-half-even`:t.roundingMode=`halfEven`;continue;case`rounding-mode-half-down`:t.roundingMode=`halfTrunc`;continue;case`rounding-mode-half-up`:t.roundingMode=`halfExpand`;continue;case`integer-width`:if(n.options.length>1)throw RangeError(`integer-width stems only accept a single optional option`);n.options[0].replace(aT,function(e,n,r,i,a,o){if(n)t.minimumIntegerDigits=r.length;else if(i&&a)throw Error(`We currently do not support maximum integer digits`);else if(o)throw Error(`We currently do not support exact integer digits`);return``});continue}if(oT.test(n.stem)){t.minimumIntegerDigits=n.stem.length;continue}if(rT.test(n.stem)){if(n.options.length>1)throw RangeError(`Fraction-precision stems only accept a single optional option`);n.stem.replace(rT,function(e,n,r,i,a,o){return r===`*`?t.minimumFractionDigits=n.length:i&&i[0]===`#`?t.maximumFractionDigits=i.length:a&&o?(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length+o.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),``});let e=n.options[0];e===`w`?t={...t,trailingZeroDisplay:`stripIfInteger`}:e&&(t={...t,...sT(e)});continue}if(iT.test(n.stem)){t={...t,...sT(n.stem)};continue}let e=cT(n.stem);e&&(t={...t,...e});let r=lT(n.stem);r&&(t={...t,...r})}return t}var fT=function(e){return e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]=`EXPECT_ARGUMENT_CLOSING_BRACE`,e[e.EMPTY_ARGUMENT=2]=`EMPTY_ARGUMENT`,e[e.MALFORMED_ARGUMENT=3]=`MALFORMED_ARGUMENT`,e[e.EXPECT_ARGUMENT_TYPE=4]=`EXPECT_ARGUMENT_TYPE`,e[e.INVALID_ARGUMENT_TYPE=5]=`INVALID_ARGUMENT_TYPE`,e[e.EXPECT_ARGUMENT_STYLE=6]=`EXPECT_ARGUMENT_STYLE`,e[e.INVALID_NUMBER_SKELETON=7]=`INVALID_NUMBER_SKELETON`,e[e.INVALID_DATE_TIME_SKELETON=8]=`INVALID_DATE_TIME_SKELETON`,e[e.EXPECT_NUMBER_SKELETON=9]=`EXPECT_NUMBER_SKELETON`,e[e.EXPECT_DATE_TIME_SKELETON=10]=`EXPECT_DATE_TIME_SKELETON`,e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]=`UNCLOSED_QUOTE_IN_ARGUMENT_STYLE`,e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]=`EXPECT_SELECT_ARGUMENT_OPTIONS`,e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]=`EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE`,e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]=`INVALID_PLURAL_ARGUMENT_OFFSET_VALUE`,e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]=`EXPECT_SELECT_ARGUMENT_SELECTOR`,e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]=`EXPECT_PLURAL_ARGUMENT_SELECTOR`,e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]=`EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT`,e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]=`EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT`,e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]=`INVALID_PLURAL_ARGUMENT_SELECTOR`,e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]=`DUPLICATE_PLURAL_ARGUMENT_SELECTOR`,e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]=`DUPLICATE_SELECT_ARGUMENT_SELECTOR`,e[e.MISSING_OTHER_CLAUSE=22]=`MISSING_OTHER_CLAUSE`,e[e.INVALID_TAG=23]=`INVALID_TAG`,e[e.INVALID_TAG_NAME=25]=`INVALID_TAG_NAME`,e[e.UNMATCHED_CLOSING_TAG=26]=`UNMATCHED_CLOSING_TAG`,e[e.UNCLOSED_TAG=27]=`UNCLOSED_TAG`,e}({});function pT(e){return e.type===0}function mT(e){return e.type===1}function hT(e){return e.type===2}function gT(e){return e.type===3}function _T(e){return e.type===4}function vT(e){return e.type===5}function yT(e){return e.type===6}function bT(e){return e.type===7}function xT(e){return e.type===8}function ST(e){return!!(e&&typeof e==`object`&&e.type===0)}function CT(e){return!!(e&&typeof e==`object`&&e.type===1)}var wT=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,TT={"001":[`H`,`h`],419:[`h`,`H`,`hB`,`hb`],AC:[`H`,`h`,`hb`,`hB`],AD:[`H`,`hB`],AE:[`h`,`hB`,`hb`,`H`],AF:[`H`,`hb`,`hB`,`h`],AG:[`h`,`hb`,`H`,`hB`],AI:[`H`,`h`,`hb`,`hB`],AL:[`h`,`H`,`hB`],AM:[`H`,`hB`],AO:[`H`,`hB`],AR:[`h`,`H`,`hB`,`hb`],AS:[`h`,`H`],AT:[`H`,`hB`],AU:[`h`,`hb`,`H`,`hB`],AW:[`H`,`hB`],AX:[`H`],AZ:[`H`,`hB`,`h`],BA:[`H`,`hB`,`h`],BB:[`h`,`hb`,`H`,`hB`],BD:[`h`,`hB`,`H`],BE:[`H`,`hB`],BF:[`H`,`hB`],BG:[`H`,`hB`,`h`],BH:[`h`,`hB`,`hb`,`H`],BI:[`H`,`h`],BJ:[`H`,`hB`],BL:[`H`,`hB`],BM:[`h`,`hb`,`H`,`hB`],BN:[`hb`,`hB`,`h`,`H`],BO:[`h`,`H`,`hB`,`hb`],BQ:[`H`],BR:[`H`,`hB`],BS:[`h`,`hb`,`H`,`hB`],BT:[`h`,`H`],BW:[`H`,`h`,`hb`,`hB`],BY:[`H`,`h`],BZ:[`H`,`h`,`hb`,`hB`],CA:[`h`,`hb`,`H`,`hB`],CC:[`H`,`h`,`hb`,`hB`],CD:[`hB`,`H`],CF:[`H`,`h`,`hB`],CG:[`H`,`hB`],CH:[`H`,`hB`,`h`],CI:[`H`,`hB`],CK:[`H`,`h`,`hb`,`hB`],CL:[`h`,`H`,`hB`,`hb`],CM:[`H`,`h`,`hB`],CN:[`H`,`hB`,`hb`,`h`],CO:[`h`,`H`,`hB`,`hb`],CP:[`H`],CR:[`h`,`H`,`hB`,`hb`],CU:[`h`,`H`,`hB`,`hb`],CV:[`H`,`hB`],CW:[`H`,`hB`],CX:[`H`,`h`,`hb`,`hB`],CY:[`h`,`H`,`hb`,`hB`],CZ:[`H`],DE:[`H`,`hB`],DG:[`H`,`h`,`hb`,`hB`],DJ:[`h`,`H`],DK:[`H`],DM:[`h`,`hb`,`H`,`hB`],DO:[`h`,`H`,`hB`,`hb`],DZ:[`h`,`hB`,`hb`,`H`],EA:[`H`,`h`,`hB`,`hb`],EC:[`h`,`H`,`hB`,`hb`],EE:[`H`,`hB`],EG:[`h`,`hB`,`hb`,`H`],EH:[`h`,`hB`,`hb`,`H`],ER:[`h`,`H`],ES:[`H`,`hB`,`h`,`hb`],ET:[`hB`,`hb`,`h`,`H`],FI:[`H`],FJ:[`h`,`hb`,`H`,`hB`],FK:[`H`,`h`,`hb`,`hB`],FM:[`h`,`hb`,`H`,`hB`],FO:[`H`,`h`],FR:[`H`,`hB`],GA:[`H`,`hB`],GB:[`H`,`h`,`hb`,`hB`],GD:[`h`,`hb`,`H`,`hB`],GE:[`H`,`hB`,`h`],GF:[`H`,`hB`],GG:[`H`,`h`,`hb`,`hB`],GH:[`h`,`H`],GI:[`H`,`h`,`hb`,`hB`],GL:[`H`,`h`],GM:[`h`,`hb`,`H`,`hB`],GN:[`H`,`hB`],GP:[`H`,`hB`],GQ:[`H`,`hB`,`h`,`hb`],GR:[`h`,`H`,`hb`,`hB`],GS:[`H`,`h`,`hb`,`hB`],GT:[`h`,`H`,`hB`,`hb`],GU:[`h`,`hb`,`H`,`hB`],GW:[`H`,`hB`],GY:[`h`,`hb`,`H`,`hB`],HK:[`h`,`hB`,`hb`,`H`],HN:[`h`,`H`,`hB`,`hb`],HR:[`H`,`hB`],HU:[`H`,`h`],IC:[`H`,`h`,`hB`,`hb`],ID:[`H`],IE:[`H`,`h`,`hb`,`hB`],IL:[`H`,`hB`],IM:[`H`,`h`,`hb`,`hB`],IN:[`h`,`H`],IO:[`H`,`h`,`hb`,`hB`],IQ:[`h`,`hB`,`hb`,`H`],IR:[`hB`,`H`],IS:[`H`],IT:[`H`,`hB`],JE:[`H`,`h`,`hb`,`hB`],JM:[`h`,`hb`,`H`,`hB`],JO:[`h`,`hB`,`hb`,`H`],JP:[`H`,`K`,`h`],KE:[`hB`,`hb`,`H`,`h`],KG:[`H`,`h`,`hB`,`hb`],KH:[`hB`,`h`,`H`,`hb`],KI:[`h`,`hb`,`H`,`hB`],KM:[`H`,`h`,`hB`,`hb`],KN:[`h`,`hb`,`H`,`hB`],KP:[`h`,`H`,`hB`,`hb`],KR:[`h`,`H`,`hB`,`hb`],KW:[`h`,`hB`,`hb`,`H`],KY:[`h`,`hb`,`H`,`hB`],KZ:[`H`,`hB`],LA:[`H`,`hb`,`hB`,`h`],LB:[`h`,`hB`,`hb`,`H`],LC:[`h`,`hb`,`H`,`hB`],LI:[`H`,`hB`,`h`],LK:[`H`,`h`,`hB`,`hb`],LR:[`h`,`hb`,`H`,`hB`],LS:[`h`,`H`],LT:[`H`,`h`,`hb`,`hB`],LU:[`H`,`h`,`hB`],LV:[`H`,`hB`,`hb`,`h`],LY:[`h`,`hB`,`hb`,`H`],MA:[`H`,`h`,`hB`,`hb`],MC:[`H`,`hB`],MD:[`H`,`hB`],ME:[`H`,`hB`,`h`],MF:[`H`,`hB`],MG:[`H`,`h`],MH:[`h`,`hb`,`H`,`hB`],MK:[`H`,`h`,`hb`,`hB`],ML:[`H`],MM:[`hB`,`hb`,`H`,`h`],MN:[`H`,`h`,`hb`,`hB`],MO:[`h`,`hB`,`hb`,`H`],MP:[`h`,`hb`,`H`,`hB`],MQ:[`H`,`hB`],MR:[`h`,`hB`,`hb`,`H`],MS:[`H`,`h`,`hb`,`hB`],MT:[`H`,`h`],MU:[`H`,`h`],MV:[`H`,`h`],MW:[`h`,`hb`,`H`,`hB`],MX:[`h`,`H`,`hB`,`hb`],MY:[`hb`,`hB`,`h`,`H`],MZ:[`H`,`hB`],NA:[`h`,`H`,`hB`,`hb`],NC:[`H`,`hB`],NE:[`H`],NF:[`H`,`h`,`hb`,`hB`],NG:[`H`,`h`,`hb`,`hB`],NI:[`h`,`H`,`hB`,`hb`],NL:[`H`,`hB`],NO:[`H`,`h`],NP:[`H`,`h`,`hB`],NR:[`H`,`h`,`hb`,`hB`],NU:[`H`,`h`,`hb`,`hB`],NZ:[`h`,`hb`,`H`,`hB`],OM:[`h`,`hB`,`hb`,`H`],PA:[`h`,`H`,`hB`,`hb`],PE:[`h`,`H`,`hB`,`hb`],PF:[`H`,`h`,`hB`],PG:[`h`,`H`],PH:[`h`,`hB`,`hb`,`H`],PK:[`h`,`hB`,`H`],PL:[`H`,`h`],PM:[`H`,`hB`],PN:[`H`,`h`,`hb`,`hB`],PR:[`h`,`H`,`hB`,`hb`],PS:[`h`,`hB`,`hb`,`H`],PT:[`H`,`hB`],PW:[`h`,`H`],PY:[`h`,`H`,`hB`,`hb`],QA:[`h`,`hB`,`hb`,`H`],RE:[`H`,`hB`],RO:[`H`,`hB`],RS:[`H`,`hB`,`h`],RU:[`H`],RW:[`H`,`h`],SA:[`h`,`hB`,`hb`,`H`],SB:[`h`,`hb`,`H`,`hB`],SC:[`H`,`h`,`hB`],SD:[`h`,`hB`,`hb`,`H`],SE:[`H`],SG:[`h`,`hb`,`H`,`hB`],SH:[`H`,`h`,`hb`,`hB`],SI:[`H`,`hB`],SJ:[`H`],SK:[`H`],SL:[`h`,`hb`,`H`,`hB`],SM:[`H`,`h`,`hB`],SN:[`H`,`h`,`hB`],SO:[`h`,`H`],SR:[`H`,`hB`],SS:[`h`,`hb`,`H`,`hB`],ST:[`H`,`hB`],SV:[`h`,`H`,`hB`,`hb`],SX:[`H`,`h`,`hb`,`hB`],SY:[`h`,`hB`,`hb`,`H`],SZ:[`h`,`hb`,`H`,`hB`],TA:[`H`,`h`,`hb`,`hB`],TC:[`h`,`hb`,`H`,`hB`],TD:[`h`,`H`,`hB`],TF:[`H`,`h`,`hB`],TG:[`H`,`hB`],TH:[`H`,`h`],TJ:[`H`,`h`],TL:[`H`,`hB`,`hb`,`h`],TM:[`H`,`h`],TN:[`h`,`hB`,`hb`,`H`],TO:[`h`,`H`],TR:[`H`,`hB`],TT:[`h`,`hb`,`H`,`hB`],TW:[`hB`,`hb`,`h`,`H`],TZ:[`hB`,`hb`,`H`,`h`],UA:[`H`,`hB`,`h`],UG:[`hB`,`hb`,`H`,`h`],UM:[`h`,`hb`,`H`,`hB`],US:[`h`,`hb`,`H`,`hB`],UY:[`h`,`H`,`hB`,`hb`],UZ:[`H`,`hB`,`h`],VA:[`H`,`h`,`hB`],VC:[`h`,`hb`,`H`,`hB`],VE:[`h`,`H`,`hB`,`hb`],VG:[`h`,`hb`,`H`,`hB`],VI:[`h`,`hb`,`H`,`hB`],VN:[`H`,`h`],VU:[`h`,`H`],WF:[`H`,`hB`],WS:[`h`,`H`],XK:[`H`,`hB`,`h`],YE:[`h`,`hB`,`hb`,`H`],YT:[`H`,`hB`],ZA:[`H`,`h`,`hb`,`hB`],ZM:[`h`,`hb`,`H`,`hB`],ZW:[`H`,`h`],"af-ZA":[`H`,`h`,`hB`,`hb`],"ar-001":[`h`,`hB`,`hb`,`H`],"ca-ES":[`H`,`h`,`hB`],"en-001":[`h`,`hb`,`H`,`hB`],"en-HK":[`h`,`hb`,`H`,`hB`],"en-IL":[`H`,`h`,`hb`,`hB`],"en-MY":[`h`,`hb`,`H`,`hB`],"es-BR":[`H`,`h`,`hB`,`hb`],"es-ES":[`H`,`h`,`hB`,`hb`],"es-GQ":[`H`,`h`,`hB`,`hb`],"fr-CA":[`H`,`h`,`hB`],"gl-ES":[`H`,`h`,`hB`],"gu-IN":[`hB`,`hb`,`h`,`H`],"hi-IN":[`hB`,`h`,`H`],"it-CH":[`H`,`h`,`hB`],"it-IT":[`H`,`h`,`hB`],"kn-IN":[`hB`,`h`,`H`],"ku-SY":[`H`,`hB`],"ml-IN":[`hB`,`h`,`H`],"mr-IN":[`hB`,`hb`,`h`,`H`],"pa-IN":[`hB`,`hb`,`h`,`H`],"ta-IN":[`hB`,`h`,`hb`,`H`],"te-IN":[`hB`,`h`,`H`],"zu-ZA":[`H`,`hB`,`hb`,`h`]};function ET(e,t){let n=``;for(let r=0;r>1),c=DT(t);for((c==`H`||c==`k`)&&(s=0);s-->0;)n+=`a`;for(;o-->0;)n=c+n}else n+=i===`J`?`H`:i}return n}function DT(e){let t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case`h24`:return`k`;case`h23`:return`H`;case`h12`:return`h`;case`h11`:return`K`;default:throw Error(`Invalid hourCycle`)}let n=e.language,r;return n!==`root`&&(r=e.maximize().region),(TT[r||``]||TT[n||``]||TT[`${n}-001`]||TT[`001`])[0]}var OT=RegExp(`^${wT.source}*`),kT=RegExp(`${wT.source}*$`);function AT(e,t){return{start:e,end:t}}var jT=!!Object.fromEntries,MT=!!String.prototype.trimStart,NT=!!String.prototype.trimEnd,PT=jT?Object.fromEntries:function(e){let t={};for(let[n,r]of e)t[n]=r;return t},FT=MT?function(e){return e.trimStart()}:function(e){return e.replace(OT,``)},IT=NT?function(e){return e.trimEnd()}:function(e){return e.replace(kT,``)},LT=RegExp(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`,`yu`);function RT(e,t){return LT.lastIndex=t,LT.exec(e)[1]??``}function zT(e){if(e.length===0)return null;let t=1,n=1;for(let r=0;r=55296&&i<=56319&&r+1=56320&&t<=57343?2:1}else r++}return{offset:e.length,line:t,column:n}}var BT=class{constructor(e,t={}){this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}parse(){if(this.offset()!==0)throw Error(`parser can only be used once`);if(this.message.length>0){let e=this.message.charCodeAt(0);if(e!==35&&e!==39&&e!==60&&e!==123&&e!==125){let e=zT(this.message);if(e){let t=this.clonePosition();return this.position=e,{val:[{type:0,value:this.message,location:AT(t,this.clonePosition())}],err:null}}}}return this.parseMessage(0,``,!1)}parseMessage(e,t,n){let r=[];for(;!this.isEOF();){let i=this.char();if(i===123){let t=this.parseArgument(e,n);if(t.err)return t;r.push(t.val)}else if(i===125&&e>0)break;else if(i===35&&(t===`plural`||t===`selectordinal`)){let e=this.clonePosition();this.bump(),r.push({type:7,location:AT(e,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(26,AT(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&VT(this.peek()||0)){let n=this.parseTag(e,t);if(n.err)return n;r.push(n.val)}else{let n=this.parseLiteral(e,t);if(n.err)return n;r.push(n.val)}}return{val:r,err:null}}parseTag(e,t){let n=this.clonePosition();this.bump();let r=this.parseTagName();if(this.bumpSpace(),this.bumpIf(`/>`))return{val:{type:0,value:`<${r}/>`,location:AT(n,this.clonePosition())},err:null};if(this.bumpIf(`>`)){let i=this.parseMessage(e+1,t,!0);if(i.err)return i;let a=i.val,o=this.clonePosition();if(this.bumpIf(``)?{val:{type:8,value:r,children:a,location:AT(n,this.clonePosition())},err:null}:this.error(23,AT(o,this.clonePosition()))):this.error(26,AT(e,this.clonePosition()))}return this.error(27,AT(n,this.clonePosition()))}return this.error(23,AT(n,this.clonePosition()))}parseTagName(){let e=this.offset();for(this.bump();!this.isEOF()&&UT(this.char());)this.bump();return this.message.slice(e,this.offset())}parseLiteral(e,t){let n=this.clonePosition(),r=``;for(;;){let n=this.tryParseQuote(t);if(n){r+=n;continue}let i=this.tryParseUnquoted(e,t);if(i){r+=i;continue}let a=this.tryParseLeftAngleBracket();if(a){r+=a;continue}break}let i=AT(n,this.clonePosition());return{val:{type:0,value:r,location:i},err:null}}tryParseLeftAngleBracket(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!HT(this.peek()||0))?(this.bump(),`<`):null}tryParseQuote(e){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),`'`;case 123:case 60:case 62:case 125:break;case 35:if(e===`plural`||e===`selectordinal`)break;return null;default:return null}this.bump();let t=[this.char()];for(this.bump();!this.isEOF();){let e=this.char();if(e===39)if(this.peek()===39)t.push(39),this.bump();else{this.bump();break}else t.push(e);this.bump()}return String.fromCodePoint(...t)}tryParseUnquoted(e,t){if(this.isEOF())return null;let n=this.char();return n===60||n===123||n===35&&(t===`plural`||t===`selectordinal`)||n===125&&e>0?null:(this.bump(),String.fromCodePoint(n))}parseArgument(e,t){let n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(1,AT(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(2,AT(n,this.clonePosition()));let r=this.parseIdentifierIfPossible().value;if(!r)return this.error(3,AT(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(1,AT(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:1,value:r,location:AT(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(1,AT(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(3,AT(n,this.clonePosition()))}}parseIdentifierIfPossible(){let e=this.clonePosition(),t=this.offset(),n=RT(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:AT(e,this.clonePosition())}}parseArgumentOptions(e,t,n,r){let i=this.clonePosition(),a=this.parseIdentifierIfPossible().value,o=this.clonePosition();switch(a){case``:return this.error(4,AT(i,o));case`number`:case`date`:case`time`:{this.bumpSpace();let e=null;if(this.bumpIf(`,`)){this.bumpSpace();let t=this.clonePosition(),n=this.parseSimpleArgStyleIfPossible();if(n.err)return n;let r=IT(n.val);if(r.length===0)return this.error(6,AT(this.clonePosition(),this.clonePosition()));e={style:r,styleLocation:AT(t,this.clonePosition())}}let t=this.tryParseArgumentClose(r);if(t.err)return t;let i=AT(r,this.clonePosition());if(e&&e.style.startsWith(`::`)){let t=FT(e.style.slice(2));if(a===`number`){let r=this.parseNumberSkeletonFromString(t,e.styleLocation);return r.err?r:{val:{type:2,value:n,location:i,style:r.val},err:null}}{if(t.length===0)return this.error(10,i);let r=t;this.locale&&(r=ET(t,this.locale));let o={type:1,pattern:r,location:e.styleLocation,parsedOptions:this.shouldParseSkeletons?$w(r):{}};return{val:{type:a===`date`?3:4,value:n,location:i,style:o},err:null}}}return{val:{type:a===`number`?2:a===`date`?3:4,value:n,location:i,style:e?.style??null},err:null}}case`plural`:case`selectordinal`:case`select`:{let i=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(`,`))return this.error(12,AT(i,{...i}));this.bumpSpace();let o=this.parseIdentifierIfPossible(),s=0;if(a!==`select`&&o.value===`offset`){if(!this.bumpIf(`:`))return this.error(13,AT(this.clonePosition(),this.clonePosition()));this.bumpSpace();let e=this.tryParseDecimalInteger(13,14);if(e.err)return e;this.bumpSpace(),o=this.parseIdentifierIfPossible(),s=e.val}let c=this.tryParsePluralOrSelectOptions(e,a,t,o);if(c.err)return c;let l=this.tryParseArgumentClose(r);if(l.err)return l;let u=AT(r,this.clonePosition());return a===`select`?{val:{type:5,value:n,options:PT(c.val),location:u},err:null}:{val:{type:6,value:n,options:PT(c.val),offset:s,pluralType:a===`plural`?`cardinal`:`ordinal`,location:u},err:null}}default:return this.error(5,AT(i,o))}}tryParseArgumentClose(e){return this.isEOF()||this.char()!==125?this.error(1,AT(e,this.clonePosition())):(this.bump(),{val:!0,err:null})}parseSimpleArgStyleIfPossible(){let e=0,t=this.clonePosition();for(;!this.isEOF();)switch(this.char()){case 39:{this.bump();let e=this.clonePosition();if(!this.bumpUntil(`'`))return this.error(11,AT(e,this.clonePosition()));this.bump();break}case 123:e+=1,this.bump();break;case 125:if(e>0)--e;else return{val:this.message.slice(t.offset,this.offset()),err:null};break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}}parseNumberSkeletonFromString(e,t){let n=[];try{n=tT(e)}catch{return this.error(7,t)}return{val:{type:0,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?dT(n):{}},err:null}}tryParsePluralOrSelectOptions(e,t,n,r){let i=!1,a=[],o=new Set,{value:s,location:c}=r;for(;;){if(s.length===0){let e=this.clonePosition();if(t!==`select`&&this.bumpIf(`=`)){let t=this.tryParseDecimalInteger(16,19);if(t.err)return t;c=AT(e,this.clonePosition()),s=this.message.slice(e.offset,this.offset())}else break}if(o.has(s))return this.error(t===`select`?21:20,c);s===`other`&&(i=!0),this.bumpSpace();let r=this.clonePosition();if(!this.bumpIf(`{`))return this.error(t===`select`?17:18,AT(this.clonePosition(),this.clonePosition()));let l=this.parseMessage(e+1,t,n);if(l.err)return l;let u=this.tryParseArgumentClose(r);if(u.err)return u;a.push([s,{value:l.val,location:AT(r,this.clonePosition())}]),o.add(s),this.bumpSpace(),{value:s,location:c}=this.parseIdentifierIfPossible()}return a.length===0?this.error(t===`select`?15:16,AT(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(22,AT(this.clonePosition(),this.clonePosition())):{val:a,err:null}}tryParseDecimalInteger(e,t){let n=1,r=this.clonePosition();this.bumpIf(`+`)||this.bumpIf(`-`)&&(n=-1);let i=!1,a=0;for(;!this.isEOF();){let e=this.char();if(e>=48&&e<=57)i=!0,a=a*10+(e-48),this.bump();else break}let o=AT(r,this.clonePosition());return i?(a*=n,Number.isSafeInteger(a)?{val:a,err:null}:this.error(t,o)):this.error(e,o)}offset(){return this.position.offset}isEOF(){return this.offset()===this.message.length}clonePosition(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}}char(){let e=this.position.offset;if(e>=this.message.length)throw Error(`out of bound`);let t=this.message.codePointAt(e);if(t===void 0)throw Error(`Offset ${e} is at invalid UTF-16 code unit boundary`);return t}error(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}}bump(){if(this.isEOF())return;let e=this.char();e===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}bumpIf(e){if(this.message.startsWith(e,this.offset())){for(let t=0;t=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)}bumpTo(e){if(this.offset()>e)throw Error(`targetOffset ${e} must be greater than or equal to the current offset ${this.offset()}`);for(e=Math.min(e,this.message.length);;){let t=this.offset();if(t===e)break;if(t>e)throw Error(`targetOffset ${e} is at invalid UTF-16 code unit boundary`);if(this.bump(),this.isEOF())break}}bumpSpace(){for(;!this.isEOF()&&WT(this.char());)this.bump()}peek(){if(this.isEOF())return null;let e=this.char(),t=this.offset();return this.message.charCodeAt(t+(e>=65536?2:1))??null}};function VT(e){return e>=97&&e<=122||e>=65&&e<=90}function HT(e){return VT(e)||e===47}function UT(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function WT(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function GT(e){e.forEach(e=>{if(delete e.location,vT(e)||yT(e))for(let t in e.options)delete e.options[t].location,GT(e.options[t].value);else hT(e)&&ST(e.style)||(gT(e)||_T(e))&&CT(e.style)?delete e.style.location:xT(e)&>(e.children)})}function KT(e,t={}){t={shouldParseSkeletons:!0,requiresOtherClause:!0,...t};let n=new BT(e,t).parse();if(n.err){let e=SyntaxError(fT[n.err.kind]);throw e.location=n.err.location,e.originalMessage=n.err.message,e}return t?.captureLocation||GT(n.val),n.val}var qT=class extends Error{constructor(e,t,n){super(e),this.code=t,this.originalMessage=n}toString(){return`[formatjs Error: ${this.code}] ${this.message}`}},JT=class extends qT{constructor(e,t,n,r){super(`Invalid values for "${e}": "${t}". Options are "${Object.keys(n).join(`", "`)}"`,`INVALID_VALUE`,r)}},YT=class extends qT{constructor(e,t,n){super(`Value for "${e}" must be of type ${t}`,`INVALID_VALUE`,n)}},XT=class extends qT{constructor(e,t){super(`The intl string context variable "${e}" was not provided to the string "${t}"`,`MISSING_VALUE`,t)}};function ZT(e){return e.length<2?e:e.reduce((e,t)=>{let n=e[e.length-1];return!n||n.type!==0||t.type!==0?e.push(t):n.value+=t.value,e},[])}function QT(e){return typeof e==`function`}function $T(e,t,n,r,i,a,o){if(e.length===1&&pT(e[0]))return[{type:0,value:e[0].value}];let s=[];for(let c of e){if(pT(c)){s.push({type:0,value:c.value});continue}if(bT(c)){typeof a==`number`&&s.push({type:0,value:n.getNumberFormat(t).format(a)});continue}let{value:e}=c;if(!(i&&e in i))throw new XT(e,o);let l=i[e];if(mT(c)){(!l||typeof l==`string`||typeof l==`number`||typeof l==`bigint`)&&(l=typeof l==`string`||typeof l==`number`||typeof l==`bigint`?String(l):``),s.push({type:typeof l==`string`?0:1,value:l});continue}if(gT(c)){let e=typeof c.style==`string`?r.date[c.style]:CT(c.style)?c.style.parsedOptions:void 0;s.push({type:0,value:n.getDateTimeFormat(t,e).format(l)});continue}if(_T(c)){let e=typeof c.style==`string`?r.time[c.style]:CT(c.style)?c.style.parsedOptions:r.time.medium;s.push({type:0,value:n.getDateTimeFormat(t,e).format(l)});continue}if(hT(c)){let e=typeof c.style==`string`?r.number[c.style]:ST(c.style)?c.style.parsedOptions:void 0;if(e&&e.scale){let t=e.scale||1;if(typeof l==`bigint`){if(!Number.isInteger(t))throw TypeError(`Cannot apply fractional scale ${t} to bigint value. Scale must be an integer when formatting bigint.`);l*=BigInt(t)}else l*=t}s.push({type:0,value:n.getNumberFormat(t,e).format(l)});continue}if(xT(c)){let{children:e,value:l}=c,u=i[l];if(!QT(u))throw new YT(l,`function`,o);let d=u($T(e,t,n,r,i,a).map(e=>e.value));Array.isArray(d)||(d=[d]),s.push(...d.map(e=>({type:typeof e==`string`?0:1,value:e})))}if(vT(c)){let e=l,a=(Object.prototype.hasOwnProperty.call(c.options,e)?c.options[e]:void 0)||c.options.other;if(!a)throw new JT(c.value,l,Object.keys(c.options),o);s.push(...$T(a.value,t,n,r,i));continue}if(yT(c)){let e=`=${l}`,a=Object.prototype.hasOwnProperty.call(c.options,e)?c.options[e]:void 0;if(!a){if(!Intl.PluralRules)throw new qT(`Intl.PluralRules is not available in this environment. +`)),t===e.text&&(!f||f.revision===e.artifact.revision)?wx.delete(u):wx.set(u,{text:t,revision:f?.revision??e.artifact.revision}),l(null),a())},discard:()=>{wx.delete(u),l(null),a()},reconcile:()=>{!f||!e||e.truncated||(wx.set(u,{text:f.text,revision:e.artifact.revision}),l(null),a())},save:async()=>{if(!(!f||!e||o||!p)){s(!0),l(null);try{let t=await n.saveArtifact(e.artifact,f.revision,f.text);wx.get(u)===f&&wx.delete(u),d.current===u&&(r(f.text,t.revision),l({key:u,error:!1,text:i(`filesSaved`)}))}catch(e){d.current===u&&l({key:u,error:!0,text:e instanceof zr&&e.code===`ARTIFACT_CHANGED`?i(`filesSaveConflict`):i(`filesSaveFailed`)})}finally{s(!1),a()}}},message:c?.key===u?c:null}}function Dx({artifact:e,client:t}){let{t:n}=Qn(),[r,i]=(0,_.useState)(null),[a,o]=(0,_.useState)(null),[s,c]=(0,_.useState)(!1),{sessionId:l,handle:u,revision:d}=e;return(0,_.useEffect)(()=>{let e=new AbortController,r;return i(null),o(null),t.downloadArtifact({sessionId:l,handle:u,revision:d},e.signal).then(async t=>{let a=Ur(new Uint8Array(await t.slice(0,12).arrayBuffer()));if(!e.signal.aborted){if(!a)throw Error(n(`artifactImagePreviewFailed`));r=URL.createObjectURL(new Blob([t],{type:a})),i({url:r,loaded:!1})}}).catch(t=>{e.signal.aborted||o(t instanceof Error?t.message:n(`artifactImagePreviewFailed`))}),()=>{e.abort(),r&&URL.revokeObjectURL(r)}},[l,u,d,t,n]),a?(0,G.jsxs)(`div`,{role:`alert`,className:`evidence-warning`,children:[(0,G.jsx)(`p`,{children:n(`artifactImagePreviewFailed`)}),a!==n(`artifactImagePreviewFailed`)&&(0,G.jsx)(`small`,{children:a})]}):(0,G.jsxs)(`div`,{className:`artifact-image-preview`,"data-original":s,children:[(0,G.jsxs)(`div`,{className:`file-preview-toolbar`,children:[(0,G.jsx)(`button`,{type:`button`,"aria-pressed":!s,onClick:()=>c(!1),children:n(`filesFitImage`)}),(0,G.jsx)(`button`,{type:`button`,"aria-pressed":s,onClick:()=>c(!0),children:n(`filesOriginalImage`)})]}),!r?.loaded&&(0,G.jsx)(`p`,{role:`status`,children:n(`readingFile`)}),(0,G.jsx)(`div`,{className:`file-media-viewport`,children:r&&(0,G.jsx)(`img`,{src:r.url,alt:e.name,hidden:!r.loaded,onLoad:()=>i(e=>e?{...e,loaded:!0}:null),onError:()=>o(n(`artifactImagePreviewFailed`))})})]})}var Ox=(0,_.forwardRef)(function({sessionId:e,sessionPath:t,children:n,disabled:r=!1,embedded:i=!1,active:a=!0,onOpen:o,onClose:s},c){let{t:l}=Qn(),u=(0,_.useMemo)(()=>new Vr,[]),d=fx(),f=i?d?.artifact:void 0,[p,m]=(0,_.useState)(()=>f?{sessionId:e,sessionPath:t,reference:f.reference}:null),[h,g]=(0,_.useState)(null),[v,y]=(0,_.useState)(f?.source??!1),[b,x]=(0,_.useState)(f?.editing??!1),[S,C]=(0,_.useState)(null),[w,T]=(0,_.useState)(!1),[E,D]=(0,_.useState)(!1),[O,k]=(0,_.useState)(null),[A,j]=(0,_.useState)(!1),[N,P]=(0,_.useState)(!1),I=(0,_.useRef)(null),L=(0,_.useRef)(null),R=(0,_.useRef)(0),z=(0,_.useRef)(null),B=(0,_.useRef)(null),V=(0,_.useRef)(null),ee=(0,_.useRef)(f?.scroll??0),ne=(0,_.useRef)(!!f);(0,_.useLayoutEffect)(()=>{!i||!d||(d.artifact=p?{reference:h?.artifact.path?encodeURI(h.artifact.path):p.reference,source:v,editing:b,scroll:ee.current,document:d.artifact?.document}:void 0)},[i,d,p,h?.artifact.path,v,b]);let re=(0,_.useRef)(null),ae=(0,_.useRef)(new Set),oe=(0,_.useRef)(void 0),se=(0,_.useRef)(!1),ce=(0,_.useRef)(null),U=JSON.stringify([e,t,r]),le=(0,_.useRef)(U);le.current=U;let ue=!!(p&&!r&&p.sessionId===e&&p.sessionPath===t);(0,_.useEffect)(()=>()=>{ce.current!==null&&(window.cancelAnimationFrame(ce.current),ce.current=null)},[U]);let de=(0,_.useCallback)((n,i,a)=>{if(r)return;let s=document.activeElement,c=a??(s instanceof HTMLElement?s:null),l=!!(i||c?.closest(`.artifact-panel`));l||(L.current=c),o?.(l),ce.current!==null&&(window.cancelAnimationFrame(ce.current),ce.current=null),se.current=!0,R.current++,g(null),y(!1),x(!1),ee.current=0,ne.current=!1,C(null),T(!1),k(null),j(!1),oe.current=i,m({reference:n,parent:i,sessionId:e,sessionPath:t})},[r,o,e,t]),pe=(0,_.useCallback)(({restoreFocus:e=!0}={})=>{if(!p)return;let t=++R.current,n=L.current,r=document.activeElement,i=ue?`user`:`context`;if(L.current=null,se.current=!1,oe.current=void 0,m(null),g(null),k(null),I.current?.abort(),s?.(i),ce.current!==null&&window.cancelAnimationFrame(ce.current),i===`context`||!e){ce.current=null;return}ce.current=window.requestAnimationFrame(()=>{ce.current=null,t===R.current&&le.current===U&&(document.activeElement===document.body||document.activeElement===r||document.activeElement===n)&&n?.isConnected&&n.checkVisibility({visibilityProperty:!0})&&n.focus()})},[s,p,ue,U]);(0,_.useImperativeHandle)(c,()=>({close:pe}),[pe]),(0,_.useLayoutEffect)(()=>{b?B.current?.focus({preventScroll:!0}):V.current&&(V.current.scrollTop=ee.current)},[b]),(0,_.useLayoutEffect)(()=>{!a||!h||!ne.current||!V.current||(V.current.scrollTop=ee.current,ne.current=!1)},[a,h]),(0,_.useEffect)(()=>{!p||ue||(R.current++,m(null),g(null),k(null),se.current=!1,L.current=null,oe.current=void 0,s?.(`context`))},[p,ue,s]),(0,_.useEffect)(()=>{if(!p||!e||!ue||!a)return;let t=new AbortController,n,r=p.parent,i,o=!1,s,c=!1,l=2e3;se.current&&(se.current=!1,z.current?.focus());let d=async()=>{if(document.visibilityState===`hidden`){i=setTimeout(d,2e3);return}try{if(n||=(await(p.external?u.authorizeArtifact(e,p.reference,t.signal):u.resolveArtifact(e,p.reference,r,t.signal))).handle,r&&=(u.releaseArtifact(e,r).catch(()=>void 0),void 0),o){u.releaseArtifact(e,n).catch(()=>void 0);return}if(s){if((await u.artifactMetadata(e,n,t.signal)).identity===s){o||C(null),l=Math.min(l*2,3e4);return}if(c){o||j(!0),l=3e4;return}}let i=await u.artifactPreview(e,n,t.signal);o||(s=i.identity,c=i.text!==void 0,l=2e3,g(e=>e?.artifact.path===i.artifact.path&&e.artifact.revision===i.artifact.revision?{...i,text:e.text,truncated:e.truncated,nextOffset:e.nextOffset}:i),C(null))}catch(e){let t=e instanceof zr&&[401,403,410].includes(e.status);!o&&t&&(g(null),re.current?.abort()),o||T(e instanceof zr&&e.code===`ARTIFACT_DENIED`),l=Math.min(l*2,3e4),o||C(e instanceof Error?e.message:`Unable to read file`),t&&(o=!0)}finally{o||(i=setTimeout(d,l))}};return d(),()=>{o=!0,t.abort(),clearTimeout(i),re.current?.abort(),I.current?.abort(),P(!1),D(!1),n&&n!==oe.current&&u.releaseArtifact(e,n).catch(()=>void 0),r&&u.releaseArtifact(e,r).catch(()=>void 0);for(let e of ae.current)URL.revokeObjectURL(e);ae.current.clear()}},[u,p,ue,e,a]);let me=(0,_.useMemo)(()=>({open:de,disabled:r}),[de,r]),he=h?.artifact.path??p?.reference??``,ge=h?.artifact.name??he.split(/[\\/]/u).at(-1)??he,_e=Ex(h,t,u,(e,t)=>{g(n=>n&&{...n,text:e,truncated:!1,nextOffset:void 0,artifact:{...n.artifact,revision:t,bytes:new TextEncoder().encode(e).length}}),j(!1),m(e=>e&&{...e})}),ve=async()=>{if(!h||E)return;let e=new AbortController;re.current=e,D(!0);try{let t=await u.downloadArtifact(h.artifact,e.signal);if(e.signal.aborted)return;let n=URL.createObjectURL(t);ae.current.add(n);let r=document.createElement(`a`);r.href=n,r.download=h.artifact.name,r.click(),setTimeout(()=>{URL.revokeObjectURL(n),ae.current.delete(n)},1e3)}catch(t){e.signal.aborted||C(t instanceof Error?t.message:`Download failed`)}finally{e.signal.aborted||D(!1)}},ye=async()=>{if(!h?.nextOffset||I.current)return;let e=h,t=new AbortController;I.current=t,P(!0);try{let n=await u.artifactPreview(e.artifact.sessionId,e.artifact.handle,t.signal,{offset:e.nextOffset,revision:e.artifact.revision});t.signal.aborted||g(t=>t?.artifact.handle===e.artifact.handle&&t.artifact.revision===n.artifact.revision?{...n,text:(t.text??``)+(n.text??``)}:t)}catch(e){t.signal.aborted||C(e instanceof Error?e.message:l(`filesReadFailed`))}finally{I.current===t&&(I.current=null,P(!1))}};return(0,G.jsxs)(Xb.Provider,{value:me,children:[n,p&&ue&&(0,G.jsxs)(`aside`,{className:`artifact-panel${i?` artifact-panel-embedded`:``}`,"aria-label":l(`filePreview`),onKeyDown:e=>{if(i&&(e.metaKey||e.ctrlKey)&&e.key.toLowerCase()===`s`){e.preventDefault(),e.stopPropagation(),_e.save();return}e.key===`Escape`&&!e.nativeEvent.isComposing&&!e.defaultPrevented&&(e.preventDefault(),e.stopPropagation(),pe())},children:[(0,G.jsxs)(`header`,{children:[(0,G.jsxs)(`div`,{className:`artifact-title`,children:[(0,G.jsx)(`small`,{title:he,children:i?he.split(/[\\/]/u).slice(0,-1).at(-1)||l(`files`):`${l(`filePreview`)} · ${l(`artifactReadOnly`)}`}),i&&(0,G.jsx)(F,{"aria-hidden":`true`}),(0,G.jsx)(`h2`,{title:he,children:ge}),_e.dirty&&(0,G.jsx)(`span`,{className:`file-unsaved`,role:`img`,title:l(`filesUnsaved`),"aria-label":l(`filesUnsaved`),children:`●`})]}),(0,G.jsxs)(`div`,{className:`artifact-header-actions`,children:[i&&h?.text!==void 0&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`fieldset`,{className:`file-mode-switch`,"aria-label":l(`filesMode`),children:[(0,G.jsx)(`button`,{type:`button`,"aria-pressed":!b,onClick:()=>x(!1),children:l(`filesPreview`)}),(0,G.jsx)(`button`,{type:`button`,"aria-pressed":b,disabled:!_e.canEdit,title:l(h.truncated?`filesEditLoadFirst`:h.artifact.editable?`filesEdit`:`filesEditUnavailable`),onClick:()=>{ee.current=V.current?.scrollTop??0,x(!0)},children:l(`filesEdit`)})]}),(0,G.jsx)(`button`,{type:`button`,title:l(_e.saving?`filesSaving`:_e.dirty?`filesSave`:`filesSaved`),"aria-label":l(_e.saving?`filesSaving`:`filesSave`),disabled:!_e.dirty||_e.saving||!_e.canEdit,onClick:()=>void _e.save(),children:(0,G.jsx)(M,{"aria-hidden":`true`})}),_e.dirty&&(0,G.jsx)(`button`,{type:`button`,title:l(`filesDiscard`),"aria-label":l(`filesDiscard`),disabled:_e.saving,onClick:()=>{window.confirm(l(`filesDiscardConfirm`))&&_e.discard()},children:(0,G.jsx)(st,{"aria-hidden":`true`})})]}),!i&&h?.text!==void 0&&Cx(ge)&&(0,G.jsxs)(`button`,{type:`button`,className:`file-source-toggle`,"aria-pressed":v,onClick:()=>y(e=>!e),children:[v?(0,G.jsx)(fe,{"aria-hidden":`true`}):(0,G.jsx)(ie,{"aria-hidden":`true`}),l(v?`filesPreview`:`filesSource`)]}),(0,G.jsx)(`button`,{type:`button`,"aria-label":l(`copyFilePath`),title:l(`copyFilePath`),onClick:()=>{let e=++R.current;cr(he).then(t=>{e===R.current&&k(t?`copied`:`failed`)})},children:O===`copied`?(0,G.jsx)(M,{"aria-hidden":`true`}):(0,G.jsx)(te,{"aria-hidden":`true`})}),(0,G.jsxs)(`button`,{type:`button`,title:l(`refreshFile`),onClick:()=>{R.current++,k(null),C(null),T(!1),j(!1),oe.current=void 0,m(n=>n?{sessionId:e,sessionPath:t,reference:h?encodeURI(h.artifact.path):n.reference,...n.external?{external:!0}:{},...h?{}:{parent:n.parent}}:null)},children:[(0,G.jsx)(ot,{"aria-hidden":`true`}),` `,l(`refreshFile`)]}),(0,G.jsxs)(`button`,{type:`button`,title:l(`downloadFile`),disabled:!h||E,onClick:()=>void ve(),children:[(0,G.jsx)(H,{"aria-hidden":`true`}),` `,l(E?`downloadingFile`:`downloadFile`)]}),(0,G.jsx)(`button`,{ref:z,type:`button`,"aria-label":l(`closePreview`),title:l(`closePreview`),onClick:()=>pe(),children:(0,G.jsx)(Ot,{"aria-hidden":`true`})})]})]}),(0,G.jsxs)(`div`,{className:`artifact-panel-body`,ref:V,onScroll:e=>{ne.current||(ee.current=e.currentTarget.scrollTop,i&&d?.artifact&&(d.artifact.scroll=ee.current))},children:[!i&&(0,G.jsx)(`div`,{className:`artifact-source`,children:(0,G.jsx)(`code`,{title:he,children:he})}),O&&(0,G.jsx)(`p`,{role:`status`,children:l(O===`copied`?`filePathCopied`:`copyFailed`)}),S&&(0,G.jsxs)(`p`,{role:`status`,className:`evidence-warning`,children:[h?l(`artifactOlderPreview`):``,S]}),A&&(0,G.jsx)(`p`,{className:`evidence-warning`,role:`status`,children:l(`filesContentChanged`)}),_e.message&&(0,G.jsx)(`p`,{role:`status`,className:_e.message.error?`evidence-warning`:`file-save-status`,children:_e.message.text}),_e.conflict&&(0,G.jsxs)(`div`,{className:`file-conflict`,children:[(0,G.jsx)(`p`,{children:l(`filesSaveConflict`)}),(0,G.jsxs)(`details`,{children:[(0,G.jsx)(`summary`,{children:l(`filesDiskVersion`)}),(0,G.jsx)(`pre`,{children:h?.text})]}),(0,G.jsx)(`button`,{type:`button`,disabled:!_e.canEdit||_e.saving,onClick:_e.reconcile,children:l(`filesReconcile`)})]}),w&&!p.external&&/^(?:\/(?!\/)|[a-z]:[\\/])/iu.test(p.reference)&&(0,G.jsxs)(`div`,{className:`artifact-external-access`,children:[(0,G.jsx)(`p`,{children:l(`artifactExternalAccess`)}),(0,G.jsx)(`button`,{type:`button`,onClick:()=>{se.current=!0,C(null),T(!1),m({...p,parent:void 0,external:!0})},children:l(`artifactAuthorizeFile`)})]}),!h&&!S&&(0,G.jsx)(`p`,{role:`status`,children:l(`readingFile`)}),h&&(0,G.jsxs)(G.Fragment,{children:[h.truncated&&(0,G.jsx)(`p`,{className:`evidence-warning`,children:l(`artifactPreviewTruncated`)}),/\.(?:png|jpe?g|gif|webp)$/iu.test(h.artifact.name)?(0,G.jsx)(Dx,{artifact:h.artifact,client:u},JSON.stringify([h.artifact.sessionId,h.artifact.path,h.artifact.handle,h.artifact.revision])):(0,G.jsxs)(Xb.Provider,{value:{open:de,disabled:r,parent:h.artifact.handle,sessionId:e},children:[i&&_e.canEdit&&(0,G.jsx)(`textarea`,{ref:B,hidden:!b,className:`file-editor`,"aria-label":l(`filesEditor`),spellCheck:!1,autoCapitalize:`off`,autoCorrect:`off`,maxLength:1048576,value:_e.text,disabled:_e.saving,onChange:e=>_e.change(e.currentTarget.value)}),!(i&&b&&_e.canEdit)&&(0,G.jsx)(Sx,{preview:_e.dirty?{...h,text:_e.text}:h,client:u,source:v},`${h.artifact.path}:${h.artifact.revision}`)]}),h.nextOffset!==void 0&&(0,G.jsx)(`button`,{type:`button`,className:`file-read-more`,disabled:N||A,onClick:()=>void ye(),children:l(N?`readingFile`:`filesReadMore`)}),(0,G.jsxs)(`details`,{className:`artifact-file-details`,children:[(0,G.jsx)(`summary`,{children:l(`artifactFileDetails`)}),(0,G.jsx)(`p`,{className:`artifact-session`,children:l(`artifactSession`,{sessionId:e})}),(0,G.jsxs)(`p`,{className:`artifact-revision`,children:[l(`artifactVersion`),`:`,` `,(0,G.jsx)(`code`,{children:h.artifact.revision}),` ·`,` `,l(`artifactBytes`,{count:h.artifact.bytes})]})]})]})]})]})]})}),kx={},Ax;function jx(){if(Ax)return kx;Ax=1,Object.defineProperty(kx,"__esModule",{value:!0}),kx.styleq=void 0;var e=new WeakMap,t=`$$css`;function n(n){var r,i,a;return n!=null&&(r=n.disableCache===!0,i=n.disableMix===!0,a=n.transform),function(){for(var n=[],o=``,s=null,c=``,l=r?null:e,u=Array(arguments.length),d=0;d0;){var f=u.pop();if(f!=null&&f!==!1){if(Array.isArray(f)){for(var p=0;p0&&(i.style=n),r!=null&&r!==``&&(i[`data-style-src`]=r),i}Object.freeze({});function Px(e){return(e.style.anchorName??``).split(`,`).map(e=>e.trim()).filter(Boolean)}function Fx(e,t){e.style.anchorName=t.join(`, `)}function Ix(e,t){let n=Px(e);n.includes(t)||(n.push(t),Fx(e,n))}function Lx(e,t){Fx(e,Px(e).filter(e=>e!==t))}var Rx=0,zx=null,Bx=!1;function Vx(){Rx+=1}function Hx(){zx=Rx}function Ux(){Bx||typeof document>`u`||(Bx=!0,document.addEventListener(`pointerdown`,Vx,!0),document.addEventListener(`keydown`,Vx,!0),document.addEventListener(`click`,Hx,!0))}function Wx(){return Ux(),Rx}function Gx(){return Ux(),zx===Rx}var Kx=new Set(`p.h1.h2.h3.h4.h5.h6.dt.pre.legend.data.dfn.meter.output.progress.option.optgroup.table.thead.tbody.tfoot.tr.colgroup.ul.ol.menu.dl.select.datalist.picture.hgroup.ruby.rt.rp.a.button.label.summary.span.em.strong.b.i.u.s.small.mark.code.kbd.samp.var.sub.sup.abbr.cite.q.time.bdi.bdo.ins.del`.split(`.`));function qx(e){if(!e)return null;let t=null,n=e;for(;n;)Kx.has(n.tagName.toLowerCase())&&(t=n),n=n.parentElement;return t?.parentElement??null}var Jx={"--color-accent":`var(--color-accent)`,"--color-accent-muted":`var(--color-accent-muted)`,"--color-on-accent":`var(--color-on-accent)`,"--color-neutral":`var(--color-neutral)`,"--color-background-surface":`var(--color-background-surface)`,"--color-background-body":`var(--color-background-body)`,"--color-overlay":`var(--color-overlay)`,"--color-overlay-hover":`var(--color-overlay-hover)`,"--color-overlay-pressed":`var(--color-overlay-pressed)`,"--color-background-muted":`var(--color-background-muted)`,"--color-text-primary":`var(--color-text-primary)`,"--color-text-secondary":`var(--color-text-secondary)`,"--color-text-disabled":`var(--color-text-disabled)`,"--color-text-accent":`var(--color-text-accent)`,"--color-on-dark":`var(--color-on-dark)`,"--color-on-light":`var(--color-on-light)`,"--color-icon-accent":`var(--color-icon-accent)`,"--color-icon-primary":`var(--color-icon-primary)`,"--color-icon-secondary":`var(--color-icon-secondary)`,"--color-icon-disabled":`var(--color-icon-disabled)`,"--color-background-card":`var(--color-background-card)`,"--color-background-popover":`var(--color-background-popover)`,"--color-background-inverted":`var(--color-background-inverted)`,"--color-background-error-inverted":`var(--color-background-error-inverted)`,"--color-success":`var(--color-success)`,"--color-success-muted":`var(--color-success-muted)`,"--color-on-success":`var(--color-on-success)`,"--color-error":`var(--color-error)`,"--color-error-muted":`var(--color-error-muted)`,"--color-on-error":`var(--color-on-error)`,"--color-warning":`var(--color-warning)`,"--color-warning-muted":`var(--color-warning-muted)`,"--color-on-warning":`var(--color-on-warning)`,"--color-border":`var(--color-border)`,"--color-border-emphasized":`var(--color-border-emphasized)`,"--color-skeleton":`var(--color-skeleton)`,"--color-track":`var(--color-track)`,"--color-shadow":`var(--color-shadow)`,"--color-tint-hover":`var(--color-tint-hover)`,"--color-background-blue":`var(--color-background-blue)`,"--color-border-blue":`var(--color-border-blue)`,"--color-icon-blue":`var(--color-icon-blue)`,"--color-text-blue":`var(--color-text-blue)`,"--color-background-cyan":`var(--color-background-cyan)`,"--color-border-cyan":`var(--color-border-cyan)`,"--color-icon-cyan":`var(--color-icon-cyan)`,"--color-text-cyan":`var(--color-text-cyan)`,"--color-background-gray":`var(--color-background-gray)`,"--color-border-gray":`var(--color-border-gray)`,"--color-icon-gray":`var(--color-icon-gray)`,"--color-text-gray":`var(--color-text-gray)`,"--color-background-green":`var(--color-background-green)`,"--color-border-green":`var(--color-border-green)`,"--color-icon-green":`var(--color-icon-green)`,"--color-text-green":`var(--color-text-green)`,"--color-background-orange":`var(--color-background-orange)`,"--color-border-orange":`var(--color-border-orange)`,"--color-icon-orange":`var(--color-icon-orange)`,"--color-text-orange":`var(--color-text-orange)`,"--color-background-pink":`var(--color-background-pink)`,"--color-border-pink":`var(--color-border-pink)`,"--color-icon-pink":`var(--color-icon-pink)`,"--color-text-pink":`var(--color-text-pink)`,"--color-background-purple":`var(--color-background-purple)`,"--color-border-purple":`var(--color-border-purple)`,"--color-icon-purple":`var(--color-icon-purple)`,"--color-text-purple":`var(--color-text-purple)`,"--color-background-red":`var(--color-background-red)`,"--color-border-red":`var(--color-border-red)`,"--color-icon-red":`var(--color-icon-red)`,"--color-text-red":`var(--color-text-red)`,"--color-background-teal":`var(--color-background-teal)`,"--color-border-teal":`var(--color-border-teal)`,"--color-icon-teal":`var(--color-icon-teal)`,"--color-text-teal":`var(--color-text-teal)`,"--color-background-yellow":`var(--color-background-yellow)`,"--color-border-yellow":`var(--color-border-yellow)`,"--color-icon-yellow":`var(--color-icon-yellow)`,"--color-text-yellow":`var(--color-text-yellow)`,__varGroupHash__:`xj0fimd`},Yx={"--spacing-0":`var(--spacing-0)`,"--spacing-0-5":`var(--spacing-0-5)`,"--spacing-1":`var(--spacing-1)`,"--spacing-1-5":`var(--spacing-1-5)`,"--spacing-2":`var(--spacing-2)`,"--spacing-3":`var(--spacing-3)`,"--spacing-4":`var(--spacing-4)`,"--spacing-5":`var(--spacing-5)`,"--spacing-6":`var(--spacing-6)`,"--spacing-7":`var(--spacing-7)`,"--spacing-8":`var(--spacing-8)`,"--spacing-9":`var(--spacing-9)`,"--spacing-10":`var(--spacing-10)`,"--spacing-11":`var(--spacing-11)`,"--spacing-12":`var(--spacing-12)`,__varGroupHash__:`x1kvdh9l`},Xx={"--focus-outline-width":`var(--focus-outline-width)`,"--focus-outline-style":`var(--focus-outline-style)`,"--focus-outline-color":`var(--focus-outline-color)`,"--focus-outline-offset":`var(--focus-outline-offset)`,__varGroupHash__:`xzxs3qz`},Zx={"--duration-fast-min":`var(--duration-fast-min)`,"--duration-fast":`var(--duration-fast)`,"--duration-fast-max":`var(--duration-fast-max)`,"--duration-medium-min":`var(--duration-medium-min)`,"--duration-medium":`var(--duration-medium)`,"--duration-medium-max":`var(--duration-medium-max)`,"--duration-slow-min":`var(--duration-slow-min)`,"--duration-slow":`var(--duration-slow)`,"--duration-slow-max":`var(--duration-slow-max)`,__varGroupHash__:`x14lkjui`},Qx={"--ease-standard":`var(--ease-standard)`,__varGroupHash__:`xf09i69`},$x={0:`spacing0`,.5:`spacing0_5`,1:`spacing1`,1.5:`spacing1_5`,2:`spacing2`,3:`spacing3`,4:`spacing4`,5:`spacing5`,6:`spacing6`,8:`spacing8`,10:`spacing10`},eS={0:{kZCmMZ:`x18gyask`,kwRFfy:`x1s0aq8i`,kLKAdn:`x1ydh6w3`,kGO01o:`x1l20ajd`,$$css:!0},1:{kZCmMZ:`x1vsv5vr`,kwRFfy:`x1nryj5t`,kLKAdn:`xfsso4q`,kGO01o:`xy143xn`,$$css:!0},2:{kZCmMZ:`x12gdq22`,kwRFfy:`x1djylfy`,kLKAdn:`x1xye8es`,kGO01o:`x1wesfrj`,$$css:!0},3:{kZCmMZ:`x126nfab`,kwRFfy:`x1t818jl`,kLKAdn:`x1vlblms`,kGO01o:`xvmdzux`,$$css:!0},4:{kZCmMZ:`x1rey3nv`,kwRFfy:`xnjyzlh`,kLKAdn:`x1oa1p4a`,kGO01o:`x1awphl8`,$$css:!0},5:{kZCmMZ:`x1blguxw`,kwRFfy:`xdbrk9v`,kLKAdn:`xx7rijo`,kGO01o:`x1hk98q`,$$css:!0},6:{kZCmMZ:`x31w388`,kwRFfy:`x1we12cn`,kLKAdn:`x1adxfkp`,kGO01o:`xjpqqx5`,$$css:!0},8:{kZCmMZ:`x1j3hnjz`,kwRFfy:`x1q91b2g`,kLKAdn:`xoxd1wu`,kGO01o:`x2oz4g1`,$$css:!0},10:{kZCmMZ:`xqp078j`,kwRFfy:`x160ivqr`,kLKAdn:`xk6660b`,kGO01o:`x2izi54`,$$css:!0},"0.5":{kZCmMZ:`x138rykx`,kwRFfy:`x1le3yxw`,kLKAdn:`xbx876j`,kGO01o:`xij103a`,$$css:!0},"1.5":{kZCmMZ:`xfti1ec`,kwRFfy:`x17hk9do`,kLKAdn:`x1kwdpsa`,kGO01o:`x1opdxmq`,$$css:!0}},tS={0:{"--container-padding-inline-start":`x1gu2k80`,"--container-padding-inline-end":`x91ghl5`,$$css:!0},1:{"--container-padding-inline-start":`x1cvlban`,"--container-padding-inline-end":`x2oyxnl`,$$css:!0},2:{"--container-padding-inline-start":`x1xlrr2o`,"--container-padding-inline-end":`xcas3b9`,$$css:!0},3:{"--container-padding-inline-start":`xfdwxua`,"--container-padding-inline-end":`xu0ipoa`,$$css:!0},4:{"--container-padding-inline-start":`x1dlhslv`,"--container-padding-inline-end":`xs0pscg`,$$css:!0},5:{"--container-padding-inline-start":`x1s81nki`,"--container-padding-inline-end":`xgkj7vj`,$$css:!0},6:{"--container-padding-inline-start":`x1ep0dkj`,"--container-padding-inline-end":`x94cj42`,$$css:!0},8:{"--container-padding-inline-start":`xw1diwv`,"--container-padding-inline-end":`x1b9k1pi`,$$css:!0},10:{"--container-padding-inline-start":`xserb3f`,"--container-padding-inline-end":`xx5lg5w`,$$css:!0},"0.5":{"--container-padding-inline-start":`x14ws0sr`,"--container-padding-inline-end":`x1wz3t3y`,$$css:!0},"1.5":{"--container-padding-inline-start":`x176g23i`,"--container-padding-inline-end":`xntetml`,$$css:!0}},nS={0:{"--container-padding-block-start":`x1i3qcxz`,$$css:!0},1:{"--container-padding-block-start":`xnsckjb`,$$css:!0},2:{"--container-padding-block-start":`xa8b4fq`,$$css:!0},3:{"--container-padding-block-start":`x11k4f5r`,$$css:!0},4:{"--container-padding-block-start":`xm01sq8`,$$css:!0},5:{"--container-padding-block-start":`xp8wdkl`,$$css:!0},6:{"--container-padding-block-start":`x1hmud4d`,$$css:!0},8:{"--container-padding-block-start":`xfv60at`,$$css:!0},10:{"--container-padding-block-start":`x17h9kl7`,$$css:!0},"0.5":{"--container-padding-block-start":`xvdf9ev`,$$css:!0},"1.5":{"--container-padding-block-start":`x1kbx601`,$$css:!0}},rS={0:{"--container-padding-block-end":`xkunwnr`,$$css:!0},1:{"--container-padding-block-end":`x57a7ii`,$$css:!0},2:{"--container-padding-block-end":`x1lsgcmx`,$$css:!0},3:{"--container-padding-block-end":`x1q3ppug`,$$css:!0},4:{"--container-padding-block-end":`x4hfsld`,$$css:!0},5:{"--container-padding-block-end":`xbib2ws`,$$css:!0},6:{"--container-padding-block-end":`x1q8d17g`,$$css:!0},8:{"--container-padding-block-end":`x8lgq76`,$$css:!0},10:{"--container-padding-block-end":`x15vxphk`,$$css:!0},"0.5":{"--container-padding-block-end":`x1cao3zv`,$$css:!0},"1.5":{"--container-padding-block-end":`xv53x8y`,$$css:!0}},iS={0:{"--layout-padding-outer-x":`xswhm3q`,$$css:!0},1:{"--layout-padding-outer-x":`xc96xmq`,$$css:!0},2:{"--layout-padding-outer-x":`x15dxnc0`,$$css:!0},3:{"--layout-padding-outer-x":`xadgj3j`,$$css:!0},4:{"--layout-padding-outer-x":`x1v56qcf`,$$css:!0},5:{"--layout-padding-outer-x":`x1nzs0gl`,$$css:!0},6:{"--layout-padding-outer-x":`x1c3n52a`,$$css:!0},8:{"--layout-padding-outer-x":`x1t3kfz`,$$css:!0},10:{"--layout-padding-outer-x":`x1jdf5a4`,$$css:!0},"0.5":{"--layout-padding-outer-x":`xihiwg7`,$$css:!0},"1.5":{"--layout-padding-outer-x":`x1u93lgd`,$$css:!0}},aS={0:{"--layout-padding-outer-y":`x1mzf5mb`,$$css:!0},1:{"--layout-padding-outer-y":`x1gpfxoh`,$$css:!0},2:{"--layout-padding-outer-y":`x10pz7y9`,$$css:!0},3:{"--layout-padding-outer-y":`x1p6yq3h`,$$css:!0},4:{"--layout-padding-outer-y":`xx738ci`,$$css:!0},5:{"--layout-padding-outer-y":`x6yxws5`,$$css:!0},6:{"--layout-padding-outer-y":`x180vrwl`,$$css:!0},8:{"--layout-padding-outer-y":`xid7e43`,$$css:!0},10:{"--layout-padding-outer-y":`x26l4wa`,$$css:!0},"0.5":{"--layout-padding-outer-y":`x1vj96e0`,$$css:!0},"1.5":{"--layout-padding-outer-y":`xd3dqby`,$$css:!0}},oS={0:{kZCmMZ:`x18gyask`,$$css:!0},1:{kZCmMZ:`x1vsv5vr`,$$css:!0},2:{kZCmMZ:`x12gdq22`,$$css:!0},3:{kZCmMZ:`x126nfab`,$$css:!0},4:{kZCmMZ:`x1rey3nv`,$$css:!0},5:{kZCmMZ:`x1blguxw`,$$css:!0},6:{kZCmMZ:`x31w388`,$$css:!0},8:{kZCmMZ:`x1j3hnjz`,$$css:!0},10:{kZCmMZ:`xqp078j`,$$css:!0},"0.5":{kZCmMZ:`x138rykx`,$$css:!0},"1.5":{kZCmMZ:`xfti1ec`,$$css:!0}},sS={0:{kwRFfy:`x1s0aq8i`,$$css:!0},1:{kwRFfy:`x1nryj5t`,$$css:!0},2:{kwRFfy:`x1djylfy`,$$css:!0},3:{kwRFfy:`x1t818jl`,$$css:!0},4:{kwRFfy:`xnjyzlh`,$$css:!0},5:{kwRFfy:`xdbrk9v`,$$css:!0},6:{kwRFfy:`x1we12cn`,$$css:!0},8:{kwRFfy:`x1q91b2g`,$$css:!0},10:{kwRFfy:`x160ivqr`,$$css:!0},"0.5":{kwRFfy:`x1le3yxw`,$$css:!0},"1.5":{kwRFfy:`x17hk9do`,$$css:!0}},cS={0:{kLKAdn:`x1ydh6w3`,$$css:!0},1:{kLKAdn:`xfsso4q`,$$css:!0},2:{kLKAdn:`x1xye8es`,$$css:!0},3:{kLKAdn:`x1vlblms`,$$css:!0},4:{kLKAdn:`x1oa1p4a`,$$css:!0},5:{kLKAdn:`xx7rijo`,$$css:!0},6:{kLKAdn:`x1adxfkp`,$$css:!0},8:{kLKAdn:`xoxd1wu`,$$css:!0},10:{kLKAdn:`xk6660b`,$$css:!0},"0.5":{kLKAdn:`xbx876j`,$$css:!0},"1.5":{kLKAdn:`x1kwdpsa`,$$css:!0}},lS={0:{kGO01o:`x1l20ajd`,$$css:!0},1:{kGO01o:`xy143xn`,$$css:!0},2:{kGO01o:`x1wesfrj`,$$css:!0},3:{kGO01o:`xvmdzux`,$$css:!0},4:{kGO01o:`x1awphl8`,$$css:!0},5:{kGO01o:`x1hk98q`,$$css:!0},6:{kGO01o:`xjpqqx5`,$$css:!0},8:{kGO01o:`x2oz4g1`,$$css:!0},10:{kGO01o:`x2izi54`,$$css:!0},"0.5":{kGO01o:`xij103a`,$$css:!0},"1.5":{kGO01o:`x1opdxmq`,$$css:!0}},uS={reset:{"--container-padding-inline-start":`xrhngw9`,"--container-padding-inline-end":`xjsfl84`,"--container-padding-block-start":`x1047aw6`,"--container-padding-block-end":`xax9j7h`,"--layout-padding-outer-x":`xdt8ak2`,"--layout-padding-outer-y":`x1rs4lu4`,"--layout-padding-inner-x":`x1qfll2g`,"--layout-padding-inner-y":`xyvxpqs`,"--_section-padding-propagated":`x1f17rg1`,$$css:!0}},dS=c(),fS={keoZOQ:`x1vhfslr`,k1K539:`xlm3tn6`,$$css:!0},pS={base:{keoZOQ:`xdj266r`,k1K539:`xat24cr`,keTefX:`x1lziwak`,k71WvV:`x14z9mp`,kLKAdn:`xexx8yu`,kGO01o:`x18d9i69`,kZCmMZ:`x1c1uobl`,kwRFfy:`xyri2b`,kMzoRj:`xc342km`,ksu8eU:`xng3xce`,kVQacm:`x1rea2x4`,kMv6JI:`x9ynric`,kGuDYH:`xjm74w1`,kLWn49:`xw6l6zx`,kWkggS:`xjbqb8w`,$$css:!0},fixed:{kVAEAm:`xixxii4`,$$css:!0},offsetBlock:e=>[fS,{"--x-marginBlockStart":(e=>typeof e==`number`?e+`px`:e??void 0)(e),"--x-marginBlockEnd":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}],offsetInline:e=>[{keTefX:e==null?e:`x4lel18`,k71WvV:e==null?e:`x1c9tiao`,$$css:!0},{"--x-marginInlineStart":(e=>typeof e==`number`?e+`px`:e??void 0)(e),"--x-marginInlineEnd":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}]};function mS(e){return typeof e==`number`?`${e}px`:e}function hS(e,t){let n=e.ownerDocument.defaultView;if(!n)return{};let r=n.getComputedStyle(e),i=n.getComputedStyle(t);return{...r.direction!==i.direction&&{direction:r.direction},...r.writingMode!==i.writingMode&&{writingMode:r.writingMode}}}function gS(e=`above`,t=`center`){if(e===`above`||e===`below`){let n=e===`above`?`self-block-start`:`self-block-end`;return t===`start`?`${n} span-self-inline-end`:t===`end`?`${n} span-self-inline-start`:n}let n=e===`start`?`self-inline-start`:`self-inline-end`;return t===`start`?`${n} span-self-block-end`:t===`end`?`${n} span-self-block-start`:n}function _S(e=`above`,t=`center`){let n=`flip-block, flip-inline, flip-block flip-inline`;if(t!==`center`)return n;if(e===`above`||e===`below`){let[t,r]=e===`above`?[`top`,`bottom`]:[`bottom`,`top`];return`${n}, ${t} span-left, ${t} span-right, ${r} span-left, ${r} span-right`}let[r,i]=e===`start`?[`left`,`right`]:[`right`,`left`];return`${n}, ${r} span-top, ${r} span-bottom, ${i} span-top, ${i} span-bottom`}function vS(e){let{mode:t,onShow:n,onHide:r,lightDismiss:i=!1}=e,a=t===`context`?e.lazyMount??!1:!1,o=(0,_.useId)(),s=`--astryx-layer-${o.replace(/:/g,``)}`,[c,l]=(0,_.useState)(!1),u=(0,_.useRef)(null),d=(0,_.useRef)(null),f=(0,_.useRef)(null),p=(0,_.useRef)(null),m=(0,_.useRef)(null),[h,g]=(0,_.useState)(null),v=(0,_.useRef)(!1),y=(0,_.useRef)(!1),b=(0,_.useRef)(null),x=(0,_.useRef)(null),S=(0,_.useCallback)(()=>{let e=Wx();return b.current===e},[]),C=(0,_.useCallback)(e=>{typeof e.showPopover==`function`?e.showPopover({source:f.current??void 0}):e.style.display=`block`,d.current=e},[]),w=(0,_.useCallback)(e=>{if(t!==`context`)return!0;let n=m.current;if(n===null)return!1;let r=n.portalTarget??p.current?.parentElement??null;return e.parentElement===r},[t]),T=(0,_.useCallback)(()=>{if(t!==`context`)return;let e=p.current,n=e?.parentElement??null;if(!e||!n)return;let r=qx(n),i={portalTarget:r,portalStyle:r?hS(e,r):{}};m.current=i,g(i)},[t]),E=(0,_.useCallback)(()=>{t!==`context`||!a||(m.current=null,g(null))},[t,a]),D=(0,_.useCallback)(()=>{if(S())return;let e=u.current,t=e&&w(e)?e:null;if(!t){v.current=!0,T();return}y.current||(C(t),y.current=!0,l(!0),n?.())},[n,T,C,w,S]),O=(0,_.useCallback)(()=>{if(v.current=!1,y.current){let e=u.current;d.current=null,y.current=!1,e&&(typeof e.hidePopover==`function`?e.hidePopover():e.style.display=`none`),l(!1),r?.()}E()},[r,E]),k=(0,_.useCallback)(e=>{f.current&&f.current!==e&&Lx(f.current,s),e&&Ix(e,s),f.current=e},[s]),A=(0,_.useCallback)(e=>{if(x.current?.(),Gx())return;b.current=Wx();let t=e.defaultView,n=null,r=()=>{b.current=null,e.removeEventListener(`click`,i,!0),n!==null&&(t?.clearTimeout(n),n=null),x.current===r&&(x.current=null)},i=()=>{e.removeEventListener(`click`,i,!0),t?n=t.setTimeout(()=>{n=null,x.current===r&&r()},0):r()};e.addEventListener(`click`,i,!0),x.current=r},[]);(0,_.useEffect)(()=>(Wx(),()=>x.current?.()),[]);let j=(0,_.useCallback)(e=>{e.newState===`closed`&&y.current&&(d.current=null,y.current=!1,A(e.currentTarget?.ownerDocument??document),l(!1),r?.(),E())},[r,E,A]),M=(0,_.useRef)(null),N=(0,_.useRef)(null),P=(0,_.useCallback)((e,t)=>{M.current&&N.current&&(M.current!==e||N.current!==t)&&(M.current.removeEventListener(`toggle`,N.current),M.current=null,N.current=null),e&&M.current!==e&&(e.addEventListener(`toggle`,t),M.current=e,N.current=t)},[]),F=(0,_.useCallback)(e=>{u.current=e,P(e,j),e&&v.current?(v.current=!1,D()):e&&y.current&&d.current!==e&&w(e)&&C(e)},[j,P,D,C,w]),I=(0,_.useCallback)(e=>{p.current=e,e&&(!a||v.current||y.current)&&T()},[a,T]);(0,_.useEffect)(()=>(u.current&&P(u.current,j),()=>{M.current&&N.current&&(M.current.removeEventListener(`toggle`,N.current),M.current=null,N.current=null)}),[j,P]);let L=(0,_.useCallback)((e,t)=>{let n=(0,G.jsx)(`template`,{ref:I});if(h===null)return(0,G.jsx)(G.Fragment,{children:n});let{placement:r=`above`,alignment:a=`center`,positioning:c=`anchor`,offset:l,role:u,"aria-label":d,xstyle:f,className:p,style:m,as:g=`div`,onMouseEnter:_,onMouseLeave:v}=t||{},y=c===`custom`?{positionAnchor:s}:{positionAnchor:s,positionArea:gS(r,a),positionTryFallbacks:_S(r,a)},b=c===`anchor`&&l?r===`above`||r===`below`?pS.offsetBlock(mS(l)):pS.offsetInline(mS(l)):null,x=Nx(pS.base,uS.reset,b,f),S=p?`${p} ${x.className??``}`:x.className,C=(0,G.jsx)(g,{ref:F,id:o,role:u,"aria-label":d,popover:i?`auto`:`manual`,className:S,style:{...x.style,...y,...h.portalStyle,...m},onMouseEnter:_,onMouseLeave:v,children:e});return(0,G.jsxs)(G.Fragment,{children:[n,h.portalTarget?(0,dS.createPortal)(C,h.portalTarget):C]})},[s,h,o,i,F,I]),R=(0,_.useCallback)((e,t)=>{let{x:n,y:r,xstyle:a,className:s,style:c}=t,l={top:r,left:n},u=Nx(pS.base,uS.reset,pS.fixed,a),d=s?`${s} ${u.className??``}`:u.className;return(0,G.jsx)(`div`,{ref:F,id:o,popover:i?`auto`:`manual`,className:d,style:{...u.style,...l,...c},children:e})},[F,o,i]),z=(0,_.useMemo)(()=>({ref:k,anchorId:s,show:D,hide:O,isOpen:c,wasJustDismissed:S,id:o,render:L}),[k,s,D,O,c,S,o,L]),B=(0,_.useMemo)(()=>({ref:void 0,show:D,hide:O,isOpen:c,wasJustDismissed:S,id:o,render:R}),[D,O,c,S,o,R]);return t===`context`?z:B}function yS(e){let t=vS(e);return(0,_.useMemo)(()=>{let{wasJustDismissed:e,...n}=t;return n},[t])}function bS(e){return vS(e)}var xS=`button:not([disabled]), a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"]):not([disabled]), [contenteditable]:not([contenteditable="false"]), audio[controls], video[controls], iframe, details > summary:first-child`,SS=(0,_.createContext)(0);SS.displayName=`LayerDepthContext`;function CS(){return(0,_.use)(SS)}function wS({children:e}){let t=(0,_.use)(SS);return(0,G.jsx)(SS,{value:t+1,children:e})}wS.displayName=`LayerDepthProvider`;var TS=229;function ES(e){return e.isComposing===!0||e.keyCode===TS}var DS=[],OS=new WeakMap,kS=0,AS=!1;function jS(e){let t=OS.get(e);if(t!==void 0)return t;let n=kS++;return OS.set(e,n),n}function MS(e,t){if(e.depth!==t.depth)return e.depth-t.depth;let n=e.getContainer?.()??null,r=t.getContainer?.()??null;if(n!=null&&r!=null&&n!==r){if(r.contains(n))return 1;if(n.contains(r))return-1}return e.seq-t.seq}function NS(e){return e.isPresent?.()??!0}var PS=!1;function FS(){return PS}function IS(){PS=!0}function LS(){PS=!1}function RS(){let e=null;for(let t of DS)NS(t)&&(e==null||MS(t,e)>0)&&(e=t);return e}function zS(e){return RS()?.token===e}function BS(){let e=RS();return e!=null&&(e.behavior===`block`||e.dismiss(),!0)}function VS(e){if(e.key===`Escape`){if(ES(e)){RS()!=null&&e.preventDefault();return}e.defaultPrevented||BS()&&e.preventDefault()}}function HS(){AS||typeof document>`u`||(document.addEventListener(`keydown`,VS),document.addEventListener(`compositionstart`,IS,!0),document.addEventListener(`compositionend`,LS,!0),document.addEventListener(`blur`,LS,!0),AS=!0)}function US(){!AS||typeof document>`u`||(document.removeEventListener(`keydown`,VS),document.removeEventListener(`compositionstart`,IS,!0),document.removeEventListener(`compositionend`,LS,!0),document.removeEventListener(`blur`,LS,!0),PS=!1,AS=!1)}function WS(e){let t={...e,seq:jS(e.token)};return DS.push(t),HS(),()=>{let e=DS.indexOf(t);e!==-1&&DS.splice(e,1),DS.length===0&&US()}}function GS(e){let{isActive:t,onDismiss:n,escapeBehavior:r=`close`,getContainer:i,isPresent:a,isEnabled:o=!0}=e,s=CS(),c=(0,_.useRef)({}),l=(0,_.useRef)(n),u=(0,_.useRef)(i),d=(0,_.useRef)(a);(0,_.useEffect)(()=>{l.current=n,u.current=i,d.current=a});let f=t&&o;return(0,_.useEffect)(()=>{if(f)return WS({token:c.current,depth:s,behavior:r,getContainer:()=>u.current?.()??null,isPresent:()=>d.current?.()??!0,dismiss:()=>l.current()})},[f,s,r]),{shouldDismissOnCloseRequest:(0,_.useCallback)(()=>f&&!FS()&&zS(c.current),[f])}}var KS=0;function qS(e){if(e.hasAttribute(`inert`)||e.closest(`[inert]`)||e.hidden||e.closest(`[hidden]`)||e.closest(`[aria-hidden="true"]`))return!1;if(typeof window<`u`&&window.getComputedStyle){let t=window.getComputedStyle(e);if(t.visibility===`hidden`||t.display===`none`)return!1}return!0}function JS(e){return Array.from(e.querySelectorAll(xS)).filter(qS)}function YS(e){try{e.focus()}catch{}return document.activeElement===e}function XS(e){let t=JS(e);for(let e of t)if(YS(e))return!0;return!1}function ZS(e){let t=JS(e);for(let e=t.length-1;e>=0;e--)if(YS(t[e]))return!0;return!1}function QS(e){let{isActive:t,onEscape:n}=e,r=(0,_.useRef)(null),i=(0,_.useRef)(null),a=(0,_.useRef)(!1),o=t&&n!=null;GS({isActive:o,onDismiss:()=>{n?.()},getContainer:()=>r.current}),(0,_.useEffect)(()=>{if(o)return KS+=1,()=>{--KS}},[o]);let s=(0,_.useCallback)(()=>{r.current&&XS(r.current)},[]);return(0,_.useEffect)(()=>{if(!t)return;let e=document.activeElement,n=r.current;return()=>{let t=document.activeElement;(t==null||t===document.body||t===document.documentElement||n!=null&&n.contains(t))&&e!=null&&e.isConnected&&typeof e.focus==`function`&&e.focus()}},[t]),(0,_.useEffect)(()=>{if(!t)return;let e=e=>{let t=r.current;if(!t)return;let n=e.target;if(t.contains(n))i.current=n;else if(a.current){let e=XS(t);e&&i.current===document.activeElement?ZS(t):!e&&i.current instanceof HTMLElement&&t.contains(i.current)&&YS(i.current),i.current=document.activeElement}a.current=!1};return document.addEventListener(`focus`,e,!0),()=>{document.removeEventListener(`focus`,e,!0)}},[t]),(0,_.useEffect)(()=>{if(!t)return;let e=e=>{let t=r.current;if(t&&e.key===`Tab`){a.current=!0;let n=JS(t);if(n.length===0){let n=document.activeElement;if(!(n instanceof HTMLElement)||!t.contains(n))return;e.preventDefault(),i.current=n,a.current=!1;return}let r=n[0],o=n[n.length-1];e.shiftKey?document.activeElement===r&&(e.preventDefault(),o.focus()):document.activeElement===o&&(e.preventDefault(),r.focus())}};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[t,n]),{containerRef:r,focusFirst:s}}var $S=`keyboard`,eC=!1;function tC(){$S=`pointer`}function nC(e){e.metaKey||e.altKey||e.ctrlKey||($S=`keyboard`)}function rC(){eC||typeof document>`u`||(eC=!0,document.addEventListener(`pointerdown`,tC,{capture:!0,passive:!0}),document.addEventListener(`keydown`,nC,{capture:!0,passive:!0}))}function iC(){return $S}var aC=new Set([`touch`,`pen`]),oC=new Set([`button`,`checkbox`,`combobox`,`link`,`menuitem`,`menuitemcheckbox`,`menuitemradio`,`option`,`radio`,`searchbox`,`slider`,`spinbutton`,`switch`,`tab`,`textbox`]);function sC(e){let t=e.getAttribute(`role`);if(t!=null&&t!==``)return oC.has(t);switch(e.tagName){case`BUTTON`:case`INPUT`:case`LABEL`:case`SELECT`:case`SUMMARY`:case`TEXTAREA`:return!0;case`A`:case`AREA`:return e.hasAttribute(`href`);default:return cC(e)}}function cC(e){if(e.isContentEditable===!0)return!0;let t=e.getAttribute(`contenteditable`);return t!=null&&t!==`false`}function lC(e){let{touchTrigger:t,isEnabled:n,isControlled:r,isOpen:i,layerId:a,triggerRef:o,show:s,hide:c}=e,l=(0,_.useRef)(!1),u=(0,_.useRef)(i);u.current=i;let d=(0,_.useRef)(c);d.current=c;let f=(0,_.useRef)(a);f.current=a;let p=(0,_.useRef)(!1),m=(0,_.useRef)(null);(0,_.useEffect)(()=>{rC()},[]);let h=(0,_.useCallback)(()=>{p.current=!1;let e=m.current;e!=null&&(m.current=null,document.removeEventListener(`pointerdown`,e,!0))},[]),g=(0,_.useCallback)(()=>{if(p.current=!0,m.current!=null)return;let e=e=>{let t=e.target;(t==null||o.current?.contains(t)!==!0&&document.getElementById(f.current)?.contains(t)!==!0)&&(h(),d.current())};m.current=e,document.addEventListener(`pointerdown`,e,!0)},[o,h]);(0,_.useEffect)(()=>h,[h]);let v=(0,_.useCallback)(()=>l.current&&iC()===`pointer`,[]),y=(0,_.useCallback)(e=>{l.current=e.pointerType===`touch`},[]),b=(0,_.useCallback)(e=>{let i=aC.has(e.pointerType);if(l.current=i,!i||r)return!1;let a=o.current;return(t===`auto`?a!=null&&sC(a)?`none`:`tap`:t)===`none`||!n||u.current||p.current?(h(),c(),!0):(g(),s(),!0)},[t,n,r,o,s,c,g,h]),x=(0,_.useRef)(i);return(0,_.useEffect)(()=>{x.current&&!i&&h(),x.current=i},[i,h]),{isTouchPointerRef:l,isTouchInteraction:v,handlePointerEnter:y,handlePointerDown:b,clearTapOpen:h}}Zx[`--duration-fast-max`],Qx[`--ease-standard`];var uC={below:{kKVMdj:`xl1vlw0 x1aquc0h`,k44tkh:`x9uej1z`,kyAemX:`x128ha8g`,kWV6AL:`xskzprw`,$$css:!0},above:{kKVMdj:`x3psbcj x1aquc0h`,k44tkh:`x9uej1z`,kyAemX:`x128ha8g`,kWV6AL:`xskzprw`,$$css:!0},end:{kKVMdj:`x1i331go x1vxsm5i x1aquc0h`,k44tkh:`x9uej1z`,kyAemX:`x128ha8g`,kWV6AL:`xskzprw`,$$css:!0},start:{kKVMdj:`xck01x9 x18lne9g x1aquc0h`,k44tkh:`x9uej1z`,kyAemX:`x128ha8g`,kWV6AL:`xskzprw`,$$css:!0}},dC=`astryx`,fC=dC,pC=dC,mC=dC;function hC(e){return`${fC}-${e}`}function gC(e){return`data-${pC}-${e}`}function _C(e){return`--${mC}-${e}`}function vC(e){return`data-${e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase()}`}function yC(e,t){return/^\d/.test(t)?`${e}-${t}`:t}function bC(e,t){let n=[hC(e)];if(t)for(let[e,r]of Object.entries(t))r!=null&&n.push(yC(e,String(r)));return n.join(` `)}function xC(e){let t={};if(e)for(let[n,r]of Object.entries(e))r!=null&&(t[vC(n)]=String(r));return t}function SC(e,t,n){let r=bC(e,t),i=n?.legacyNames?.map(e=>hC(e))??[];return{className:i.length>0?[r,...i].join(` `):r,...xC(t)}}var CC=100,wC={container:{kWkggS:`x19aspcf`,kMwMTN:`xrkvqaz`,kaIpWk:`x1hviunn`,kMv6JI:`x9ynric`,kGuDYH:`xjm74w1`,kLWn49:`xw6l6zx`,$$css:!0}};function TC(e){return e.hasAttribute(`tabindex`)?e.tabIndex>=0:[`A`,`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`].includes(e.tagName)?!e.disabled:!!e.isContentEditable}function EC(e={}){let{placement:t=`above`,alignment:n=`center`,delay:r=200,hideDelay:i=0,focusTrigger:a=`auto`,touchTrigger:o=`auto`,isEnabled:s=!0,isOpen:c,isDefaultOpen:l=!1,onShow:u,onHide:d}=e,f=yS({mode:`context`,onShow:u,onHide:d}),p=wC.container,m=(0,_.useRef)(null),h=(0,_.useRef)(null),g=(0,_.useRef)(null),v=(0,_.useCallback)(()=>{m.current&&=(clearTimeout(m.current),null),h.current&&=(clearTimeout(h.current),null)},[]),y=(0,_.useCallback)(()=>{v(),f.show()},[v,f]),b=(0,_.useCallback)(()=>{v(),f.hide()},[v,f]),x=lC({touchTrigger:o,isEnabled:s,isControlled:c!==void 0,isOpen:f.isOpen,layerId:f.id,triggerRef:g,show:y,hide:b}),S=(0,_.useCallback)(()=>{!s||c===!1||(v(),m.current=setTimeout(()=>{f.show()},r))},[s,c,v,f,r]),C=(0,_.useCallback)(()=>{c!==!0&&(v(),h.current=setTimeout(()=>{f.hide()},i>0?i:CC))},[c,v,f,i]),w=(0,_.useCallback)(()=>{h.current&&=(clearTimeout(h.current),null)},[]),T=(0,_.useCallback)(()=>{x.isTouchPointerRef.current||S()},[x,S]),E=(0,_.useCallback)(()=>{x.isTouchPointerRef.current||C()},[x,C]),D=(0,_.useCallback)(e=>{s&&(x.isTouchInteraction()||e.target.matches(`:focus-visible`)&&(v(),f.show()))},[s,x,v,f]),O=(0,_.useCallback)(()=>{C()},[C]),k=(0,_.useCallback)(e=>{x.handlePointerDown(e)||c===void 0&&(v(),f.hide())},[x,c,v,f]),{handlePointerEnter:A,clearTapOpen:j}=x,M=(0,_.useCallback)(e=>{g.current&&(g.current.removeEventListener(`mouseenter`,T),g.current.removeEventListener(`mouseleave`,E),g.current.removeEventListener(`focusin`,D),g.current.removeEventListener(`focusout`,O),g.current.removeEventListener(`pointerenter`,A),g.current.removeEventListener(`pointerdown`,k)),e&&(e.addEventListener(`pointerenter`,A),e.addEventListener(`mouseenter`,T),e.addEventListener(`mouseleave`,E),e.addEventListener(`pointerdown`,k),(a===`always`||a===`auto`&&TC(e))&&(e.addEventListener(`focusin`,D),e.addEventListener(`focusout`,O))),g.current=e},[a,T,E,D,O,A,k]),N=(0,_.useCallback)(e=>{f.ref(e),M(e)},[f,M]);(0,_.useEffect)(()=>()=>{v()},[v]),(0,_.useEffect)(()=>{l&&f.show()},[]),(0,_.useEffect)(()=>{c!==void 0&&(c?(v(),f.show()):(v(),f.hide()))},[c,v,f]),GS({isActive:!0,isPresent:()=>{let e=typeof document>`u`?null:document.getElementById(f.id);if(e==null)return!1;try{return e.matches(`:popover-open`)}catch{return f.isOpen}},onDismiss:()=>{if(v(),j(),c!==void 0){d?.();return}f.hide()}});let P=(0,_.useCallback)((e,r)=>{let i=r?.placement??t,a={placement:i,alignment:r?.alignment??n,offset:Yx[`--spacing-1`],role:`tooltip`,xstyle:[p,uC[i]],className:SC(`tooltip`).className,onMouseEnter:w,onMouseLeave:C};return f.render((0,G.jsx)(`div`,{className:`xfsso4q xy143xn x12gdq22 x1djylfy xw5ewwj x13faqbe`,children:e}),a)},[f,t,n,p,w,C]);return{ref:N,positionRef:f.ref,interactionRef:M,anchorId:f.anchorId,describedBy:f.id,renderTooltip:P}}var DC={primary:{kMwMTN:`x1tgivj0`,$$css:!0},secondary:{kMwMTN:`xv1l7n4`,$$css:!0},disabled:{kMwMTN:`xnbbluu`,$$css:!0},placeholder:{kMwMTN:`xv1l7n4`,$$css:!0},accent:{kMwMTN:`xjse4m1`,$$css:!0},inherit:{kMwMTN:`x1heor9g`,$$css:!0}},OC={normal:{k63SB2:`x1sodnla`,$$css:!0},medium:{k63SB2:`x1e4wzip`,$$css:!0},semibold:{k63SB2:`x2mo6ok`,$$css:!0},bold:{k63SB2:`x1lvx875`,$$css:!0}},kC={body:{k63SB2:`xxovm9e`,$$css:!0},large:{k63SB2:`x149oux8`,$$css:!0},label:{k63SB2:`xmhvcl5`,$$css:!0},code:{k63SB2:`xx3eeay`,$$css:!0},supporting:{k63SB2:`xv8on6e`,$$css:!0},"display-1":{k63SB2:`x1txul5o`,$$css:!0},"display-2":{k63SB2:`x1y36c3f`,$$css:!0},"display-3":{k63SB2:`x1on40hk`,$$css:!0},inherit:{k63SB2:`x1pd3egz`,$$css:!0}},AC={body:{kGuDYH:`xjm74w1`,kLWn49:`xw6l6zx`,$$css:!0},large:{kGuDYH:`x18juvz8`,kLWn49:`xf74fhv`,$$css:!0},label:{kGuDYH:`xcr08ib`,kLWn49:`x1kq96og`,$$css:!0},code:{kGuDYH:`xp03k98`,kLWn49:`x17iicif`,kMv6JI:`x9m5x89`,$$css:!0},supporting:{kGuDYH:`x141an7d`,kLWn49:`x1ltkj2j`,$$css:!0},"display-1":{kGuDYH:`xsub3ws`,kLWn49:`x112ttwr`,$$css:!0},"display-2":{kGuDYH:`x1yego12`,kLWn49:`xh0iwvy`,$$css:!0},"display-3":{kGuDYH:`xlgnzhf`,kLWn49:`x1ujwuaq`,$$css:!0},inherit:{kGuDYH:`x1qlqyl8`,kLWn49:`x15bjb6t`,$$css:!0}},jC={"4xs":{kGuDYH:`xxc45ev`,$$css:!0},"3xs":{kGuDYH:`x10p7juq`,$$css:!0},"2xs":{kGuDYH:`x16a80zy`,$$css:!0},xsm:{kGuDYH:`x51wmvv`,$$css:!0},sm:{kGuDYH:`x1eqnyfr`,$$css:!0},base:{kGuDYH:`x1j29vfg`,$$css:!0},lg:{kGuDYH:`xc7cgfe`,$$css:!0},xl:{kGuDYH:`x1wqms48`,$$css:!0},"2xl":{kGuDYH:`xhs0kqb`,$$css:!0},"3xl":{kGuDYH:`x10srzze`,$$css:!0},"4xl":{kGuDYH:`xqcvi3d`,$$css:!0}},MC={1:{kGuDYH:`xcg7oai`,kLWn49:`xfmsba7`,k63SB2:`x1v68xuy`,$$css:!0},2:{kGuDYH:`x1xvnhcw`,kLWn49:`x1cpk1wn`,k63SB2:`x12yy4cs`,$$css:!0},3:{kGuDYH:`xii13ha`,kLWn49:`xwjzt0u`,k63SB2:`x1jcxfy8`,$$css:!0},4:{kGuDYH:`x8tkxat`,kLWn49:`xqerer`,k63SB2:`x2hcmsi`,$$css:!0},5:{kGuDYH:`xsgqta0`,kLWn49:`xo3gurs`,k63SB2:`xno150v`,$$css:!0},6:{kGuDYH:`xw5ohdf`,kLWn49:`xeixjfn`,k63SB2:`x1pw4frv`,$$css:!0}},NC={inline:{k1xSpc:`xt0psk2`,$$css:!0},block:{k1xSpc:`x1lliihq`,$$css:!0}},PC={singleLine:{kVQacm:`xb3r6kr`,kg5iWk:`xlyipyv`,khDVqt:`xuxw1ft`,k1xSpc:`x1lliihq`,$$css:!0},multiLine:{kVQacm:`xb3r6kr`,k1xSpc:`x104kibb`,kgKLqz:`x1ua5tub`,$$css:!0}},FC={"break-word":{kTgw9:`x1lldw8n`,kHjlTd:`x1mzt3pk`,$$css:!0},"break-all":{kTgw9:`x1yn0g08`,$$css:!0}},IC={wrap:{kN2L0X:`xk4td0m`,$$css:!0},nowrap:{kN2L0X:`xebhuq6`,$$css:!0},balance:{kN2L0X:`x1w2vvpw`,$$css:!0},pretty:{kN2L0X:`x1fzhlzt`,$$css:!0}},LC={enabled:{kxwWH2:`x1b2iylo`,kzeHkT:`xwgcxoh`,k1xSpc:`x1lliihq`,$$css:!0}},RC={strikethrough:{kybGjl:`xmqliwb`,$$css:!0}},zC={enabled:{kcqcaj:`xss6m8b`,$$css:!0}},BC={start:{k9WMMc:`x1yc453h`,$$css:!0},center:{k9WMMc:`x2b8uid`,$$css:!0},end:{k9WMMc:`xp4054r`,$$css:!0}},VC={content:{ks0D6T:`xw5ewwj`,kTgw9:`x13faqbe`,$$css:!0}},HC=null,UC=new Map;function WC(){return typeof ResizeObserver>`u`?null:(HC||=new ResizeObserver(e=>{for(let t of e){let e=UC.get(t.target);e&&e(t)}}),HC)}function GC(e,t){UC.set(e,t),WC()?.observe(e),t({target:e})}function KC(e){UC.delete(e),HC&&(HC.unobserve(e),UC.size===0&&(HC.disconnect(),HC=null))}function qC(e){let{maxLines:t}=e,[n,r]=(0,_.useState)(!1),[i,a]=(0,_.useState)(``),o=(0,_.useRef)(null),s=(0,_.useCallback)(e=>{if(t===0){r(!1);return}if(a(e.textContent??``),t===1)r(e.scrollWidth>e.offsetWidth);else{let t=e.scrollHeight;try{let n=document.createRange();n.selectNodeContents(e),t=n.getBoundingClientRect().height,n.detach()}catch{}r(t>e.offsetHeight)}},[t]);return{ref:(0,_.useCallback)(e=>{o.current&&KC(o.current),o.current=e,e&&t>0?typeof ResizeObserver<`u`?GC(e,()=>{s(e)}):s(e):(r(!1),a(``))},[t,s]),isTruncated:n,fullText:i}}function JC(e){return e===`base`?``:e.split(`+`).map(e=>{let[t,n]=e.split(`:`);return n===void 0?`.${t}`:/^\d/.test(n)?`.${t}-${n}`:`.${n}`}).join(``)}function YC(e,t){let n={...e,...t},r=[e.className,t.className].filter(Boolean).join(` `);r?n.className=r:delete n.className;let i=t.style&&e.style?{...e.style,...t.style}:t.style||e.style;return i?n.style=i:delete n.style,n}function XC(e,t,n,r){if(typeof e==`string`){let i=e,a=t??{className:``},o=n,s=a.className?`${i} ${a.className}`:i;o&&(s=`${s} ${o}`);let c=r&&a.style?{...a.style,...r}:r||a.style;return{...a,className:s,style:c}}let i=YC(e,typeof t==`string`?{className:t}:t??{});return typeof n==`string`?i=YC(i,{className:n}):n!=null&&(i=YC(i,{style:n})),r!=null&&(i=YC(i,{style:r})),i}function ZC(...e){return t=>{let n=[];for(let r of e)if(typeof r==`function`){let e=r(t);n.push(typeof e==`function`?e:()=>r(null))}else if(r!=null){let e=r;e.current=t,n.push(()=>{e.current=null})}if(t!=null&&n.length>0)return()=>{for(let e of n)e()}}}function QC(...e){return t=>{for(let n of e)if(n?.(t),t.defaultPrevented)return}}function $C(e){return e!=null&&typeof e!=`boolean`&&e!==``}function ew(...e){let t=e.flatMap(e=>typeof e==`string`?e.trim().split(/\s+/):[]).filter(Boolean);if(t.length!==0)return Array.from(new Set(t)).join(` `)}function tw(e,t=[],n){return{ariaLabelledBy:n?ew(n.labelID,e):void 0,ariaDescribedBy:ew(n?.describedByIDs,...t)}}var nw={kbCHJM:`x1nrll8i`,k3aq6I:`xsqj5wx`,$$css:!0},rw={mirror:{k3aq6I:`xgtlewx`,$$css:!0},centerInline:e=>[nw,{"--x-transform":`translate(-50%, ${e})`==null?void 0:`translate(-50%, ${e})`}]},iw=Xx[`--focus-outline-width`],aw=Xx[`--focus-outline-style`],ow=Xx[`--focus-outline-color`];Xx[`--focus-outline-offset`],`${iw}${aw}${ow}`;var sw={focusVisible:{kMeerF:`x1k57tk5 x1vidyx5`,k3XXqK:`x1t137rt x1jhp3zv`,kjBf7l:`xx47ajj`,kInvED:`x1wfwxd8 x1vwwbsn`,$$css:!0},focusWithin:{kMeerF:`x1k57tk5 x11j6mr8`,k3XXqK:`x1t137rt xciu248`,kjBf7l:`x1uy843r`,kInvED:`x1wfwxd8 x1jumodi`,$$css:!0},focusWithinFirstChild:{kMeerF:`x1k57tk5 xmmisi4`,k3XXqK:`x1t137rt xfd04fr`,kjBf7l:`xobxmqy`,kInvED:`x1wfwxd8 x2vr5qc`,$$css:!0},suppressed:{kMeerF:`x1k57tk5`,k3XXqK:`x1t137rt`,kInvED:`x1wfwxd8`,$$css:!0},publishFocusVisibleVars:{"--_focus-outline":`x17wzz1v xqih627`,"--_focus-outline-offset":`xgzxwq1 xqchwus`,$$css:!0},focusWithinOrPublished:{kI3sdo:`xaw4jrz x16s19ga`,kInvED:`x1kvmbwa x1jumodi`,$$css:!0}};function cw(e){return(...t)=>Nx(e,...t)}var lw={focusVisible:cw(sw.focusVisible),focusWithin:cw(sw.focusWithin),focusWithinFirstChild:cw(sw.focusWithinFirstChild),suppressed:cw(sw.suppressed),publishFocusVisibleVars:cw(sw.publishFocusVisibleVars),focusWithinOrPublished:cw(sw.focusWithinOrPublished)};function uw(e,t,n,r,i,a){return(0,_.useMemo)(()=>ZC(e,t,n,r,i,a),[e,t,n,r,i,a])}var dw=(0,_.lazy)(async()=>nx(()=>Promise.resolve().then(()=>OO).then(e=>({default:e.Tooltip})),void 0)),fw={body:`primary`,large:`primary`,label:`primary`,supporting:`secondary`,code:`primary`,"display-1":`primary`,"display-2":`primary`,"display-3":`primary`,inherit:`inherit`};function pw(e){return e in AC?e:`body`}function mw(e){return e in DC?e:`primary`}function hw({type:e=`body`,size:t,color:n,weight:r,display:i=`inline`,maxLines:a=0,hasTruncateTooltip:o=!0,wordBreak:s,textWrap:c,justify:l=`start`,hasCapsize:u=!1,hasStrikethrough:d=!1,hasTabularNumbers:f=!1,xstyle:p,className:m,style:h,as:g=`span`,children:v,ref:y,...b}){let x=n??fw[e]??`primary`,S=pw(e),C=mw(x),w=s??(a===1?`break-all`:`break-word`),T=a>0||u?`block`:i,E=qC({maxLines:a}),D=typeof o==`string`?o:`above`,O=a>0&&o!==!1&&E.isTruncated,k=(0,_.useRef)(null),A=uw(y,E.ref,k),j=a>1?{WebkitLineClamp:a}:void 0;return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(g,{ref:A,...XC(SC(`text`,{type:e,size:t,color:x}),Nx(DC[C],AC[S],t&&jC[t],kC[S],r&&OC[r],a===1?PC.singleLine:a>1?PC.multiLine:NC[T],a>0&&FC[w],c&&IC[c],l!==`start`&&BC[l],u&&LC.enabled,d&&RC.strikethrough,f&&zC.enabled,p),m,{...h,...j}),...b,children:v}),O&&(0,G.jsx)(_.Suspense,{fallback:null,children:(0,G.jsx)(dw,{anchorRef:k,content:(0,G.jsx)(`span`,{...Nx(VC.content),children:E.fullText}),placement:D})})]})}hw.displayName=`Text`;var gw=.375,_w={sm:{diameter:10,border:2},md:{diameter:14,border:3},lg:{diameter:18,border:3},xl:{diameter:28,border:4}},vw=[`--_spinner-ring-diameter`,`--_spinner-ring-stroke`],yw=`--_spinner-box-size`;function bw(){if(!(typeof CSS>`u`||typeof CSS.registerProperty!=`function`))for(let e of vw)try{CSS.registerProperty({name:e,syntax:``,inherits:!0,initialValue:`0px`})}catch{}}bw();var xw=new Set,Sw=!1;function Cw(){Sw=!1;let e=[];for(let t of xw)e.push(...t.getAnimations());xw.clear();for(let t of e)t.startTime=0}function ww(e){if(e!=null&&typeof e.getAnimations==`function`)return xw.add(e),Sw||(Sw=!0,requestAnimationFrame(Cw)),()=>{xw.delete(e)}}var Tw={wrapper:{k1xSpc:`x3nfvp2`,kXwgrk:`xdt5ytf`,kGNEyG:`x6s0dn4`,kOIVth:`x1txdalj`,$$css:!0},spinner:{k1xSpc:`xwz0xwf`,kgQiWS:`x1ku5rj1`,kVQacm:`xb3r6kr`,kXLuUW:`xxymvpz`,"--_spinner-ring-diameter":`x2lq4xu`,"--_spinner-ring-stroke":`x10qssua`,"--_spinner-box-size":`x69vvuq`,$$css:!0},circle:{kDwRjp:`xbh8q5q`,kU5bRw:`x1owpc8m`,kPFa82:`xio8zfp`,kfJifR:`xgw3ha0`,$$css:!0},track:{kjVXCG:`xalkhop`,$$css:!0}},Ew={sm:{"--spinner-diameter":`x11wm0hx`,"--spinner-stroke-width":`xls98ul`,$$css:!0},md:{"--spinner-diameter":`x15pu9g6`,"--spinner-stroke-width":`xr0wkrm`,$$css:!0},lg:{"--spinner-diameter":`x1w424tr`,"--spinner-stroke-width":`xr0wkrm`,$$css:!0},xl:{"--spinner-diameter":`x1orj1z9`,"--spinner-stroke-width":`x7y2bof`,$$css:!0}},Dw={default:{"--spinner-color":`xt1b8mc`,"--spinner-track-color":`xspt9s2`,$$css:!0},subtle:{"--spinner-color":`x1jevo6s`,"--spinner-track-color":`xspt9s2`,$$css:!0},onMedia:{"--spinner-color":`x13u6jys`,"--spinner-track-color":`x1ufpcf6`,$$css:!0},inherit:{"--spinner-color":`x1uzk0gl`,"--spinner-track-color":`xbfzqbu`,$$css:!0}},Ow={default:{kDd8S0:`x1g350g8`,$$css:!0},subtle:{kDd8S0:`x1g350g8`,$$css:!0},onMedia:{kDd8S0:`x1smxkh6`,$$css:!0},inherit:{kDd8S0:`x7bo2k`,$$css:!0}};function kw({size:e=`md`,shade:t=`default`,label:n,xstyle:r,className:i,style:a,"aria-label":o,"data-testid":s,ref:c,...l}){let{border:u,diameter:d}=_w[e],f=d+u*2,p=f/2,m=Math.PI*d,h=m*gw,g=n!=null,v=(0,_.useId)(),y=g&&typeof n==`string`&&o==null,b=(0,G.jsx)(`span`,{ref:g?void 0:c,role:`status`,"aria-label":y?void 0:o??(typeof n==`string`?n:void 0)??`Loading`,"aria-labelledby":y?v:void 0,"data-testid":g?void 0:s,...g?{}:l,...XC(g?``:SC(`spinner`,{size:e,shade:t}),Nx(Tw.spinner,!g&&Ew[e],!g&&Dw[t],!g&&r),g?void 0:i,{...g?{}:a,width:`var(${yw}, ${f}px)`,height:`var(${yw}, ${f}px)`}),children:(0,G.jsxs)(`svg`,{ref:ww,width:f,height:f,viewBox:`0 0 ${f} ${f}`,"aria-hidden":`true`,className:`xlp1x4z x1lliihq x1so62im x1rea2x4 x14qxm4i xnh0sag xa4qsjk x1ka1v4i x1esw782`,children:[(0,G.jsx)(`circle`,{cx:p,cy:p,r:d/2,strokeWidth:u,...Nx(Tw.circle,Tw.track,Ow[t])}),(0,G.jsx)(`circle`,{cx:p,cy:p,r:d/2,strokeWidth:u,strokeDasharray:`${h} ${m-h}`,transform:`rotate(-90 ${p} ${p})`,className:`xbh8q5q x1owpc8m xio8zfp xgw3ha0 xtve3lm x1vy8frr`})]})});return g?(0,G.jsxs)(`div`,{ref:c,"data-testid":s,...l,...XC(SC(`spinner`,{size:e,shade:t}),Nx(Tw.wrapper,Ew[e],Dw[t],r),i,a),children:[b,typeof n==`string`?(0,G.jsx)(hw,{id:v,type:`body`,weight:`bold`,children:n}):n]}):b}kw.displayName=`Spinner`;function Aw({children:e,as:t=`span`,ref:n,...r}){return(0,_.createElement)(t,{ref:n,...r,className:`x10l6tqk x1i1rx1s xjm9jq1 xkdpibf x1717udv xb3r6kr xzpqnlu xuxw1ft xng3xce x13vifvy x1o0tod x47corl x87ps6o`},e)}Aw.displayName=`VisuallyHidden`;var jw=`data-astryx-edge-comp`,Mw={keTefX:`x1kftj4p`,k71WvV:`x92e2el`,$$css:!0},Nw={inset:e=>[Mw,{"--x-126w13d":(e=>typeof e==`number`?e+`px`:e??void 0)(`calc(-1 * ${e})`),"--x-4drmnv":(e=>typeof e==`number`?e+`px`:e??void 0)(`calc(-1 * ${e})`)}]},Pw=(0,_.createContext)(null);Pw.displayName=`SizeContext`;function Fw(e,t=`md`){let n=(0,_.use)(Pw);return e??n??t}Pw.Provider;var Iw=(0,_.createContext)(null);Iw.displayName=`ButtonGroupContext`;function Lw(){return(0,_.use)(Iw)}var Rw=(0,_.createContext)(null);Rw.displayName=`LinkContext`;function zw(e){function t({href:t,ref:n,...r}){return(0,_.createElement)(e,{ref:n,href:t,to:t,...r})}return t.displayName=`LinkWithTo(${typeof e==`string`?e:e.displayName||e.name||`Component`})`,t}function Bw(e){let t=(0,_.use)(Rw),n=e??t?.component??`a`;return(0,_.useMemo)(()=>n===`a`?`a`:zw(n),[n])}`${Jx[`--color-overlay-hover`]}${Jx[`--color-overlay-hover`]}`,`${Jx[`--color-overlay-pressed`]}${Jx[`--color-overlay-pressed`]}`,`${Jx[`--color-neutral`]}${Jx[`--color-neutral`]}`;var Vw={backgroundColor:{kWkggS:`xjbqb8w x1anq1lc xoevpu5 xprvw0a`,$$css:!0},backgroundImage:{kKwaWg:`x7uyq82 xmvprkv xetgvay`,$$css:!0},backgroundImageOnNeutral:{kKwaWg:`x14bno8m xzmimnh x1otsd3y xo3fi6e`,$$css:!0}};function Hw(e,t){let n=t&&t.cache?t.cache:Qw,r=t&&t.serializer?t.serializer:Xw;return(t&&t.strategy?t.strategy:qw)(e,{cache:n,serializer:r})}function Uw(e){return e==null||typeof e==`number`||typeof e==`boolean`}function Ww(e,t,n,r){let i=Uw(r)?r:n(r),a=t.get(i);return a===void 0&&(a=e.call(this,r),t.set(i,a)),a}function Gw(e,t,n){let r=Array.prototype.slice.call(arguments,3),i=n(r),a=t.get(i);return a===void 0&&(a=e.apply(this,r),t.set(i,a)),a}function Kw(e,t,n,r,i){return n.bind(t,e,r,i)}function qw(e,t){let n=e.length===1?Ww:Gw;return Kw(e,this,n,t.cache.create(),t.serializer)}function Jw(e,t){return Kw(e,this,Gw,t.cache.create(),t.serializer)}function Yw(e,t){return Kw(e,this,Ww,t.cache.create(),t.serializer)}var Xw=function(){return JSON.stringify(arguments)},Zw=class{constructor(){this.cache=Object.create(null)}get(e){return this.cache[e]}set(e,t){this.cache[e]=t}},Qw={create:function(){return new Zw}},$w={variadic:Jw,monadic:Yw},eT=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function tT(e){let t={};return e.replace(eT,e=>{let n=e.length;switch(e[0]){case`G`:t.era=n===4?`long`:n===5?`narrow`:`short`;break;case`y`:t.year=n===2?`2-digit`:`numeric`;break;case`Y`:case`u`:case`U`:case`r`:throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case`q`:case`Q`:throw RangeError("`q/Q` (quarter) patterns are not supported");case`M`:case`L`:t.month=[`numeric`,`2-digit`,`short`,`long`,`narrow`][n-1];break;case`w`:case`W`:throw RangeError("`w/W` (week) patterns are not supported");case`d`:t.day=[`numeric`,`2-digit`][n-1];break;case`D`:case`F`:case`g`:throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case`E`:t.weekday=n===4?`long`:n===5?`narrow`:`short`;break;case`e`:if(n<4)throw RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=[`short`,`long`,`narrow`,`short`][n-3];break;case`c`:if(n<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=[`short`,`long`,`narrow`,`short`][n-3];break;case`a`:t.hour12=!0;break;case`b`:case`B`:throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case`h`:t.hourCycle=`h12`,t.hour=[`numeric`,`2-digit`][n-1];break;case`H`:t.hourCycle=`h23`,t.hour=[`numeric`,`2-digit`][n-1];break;case`K`:t.hourCycle=`h11`,t.hour=[`numeric`,`2-digit`][n-1];break;case`k`:t.hourCycle=`h24`,t.hour=[`numeric`,`2-digit`][n-1];break;case`j`:case`J`:case`C`:throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case`m`:t.minute=[`numeric`,`2-digit`][n-1];break;case`s`:t.second=[`numeric`,`2-digit`][n-1];break;case`S`:case`A`:throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case`z`:t.timeZoneName=n<4?`short`:`long`;break;case`Z`:case`O`:case`v`:case`V`:case`X`:case`x`:throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return``}),t}var nT=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function rT(e){if(e.length===0)throw Error(`Number skeleton cannot be empty`);let t=e.split(nT).filter(e=>e.length>0),n=[];for(let e of t){let t=e.split(`/`);if(t.length===0)throw Error(`Invalid number skeleton`);let[r,...i]=t;for(let e of i)if(e.length===0)throw Error(`Invalid number skeleton`);n.push({stem:r,options:i})}return n}function iT(e){return e.replace(/^(.*?)-/,``)}var aT=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,oT=/^(@+)?(\+|#+)?[rs]?$/g,sT=/(\*)(0+)|(#+)(0+)|(0+)/g,cT=/^(0+)$/;function lT(e){let t={};return e[e.length-1]===`r`?t.roundingPriority=`morePrecision`:e[e.length-1]===`s`&&(t.roundingPriority=`lessPrecision`),e.replace(oT,function(e,n,r){return typeof r==`string`?r===`+`?t.minimumSignificantDigits=n.length:n[0]===`#`?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof r==`string`?r.length:0)):(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length),``}),t}function uT(e){switch(e){case`sign-auto`:return{signDisplay:`auto`};case`sign-accounting`:case`()`:return{currencySign:`accounting`};case`sign-always`:case`+!`:return{signDisplay:`always`};case`sign-accounting-always`:case`()!`:return{signDisplay:`always`,currencySign:`accounting`};case`sign-except-zero`:case`+?`:return{signDisplay:`exceptZero`};case`sign-accounting-except-zero`:case`()?`:return{signDisplay:`exceptZero`,currencySign:`accounting`};case`sign-never`:case`+_`:return{signDisplay:`never`}}}function dT(e){let t;if(e[0]===`E`&&e[1]===`E`?(t={notation:`engineering`},e=e.slice(2)):e[0]===`E`&&(t={notation:`scientific`},e=e.slice(1)),t){let n=e.slice(0,2);if(n===`+!`?(t.signDisplay=`always`,e=e.slice(2)):n===`+?`&&(t.signDisplay=`exceptZero`,e=e.slice(2)),!cT.test(e))throw Error(`Malformed concise eng/scientific notation`);t.minimumIntegerDigits=e.length}return t}function fT(e){return uT(e)||{}}function pT(e){let t={};for(let n of e){switch(n.stem){case`percent`:case`%`:t.style=`percent`;continue;case`%x100`:t.style=`percent`,t.scale=100;continue;case`currency`:t.style=`currency`,t.currency=n.options[0];continue;case`group-off`:case`,_`:t.useGrouping=!1;continue;case`precision-integer`:case`.`:t.maximumFractionDigits=0;continue;case`measure-unit`:case`unit`:t.style=`unit`,t.unit=iT(n.options[0]);continue;case`compact-short`:case`K`:t.notation=`compact`,t.compactDisplay=`short`;continue;case`compact-long`:case`KK`:t.notation=`compact`,t.compactDisplay=`long`;continue;case`scientific`:t={...t,notation:`scientific`,...n.options.reduce((e,t)=>({...e,...fT(t)}),{})};continue;case`engineering`:t={...t,notation:`engineering`,...n.options.reduce((e,t)=>({...e,...fT(t)}),{})};continue;case`notation-simple`:t.notation=`standard`;continue;case`unit-width-narrow`:t.currencyDisplay=`narrowSymbol`,t.unitDisplay=`narrow`;continue;case`unit-width-short`:t.currencyDisplay=`code`,t.unitDisplay=`short`;continue;case`unit-width-full-name`:t.currencyDisplay=`name`,t.unitDisplay=`long`;continue;case`unit-width-iso-code`:t.currencyDisplay=`symbol`;continue;case`scale`:t.scale=parseFloat(n.options[0]);continue;case`rounding-mode-floor`:t.roundingMode=`floor`;continue;case`rounding-mode-ceiling`:t.roundingMode=`ceil`;continue;case`rounding-mode-down`:t.roundingMode=`trunc`;continue;case`rounding-mode-up`:t.roundingMode=`expand`;continue;case`rounding-mode-half-even`:t.roundingMode=`halfEven`;continue;case`rounding-mode-half-down`:t.roundingMode=`halfTrunc`;continue;case`rounding-mode-half-up`:t.roundingMode=`halfExpand`;continue;case`integer-width`:if(n.options.length>1)throw RangeError(`integer-width stems only accept a single optional option`);n.options[0].replace(sT,function(e,n,r,i,a,o){if(n)t.minimumIntegerDigits=r.length;else if(i&&a)throw Error(`We currently do not support maximum integer digits`);else if(o)throw Error(`We currently do not support exact integer digits`);return``});continue}if(cT.test(n.stem)){t.minimumIntegerDigits=n.stem.length;continue}if(aT.test(n.stem)){if(n.options.length>1)throw RangeError(`Fraction-precision stems only accept a single optional option`);n.stem.replace(aT,function(e,n,r,i,a,o){return r===`*`?t.minimumFractionDigits=n.length:i&&i[0]===`#`?t.maximumFractionDigits=i.length:a&&o?(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length+o.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),``});let e=n.options[0];e===`w`?t={...t,trailingZeroDisplay:`stripIfInteger`}:e&&(t={...t,...lT(e)});continue}if(oT.test(n.stem)){t={...t,...lT(n.stem)};continue}let e=uT(n.stem);e&&(t={...t,...e});let r=dT(n.stem);r&&(t={...t,...r})}return t}var mT=function(e){return e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]=`EXPECT_ARGUMENT_CLOSING_BRACE`,e[e.EMPTY_ARGUMENT=2]=`EMPTY_ARGUMENT`,e[e.MALFORMED_ARGUMENT=3]=`MALFORMED_ARGUMENT`,e[e.EXPECT_ARGUMENT_TYPE=4]=`EXPECT_ARGUMENT_TYPE`,e[e.INVALID_ARGUMENT_TYPE=5]=`INVALID_ARGUMENT_TYPE`,e[e.EXPECT_ARGUMENT_STYLE=6]=`EXPECT_ARGUMENT_STYLE`,e[e.INVALID_NUMBER_SKELETON=7]=`INVALID_NUMBER_SKELETON`,e[e.INVALID_DATE_TIME_SKELETON=8]=`INVALID_DATE_TIME_SKELETON`,e[e.EXPECT_NUMBER_SKELETON=9]=`EXPECT_NUMBER_SKELETON`,e[e.EXPECT_DATE_TIME_SKELETON=10]=`EXPECT_DATE_TIME_SKELETON`,e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]=`UNCLOSED_QUOTE_IN_ARGUMENT_STYLE`,e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]=`EXPECT_SELECT_ARGUMENT_OPTIONS`,e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]=`EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE`,e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]=`INVALID_PLURAL_ARGUMENT_OFFSET_VALUE`,e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]=`EXPECT_SELECT_ARGUMENT_SELECTOR`,e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]=`EXPECT_PLURAL_ARGUMENT_SELECTOR`,e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]=`EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT`,e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]=`EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT`,e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]=`INVALID_PLURAL_ARGUMENT_SELECTOR`,e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]=`DUPLICATE_PLURAL_ARGUMENT_SELECTOR`,e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]=`DUPLICATE_SELECT_ARGUMENT_SELECTOR`,e[e.MISSING_OTHER_CLAUSE=22]=`MISSING_OTHER_CLAUSE`,e[e.INVALID_TAG=23]=`INVALID_TAG`,e[e.INVALID_TAG_NAME=25]=`INVALID_TAG_NAME`,e[e.UNMATCHED_CLOSING_TAG=26]=`UNMATCHED_CLOSING_TAG`,e[e.UNCLOSED_TAG=27]=`UNCLOSED_TAG`,e}({});function hT(e){return e.type===0}function gT(e){return e.type===1}function _T(e){return e.type===2}function vT(e){return e.type===3}function yT(e){return e.type===4}function bT(e){return e.type===5}function xT(e){return e.type===6}function ST(e){return e.type===7}function CT(e){return e.type===8}function wT(e){return!!(e&&typeof e==`object`&&e.type===0)}function TT(e){return!!(e&&typeof e==`object`&&e.type===1)}var ET=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,DT={"001":[`H`,`h`],419:[`h`,`H`,`hB`,`hb`],AC:[`H`,`h`,`hb`,`hB`],AD:[`H`,`hB`],AE:[`h`,`hB`,`hb`,`H`],AF:[`H`,`hb`,`hB`,`h`],AG:[`h`,`hb`,`H`,`hB`],AI:[`H`,`h`,`hb`,`hB`],AL:[`h`,`H`,`hB`],AM:[`H`,`hB`],AO:[`H`,`hB`],AR:[`h`,`H`,`hB`,`hb`],AS:[`h`,`H`],AT:[`H`,`hB`],AU:[`h`,`hb`,`H`,`hB`],AW:[`H`,`hB`],AX:[`H`],AZ:[`H`,`hB`,`h`],BA:[`H`,`hB`,`h`],BB:[`h`,`hb`,`H`,`hB`],BD:[`h`,`hB`,`H`],BE:[`H`,`hB`],BF:[`H`,`hB`],BG:[`H`,`hB`,`h`],BH:[`h`,`hB`,`hb`,`H`],BI:[`H`,`h`],BJ:[`H`,`hB`],BL:[`H`,`hB`],BM:[`h`,`hb`,`H`,`hB`],BN:[`hb`,`hB`,`h`,`H`],BO:[`h`,`H`,`hB`,`hb`],BQ:[`H`],BR:[`H`,`hB`],BS:[`h`,`hb`,`H`,`hB`],BT:[`h`,`H`],BW:[`H`,`h`,`hb`,`hB`],BY:[`H`,`h`],BZ:[`H`,`h`,`hb`,`hB`],CA:[`h`,`hb`,`H`,`hB`],CC:[`H`,`h`,`hb`,`hB`],CD:[`hB`,`H`],CF:[`H`,`h`,`hB`],CG:[`H`,`hB`],CH:[`H`,`hB`,`h`],CI:[`H`,`hB`],CK:[`H`,`h`,`hb`,`hB`],CL:[`h`,`H`,`hB`,`hb`],CM:[`H`,`h`,`hB`],CN:[`H`,`hB`,`hb`,`h`],CO:[`h`,`H`,`hB`,`hb`],CP:[`H`],CR:[`h`,`H`,`hB`,`hb`],CU:[`h`,`H`,`hB`,`hb`],CV:[`H`,`hB`],CW:[`H`,`hB`],CX:[`H`,`h`,`hb`,`hB`],CY:[`h`,`H`,`hb`,`hB`],CZ:[`H`],DE:[`H`,`hB`],DG:[`H`,`h`,`hb`,`hB`],DJ:[`h`,`H`],DK:[`H`],DM:[`h`,`hb`,`H`,`hB`],DO:[`h`,`H`,`hB`,`hb`],DZ:[`h`,`hB`,`hb`,`H`],EA:[`H`,`h`,`hB`,`hb`],EC:[`h`,`H`,`hB`,`hb`],EE:[`H`,`hB`],EG:[`h`,`hB`,`hb`,`H`],EH:[`h`,`hB`,`hb`,`H`],ER:[`h`,`H`],ES:[`H`,`hB`,`h`,`hb`],ET:[`hB`,`hb`,`h`,`H`],FI:[`H`],FJ:[`h`,`hb`,`H`,`hB`],FK:[`H`,`h`,`hb`,`hB`],FM:[`h`,`hb`,`H`,`hB`],FO:[`H`,`h`],FR:[`H`,`hB`],GA:[`H`,`hB`],GB:[`H`,`h`,`hb`,`hB`],GD:[`h`,`hb`,`H`,`hB`],GE:[`H`,`hB`,`h`],GF:[`H`,`hB`],GG:[`H`,`h`,`hb`,`hB`],GH:[`h`,`H`],GI:[`H`,`h`,`hb`,`hB`],GL:[`H`,`h`],GM:[`h`,`hb`,`H`,`hB`],GN:[`H`,`hB`],GP:[`H`,`hB`],GQ:[`H`,`hB`,`h`,`hb`],GR:[`h`,`H`,`hb`,`hB`],GS:[`H`,`h`,`hb`,`hB`],GT:[`h`,`H`,`hB`,`hb`],GU:[`h`,`hb`,`H`,`hB`],GW:[`H`,`hB`],GY:[`h`,`hb`,`H`,`hB`],HK:[`h`,`hB`,`hb`,`H`],HN:[`h`,`H`,`hB`,`hb`],HR:[`H`,`hB`],HU:[`H`,`h`],IC:[`H`,`h`,`hB`,`hb`],ID:[`H`],IE:[`H`,`h`,`hb`,`hB`],IL:[`H`,`hB`],IM:[`H`,`h`,`hb`,`hB`],IN:[`h`,`H`],IO:[`H`,`h`,`hb`,`hB`],IQ:[`h`,`hB`,`hb`,`H`],IR:[`hB`,`H`],IS:[`H`],IT:[`H`,`hB`],JE:[`H`,`h`,`hb`,`hB`],JM:[`h`,`hb`,`H`,`hB`],JO:[`h`,`hB`,`hb`,`H`],JP:[`H`,`K`,`h`],KE:[`hB`,`hb`,`H`,`h`],KG:[`H`,`h`,`hB`,`hb`],KH:[`hB`,`h`,`H`,`hb`],KI:[`h`,`hb`,`H`,`hB`],KM:[`H`,`h`,`hB`,`hb`],KN:[`h`,`hb`,`H`,`hB`],KP:[`h`,`H`,`hB`,`hb`],KR:[`h`,`H`,`hB`,`hb`],KW:[`h`,`hB`,`hb`,`H`],KY:[`h`,`hb`,`H`,`hB`],KZ:[`H`,`hB`],LA:[`H`,`hb`,`hB`,`h`],LB:[`h`,`hB`,`hb`,`H`],LC:[`h`,`hb`,`H`,`hB`],LI:[`H`,`hB`,`h`],LK:[`H`,`h`,`hB`,`hb`],LR:[`h`,`hb`,`H`,`hB`],LS:[`h`,`H`],LT:[`H`,`h`,`hb`,`hB`],LU:[`H`,`h`,`hB`],LV:[`H`,`hB`,`hb`,`h`],LY:[`h`,`hB`,`hb`,`H`],MA:[`H`,`h`,`hB`,`hb`],MC:[`H`,`hB`],MD:[`H`,`hB`],ME:[`H`,`hB`,`h`],MF:[`H`,`hB`],MG:[`H`,`h`],MH:[`h`,`hb`,`H`,`hB`],MK:[`H`,`h`,`hb`,`hB`],ML:[`H`],MM:[`hB`,`hb`,`H`,`h`],MN:[`H`,`h`,`hb`,`hB`],MO:[`h`,`hB`,`hb`,`H`],MP:[`h`,`hb`,`H`,`hB`],MQ:[`H`,`hB`],MR:[`h`,`hB`,`hb`,`H`],MS:[`H`,`h`,`hb`,`hB`],MT:[`H`,`h`],MU:[`H`,`h`],MV:[`H`,`h`],MW:[`h`,`hb`,`H`,`hB`],MX:[`h`,`H`,`hB`,`hb`],MY:[`hb`,`hB`,`h`,`H`],MZ:[`H`,`hB`],NA:[`h`,`H`,`hB`,`hb`],NC:[`H`,`hB`],NE:[`H`],NF:[`H`,`h`,`hb`,`hB`],NG:[`H`,`h`,`hb`,`hB`],NI:[`h`,`H`,`hB`,`hb`],NL:[`H`,`hB`],NO:[`H`,`h`],NP:[`H`,`h`,`hB`],NR:[`H`,`h`,`hb`,`hB`],NU:[`H`,`h`,`hb`,`hB`],NZ:[`h`,`hb`,`H`,`hB`],OM:[`h`,`hB`,`hb`,`H`],PA:[`h`,`H`,`hB`,`hb`],PE:[`h`,`H`,`hB`,`hb`],PF:[`H`,`h`,`hB`],PG:[`h`,`H`],PH:[`h`,`hB`,`hb`,`H`],PK:[`h`,`hB`,`H`],PL:[`H`,`h`],PM:[`H`,`hB`],PN:[`H`,`h`,`hb`,`hB`],PR:[`h`,`H`,`hB`,`hb`],PS:[`h`,`hB`,`hb`,`H`],PT:[`H`,`hB`],PW:[`h`,`H`],PY:[`h`,`H`,`hB`,`hb`],QA:[`h`,`hB`,`hb`,`H`],RE:[`H`,`hB`],RO:[`H`,`hB`],RS:[`H`,`hB`,`h`],RU:[`H`],RW:[`H`,`h`],SA:[`h`,`hB`,`hb`,`H`],SB:[`h`,`hb`,`H`,`hB`],SC:[`H`,`h`,`hB`],SD:[`h`,`hB`,`hb`,`H`],SE:[`H`],SG:[`h`,`hb`,`H`,`hB`],SH:[`H`,`h`,`hb`,`hB`],SI:[`H`,`hB`],SJ:[`H`],SK:[`H`],SL:[`h`,`hb`,`H`,`hB`],SM:[`H`,`h`,`hB`],SN:[`H`,`h`,`hB`],SO:[`h`,`H`],SR:[`H`,`hB`],SS:[`h`,`hb`,`H`,`hB`],ST:[`H`,`hB`],SV:[`h`,`H`,`hB`,`hb`],SX:[`H`,`h`,`hb`,`hB`],SY:[`h`,`hB`,`hb`,`H`],SZ:[`h`,`hb`,`H`,`hB`],TA:[`H`,`h`,`hb`,`hB`],TC:[`h`,`hb`,`H`,`hB`],TD:[`h`,`H`,`hB`],TF:[`H`,`h`,`hB`],TG:[`H`,`hB`],TH:[`H`,`h`],TJ:[`H`,`h`],TL:[`H`,`hB`,`hb`,`h`],TM:[`H`,`h`],TN:[`h`,`hB`,`hb`,`H`],TO:[`h`,`H`],TR:[`H`,`hB`],TT:[`h`,`hb`,`H`,`hB`],TW:[`hB`,`hb`,`h`,`H`],TZ:[`hB`,`hb`,`H`,`h`],UA:[`H`,`hB`,`h`],UG:[`hB`,`hb`,`H`,`h`],UM:[`h`,`hb`,`H`,`hB`],US:[`h`,`hb`,`H`,`hB`],UY:[`h`,`H`,`hB`,`hb`],UZ:[`H`,`hB`,`h`],VA:[`H`,`h`,`hB`],VC:[`h`,`hb`,`H`,`hB`],VE:[`h`,`H`,`hB`,`hb`],VG:[`h`,`hb`,`H`,`hB`],VI:[`h`,`hb`,`H`,`hB`],VN:[`H`,`h`],VU:[`h`,`H`],WF:[`H`,`hB`],WS:[`h`,`H`],XK:[`H`,`hB`,`h`],YE:[`h`,`hB`,`hb`,`H`],YT:[`H`,`hB`],ZA:[`H`,`h`,`hb`,`hB`],ZM:[`h`,`hb`,`H`,`hB`],ZW:[`H`,`h`],"af-ZA":[`H`,`h`,`hB`,`hb`],"ar-001":[`h`,`hB`,`hb`,`H`],"ca-ES":[`H`,`h`,`hB`],"en-001":[`h`,`hb`,`H`,`hB`],"en-HK":[`h`,`hb`,`H`,`hB`],"en-IL":[`H`,`h`,`hb`,`hB`],"en-MY":[`h`,`hb`,`H`,`hB`],"es-BR":[`H`,`h`,`hB`,`hb`],"es-ES":[`H`,`h`,`hB`,`hb`],"es-GQ":[`H`,`h`,`hB`,`hb`],"fr-CA":[`H`,`h`,`hB`],"gl-ES":[`H`,`h`,`hB`],"gu-IN":[`hB`,`hb`,`h`,`H`],"hi-IN":[`hB`,`h`,`H`],"it-CH":[`H`,`h`,`hB`],"it-IT":[`H`,`h`,`hB`],"kn-IN":[`hB`,`h`,`H`],"ku-SY":[`H`,`hB`],"ml-IN":[`hB`,`h`,`H`],"mr-IN":[`hB`,`hb`,`h`,`H`],"pa-IN":[`hB`,`hb`,`h`,`H`],"ta-IN":[`hB`,`h`,`hb`,`H`],"te-IN":[`hB`,`h`,`H`],"zu-ZA":[`H`,`hB`,`hb`,`h`]};function OT(e,t){let n=``;for(let r=0;r>1),c=kT(t);for((c==`H`||c==`k`)&&(s=0);s-->0;)n+=`a`;for(;o-->0;)n=c+n}else n+=i===`J`?`H`:i}return n}function kT(e){let t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case`h24`:return`k`;case`h23`:return`H`;case`h12`:return`h`;case`h11`:return`K`;default:throw Error(`Invalid hourCycle`)}let n=e.language,r;return n!==`root`&&(r=e.maximize().region),(DT[r||``]||DT[n||``]||DT[`${n}-001`]||DT[`001`])[0]}var AT=RegExp(`^${ET.source}*`),jT=RegExp(`${ET.source}*$`);function MT(e,t){return{start:e,end:t}}var NT=!!Object.fromEntries,PT=!!String.prototype.trimStart,FT=!!String.prototype.trimEnd,IT=NT?Object.fromEntries:function(e){let t={};for(let[n,r]of e)t[n]=r;return t},LT=PT?function(e){return e.trimStart()}:function(e){return e.replace(AT,``)},RT=FT?function(e){return e.trimEnd()}:function(e){return e.replace(jT,``)},zT=RegExp(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`,`yu`);function BT(e,t){return zT.lastIndex=t,zT.exec(e)[1]??``}function VT(e){if(e.length===0)return null;let t=1,n=1;for(let r=0;r=55296&&i<=56319&&r+1=56320&&t<=57343?2:1}else r++}return{offset:e.length,line:t,column:n}}var HT=class{constructor(e,t={}){this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}parse(){if(this.offset()!==0)throw Error(`parser can only be used once`);if(this.message.length>0){let e=this.message.charCodeAt(0);if(e!==35&&e!==39&&e!==60&&e!==123&&e!==125){let e=VT(this.message);if(e){let t=this.clonePosition();return this.position=e,{val:[{type:0,value:this.message,location:MT(t,this.clonePosition())}],err:null}}}}return this.parseMessage(0,``,!1)}parseMessage(e,t,n){let r=[];for(;!this.isEOF();){let i=this.char();if(i===123){let t=this.parseArgument(e,n);if(t.err)return t;r.push(t.val)}else if(i===125&&e>0)break;else if(i===35&&(t===`plural`||t===`selectordinal`)){let e=this.clonePosition();this.bump(),r.push({type:7,location:MT(e,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(26,MT(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&UT(this.peek()||0)){let n=this.parseTag(e,t);if(n.err)return n;r.push(n.val)}else{let n=this.parseLiteral(e,t);if(n.err)return n;r.push(n.val)}}return{val:r,err:null}}parseTag(e,t){let n=this.clonePosition();this.bump();let r=this.parseTagName();if(this.bumpSpace(),this.bumpIf(`/>`))return{val:{type:0,value:`<${r}/>`,location:MT(n,this.clonePosition())},err:null};if(this.bumpIf(`>`)){let i=this.parseMessage(e+1,t,!0);if(i.err)return i;let a=i.val,o=this.clonePosition();if(this.bumpIf(``)?{val:{type:8,value:r,children:a,location:MT(n,this.clonePosition())},err:null}:this.error(23,MT(o,this.clonePosition()))):this.error(26,MT(e,this.clonePosition()))}return this.error(27,MT(n,this.clonePosition()))}return this.error(23,MT(n,this.clonePosition()))}parseTagName(){let e=this.offset();for(this.bump();!this.isEOF()&>(this.char());)this.bump();return this.message.slice(e,this.offset())}parseLiteral(e,t){let n=this.clonePosition(),r=``;for(;;){let n=this.tryParseQuote(t);if(n){r+=n;continue}let i=this.tryParseUnquoted(e,t);if(i){r+=i;continue}let a=this.tryParseLeftAngleBracket();if(a){r+=a;continue}break}let i=MT(n,this.clonePosition());return{val:{type:0,value:r,location:i},err:null}}tryParseLeftAngleBracket(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!WT(this.peek()||0))?(this.bump(),`<`):null}tryParseQuote(e){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),`'`;case 123:case 60:case 62:case 125:break;case 35:if(e===`plural`||e===`selectordinal`)break;return null;default:return null}this.bump();let t=[this.char()];for(this.bump();!this.isEOF();){let e=this.char();if(e===39)if(this.peek()===39)t.push(39),this.bump();else{this.bump();break}else t.push(e);this.bump()}return String.fromCodePoint(...t)}tryParseUnquoted(e,t){if(this.isEOF())return null;let n=this.char();return n===60||n===123||n===35&&(t===`plural`||t===`selectordinal`)||n===125&&e>0?null:(this.bump(),String.fromCodePoint(n))}parseArgument(e,t){let n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(1,MT(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(2,MT(n,this.clonePosition()));let r=this.parseIdentifierIfPossible().value;if(!r)return this.error(3,MT(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(1,MT(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:1,value:r,location:MT(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(1,MT(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(3,MT(n,this.clonePosition()))}}parseIdentifierIfPossible(){let e=this.clonePosition(),t=this.offset(),n=BT(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:MT(e,this.clonePosition())}}parseArgumentOptions(e,t,n,r){let i=this.clonePosition(),a=this.parseIdentifierIfPossible().value,o=this.clonePosition();switch(a){case``:return this.error(4,MT(i,o));case`number`:case`date`:case`time`:{this.bumpSpace();let e=null;if(this.bumpIf(`,`)){this.bumpSpace();let t=this.clonePosition(),n=this.parseSimpleArgStyleIfPossible();if(n.err)return n;let r=RT(n.val);if(r.length===0)return this.error(6,MT(this.clonePosition(),this.clonePosition()));e={style:r,styleLocation:MT(t,this.clonePosition())}}let t=this.tryParseArgumentClose(r);if(t.err)return t;let i=MT(r,this.clonePosition());if(e&&e.style.startsWith(`::`)){let t=LT(e.style.slice(2));if(a===`number`){let r=this.parseNumberSkeletonFromString(t,e.styleLocation);return r.err?r:{val:{type:2,value:n,location:i,style:r.val},err:null}}{if(t.length===0)return this.error(10,i);let r=t;this.locale&&(r=OT(t,this.locale));let o={type:1,pattern:r,location:e.styleLocation,parsedOptions:this.shouldParseSkeletons?tT(r):{}};return{val:{type:a===`date`?3:4,value:n,location:i,style:o},err:null}}}return{val:{type:a===`number`?2:a===`date`?3:4,value:n,location:i,style:e?.style??null},err:null}}case`plural`:case`selectordinal`:case`select`:{let i=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(`,`))return this.error(12,MT(i,{...i}));this.bumpSpace();let o=this.parseIdentifierIfPossible(),s=0;if(a!==`select`&&o.value===`offset`){if(!this.bumpIf(`:`))return this.error(13,MT(this.clonePosition(),this.clonePosition()));this.bumpSpace();let e=this.tryParseDecimalInteger(13,14);if(e.err)return e;this.bumpSpace(),o=this.parseIdentifierIfPossible(),s=e.val}let c=this.tryParsePluralOrSelectOptions(e,a,t,o);if(c.err)return c;let l=this.tryParseArgumentClose(r);if(l.err)return l;let u=MT(r,this.clonePosition());return a===`select`?{val:{type:5,value:n,options:IT(c.val),location:u},err:null}:{val:{type:6,value:n,options:IT(c.val),offset:s,pluralType:a===`plural`?`cardinal`:`ordinal`,location:u},err:null}}default:return this.error(5,MT(i,o))}}tryParseArgumentClose(e){return this.isEOF()||this.char()!==125?this.error(1,MT(e,this.clonePosition())):(this.bump(),{val:!0,err:null})}parseSimpleArgStyleIfPossible(){let e=0,t=this.clonePosition();for(;!this.isEOF();)switch(this.char()){case 39:{this.bump();let e=this.clonePosition();if(!this.bumpUntil(`'`))return this.error(11,MT(e,this.clonePosition()));this.bump();break}case 123:e+=1,this.bump();break;case 125:if(e>0)--e;else return{val:this.message.slice(t.offset,this.offset()),err:null};break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}}parseNumberSkeletonFromString(e,t){let n=[];try{n=rT(e)}catch{return this.error(7,t)}return{val:{type:0,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?pT(n):{}},err:null}}tryParsePluralOrSelectOptions(e,t,n,r){let i=!1,a=[],o=new Set,{value:s,location:c}=r;for(;;){if(s.length===0){let e=this.clonePosition();if(t!==`select`&&this.bumpIf(`=`)){let t=this.tryParseDecimalInteger(16,19);if(t.err)return t;c=MT(e,this.clonePosition()),s=this.message.slice(e.offset,this.offset())}else break}if(o.has(s))return this.error(t===`select`?21:20,c);s===`other`&&(i=!0),this.bumpSpace();let r=this.clonePosition();if(!this.bumpIf(`{`))return this.error(t===`select`?17:18,MT(this.clonePosition(),this.clonePosition()));let l=this.parseMessage(e+1,t,n);if(l.err)return l;let u=this.tryParseArgumentClose(r);if(u.err)return u;a.push([s,{value:l.val,location:MT(r,this.clonePosition())}]),o.add(s),this.bumpSpace(),{value:s,location:c}=this.parseIdentifierIfPossible()}return a.length===0?this.error(t===`select`?15:16,MT(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(22,MT(this.clonePosition(),this.clonePosition())):{val:a,err:null}}tryParseDecimalInteger(e,t){let n=1,r=this.clonePosition();this.bumpIf(`+`)||this.bumpIf(`-`)&&(n=-1);let i=!1,a=0;for(;!this.isEOF();){let e=this.char();if(e>=48&&e<=57)i=!0,a=a*10+(e-48),this.bump();else break}let o=MT(r,this.clonePosition());return i?(a*=n,Number.isSafeInteger(a)?{val:a,err:null}:this.error(t,o)):this.error(e,o)}offset(){return this.position.offset}isEOF(){return this.offset()===this.message.length}clonePosition(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}}char(){let e=this.position.offset;if(e>=this.message.length)throw Error(`out of bound`);let t=this.message.codePointAt(e);if(t===void 0)throw Error(`Offset ${e} is at invalid UTF-16 code unit boundary`);return t}error(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}}bump(){if(this.isEOF())return;let e=this.char();e===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}bumpIf(e){if(this.message.startsWith(e,this.offset())){for(let t=0;t=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)}bumpTo(e){if(this.offset()>e)throw Error(`targetOffset ${e} must be greater than or equal to the current offset ${this.offset()}`);for(e=Math.min(e,this.message.length);;){let t=this.offset();if(t===e)break;if(t>e)throw Error(`targetOffset ${e} is at invalid UTF-16 code unit boundary`);if(this.bump(),this.isEOF())break}}bumpSpace(){for(;!this.isEOF()&&KT(this.char());)this.bump()}peek(){if(this.isEOF())return null;let e=this.char(),t=this.offset();return this.message.charCodeAt(t+(e>=65536?2:1))??null}};function UT(e){return e>=97&&e<=122||e>=65&&e<=90}function WT(e){return UT(e)||e===47}function GT(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function KT(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function qT(e){e.forEach(e=>{if(delete e.location,bT(e)||xT(e))for(let t in e.options)delete e.options[t].location,qT(e.options[t].value);else _T(e)&&wT(e.style)||(vT(e)||yT(e))&&TT(e.style)?delete e.style.location:CT(e)&&qT(e.children)})}function JT(e,t={}){t={shouldParseSkeletons:!0,requiresOtherClause:!0,...t};let n=new HT(e,t).parse();if(n.err){let e=SyntaxError(mT[n.err.kind]);throw e.location=n.err.location,e.originalMessage=n.err.message,e}return t?.captureLocation||qT(n.val),n.val}var YT=class extends Error{constructor(e,t,n){super(e),this.code=t,this.originalMessage=n}toString(){return`[formatjs Error: ${this.code}] ${this.message}`}},XT=class extends YT{constructor(e,t,n,r){super(`Invalid values for "${e}": "${t}". Options are "${Object.keys(n).join(`", "`)}"`,`INVALID_VALUE`,r)}},ZT=class extends YT{constructor(e,t,n){super(`Value for "${e}" must be of type ${t}`,`INVALID_VALUE`,n)}},QT=class extends YT{constructor(e,t){super(`The intl string context variable "${e}" was not provided to the string "${t}"`,`MISSING_VALUE`,t)}};function $T(e){return e.length<2?e:e.reduce((e,t)=>{let n=e[e.length-1];return!n||n.type!==0||t.type!==0?e.push(t):n.value+=t.value,e},[])}function eE(e){return typeof e==`function`}function tE(e,t,n,r,i,a,o){if(e.length===1&&hT(e[0]))return[{type:0,value:e[0].value}];let s=[];for(let c of e){if(hT(c)){s.push({type:0,value:c.value});continue}if(ST(c)){typeof a==`number`&&s.push({type:0,value:n.getNumberFormat(t).format(a)});continue}let{value:e}=c;if(!(i&&e in i))throw new QT(e,o);let l=i[e];if(gT(c)){(!l||typeof l==`string`||typeof l==`number`||typeof l==`bigint`)&&(l=typeof l==`string`||typeof l==`number`||typeof l==`bigint`?String(l):``),s.push({type:typeof l==`string`?0:1,value:l});continue}if(vT(c)){let e=typeof c.style==`string`?r.date[c.style]:TT(c.style)?c.style.parsedOptions:void 0;s.push({type:0,value:n.getDateTimeFormat(t,e).format(l)});continue}if(yT(c)){let e=typeof c.style==`string`?r.time[c.style]:TT(c.style)?c.style.parsedOptions:r.time.medium;s.push({type:0,value:n.getDateTimeFormat(t,e).format(l)});continue}if(_T(c)){let e=typeof c.style==`string`?r.number[c.style]:wT(c.style)?c.style.parsedOptions:void 0;if(e&&e.scale){let t=e.scale||1;if(typeof l==`bigint`){if(!Number.isInteger(t))throw TypeError(`Cannot apply fractional scale ${t} to bigint value. Scale must be an integer when formatting bigint.`);l*=BigInt(t)}else l*=t}s.push({type:0,value:n.getNumberFormat(t,e).format(l)});continue}if(CT(c)){let{children:e,value:l}=c,u=i[l];if(!eE(u))throw new ZT(l,`function`,o);let d=u(tE(e,t,n,r,i,a).map(e=>e.value));Array.isArray(d)||(d=[d]),s.push(...d.map(e=>({type:typeof e==`string`?0:1,value:e})))}if(bT(c)){let e=l,a=(Object.prototype.hasOwnProperty.call(c.options,e)?c.options[e]:void 0)||c.options.other;if(!a)throw new XT(c.value,l,Object.keys(c.options),o);s.push(...tE(a.value,t,n,r,i));continue}if(xT(c)){let e=`=${l}`,a=Object.prototype.hasOwnProperty.call(c.options,e)?c.options[e]:void 0;if(!a){if(!Intl.PluralRules)throw new YT(`Intl.PluralRules is not available in this environment. Try polyfilling it using "@formatjs/intl-pluralrules" -`,`MISSING_INTL_API`,o);let e=typeof l==`bigint`?Number(l):l,r=n.getPluralRules(t,{type:c.pluralType}).select(e-(c.offset||0));a=(Object.prototype.hasOwnProperty.call(c.options,r)?c.options[r]:void 0)||c.options.other}if(!a)throw new JT(c.value,l,Object.keys(c.options),o);let u=typeof l==`bigint`?Number(l):l;s.push(...$T(a.value,t,n,r,i,u-(c.offset||0)));continue}}return ZT(s)}function eE(e,t){return t?{...e,...t,...Object.keys(e).reduce((n,r)=>(n[r]={...e[r],...t[r]},n),{})}:e}function tE(e,t){return t?Object.keys(e).reduce((n,r)=>(n[r]=eE(e[r],t[r]),n),{...e}):e}function nE(e){return{create(){return{get(t){return e[t]},set(t,n){e[t]=n}}}}}function rE(e={number:{},dateTime:{},pluralRules:{}}){return{getNumberFormat:Bw((...e)=>new Intl.NumberFormat(...e),{cache:nE(e.number),strategy:Zw.variadic}),getDateTimeFormat:Bw((...e)=>new Intl.DateTimeFormat(...e),{cache:nE(e.dateTime),strategy:Zw.variadic}),getPluralRules:Bw((...e)=>new Intl.PluralRules(...e),{cache:nE(e.pluralRules),strategy:Zw.variadic})}}var iE=class e{constructor(t,n=e.defaultLocale,r,i){if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=e=>{let t=this.formatToParts(e);if(t.length===1)return t[0].value;let n=t.reduce((e,t)=>(!e.length||t.type!==0||typeof e[e.length-1]!=`string`?e.push(t.value):e[e.length-1]+=t.value,e),[]);return n.length<=1?n[0]||``:n},this.formatToParts=e=>$T(this.ast,this.locales,this.formatters,this.formats,e,void 0,this.message),this.resolvedOptions=()=>({locale:this.resolvedLocale?.toString()||Intl.NumberFormat.supportedLocalesOf(this.locales)[0]}),this.getAst=()=>this.ast,this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t==`string`){if(this.message=t,!e.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");let{...n}=i||{};this.ast=e.__parse(t,{...n,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw TypeError(`A message must be provided as a String or AST.`);this.formats=tE(e.formats,r),this.formatters=i&&i.formatters||rE(this.formatterCache)}static{this.memoizedDefaultLocale=null}static get defaultLocale(){return e.memoizedDefaultLocale||=new Intl.NumberFormat().resolvedOptions().locale,e.memoizedDefaultLocale}static{this.resolveLocale=e=>{if(Intl.Locale===void 0)return;let t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale(typeof e==`string`?e:e[0])}}static{this.__parse=KT}static{this.formats={number:{integer:{maximumFractionDigits:0},currency:{style:`currency`},percent:{style:`percent`}},date:{short:{month:`numeric`,day:`numeric`,year:`2-digit`},medium:{month:`short`,day:`numeric`,year:`numeric`},long:{month:`long`,day:`numeric`,year:`numeric`},full:{weekday:`long`,month:`long`,day:`numeric`,year:`numeric`}},time:{short:{hour:`numeric`,minute:`numeric`},medium:{hour:`numeric`,minute:`numeric`,second:`numeric`},long:{hour:`numeric`,minute:`numeric`,second:`numeric`,timeZoneName:`short`},full:{hour:`numeric`,minute:`numeric`,second:`numeric`,timeZoneName:`short`}}}}},aE={"@astryx.pagination.label":{defaultMessage:`Pagination`,description:`Aria label for the pagination navigation region.`},"@astryx.pagination.previous":{defaultMessage:`Go to previous page`,description:`Aria label for the previous-page button.`},"@astryx.pagination.next":{defaultMessage:`Go to next page`,description:`Aria label for the next-page button.`},"@astryx.pagination.previousBy":{defaultMessage:`Go back {step, number} {step, plural, one {page} other {pages}}`,description:"Aria label for the previous button when it advances more than one page per click (the `step` prop > 1). `step` is the number of pages skipped."},"@astryx.pagination.nextBy":{defaultMessage:`Go forward {step, number} {step, plural, one {page} other {pages}}`,description:"Aria label for the next button when it advances more than one page per click (the `step` prop > 1). `step` is the number of pages skipped."},"@astryx.pagination.first":{defaultMessage:`Go to first page`,description:`Aria label for the first-page button (« double chevron) in the input pagination variant.`},"@astryx.pagination.last":{defaultMessage:`Go to last page`,description:`Aria label for the last-page button (» double chevron) in the input pagination variant.`},"@astryx.pagination.goToPage":{defaultMessage:`Go to page {page, number}`,description:"Aria label for an individual page-number button. `page` is 1-based."},"@astryx.pagination.goToPageInput":{defaultMessage:`Go to page`,description:`Aria label for the editable page/row number box in the input pagination variant. No number — the box holds the value itself.`},"@astryx.pagination.pageLabel":{defaultMessage:`Page`,description:`Visible label before the editable box in the input pagination variant. Example: "Page [ 1 ] / 10".`},"@astryx.pagination.ofTotalPages":{defaultMessage:`/ {total, number}`,description:`Visible total shown after the editable box in the input pagination variant. Example: the "/ 10" in "Page [ 1 ] / 10".`},"@astryx.pagination.pageIndicators":{defaultMessage:`Page indicators`,description:`Aria label for the dots-variant page-indicator group.`},"@astryx.pagination.itemsPerPage":{defaultMessage:`Items per page`,description:`Label for the page-size selector.`},"@astryx.pagination.count":{defaultMessage:`{from, number}–{to, number} of {total, number}`,description:`Visible range-of-total text on a pagination bar. Example: "1–20 of 347"; the en-dash is translator's choice.`},"@astryx.pagination.pageOfTotal":{defaultMessage:`Page {current, number} of {total, number}`,description:`Visible "Page X of Y" text on the compact pagination variant; also announced by screen readers. Keep short — sits in a compact toolbar.`},"@astryx.pagination.pageAnnounce":{defaultMessage:`Page {current, number}`,description:`Screen-reader announcement when a page changes and total is unknown.`},"@astryx.powersearch.editor.field":{defaultMessage:`Field`,description:`Noun form-label above the field-picker dropdown in the PowerSearch filter-builder popover (which data column to filter on). Not an action.`},"@astryx.powersearch.editor.operator":{defaultMessage:`Operator`,description:`Noun form-label above the operator dropdown in the PowerSearch filter-builder popover. Refers to a comparison verb ("is", "contains"), not a math or phone operator.`},"@astryx.powersearch.editor.addFilter":{defaultMessage:`+ Add filter`,description:`Button label inside a group in the PowerSearch filter-builder; adds another filter row (e.g. "Status = Active"). The leading "+ " is a plus-sign character.`},"@astryx.powersearch.editor.removeFilter":{defaultMessage:`Remove filter`,description:`Screen-reader-only label on the "×" icon button next to a filter row in the PowerSearch editor; removes that row. Imperative verb.`},"@astryx.powersearch.editor.groupOperator":{defaultMessage:`Group operator`,description:`Screen-reader-only label for the AND/OR toggle that combines sibling filters inside a filter group. Sighted users see just "AND" or "OR".`},"@astryx.powersearch.editor.group":{defaultMessage:`Group`,description:`Fallback noun label shown on a nested filter-group chip when no AND/OR combining operator has been chosen. Use the noun ("a cluster"), not the verb "to group".`},"@astryx.powersearch.editor.delete":{defaultMessage:`Delete`,description:`Button label inside the PowerSearch filter-editor popover; deletes the currently-edited filter row. Imperative verb form.`},"@astryx.powersearch.editor.cancel":{defaultMessage:`Cancel`,description:`Button label inside the PowerSearch filter-editor popover; closes the popover and discards pending edits. Imperative verb form.`},"@astryx.powersearch.editor.apply":{defaultMessage:`Apply`,description:`Primary button label inside the PowerSearch filter-editor popover; confirms the edited filter. Imperative verb; consumers may override to "Save".`},"@astryx.powersearch.valueEditor.value":{defaultMessage:`Value`,description:'Noun form-label above a single free-text/number input in the PowerSearch value editor (e.g. the "acme" in `Name contains acme`). Not a verb or "worth".'},"@astryx.powersearch.valueEditor.values":{defaultMessage:`Values`,description:"Plural noun form-label above a multi-value chip input in the PowerSearch value editor. Should match its singular counterpart `Value` in your language."},"@astryx.powersearch.valueEditor.time":{defaultMessage:`Time`,description:`Noun form-label above a time-of-day (HH:MM) picker in the PowerSearch value editor. Clock time, not duration or era.`},"@astryx.powersearch.valueEditor.date":{defaultMessage:`Date`,description:`Noun form-label above a calendar-date picker in the PowerSearch value editor. Calendar date, not romantic date or fruit.`},"@astryx.powersearch.valueEditor.relativeDate":{defaultMessage:`Relative date`,description:`Label for the relative-date selector (e.g. "Last 7 days") in the PowerSearch value editor.`},"@astryx.powersearch.valueEditor.startDate":{defaultMessage:`Start date`,description:"Noun form-label above the start-of-range date picker in the PowerSearch value editor. Pairs with `End date` — keep the two parallel in your language."},"@astryx.powersearch.valueEditor.endDate":{defaultMessage:`End date`,description:"Noun form-label above the end-of-range date picker in the PowerSearch value editor. Pairs with `Start date` — keep the two parallel."},"@astryx.powersearch.valueEditor.entities":{defaultMessage:`Entities`,description:`"Entities" is jargon — plural noun form-label above an entity picker (people, teams, projects). Prefer a natural collective like "items" if your language has no equivalent.`},"@astryx.powersearch.valueEditor.searchPlaceholder":{defaultMessage:`Search…`,description:"Placeholder inside the search input in the PowerSearch entity/typeahead picker. Imperative verb; trailing `…` is one character."},"@astryx.powersearch.valueEditor.enterValuePlaceholder":{defaultMessage:`Enter value…`,description:"Placeholder inside a free-text single-value input in the PowerSearch value editor. Imperative verb; trailing `…` is one character."},"@astryx.powersearch.valueEditor.addValuesPlaceholder":{defaultMessage:`Add values…`,description:"Placeholder inside a multi-value chip input where the user types items and presses Enter to add each as a chip. Imperative verb; trailing `…` is one character."},"@astryx.powersearch.valueEditor.enterNumberPlaceholder":{defaultMessage:`Enter number…`,description:"Placeholder inside a numeric input in the PowerSearch value editor. Imperative verb; trailing `…` is one character."},"@astryx.powersearch.valueEditor.selectValuesPlaceholder":{defaultMessage:`Select values…`,description:`Placeholder on a dropdown for choosing values from a fixed enum list in the PowerSearch value editor. Imperative verb (user selects, not types).`},"@astryx.powersearch.operator.contains":{defaultMessage:`contains`,description:"PowerSearch string operator, rendered inline as ` contains ` (e.g. `Name contains acme`). Lowercase verb form."},"@astryx.powersearch.operator.notContains":{defaultMessage:`does not contain`,description:"PowerSearch negated string operator. Example: `Name does not contain test`. Lowercase; pairs with `contains`."},"@astryx.powersearch.operator.startsWith":{defaultMessage:`starts with`,description:"PowerSearch string prefix operator. Example: `Email starts with admin@`. Lowercase."},"@astryx.powersearch.operator.notStartsWith":{defaultMessage:`does not start with`,description:"PowerSearch negated prefix operator. Example: `Email does not start with test`. Lowercase; pairs with `starts with`."},"@astryx.powersearch.operator.endsWith":{defaultMessage:`ends with`,description:"PowerSearch string suffix operator. Example: `Email ends with @meta.com`. Lowercase."},"@astryx.powersearch.operator.notEndsWith":{defaultMessage:`does not end with`,description:"PowerSearch negated suffix operator. Example: `Email does not end with @gmail.com`. Lowercase; pairs with `ends with`."},"@astryx.powersearch.operator.is":{defaultMessage:`is`,description:"PowerSearch equality operator for strings/enums. Example: `Status is Active`. Separate from `operator.equals` (numbers) — translations may diverge."},"@astryx.powersearch.operator.isNot":{defaultMessage:`is not`,description:"PowerSearch inequality operator for strings/enums. Example: `Status is not Draft`. Pairs with `is`; separate from `operator.notEquals`."},"@astryx.powersearch.operator.equals":{defaultMessage:`is`,description:'PowerSearch numeric equality operator. Example: `Age is 30`. Ships same English "is" as `operator.is` but is separate so numbers may diverge (e.g. "equals").'},"@astryx.powersearch.operator.notEquals":{defaultMessage:`is not`,description:"PowerSearch numeric inequality operator. Example: `Count is not 0`. Same divergence option as `operator.equals`."},"@astryx.powersearch.operator.greaterThan":{defaultMessage:`is greater than`,description:"PowerSearch numeric operator, strictly greater than. Example: `Age is greater than 18`. Lowercase."},"@astryx.powersearch.operator.lessThan":{defaultMessage:`is less than`,description:"PowerSearch numeric operator, strictly less than. Example: `Priority is less than 5`. Lowercase."},"@astryx.powersearch.operator.greaterThanOrEqual":{defaultMessage:`is greater than or equal to`,description:'PowerSearch numeric operator, ≥. Example: `Age is greater than or equal to 21`. A shorter form (e.g. "≥") is fine if idiomatic.'},"@astryx.powersearch.operator.lessThanOrEqual":{defaultMessage:`is less than or equal to`,description:"PowerSearch numeric operator, ≤. Example: `Priority is less than or equal to 3`. A shorter form is fine if idiomatic."},"@astryx.powersearch.operator.before":{defaultMessage:`is before`,description:"PowerSearch date operator, strictly earlier. Example: `Created is before 2024-01-01`. Temporal, not spatial."},"@astryx.powersearch.operator.after":{defaultMessage:`is after`,description:"PowerSearch date operator, strictly later. Example: `Updated is after 2024-06-01`. Temporal."},"@astryx.powersearch.operator.between":{defaultMessage:`is between`,description:"PowerSearch date operator, inclusive range. Example: `Created is between 2024-01-01 and 2024-06-30`. The `and ` portion is composed separately."},"@astryx.powersearch.operator.isTrue":{defaultMessage:`is true`,description:"PowerSearch boolean operator: matches truthy. Example: `Is admin is true`. Pairs with `is false`; field may be affirmative or a yes/no question."},"@astryx.powersearch.operator.isFalse":{defaultMessage:`is false`,description:"PowerSearch boolean operator: matches falsy. Example: `Is admin is false`. Pairs with `is true`."},"@astryx.powersearch.operator.isAnyOf":{defaultMessage:`is any of`,description:"PowerSearch list operator: value is in the set. Example: `Status is any of [Active, Paused, Draft]`. The value list is composed separately; pairs with `is none of`."},"@astryx.powersearch.operator.isNoneOf":{defaultMessage:`is none of`,description:"PowerSearch negated list operator: value not in the set. Example: `Status is none of [Archived, Deleted]`. Pairs with `is any of`."},"@astryx.powersearch.valueEditor.itemsCount":{defaultMessage:`{count, number} {count, plural, one {item} other {items}}`,description:"Overflow summary on a compact filter chip when the list of selected items is too long. Example: `3 items` or `1 item`."},"@astryx.powersearch.valueEditor.entitiesCount":{defaultMessage:`{count, number} {count, plural, one {entity} other {entities}}`,description:"Overflow summary on a compact filter chip when the list of selected entities is too long. Example: `5 entities` or `1 entity`. Pair with `itemsCount` translation."},"@astryx.powersearch.valueEditor.dateRange":{defaultMessage:`date range`,description:"Fallback lowercase noun rendered inline in a filter chip when a date-range value can't be formatted (e.g. `Created is between date range`). Keep lowercase."},"@astryx.powersearch.valueEditor.filtersCount":{defaultMessage:`{count, number} {count, plural, one {filter} other {filters}}`,description:"Summary inside a filter chip when the value is a nested set of filters. Example: `3 filters` or `1 filter`."},"@astryx.powersearch.resultCount":{defaultMessage:`{count, number} {count, plural, one {result} other {results}}`,description:"Live result-count text next to the PowerSearch input, announced to screen readers on change. Example: `12 results`, `1 result`; keep compact."},"@astryx.alertDialog.cancel":{defaultMessage:`Cancel`,description:`Button label on the secondary/dismiss button of an AlertDialog (modal confirmation). Imperative verb; consumers usually override with task-specific text.`},"@astryx.appShell.mobileNavigation":{defaultMessage:`Mobile navigation`,description:`Screen-reader-only accessible name for the mobile-only navigation region on small viewports. "Mobile" = phone/tablet (small screen), not "movable".`},"@astryx.appShell.skipToContent":{defaultMessage:`Skip to content`,description:`Text of the skip link — the first focusable element on the page, visible only while keyboard-focused. Activating it jumps focus past the navigation to the main content area. Imperative verb; keep short.`},"@astryx.avatar.nameWithStatus":{defaultMessage:`{name}, {status}`,description:`Screen-reader accessible name for an Avatar showing a status indicator; composes the person's name with the status label, e.g. "Jane Doe, Online". {name} = the avatar's name/alt text, {status} = the status dot's label. Adjust separator and order per locale.`},"@astryx.avatarGroup.label":{defaultMessage:`Avatars`,description:`Screen-reader-only fallback name for a horizontal cluster of user avatar images. Plural noun; consumers usually override with "Team members", "Attendees", etc.`},"@astryx.avatarGroup.keyboardHint":{defaultMessage:`Use arrow keys to move between avatars`,description:`Screen-reader-only instruction attached (via aria-describedby) to a group of interactive avatars that share a single Tab stop. Tells keyboard users the Left/Right arrow keys move focus between the avatars. Only announced when the group has interactive (link/button) avatars.`},"@astryx.avatarGroup.overflow":{defaultMessage:`{count, number} more`,description:'Accessible name for the "+N" overflow indicator at the end of an AvatarGroup — announces how many additional avatars are not shown. Example: `5 more`. The visible "+N" text is unaffected; this is the aria-label only.'},"@astryx.banner.dismiss":{defaultMessage:`Dismiss`,description:`"Dismiss" = close/hide this notification (not "reject a person"). Tooltip on the small X button on a Banner, and its aria label when the banner's title is not plain text.`},"@astryx.banner.dismissTitled":{defaultMessage:`{dismiss} {title}`,description:"Aria label on the small X button on a Banner, naming which banner it closes so stacked banners are distinguishable. `{dismiss}` is the already-translated tooltip text from `banner.dismiss`; keep it verbatim in the message so visible and accessible labels match. `{title}` is the banner's own title text — example: `Dismiss Upload failed`. Reorder the placeholders freely."},"@astryx.calendar.previousMonth":{defaultMessage:`Previous month`,description:"Screen-reader-only label on the left-arrow button in a Calendar's month header (navigates one month back). Pairs with `calendar.nextMonth`."},"@astryx.calendar.nextMonth":{defaultMessage:`Next month`,description:"Screen-reader-only label on the right-arrow button in a Calendar's month header (navigates one month forward). Pairs with `calendar.previousMonth`."},"@astryx.calendar.daySelected":{defaultMessage:`{date}, selected`,description:'Accessible name for the Calendar day button that is the current single-mode selection. `{date}` is the localized full date, e.g. "Thursday, January 15, 2026". The trailing state word tells screen-reader users the focused day is selected.'},"@astryx.calendar.dayRangeStart":{defaultMessage:`{date}, range start`,description:"Accessible name for the Calendar day button that begins the selected date range (or the first pick of an in-progress range). `{date}` is the localized full date."},"@astryx.calendar.dayRangeEnd":{defaultMessage:`{date}, range end`,description:"Accessible name for the Calendar day button that ends the selected date range. `{date}` is the localized full date. Pairs with `calendar.dayRangeStart`."},"@astryx.calendar.dayRangeStartAndEnd":{defaultMessage:`{date}, range start and range end`,description:"Accessible name for a Calendar day button that both begins and ends a completed one-day range. `{date}` is the localized full date."},"@astryx.calendar.dayInRange":{defaultMessage:`{date}, in range`,description:"Accessible name for a Calendar day button strictly inside the selected date range (not an endpoint). `{date}` is the localized full date."},"@astryx.calendar.rangeStartAnnounce":{defaultMessage:`Start date {date}. Select an end date.`,description:"Screen-reader announcement after the first pick of a Calendar range selection. `{date}` is the localized full date. Prompts the user that a second pick completes the range."},"@astryx.calendar.rangeCompleteAnnounce":{defaultMessage:`Selected range: {start} to {end}.`,description:"Screen-reader announcement after the second pick completes a Calendar range selection. `{start}` and `{end}` are localized full dates in chronological order."},"@astryx.calendar.rangeClearedAnnounce":{defaultMessage:`Cleared start date {date}. Select a start date.`,description:"Screen-reader announcement when the user clicks the in-progress range start again, which clears it instead of completing a zero-length range. `{date}` is the localized full date."},"@astryx.carousel.label":{defaultMessage:`Carousel`,description:`Screen-reader-only fallback name for a horizontally-scrolling row of items. If "carousel" is unfamiliar in your locale, prefer the standard term (e.g. "slider").`},"@astryx.carousel.scrollLeft":{defaultMessage:`Scroll left`,description:"Screen-reader-only label on the left arrow button in a Carousel. Pairs with `carousel.scrollRight`; in RTL locales, coordinate the two so left/right match layout."},"@astryx.carousel.scrollRight":{defaultMessage:`Scroll right`,description:"Screen-reader-only label on the right arrow button in a Carousel. Pairs with `carousel.scrollLeft`; same RTL note."},"@astryx.carousel.slideLabel":{defaultMessage:`Slide {current, number} of {total, number}`,description:"Screen-reader accessible name for one slide in a Carousel, giving its position. `current` is the 1-based slide number; `total` is the slide count."},"@astryx.chat.status.sending":{defaultMessage:`Sending`,description:`Chat send-status caption under an outgoing message while it is being transmitted. Part of the set sending → sent → delivered → read (or failed) — keep tense/aspect consistent.`},"@astryx.chat.status.sent":{defaultMessage:`Sent`,description:`Chat send-status caption shown once the message reaches the server. Part of the set sending → **sent** → delivered → read (or failed) — keep tense consistent.`},"@astryx.chat.status.delivered":{defaultMessage:`Delivered`,description:`Chat send-status caption shown once the recipient's device received the message. Part of the set sending → sent → **delivered** → read (or failed).`},"@astryx.chat.status.read":{defaultMessage:`Read`,description:`Chat send-status caption shown once the recipient opened the message. English past-participle ("has been read", /rɛd/), not the present verb — part of the set sending → sent → delivered → **read**.`},"@astryx.chat.status.failed":{defaultMessage:`Failed`,description:`Chat send-status caption shown when the send attempt errored. Part of the set — the terminal failure branch, orthogonal to the sent → delivered → read success track.`},"@astryx.chat.messageAriaLabel":{defaultMessage:`Message {status}`,description:"Screen-reader-only accessible name for a chat message row. `{status}` interpolates the localized status word (e.g. `Message sent`, `Message delivered`) — reorder if needed."},"@astryx.chat.pastedText.expand":{defaultMessage:`Expand`,description:`Button label on a chip in the chat composer representing a long pasted text block; clicking reveals full content. "Expand" here means reveal more, not grow physically.`},"@astryx.checkboxList.item.checkbox":{defaultMessage:`Checkbox`,description:`Screen-reader-only last-ditch fallback name for a checkbox inside a list item when no label is provided. Should almost never render — consumers should supply a real label.`},"@astryx.commandPalette.emptySearch":{defaultMessage:`No results`,description:`Fallback empty-state text inside a CommandPalette when the user's query has no matches. Very short (2 words); neutral tone.`},"@astryx.commandPalette.emptyBootstrap":{defaultMessage:`Type to search`,description:`Onboarding empty-state text shown inside a CommandPalette on first open, before the user has typed anything. Imperative sentence fragment.`},"@astryx.commandPalette.resultCount":{defaultMessage:`{count, number} {count, plural, one {result} other {results}}`,description:"Screen-reader-only announcement of how many commands match the CommandPalette query as the user types. Example: `12 results`, `1 result`; keep compact."},"@astryx.commandPalette.noResultsFor":{defaultMessage:`No results for {query}`,description:"Screen-reader-only announcement when a CommandPalette query matches nothing. `{query}` is the user's verbatim search text; keep it last if your language allows so truncation-by-AT still conveys the outcome."},"@astryx.commandPalette.loading":{defaultMessage:`Loading`,description:`Screen-reader-only announcement that a CommandPalette search has started and results are being fetched. Present-progressive form; matches the visible spinner.`},"@astryx.dateRangeInput.presetDateRanges":{defaultMessage:`Preset date ranges`,description:`Screen-reader-only accessible name for the sidebar of quick-pick preset ranges inside a DateRangeInput popover (e.g. "Last 7 days", "This month").`},"@astryx.dateTimeInput.timePlaceholder":{defaultMessage:`Select a time`,description:`Grey placeholder inside the empty time-of-day slot in a DateTimeInput. "Time" = clock time (HH:MM), not duration.`},"@astryx.dialog.close":{defaultMessage:`Close`,description:`"Close" = shut/dismiss the dialog, not "nearby" (English homograph). Aria label AND tooltip on the X at the top-right of a Dialog.`},"@astryx.dropdownMenu.label":{defaultMessage:`Menu`,description:`Screen-reader-only fallback name for a dropdown menu popover. Very generic; consumers usually override. Noun ("a menu"), not the imperative.`},"@astryx.lightbox.close":{defaultMessage:`Close`,description:`"Close" = shut/dismiss (not "nearby"). Screen-reader-only label on the X button that dismisses a Lightbox.`},"@astryx.lightbox.previous":{defaultMessage:`Previous`,description:"Screen-reader-only label on the left-arrow button in a Lightbox (navigates to previous media item). Pairs with `lightbox.next`."},"@astryx.lightbox.next":{defaultMessage:`Next`,description:"Screen-reader-only label on the right-arrow button in a Lightbox (navigates to next media item). Pairs with `lightbox.previous`."},"@astryx.listInput.emptyTitle":{defaultMessage:`No {itemName}s yet`,description:'EmptyState title shown inside a lab ListInput when its collection has no records. `{itemName}` is the consumer\'s singular noun for one record (e.g. "guest"); the source appends a literal "s" to pluralize it, which only works for regular English plurals. If your language cannot pluralize an interpolated noun this way, rephrase around `{itemName}` instead (e.g. "No {itemName} added yet").'},"@astryx.listInput.emptyDescription":{defaultMessage:`Add a {itemName} to get started.`,description:'EmptyState supporting text shown inside a lab ListInput when its collection has no records. `{itemName}` is the consumer\'s singular noun for one record (e.g. "guest").'},"@astryx.listInput.addItem":{defaultMessage:`Add {itemName}`,description:'Accessible label on the button that appends a new record to a lab ListInput. `{itemName}` is the consumer\'s singular noun for one record (e.g. "guest").'},"@astryx.listInput.removeItem":{defaultMessage:`Remove {itemName} {position, number}`,description:'Accessible label and tooltip on the button that deletes one record from a lab ListInput. `{itemName}` is the consumer\'s singular noun for one record; `{position}` is its 1-based row number (e.g. "Remove guest 2").'},"@astryx.listInput.removeUnavailable":{defaultMessage:`Remove is unavailable while the list is disabled`,description:`Tooltip shown on the Remove button when the ListInput is disabled or loading, explaining why the action cannot be performed.`},"@astryx.listInput.reorderItem":{defaultMessage:`Reorder {itemName} {position, number}`,description:'Accessible label on the drag-handle button that reorders one record in a lab ListInput. `{itemName}` is the consumer\'s singular noun for one record; `{position}` is its 1-based row number (e.g. "Reorder guest 2").'},"@astryx.listInput.fieldLabelWithPosition":{defaultMessage:`{header}, {itemName} {position, number} of {total, number}`,description:'Accessible name for a field inside a lab ListInput row after the first row, disambiguating repeated column labels. `{header}` is the column\'s own label (e.g. "Name"); `{itemName}` is the consumer\'s singular noun for one record; `{position}`/`{total}` are the row\'s 1-based index and the total row count (e.g. "Name, guest 2 of 3").'},"@astryx.listInput.reorderInstructions":{defaultMessage:`Use Arrow Up or Arrow Down to move this item one position. Press Space or Enter to pick it up for extended keyboard reordering.`,description:`Visually-hidden instructions describing how to use a lab ListInput row's keyboard reorder handle, referenced via aria-describedby from every reorder button.`},"@astryx.listInput.announceAdded":{defaultMessage:`Added {itemName} {position, number}.`,description:"Screen-reader-only live announcement after a new record is appended to a lab ListInput. `{itemName}` is the consumer's singular noun for one record; `{position}` is the new record's 1-based row number."},"@astryx.listInput.announceRemoved":{defaultMessage:`Removed {itemName} {position, number}.`,description:"Screen-reader-only live announcement after a record is deleted from a lab ListInput. `{itemName}` is the consumer's singular noun for one record; `{position}` is the removed record's former 1-based row number."},"@astryx.listInput.announceGrabbed":{defaultMessage:`{itemName} {position, number} grabbed. Use arrow keys to move, Space or Enter to drop, and Escape to cancel.`,description:"Screen-reader-only live announcement when a lab ListInput record's keyboard reorder handle enters extended \"lift\" mode. `{itemName}` is the consumer's singular noun for one record; `{position}` is its 1-based row number."},"@astryx.listInput.announceMovedToPosition":{defaultMessage:`{itemName} moved to position {position, number} of {total, number}.`,description:"Screen-reader-only live announcement each time a lab ListInput record's reorder position changes (arrow-key step, keyboard lift-mode preview, or pointer drag). `{itemName}` is the consumer's singular noun for one record; `{position}`/`{total}` are the record's new 1-based position and the total row count."},"@astryx.listInput.announceReorderCancelled":{defaultMessage:`Reordering cancelled.`,description:`Screen-reader-only live announcement when a lab ListInput reorder in progress is cancelled (Escape key, blur, or the collection becoming disabled/loading mid-drag).`},"@astryx.listInput.announceReturnedToPosition":{defaultMessage:`{itemName} returned to position {position, number}.`,description:"Screen-reader-only live announcement when a lab ListInput reorder is committed without the record's position actually changing. `{itemName}` is the consumer's singular noun for one record; `{position}` is its unchanged 1-based row number."},"@astryx.listInput.announceDropped":{defaultMessage:`{itemName} dropped at position {position, number} of {total, number}.`,description:"Screen-reader-only live announcement when a lab ListInput reorder is committed with the record's position actually changing. `{itemName}` is the consumer's singular noun for one record; `{position}`/`{total}` are its new 1-based position and the total row count."},"@astryx.listInput.announceAlreadyAtBoundary":{defaultMessage:`This {itemName} is already {boundary, select, first {first} last {last} other {}}.`,description:'Screen-reader-only live announcement when an arrow-key reorder attempt has no effect because the record is already at that end of the list. `{itemName}` is the consumer\'s singular noun for one record; `{boundary}` is always exactly "first" or "last".'},"@astryx.markdown.taskList":{defaultMessage:`Task list`,description:"Screen-reader-only accessible name for a GitHub-flavored Markdown task list (rendered from `- [ ] item` / `- [x] done` syntax)."},"@astryx.markdown.table":{defaultMessage:`Table`,description:'Screen-reader-only accessible name for a table rendered inside a Markdown block. Noun ("a table"), not the verb. Separate from `@astryx.table.label` — translations may diverge.'},"@astryx.mobileNav.closeNavigation":{defaultMessage:`Close navigation`,description:"Screen-reader-only label on the X/close button that dismisses the MobileNav overlay. Pairs with `mobileNav.toggle.open`."},"@astryx.multiSelector.selectAll":{defaultMessage:`Select all`,description:`Label on the checkbox/toggle at the top of a MultiSelector dropdown that selects every option. "All" is a determiner here (as in "all the options"), not the pronoun.`},"@astryx.multiSelector.searchPlaceholder":{defaultMessage:`Search…`,description:"Placeholder inside the search input at the top of a MultiSelector's dropdown panel. Imperative verb; trailing `…` is one character."},"@astryx.multiSelector.searchOptions":{defaultMessage:`Search options`,description:`Screen-reader-only accessible name for that same search input inside a MultiSelector.`},"@astryx.multiSelector.empty":{defaultMessage:`No options`,description:`Shown in a MultiSelector's dropdown panel when it was given no options at all, and announced in a polite live region on open. Very short (2 words); neutral tone, not error-y.`},"@astryx.multiSelector.selectAllPartiallySelected":{defaultMessage:`{label}, partially selected`,description:'Accessible name for the MultiSelector select-all option while only some options are selected. `{label}` is the visible select-all label (e.g. "Select all"). ARIA forbids aria-selected="mixed" on options, so the indeterminate state is conveyed through the name instead. "Partially" = some but not all.'},"@astryx.popover.close":{defaultMessage:`Close popover`,description:`"Close" = shut/dismiss, not "nearby". Screen-reader-only label on the close button inside a Popover.`},"@astryx.selector.searchPlaceholder":{defaultMessage:`Search…`,description:"Placeholder inside the search input at the top of a Selector's dropdown panel (for filtering options). Imperative verb; trailing `…` is one character."},"@astryx.selector.searchOptions":{defaultMessage:`Search options`,description:`"Options" = the list of choices in the dropdown. Screen-reader-only accessible name for the search input inside a Selector.`},"@astryx.selector.empty":{defaultMessage:`No options`,description:`Shown in a Selector's dropdown panel when it was given no options at all, and announced in a polite live region on open. Very short (2 words); neutral tone, not error-y.`},"@astryx.sideNav.label":{defaultMessage:`Side navigation`,description:`Screen-reader-only accessible name for the primary vertical sidebar nav (usually on the left).`},"@astryx.sideNav.resizeSidebar":{defaultMessage:`Resize sidebar`,description:`Screen-reader-only label on the vertical drag handle at the right edge of the SideNav that lets the user resize the sidebar's width.`},"@astryx.sideNav.heading.openMenu":{defaultMessage:`Open menu`,description:"Screen-reader-only label on the `⋯` overflow-menu button embedded in a SideNav section heading. Same string as `topNav.heading.openMenu` — translations may share."},"@astryx.tabList.label":{defaultMessage:`Tabs`,description:`Screen-reader-only fallback name for a horizontal tab bar. Plural noun; "Tabs" here = UI tab panels, not browser tabs or the Tab key.`},"@astryx.table.label":{defaultMessage:`Table`,description:`Fallback screen-reader-only accessible name for a data-table region when the consumer provides none. Noun ("a table"), not the verb "to table".`},"@astryx.table.noData":{defaultMessage:`No data`,description:`Fallback empty-state text in the table body when there are zero rows. Neutral tone (not error-y); consumers commonly override with something specific like "No results".`},"@astryx.table.filter.allPlaceholder":{defaultMessage:`All`,description:`Placeholder on a per-column filter dropdown when nothing is selected, meaning "no filter — all rows match". Determiner form (as in "all values"), not the pronoun.`},"@astryx.table.filter.reset":{defaultMessage:`Reset`,description:`Button label inside a table's filter panel/popover; clears pending filter values back to defaults. Imperative verb.`},"@astryx.table.filter.apply":{defaultMessage:`Apply`,description:"Primary button label inside a table's filter panel/popover; commits pending filter values. Imperative verb; pairs with `Reset`."},"@astryx.table.rowStatus.columnHeader":{defaultMessage:`Row status`,description:`Screen-reader-only column header for the narrow status-indicator gutter a Table gains from useTableRowStatus. Sighted users see a blank gutter; assistive tech announces this as the column name.`},"@astryx.table.selection.selectAllRows":{defaultMessage:`Select all rows`,description:`Aria label for the "select all rows" checkbox in a Table header.`},"@astryx.table.selection.selectRow":{defaultMessage:`Select row`,description:`Aria label for the "select row" checkbox on a Table row.`},"@astryx.table.selection.selectRowNamed":{defaultMessage:`Select {label}`,description:`Aria label for a Table row's selection checkbox when a per-row label is available (via getRowLabel). \`label\` is the row's human-readable identity, e.g. "Alice".`},"@astryx.table.sort.ascending":{defaultMessage:`Sort ascending`,description:"Screen-reader-only label on a column header button that will sort the column ascending. Part of a set with `sort.descending` and `sort.clear` — keep parallel."},"@astryx.table.sort.descending":{defaultMessage:`Sort descending`,description:"Screen-reader-only label on a column header button that will sort the column descending. Part of a set with `sort.ascending` and `sort.clear`."},"@astryx.table.sort.clear":{defaultMessage:`Clear sort`,description:`Screen-reader-only label on a column header button that will remove the current sort. "Clear" here means remove, not transparent. Part of the sort set.`},"@astryx.table.sort.direction.ascending":{defaultMessage:`ascending`,description:"Localized direction word interpolated as `direction` into @astryx.table.sort.sortedBy and @astryx.table.sort.sortedByWithPriority."},"@astryx.table.sort.direction.descending":{defaultMessage:`descending`,description:"Localized direction word interpolated as `direction` into @astryx.table.sort.sortedBy and @astryx.table.sort.sortedByWithPriority."},"@astryx.table.sort.sortBy":{defaultMessage:`Sort by {label}`,description:"Aria label for a sortable Table header button when the column is unsorted. `label` is the column header text."},"@astryx.table.sort.sortedBy":{defaultMessage:`Sort by {label}, sorted {direction}`,description:"Aria label for a sorted Table header button. `direction` is the localized direction word from @astryx.table.sort.direction.*."},"@astryx.table.sort.sortedByWithPriority":{defaultMessage:`Sort by {label}, sorted {direction}, priority {rank, number} of {total, number}`,description:"Aria label for a sorted Table header button in multi-sort. `rank` is the 1-based position of this column in the sort order; `total` is the number of sorted columns."},"@astryx.toast.dismiss":{defaultMessage:`Dismiss notification`,description:"Screen-reader-only label on the X button of a Toast (transient notification popup). Distinct from `banner.dismiss` (persistent banner)."},"@astryx.toast.viewport":{defaultMessage:`Notifications`,description:`Screen-reader-only accessible name for the invisible landmark region hosting the stack of Toast popups (usually pinned to a screen corner).`},"@astryx.tokenizer.clearAll":{defaultMessage:`Clear all`,description:`Label on the "×" button that removes every token/chip from a Tokenizer input. Imperative verb + determiner "all"; short.`},"@astryx.topNav.heading.openMenu":{defaultMessage:`Open menu`,description:"Screen-reader-only label on the `⋯` overflow button in a TopNav section heading. Kept separate from `sideNav.heading.openMenu` so translations may diverge."},"@astryx.topNav.landmarkLabel":{defaultMessage:`Top navigation`,description:`Default accessible name (aria-label) for the