kennel 0.2.1 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -5
- package/dist/cli/dispatch.js +9 -0
- package/dist/cli/src/automations/notifications.d.ts +40 -0
- package/dist/cli/src/automations/notifications.js +220 -0
- package/dist/cli/src/cli/dispatch.d.ts +1 -0
- package/dist/cli/src/cli/dispatch.js +125 -0
- package/dist/cli/src/cli/usage.d.ts +1 -0
- package/dist/cli/src/cli/usage.js +25 -0
- package/dist/cli/src/core/api-client.d.ts +13 -0
- package/dist/cli/src/core/api-client.js +1 -0
- package/dist/cli/src/core/command.d.ts +1 -0
- package/dist/cli/src/core/command.js +69 -0
- package/dist/cli/src/core/core-folders.d.ts +1 -0
- package/dist/cli/src/core/core-folders.js +42 -0
- package/dist/cli/src/core/init.d.ts +1 -0
- package/dist/cli/src/core/init.js +141 -0
- package/dist/cli/src/core/runtime.d.ts +14 -0
- package/dist/cli/src/core/runtime.js +1 -0
- package/dist/cli/src/deploy/cloudflare.d.ts +6 -0
- package/dist/cli/src/deploy/cloudflare.js +100 -0
- package/dist/cli/src/deploy/environment.d.ts +2 -0
- package/dist/cli/src/deploy/environment.js +47 -0
- package/dist/cli/src/deploy/smoke-tests.d.ts +4 -0
- package/dist/cli/src/deploy/smoke-tests.js +92 -0
- package/dist/cli/src/deploy/trigger-dev.d.ts +2 -0
- package/dist/cli/src/deploy/trigger-dev.js +255 -0
- package/dist/cli/src/deploy/vercel.d.ts +3 -0
- package/dist/cli/src/deploy/vercel.js +67 -0
- package/dist/cli/src/main.d.ts +1 -0
- package/dist/cli/src/main.js +9 -0
- package/dist/cli/src/mcp/agent-tools.d.ts +8 -0
- package/dist/cli/src/mcp/agent-tools.js +247 -0
- package/dist/cli/src/mcp/config.d.ts +25 -0
- package/dist/cli/src/mcp/config.js +185 -0
- package/dist/cli/src/mcp/function-source.d.ts +7 -0
- package/dist/cli/src/mcp/function-source.js +42 -0
- package/dist/cli/src/mcp/generate.d.ts +1 -0
- package/dist/cli/src/mcp/generate.js +47 -0
- package/dist/cli/src/mcp/install-page.d.ts +12 -0
- package/dist/cli/src/mcp/install-page.js +5 -0
- package/dist/cli/src/notifications/email-worker.d.ts +8 -0
- package/dist/cli/src/notifications/email-worker.js +137 -0
- package/dist/cli/src/package/mcp-data.d.ts +1 -0
- package/dist/cli/src/package/mcp-data.js +1 -0
- package/dist/cli/src/package/mcp-email-worker.d.ts +1 -0
- package/dist/cli/src/package/mcp-email-worker.js +1 -0
- package/dist/cli/src/package/mcp-http.d.ts +1 -0
- package/dist/cli/src/package/mcp-http.js +1 -0
- package/dist/cli/src/package/mcp-stdio.d.ts +1 -0
- package/dist/cli/src/package/mcp-stdio.js +1 -0
- package/dist/cli/src/package/mcp.d.ts +1 -0
- package/dist/cli/src/package/mcp.js +1 -0
- package/dist/cli/src/package/preview.d.ts +9 -0
- package/dist/cli/src/package/preview.js +1 -0
- package/dist/cli/src/plugins/external.d.ts +36 -0
- package/dist/cli/src/plugins/external.js +503 -0
- package/dist/cli/src/publish/cloudflare-init.d.ts +12 -0
- package/dist/cli/src/publish/cloudflare-init.js +101 -0
- package/dist/cli/src/publish/config.d.ts +28 -0
- package/dist/cli/src/publish/config.js +178 -0
- package/dist/cli/src/publish/options.d.ts +13 -0
- package/dist/cli/src/publish/options.js +78 -0
- package/dist/cli/src/publish/vercel-init.d.ts +9 -0
- package/dist/cli/src/publish/vercel-init.js +52 -0
- package/dist/cli/src/shared/json.d.ts +4 -0
- package/dist/cli/src/shared/json.js +56 -0
- package/dist/cli/src/shared/object.d.ts +2 -0
- package/dist/cli/src/shared/object.js +3 -0
- package/dist/cli/src/shared/package-manager.d.ts +11 -0
- package/dist/cli/src/shared/package-manager.js +39 -0
- package/dist/cli/src/shared/path.d.ts +4 -0
- package/dist/cli/src/shared/path.js +40 -0
- package/dist/cli/src/shared/process.d.ts +7 -0
- package/dist/cli/src/shared/process.js +12 -0
- package/dist/cli/src/shared/project-config.d.ts +2 -0
- package/dist/cli/src/shared/project-config.js +26 -0
- package/dist/cli/src/site/dev.d.ts +10 -0
- package/dist/cli/src/site/dev.js +126 -0
- package/dist/cli/src/site/extension.d.ts +8 -0
- package/dist/cli/src/site/extension.js +113 -0
- package/dist/cli/src/site/folder-icons.d.ts +46 -0
- package/dist/cli/src/site/folder-icons.js +86 -0
- package/dist/cli/src/site/hot-viewer.d.ts +2 -0
- package/dist/cli/src/site/hot-viewer.js +231 -0
- package/dist/cli/src/site/kinds.d.ts +1 -0
- package/dist/cli/src/site/kinds.js +1 -0
- package/dist/cli/src/site/mail.d.ts +1 -0
- package/dist/cli/src/site/mail.js +10 -0
- package/dist/cli/src/site/renderers.d.ts +61 -0
- package/dist/cli/src/site/renderers.js +219 -0
- package/dist/cli/src/site/server-plugins.d.ts +54 -0
- package/dist/cli/src/site/server-plugins.js +1 -0
- package/dist/cli/src/site/viewer.d.ts +36 -0
- package/dist/cli/src/site/viewer.js +352 -0
- package/dist/cli/src/site/vitepress.d.ts +1 -0
- package/dist/cli/src/site/vitepress.js +1 -0
- package/dist/cli/usage.js +1 -0
- package/dist/core/api-client.js +75 -44
- package/dist/core/command.js +6 -3
- package/dist/core/core-folders.js +38280 -33
- package/dist/core/init.js +59 -4
- package/dist/core/runtime.js +57163 -41853
- package/dist/package/preview.js +40589 -17894
- package/dist/plugins/external.d.ts +36 -0
- package/dist/plugins/external.js +503 -0
- package/dist/site/server-plugins.js +394 -59
- package/dist/site/viewer.js +18 -5
- package/kernel/apps/web/.env.example +11 -0
- package/kernel/apps/web/components.json +20 -0
- package/kernel/apps/web/eslint.config.mjs +60 -0
- package/kernel/apps/web/index.html +17 -0
- package/kernel/apps/web/package.json +79 -0
- package/kernel/apps/web/public/favicon.svg +6 -0
- package/kernel/apps/web/public/providers/claude.svg +1 -0
- package/kernel/apps/web/public/providers/codex.svg +1 -0
- package/kernel/apps/web/public/providers/cursor.svg +1 -0
- package/kernel/apps/web/public/providers/opencode.svg +1 -0
- package/kernel/apps/web/public/providers/pi.svg +1 -0
- package/kernel/apps/web/server/acp/index.ts +1 -0
- package/kernel/apps/web/server/acp/live-agent-connection.ts +1 -0
- package/kernel/apps/web/server/acp/process-manager.ts +1 -0
- package/kernel/apps/web/server/acp/registry.ts +1 -0
- package/kernel/apps/web/server/acp/sdk.ts +1 -0
- package/kernel/apps/web/server/acp/transport.ts +1 -0
- package/kernel/apps/web/server/acp/types.ts +1 -0
- package/kernel/apps/web/server/acp-live-plugin.ts +30 -0
- package/kernel/apps/web/server/api/document-edit.ts +1 -0
- package/kernel/apps/web/server/api/open-path.ts +1 -0
- package/kernel/apps/web/server/core-plugin.ts +49 -0
- package/kernel/apps/web/server/folder-favicon.ts +1 -0
- package/kernel/apps/web/server/folder-icons.ts +1 -0
- package/kernel/apps/web/server/folder-metadata-plugin.ts +31 -0
- package/kernel/apps/web/server/plugins.ts +1 -0
- package/kernel/apps/web/server/preview-kinds.ts +1 -0
- package/kernel/apps/web/src/ai-input.tsx +62 -0
- package/kernel/apps/web/src/annotations.tsx +430 -0
- package/kernel/apps/web/src/api/client.ts +3 -0
- package/kernel/apps/web/src/api/errors.ts +1 -0
- package/kernel/apps/web/src/api/events.ts +42 -0
- package/kernel/apps/web/src/app.css +332 -0
- package/kernel/apps/web/src/app.tsx +667 -0
- package/kernel/apps/web/src/ask-draft.ts +164 -0
- package/kernel/apps/web/src/ask-tray.tsx +256 -0
- package/kernel/apps/web/src/comment-editor.tsx +93 -0
- package/kernel/apps/web/src/comment-form.tsx +162 -0
- package/kernel/apps/web/src/copy-path.ts +18 -0
- package/kernel/apps/web/src/deferred-ask-tray.tsx +20 -0
- package/kernel/apps/web/src/document-url.ts +46 -0
- package/kernel/apps/web/src/documents-url.ts +23 -0
- package/kernel/apps/web/src/dropped-folder.ts +64 -0
- package/kernel/apps/web/src/external-plugins.ts +3 -0
- package/kernel/apps/web/src/file-viewer.tsx +171 -0
- package/kernel/apps/web/src/folder-filter-icons.tsx +39 -0
- package/kernel/apps/web/src/folder-metadata.ts +76 -0
- package/kernel/apps/web/src/folder-plugin-view.tsx +87 -0
- package/kernel/apps/web/src/folder-query-cache.ts +66 -0
- package/kernel/apps/web/src/host-adapters.ts +209 -0
- package/kernel/apps/web/src/host-bridge.ts +214 -0
- package/kernel/apps/web/src/lib/entity-folder.ts +2 -0
- package/kernel/apps/web/src/linked-session-header.tsx +43 -0
- package/kernel/apps/web/src/live-session-controls.tsx +326 -0
- package/kernel/apps/web/src/local-source.ts +32 -0
- package/kernel/apps/web/src/main.tsx +24 -0
- package/kernel/apps/web/src/markdown-page.tsx +444 -0
- package/kernel/apps/web/src/notes-page.tsx +103 -0
- package/kernel/apps/web/src/plugins.ts +53 -0
- package/kernel/apps/web/src/project-search-dialog.tsx +257 -0
- package/kernel/apps/web/src/project-search.ts +18 -0
- package/kernel/apps/web/src/query-client.ts +4 -0
- package/kernel/apps/web/src/rehype-source-lines.ts +22 -0
- package/kernel/apps/web/src/routes/document.tsx +1 -0
- package/kernel/apps/web/src/routes/entities.tsx +277 -0
- package/kernel/apps/web/src/routes/search.tsx +60 -0
- package/kernel/apps/web/src/selection-context.ts +68 -0
- package/kernel/apps/web/src/selection-input.tsx +58 -0
- package/kernel/apps/web/src/selection-popup.tsx +155 -0
- package/kernel/apps/web/src/session-transcript-page.tsx +152 -0
- package/kernel/apps/web/src/use-annotations.ts +162 -0
- package/kernel/apps/web/src/use-ask-ai.ts +26 -0
- package/kernel/apps/web/src/use-ask-draft.ts +27 -0
- package/kernel/apps/web/src/use-document.ts +37 -0
- package/kernel/apps/web/src/use-folder-notes.ts +49 -0
- package/kernel/apps/web/src/use-linked-session.ts +33 -0
- package/kernel/apps/web/src/view-context.tsx +69 -0
- package/kernel/apps/web/src/view-header.tsx +66 -0
- package/kernel/apps/web/src/viewer-capabilities.ts +33 -0
- package/kernel/apps/web/src/viewer-route.ts +1 -0
- package/kernel/apps/web/src/viewport-height.ts +33 -0
- package/kernel/apps/web/tsconfig.json +24 -0
- package/kernel/apps/web/vite.config.ts +252 -0
- package/kernel/packages/agents/eslint.config.js +10 -0
- package/kernel/packages/agents/package.json +75 -0
- package/kernel/packages/agents/src/agent-card.tsx +334 -0
- package/kernel/packages/agents/src/client.tsx +13 -0
- package/kernel/packages/agents/src/index.ts +18 -0
- package/kernel/packages/agents/src/manifest.ts +7 -0
- package/kernel/packages/agents/src/node.ts +447 -0
- package/kernel/packages/agents/src/profiles.ts +137 -0
- package/kernel/packages/agents/src/resolve.ts +69 -0
- package/kernel/packages/agents/src/server.ts +60 -0
- package/kernel/packages/agents/src/types.ts +82 -0
- package/kernel/packages/agents/src/viewer.tsx +370 -0
- package/kernel/packages/agents/test/profiles.test.mjs +88 -0
- package/kernel/packages/agents/test/resolve.test.mjs +729 -0
- package/kernel/packages/agents/tsconfig.json +17 -0
- package/kernel/packages/api/README.md +73 -0
- package/kernel/packages/api/openapi.json +3368 -0
- package/kernel/packages/api/package.json +41 -0
- package/kernel/packages/api/src/client/errors.ts +1 -0
- package/kernel/packages/api/src/client/index.ts +2 -0
- package/kernel/packages/api/src/contracts/schemas.ts +277 -0
- package/kernel/packages/api/src/contracts.ts +20 -0
- package/kernel/packages/api/src/index.ts +34 -0
- package/kernel/packages/api/src/server/acp/index.ts +35 -0
- package/kernel/packages/api/src/server/acp/live-agent-connection.ts +44 -0
- package/kernel/packages/api/src/server/acp/process-manager.ts +291 -0
- package/kernel/packages/api/src/server/acp/registry.ts +140 -0
- package/kernel/packages/api/src/server/acp/sdk.ts +15 -0
- package/kernel/packages/api/src/server/acp/transport.ts +115 -0
- package/kernel/packages/api/src/server/acp/types.ts +89 -0
- package/kernel/packages/api/src/server/acp-live-plugin.ts +423 -0
- package/kernel/packages/api/src/server/api/create-agent-file.ts +46 -0
- package/kernel/packages/api/src/server/api/document-edit.ts +125 -0
- package/kernel/packages/api/src/server/api/open-path.ts +40 -0
- package/kernel/packages/api/src/server/contracts.ts +85 -0
- package/kernel/packages/api/src/server/entity-folder.ts +353 -0
- package/kernel/packages/api/src/server/folder-favicon.ts +17 -0
- package/kernel/packages/api/src/server/folder-icons.ts +113 -0
- package/kernel/packages/api/src/server/folder-metadata-plugin.ts +1758 -0
- package/kernel/packages/api/src/server/host.ts +21 -0
- package/kernel/packages/api/src/server/index.ts +197 -0
- package/kernel/packages/api/src/server/linked-folder-discovery.ts +158 -0
- package/kernel/packages/api/src/server/plugins.ts +205 -0
- package/kernel/packages/api/src/server/project-discovery.ts +69 -0
- package/kernel/packages/api/src/server/watcher.ts +46 -0
- package/kernel/packages/api/src/shared/selection.ts +16 -0
- package/kernel/packages/api/src/shared/viewer-route.ts +200 -0
- package/kernel/packages/api/test/agents-loading.test.ts +94 -0
- package/kernel/packages/api/test/core.test.ts +364 -0
- package/kernel/packages/api/test/entity-folder.test.ts +131 -0
- package/kernel/packages/api/test/linked-folder-discovery.test.ts +78 -0
- package/kernel/packages/api/test/media-endpoint.test.ts +83 -0
- package/kernel/packages/api/test/partial-loading.test.ts +43 -0
- package/kernel/packages/api/test/project-discovery.test.ts +44 -0
- package/kernel/packages/api/tsconfig.json +11 -0
- package/kernel/packages/api-client/README.md +72 -0
- package/kernel/packages/api-client/package.json +26 -0
- package/kernel/packages/api-client/scripts/generate.ts +68 -0
- package/kernel/packages/api-client/src/errors.ts +59 -0
- package/kernel/packages/api-client/src/generated.d.ts +1248 -0
- package/kernel/packages/api-client/src/index.ts +206 -0
- package/kernel/packages/api-client/src/responses.ts +19 -0
- package/kernel/packages/api-client/test/client.test.ts +143 -0
- package/kernel/packages/api-client/tsconfig.json +12 -0
- package/kernel/packages/folder-plugin/eslint.config.js +10 -0
- package/kernel/packages/folder-plugin/package.json +50 -0
- package/kernel/packages/folder-plugin/src/client.ts +73 -0
- package/kernel/packages/folder-plugin/src/endpoint.ts +273 -0
- package/kernel/packages/folder-plugin/src/index.ts +15 -0
- package/kernel/packages/folder-plugin/src/server.ts +78 -0
- package/kernel/packages/folder-plugin/src/subpath.ts +34 -0
- package/kernel/packages/folder-plugin/src/types.ts +86 -0
- package/kernel/packages/folder-plugin/src/validation.ts +56 -0
- package/kernel/packages/folder-plugin/test/contract.test.mjs +133 -0
- package/kernel/packages/folder-plugin/tsconfig.json +17 -0
- package/kernel/packages/kinds/package.json +24 -0
- package/kernel/packages/kinds/src/kinds.ts +172 -0
- package/kernel/packages/markdown/README.md +40 -0
- package/kernel/packages/markdown/explorer.css +1 -0
- package/kernel/packages/markdown/package.json +30 -0
- package/kernel/packages/markdown/src/documents.ts +1 -0
- package/kernel/packages/markdown/src/explorer.ts +1 -0
- package/kernel/packages/markdown/src/index.ts +2 -0
- package/kernel/packages/markdown/src/metadata.ts +63 -0
- package/kernel/packages/markdown/src/node.ts +1 -0
- package/kernel/packages/markdown/styles.css +1 -0
- package/kernel/packages/notes/SKILL.md +19 -0
- package/kernel/packages/notes/eslint.config.js +10 -0
- package/kernel/packages/notes/package.json +72 -0
- package/kernel/packages/notes/src/client.tsx +12 -0
- package/kernel/packages/notes/src/data/ai-input.ts +58 -0
- package/kernel/packages/notes/src/data/api.ts +40 -0
- package/kernel/packages/notes/src/data/parse.ts +15 -0
- package/kernel/packages/notes/src/data/routing.ts +33 -0
- package/kernel/packages/notes/src/data/use-folder-notes.ts +49 -0
- package/kernel/packages/notes/src/index.ts +2 -0
- package/kernel/packages/notes/src/manifest.ts +6 -0
- package/kernel/packages/notes/src/pages/notes-page.tsx +79 -0
- package/kernel/packages/notes/src/pages/single-note-page.tsx +57 -0
- package/kernel/packages/notes/src/server.ts +88 -0
- package/kernel/packages/notes/src/ui/ai-composer-controls.tsx +70 -0
- package/kernel/packages/notes/src/ui/folder-notes-list.tsx +140 -0
- package/kernel/packages/notes/tsconfig.json +16 -0
- package/kernel/packages/schemas/ICON-POLICY.md +43 -0
- package/kernel/packages/schemas/SKILL.md +185 -0
- package/kernel/packages/schemas/eslint.config.js +10 -0
- package/kernel/packages/schemas/package.json +81 -0
- package/kernel/packages/schemas/src/client.tsx +137 -0
- package/kernel/packages/schemas/src/data/config-file.ts +37 -0
- package/kernel/packages/schemas/src/data/contract.ts +174 -0
- package/kernel/packages/schemas/src/data/favicon.ts +218 -0
- package/kernel/packages/schemas/src/data/fields.ts +96 -0
- package/kernel/packages/schemas/src/data/icon-image.ts +53 -0
- package/kernel/packages/schemas/src/data/icon.ts +97 -0
- package/kernel/packages/schemas/src/data/load.ts +161 -0
- package/kernel/packages/schemas/src/data/params.ts +103 -0
- package/kernel/packages/schemas/src/data/query.ts +33 -0
- package/kernel/packages/schemas/src/data/sort.ts +50 -0
- package/kernel/packages/schemas/src/data/workspace.ts +101 -0
- package/kernel/packages/schemas/src/index.ts +22 -0
- package/kernel/packages/schemas/src/manifest.ts +4 -0
- package/kernel/packages/schemas/src/node.ts +384 -0
- package/kernel/packages/schemas/src/pages/collection.tsx +252 -0
- package/kernel/packages/schemas/src/server.ts +208 -0
- package/kernel/packages/schemas/src/ui/schema-entity-list.tsx +124 -0
- package/kernel/packages/schemas/src/ui/schema-filters.tsx +186 -0
- package/kernel/packages/schemas/src/ui/schema-search.tsx +35 -0
- package/kernel/packages/schemas/src/ui/use-query-param-filter-setting.tsx +15 -0
- package/kernel/packages/schemas/test/contract.test.mjs +26 -0
- package/kernel/packages/schemas/test/fields.test.mjs +187 -0
- package/kernel/packages/schemas/test/load.test.mjs +12 -0
- package/kernel/packages/schemas/test/node.test.mjs +412 -0
- package/kernel/packages/schemas/test/query.test.mjs +134 -0
- package/kernel/packages/schemas/test/workspace.test.mjs +86 -0
- package/kernel/packages/schemas/tsconfig.json +17 -0
- package/kernel/packages/session-finding/package.json +33 -0
- package/kernel/packages/session-finding/src/index.ts +120 -0
- package/kernel/packages/session-finding/test/list-sessions.test.mjs +139 -0
- package/kernel/packages/session-finding/tsconfig.json +12 -0
- package/kernel/packages/ui/LICENSE +21 -0
- package/kernel/packages/ui/components.json +20 -0
- package/kernel/packages/ui/eslint.config.js +8 -0
- package/kernel/packages/ui/package.json +106 -0
- package/kernel/packages/ui/src/chat/file-link.ts +178 -0
- package/kernel/packages/ui/src/chat/index.ts +18 -0
- package/kernel/packages/ui/src/chat/transcript.tsx +348 -0
- package/kernel/packages/ui/src/chat/turns.ts +76 -0
- package/kernel/packages/ui/src/chat/types.ts +23 -0
- package/kernel/packages/ui/src/chat/use-overflowing.ts +56 -0
- package/kernel/packages/ui/src/components/accordion.tsx +74 -0
- package/kernel/packages/ui/src/components/alert-dialog.tsx +164 -0
- package/kernel/packages/ui/src/components/alert.tsx +68 -0
- package/kernel/packages/ui/src/components/app-breadcrumbs.tsx +170 -0
- package/kernel/packages/ui/src/components/app-header.tsx +125 -0
- package/kernel/packages/ui/src/components/app-options.tsx +87 -0
- package/kernel/packages/ui/src/components/app-view-header.tsx +34 -0
- package/kernel/packages/ui/src/components/aspect-ratio.tsx +11 -0
- package/kernel/packages/ui/src/components/avatar.tsx +53 -0
- package/kernel/packages/ui/src/components/badge.tsx +47 -0
- package/kernel/packages/ui/src/components/base-dialog.tsx +3 -0
- package/kernel/packages/ui/src/components/base-tabs.tsx +63 -0
- package/kernel/packages/ui/src/components/breadcrumb.tsx +110 -0
- package/kernel/packages/ui/src/components/button-group.tsx +86 -0
- package/kernel/packages/ui/src/components/button.tsx +65 -0
- package/kernel/packages/ui/src/components/calendar.tsx +240 -0
- package/kernel/packages/ui/src/components/card.tsx +95 -0
- package/kernel/packages/ui/src/components/carousel.tsx +240 -0
- package/kernel/packages/ui/src/components/chart.tsx +375 -0
- package/kernel/packages/ui/src/components/checkbox.tsx +39 -0
- package/kernel/packages/ui/src/components/collapsible.tsx +33 -0
- package/kernel/packages/ui/src/components/collection-icon.tsx +28 -0
- package/kernel/packages/ui/src/components/command.tsx +205 -0
- package/kernel/packages/ui/src/components/content-issues.tsx +63 -0
- package/kernel/packages/ui/src/components/context-menu.tsx +298 -0
- package/kernel/packages/ui/src/components/copy-context.tsx +134 -0
- package/kernel/packages/ui/src/components/dialog.tsx +157 -0
- package/kernel/packages/ui/src/components/drawer.tsx +162 -0
- package/kernel/packages/ui/src/components/dropdown-menu.tsx +303 -0
- package/kernel/packages/ui/src/components/empty.tsx +108 -0
- package/kernel/packages/ui/src/components/field.tsx +260 -0
- package/kernel/packages/ui/src/components/file-preview.tsx +152 -0
- package/kernel/packages/ui/src/components/file-renderer.tsx +466 -0
- package/kernel/packages/ui/src/components/filter-chip-panel.tsx +157 -0
- package/kernel/packages/ui/src/components/filter-select.tsx +127 -0
- package/kernel/packages/ui/src/components/folder-activity.tsx +646 -0
- package/kernel/packages/ui/src/components/folder-file-list.tsx +58 -0
- package/kernel/packages/ui/src/components/folder-filter-bar.tsx +191 -0
- package/kernel/packages/ui/src/components/folder-image.tsx +18 -0
- package/kernel/packages/ui/src/components/folder-landing.tsx +70 -0
- package/kernel/packages/ui/src/components/folder-list.tsx +140 -0
- package/kernel/packages/ui/src/components/folder-metadata.tsx +107 -0
- package/kernel/packages/ui/src/components/folder-mobile-bar.tsx +60 -0
- package/kernel/packages/ui/src/components/folder-project-list.tsx +133 -0
- package/kernel/packages/ui/src/components/folder-session-list.tsx +113 -0
- package/kernel/packages/ui/src/components/folder-session-page.tsx +126 -0
- package/kernel/packages/ui/src/components/folder-sidebar.tsx +52 -0
- package/kernel/packages/ui/src/components/folder-skill-list.tsx +62 -0
- package/kernel/packages/ui/src/components/folder-tabs.tsx +156 -0
- package/kernel/packages/ui/src/components/form.tsx +167 -0
- package/kernel/packages/ui/src/components/hover-card.tsx +52 -0
- package/kernel/packages/ui/src/components/icons.tsx +34 -0
- package/kernel/packages/ui/src/components/input-group.tsx +184 -0
- package/kernel/packages/ui/src/components/input-otp.tsx +90 -0
- package/kernel/packages/ui/src/components/input.tsx +29 -0
- package/kernel/packages/ui/src/components/item.tsx +195 -0
- package/kernel/packages/ui/src/components/kbd.tsx +32 -0
- package/kernel/packages/ui/src/components/label.tsx +27 -0
- package/kernel/packages/ui/src/components/link.tsx +45 -0
- package/kernel/packages/ui/src/components/live-tool-call.tsx +193 -0
- package/kernel/packages/ui/src/components/menubar.tsx +323 -0
- package/kernel/packages/ui/src/components/navigation-menu.tsx +210 -0
- package/kernel/packages/ui/src/components/note-card.tsx +149 -0
- package/kernel/packages/ui/src/components/pagination.tsx +128 -0
- package/kernel/packages/ui/src/components/popover.tsx +56 -0
- package/kernel/packages/ui/src/components/progress.tsx +31 -0
- package/kernel/packages/ui/src/components/radio-group.tsx +54 -0
- package/kernel/packages/ui/src/components/scroll-area.tsx +61 -0
- package/kernel/packages/ui/src/components/select.tsx +219 -0
- package/kernel/packages/ui/src/components/separator.tsx +30 -0
- package/kernel/packages/ui/src/components/session-icon.tsx +124 -0
- package/kernel/packages/ui/src/components/sheet.tsx +157 -0
- package/kernel/packages/ui/src/components/sidebar.tsx +789 -0
- package/kernel/packages/ui/src/components/skeleton.tsx +13 -0
- package/kernel/packages/ui/src/components/slider.tsx +73 -0
- package/kernel/packages/ui/src/components/sonner.tsx +41 -0
- package/kernel/packages/ui/src/components/spinner.tsx +16 -0
- package/kernel/packages/ui/src/components/switch.tsx +40 -0
- package/kernel/packages/ui/src/components/table.tsx +120 -0
- package/kernel/packages/ui/src/components/tabs.tsx +78 -0
- package/kernel/packages/ui/src/components/textarea.tsx +25 -0
- package/kernel/packages/ui/src/components/toggle-group.tsx +87 -0
- package/kernel/packages/ui/src/components/toggle.tsx +48 -0
- package/kernel/packages/ui/src/components/tooltip.tsx +71 -0
- package/kernel/packages/ui/src/components/viewer-options.tsx +166 -0
- package/kernel/packages/ui/src/hooks/use-folder-filter.ts +103 -0
- package/kernel/packages/ui/src/hooks/use-mobile.ts +19 -0
- package/kernel/packages/ui/src/index.ts +13 -0
- package/kernel/packages/ui/src/lib/document-extensions.ts +83 -0
- package/kernel/packages/ui/src/lib/folder-activity.ts +143 -0
- package/kernel/packages/ui/src/lib/folder-filter.ts +284 -0
- package/kernel/packages/ui/src/lib/live-tool-call.tsx +109 -0
- package/kernel/packages/ui/src/lib/media-urls.ts +176 -0
- package/kernel/packages/ui/src/lib/obsidian-links.ts +120 -0
- package/kernel/packages/ui/src/lib/source-components.tsx +65 -0
- package/kernel/packages/ui/src/lib/utils.tsx +7 -0
- package/kernel/packages/ui/src/pages/entity-detail-page.tsx +82 -0
- package/kernel/packages/ui/src/pages/entity-list-page.tsx +50 -0
- package/kernel/packages/ui/src/pages/entity-page.tsx +69 -0
- package/kernel/packages/ui/src/styles/folder-activity.css +2151 -0
- package/kernel/packages/ui/test/copy-context.test.mjs +48 -0
- package/kernel/packages/ui/test/folder-filter.test.mjs +484 -0
- package/kernel/packages/ui/tsconfig.json +15 -0
- package/kernel/plugins/calendar/SKILL.md +173 -0
- package/kernel/plugins/calendar/eslint.config.js +10 -0
- package/kernel/plugins/calendar/package.json +73 -0
- package/kernel/plugins/calendar/schema.json +137 -0
- package/kernel/plugins/calendar/src/calendar.tsx +328 -0
- package/kernel/plugins/calendar/src/client.tsx +139 -0
- package/kernel/plugins/calendar/src/context.ts +48 -0
- package/kernel/plugins/calendar/src/copy-button.tsx +66 -0
- package/kernel/plugins/calendar/src/event-dialog.tsx +270 -0
- package/kernel/plugins/calendar/src/index.ts +4 -0
- package/kernel/plugins/calendar/src/manifest.ts +7 -0
- package/kernel/plugins/calendar/src/parse.ts +610 -0
- package/kernel/plugins/calendar/src/server.ts +160 -0
- package/kernel/plugins/calendar/src/utils.ts +80 -0
- package/kernel/plugins/calendar/src/views.tsx +418 -0
- package/kernel/plugins/calendar/test/context.test.mjs +60 -0
- package/kernel/plugins/calendar/test/package.test.mjs +43 -0
- package/kernel/plugins/calendar/test/parse.test.mjs +392 -0
- package/kernel/plugins/calendar/test/server.test.mjs +126 -0
- package/kernel/plugins/calendar/tsconfig.json +17 -0
- package/kernel/plugins/mail/SKILL.md +97 -0
- package/kernel/plugins/mail/eslint.config.js +10 -0
- package/kernel/plugins/mail/package.json +79 -0
- package/kernel/plugins/mail/src/api.ts +359 -0
- package/kernel/plugins/mail/src/bun-ffi.d.ts +14 -0
- package/kernel/plugins/mail/src/client.tsx +14 -0
- package/kernel/plugins/mail/src/flock.ts +137 -0
- package/kernel/plugins/mail/src/folders.ts +37 -0
- package/kernel/plugins/mail/src/history.ts +485 -0
- package/kernel/plugins/mail/src/index.ts +3 -0
- package/kernel/plugins/mail/src/mail-card.tsx +123 -0
- package/kernel/plugins/mail/src/mail-conversation.tsx +153 -0
- package/kernel/plugins/mail/src/mail-detail-page.tsx +467 -0
- package/kernel/plugins/mail/src/mail-hooks.ts +252 -0
- package/kernel/plugins/mail/src/mail-page.tsx +109 -0
- package/kernel/plugins/mail/src/mail-request.ts +78 -0
- package/kernel/plugins/mail/src/mail-send-box.tsx +175 -0
- package/kernel/plugins/mail/src/mailos.ts +723 -0
- package/kernel/plugins/mail/src/manifest.ts +7 -0
- package/kernel/plugins/mail/src/node.ts +171 -0
- package/kernel/plugins/mail/src/parse.ts +139 -0
- package/kernel/plugins/mail/src/server.ts +125 -0
- package/kernel/plugins/mail/src/types.ts +10 -0
- package/kernel/plugins/mail/src/viewer.tsx +147 -0
- package/kernel/plugins/mail/test/flock.test.mjs +156 -0
- package/kernel/plugins/mail/test/folders.test.mjs +138 -0
- package/kernel/plugins/mail/test/history.test.mjs +460 -0
- package/kernel/plugins/mail/test/mailos.test.mjs +752 -0
- package/kernel/plugins/mail/test/node.test.mjs +207 -0
- package/kernel/plugins/mail/test/package.test.mjs +54 -0
- package/kernel/plugins/mail/test/parse.test.mjs +32 -0
- package/kernel/plugins/mail/test/server.test.mjs +116 -0
- package/kernel/plugins/mail/test/viewer.test.mjs +192 -0
- package/kernel/plugins/mail/tsconfig.json +17 -0
- package/kernel/plugins/projects/SKILL.md +73 -0
- package/kernel/plugins/projects/eslint.config.js +10 -0
- package/kernel/plugins/projects/package.json +70 -0
- package/kernel/plugins/projects/src/client.tsx +17 -0
- package/kernel/plugins/projects/src/data/model.ts +129 -0
- package/kernel/plugins/projects/src/index.ts +17 -0
- package/kernel/plugins/projects/src/manifest.ts +7 -0
- package/kernel/plugins/projects/src/project-context.ts +41 -0
- package/kernel/plugins/projects/src/server.ts +276 -0
- package/kernel/plugins/projects/src/ui/project-card.tsx +61 -0
- package/kernel/plugins/projects/src/ui/projects-page.tsx +102 -0
- package/kernel/plugins/projects/test/package.test.mjs +51 -0
- package/kernel/plugins/projects/tsconfig.json +17 -0
- package/kernel/plugins/tasks/SKILL.md +341 -0
- package/kernel/plugins/tasks/eslint.config.js +10 -0
- package/kernel/plugins/tasks/package.json +74 -0
- package/kernel/plugins/tasks/schema.json +939 -0
- package/kernel/plugins/tasks/src/api.ts +212 -0
- package/kernel/plugins/tasks/src/client.tsx +23 -0
- package/kernel/plugins/tasks/src/data/parse.ts +544 -0
- package/kernel/plugins/tasks/src/data/task-id.ts +56 -0
- package/kernel/plugins/tasks/src/data/todo-model.ts +795 -0
- package/kernel/plugins/tasks/src/index.ts +34 -0
- package/kernel/plugins/tasks/src/manifest.ts +7 -0
- package/kernel/plugins/tasks/src/pages/task-detail.tsx +48 -0
- package/kernel/plugins/tasks/src/pages/task-list.tsx +88 -0
- package/kernel/plugins/tasks/src/server.ts +447 -0
- package/kernel/plugins/tasks/src/styles.css +9 -0
- package/kernel/plugins/tasks/src/ui/compact-todo-list.tsx +372 -0
- package/kernel/plugins/tasks/src/ui/error-details.tsx +78 -0
- package/kernel/plugins/tasks/src/ui/task-page.tsx +392 -0
- package/kernel/plugins/tasks/src/ui/todo-agent-filter.tsx +36 -0
- package/kernel/plugins/tasks/src/ui/todo-filter-bar.tsx +66 -0
- package/kernel/plugins/tasks/src/ui/todo-item.tsx +494 -0
- package/kernel/plugins/tasks/src/ui/todo-status-filter.tsx +60 -0
- package/kernel/plugins/tasks/src/ui/todo-tag-filter.tsx +48 -0
- package/kernel/plugins/tasks/src/ui/todo-warnings.tsx +106 -0
- package/kernel/plugins/tasks/test/api.test.mjs +99 -0
- package/kernel/plugins/tasks/test/folder-sources.test.mjs +46 -0
- package/kernel/plugins/tasks/test/package.test.mjs +54 -0
- package/kernel/plugins/tasks/test/parse.test.mjs +225 -0
- package/kernel/plugins/tasks/test/server.test.mjs +386 -0
- package/kernel/plugins/tasks/tsconfig.json +17 -0
- package/node_modules/@agentclientprotocol/sdk/LICENSE +191 -0
- package/node_modules/@agentclientprotocol/sdk/README.md +70 -0
- package/node_modules/@agentclientprotocol/sdk/dist/acp.d.ts +1835 -0
- package/node_modules/@agentclientprotocol/sdk/dist/acp.js +1885 -0
- package/node_modules/@agentclientprotocol/sdk/dist/acp.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/acp.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/acp.test.js +5036 -0
- package/node_modules/@agentclientprotocol/sdk/dist/acp.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/connection.d.ts +82 -0
- package/node_modules/@agentclientprotocol/sdk/dist/connection.js +428 -0
- package/node_modules/@agentclientprotocol/sdk/dist/connection.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/connection.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/connection.test.js +470 -0
- package/node_modules/@agentclientprotocol/sdk/dist/connection.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/cookie-store.d.ts +26 -0
- package/node_modules/@agentclientprotocol/sdk/dist/cookie-store.js +96 -0
- package/node_modules/@agentclientprotocol/sdk/dist/cookie-store.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/cookie-store.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/cookie-store.test.js +77 -0
- package/node_modules/@agentclientprotocol/sdk/dist/cookie-store.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/examples/agent.d.ts +2 -0
- package/node_modules/@agentclientprotocol/sdk/dist/examples/agent.js +232 -0
- package/node_modules/@agentclientprotocol/sdk/dist/examples/agent.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/examples/client.d.ts +2 -0
- package/node_modules/@agentclientprotocol/sdk/dist/examples/client.js +132 -0
- package/node_modules/@agentclientprotocol/sdk/dist/examples/client.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/examples/dual-version-agent.d.ts +9 -0
- package/node_modules/@agentclientprotocol/sdk/dist/examples/dual-version-agent.js +221 -0
- package/node_modules/@agentclientprotocol/sdk/dist/examples/dual-version-agent.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/examples/http-client.d.ts +2 -0
- package/node_modules/@agentclientprotocol/sdk/dist/examples/http-client.js +86 -0
- package/node_modules/@agentclientprotocol/sdk/dist/examples/http-client.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/examples/http-server.d.ts +2 -0
- package/node_modules/@agentclientprotocol/sdk/dist/examples/http-server.js +112 -0
- package/node_modules/@agentclientprotocol/sdk/dist/examples/http-server.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/examples/ws-client.d.ts +2 -0
- package/node_modules/@agentclientprotocol/sdk/dist/examples/ws-client.js +88 -0
- package/node_modules/@agentclientprotocol/sdk/dist/examples/ws-client.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/http-stream.d.ts +33 -0
- package/node_modules/@agentclientprotocol/sdk/dist/http-stream.js +435 -0
- package/node_modules/@agentclientprotocol/sdk/dist/http-stream.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/http-stream.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/http-stream.test.js +1380 -0
- package/node_modules/@agentclientprotocol/sdk/dist/http-stream.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/jsonrpc.d.ts +603 -0
- package/node_modules/@agentclientprotocol/sdk/dist/jsonrpc.js +1064 -0
- package/node_modules/@agentclientprotocol/sdk/dist/jsonrpc.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/jsonrpc.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/jsonrpc.test.js +851 -0
- package/node_modules/@agentclientprotocol/sdk/dist/jsonrpc.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/line-buffer.d.ts +22 -0
- package/node_modules/@agentclientprotocol/sdk/dist/line-buffer.js +64 -0
- package/node_modules/@agentclientprotocol/sdk/dist/line-buffer.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/line-buffer.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/line-buffer.test.js +45 -0
- package/node_modules/@agentclientprotocol/sdk/dist/line-buffer.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/node-adapter.d.ts +17 -0
- package/node_modules/@agentclientprotocol/sdk/dist/node-adapter.js +426 -0
- package/node_modules/@agentclientprotocol/sdk/dist/node-adapter.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/node-adapter.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/node-adapter.test.js +499 -0
- package/node_modules/@agentclientprotocol/sdk/dist/node-adapter.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/protocol-router.d.ts +37 -0
- package/node_modules/@agentclientprotocol/sdk/dist/protocol-router.js +474 -0
- package/node_modules/@agentclientprotocol/sdk/dist/protocol-router.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/protocol-router.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/protocol-router.test.js +535 -0
- package/node_modules/@agentclientprotocol/sdk/dist/protocol-router.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/protocol.d.ts +11 -0
- package/node_modules/@agentclientprotocol/sdk/dist/protocol.js +57 -0
- package/node_modules/@agentclientprotocol/sdk/dist/protocol.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/protocol.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/protocol.test.js +73 -0
- package/node_modules/@agentclientprotocol/sdk/dist/protocol.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema/guards.gen.d.ts +199 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema/guards.gen.js +211 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema/guards.gen.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema/index.d.ts +51 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema/index.js +52 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema/index.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema/types.gen.d.ts +6118 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema/types.gen.js +3 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema/types.gen.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.d.ts +14160 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.js +3066 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.d.ts +30 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.js +98 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.test.js +93 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server-permission.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server-permission.test.js +261 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server-permission.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server-session-sse.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server-session-sse.test.js +490 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server-session-sse.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server-sse.d.ts +2 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server-sse.js +104 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server-sse.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server-sse.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server-sse.test.js +52 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server-sse.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server-websocket-upgrade.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server-websocket-upgrade.test.js +946 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server-websocket-upgrade.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server.d.ts +81 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server.js +380 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server.test.js +1082 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/sse.d.ts +4 -0
- package/node_modules/@agentclientprotocol/sdk/dist/sse.js +91 -0
- package/node_modules/@agentclientprotocol/sdk/dist/sse.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/sse.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/sse.test.js +126 -0
- package/node_modules/@agentclientprotocol/sdk/dist/sse.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/stream.d.ts +35 -0
- package/node_modules/@agentclientprotocol/sdk/dist/stream.js +106 -0
- package/node_modules/@agentclientprotocol/sdk/dist/stream.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/stream.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/stream.test.js +206 -0
- package/node_modules/@agentclientprotocol/sdk/dist/stream.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/test-support/streams.d.ts +8 -0
- package/node_modules/@agentclientprotocol/sdk/dist/test-support/streams.js +51 -0
- package/node_modules/@agentclientprotocol/sdk/dist/test-support/streams.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/test-support/test-agent.d.ts +24 -0
- package/node_modules/@agentclientprotocol/sdk/dist/test-support/test-agent.js +163 -0
- package/node_modules/@agentclientprotocol/sdk/dist/test-support/test-agent.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/test-support/test-http-server.d.ts +9 -0
- package/node_modules/@agentclientprotocol/sdk/dist/test-support/test-http-server.js +74 -0
- package/node_modules/@agentclientprotocol/sdk/dist/test-support/test-http-server.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/acp.d.ts +806 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/acp.js +1183 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/acp.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/acp.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/acp.test.js +512 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/acp.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/guards.gen.d.ts +954 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/guards.gen.js +1035 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/guards.gen.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/index.d.ts +42 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/index.js +43 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/index.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/types.gen.d.ts +6146 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/types.gen.js +3 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/types.gen.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/zod.gen.d.ts +30552 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/zod.gen.js +3204 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/zod.gen.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/ws-server.d.ts +14 -0
- package/node_modules/@agentclientprotocol/sdk/dist/ws-server.js +358 -0
- package/node_modules/@agentclientprotocol/sdk/dist/ws-server.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/ws-stream.d.ts +54 -0
- package/node_modules/@agentclientprotocol/sdk/dist/ws-stream.js +246 -0
- package/node_modules/@agentclientprotocol/sdk/dist/ws-stream.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/ws-stream.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/ws-stream.test.js +833 -0
- package/node_modules/@agentclientprotocol/sdk/dist/ws-stream.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/ws-utils.d.ts +13 -0
- package/node_modules/@agentclientprotocol/sdk/dist/ws-utils.js +78 -0
- package/node_modules/@agentclientprotocol/sdk/dist/ws-utils.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/ws-utils.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/ws-utils.test.js +42 -0
- package/node_modules/@agentclientprotocol/sdk/dist/ws-utils.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/package.json +105 -0
- package/node_modules/@agentclientprotocol/sdk/schema/schema.json +8819 -0
- package/node_modules/@agentclientprotocol/sdk/schema/v2/schema.unstable.json +10098 -0
- package/package.json +52 -6
- package/web/assets/{abnfDiagram-VRR7QNED-Nfq-O04D.js → abnfDiagram-VRR7QNED-Bgfb1nEB.js} +1 -1
- package/web/assets/app-DoGr2Zi7.js +2 -0
- package/web/assets/app-options-D-RJiQ-X.js +25 -0
- package/web/assets/app-view-header-BLvLq02T.js +1 -0
- package/web/assets/arc-Dk_KI36B.js +1 -0
- package/web/assets/{architectureDiagram-ZJ3FMSHR-qhRwPNcQ.js → architectureDiagram-ZJ3FMSHR-NR_KhRCf.js} +1 -1
- package/web/assets/ask-tray-TzeTcO6-.js +14 -0
- package/web/assets/{blockDiagram-677ZJIJ3-C56P3bGu.js → blockDiagram-677ZJIJ3-CkLkwx9C.js} +1 -1
- package/web/assets/button-C6arH7zt.js +1 -0
- package/web/assets/{c4Diagram-LMCZKHZV-Ey1M72zD.js → c4Diagram-LMCZKHZV-CFCUH8e_.js} +1 -1
- package/web/assets/channel-uMEjV8qc.js +1 -0
- package/web/assets/{chunk-2Q5K7J3B-a6isk9VU.js → chunk-2Q5K7J3B-B_BPLWsW.js} +1 -1
- package/web/assets/{chunk-32BRIVSS-uy4kdSLL.js → chunk-32BRIVSS-B1VB1hOy.js} +1 -1
- package/web/assets/{chunk-5VM5RSS4-oj2sBFd7.js → chunk-5VM5RSS4-KFcYr8Co.js} +1 -1
- package/web/assets/{chunk-EX3LRPZG-Bzl1ukAi.js → chunk-EX3LRPZG-CpBX3kuK.js} +3 -3
- package/web/assets/{chunk-JWPE2WC7-sUph7I_t.js → chunk-JWPE2WC7-BPSl40wG.js} +1 -1
- package/web/assets/{chunk-MOJQB5TN-C0ERSuVK.js → chunk-MOJQB5TN-D2RcYmoU.js} +1 -1
- package/web/assets/{chunk-RYQCIY6F-Dyw1Hfwp.js → chunk-RYQCIY6F-m7Gyn-t3.js} +1 -1
- package/web/assets/{chunk-V7JOEXUC-DnSz22rb.js → chunk-V7JOEXUC-TDvdopxS.js} +1 -1
- package/web/assets/{chunk-VR4S4FIN-Bp2SNel7.js → chunk-VR4S4FIN-DZTsG51a.js} +1 -1
- package/web/assets/{chunk-XXDRQBXY-Dqtar746.js → chunk-XXDRQBXY-Dp0--RE2.js} +1 -1
- package/web/assets/classDiagram-OUVF2IWQ-fbZocVor.js +1 -0
- package/web/assets/classDiagram-v2-EOCWNBFH-fbZocVor.js +1 -0
- package/web/assets/client-C6Nxdfif.js +2 -0
- package/web/assets/client-CXYfBko5.js +17 -0
- package/web/assets/client-CoKtOq-X.js +7 -0
- package/web/assets/client-DyRQz5RU.js +53 -0
- package/web/assets/client-OY6HUzuD.js +98 -0
- package/web/assets/client-YOYWZIFi.js +34 -0
- package/web/assets/client-j2kQmxsO.js +22 -0
- package/web/assets/command-BugZBGXE.js +38 -0
- package/web/assets/copy-context-C0Uqsp-3.js +1 -0
- package/web/assets/{cose-bilkent-JH36ORCC-Dx1VqMjj.js → cose-bilkent-JH36ORCC-CPu3PI8h.js} +1 -1
- package/web/assets/{cynefin-VYW2F7L2-SjhCWmIV.js → cynefin-VYW2F7L2-DWxftYAm.js} +1 -1
- package/web/assets/{cynefinDiagram-TSTJHNR4-Dvqz2594.js → cynefinDiagram-TSTJHNR4-DsmN2V-p.js} +1 -1
- package/web/assets/{dagre-VKFMJZFB-Ju2m2qXt.js → dagre-VKFMJZFB-COEbApyY.js} +1 -1
- package/web/assets/{diagram-FQU43EPY-DsHKTt0k.js → diagram-FQU43EPY-0O9WGWKB.js} +1 -1
- package/web/assets/{diagram-G47NLZAW-DWHAcLkJ.js → diagram-G47NLZAW-CutEdMVh.js} +1 -1
- package/web/assets/{diagram-NH7WQ7WH-uUMz46ZD.js → diagram-NH7WQ7WH-C9KZc3B2.js} +1 -1
- package/web/assets/{diagram-OA4YK3LP-BRjVzjdp.js → diagram-OA4YK3LP-D8kkPXbY.js} +1 -1
- package/web/assets/{diagram-WEI45ONY-Cb-FhBpQ.js → diagram-WEI45ONY-_YqiTaGP.js} +1 -1
- package/web/assets/document-Dgt5eZFj.js +19 -0
- package/web/assets/{ebnfDiagram-CCIWWBDH-IhhxX3IB.js → ebnfDiagram-CCIWWBDH-JO-zQh6g.js} +1 -1
- package/web/assets/{entities-DUnx74kH.js → entities-C3wz7FCx.js} +12 -12
- package/web/assets/{erDiagram-Q63AITRT-D1frgeWf.js → erDiagram-Q63AITRT-9UjQwJ4P.js} +1 -1
- package/web/assets/file-viewer-DZJ8nYnl.js +1 -0
- package/web/assets/{flowDiagram-23GEKE2U-BiPPM-FY.js → flowDiagram-23GEKE2U-Ca08tnYM.js} +5 -5
- package/web/assets/folder-image-BfGgxo7i.js +1 -0
- package/web/assets/folder-landing-qUKBCnG-.js +54 -0
- package/web/assets/folder-list-BfFjv7rR.js +1 -0
- package/web/assets/folder-metadata-DCw8xzHk.js +2 -0
- package/web/assets/folder-mobile-bar-Ubz4babf.js +1 -0
- package/web/assets/folder-plugin-view-DsWR1zmQ.js +6 -0
- package/web/assets/{ganttDiagram-NO4QXBWP-CmEOlHD7.js → ganttDiagram-NO4QXBWP-KnHzX5W3.js} +1 -1
- package/web/assets/{gitGraphDiagram-IHSO6WYX-tTjcpZpU.js → gitGraphDiagram-IHSO6WYX-Cm8woNtK.js} +1 -1
- package/web/assets/index-BaRnbYRw.js +1 -0
- package/web/assets/index-BexmLxIP.css +1 -0
- package/web/assets/index-Bp9DidgD.js +1 -0
- package/web/assets/{index-eL1k96k8.js → index-CCXE8zc9.js} +1 -1
- package/web/assets/index-CNyy98F8.js +2 -0
- package/web/assets/{index-DmrKjrlM.js → index-CXhBn-ar.js} +1 -1
- package/web/assets/index-DDirZMgx.js +1 -0
- package/web/assets/{infoDiagram-FWYZ7A6U-Ok2sdbc1.js → infoDiagram-FWYZ7A6U-yyqmUtIb.js} +1 -1
- package/web/assets/{ishikawaDiagram-FXEZZL3T-kPnM5psX.js → ishikawaDiagram-FXEZZL3T-BfvR_Zy4.js} +4 -4
- package/web/assets/{journeyDiagram-5HDEW3XC-BkoT0-45.js → journeyDiagram-5HDEW3XC-BKuw06HM.js} +1 -1
- package/web/assets/{kanban-definition-HUTT4EX6-xnm_eFoU.js → kanban-definition-HUTT4EX6-n0010rmQ.js} +8 -8
- package/web/assets/{linear-CLZpgLH-.js → linear-C0d0lT8O.js} +1 -1
- package/web/assets/linked-session-header-BkEweU0Z.js +3 -0
- package/web/assets/{markdown-njUwQKsR.js → markdown-Bw9RgUGR.js} +9 -9
- package/web/assets/{mermaid.core-Bvxj3RoN.js → mermaid.core-BDVbShyO.js} +6 -6
- package/web/assets/metadata-KV0dpp4G.js +1 -0
- package/web/assets/{mindmap-definition-LN4V7U3C-42Uoox79.js → mindmap-definition-LN4V7U3C--_0ks3GF.js} +1 -1
- package/web/assets/note-card-DBfX6gW1.js +6 -0
- package/web/assets/{pegDiagram-2B236MQR-B-GZCw3w.js → pegDiagram-2B236MQR-CBoNIpKR.js} +1 -1
- package/web/assets/{pieDiagram-ENE6RG2P-DRmmssIB.js → pieDiagram-ENE6RG2P-MA5tkYh5.js} +3 -3
- package/web/assets/popover-DBD7FF-W.js +9 -0
- package/web/assets/{project-search-dialog-B730oZ1S.js → project-search-dialog-DM1IkSZu.js} +6 -6
- package/web/assets/{quadrantDiagram-ABIIQ3AL-BfhVQ7V9.js → quadrantDiagram-ABIIQ3AL-CWT1ryqF.js} +1 -1
- package/web/assets/{railroadDiagram-RFXS5EU6-DxKx7XRp.js → railroadDiagram-RFXS5EU6-ZiLB5FGi.js} +1 -1
- package/web/assets/{react-DZzLHL-l.js → react-B9jn2M18.js} +2 -2
- package/web/assets/{requirementDiagram-TGXJPOKE-NUzj9fw1.js → requirementDiagram-TGXJPOKE-CQq9uneq.js} +1 -1
- package/web/assets/{sankeyDiagram-HTMAVEWB-Cy9OMnl-.js → sankeyDiagram-HTMAVEWB-qDG-0JqI.js} +1 -1
- package/web/assets/search-DNrQA5fF.js +2 -0
- package/web/assets/select-D8cqNgcp.js +30 -0
- package/web/assets/selection-popup-DmtTeRs2.js +7 -0
- package/web/assets/{sequenceDiagram-DBY2YBRQ-CBNE9mzn.js → sequenceDiagram-DBY2YBRQ-CiApurLO.js} +1 -1
- package/web/assets/{sizeCapture-X5ZJPWSS-S4HhfX0n.js → sizeCapture-X5ZJPWSS-DZSR5QXm.js} +1 -1
- package/web/assets/stateDiagram-2N3HPSRC-CjJJR9_z.js +1 -0
- package/web/assets/stateDiagram-v2-6OUMAXLB-BpeGSCu9.js +1 -0
- package/web/assets/{swimlanes-5IMT3BWC-DJ2aLWal.js → swimlanes-5IMT3BWC-CKmo1sg6.js} +2 -2
- package/web/assets/swimlanesDiagram-G3AALYLV-D9RjLKb9.js +8 -0
- package/web/assets/tanstack-YzX_Mi37.js +3 -0
- package/web/assets/{timeline-definition-FHXFAJF6-vFDUVPCX.js → timeline-definition-FHXFAJF6-D-NMwS3y.js} +1 -1
- package/web/assets/{use-folder-filter-BbTUlXgG.js → use-folder-filter-LQyXns5Q.js} +1 -1
- package/web/assets/{utils-CwHGE3BB.js → utils-DCaHk0Gm.js} +1 -1
- package/web/assets/{vennDiagram-L72KCM5P-AsnhK2zW.js → vennDiagram-L72KCM5P-CfL6LBWw.js} +1 -1
- package/web/assets/view-context-gyDl_p2V.js +229 -0
- package/web/assets/viewer-capabilities-Bpp8Uvcg.js +1 -0
- package/web/assets/{wardleyDiagram-EHGQE667-Cj1wFbNV.js → wardleyDiagram-EHGQE667-DgldMxaj.js} +1 -1
- package/web/assets/{xychartDiagram-FW5EYKEG-Bbvnutsm.js → xychartDiagram-FW5EYKEG-CIoAIFX8.js} +1 -1
- package/web/favicon.svg +6 -0
- package/web/index.html +5 -4
- package/web/assets/app-CPSmsokP.js +0 -2
- package/web/assets/app-options-XEWvevsz.js +0 -25
- package/web/assets/app-view-header-BKZ90ToF.js +0 -1
- package/web/assets/arc-DbpbZvCt.js +0 -1
- package/web/assets/arrow-left-CFeHb-Z1.js +0 -1
- package/web/assets/ask-tray-D2YHtbPj.js +0 -14
- package/web/assets/button-BJ7z-ZA7.js +0 -1
- package/web/assets/calendar-days-DWh2XMO2.js +0 -1
- package/web/assets/channel-dSRp_qTo.js +0 -1
- package/web/assets/chevron-down-C5oRtqbX.js +0 -1
- package/web/assets/chevron-right-CsPtvh8C.js +0 -1
- package/web/assets/chevron-up-DjpU6Pyv.js +0 -1
- package/web/assets/classDiagram-OUVF2IWQ-B7B2zLzM.js +0 -1
- package/web/assets/classDiagram-v2-EOCWNBFH-B7B2zLzM.js +0 -1
- package/web/assets/client-CAudjYV9.js +0 -34
- package/web/assets/client-Dn9-_Gm_.js +0 -14
- package/web/assets/client-Dxrf2tyq.js +0 -102
- package/web/assets/client-aFI2M4pE.js +0 -53
- package/web/assets/collection-icon-TbOVyORG.js +0 -1
- package/web/assets/collection-page-Du6FKkuU.js +0 -10
- package/web/assets/command-C_g5E1Wx.js +0 -38
- package/web/assets/copy-Ikmr6Iq2.js +0 -1
- package/web/assets/copy-context-Cl1TE2PJ.js +0 -1
- package/web/assets/document-DcjNSJCk.js +0 -2
- package/web/assets/external-link-BXmSXqqF.js +0 -1
- package/web/assets/file-renderer-BRZTrYx8.js +0 -19
- package/web/assets/file-text-CiiSsCDq.js +0 -1
- package/web/assets/file-viewer-C1wAeVDK.js +0 -1
- package/web/assets/folder-image-AXBrHUcU.js +0 -1
- package/web/assets/folder-landing-BhRg7hwn.js +0 -54
- package/web/assets/folder-list-rIdszVde.js +0 -1
- package/web/assets/folder-metadata-puTC5QqJ.js +0 -2
- package/web/assets/folder-mobile-bar-DjjRQo3T.js +0 -1
- package/web/assets/folder-plugin-view-BU_kzR8j.js +0 -6
- package/web/assets/index-DS2Wmd9I.css +0 -1
- package/web/assets/index-DgqzSeIR.js +0 -1
- package/web/assets/index-DnlTDqaa.js +0 -1
- package/web/assets/index-DztTMDFz.js +0 -2
- package/web/assets/index-kY75qc96.js +0 -1
- package/web/assets/index-p38i_yyY.js +0 -1
- package/web/assets/link-2-BWKA6t--.js +0 -1
- package/web/assets/link-DC_1Z6Yy.js +0 -11
- package/web/assets/linked-session-header-DJYWZ_-q.js +0 -3
- package/web/assets/mail-2rCdIFul.js +0 -1
- package/web/assets/markdown-title-dncAYYiP.js +0 -131
- package/web/assets/notes-page-DIW6rgJp.js +0 -10
- package/web/assets/pencil-8cobiSSq.js +0 -1
- package/web/assets/plus-BHV2wJr7.js +0 -1
- package/web/assets/popover-Cmmgj-MJ.js +0 -9
- package/web/assets/search-CvlYUkN6.js +0 -2
- package/web/assets/select-1SvaKQsS.js +0 -30
- package/web/assets/selection-popup-ntjycEVh.js +0 -7
- package/web/assets/sparkles-CBhGREdc.js +0 -1
- package/web/assets/stateDiagram-2N3HPSRC-BEw1Mheu.js +0 -1
- package/web/assets/stateDiagram-v2-6OUMAXLB-BHtjl1iD.js +0 -1
- package/web/assets/swimlanesDiagram-G3AALYLV-Z362aroZ.js +0 -8
- package/web/assets/tanstack-CD46mJkU.js +0 -1
- package/web/assets/view-context-D-fh9AbH.js +0 -81
- package/web/assets/viewer-capabilities-CROIaoqh.js +0 -1
- package/web/assets/x-BUeE--I4.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as Po}from"./react-DZzLHL-l.js";function eo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function wn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?d0(e.position):"start"in e||"end"in e?d0(e):"line"in e||"column"in e?Nu(e):""}function Nu(e){return p0(e&&e.line)+":"+p0(e&&e.column)}function d0(e){return Nu(e&&e.start)+"-"+Nu(e&&e.end)}function p0(e){return e&&typeof e=="number"?e:1}class st extends Error{constructor(t,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let i="",a={},s=!1;if(r&&("line"in r&&"column"in r?a={place:r}:"start"in r&&"end"in r?a={place:r}:"type"in r?a={ancestors:[r],place:r.position}:a={...r}),typeof t=="string"?i=t:!a.cause&&t&&(s=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof n=="string"){const l=n.indexOf(":");l===-1?a.ruleId=n:(a.source=n.slice(0,l),a.ruleId=n.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){const l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}const u=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=u?u.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=u?u.line:void 0,this.name=wn(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=s&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}st.prototype.file="";st.prototype.name="";st.prototype.reason="";st.prototype.message="";st.prototype.stack="";st.prototype.column=void 0;st.prototype.line=void 0;st.prototype.ancestors=void 0;st.prototype.cause=void 0;st.prototype.fatal=void 0;st.prototype.place=void 0;st.prototype.ruleId=void 0;st.prototype.source=void 0;const un={basename:cm,dirname:hm,extname:fm,join:dm,sep:"/"};function cm(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');za(e);let r=0,n=-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){r=i+1;break}}else n<0&&(a=!0,n=i+1);return n<0?"":e.slice(r,n)}if(t===e)return"";let s=-1,u=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){r=i+1;break}}else s<0&&(a=!0,s=i+1),u>-1&&(e.codePointAt(i)===t.codePointAt(u--)?u<0&&(n=i):(u=-1,n=s));return r===n?n=s:n<0&&(n=e.length),e.slice(r,n)}function hm(e){if(za(e),e.length===0)return".";let t=-1,r=e.length,n;for(;--r;)if(e.codePointAt(r)===47){if(n){t=r;break}}else n||(n=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function fm(e){za(e);let t=e.length,r=-1,n=0,i=-1,a=0,s;for(;t--;){const u=e.codePointAt(t);if(u===47){if(s){n=t+1;break}continue}r<0&&(s=!0,r=t+1),u===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||r<0||a===0||a===1&&i===r-1&&i===n+1?"":e.slice(i,r)}function dm(...e){let t=-1,r;for(;++t<e.length;)za(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":pm(r)}function pm(e){za(e);const t=e.codePointAt(0)===47;let r=mm(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function mm(e,t){let r="",n=0,i=-1,a=0,s=-1,u,l;for(;++s<=e.length;){if(s<e.length)u=e.codePointAt(s);else{if(u===47)break;u=47}if(u===47){if(!(i===s-1||a===1))if(i!==s-1&&a===2){if(r.length<2||n!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(l=r.lastIndexOf("/"),l!==r.length-1){l<0?(r="",n=0):(r=r.slice(0,l),n=r.length-1-r.lastIndexOf("/")),i=s,a=0;continue}}else if(r.length>0){r="",n=0,i=s,a=0;continue}}t&&(r=r.length>0?r+"/..":"..",n=2)}else r.length>0?r+="/"+e.slice(i+1,s):r=e.slice(i+1,s),n=s-i-1;i=s,a=0}else u===46&&a>-1?a++:a=-1}return r}function za(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const gm={cwd:bm};function bm(){return"/"}function Iu(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function xm(e){if(typeof e=="string")e=new URL(e);else if(!Iu(e)){const t=new 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:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Em(e)}function Em(e){if(e.hostname!==""){const n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const n=t.codePointAt(r+2);if(n===70||n===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Bo=["history","path","basename","stem","extname","dirname"];class Kh{constructor(t){let r;t?Iu(t)?r={path:t}:typeof t=="string"||ym(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":gm.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<Bo.length;){const a=Bo[n];a in r&&r[a]!==void 0&&r[a]!==null&&(this[a]=a==="history"?[...r[a]]:r[a])}let i;for(i in r)Bo.includes(i)||(this[i]=r[i])}get basename(){return typeof this.path=="string"?un.basename(this.path):void 0}set basename(t){Uo(t,"basename"),Fo(t,"basename"),this.path=un.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?un.dirname(this.path):void 0}set dirname(t){m0(this.basename,"dirname"),this.path=un.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?un.extname(this.path):void 0}set extname(t){if(Fo(t,"extname"),m0(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=un.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Iu(t)&&(t=xm(t)),Uo(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?un.basename(this.path,this.extname):void 0}set stem(t){Uo(t,"stem"),Fo(t,"stem"),this.path=un.join(this.dirname||"",t+(this.extname||""))}fail(t,r,n){const i=this.message(t,r,n);throw i.fatal=!0,i}info(t,r,n){const i=this.message(t,r,n);return i.fatal=void 0,i}message(t,r,n){const i=new st(t,r,n);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Fo(e,t){if(e&&e.includes(un.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+un.sep+"`")}function Uo(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function m0(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function ym(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function v_(){}const vm=/[$_\p{ID_Start}]/u,Tm=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,_m=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,Am=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Sm=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Xh={};function Zr(e){return e?vm.test(String.fromCodePoint(e)):!1}function ca(e,t){const n=(t||Xh).jsx?_m:Tm;return e?n.test(String.fromCodePoint(e)):!1}function va(e,t){return((t||Xh).jsx?Sm:Am).test(e)}class wm{constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:t=>this.replacement=t}}replace(t,r,n,i){t&&r&&(n!=null?t[r][n]=i:t[r]=i)}remove(t,r,n){t&&r&&(n!=null?t[r].splice(n,1):delete t[r])}}class km extends wm{constructor(t,r){super(),this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:n=>this.replacement=n},this.enter=t,this.leave=r}visit(t,r,n,i){if(t){if(this.enter){const s=this.should_skip,u=this.should_remove,l=this.replacement;this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,t,r,n,i),this.replacement&&(t=this.replacement,this.replace(r,n,i,t)),this.should_remove&&this.remove(r,n,i);const c=this.should_skip,f=this.should_remove;if(this.should_skip=s,this.should_remove=u,this.replacement=l,c)return t;if(f)return null}let a;for(a in t){const s=t[a];if(s&&typeof s=="object")if(Array.isArray(s)){const u=s;for(let l=0;l<u.length;l+=1){const c=u[l];g0(c)&&(this.visit(c,t,a,l)||l--)}}else g0(s)&&this.visit(s,t,a,null)}if(this.leave){const s=this.replacement,u=this.should_remove;this.replacement=null,this.should_remove=!1,this.leave.call(this.context,t,r,n,i),this.replacement&&(t=this.replacement,this.replace(r,n,i,t)),this.should_remove&&this.remove(r,n,i);const l=this.should_remove;if(this.replacement=s,this.should_remove=u,l)return null}}return t}}function g0(e){return e!==null&&typeof e=="object"&&"type"in e&&typeof e.type=="string"}function Cm(e,{enter:t,leave:r}){return new km(t,r).visit(e,null)}var zo={exports:{}},Ho,b0;function Nm(){return b0||(b0=1,Ho={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}),Ho}var xa={exports:{}},Im=xa.exports,x0;function E0(){return x0||(x0=1,(function(e,t){(function(r,n){n(t)})(Im,(function(r){var n=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239],i=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],a="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",s="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",u={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},l="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",c={5:l,"5module":l+" export import",6:l+" const class extends export import super"},f=/^in(stanceof)?$/,d=new RegExp("["+s+"]"),x=new RegExp("["+s+a+"]");function b(o,h){for(var y=65536,v=0;v<h.length;v+=2){if(y+=h[v],y>o)return!1;if(y+=h[v+1],y>=o)return!0}return!1}function T(o,h){return o<65?o===36:o<91?!0:o<97?o===95:o<123?!0:o<=65535?o>=170&&d.test(String.fromCharCode(o)):h===!1?!1:b(o,i)}function A(o,h){return o<48?o===36:o<58?!0:o<65?!1:o<91?!0:o<97?o===95:o<123?!0:o<=65535?o>=170&&x.test(String.fromCharCode(o)):h===!1?!1:b(o,i)||b(o,n)}var C=function(h,y){y===void 0&&(y={}),this.label=h,this.keyword=y.keyword,this.beforeExpr=!!y.beforeExpr,this.startsExpr=!!y.startsExpr,this.isLoop=!!y.isLoop,this.isAssign=!!y.isAssign,this.prefix=!!y.prefix,this.postfix=!!y.postfix,this.binop=y.binop||null,this.updateContext=null};function S(o,h){return new C(o,{beforeExpr:!0,binop:h})}var I={beforeExpr:!0},D={startsExpr:!0},q={};function O(o,h){return h===void 0&&(h={}),h.keyword=o,q[o]=new C(o,h)}var g={num:new C("num",D),regexp:new C("regexp",D),string:new C("string",D),name:new C("name",D),privateId:new C("privateId",D),eof:new C("eof"),bracketL:new C("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new C("]"),braceL:new C("{",{beforeExpr:!0,startsExpr:!0}),braceR:new C("}"),parenL:new C("(",{beforeExpr:!0,startsExpr:!0}),parenR:new C(")"),comma:new C(",",I),semi:new C(";",I),colon:new C(":",I),dot:new C("."),question:new C("?",I),questionDot:new C("?."),arrow:new C("=>",I),template:new C("template"),invalidTemplate:new C("invalidTemplate"),ellipsis:new C("...",I),backQuote:new C("`",D),dollarBraceL:new C("${",{beforeExpr:!0,startsExpr:!0}),eq:new C("=",{beforeExpr:!0,isAssign:!0}),assign:new C("_=",{beforeExpr:!0,isAssign:!0}),incDec:new C("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new C("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:S("||",1),logicalAND:S("&&",2),bitwiseOR:S("|",3),bitwiseXOR:S("^",4),bitwiseAND:S("&",5),equality:S("==/!=/===/!==",6),relational:S("</>/<=/>=",7),bitShift:S("<</>>/>>>",8),plusMin:new C("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:S("%",10),star:S("*",10),slash:S("/",10),starstar:new C("**",{beforeExpr:!0}),coalesce:S("??",1),_break:O("break"),_case:O("case",I),_catch:O("catch"),_continue:O("continue"),_debugger:O("debugger"),_default:O("default",I),_do:O("do",{isLoop:!0,beforeExpr:!0}),_else:O("else",I),_finally:O("finally"),_for:O("for",{isLoop:!0}),_function:O("function",D),_if:O("if"),_return:O("return",I),_switch:O("switch"),_throw:O("throw",I),_try:O("try"),_var:O("var"),_const:O("const"),_while:O("while",{isLoop:!0}),_with:O("with"),_new:O("new",{beforeExpr:!0,startsExpr:!0}),_this:O("this",D),_super:O("super",D),_class:O("class",D),_extends:O("extends",I),_export:O("export"),_import:O("import",D),_null:O("null",D),_true:O("true",D),_false:O("false",D),_in:O("in",{beforeExpr:!0,binop:7}),_instanceof:O("instanceof",{beforeExpr:!0,binop:7}),_typeof:O("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:O("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:O("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},P=/\r\n?|\n|\u2028|\u2029/,G=new RegExp(P.source,"g");function K(o){return o===10||o===13||o===8232||o===8233}function Y(o,h,y){y===void 0&&(y=o.length);for(var v=h;v<y;v++){var L=o.charCodeAt(v);if(K(L))return v<y-1&&L===13&&o.charCodeAt(v+1)===10?v+2:v+1}return-1}var re=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,ee=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,be=Object.prototype,oe=be.hasOwnProperty,ne=be.toString,Se=Object.hasOwn||(function(o,h){return oe.call(o,h)}),Ie=Array.isArray||(function(o){return ne.call(o)==="[object Array]"}),Oe=Object.create(null);function qe(o){return Oe[o]||(Oe[o]=new RegExp("^(?:"+o.replace(/ /g,"|")+")$"))}function F(o){return o<=65535?String.fromCharCode(o):(o-=65536,String.fromCharCode((o>>10)+55296,(o&1023)+56320))}var We=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Ge=function(h,y){this.line=h,this.column=y};Ge.prototype.offset=function(h){return new Ge(this.line,this.column+h)};var H=function(h,y,v){this.start=y,this.end=v,h.sourceFile!==null&&(this.source=h.sourceFile)};function xt(o,h){for(var y=1,v=0;;){var L=Y(o,v,h);if(L<0)return new Ge(y,h-v);++y,v=L}}var Nt={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},ut=!1;function Ht(o){var h={};for(var y in Nt)h[y]=o&&Se(o,y)?o[y]:Nt[y];if(h.ecmaVersion==="latest"?h.ecmaVersion=1e8:h.ecmaVersion==null?(!ut&&typeof console=="object"&&console.warn&&(ut=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
1
|
+
import{j as Po}from"./react-B9jn2M18.js";var v_=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function eo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function T_(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){var i=!1;try{i=this instanceof n}catch{}return i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}function wn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?d0(e.position):"start"in e||"end"in e?d0(e):"line"in e||"column"in e?Nu(e):""}function Nu(e){return p0(e&&e.line)+":"+p0(e&&e.column)}function d0(e){return Nu(e&&e.start)+"-"+Nu(e&&e.end)}function p0(e){return e&&typeof e=="number"?e:1}class st extends Error{constructor(t,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let i="",a={},s=!1;if(r&&("line"in r&&"column"in r?a={place:r}:"start"in r&&"end"in r?a={place:r}:"type"in r?a={ancestors:[r],place:r.position}:a={...r}),typeof t=="string"?i=t:!a.cause&&t&&(s=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof n=="string"){const l=n.indexOf(":");l===-1?a.ruleId=n:(a.source=n.slice(0,l),a.ruleId=n.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){const l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}const u=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=u?u.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=u?u.line:void 0,this.name=wn(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=s&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}st.prototype.file="";st.prototype.name="";st.prototype.reason="";st.prototype.message="";st.prototype.stack="";st.prototype.column=void 0;st.prototype.line=void 0;st.prototype.ancestors=void 0;st.prototype.cause=void 0;st.prototype.fatal=void 0;st.prototype.place=void 0;st.prototype.ruleId=void 0;st.prototype.source=void 0;const un={basename:cm,dirname:hm,extname:fm,join:dm,sep:"/"};function cm(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');za(e);let r=0,n=-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){r=i+1;break}}else n<0&&(a=!0,n=i+1);return n<0?"":e.slice(r,n)}if(t===e)return"";let s=-1,u=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){r=i+1;break}}else s<0&&(a=!0,s=i+1),u>-1&&(e.codePointAt(i)===t.codePointAt(u--)?u<0&&(n=i):(u=-1,n=s));return r===n?n=s:n<0&&(n=e.length),e.slice(r,n)}function hm(e){if(za(e),e.length===0)return".";let t=-1,r=e.length,n;for(;--r;)if(e.codePointAt(r)===47){if(n){t=r;break}}else n||(n=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function fm(e){za(e);let t=e.length,r=-1,n=0,i=-1,a=0,s;for(;t--;){const u=e.codePointAt(t);if(u===47){if(s){n=t+1;break}continue}r<0&&(s=!0,r=t+1),u===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||r<0||a===0||a===1&&i===r-1&&i===n+1?"":e.slice(i,r)}function dm(...e){let t=-1,r;for(;++t<e.length;)za(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":pm(r)}function pm(e){za(e);const t=e.codePointAt(0)===47;let r=mm(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function mm(e,t){let r="",n=0,i=-1,a=0,s=-1,u,l;for(;++s<=e.length;){if(s<e.length)u=e.codePointAt(s);else{if(u===47)break;u=47}if(u===47){if(!(i===s-1||a===1))if(i!==s-1&&a===2){if(r.length<2||n!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(l=r.lastIndexOf("/"),l!==r.length-1){l<0?(r="",n=0):(r=r.slice(0,l),n=r.length-1-r.lastIndexOf("/")),i=s,a=0;continue}}else if(r.length>0){r="",n=0,i=s,a=0;continue}}t&&(r=r.length>0?r+"/..":"..",n=2)}else r.length>0?r+="/"+e.slice(i+1,s):r=e.slice(i+1,s),n=s-i-1;i=s,a=0}else u===46&&a>-1?a++:a=-1}return r}function za(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const gm={cwd:bm};function bm(){return"/"}function Iu(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function xm(e){if(typeof e=="string")e=new URL(e);else if(!Iu(e)){const t=new 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:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Em(e)}function Em(e){if(e.hostname!==""){const n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const n=t.codePointAt(r+2);if(n===70||n===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Bo=["history","path","basename","stem","extname","dirname"];class Kh{constructor(t){let r;t?Iu(t)?r={path:t}:typeof t=="string"||ym(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":gm.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<Bo.length;){const a=Bo[n];a in r&&r[a]!==void 0&&r[a]!==null&&(this[a]=a==="history"?[...r[a]]:r[a])}let i;for(i in r)Bo.includes(i)||(this[i]=r[i])}get basename(){return typeof this.path=="string"?un.basename(this.path):void 0}set basename(t){Uo(t,"basename"),Fo(t,"basename"),this.path=un.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?un.dirname(this.path):void 0}set dirname(t){m0(this.basename,"dirname"),this.path=un.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?un.extname(this.path):void 0}set extname(t){if(Fo(t,"extname"),m0(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=un.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Iu(t)&&(t=xm(t)),Uo(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?un.basename(this.path,this.extname):void 0}set stem(t){Uo(t,"stem"),Fo(t,"stem"),this.path=un.join(this.dirname||"",t+(this.extname||""))}fail(t,r,n){const i=this.message(t,r,n);throw i.fatal=!0,i}info(t,r,n){const i=this.message(t,r,n);return i.fatal=void 0,i}message(t,r,n){const i=new st(t,r,n);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Fo(e,t){if(e&&e.includes(un.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+un.sep+"`")}function Uo(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function m0(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function ym(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function __(){}const vm=/[$_\p{ID_Start}]/u,Tm=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,_m=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,Am=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Sm=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Xh={};function Zr(e){return e?vm.test(String.fromCodePoint(e)):!1}function ca(e,t){const n=(t||Xh).jsx?_m:Tm;return e?n.test(String.fromCodePoint(e)):!1}function va(e,t){return((t||Xh).jsx?Sm:Am).test(e)}class wm{constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:t=>this.replacement=t}}replace(t,r,n,i){t&&r&&(n!=null?t[r][n]=i:t[r]=i)}remove(t,r,n){t&&r&&(n!=null?t[r].splice(n,1):delete t[r])}}class km extends wm{constructor(t,r){super(),this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:n=>this.replacement=n},this.enter=t,this.leave=r}visit(t,r,n,i){if(t){if(this.enter){const s=this.should_skip,u=this.should_remove,l=this.replacement;this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,t,r,n,i),this.replacement&&(t=this.replacement,this.replace(r,n,i,t)),this.should_remove&&this.remove(r,n,i);const c=this.should_skip,f=this.should_remove;if(this.should_skip=s,this.should_remove=u,this.replacement=l,c)return t;if(f)return null}let a;for(a in t){const s=t[a];if(s&&typeof s=="object")if(Array.isArray(s)){const u=s;for(let l=0;l<u.length;l+=1){const c=u[l];g0(c)&&(this.visit(c,t,a,l)||l--)}}else g0(s)&&this.visit(s,t,a,null)}if(this.leave){const s=this.replacement,u=this.should_remove;this.replacement=null,this.should_remove=!1,this.leave.call(this.context,t,r,n,i),this.replacement&&(t=this.replacement,this.replace(r,n,i,t)),this.should_remove&&this.remove(r,n,i);const l=this.should_remove;if(this.replacement=s,this.should_remove=u,l)return null}}return t}}function g0(e){return e!==null&&typeof e=="object"&&"type"in e&&typeof e.type=="string"}function Cm(e,{enter:t,leave:r}){return new km(t,r).visit(e,null)}var zo={exports:{}},Ho,b0;function Nm(){return b0||(b0=1,Ho={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}),Ho}var xa={exports:{}},Im=xa.exports,x0;function E0(){return x0||(x0=1,(function(e,t){(function(r,n){n(t)})(Im,(function(r){var n=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239],i=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],a="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",s="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",u={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},l="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",c={5:l,"5module":l+" export import",6:l+" const class extends export import super"},f=/^in(stanceof)?$/,d=new RegExp("["+s+"]"),x=new RegExp("["+s+a+"]");function b(o,h){for(var y=65536,v=0;v<h.length;v+=2){if(y+=h[v],y>o)return!1;if(y+=h[v+1],y>=o)return!0}return!1}function T(o,h){return o<65?o===36:o<91?!0:o<97?o===95:o<123?!0:o<=65535?o>=170&&d.test(String.fromCharCode(o)):h===!1?!1:b(o,i)}function A(o,h){return o<48?o===36:o<58?!0:o<65?!1:o<91?!0:o<97?o===95:o<123?!0:o<=65535?o>=170&&x.test(String.fromCharCode(o)):h===!1?!1:b(o,i)||b(o,n)}var C=function(h,y){y===void 0&&(y={}),this.label=h,this.keyword=y.keyword,this.beforeExpr=!!y.beforeExpr,this.startsExpr=!!y.startsExpr,this.isLoop=!!y.isLoop,this.isAssign=!!y.isAssign,this.prefix=!!y.prefix,this.postfix=!!y.postfix,this.binop=y.binop||null,this.updateContext=null};function S(o,h){return new C(o,{beforeExpr:!0,binop:h})}var I={beforeExpr:!0},D={startsExpr:!0},q={};function O(o,h){return h===void 0&&(h={}),h.keyword=o,q[o]=new C(o,h)}var g={num:new C("num",D),regexp:new C("regexp",D),string:new C("string",D),name:new C("name",D),privateId:new C("privateId",D),eof:new C("eof"),bracketL:new C("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new C("]"),braceL:new C("{",{beforeExpr:!0,startsExpr:!0}),braceR:new C("}"),parenL:new C("(",{beforeExpr:!0,startsExpr:!0}),parenR:new C(")"),comma:new C(",",I),semi:new C(";",I),colon:new C(":",I),dot:new C("."),question:new C("?",I),questionDot:new C("?."),arrow:new C("=>",I),template:new C("template"),invalidTemplate:new C("invalidTemplate"),ellipsis:new C("...",I),backQuote:new C("`",D),dollarBraceL:new C("${",{beforeExpr:!0,startsExpr:!0}),eq:new C("=",{beforeExpr:!0,isAssign:!0}),assign:new C("_=",{beforeExpr:!0,isAssign:!0}),incDec:new C("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new C("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:S("||",1),logicalAND:S("&&",2),bitwiseOR:S("|",3),bitwiseXOR:S("^",4),bitwiseAND:S("&",5),equality:S("==/!=/===/!==",6),relational:S("</>/<=/>=",7),bitShift:S("<</>>/>>>",8),plusMin:new C("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:S("%",10),star:S("*",10),slash:S("/",10),starstar:new C("**",{beforeExpr:!0}),coalesce:S("??",1),_break:O("break"),_case:O("case",I),_catch:O("catch"),_continue:O("continue"),_debugger:O("debugger"),_default:O("default",I),_do:O("do",{isLoop:!0,beforeExpr:!0}),_else:O("else",I),_finally:O("finally"),_for:O("for",{isLoop:!0}),_function:O("function",D),_if:O("if"),_return:O("return",I),_switch:O("switch"),_throw:O("throw",I),_try:O("try"),_var:O("var"),_const:O("const"),_while:O("while",{isLoop:!0}),_with:O("with"),_new:O("new",{beforeExpr:!0,startsExpr:!0}),_this:O("this",D),_super:O("super",D),_class:O("class",D),_extends:O("extends",I),_export:O("export"),_import:O("import",D),_null:O("null",D),_true:O("true",D),_false:O("false",D),_in:O("in",{beforeExpr:!0,binop:7}),_instanceof:O("instanceof",{beforeExpr:!0,binop:7}),_typeof:O("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:O("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:O("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},P=/\r\n?|\n|\u2028|\u2029/,G=new RegExp(P.source,"g");function K(o){return o===10||o===13||o===8232||o===8233}function Y(o,h,y){y===void 0&&(y=o.length);for(var v=h;v<y;v++){var L=o.charCodeAt(v);if(K(L))return v<y-1&&L===13&&o.charCodeAt(v+1)===10?v+2:v+1}return-1}var re=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,ee=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,be=Object.prototype,oe=be.hasOwnProperty,ne=be.toString,Se=Object.hasOwn||(function(o,h){return oe.call(o,h)}),Ie=Array.isArray||(function(o){return ne.call(o)==="[object Array]"}),Oe=Object.create(null);function qe(o){return Oe[o]||(Oe[o]=new RegExp("^(?:"+o.replace(/ /g,"|")+")$"))}function F(o){return o<=65535?String.fromCharCode(o):(o-=65536,String.fromCharCode((o>>10)+55296,(o&1023)+56320))}var We=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Ge=function(h,y){this.line=h,this.column=y};Ge.prototype.offset=function(h){return new Ge(this.line,this.column+h)};var H=function(h,y,v){this.start=y,this.end=v,h.sourceFile!==null&&(this.source=h.sourceFile)};function xt(o,h){for(var y=1,v=0;;){var L=Y(o,v,h);if(L<0)return new Ge(y,h-v);++y,v=L}}var Nt={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},ut=!1;function Ht(o){var h={};for(var y in Nt)h[y]=o&&Se(o,y)?o[y]:Nt[y];if(h.ecmaVersion==="latest"?h.ecmaVersion=1e8:h.ecmaVersion==null?(!ut&&typeof console=="object"&&console.warn&&(ut=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
2
2
|
Defaulting to 2020, but this will stop working in the future.`)),h.ecmaVersion=11):h.ecmaVersion>=2015&&(h.ecmaVersion-=2009),h.allowReserved==null&&(h.allowReserved=h.ecmaVersion<5),(!o||o.allowHashBang==null)&&(h.allowHashBang=h.ecmaVersion>=14),Ie(h.onToken)){var v=h.onToken;h.onToken=function(L){return v.push(L)}}return Ie(h.onComment)&&(h.onComment=Vt(h,h.onComment)),h}function Vt(o,h){return function(y,v,L,$,J,ce){var ge={type:y?"Block":"Line",value:v,start:L,end:$};o.locations&&(ge.loc=new H(this,J,ce)),o.ranges&&(ge.range=[L,$]),h.push(ge)}}var yt=1,vt=2,_t=4,Nr=8,er=16,lr=32,cr=64,Qe=128,Pt=256,Bt=512,tr=yt|vt|Pt;function Jt(o,h){return vt|(o?_t:0)|(h?Nr:0)}var Ir=0,jr=1,It=2,et=3,Or=4,Z=5,te=function(h,y,v){this.options=h=Ht(h),this.sourceFile=h.sourceFile,this.keywords=qe(c[h.ecmaVersion>=6?6:h.sourceType==="module"?"5module":5]);var L="";h.allowReserved!==!0&&(L=u[h.ecmaVersion>=6?6:h.ecmaVersion===5?5:3],h.sourceType==="module"&&(L+=" await")),this.reservedWords=qe(L);var $=(L?L+" ":"")+u.strict;this.reservedWordsStrict=qe($),this.reservedWordsStrictBind=qe($+" "+u.strictBind),this.input=String(y),this.containsEsc=!1,v?(this.pos=v,this.lineStart=this.input.lastIndexOf(`
|
|
3
3
|
`,v-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(P).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=g.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=h.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&h.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(yt),this.regexpState=null,this.privateNameStack=[]},N={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};te.prototype.parse=function(){var h=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(h)},N.inFunction.get=function(){return(this.currentVarScope().flags&vt)>0},N.inGenerator.get=function(){return(this.currentVarScope().flags&Nr)>0},N.inAsync.get=function(){return(this.currentVarScope().flags&_t)>0},N.canAwait.get=function(){for(var o=this.scopeStack.length-1;o>=0;o--){var h=this.scopeStack[o],y=h.flags;if(y&(Pt|Bt))return!1;if(y&vt)return(y&_t)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},N.allowSuper.get=function(){var o=this.currentThisScope(),h=o.flags;return(h&cr)>0||this.options.allowSuperOutsideMethod},N.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Qe)>0},N.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},N.allowNewDotTarget.get=function(){for(var o=this.scopeStack.length-1;o>=0;o--){var h=this.scopeStack[o],y=h.flags;if(y&(Pt|Bt)||y&vt&&!(y&er))return!0}return!1},N.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Pt)>0},te.extend=function(){for(var h=[],y=arguments.length;y--;)h[y]=arguments[y];for(var v=this,L=0;L<h.length;L++)v=h[L](v);return v},te.parse=function(h,y){return new this(y,h).parse()},te.parseExpressionAt=function(h,y,v){var L=new this(v,h,y);return L.nextToken(),L.parseExpression()},te.tokenizer=function(h,y){return new this(y,h)},Object.defineProperties(te.prototype,N);var Ce=te.prototype,it=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;Ce.strictDirective=function(o){if(this.options.ecmaVersion<5)return!1;for(;;){ee.lastIndex=o,o+=ee.exec(this.input)[0].length;var h=it.exec(this.input.slice(o));if(!h)return!1;if((h[1]||h[2])==="use strict"){ee.lastIndex=o+h[0].length;var y=ee.exec(this.input),v=y.index+y[0].length,L=this.input.charAt(v);return L===";"||L==="}"||P.test(y[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(L)||L==="!"&&this.input.charAt(v+1)==="=")}o+=h[0].length,ee.lastIndex=o,o+=ee.exec(this.input)[0].length,this.input[o]===";"&&o++}},Ce.eat=function(o){return this.type===o?(this.next(),!0):!1},Ce.isContextual=function(o){return this.type===g.name&&this.value===o&&!this.containsEsc},Ce.eatContextual=function(o){return this.isContextual(o)?(this.next(),!0):!1},Ce.expectContextual=function(o){this.eatContextual(o)||this.unexpected()},Ce.canInsertSemicolon=function(){return this.type===g.eof||this.type===g.braceR||P.test(this.input.slice(this.lastTokEnd,this.start))},Ce.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},Ce.semicolon=function(){!this.eat(g.semi)&&!this.insertSemicolon()&&this.unexpected()},Ce.afterTrailingComma=function(o,h){if(this.type===o)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),h||this.next(),!0},Ce.expect=function(o){this.eat(o)||this.unexpected()},Ce.unexpected=function(o){this.raise(o??this.start,"Unexpected token")};var Ft=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Ce.checkPatternErrors=function(o,h){if(o){o.trailingComma>-1&&this.raiseRecoverable(o.trailingComma,"Comma is not permitted after the rest element");var y=h?o.parenthesizedAssign:o.parenthesizedBind;y>-1&&this.raiseRecoverable(y,h?"Assigning to rvalue":"Parenthesized pattern")}},Ce.checkExpressionErrors=function(o,h){if(!o)return!1;var y=o.shorthandAssign,v=o.doubleProto;if(!h)return y>=0||v>=0;y>=0&&this.raise(y,"Shorthand property assignments are valid only in destructuring patterns"),v>=0&&this.raiseRecoverable(v,"Redefinition of __proto__ property")},Ce.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},Ce.isSimpleAssignTarget=function(o){return o.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(o.expression):o.type==="Identifier"||o.type==="MemberExpression"};var ye=te.prototype;ye.parseTopLevel=function(o){var h=Object.create(null);for(o.body||(o.body=[]);this.type!==g.eof;){var y=this.parseStatement(null,!0,h);o.body.push(y)}if(this.inModule)for(var v=0,L=Object.keys(this.undefinedExports);v<L.length;v+=1){var $=L[v];this.raiseRecoverable(this.undefinedExports[$].start,"Export '"+$+"' is not defined")}return this.adaptDirectivePrologue(o.body),this.next(),o.sourceType=this.options.sourceType,this.finishNode(o,"Program")};var hr={kind:"loop"},an={kind:"switch"};ye.isLet=function(o){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;ee.lastIndex=this.pos;var h=ee.exec(this.input),y=this.pos+h[0].length,v=this.input.charCodeAt(y);if(v===91||v===92)return!0;if(o)return!1;if(v===123||v>55295&&v<56320)return!0;if(T(v,!0)){for(var L=y+1;A(v=this.input.charCodeAt(L),!0);)++L;if(v===92||v>55295&&v<56320)return!0;var $=this.input.slice(y,L);if(!f.test($))return!0}return!1},ye.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;ee.lastIndex=this.pos;var o=ee.exec(this.input),h=this.pos+o[0].length,y;return!P.test(this.input.slice(this.pos,h))&&this.input.slice(h,h+8)==="function"&&(h+8===this.input.length||!(A(y=this.input.charCodeAt(h+8))||y>55295&&y<56320))},ye.isUsingKeyword=function(o,h){if(this.options.ecmaVersion<17||!this.isContextual(o?"await":"using"))return!1;ee.lastIndex=this.pos;var y=ee.exec(this.input),v=this.pos+y[0].length;if(P.test(this.input.slice(this.pos,v)))return!1;if(o){var L=v+5,$;if(this.input.slice(v,L)!=="using"||L===this.input.length||A($=this.input.charCodeAt(L))||$>55295&&$<56320)return!1;ee.lastIndex=L;var J=ee.exec(this.input);if(J&&P.test(this.input.slice(L,L+J[0].length)))return!1}if(h){var ce=v+2,ge;if(this.input.slice(v,ce)==="of"&&(ce===this.input.length||!A(ge=this.input.charCodeAt(ce))&&!(ge>55295&&ge<56320)))return!1}var Fe=this.input.charCodeAt(v);return T(Fe,!0)||Fe===92},ye.isAwaitUsing=function(o){return this.isUsingKeyword(!0,o)},ye.isUsing=function(o){return this.isUsingKeyword(!1,o)},ye.parseStatement=function(o,h,y){var v=this.type,L=this.startNode(),$;switch(this.isLet(o)&&(v=g._var,$="let"),v){case g._break:case g._continue:return this.parseBreakContinueStatement(L,v.keyword);case g._debugger:return this.parseDebuggerStatement(L);case g._do:return this.parseDoStatement(L);case g._for:return this.parseForStatement(L);case g._function:return o&&(this.strict||o!=="if"&&o!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(L,!1,!o);case g._class:return o&&this.unexpected(),this.parseClass(L,!0);case g._if:return this.parseIfStatement(L);case g._return:return this.parseReturnStatement(L);case g._switch:return this.parseSwitchStatement(L);case g._throw:return this.parseThrowStatement(L);case g._try:return this.parseTryStatement(L);case g._const:case g._var:return $=$||this.value,o&&$!=="var"&&this.unexpected(),this.parseVarStatement(L,$);case g._while:return this.parseWhileStatement(L);case g._with:return this.parseWithStatement(L);case g.braceL:return this.parseBlock(!0,L);case g.semi:return this.parseEmptyStatement(L);case g._export:case g._import:if(this.options.ecmaVersion>10&&v===g._import){ee.lastIndex=this.pos;var J=ee.exec(this.input),ce=this.pos+J[0].length,ge=this.input.charCodeAt(ce);if(ge===40||ge===46)return this.parseExpressionStatement(L,this.parseExpression())}return this.options.allowImportExportEverywhere||(h||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),v===g._import?this.parseImport(L):this.parseExport(L,y);default:if(this.isAsyncFunction())return o&&this.unexpected(),this.next(),this.parseFunctionStatement(L,!0,!o);var Fe=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(Fe)return h&&this.options.sourceType==="script"&&this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script`"),Fe==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(L,!1,Fe),this.semicolon(),this.finishNode(L,"VariableDeclaration");var Je=this.value,Tt=this.parseExpression();return v===g.name&&Tt.type==="Identifier"&&this.eat(g.colon)?this.parseLabeledStatement(L,Je,Tt,o):this.parseExpressionStatement(L,Tt)}},ye.parseBreakContinueStatement=function(o,h){var y=h==="break";this.next(),this.eat(g.semi)||this.insertSemicolon()?o.label=null:this.type!==g.name?this.unexpected():(o.label=this.parseIdent(),this.semicolon());for(var v=0;v<this.labels.length;++v){var L=this.labels[v];if((o.label==null||L.name===o.label.name)&&(L.kind!=null&&(y||L.kind==="loop")||o.label&&y))break}return v===this.labels.length&&this.raise(o.start,"Unsyntactic "+h),this.finishNode(o,y?"BreakStatement":"ContinueStatement")},ye.parseDebuggerStatement=function(o){return this.next(),this.semicolon(),this.finishNode(o,"DebuggerStatement")},ye.parseDoStatement=function(o){return this.next(),this.labels.push(hr),o.body=this.parseStatement("do"),this.labels.pop(),this.expect(g._while),o.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(g.semi):this.semicolon(),this.finishNode(o,"DoWhileStatement")},ye.parseForStatement=function(o){this.next();var h=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(hr),this.enterScope(0),this.expect(g.parenL),this.type===g.semi)return h>-1&&this.unexpected(h),this.parseFor(o,null);var y=this.isLet();if(this.type===g._var||this.type===g._const||y){var v=this.startNode(),L=y?"let":this.value;return this.next(),this.parseVar(v,!0,L),this.finishNode(v,"VariableDeclaration"),this.parseForAfterInit(o,v,h)}var $=this.isContextual("let"),J=!1,ce=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(ce){var ge=this.startNode();return this.next(),ce==="await using"&&this.next(),this.parseVar(ge,!0,ce),this.finishNode(ge,"VariableDeclaration"),this.parseForAfterInit(o,ge,h)}var Fe=this.containsEsc,Je=new Ft,Tt=this.start,nr=h>-1?this.parseExprSubscripts(Je,"await"):this.parseExpression(!0,Je);return this.type===g._in||(J=this.options.ecmaVersion>=6&&this.isContextual("of"))?(h>-1?(this.type===g._in&&this.unexpected(h),o.await=!0):J&&this.options.ecmaVersion>=8&&(nr.start===Tt&&!Fe&&nr.type==="Identifier"&&nr.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(o.await=!1)),$&&J&&this.raise(nr.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(nr,!1,Je),this.checkLValPattern(nr),this.parseForIn(o,nr)):(this.checkExpressionErrors(Je,!0),h>-1&&this.unexpected(h),this.parseFor(o,nr))},ye.parseForAfterInit=function(o,h,y){return(this.type===g._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&h.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===g._in?y>-1&&this.unexpected(y):o.await=y>-1),this.parseForIn(o,h)):(y>-1&&this.unexpected(y),this.parseFor(o,h))},ye.parseFunctionStatement=function(o,h,y){return this.next(),this.parseFunction(o,Ut|(y?0:Ur),!1,h)},ye.parseIfStatement=function(o){return this.next(),o.test=this.parseParenExpression(),o.consequent=this.parseStatement("if"),o.alternate=this.eat(g._else)?this.parseStatement("if"):null,this.finishNode(o,"IfStatement")},ye.parseReturnStatement=function(o){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(g.semi)||this.insertSemicolon()?o.argument=null:(o.argument=this.parseExpression(),this.semicolon()),this.finishNode(o,"ReturnStatement")},ye.parseSwitchStatement=function(o){this.next(),o.discriminant=this.parseParenExpression(),o.cases=[],this.expect(g.braceL),this.labels.push(an),this.enterScope(0);for(var h,y=!1;this.type!==g.braceR;)if(this.type===g._case||this.type===g._default){var v=this.type===g._case;h&&this.finishNode(h,"SwitchCase"),o.cases.push(h=this.startNode()),h.consequent=[],this.next(),v?h.test=this.parseExpression():(y&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),y=!0,h.test=null),this.expect(g.colon)}else h||this.unexpected(),h.consequent.push(this.parseStatement(null));return this.exitScope(),h&&this.finishNode(h,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(o,"SwitchStatement")},ye.parseThrowStatement=function(o){return this.next(),P.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),o.argument=this.parseExpression(),this.semicolon(),this.finishNode(o,"ThrowStatement")};var vn=[];ye.parseCatchClauseParam=function(){var o=this.parseBindingAtom(),h=o.type==="Identifier";return this.enterScope(h?lr:0),this.checkLValPattern(o,h?Or:It),this.expect(g.parenR),o},ye.parseTryStatement=function(o){if(this.next(),o.block=this.parseBlock(),o.handler=null,this.type===g._catch){var h=this.startNode();this.next(),this.eat(g.parenL)?h.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),h.param=null,this.enterScope(0)),h.body=this.parseBlock(!1),this.exitScope(),o.handler=this.finishNode(h,"CatchClause")}return o.finalizer=this.eat(g._finally)?this.parseBlock():null,!o.handler&&!o.finalizer&&this.raise(o.start,"Missing catch or finally clause"),this.finishNode(o,"TryStatement")},ye.parseVarStatement=function(o,h,y){return this.next(),this.parseVar(o,!1,h,y),this.semicolon(),this.finishNode(o,"VariableDeclaration")},ye.parseWhileStatement=function(o){return this.next(),o.test=this.parseParenExpression(),this.labels.push(hr),o.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(o,"WhileStatement")},ye.parseWithStatement=function(o){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),o.object=this.parseParenExpression(),o.body=this.parseStatement("with"),this.finishNode(o,"WithStatement")},ye.parseEmptyStatement=function(o){return this.next(),this.finishNode(o,"EmptyStatement")},ye.parseLabeledStatement=function(o,h,y,v){for(var L=0,$=this.labels;L<$.length;L+=1){var J=$[L];J.name===h&&this.raise(y.start,"Label '"+h+"' is already declared")}for(var ce=this.type.isLoop?"loop":this.type===g._switch?"switch":null,ge=this.labels.length-1;ge>=0;ge--){var Fe=this.labels[ge];if(Fe.statementStart===o.start)Fe.statementStart=this.start,Fe.kind=ce;else break}return this.labels.push({name:h,kind:ce,statementStart:this.start}),o.body=this.parseStatement(v?v.indexOf("label")===-1?v+"label":v:"label"),this.labels.pop(),o.label=y,this.finishNode(o,"LabeledStatement")},ye.parseExpressionStatement=function(o,h){return o.expression=h,this.semicolon(),this.finishNode(o,"ExpressionStatement")},ye.parseBlock=function(o,h,y){for(o===void 0&&(o=!0),h===void 0&&(h=this.startNode()),h.body=[],this.expect(g.braceL),o&&this.enterScope(0);this.type!==g.braceR;){var v=this.parseStatement(null);h.body.push(v)}return y&&(this.strict=!1),this.next(),o&&this.exitScope(),this.finishNode(h,"BlockStatement")},ye.parseFor=function(o,h){return o.init=h,this.expect(g.semi),o.test=this.type===g.semi?null:this.parseExpression(),this.expect(g.semi),o.update=this.type===g.parenR?null:this.parseExpression(),this.expect(g.parenR),o.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(o,"ForStatement")},ye.parseForIn=function(o,h){var y=this.type===g._in;return this.next(),h.type==="VariableDeclaration"&&h.declarations[0].init!=null&&(!y||this.options.ecmaVersion<8||this.strict||h.kind!=="var"||h.declarations[0].id.type!=="Identifier")&&this.raise(h.start,(y?"for-in":"for-of")+" loop variable declaration may not have an initializer"),o.left=h,o.right=y?this.parseExpression():this.parseMaybeAssign(),this.expect(g.parenR),o.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(o,y?"ForInStatement":"ForOfStatement")},ye.parseVar=function(o,h,y,v){for(o.declarations=[],o.kind=y;;){var L=this.startNode();if(this.parseVarId(L,y),this.eat(g.eq)?L.init=this.parseMaybeAssign(h):!v&&y==="const"&&!(this.type===g._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!v&&(y==="using"||y==="await using")&&this.options.ecmaVersion>=17&&this.type!==g._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+y+" declaration"):!v&&L.id.type!=="Identifier"&&!(h&&(this.type===g._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):L.init=null,o.declarations.push(this.finishNode(L,"VariableDeclarator")),!this.eat(g.comma))break}return o},ye.parseVarId=function(o,h){o.id=h==="using"||h==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(o.id,h==="var"?jr:It,!1)};var Ut=1,Ur=2,rr=4;ye.parseFunction=function(o,h,y,v,L){this.initFunction(o),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!v)&&(this.type===g.star&&h&Ur&&this.unexpected(),o.generator=this.eat(g.star)),this.options.ecmaVersion>=8&&(o.async=!!v),h&Ut&&(o.id=h&rr&&this.type!==g.name?null:this.parseIdent(),o.id&&!(h&Ur)&&this.checkLValSimple(o.id,this.strict||o.generator||o.async?this.treatFunctionsAsVar?jr:It:et));var $=this.yieldPos,J=this.awaitPos,ce=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Jt(o.async,o.generator)),h&Ut||(o.id=this.type===g.name?this.parseIdent():null),this.parseFunctionParams(o),this.parseFunctionBody(o,y,!1,L),this.yieldPos=$,this.awaitPos=J,this.awaitIdentPos=ce,this.finishNode(o,h&Ut?"FunctionDeclaration":"FunctionExpression")},ye.parseFunctionParams=function(o){this.expect(g.parenL),o.params=this.parseBindingList(g.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},ye.parseClass=function(o,h){this.next();var y=this.strict;this.strict=!0,this.parseClassId(o,h),this.parseClassSuper(o);var v=this.enterClassBody(),L=this.startNode(),$=!1;for(L.body=[],this.expect(g.braceL);this.type!==g.braceR;){var J=this.parseClassElement(o.superClass!==null);J&&(L.body.push(J),J.type==="MethodDefinition"&&J.kind==="constructor"?($&&this.raiseRecoverable(J.start,"Duplicate constructor in the same class"),$=!0):J.key&&J.key.type==="PrivateIdentifier"&&Ja(v,J)&&this.raiseRecoverable(J.key.start,"Identifier '#"+J.key.name+"' has already been declared"))}return this.strict=y,this.next(),o.body=this.finishNode(L,"ClassBody"),this.exitClassBody(),this.finishNode(o,h?"ClassDeclaration":"ClassExpression")},ye.parseClassElement=function(o){if(this.eat(g.semi))return null;var h=this.options.ecmaVersion,y=this.startNode(),v="",L=!1,$=!1,J="method",ce=!1;if(this.eatContextual("static")){if(h>=13&&this.eat(g.braceL))return this.parseClassStaticBlock(y),y;this.isClassElementNameStart()||this.type===g.star?ce=!0:v="static"}if(y.static=ce,!v&&h>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===g.star)&&!this.canInsertSemicolon()?$=!0:v="async"),!v&&(h>=9||!$)&&this.eat(g.star)&&(L=!0),!v&&!$&&!L){var ge=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?J=ge:v=ge)}if(v?(y.computed=!1,y.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),y.key.name=v,this.finishNode(y.key,"Identifier")):this.parseClassElementName(y),h<13||this.type===g.parenL||J!=="method"||L||$){var Fe=!y.static&&ei(y,"constructor"),Je=Fe&&o;Fe&&J!=="method"&&this.raise(y.key.start,"Constructor can't have get/set modifier"),y.kind=Fe?"constructor":J,this.parseClassMethod(y,L,$,Je)}else this.parseClassField(y);return y},ye.isClassElementNameStart=function(){return this.type===g.name||this.type===g.privateId||this.type===g.num||this.type===g.string||this.type===g.bracketL||this.type.keyword},ye.parseClassElementName=function(o){this.type===g.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),o.computed=!1,o.key=this.parsePrivateIdent()):this.parsePropertyName(o)},ye.parseClassMethod=function(o,h,y,v){var L=o.key;o.kind==="constructor"?(h&&this.raise(L.start,"Constructor can't be a generator"),y&&this.raise(L.start,"Constructor can't be an async method")):o.static&&ei(o,"prototype")&&this.raise(L.start,"Classes may not have a static property named prototype");var $=o.value=this.parseMethod(h,y,v);return o.kind==="get"&&$.params.length!==0&&this.raiseRecoverable($.start,"getter should have no params"),o.kind==="set"&&$.params.length!==1&&this.raiseRecoverable($.start,"setter should have exactly one param"),o.kind==="set"&&$.params[0].type==="RestElement"&&this.raiseRecoverable($.params[0].start,"Setter cannot use rest params"),this.finishNode(o,"MethodDefinition")},ye.parseClassField=function(o){return ei(o,"constructor")?this.raise(o.key.start,"Classes can't have a field named 'constructor'"):o.static&&ei(o,"prototype")&&this.raise(o.key.start,"Classes can't have a static field named 'prototype'"),this.eat(g.eq)?(this.enterScope(Bt|cr),o.value=this.parseMaybeAssign(),this.exitScope()):o.value=null,this.semicolon(),this.finishNode(o,"PropertyDefinition")},ye.parseClassStaticBlock=function(o){o.body=[];var h=this.labels;for(this.labels=[],this.enterScope(Pt|cr);this.type!==g.braceR;){var y=this.parseStatement(null);o.body.push(y)}return this.next(),this.exitScope(),this.labels=h,this.finishNode(o,"StaticBlock")},ye.parseClassId=function(o,h){this.type===g.name?(o.id=this.parseIdent(),h&&this.checkLValSimple(o.id,It,!1)):(h===!0&&this.unexpected(),o.id=null)},ye.parseClassSuper=function(o){o.superClass=this.eat(g._extends)?this.parseExprSubscripts(null,!1):null},ye.enterClassBody=function(){var o={declared:Object.create(null),used:[]};return this.privateNameStack.push(o),o.declared},ye.exitClassBody=function(){var o=this.privateNameStack.pop(),h=o.declared,y=o.used;if(this.options.checkPrivateFields)for(var v=this.privateNameStack.length,L=v===0?null:this.privateNameStack[v-1],$=0;$<y.length;++$){var J=y[$];Se(h,J.name)||(L?L.used.push(J):this.raiseRecoverable(J.start,"Private field '#"+J.name+"' must be declared in an enclosing class"))}};function Ja(o,h){var y=h.key.name,v=o[y],L="true";return h.type==="MethodDefinition"&&(h.kind==="get"||h.kind==="set")&&(L=(h.static?"s":"i")+h.kind),v==="iget"&&L==="iset"||v==="iset"&&L==="iget"||v==="sget"&&L==="sset"||v==="sset"&&L==="sget"?(o[y]="true",!1):v?!0:(o[y]=L,!1)}function ei(o,h){var y=o.computed,v=o.key;return!y&&(v.type==="Identifier"&&v.name===h||v.type==="Literal"&&v.value===h)}ye.parseExportAllDeclaration=function(o,h){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(o.exported=this.parseModuleExportName(),this.checkExport(h,o.exported,this.lastTokStart)):o.exported=null),this.expectContextual("from"),this.type!==g.string&&this.unexpected(),o.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(o.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(o,"ExportAllDeclaration")},ye.parseExport=function(o,h){if(this.next(),this.eat(g.star))return this.parseExportAllDeclaration(o,h);if(this.eat(g._default))return this.checkExport(h,"default",this.lastTokStart),o.declaration=this.parseExportDefaultDeclaration(),this.finishNode(o,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())o.declaration=this.parseExportDeclaration(o),o.declaration.type==="VariableDeclaration"?this.checkVariableExport(h,o.declaration.declarations):this.checkExport(h,o.declaration.id,o.declaration.id.start),o.specifiers=[],o.source=null,this.options.ecmaVersion>=16&&(o.attributes=[]);else{if(o.declaration=null,o.specifiers=this.parseExportSpecifiers(h),this.eatContextual("from"))this.type!==g.string&&this.unexpected(),o.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(o.attributes=this.parseWithClause());else{for(var y=0,v=o.specifiers;y<v.length;y+=1){var L=v[y];this.checkUnreserved(L.local),this.checkLocalExport(L.local),L.local.type==="Literal"&&this.raise(L.local.start,"A string literal cannot be used as an exported binding without `from`.")}o.source=null,this.options.ecmaVersion>=16&&(o.attributes=[])}this.semicolon()}return this.finishNode(o,"ExportNamedDeclaration")},ye.parseExportDeclaration=function(o){return this.parseStatement(null)},ye.parseExportDefaultDeclaration=function(){var o;if(this.type===g._function||(o=this.isAsyncFunction())){var h=this.startNode();return this.next(),o&&this.next(),this.parseFunction(h,Ut|rr,!1,o)}else if(this.type===g._class){var y=this.startNode();return this.parseClass(y,"nullableID")}else{var v=this.parseMaybeAssign();return this.semicolon(),v}},ye.checkExport=function(o,h,y){o&&(typeof h!="string"&&(h=h.type==="Identifier"?h.name:h.value),Se(o,h)&&this.raiseRecoverable(y,"Duplicate export '"+h+"'"),o[h]=!0)},ye.checkPatternExport=function(o,h){var y=h.type;if(y==="Identifier")this.checkExport(o,h,h.start);else if(y==="ObjectPattern")for(var v=0,L=h.properties;v<L.length;v+=1){var $=L[v];this.checkPatternExport(o,$)}else if(y==="ArrayPattern")for(var J=0,ce=h.elements;J<ce.length;J+=1){var ge=ce[J];ge&&this.checkPatternExport(o,ge)}else y==="Property"?this.checkPatternExport(o,h.value):y==="AssignmentPattern"?this.checkPatternExport(o,h.left):y==="RestElement"&&this.checkPatternExport(o,h.argument)},ye.checkVariableExport=function(o,h){if(o)for(var y=0,v=h;y<v.length;y+=1){var L=v[y];this.checkPatternExport(o,L.id)}},ye.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},ye.parseExportSpecifier=function(o){var h=this.startNode();return h.local=this.parseModuleExportName(),h.exported=this.eatContextual("as")?this.parseModuleExportName():h.local,this.checkExport(o,h.exported,h.exported.start),this.finishNode(h,"ExportSpecifier")},ye.parseExportSpecifiers=function(o){var h=[],y=!0;for(this.expect(g.braceL);!this.eat(g.braceR);){if(y)y=!1;else if(this.expect(g.comma),this.afterTrailingComma(g.braceR))break;h.push(this.parseExportSpecifier(o))}return h},ye.parseImport=function(o){return this.next(),this.type===g.string?(o.specifiers=vn,o.source=this.parseExprAtom()):(o.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),o.source=this.type===g.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(o.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(o,"ImportDeclaration")},ye.parseImportSpecifier=function(){var o=this.startNode();return o.imported=this.parseModuleExportName(),this.eatContextual("as")?o.local=this.parseIdent():(this.checkUnreserved(o.imported),o.local=o.imported),this.checkLValSimple(o.local,It),this.finishNode(o,"ImportSpecifier")},ye.parseImportDefaultSpecifier=function(){var o=this.startNode();return o.local=this.parseIdent(),this.checkLValSimple(o.local,It),this.finishNode(o,"ImportDefaultSpecifier")},ye.parseImportNamespaceSpecifier=function(){var o=this.startNode();return this.next(),this.expectContextual("as"),o.local=this.parseIdent(),this.checkLValSimple(o.local,It),this.finishNode(o,"ImportNamespaceSpecifier")},ye.parseImportSpecifiers=function(){var o=[],h=!0;if(this.type===g.name&&(o.push(this.parseImportDefaultSpecifier()),!this.eat(g.comma)))return o;if(this.type===g.star)return o.push(this.parseImportNamespaceSpecifier()),o;for(this.expect(g.braceL);!this.eat(g.braceR);){if(h)h=!1;else if(this.expect(g.comma),this.afterTrailingComma(g.braceR))break;o.push(this.parseImportSpecifier())}return o},ye.parseWithClause=function(){var o=[];if(!this.eat(g._with))return o;this.expect(g.braceL);for(var h={},y=!0;!this.eat(g.braceR);){if(y)y=!1;else if(this.expect(g.comma),this.afterTrailingComma(g.braceR))break;var v=this.parseImportAttribute(),L=v.key.type==="Identifier"?v.key.name:v.key.value;Se(h,L)&&this.raiseRecoverable(v.key.start,"Duplicate attribute key '"+L+"'"),h[L]=!0,o.push(v)}return o},ye.parseImportAttribute=function(){var o=this.startNode();return o.key=this.type===g.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(g.colon),this.type!==g.string&&this.unexpected(),o.value=this.parseExprAtom(),this.finishNode(o,"ImportAttribute")},ye.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===g.string){var o=this.parseLiteral(this.value);return We.test(o.value)&&this.raise(o.start,"An export name cannot include a lone surrogate."),o}return this.parseIdent(!0)},ye.adaptDirectivePrologue=function(o){for(var h=0;h<o.length&&this.isDirectiveCandidate(o[h]);++h)o[h].directive=o[h].expression.raw.slice(1,-1)},ye.isDirectiveCandidate=function(o){return this.options.ecmaVersion>=5&&o.type==="ExpressionStatement"&&o.expression.type==="Literal"&&typeof o.expression.value=="string"&&(this.input[o.start]==='"'||this.input[o.start]==="'")};var vr=te.prototype;vr.toAssignable=function(o,h,y){if(this.options.ecmaVersion>=6&&o)switch(o.type){case"Identifier":this.inAsync&&o.name==="await"&&this.raise(o.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":o.type="ObjectPattern",y&&this.checkPatternErrors(y,!0);for(var v=0,L=o.properties;v<L.length;v+=1){var $=L[v];this.toAssignable($,h),$.type==="RestElement"&&($.argument.type==="ArrayPattern"||$.argument.type==="ObjectPattern")&&this.raise($.argument.start,"Unexpected token")}break;case"Property":o.kind!=="init"&&this.raise(o.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(o.value,h);break;case"ArrayExpression":o.type="ArrayPattern",y&&this.checkPatternErrors(y,!0),this.toAssignableList(o.elements,h);break;case"SpreadElement":o.type="RestElement",this.toAssignable(o.argument,h),o.argument.type==="AssignmentPattern"&&this.raise(o.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":o.operator!=="="&&this.raise(o.left.end,"Only '=' operator can be used for specifying default value."),o.type="AssignmentPattern",delete o.operator,this.toAssignable(o.left,h);break;case"ParenthesizedExpression":this.toAssignable(o.expression,h,y);break;case"ChainExpression":this.raiseRecoverable(o.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!h)break;default:this.raise(o.start,"Assigning to rvalue")}else y&&this.checkPatternErrors(y,!0);return o},vr.toAssignableList=function(o,h){for(var y=o.length,v=0;v<y;v++){var L=o[v];L&&this.toAssignable(L,h)}if(y){var $=o[y-1];this.options.ecmaVersion===6&&h&&$&&$.type==="RestElement"&&$.argument.type!=="Identifier"&&this.unexpected($.argument.start)}return o},vr.parseSpread=function(o){var h=this.startNode();return this.next(),h.argument=this.parseMaybeAssign(!1,o),this.finishNode(h,"SpreadElement")},vr.parseRestBinding=function(){var o=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==g.name&&this.unexpected(),o.argument=this.parseBindingAtom(),this.finishNode(o,"RestElement")},vr.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case g.bracketL:var o=this.startNode();return this.next(),o.elements=this.parseBindingList(g.bracketR,!0,!0),this.finishNode(o,"ArrayPattern");case g.braceL:return this.parseObj(!0)}return this.parseIdent()},vr.parseBindingList=function(o,h,y,v){for(var L=[],$=!0;!this.eat(o);)if($?$=!1:this.expect(g.comma),h&&this.type===g.comma)L.push(null);else{if(y&&this.afterTrailingComma(o))break;if(this.type===g.ellipsis){var J=this.parseRestBinding();this.parseBindingListItem(J),L.push(J),this.type===g.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(o);break}else L.push(this.parseAssignableListItem(v))}return L},vr.parseAssignableListItem=function(o){var h=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(h),h},vr.parseBindingListItem=function(o){return o},vr.parseMaybeDefault=function(o,h,y){if(y=y||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(g.eq))return y;var v=this.startNodeAt(o,h);return v.left=y,v.right=this.parseMaybeAssign(),this.finishNode(v,"AssignmentPattern")},vr.checkLValSimple=function(o,h,y){h===void 0&&(h=Ir);var v=h!==Ir;switch(o.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(o.name)&&this.raiseRecoverable(o.start,(v?"Binding ":"Assigning to ")+o.name+" in strict mode"),v&&(h===It&&o.name==="let"&&this.raiseRecoverable(o.start,"let is disallowed as a lexically bound name"),y&&(Se(y,o.name)&&this.raiseRecoverable(o.start,"Argument name clash"),y[o.name]=!0),h!==Z&&this.declareName(o.name,h,o.start));break;case"ChainExpression":this.raiseRecoverable(o.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":v&&this.raiseRecoverable(o.start,"Binding member expression");break;case"ParenthesizedExpression":return v&&this.raiseRecoverable(o.start,"Binding parenthesized expression"),this.checkLValSimple(o.expression,h,y);default:this.raise(o.start,(v?"Binding":"Assigning to")+" rvalue")}},vr.checkLValPattern=function(o,h,y){switch(h===void 0&&(h=Ir),o.type){case"ObjectPattern":for(var v=0,L=o.properties;v<L.length;v+=1){var $=L[v];this.checkLValInnerPattern($,h,y)}break;case"ArrayPattern":for(var J=0,ce=o.elements;J<ce.length;J+=1){var ge=ce[J];ge&&this.checkLValInnerPattern(ge,h,y)}break;default:this.checkLValSimple(o,h,y)}},vr.checkLValInnerPattern=function(o,h,y){switch(h===void 0&&(h=Ir),o.type){case"Property":this.checkLValInnerPattern(o.value,h,y);break;case"AssignmentPattern":this.checkLValPattern(o.left,h,y);break;case"RestElement":this.checkLValPattern(o.argument,h,y);break;default:this.checkLValPattern(o,h,y)}};var fr=function(h,y,v,L,$){this.token=h,this.isExpr=!!y,this.preserveSpace=!!v,this.override=L,this.generator=!!$},ot={b_stat:new fr("{",!1),b_expr:new fr("{",!0),b_tmpl:new fr("${",!1),p_stat:new fr("(",!1),p_expr:new fr("(",!0),q_tmpl:new fr("`",!0,!0,function(o){return o.tryReadTemplateToken()}),f_stat:new fr("function",!1),f_expr:new fr("function",!0),f_expr_gen:new fr("function",!0,!1,null,!0),f_gen:new fr("function",!1,!1,null,!0)},V=te.prototype;V.initialContext=function(){return[ot.b_stat]},V.curContext=function(){return this.context[this.context.length-1]},V.braceIsBlock=function(o){var h=this.curContext();return h===ot.f_expr||h===ot.f_stat?!0:o===g.colon&&(h===ot.b_stat||h===ot.b_expr)?!h.isExpr:o===g._return||o===g.name&&this.exprAllowed?P.test(this.input.slice(this.lastTokEnd,this.start)):o===g._else||o===g.semi||o===g.eof||o===g.parenR||o===g.arrow?!0:o===g.braceL?h===ot.b_stat:o===g._var||o===g._const||o===g.name?!1:!this.exprAllowed},V.inGeneratorContext=function(){for(var o=this.context.length-1;o>=1;o--){var h=this.context[o];if(h.token==="function")return h.generator}return!1},V.updateContext=function(o){var h,y=this.type;y.keyword&&o===g.dot?this.exprAllowed=!1:(h=y.updateContext)?h.call(this,o):this.exprAllowed=y.beforeExpr},V.overrideContext=function(o){this.curContext()!==o&&(this.context[this.context.length-1]=o)},g.parenR.updateContext=g.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var o=this.context.pop();o===ot.b_stat&&this.curContext().token==="function"&&(o=this.context.pop()),this.exprAllowed=!o.isExpr},g.braceL.updateContext=function(o){this.context.push(this.braceIsBlock(o)?ot.b_stat:ot.b_expr),this.exprAllowed=!0},g.dollarBraceL.updateContext=function(){this.context.push(ot.b_tmpl),this.exprAllowed=!0},g.parenL.updateContext=function(o){var h=o===g._if||o===g._for||o===g._with||o===g._while;this.context.push(h?ot.p_stat:ot.p_expr),this.exprAllowed=!0},g.incDec.updateContext=function(){},g._function.updateContext=g._class.updateContext=function(o){o.beforeExpr&&o!==g._else&&!(o===g.semi&&this.curContext()!==ot.p_stat)&&!(o===g._return&&P.test(this.input.slice(this.lastTokEnd,this.start)))&&!((o===g.colon||o===g.braceL)&&this.curContext()===ot.b_stat)?this.context.push(ot.f_expr):this.context.push(ot.f_stat),this.exprAllowed=!1},g.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0},g.backQuote.updateContext=function(){this.curContext()===ot.q_tmpl?this.context.pop():this.context.push(ot.q_tmpl),this.exprAllowed=!1},g.star.updateContext=function(o){if(o===g._function){var h=this.context.length-1;this.context[h]===ot.f_expr?this.context[h]=ot.f_expr_gen:this.context[h]=ot.f_gen}this.exprAllowed=!0},g.name.updateContext=function(o){var h=!1;this.options.ecmaVersion>=6&&o!==g.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(h=!0),this.exprAllowed=h};var j=te.prototype;j.checkPropClash=function(o,h,y){if(!(this.options.ecmaVersion>=9&&o.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(o.computed||o.method||o.shorthand))){var v=o.key,L;switch(v.type){case"Identifier":L=v.name;break;case"Literal":L=String(v.value);break;default:return}var $=o.kind;if(this.options.ecmaVersion>=6){L==="__proto__"&&$==="init"&&(h.proto&&(y?y.doubleProto<0&&(y.doubleProto=v.start):this.raiseRecoverable(v.start,"Redefinition of __proto__ property")),h.proto=!0);return}L="$"+L;var J=h[L];if(J){var ce;$==="init"?ce=this.strict&&J.init||J.get||J.set:ce=J.init||J[$],ce&&this.raiseRecoverable(v.start,"Redefinition of property")}else J=h[L]={init:!1,get:!1,set:!1};J[$]=!0}},j.parseExpression=function(o,h){var y=this.start,v=this.startLoc,L=this.parseMaybeAssign(o,h);if(this.type===g.comma){var $=this.startNodeAt(y,v);for($.expressions=[L];this.eat(g.comma);)$.expressions.push(this.parseMaybeAssign(o,h));return this.finishNode($,"SequenceExpression")}return L},j.parseMaybeAssign=function(o,h,y){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(o);this.exprAllowed=!1}var v=!1,L=-1,$=-1,J=-1;h?(L=h.parenthesizedAssign,$=h.trailingComma,J=h.doubleProto,h.parenthesizedAssign=h.trailingComma=-1):(h=new Ft,v=!0);var ce=this.start,ge=this.startLoc;(this.type===g.parenL||this.type===g.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=o==="await");var Fe=this.parseMaybeConditional(o,h);if(y&&(Fe=y.call(this,Fe,ce,ge)),this.type.isAssign){var Je=this.startNodeAt(ce,ge);return Je.operator=this.value,this.type===g.eq&&(Fe=this.toAssignable(Fe,!1,h)),v||(h.parenthesizedAssign=h.trailingComma=h.doubleProto=-1),h.shorthandAssign>=Fe.start&&(h.shorthandAssign=-1),this.type===g.eq?this.checkLValPattern(Fe):this.checkLValSimple(Fe),Je.left=Fe,this.next(),Je.right=this.parseMaybeAssign(o),J>-1&&(h.doubleProto=J),this.finishNode(Je,"AssignmentExpression")}else v&&this.checkExpressionErrors(h,!0);return L>-1&&(h.parenthesizedAssign=L),$>-1&&(h.trailingComma=$),Fe},j.parseMaybeConditional=function(o,h){var y=this.start,v=this.startLoc,L=this.parseExprOps(o,h);if(this.checkExpressionErrors(h))return L;if(this.eat(g.question)){var $=this.startNodeAt(y,v);return $.test=L,$.consequent=this.parseMaybeAssign(),this.expect(g.colon),$.alternate=this.parseMaybeAssign(o),this.finishNode($,"ConditionalExpression")}return L},j.parseExprOps=function(o,h){var y=this.start,v=this.startLoc,L=this.parseMaybeUnary(h,!1,!1,o);return this.checkExpressionErrors(h)||L.start===y&&L.type==="ArrowFunctionExpression"?L:this.parseExprOp(L,y,v,-1,o)},j.parseExprOp=function(o,h,y,v,L){var $=this.type.binop;if($!=null&&(!L||this.type!==g._in)&&$>v){var J=this.type===g.logicalOR||this.type===g.logicalAND,ce=this.type===g.coalesce;ce&&($=g.logicalAND.binop);var ge=this.value;this.next();var Fe=this.start,Je=this.startLoc,Tt=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,L),Fe,Je,$,L),nr=this.buildBinary(h,y,o,Tt,ge,J||ce);return(J&&this.type===g.coalesce||ce&&(this.type===g.logicalOR||this.type===g.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(nr,h,y,v,L)}return o},j.buildBinary=function(o,h,y,v,L,$){v.type==="PrivateIdentifier"&&this.raise(v.start,"Private identifier can only be left side of binary expression");var J=this.startNodeAt(o,h);return J.left=y,J.operator=L,J.right=v,this.finishNode(J,$?"LogicalExpression":"BinaryExpression")},j.parseMaybeUnary=function(o,h,y,v){var L=this.start,$=this.startLoc,J;if(this.isContextual("await")&&this.canAwait)J=this.parseAwait(v),h=!0;else if(this.type.prefix){var ce=this.startNode(),ge=this.type===g.incDec;ce.operator=this.value,ce.prefix=!0,this.next(),ce.argument=this.parseMaybeUnary(null,!0,ge,v),this.checkExpressionErrors(o,!0),ge?this.checkLValSimple(ce.argument):this.strict&&ce.operator==="delete"&&xe(ce.argument)?this.raiseRecoverable(ce.start,"Deleting local variable in strict mode"):ce.operator==="delete"&&Pe(ce.argument)?this.raiseRecoverable(ce.start,"Private fields can not be deleted"):h=!0,J=this.finishNode(ce,ge?"UpdateExpression":"UnaryExpression")}else if(!h&&this.type===g.privateId)(v||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),J=this.parsePrivateIdent(),this.type!==g._in&&this.unexpected();else{if(J=this.parseExprSubscripts(o,v),this.checkExpressionErrors(o))return J;for(;this.type.postfix&&!this.canInsertSemicolon();){var Fe=this.startNodeAt(L,$);Fe.operator=this.value,Fe.prefix=!1,Fe.argument=J,this.checkLValSimple(J),this.next(),J=this.finishNode(Fe,"UpdateExpression")}}if(!y&&this.eat(g.starstar))if(h)this.unexpected(this.lastTokStart);else return this.buildBinary(L,$,J,this.parseMaybeUnary(null,!1,!1,v),"**",!1);else return J};function xe(o){return o.type==="Identifier"||o.type==="ParenthesizedExpression"&&xe(o.expression)}function Pe(o){return o.type==="MemberExpression"&&o.property.type==="PrivateIdentifier"||o.type==="ChainExpression"&&Pe(o.expression)||o.type==="ParenthesizedExpression"&&Pe(o.expression)}j.parseExprSubscripts=function(o,h){var y=this.start,v=this.startLoc,L=this.parseExprAtom(o,h);if(L.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return L;var $=this.parseSubscripts(L,y,v,!1,h);return o&&$.type==="MemberExpression"&&(o.parenthesizedAssign>=$.start&&(o.parenthesizedAssign=-1),o.parenthesizedBind>=$.start&&(o.parenthesizedBind=-1),o.trailingComma>=$.start&&(o.trailingComma=-1)),$},j.parseSubscripts=function(o,h,y,v,L){for(var $=this.options.ecmaVersion>=8&&o.type==="Identifier"&&o.name==="async"&&this.lastTokEnd===o.end&&!this.canInsertSemicolon()&&o.end-o.start===5&&this.potentialArrowAt===o.start,J=!1;;){var ce=this.parseSubscript(o,h,y,v,$,J,L);if(ce.optional&&(J=!0),ce===o||ce.type==="ArrowFunctionExpression"){if(J){var ge=this.startNodeAt(h,y);ge.expression=ce,ce=this.finishNode(ge,"ChainExpression")}return ce}o=ce}},j.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(g.arrow)},j.parseSubscriptAsyncArrow=function(o,h,y,v){return this.parseArrowExpression(this.startNodeAt(o,h),y,!0,v)},j.parseSubscript=function(o,h,y,v,L,$,J){var ce=this.options.ecmaVersion>=11,ge=ce&&this.eat(g.questionDot);v&&ge&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var Fe=this.eat(g.bracketL);if(Fe||ge&&this.type!==g.parenL&&this.type!==g.backQuote||this.eat(g.dot)){var Je=this.startNodeAt(h,y);Je.object=o,Fe?(Je.property=this.parseExpression(),this.expect(g.bracketR)):this.type===g.privateId&&o.type!=="Super"?Je.property=this.parsePrivateIdent():Je.property=this.parseIdent(this.options.allowReserved!=="never"),Je.computed=!!Fe,ce&&(Je.optional=ge),o=this.finishNode(Je,"MemberExpression")}else if(!v&&this.eat(g.parenL)){var Tt=new Ft,nr=this.yieldPos,la=this.awaitPos,Si=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var us=this.parseExprList(g.parenR,this.options.ecmaVersion>=8,!1,Tt);if(L&&!ge&&this.shouldParseAsyncArrow())return this.checkPatternErrors(Tt,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=nr,this.awaitPos=la,this.awaitIdentPos=Si,this.parseSubscriptAsyncArrow(h,y,us,J);this.checkExpressionErrors(Tt,!0),this.yieldPos=nr||this.yieldPos,this.awaitPos=la||this.awaitPos,this.awaitIdentPos=Si||this.awaitIdentPos;var wi=this.startNodeAt(h,y);wi.callee=o,wi.arguments=us,ce&&(wi.optional=ge),o=this.finishNode(wi,"CallExpression")}else if(this.type===g.backQuote){(ge||$)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var ki=this.startNodeAt(h,y);ki.tag=o,ki.quasi=this.parseTemplate({isTagged:!0}),o=this.finishNode(ki,"TaggedTemplateExpression")}return o},j.parseExprAtom=function(o,h,y){this.type===g.slash&&this.readRegexp();var v,L=this.potentialArrowAt===this.start;switch(this.type){case g._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),v=this.startNode(),this.next(),this.type===g.parenL&&!this.allowDirectSuper&&this.raise(v.start,"super() call outside constructor of a subclass"),this.type!==g.dot&&this.type!==g.bracketL&&this.type!==g.parenL&&this.unexpected(),this.finishNode(v,"Super");case g._this:return v=this.startNode(),this.next(),this.finishNode(v,"ThisExpression");case g.name:var $=this.start,J=this.startLoc,ce=this.containsEsc,ge=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!ce&&ge.name==="async"&&!this.canInsertSemicolon()&&this.eat(g._function))return this.overrideContext(ot.f_expr),this.parseFunction(this.startNodeAt($,J),0,!1,!0,h);if(L&&!this.canInsertSemicolon()){if(this.eat(g.arrow))return this.parseArrowExpression(this.startNodeAt($,J),[ge],!1,h);if(this.options.ecmaVersion>=8&&ge.name==="async"&&this.type===g.name&&!ce&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return ge=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(g.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt($,J),[ge],!0,h)}return ge;case g.regexp:var Fe=this.value;return v=this.parseLiteral(Fe.value),v.regex={pattern:Fe.pattern,flags:Fe.flags},v;case g.num:case g.string:return this.parseLiteral(this.value);case g._null:case g._true:case g._false:return v=this.startNode(),v.value=this.type===g._null?null:this.type===g._true,v.raw=this.type.keyword,this.next(),this.finishNode(v,"Literal");case g.parenL:var Je=this.start,Tt=this.parseParenAndDistinguishExpression(L,h);return o&&(o.parenthesizedAssign<0&&!this.isSimpleAssignTarget(Tt)&&(o.parenthesizedAssign=Je),o.parenthesizedBind<0&&(o.parenthesizedBind=Je)),Tt;case g.bracketL:return v=this.startNode(),this.next(),v.elements=this.parseExprList(g.bracketR,!0,!0,o),this.finishNode(v,"ArrayExpression");case g.braceL:return this.overrideContext(ot.b_expr),this.parseObj(!1,o);case g._function:return v=this.startNode(),this.next(),this.parseFunction(v,0);case g._class:return this.parseClass(this.startNode(),!1);case g._new:return this.parseNew();case g.backQuote:return this.parseTemplate();case g._import:return this.options.ecmaVersion>=11?this.parseExprImport(y):this.unexpected();default:return this.parseExprAtomDefault()}},j.parseExprAtomDefault=function(){this.unexpected()},j.parseExprImport=function(o){var h=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===g.parenL&&!o)return this.parseDynamicImport(h);if(this.type===g.dot){var y=this.startNodeAt(h.start,h.loc&&h.loc.start);return y.name="import",h.meta=this.finishNode(y,"Identifier"),this.parseImportMeta(h)}else this.unexpected()},j.parseDynamicImport=function(o){if(this.next(),o.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(g.parenR)?o.options=null:(this.expect(g.comma),this.afterTrailingComma(g.parenR)?o.options=null:(o.options=this.parseMaybeAssign(),this.eat(g.parenR)||(this.expect(g.comma),this.afterTrailingComma(g.parenR)||this.unexpected())));else if(!this.eat(g.parenR)){var h=this.start;this.eat(g.comma)&&this.eat(g.parenR)?this.raiseRecoverable(h,"Trailing comma is not allowed in import()"):this.unexpected(h)}return this.finishNode(o,"ImportExpression")},j.parseImportMeta=function(o){this.next();var h=this.containsEsc;return o.property=this.parseIdent(!0),o.property.name!=="meta"&&this.raiseRecoverable(o.property.start,"The only valid meta property for import is 'import.meta'"),h&&this.raiseRecoverable(o.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(o.start,"Cannot use 'import.meta' outside a module"),this.finishNode(o,"MetaProperty")},j.parseLiteral=function(o){var h=this.startNode();return h.value=o,h.raw=this.input.slice(this.start,this.end),h.raw.charCodeAt(h.raw.length-1)===110&&(h.bigint=h.value!=null?h.value.toString():h.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(h,"Literal")},j.parseParenExpression=function(){this.expect(g.parenL);var o=this.parseExpression();return this.expect(g.parenR),o},j.shouldParseArrow=function(o){return!this.canInsertSemicolon()},j.parseParenAndDistinguishExpression=function(o,h){var y=this.start,v=this.startLoc,L,$=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var J=this.start,ce=this.startLoc,ge=[],Fe=!0,Je=!1,Tt=new Ft,nr=this.yieldPos,la=this.awaitPos,Si;for(this.yieldPos=0,this.awaitPos=0;this.type!==g.parenR;)if(Fe?Fe=!1:this.expect(g.comma),$&&this.afterTrailingComma(g.parenR,!0)){Je=!0;break}else if(this.type===g.ellipsis){Si=this.start,ge.push(this.parseParenItem(this.parseRestBinding())),this.type===g.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else ge.push(this.parseMaybeAssign(!1,Tt,this.parseParenItem));var us=this.lastTokEnd,wi=this.lastTokEndLoc;if(this.expect(g.parenR),o&&this.shouldParseArrow(ge)&&this.eat(g.arrow))return this.checkPatternErrors(Tt,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=nr,this.awaitPos=la,this.parseParenArrowList(y,v,ge,h);(!ge.length||Je)&&this.unexpected(this.lastTokStart),Si&&this.unexpected(Si),this.checkExpressionErrors(Tt,!0),this.yieldPos=nr||this.yieldPos,this.awaitPos=la||this.awaitPos,ge.length>1?(L=this.startNodeAt(J,ce),L.expressions=ge,this.finishNodeAt(L,"SequenceExpression",us,wi)):L=ge[0]}else L=this.parseParenExpression();if(this.options.preserveParens){var ki=this.startNodeAt(y,v);return ki.expression=L,this.finishNode(ki,"ParenthesizedExpression")}else return L},j.parseParenItem=function(o){return o},j.parseParenArrowList=function(o,h,y,v){return this.parseArrowExpression(this.startNodeAt(o,h),y,!1,v)};var Ot=[];j.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var o=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===g.dot){var h=this.startNodeAt(o.start,o.loc&&o.loc.start);h.name="new",o.meta=this.finishNode(h,"Identifier"),this.next();var y=this.containsEsc;return o.property=this.parseIdent(!0),o.property.name!=="target"&&this.raiseRecoverable(o.property.start,"The only valid meta property for new is 'new.target'"),y&&this.raiseRecoverable(o.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(o.start,"'new.target' can only be used in functions and class static block"),this.finishNode(o,"MetaProperty")}var v=this.start,L=this.startLoc;return o.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),v,L,!0,!1),this.eat(g.parenL)?o.arguments=this.parseExprList(g.parenR,this.options.ecmaVersion>=8,!1):o.arguments=Ot,this.finishNode(o,"NewExpression")},j.parseTemplateElement=function(o){var h=o.isTagged,y=this.startNode();return this.type===g.invalidTemplate?(h||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),y.value={raw:this.value.replace(/\r\n?/g,`
|
|
4
4
|
`),cooked:null}):y.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
@@ -10,7 +10,7 @@ Defaulting to 2020, but this will stop working in the future.`)),h.ecmaVersion=1
|
|
|
10
10
|
`:`\r
|
|
11
11
|
`):P=String.fromCharCode(g),this.options.locations&&(++this.curLine,this.lineStart=this.pos),P}jsx_readString(O){let g="",P=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let G=this.input.charCodeAt(this.pos);if(G===O)break;G===38?(g+=this.input.slice(P,this.pos),g+=this.jsx_readEntity(),P=this.pos):I(G)?(g+=this.input.slice(P,this.pos),g+=this.jsx_readNewLine(!1),P=this.pos):++this.pos}return g+=this.input.slice(P,this.pos++),this.finishToken(x.string,g)}jsx_readEntity(){let O="",g=0,P,G=this.input[this.pos];G!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let K=++this.pos;for(;this.pos<this.input.length&&g++<10;){if(G=this.input[this.pos++],G===";"){O[0]==="#"?O[1]==="x"?(O=O.substr(2),r.test(O)&&(P=String.fromCharCode(parseInt(O,16)))):(O=O.substr(1),n.test(O)&&(P=String.fromCharCode(parseInt(O,10)))):P=t[O];break}O+=G}return P||(this.pos=K,"&")}jsx_readWord(){let O,g=this.pos;do O=this.input.charCodeAt(++this.pos);while(q(O)||O===45);return this.finishToken(b.jsxName,this.input.slice(g,this.pos))}jsx_parseIdentifier(){let O=this.startNode();return this.type===b.jsxName?O.name=this.value:this.type.keyword?O.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(O,"JSXIdentifier")}jsx_parseNamespacedName(){let O=this.start,g=this.startLoc,P=this.jsx_parseIdentifier();if(!l.allowNamespaces||!this.eat(x.colon))return P;var G=this.startNodeAt(O,g);return G.namespace=P,G.name=this.jsx_parseIdentifier(),this.finishNode(G,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===b.jsxTagEnd)return"";let O=this.start,g=this.startLoc,P=this.jsx_parseNamespacedName();for(this.type===x.dot&&P.type==="JSXNamespacedName"&&!l.allowNamespacedObjects&&this.unexpected();this.eat(x.dot);){let G=this.startNodeAt(O,g);G.object=P,G.property=this.jsx_parseIdentifier(),P=this.finishNode(G,"JSXMemberExpression")}return P}jsx_parseAttributeValue(){switch(this.type){case x.braceL:let O=this.jsx_parseExpressionContainer();return O.expression.type==="JSXEmptyExpression"&&this.raise(O.start,"JSX attributes must only be assigned a non-empty expression"),O;case b.jsxTagStart:case x.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let O=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(O,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let O=this.startNode();return this.next(),O.expression=this.type===x.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(x.braceR),this.finishNode(O,"JSXExpressionContainer")}jsx_parseAttribute(){let O=this.startNode();return this.eat(x.braceL)?(this.expect(x.ellipsis),O.argument=this.parseMaybeAssign(),this.expect(x.braceR),this.finishNode(O,"JSXSpreadAttribute")):(O.name=this.jsx_parseNamespacedName(),O.value=this.eat(x.eq)?this.jsx_parseAttributeValue():null,this.finishNode(O,"JSXAttribute"))}jsx_parseOpeningElementAt(O,g){let P=this.startNodeAt(O,g);P.attributes=[];let G=this.jsx_parseElementName();for(G&&(P.name=G);this.type!==x.slash&&this.type!==b.jsxTagEnd;)P.attributes.push(this.jsx_parseAttribute());return P.selfClosing=this.eat(x.slash),this.expect(b.jsxTagEnd),this.finishNode(P,G?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(O,g){let P=this.startNodeAt(O,g),G=this.jsx_parseElementName();return G&&(P.name=G),this.expect(b.jsxTagEnd),this.finishNode(P,G?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(O,g){let P=this.startNodeAt(O,g),G=[],K=this.jsx_parseOpeningElementAt(O,g),Y=null;if(!K.selfClosing){e:for(;;)switch(this.type){case b.jsxTagStart:if(O=this.start,g=this.startLoc,this.next(),this.eat(x.slash)){Y=this.jsx_parseClosingElementAt(O,g);break e}G.push(this.jsx_parseElementAt(O,g));break;case b.jsxText:G.push(this.parseExprAtom());break;case x.braceL:G.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}s(Y.name)!==s(K.name)&&this.raise(Y.start,"Expected corresponding JSX closing tag for <"+s(K.name)+">")}let re=K.name?"Element":"Fragment";return P["opening"+re]=K,P["closing"+re]=Y,P.children=G,this.type===x.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(P,"JSX"+re)}jsx_parseText(){let O=this.parseLiteral(this.value);return O.type="JSXText",O}jsx_parseElement(){let O=this.start,g=this.startLoc;return this.next(),this.jsx_parseElementAt(O,g)}parseExprAtom(O){return this.type===b.jsxText?this.jsx_parseText():this.type===b.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(O)}readToken(O){let g=this.curContext();if(g===S)return this.jsx_readToken();if(g===A||g===C){if(D(O))return this.jsx_readWord();if(O==62)return++this.pos,this.finishToken(b.jsxTagEnd);if((O===34||O===39)&&g==A)return this.jsx_readString(O)}return O===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(b.jsxTagStart)):super.readToken(O)}updateContext(O){if(this.type==x.braceL){var g=this.curContext();g==A?this.context.push(T.b_expr):g==S?this.context.push(T.b_tmpl):super.updateContext(O),this.exprAllowed=!0}else if(this.type===x.slash&&O===b.jsxTagStart)this.context.length-=2,this.context.push(C),this.exprAllowed=!1;else return super.updateContext(O)}}}})(zo)),zo.exports}var Rm=Om();const Lm=eo(Rm);function Mm(e,t){const r={type:"Block",value:e.value};t.inherit(e,r),t.comments.push(r);const n={type:"JSXEmptyExpression",comments:[Object.assign({},r,{leading:!1,trailing:!0})]};t.patch(e,n);const i={type:"JSXExpressionContainer",expression:n};return t.patch(e,i),i}function v0(e){const t=[],r=String(e||"");let n=r.indexOf(","),i=0,a=!1;for(;!a;){n===-1&&(n=r.length,a=!0);const s=r.slice(i,n).trim();(s||!a)&&t.push(s),i=n+1,n=r.indexOf(",",i)}return t}function ml(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}class Ha{constructor(t,r,n){this.normal=r,this.property=t,n&&(this.space=n)}}Ha.prototype.normal={};Ha.prototype.property={};Ha.prototype.space=void 0;function jh(e,t){const r={},n={};for(const i of e)Object.assign(r,i.property),Object.assign(n,i.normal);return new Ha(r,n,t)}function Oa(e){return e.toLowerCase()}class Cr{constructor(t,r){this.attribute=r,this.property=t}}Cr.prototype.attribute="";Cr.prototype.booleanish=!1;Cr.prototype.boolean=!1;Cr.prototype.commaOrSpaceSeparated=!1;Cr.prototype.commaSeparated=!1;Cr.prototype.defined=!1;Cr.prototype.mustUseProperty=!1;Cr.prototype.number=!1;Cr.prototype.overloadedBoolean=!1;Cr.prototype.property="";Cr.prototype.spaceSeparated=!1;Cr.prototype.space=void 0;let Dm=0;const He=hi(),Gt=hi(),Ou=hi(),fe=hi(),gt=hi(),ui=hi(),Lr=hi();function hi(){return 2**++Dm}const Ru=Object.freeze(Object.defineProperty({__proto__:null,boolean:He,booleanish:Gt,commaOrSpaceSeparated:Lr,commaSeparated:ui,number:fe,overloadedBoolean:Ou,spaceSeparated:gt},Symbol.toStringTag,{value:"Module"})),Vo=Object.keys(Ru);class gl extends Cr{constructor(t,r,n,i){let a=-1;if(super(t,r),T0(this,"space",i),typeof n=="number")for(;++a<Vo.length;){const s=Vo[a];T0(this,Vo[a],(n&Ru[s])===Ru[s])}}}gl.prototype.defined=!0;function T0(e,t,r){r&&(e[t]=r)}function Vi(e){const t={},r={};for(const[n,i]of Object.entries(e.properties)){const a=new gl(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(a.mustUseProperty=!0),t[n]=a,r[Oa(n)]=n,r[Oa(a.attribute)]=n}return new Ha(t,r,e.space)}const Jh=Vi({properties:{ariaActiveDescendant:null,ariaAtomic:Gt,ariaAutoComplete:null,ariaBusy:Gt,ariaChecked:Gt,ariaColCount:fe,ariaColIndex:fe,ariaColSpan:fe,ariaControls:gt,ariaCurrent:null,ariaDescribedBy:gt,ariaDetails:null,ariaDisabled:Gt,ariaDropEffect:gt,ariaErrorMessage:null,ariaExpanded:Gt,ariaFlowTo:gt,ariaGrabbed:Gt,ariaHasPopup:null,ariaHidden:Gt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:gt,ariaLevel:fe,ariaLive:null,ariaModal:Gt,ariaMultiLine:Gt,ariaMultiSelectable:Gt,ariaOrientation:null,ariaOwns:gt,ariaPlaceholder:null,ariaPosInSet:fe,ariaPressed:Gt,ariaReadOnly:Gt,ariaRelevant:null,ariaRequired:Gt,ariaRoleDescription:gt,ariaRowCount:fe,ariaRowIndex:fe,ariaRowSpan:fe,ariaSelected:Gt,ariaSetSize:fe,ariaSort:null,ariaValueMax:fe,ariaValueMin:fe,ariaValueNow:fe,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Qh(e,t){return t in e?e[t]:t}function Zh(e,t){return Qh(e,t.toLowerCase())}const Pm=Vi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ui,acceptCharset:gt,accessKey:gt,action:null,allow:null,allowFullScreen:He,allowPaymentRequest:He,allowUserMedia:He,alpha:He,alt:null,as:null,async:He,autoCapitalize:null,autoComplete:gt,autoFocus:He,autoPlay:He,blocking:gt,capture:null,charSet:null,checked:He,cite:null,className:gt,closedBy:null,colorSpace:null,cols:fe,colSpan:fe,command:null,commandFor:null,content:null,contentEditable:Gt,controls:He,controlsList:gt,coords:fe|ui,crossOrigin:null,data:null,dateTime:null,decoding:null,default:He,defer:He,dir:null,dirName:null,disabled:He,download:Ou,draggable:Gt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:He,formTarget:null,headers:gt,height:fe,hidden:Ou,high:fe,href:null,hrefLang:null,htmlFor:gt,httpEquiv:gt,id:null,imageSizes:null,imageSrcSet:null,inert:He,inputMode:null,integrity:null,is:null,isMap:He,itemId:null,itemProp:gt,itemRef:gt,itemScope:He,itemType:gt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:He,low:fe,manifest:null,max:null,maxLength:fe,media:null,method:null,min:null,minLength:fe,multiple:He,muted:He,name:null,nonce:null,noModule:He,noValidate:He,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:He,optimum:fe,pattern:null,ping:gt,placeholder:null,playsInline:He,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:He,referrerPolicy:null,rel:gt,required:He,reversed:He,rows:fe,rowSpan:fe,sandbox:gt,scope:null,scoped:He,seamless:He,selected:He,shadowRootClonable:He,shadowRootCustomElementRegistry:He,shadowRootDelegatesFocus:He,shadowRootMode:null,shadowRootSerializable:He,shape:null,size:fe,sizes:null,slot:null,span:fe,spellCheck:Gt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:fe,step:null,style:null,tabIndex:fe,target:null,title:null,translate:null,type:null,typeMustMatch:He,useMap:null,value:Gt,width:fe,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:gt,axis:null,background:null,bgColor:null,border:fe,borderColor:null,bottomMargin:fe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:He,declare:He,event:null,face:null,frame:null,frameBorder:null,hSpace:fe,leftMargin:fe,link:null,longDesc:null,lowSrc:null,marginHeight:fe,marginWidth:fe,noResize:He,noHref:He,noShade:He,noWrap:He,object:null,profile:null,prompt:null,rev:null,rightMargin:fe,rules:null,scheme:null,scrolling:Gt,standby:null,summary:null,text:null,topMargin:fe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:fe,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:He,disablePictureInPicture:He,disableRemotePlayback:He,exportParts:ui,part:gt,prefix:null,property:null,results:fe,security:null,unselectable:null},space:"html",transform:Zh}),Bm=Vi({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Lr,accentHeight:fe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:fe,amplitude:fe,arabicForm:null,ascent:fe,attributeName:null,attributeType:null,azimuth:fe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:fe,by:null,calcMode:null,capHeight:fe,className:gt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:fe,diffuseConstant:fe,direction:null,display:null,dur:null,divisor:fe,dominantBaseline:null,download:He,dx:null,dy:null,edgeMode:null,editable:null,elevation:fe,enableBackground:null,end:null,event:null,exponent:fe,externalResourcesRequired:null,fill:null,fillOpacity:fe,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ui,g2:ui,glyphName:ui,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:fe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:fe,horizOriginX:fe,horizOriginY:fe,id:null,ideographic:fe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:fe,k:fe,k1:fe,k2:fe,k3:fe,k4:fe,kernelMatrix:Lr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:fe,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:fe,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:fe,overlineThickness:fe,paintOrder:null,panose1:null,path:null,pathLength:fe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:gt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:fe,pointsAtY:fe,pointsAtZ:fe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Lr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Lr,rev:Lr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Lr,requiredFeatures:Lr,requiredFonts:Lr,requiredFormats:Lr,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:fe,specularExponent:fe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:fe,strikethroughThickness:fe,string:null,stroke:null,strokeDashArray:Lr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:fe,strokeOpacity:fe,strokeWidth:null,style:null,surfaceScale:fe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Lr,tabIndex:fe,tableValues:null,target:null,targetX:fe,targetY:fe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Lr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:fe,underlineThickness:fe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:fe,values:null,vAlphabetic:fe,vMathematical:fe,vectorEffect:null,vHanging:fe,vIdeographic:fe,version:null,vertAdvY:fe,vertOriginX:fe,vertOriginY:fe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:fe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Qh}),ef=Vi({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),tf=Vi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Zh}),rf=Vi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),nf={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Fm=/[A-Z]/g,_0=/-[a-z]/g,Um=/^data[-\w.:]+$/i;function Va(e,t){const r=Oa(t);let n=t,i=Cr;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&Um.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(_0,Hm);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!_0.test(a)){let s=a.replace(Fm,zm);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=gl}return new i(n,t)}function zm(e){return"-"+e.toLowerCase()}function Hm(e){return e.charAt(1).toUpperCase()}const qi=jh([Jh,Pm,ef,tf,rf],"html"),rn=jh([Jh,Bm,ef,tf,rf],"svg");function A0(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function bl(e){return e.join(" ").trim()}var Ci={},qo,S0;function Vm(){if(S0)return qo;S0=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,u=/^\s+|\s+$/g,l=`
|
|
12
12
|
`,c="/",f="*",d="",x="comment",b="declaration";function T(C,S){if(typeof C!="string")throw new TypeError("First argument must be a string");if(!C)return[];S=S||{};var I=1,D=1;function q(oe){var ne=oe.match(t);ne&&(I+=ne.length);var Se=oe.lastIndexOf(l);D=~Se?oe.length-Se:D+oe.length}function O(){var oe={line:I,column:D};return function(ne){return ne.position=new g(oe),K(),ne}}function g(oe){this.start=oe,this.end={line:I,column:D},this.source=S.source}g.prototype.content=C;function P(oe){var ne=new Error(S.source+":"+I+":"+D+": "+oe);if(ne.reason=oe,ne.filename=S.source,ne.line=I,ne.column=D,ne.source=C,!S.silent)throw ne}function G(oe){var ne=oe.exec(C);if(ne){var Se=ne[0];return q(Se),C=C.slice(Se.length),ne}}function K(){G(r)}function Y(oe){var ne;for(oe=oe||[];ne=re();)ne!==!1&&oe.push(ne);return oe}function re(){var oe=O();if(!(c!=C.charAt(0)||f!=C.charAt(1))){for(var ne=2;d!=C.charAt(ne)&&(f!=C.charAt(ne)||c!=C.charAt(ne+1));)++ne;if(ne+=2,d===C.charAt(ne-1))return P("End of comment missing");var Se=C.slice(2,ne-2);return D+=2,q(Se),C=C.slice(ne),D+=2,oe({type:x,comment:Se})}}function ee(){var oe=O(),ne=G(n);if(ne){if(re(),!G(i))return P("property missing ':'");var Se=G(a),Ie=oe({type:b,property:A(ne[0].replace(e,d)),value:Se?A(Se[0].replace(e,d)):d});return G(s),Ie}}function be(){var oe=[];Y(oe);for(var ne;ne=ee();)ne!==!1&&(oe.push(ne),Y(oe));return oe}return K(),be()}function A(C){return C?C.replace(u,d):d}return qo=T,qo}var w0;function qm(){if(w0)return Ci;w0=1;var e=Ci&&Ci.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Ci,"__esModule",{value:!0}),Ci.default=r;const t=e(Vm());function r(n,i){let a=null;if(!n||typeof n!="string")return a;const s=(0,t.default)(n),u=typeof i=="function";return s.forEach(l=>{if(l.type!=="declaration")return;const{property:c,value:f}=l;u?i(c,f,l):f&&(a=a||{},a[c]=f)}),a}return Ci}var ha={},k0;function Gm(){if(k0)return ha;k0=1,Object.defineProperty(ha,"__esModule",{value:!0}),ha.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,n=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,a=function(c){return!c||r.test(c)||e.test(c)},s=function(c,f){return f.toUpperCase()},u=function(c,f){return"".concat(f,"-")},l=function(c,f){return f===void 0&&(f={}),a(c)?c:(c=c.toLowerCase(),f.reactCompat?c=c.replace(i,u):c=c.replace(n,u),c.replace(t,s))};return ha.camelCase=l,ha}var fa,C0;function Ym(){if(C0)return fa;C0=1;var e=fa&&fa.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(qm()),r=Gm();function n(i,a){var s={};return!i||typeof i!="string"||(0,t.default)(i,function(u,l){u&&l&&(s[(0,r.camelCase)(u,a)]=l)}),s}return n.default=n,fa=n,fa}var Wm=Ym();const af=eo(Wm),Lu={}.hasOwnProperty,$m=/[A-Z]/g,Km=new Set(["td","th"]);function Xm(e,t){const r=t.schema;let n=r;const i=e.properties||{};r.space==="html"&&e.tagName.toLowerCase()==="svg"&&(n=rn,t.schema=n);const a=t.all(e),s=[];let u,l,c;for(u in i)if(Lu.call(i,u)){let d=i[u];const x=Va(n,u);let b;if(d==null||d===!1||typeof d=="number"&&Number.isNaN(d)||!d&&x.boolean)continue;if(u=t.elementAttributeNameCase==="react"&&x.space?nf[x.property]||x.property:x.attribute,Array.isArray(d)&&(d=x.commaSeparated?ml(d):bl(d)),u==="style"){let T=typeof d=="object"?d:jm(String(d),e.tagName);t.stylePropertyNameCase==="css"&&(T=Jm(T));const A=[];let C;for(C in T)Lu.call(T,C)&&A.push({type:"Property",method:!1,shorthand:!1,computed:!1,key:va(C)?{type:"Identifier",name:C}:{type:"Literal",value:C},value:{type:"Literal",value:String(T[C])},kind:"init"});c=A,b={type:"JSXExpressionContainer",expression:{type:"ObjectExpression",properties:A}}}else if(d===!0)b=null;else if(t.tableCellAlignToStyle&&Km.has(e.tagName)&&u==="align"){l=String(d);continue}else b={type:"Literal",value:String(d)};va(u,{jsx:!0})?s.push({type:"JSXAttribute",name:{type:"JSXIdentifier",name:u},value:b}):s.push({type:"JSXSpreadAttribute",argument:{type:"ObjectExpression",properties:[{type:"Property",method:!1,shorthand:!1,computed:!1,key:{type:"Literal",value:String(u)},value:b||{type:"Literal",value:!0},kind:"init"}]}})}if(l!==void 0){c||(c=[],s.push({type:"JSXAttribute",name:{type:"JSXIdentifier",name:"style"},value:{type:"JSXExpressionContainer",expression:{type:"ObjectExpression",properties:c}}}));const d=t.stylePropertyNameCase==="css"?sf("textAlign"):"textAlign";c.push({type:"Property",method:!1,shorthand:!1,computed:!1,key:va(d)?{type:"Identifier",name:d}:{type:"Literal",value:d},value:{type:"Literal",value:l},kind:"init"})}t.schema=r;const f={type:"JSXElement",openingElement:{type:"JSXOpeningElement",attributes:s,name:t.createJsxElementName(e.tagName),selfClosing:a.length===0},closingElement:a.length>0?{type:"JSXClosingElement",name:t.createJsxElementName(e.tagName)}:null,children:a};return t.inherit(e,f),f}function jm(e,t){try{return af(e,{reactCompat:!0})}catch(r){const n=r;throw new Error("Could not parse `style` attribute on `"+t+"`",{cause:n})}}function Jm(e){const t={};let r;for(r in e)Lu.call(e,r)&&(t[sf(r)]=e[r]);return t}function sf(e){let t=e.replace($m,Qm);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Qm(e){return"-"+e.toLowerCase()}const Zm={}.hasOwnProperty,eg=[];function Ls(e,t){const r=t?[...t].sort(xl):eg;r.length>0&&of(e,{comments:r,index:0})}function of(e,t){if(t.index===t.comments.length)return;const r=[],n=[];let i;for(i in e)if(Zm.call(e,i)){const s=e[i];if(s&&typeof s=="object"&&i!=="comments")if(Array.isArray(s)){let u=-1;for(;++u<s.length;)s[u]&&typeof s[u].type=="string"&&r.push(s[u])}else typeof s.type=="string"&&r.push(s)}r.sort(xl),n.push(...N0(t,e,!1,{leading:!0,trailing:!1}));let a=-1;for(;++a<r.length;)of(r[a],t);n.push(...N0(t,e,!0,{leading:!1,trailing:r.length>0})),n.length>0&&(e.comments=n)}function N0(e,t,r,n){const i=[];for(;e.comments[e.index]&&xl(e.comments[e.index],t,r)<1;)i.push(Object.assign({},e.comments[e.index++],n));return i}function xl(e,t,r){const n=r?"end":"start";return e.range&&t.range?e.range[0]-t.range[r?1:0]:e.loc&&e.loc.start&&t.loc&&t.loc[n]?e.loc.start.line-t.loc[n].line||e.loc.start.column-t.loc[n].column:"start"in e&&n in t?e.start-t[n]:Number.NaN}function I0(e,t){const r=e.data&&e.data.estree,n=r&&r.comments||[];let i;r&&(t.comments.push(...n),Ls(r,r.comments),i=r.body[0]&&r.body[0].type==="ExpressionStatement"&&r.body[0].expression||void 0),i||(i={type:"JSXEmptyExpression"},t.patch(e,i));const a={type:"JSXExpressionContainer",expression:i};return t.inherit(e,a),a}function O0(e,t){const r=t.schema;let n=r;const i=e.attributes||[];let a=-1;e.name&&r.space==="html"&&e.name.toLowerCase()==="svg"&&(n=rn,t.schema=n);const s=t.all(e),u=[];for(;++a<i.length;){const c=i[a],f=c.value;let d;if(c.type==="mdxJsxAttribute"){if(f==null)d=null;else if(typeof f=="object"){const b=f.data&&f.data.estree,T=b&&b.comments||[];let A;b&&(t.comments.push(...T),Ls(b,b.comments),A=b.body[0]&&b.body[0].type==="ExpressionStatement"&&b.body[0].expression||void 0),d={type:"JSXExpressionContainer",expression:A||{type:"JSXEmptyExpression"}},t.inherit(f,d)}else d={type:"Literal",value:String(f)};const x={type:"JSXAttribute",name:t.createJsxAttributeName(c.name),value:d};t.inherit(c,x),u.push(x)}else{const x=c.data&&c.data.estree,b=x&&x.comments||[];let T;x&&(t.comments.push(...b),Ls(x,x.comments),T=x.body[0]&&x.body[0].type==="ExpressionStatement"&&x.body[0].expression&&x.body[0].expression.type==="ObjectExpression"&&x.body[0].expression.properties&&x.body[0].expression.properties[0]&&x.body[0].expression.properties[0].type==="SpreadElement"&&x.body[0].expression.properties[0].argument||void 0);const A={type:"JSXSpreadAttribute",argument:T||{type:"ObjectExpression",properties:[]}};t.inherit(c,A),u.push(A)}}t.schema=r;const l=e.name?{type:"JSXElement",openingElement:{type:"JSXOpeningElement",attributes:u,name:t.createJsxElementName(e.name),selfClosing:s.length===0},closingElement:s.length>0?{type:"JSXClosingElement",name:t.createJsxElementName(e.name)}:null,children:s}:{type:"JSXFragment",openingFragment:{type:"JSXOpeningFragment"},closingFragment:{type:"JSXClosingFragment"},children:s};return t.inherit(e,l),l}function tg(e,t){const r=e.data&&e.data.estree,n=r&&r.comments||[];r&&(t.comments.push(...n),Ls(r,n),t.esm.push(...r.body))}const rg=/[ \t\n\f\r]/g;function uf(e){return typeof e=="object"?e.type==="text"?R0(e.value):!1:R0(e)}function R0(e){return e.replace(rg,"")===""}function ng(e,t){const r=t.all(e),n=[];let i=-1,a;for(;++i<r.length;){const u=r[i];u.type==="JSXExpressionContainer"&&u.expression.type==="Literal"&&uf(String(u.expression.value))?a&&a.push(u):(a&&n.push(...a),n.push(u),a=[])}const s={type:"JSXFragment",openingFragment:{type:"JSXOpeningFragment"},closingFragment:{type:"JSXClosingFragment"},children:n};return t.inherit(e,s),s}function ig(e,t){const r=String(e.value||"");if(r){const n={type:"Literal",value:r};t.inherit(e,n);const i={type:"JSXExpressionContainer",expression:n};return t.patch(e,i),i}}const ag={comment:Mm,doctype:sg,element:Xm,mdxFlowExpression:I0,mdxJsxFlowElement:O0,mdxJsxTextElement:O0,mdxTextExpression:I0,mdxjsEsm:tg,root:ng,text:ig};function sg(){}const to=lf("end"),pn=lf("start");function lf(e){return t;function t(r){const n=r&&r.position&&r.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 El(e){const t=pn(e),r=to(e);if(t&&r)return{start:t,end:r}}const L0={}.hasOwnProperty;function yl(e,t){const r=t||{};function n(i,...a){let s=n.invalid;const u=n.handlers;if(i&&L0.call(i,e)){const l=String(i[e]);s=L0.call(u,l)?u[l]:n.unknown}if(s)return s.call(this,i,...a)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}const og={}.hasOwnProperty,ug=new Set(["table","tbody","thead","tfoot","tr"]);function lg(e){const t=yl("type",{invalid:cg,unknown:hg,handlers:{...ag,...e.handlers}});return{elementAttributeNameCase:e.elementAttributeNameCase||"react",schema:e.space==="svg"?rn:qi,stylePropertyNameCase:e.stylePropertyNameCase||"dom",tableCellAlignToStyle:e.tableCellAlignToStyle!==!1,comments:[],esm:[],all:fg,createJsxAttributeName:pg,createJsxElementName:mg,handle:r,inherit:dg,patch:cf};function r(n){return t(n,this)}}function cg(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function hg(e){throw new Error("Cannot handle unknown node `"+e.type+"`")}function fg(e){const t=e.children||[];let r=-1;const n=[],i=this.schema.space==="html"&&e.type==="element"&&ug.has(e.tagName.toLowerCase());for(;++r<t.length;){const a=t[r];if(i&&a.type==="text"&&a.value===`
|
|
13
|
-
`)continue;const s=this.handle(a);Array.isArray(s)?n.push(...s):s&&n.push(s)}return n}function dg(e,t){const r=e.data;let n,i;if(cf(e,t),r){for(i in r)og.call(r,i)&&i!=="estree"&&(n||(n={}),n[i]=r[i]);n&&(t.data=n)}}function cf(e,t){const r=El(e);r&&r.start.offset!==void 0&&r.end.offset!==void 0&&(t.start=r.start.offset,t.end=r.end.offset,t.loc={start:{line:r.start.line,column:r.start.column-1},end:{line:r.end.line,column:r.end.column-1}},t.range=[r.start.offset,r.end.offset])}function pg(e){const t=hf(e);if(t.type==="JSXMemberExpression")throw new Error("Member expressions in attribute names are not supported");return t}function mg(e){return hf(e)}function hf(e){if(e.includes(".")){const t=e.split(".");let r=t.shift(),n={type:"JSXIdentifier",name:r};for(;r=t.shift();)n={type:"JSXMemberExpression",object:n,property:{type:"JSXIdentifier",name:r}};return n}if(e.includes(":")){const t=e.split(":");return{type:"JSXNamespacedName",namespace:{type:"JSXIdentifier",name:t[0]},name:{type:"JSXIdentifier",name:t[1]}}}return{type:"JSXIdentifier",name:e}}function gg(e,t){const r=lg(t||{});let n=r.handle(e);const i=r.esm;if(n){n.type!=="JSXFragment"&&n.type!=="JSXElement"&&(n={type:"JSXFragment",openingFragment:{type:"JSXOpeningFragment"},closingFragment:{type:"JSXClosingFragment"},children:[n]},r.patch(e,n));const s={type:"ExpressionStatement",expression:n};r.patch(e,s),i.push(s)}const a={type:"Program",body:i,sourceType:"module",comments:r.comments};return r.patch(e,a),a}function T_(e){return function(t){return gg(t,e)}}function bg(){return{enter:{mdxFlowExpression:Eg,mdxTextExpression:yg},exit:{mdxFlowExpression:M0,mdxFlowExpressionChunk:D0,mdxTextExpression:M0,mdxTextExpressionChunk:D0}}}function xg(){return{handlers:{mdxFlowExpression:P0,mdxTextExpression:P0},unsafe:[{character:"{",inConstruct:["phrasing"]},{atBreak:!0,character:"{"}]}}function Eg(e){this.enter({type:"mdxFlowExpression",value:""},e),this.buffer()}function yg(e){this.enter({type:"mdxTextExpression",value:""},e),this.buffer()}function M0(e){const t=this.resume(),r=e.estree,n=this.stack[this.stack.length-1];n.type==="mdxFlowExpression"||n.type,this.exit(e),n.value=t,r&&(n.data={estree:r})}function D0(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function P0(e,t,r){const n=e.value||"";return"{"+r.indentLines(n,function(a,s,u){return(s===0||u?"":" ")+a})+"}"}function Ms(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,i=r.indexOf(t);for(;i!==-1;)n++,i=r.indexOf(t,i+t.length);return n}const vg=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],B0={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function ff(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=48&&t<=57}function Tg(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function _g(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function F0(e){return _g(e)||ff(e)}const U0=document.createElement("i");function Ra(e){const t="&"+e+";";U0.innerHTML=t;const r=U0.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}const Ag=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function Sg(e,t){const r=t||{},n=typeof r.additional=="string"?r.additional.charCodeAt(0):r.additional,i=[];let a=0,s=-1,u="",l,c;r.position&&("start"in r.position||"indent"in r.position?(c=r.position.indent,l=r.position.start):l=r.position);let f=(l?l.line:0)||1,d=(l?l.column:0)||1,x=T(),b;for(a--;++a<=e.length;)if(b===10&&(d=(c?c[s]:0)||1),b=e.charCodeAt(a),b===38){const S=e.charCodeAt(a+1);if(S===9||S===10||S===12||S===32||S===38||S===60||Number.isNaN(S)||n&&S===n){u+=String.fromCharCode(b),d++;continue}const I=a+1;let D=I,q=I,O;if(S===35){q=++D;const be=e.charCodeAt(q);be===88||be===120?(O="hexadecimal",q=++D):O="decimal"}else O="named";let g="",P="",G="";const K=O==="named"?F0:O==="decimal"?ff:Tg;for(q--;++q<=e.length;){const be=e.charCodeAt(q);if(!K(be))break;G+=String.fromCharCode(be),O==="named"&&vg.includes(G)&&(g=G,P=Ra(G))}let Y=e.charCodeAt(q)===59;if(Y){q++;const be=O==="named"?Ra(G):!1;be&&(g=G,P=be)}let re=1+q-I,ee="";if(!(!Y&&r.nonTerminated===!1))if(!G)O!=="named"&&A(4,re);else if(O==="named"){if(Y&&!P)A(5,1);else if(g!==G&&(q=D+g.length,re=1+q-D,Y=!1),!Y){const be=g?1:3;if(r.attribute){const oe=e.charCodeAt(q);oe===61?(A(be,re),P=""):F0(oe)?P="":A(be,re)}else A(be,re)}ee=P}else{Y||A(2,re);let be=Number.parseInt(G,O==="hexadecimal"?16:10);if(wg(be))A(7,re),ee="�";else if(be in B0)A(6,re),ee=B0[be];else{let oe="";kg(be)&&A(6,re),be>65535&&(be-=65536,oe+=String.fromCharCode(be>>>10|55296),be=56320|be&1023),ee=oe+String.fromCharCode(be)}}if(ee){C(),x=T(),a=q-1,d+=q-I+1,i.push(ee);const be=T();be.offset++,r.reference&&r.reference.call(r.referenceContext||void 0,ee,{start:x,end:be},e.slice(I-1,q)),x=be}else G=e.slice(I-1,q),u+=G,d+=G.length,a=q-1}else b===10&&(f++,s++,d=0),Number.isNaN(b)?C():(u+=String.fromCharCode(b),d++);return i.join("");function T(){return{line:f,column:d,offset:a+((l?l.offset:0)||0)}}function A(S,I){let D;r.warning&&(D=T(),D.column+=I,D.offset+=I,r.warning.call(r.warningContext||void 0,Ag[S],D,S))}function C(){u&&(i.push(u),r.text&&r.text.call(r.textContext||void 0,u,{start:x,end:T()}),u="")}}function wg(e){return e>=55296&&e<=57343||e>1114111}function kg(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}const Cg=/["&'<>`]/g,Ng=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ig=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Og=/[|\\{}()[\]^$+*?.]/g,z0=new WeakMap;function Rg(e,t){if(e=e.replace(t.subset?Lg(t.subset):Cg,n),t.subset||t.escapeOnly)return e;return e.replace(Ng,r).replace(Ig,n);function r(i,a,s){return t.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,s.charCodeAt(a+2),t)}function n(i,a,s){return t.format(i.charCodeAt(0),s.charCodeAt(a+1),t)}}function Lg(e){let t=z0.get(e);return t||(t=Mg(e),z0.set(e,t)),t}function Mg(e){const t=[];let r=-1;for(;++r<e.length;)t.push(e[r].replace(Og,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}function Dg(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Pg(e,t){return Rg(e,Object.assign({format:Dg},t))}const df=" ";function Bg(){return{canContainEols:["mdxJsxTextElement"],enter:{mdxJsxFlowTag:n,mdxJsxFlowTagClosingMarker:i,mdxJsxFlowTagAttribute:d,mdxJsxFlowTagExpressionAttribute:x,mdxJsxFlowTagAttributeValueLiteral:e,mdxJsxFlowTagAttributeValueExpression:e,mdxJsxFlowTagSelfClosingMarker:s,mdxJsxTextTag:n,mdxJsxTextTagClosingMarker:i,mdxJsxTextTagAttribute:d,mdxJsxTextTagExpressionAttribute:x,mdxJsxTextTagAttributeValueLiteral:e,mdxJsxTextTagAttributeValueExpression:e,mdxJsxTextTagSelfClosingMarker:s},exit:{mdxJsxFlowTagClosingMarker:u,mdxJsxFlowTagNamePrimary:l,mdxJsxFlowTagNameMember:c,mdxJsxFlowTagNameLocal:f,mdxJsxFlowTagExpressionAttribute:b,mdxJsxFlowTagExpressionAttributeValue:r,mdxJsxFlowTagAttributeNamePrimary:T,mdxJsxFlowTagAttributeNameLocal:A,mdxJsxFlowTagAttributeValueLiteral:C,mdxJsxFlowTagAttributeValueLiteralValue:r,mdxJsxFlowTagAttributeValueExpression:S,mdxJsxFlowTagAttributeValueExpressionValue:r,mdxJsxFlowTagSelfClosingMarker:I,mdxJsxFlowTag:D,mdxJsxTextTagClosingMarker:u,mdxJsxTextTagNamePrimary:l,mdxJsxTextTagNameMember:c,mdxJsxTextTagNameLocal:f,mdxJsxTextTagExpressionAttribute:b,mdxJsxTextTagExpressionAttributeValue:r,mdxJsxTextTagAttributeNamePrimary:T,mdxJsxTextTagAttributeNameLocal:A,mdxJsxTextTagAttributeValueLiteral:C,mdxJsxTextTagAttributeValueLiteralValue:r,mdxJsxTextTagAttributeValueExpression:S,mdxJsxTextTagAttributeValueExpressionValue:r,mdxJsxTextTagSelfClosingMarker:I,mdxJsxTextTag:D}};function e(){this.buffer()}function t(P){return{line:P.line,column:P.column,offset:P.offset}}function r(P){this.config.enter.data.call(this,P),this.config.exit.data.call(this,P)}function n(P){const G={name:void 0,attributes:[],close:!1,selfClosing:!1,start:P.start,end:P.end};this.data.mdxJsxTagStack||(this.data.mdxJsxTagStack=[]),this.data.mdxJsxTag=G,this.buffer()}function i(P){if(this.data.mdxJsxTagStack.length===0)throw new st("Unexpected closing slash `/` in tag, expected an open tag first",{start:P.start,end:P.end},"mdast-util-mdx-jsx:unexpected-closing-slash")}function a(P){if(this.data.mdxJsxTag.close)throw new st("Unexpected attribute in closing tag, expected the end of the tag",{start:P.start,end:P.end},"mdast-util-mdx-jsx:unexpected-attribute")}function s(P){if(this.data.mdxJsxTag.close)throw new st("Unexpected self-closing slash `/` in closing tag, expected the end of the tag",{start:P.start,end:P.end},"mdast-util-mdx-jsx:unexpected-self-closing-slash")}function u(){const P=this.data.mdxJsxTag;P.close=!0}function l(P){const G=this.data.mdxJsxTag;G.name=this.sliceSerialize(P)}function c(P){const G=this.data.mdxJsxTag;G.name+="."+this.sliceSerialize(P)}function f(P){const G=this.data.mdxJsxTag;G.name+=":"+this.sliceSerialize(P)}function d(P){const G=this.data.mdxJsxTag;a.call(this,P),G.attributes.push({type:"mdxJsxAttribute",name:"",value:null,position:{start:t(P.start),end:void 0}})}function x(P){const G=this.data.mdxJsxTag;a.call(this,P),G.attributes.push({type:"mdxJsxExpressionAttribute",value:"",position:{start:t(P.start),end:void 0}}),this.buffer()}function b(P){const G=this.data.mdxJsxTag,K=G.attributes[G.attributes.length-1];K.type;const Y=P.estree;K.value=this.resume(),K.position,K.position.end=t(P.end),Y&&(K.data={estree:Y})}function T(P){const G=this.data.mdxJsxTag,K=G.attributes[G.attributes.length-1];K.type,K.name=this.sliceSerialize(P),K.position,K.position.end=t(P.end)}function A(P){const G=this.data.mdxJsxTag,K=G.attributes[G.attributes.length-1];K.type,K.name+=":"+this.sliceSerialize(P),K.position,K.position.end=t(P.end)}function C(P){const G=this.data.mdxJsxTag,K=G.attributes[G.attributes.length-1];K.value=Sg(this.resume(),{nonTerminated:!1}),K.position,K.position.end=t(P.end)}function S(P){const G=this.data.mdxJsxTag,K=G.attributes[G.attributes.length-1];K.type;const Y={type:"mdxJsxAttributeValueExpression",value:this.resume()},re=P.estree;re&&(Y.data={estree:re}),K.value=Y,K.position,K.position.end=t(P.end)}function I(){const P=this.data.mdxJsxTag;P.selfClosing=!0}function D(P){const G=this.data.mdxJsxTag,K=this.data.mdxJsxTagStack,Y=K[K.length-1];if(G.close&&Y.name!==G.name)throw new st("Unexpected closing tag `"+g(G)+"`, expected corresponding closing tag for `"+g(Y)+"` ("+wn(Y)+")",{start:P.start,end:P.end},"mdast-util-mdx-jsx:end-tag-mismatch");this.resume(),G.close?K.pop():this.enter({type:P.type==="mdxJsxTextTag"?"mdxJsxTextElement":"mdxJsxFlowElement",name:G.name||null,attributes:G.attributes,children:[]},P,q),G.selfClosing||G.close?this.exit(P,O):K.push(G)}function q(P,G){const K=this.data.mdxJsxTagStack,Y=K[K.length-1],re=P?" before the end of `"+P.type+"`":"",ee=P?{start:P.start,end:P.end}:void 0;throw new st("Expected a closing tag for `"+g(Y)+"` ("+wn({start:G.start,end:G.end})+")"+re,ee,"mdast-util-mdx-jsx:end-tag-mismatch")}function O(P,G){const K=this.data.mdxJsxTag;throw new st("Expected the closing tag `"+g(K)+"` either after the end of `"+G.type+"` ("+wn(G.end)+") or another opening tag after the start of `"+G.type+"` ("+wn(G.start)+")",{start:P.start,end:P.end},"mdast-util-mdx-jsx:end-tag-mismatch")}function g(P){return"<"+(P.close?"/":"")+(P.name||"")+">"}}function Fg(e){const t=e||{},r=t.quote||'"',n=t.quoteSmart||!1,i=t.tightSelfClosing||!1,a=t.printWidth||Number.POSITIVE_INFINITY,s=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Cannot serialize attribute values with `"+r+"` for `options.quote`, expected `\"`, or `'`");return u.peek=zg,{handlers:{mdxJsxFlowElement:u,mdxJsxTextElement:u},unsafe:[{character:"<",inConstruct:["phrasing"]},{atBreak:!0,character:"<"}],fences:!0,resourceLink:!0};function u(l,c,f,d){const x=l.type==="mdxJsxFlowElement",b=l.name?!l.children||l.children.length===0:!1,T=pf(f),A=mf(T),C=f.createTracker(d),S=f.createTracker(d),I=[],D=(x?A:"")+"<"+(l.name||""),q=f.enter(l.type);if(C.move(D),S.move(D),l.attributes&&l.attributes.length>0){if(!l.name)throw new Error("Cannot serialize fragment w/ attributes");let K=-1;for(;++K<l.attributes.length;){const Y=l.attributes[K];let re;if(Y.type==="mdxJsxExpressionAttribute")re="{"+(Y.value||"")+"}";else{if(!Y.name)throw new Error("Cannot serialize attribute w/o name");const ee=Y.value,be=Y.name;let oe="";if(ee!=null)if(typeof ee=="object")oe="{"+(ee.value||"")+"}";else{const ne=n&&Ms(ee,r)>Ms(ee,s)?s:r;oe=ne+Pg(ee,{subset:[ne]})+ne}re=be+(oe?"=":"")+oe}I.push(re)}}let O=!1;const g=I.join(" ");x&&(/\r?\n|\r/.test(g)||C.current().now.column+g.length+(b?i?2:3:1)>a)&&(O=!0);let P=C,G=D;if(O){P=S;let K=-1;for(;++K<I.length;)I[K]=A+df+I[K];G+=P.move(`
|
|
13
|
+
`)continue;const s=this.handle(a);Array.isArray(s)?n.push(...s):s&&n.push(s)}return n}function dg(e,t){const r=e.data;let n,i;if(cf(e,t),r){for(i in r)og.call(r,i)&&i!=="estree"&&(n||(n={}),n[i]=r[i]);n&&(t.data=n)}}function cf(e,t){const r=El(e);r&&r.start.offset!==void 0&&r.end.offset!==void 0&&(t.start=r.start.offset,t.end=r.end.offset,t.loc={start:{line:r.start.line,column:r.start.column-1},end:{line:r.end.line,column:r.end.column-1}},t.range=[r.start.offset,r.end.offset])}function pg(e){const t=hf(e);if(t.type==="JSXMemberExpression")throw new Error("Member expressions in attribute names are not supported");return t}function mg(e){return hf(e)}function hf(e){if(e.includes(".")){const t=e.split(".");let r=t.shift(),n={type:"JSXIdentifier",name:r};for(;r=t.shift();)n={type:"JSXMemberExpression",object:n,property:{type:"JSXIdentifier",name:r}};return n}if(e.includes(":")){const t=e.split(":");return{type:"JSXNamespacedName",namespace:{type:"JSXIdentifier",name:t[0]},name:{type:"JSXIdentifier",name:t[1]}}}return{type:"JSXIdentifier",name:e}}function gg(e,t){const r=lg(t||{});let n=r.handle(e);const i=r.esm;if(n){n.type!=="JSXFragment"&&n.type!=="JSXElement"&&(n={type:"JSXFragment",openingFragment:{type:"JSXOpeningFragment"},closingFragment:{type:"JSXClosingFragment"},children:[n]},r.patch(e,n));const s={type:"ExpressionStatement",expression:n};r.patch(e,s),i.push(s)}const a={type:"Program",body:i,sourceType:"module",comments:r.comments};return r.patch(e,a),a}function A_(e){return function(t){return gg(t,e)}}function bg(){return{enter:{mdxFlowExpression:Eg,mdxTextExpression:yg},exit:{mdxFlowExpression:M0,mdxFlowExpressionChunk:D0,mdxTextExpression:M0,mdxTextExpressionChunk:D0}}}function xg(){return{handlers:{mdxFlowExpression:P0,mdxTextExpression:P0},unsafe:[{character:"{",inConstruct:["phrasing"]},{atBreak:!0,character:"{"}]}}function Eg(e){this.enter({type:"mdxFlowExpression",value:""},e),this.buffer()}function yg(e){this.enter({type:"mdxTextExpression",value:""},e),this.buffer()}function M0(e){const t=this.resume(),r=e.estree,n=this.stack[this.stack.length-1];n.type==="mdxFlowExpression"||n.type,this.exit(e),n.value=t,r&&(n.data={estree:r})}function D0(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function P0(e,t,r){const n=e.value||"";return"{"+r.indentLines(n,function(a,s,u){return(s===0||u?"":" ")+a})+"}"}function Ms(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,i=r.indexOf(t);for(;i!==-1;)n++,i=r.indexOf(t,i+t.length);return n}const vg=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],B0={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function ff(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=48&&t<=57}function Tg(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function _g(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function F0(e){return _g(e)||ff(e)}const U0=document.createElement("i");function Ra(e){const t="&"+e+";";U0.innerHTML=t;const r=U0.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}const Ag=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function Sg(e,t){const r=t||{},n=typeof r.additional=="string"?r.additional.charCodeAt(0):r.additional,i=[];let a=0,s=-1,u="",l,c;r.position&&("start"in r.position||"indent"in r.position?(c=r.position.indent,l=r.position.start):l=r.position);let f=(l?l.line:0)||1,d=(l?l.column:0)||1,x=T(),b;for(a--;++a<=e.length;)if(b===10&&(d=(c?c[s]:0)||1),b=e.charCodeAt(a),b===38){const S=e.charCodeAt(a+1);if(S===9||S===10||S===12||S===32||S===38||S===60||Number.isNaN(S)||n&&S===n){u+=String.fromCharCode(b),d++;continue}const I=a+1;let D=I,q=I,O;if(S===35){q=++D;const be=e.charCodeAt(q);be===88||be===120?(O="hexadecimal",q=++D):O="decimal"}else O="named";let g="",P="",G="";const K=O==="named"?F0:O==="decimal"?ff:Tg;for(q--;++q<=e.length;){const be=e.charCodeAt(q);if(!K(be))break;G+=String.fromCharCode(be),O==="named"&&vg.includes(G)&&(g=G,P=Ra(G))}let Y=e.charCodeAt(q)===59;if(Y){q++;const be=O==="named"?Ra(G):!1;be&&(g=G,P=be)}let re=1+q-I,ee="";if(!(!Y&&r.nonTerminated===!1))if(!G)O!=="named"&&A(4,re);else if(O==="named"){if(Y&&!P)A(5,1);else if(g!==G&&(q=D+g.length,re=1+q-D,Y=!1),!Y){const be=g?1:3;if(r.attribute){const oe=e.charCodeAt(q);oe===61?(A(be,re),P=""):F0(oe)?P="":A(be,re)}else A(be,re)}ee=P}else{Y||A(2,re);let be=Number.parseInt(G,O==="hexadecimal"?16:10);if(wg(be))A(7,re),ee="�";else if(be in B0)A(6,re),ee=B0[be];else{let oe="";kg(be)&&A(6,re),be>65535&&(be-=65536,oe+=String.fromCharCode(be>>>10|55296),be=56320|be&1023),ee=oe+String.fromCharCode(be)}}if(ee){C(),x=T(),a=q-1,d+=q-I+1,i.push(ee);const be=T();be.offset++,r.reference&&r.reference.call(r.referenceContext||void 0,ee,{start:x,end:be},e.slice(I-1,q)),x=be}else G=e.slice(I-1,q),u+=G,d+=G.length,a=q-1}else b===10&&(f++,s++,d=0),Number.isNaN(b)?C():(u+=String.fromCharCode(b),d++);return i.join("");function T(){return{line:f,column:d,offset:a+((l?l.offset:0)||0)}}function A(S,I){let D;r.warning&&(D=T(),D.column+=I,D.offset+=I,r.warning.call(r.warningContext||void 0,Ag[S],D,S))}function C(){u&&(i.push(u),r.text&&r.text.call(r.textContext||void 0,u,{start:x,end:T()}),u="")}}function wg(e){return e>=55296&&e<=57343||e>1114111}function kg(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}const Cg=/["&'<>`]/g,Ng=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ig=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Og=/[|\\{}()[\]^$+*?.]/g,z0=new WeakMap;function Rg(e,t){if(e=e.replace(t.subset?Lg(t.subset):Cg,n),t.subset||t.escapeOnly)return e;return e.replace(Ng,r).replace(Ig,n);function r(i,a,s){return t.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,s.charCodeAt(a+2),t)}function n(i,a,s){return t.format(i.charCodeAt(0),s.charCodeAt(a+1),t)}}function Lg(e){let t=z0.get(e);return t||(t=Mg(e),z0.set(e,t)),t}function Mg(e){const t=[];let r=-1;for(;++r<e.length;)t.push(e[r].replace(Og,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}function Dg(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Pg(e,t){return Rg(e,Object.assign({format:Dg},t))}const df=" ";function Bg(){return{canContainEols:["mdxJsxTextElement"],enter:{mdxJsxFlowTag:n,mdxJsxFlowTagClosingMarker:i,mdxJsxFlowTagAttribute:d,mdxJsxFlowTagExpressionAttribute:x,mdxJsxFlowTagAttributeValueLiteral:e,mdxJsxFlowTagAttributeValueExpression:e,mdxJsxFlowTagSelfClosingMarker:s,mdxJsxTextTag:n,mdxJsxTextTagClosingMarker:i,mdxJsxTextTagAttribute:d,mdxJsxTextTagExpressionAttribute:x,mdxJsxTextTagAttributeValueLiteral:e,mdxJsxTextTagAttributeValueExpression:e,mdxJsxTextTagSelfClosingMarker:s},exit:{mdxJsxFlowTagClosingMarker:u,mdxJsxFlowTagNamePrimary:l,mdxJsxFlowTagNameMember:c,mdxJsxFlowTagNameLocal:f,mdxJsxFlowTagExpressionAttribute:b,mdxJsxFlowTagExpressionAttributeValue:r,mdxJsxFlowTagAttributeNamePrimary:T,mdxJsxFlowTagAttributeNameLocal:A,mdxJsxFlowTagAttributeValueLiteral:C,mdxJsxFlowTagAttributeValueLiteralValue:r,mdxJsxFlowTagAttributeValueExpression:S,mdxJsxFlowTagAttributeValueExpressionValue:r,mdxJsxFlowTagSelfClosingMarker:I,mdxJsxFlowTag:D,mdxJsxTextTagClosingMarker:u,mdxJsxTextTagNamePrimary:l,mdxJsxTextTagNameMember:c,mdxJsxTextTagNameLocal:f,mdxJsxTextTagExpressionAttribute:b,mdxJsxTextTagExpressionAttributeValue:r,mdxJsxTextTagAttributeNamePrimary:T,mdxJsxTextTagAttributeNameLocal:A,mdxJsxTextTagAttributeValueLiteral:C,mdxJsxTextTagAttributeValueLiteralValue:r,mdxJsxTextTagAttributeValueExpression:S,mdxJsxTextTagAttributeValueExpressionValue:r,mdxJsxTextTagSelfClosingMarker:I,mdxJsxTextTag:D}};function e(){this.buffer()}function t(P){return{line:P.line,column:P.column,offset:P.offset}}function r(P){this.config.enter.data.call(this,P),this.config.exit.data.call(this,P)}function n(P){const G={name:void 0,attributes:[],close:!1,selfClosing:!1,start:P.start,end:P.end};this.data.mdxJsxTagStack||(this.data.mdxJsxTagStack=[]),this.data.mdxJsxTag=G,this.buffer()}function i(P){if(this.data.mdxJsxTagStack.length===0)throw new st("Unexpected closing slash `/` in tag, expected an open tag first",{start:P.start,end:P.end},"mdast-util-mdx-jsx:unexpected-closing-slash")}function a(P){if(this.data.mdxJsxTag.close)throw new st("Unexpected attribute in closing tag, expected the end of the tag",{start:P.start,end:P.end},"mdast-util-mdx-jsx:unexpected-attribute")}function s(P){if(this.data.mdxJsxTag.close)throw new st("Unexpected self-closing slash `/` in closing tag, expected the end of the tag",{start:P.start,end:P.end},"mdast-util-mdx-jsx:unexpected-self-closing-slash")}function u(){const P=this.data.mdxJsxTag;P.close=!0}function l(P){const G=this.data.mdxJsxTag;G.name=this.sliceSerialize(P)}function c(P){const G=this.data.mdxJsxTag;G.name+="."+this.sliceSerialize(P)}function f(P){const G=this.data.mdxJsxTag;G.name+=":"+this.sliceSerialize(P)}function d(P){const G=this.data.mdxJsxTag;a.call(this,P),G.attributes.push({type:"mdxJsxAttribute",name:"",value:null,position:{start:t(P.start),end:void 0}})}function x(P){const G=this.data.mdxJsxTag;a.call(this,P),G.attributes.push({type:"mdxJsxExpressionAttribute",value:"",position:{start:t(P.start),end:void 0}}),this.buffer()}function b(P){const G=this.data.mdxJsxTag,K=G.attributes[G.attributes.length-1];K.type;const Y=P.estree;K.value=this.resume(),K.position,K.position.end=t(P.end),Y&&(K.data={estree:Y})}function T(P){const G=this.data.mdxJsxTag,K=G.attributes[G.attributes.length-1];K.type,K.name=this.sliceSerialize(P),K.position,K.position.end=t(P.end)}function A(P){const G=this.data.mdxJsxTag,K=G.attributes[G.attributes.length-1];K.type,K.name+=":"+this.sliceSerialize(P),K.position,K.position.end=t(P.end)}function C(P){const G=this.data.mdxJsxTag,K=G.attributes[G.attributes.length-1];K.value=Sg(this.resume(),{nonTerminated:!1}),K.position,K.position.end=t(P.end)}function S(P){const G=this.data.mdxJsxTag,K=G.attributes[G.attributes.length-1];K.type;const Y={type:"mdxJsxAttributeValueExpression",value:this.resume()},re=P.estree;re&&(Y.data={estree:re}),K.value=Y,K.position,K.position.end=t(P.end)}function I(){const P=this.data.mdxJsxTag;P.selfClosing=!0}function D(P){const G=this.data.mdxJsxTag,K=this.data.mdxJsxTagStack,Y=K[K.length-1];if(G.close&&Y.name!==G.name)throw new st("Unexpected closing tag `"+g(G)+"`, expected corresponding closing tag for `"+g(Y)+"` ("+wn(Y)+")",{start:P.start,end:P.end},"mdast-util-mdx-jsx:end-tag-mismatch");this.resume(),G.close?K.pop():this.enter({type:P.type==="mdxJsxTextTag"?"mdxJsxTextElement":"mdxJsxFlowElement",name:G.name||null,attributes:G.attributes,children:[]},P,q),G.selfClosing||G.close?this.exit(P,O):K.push(G)}function q(P,G){const K=this.data.mdxJsxTagStack,Y=K[K.length-1],re=P?" before the end of `"+P.type+"`":"",ee=P?{start:P.start,end:P.end}:void 0;throw new st("Expected a closing tag for `"+g(Y)+"` ("+wn({start:G.start,end:G.end})+")"+re,ee,"mdast-util-mdx-jsx:end-tag-mismatch")}function O(P,G){const K=this.data.mdxJsxTag;throw new st("Expected the closing tag `"+g(K)+"` either after the end of `"+G.type+"` ("+wn(G.end)+") or another opening tag after the start of `"+G.type+"` ("+wn(G.start)+")",{start:P.start,end:P.end},"mdast-util-mdx-jsx:end-tag-mismatch")}function g(P){return"<"+(P.close?"/":"")+(P.name||"")+">"}}function Fg(e){const t=e||{},r=t.quote||'"',n=t.quoteSmart||!1,i=t.tightSelfClosing||!1,a=t.printWidth||Number.POSITIVE_INFINITY,s=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Cannot serialize attribute values with `"+r+"` for `options.quote`, expected `\"`, or `'`");return u.peek=zg,{handlers:{mdxJsxFlowElement:u,mdxJsxTextElement:u},unsafe:[{character:"<",inConstruct:["phrasing"]},{atBreak:!0,character:"<"}],fences:!0,resourceLink:!0};function u(l,c,f,d){const x=l.type==="mdxJsxFlowElement",b=l.name?!l.children||l.children.length===0:!1,T=pf(f),A=mf(T),C=f.createTracker(d),S=f.createTracker(d),I=[],D=(x?A:"")+"<"+(l.name||""),q=f.enter(l.type);if(C.move(D),S.move(D),l.attributes&&l.attributes.length>0){if(!l.name)throw new Error("Cannot serialize fragment w/ attributes");let K=-1;for(;++K<l.attributes.length;){const Y=l.attributes[K];let re;if(Y.type==="mdxJsxExpressionAttribute")re="{"+(Y.value||"")+"}";else{if(!Y.name)throw new Error("Cannot serialize attribute w/o name");const ee=Y.value,be=Y.name;let oe="";if(ee!=null)if(typeof ee=="object")oe="{"+(ee.value||"")+"}";else{const ne=n&&Ms(ee,r)>Ms(ee,s)?s:r;oe=ne+Pg(ee,{subset:[ne]})+ne}re=be+(oe?"=":"")+oe}I.push(re)}}let O=!1;const g=I.join(" ");x&&(/\r?\n|\r/.test(g)||C.current().now.column+g.length+(b?i?2:3:1)>a)&&(O=!0);let P=C,G=D;if(O){P=S;let K=-1;for(;++K<I.length;)I[K]=A+df+I[K];G+=P.move(`
|
|
14
14
|
`+I.join(`
|
|
15
15
|
`)+`
|
|
16
16
|
`+A)}else g&&(G+=P.move(" "+g));return b&&(G+=P.move((i||O?"":" ")+"/")),G+=P.move(">"),l.children&&l.children.length>0&&(l.type==="mdxJsxTextElement"?G+=P.move(f.containerPhrasing(l,{...P.current(),before:">",after:"<"})):(P.shift(2),G+=P.move(`
|
|
@@ -30,7 +30,7 @@ Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=1
|
|
|
30
30
|
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return Cn(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var r=this.pos-1;this.invalidStringToken(r,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var n=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(n,8);return i>255&&(n=n.slice(0,-1),i=parseInt(n,8)),this.pos+=n.length-1,t=this.input.charCodeAt(this.pos),(n!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-n.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(i)}return Gi(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}};tt.readHexChar=function(e){var t=this.pos,r=this.readInt(16,e);return r===null&&this.invalidStringToken(t,"Bad character escape sequence"),r};tt.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,r=this.pos,n=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(Wn(i,n))this.pos+=i<=65535?1:2;else if(i===92){this.containsEsc=!0,e+=this.input.slice(r,this.pos);var a=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var s=this.readCodePoint();(t?dn:Wn)(s,n)||this.invalidStringToken(a,"Invalid Unicode escape"),e+=Cn(s),r=this.pos}else break;t=!1}return e+this.input.slice(r,this.pos)};tt.readWord=function(){var e=this.readWord1(),t=w.name;return this.keywords.test(e)&&(t=vl[e]),this.finishToken(t,e)};var L2="8.15.0";Xt.acorn={Parser:Xt,version:L2,defaultOptions:Du,Position:La,SourceLocation:ro,getLineInfo:vf,Node:so,TokenType:at,tokTypes:w,keywordTypes:vl,TokContext:en,tokContexts:wt,isIdentifierChar:Wn,isIdentifierStart:dn,Token:kl,isNewLine:Gi,lineBreak:kr,lineBreakG:t2,nonASCIIwhitespace:Ef};const ar=Qn(/[A-Za-z]/),sr=Qn(/[\dA-Za-z]/),M2=Qn(/[#-'*+\--9=?A-Z^-~]/);function Us(e){return e!==null&&(e<32||e===127)}const Fu=Qn(/\d/),D2=Qn(/[\dA-Fa-f]/),P2=Qn(/[!-/:-@[-`{-~]/);function _e(e){return e!==null&&e<-2}function nt(e){return e!==null&&(e<0||e===32)}function Ye(e){return e===-2||e===-1||e===32}const uo=Qn(new RegExp("\\p{P}|\\p{S}","u")),gr=Qn(/\s/);function Qn(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function Xe(e,t,r,n){const i=n?n-1:Number.POSITIVE_INFINITY;let a=0;return s;function s(l){return Ye(l)?(e.enter(r),u(l)):t(l)}function u(l){return Ye(l)&&a++<i?(e.consume(l),u):(e.exit(r),t(l))}}const B2={}.hasOwnProperty,F2=Symbol("continue"),$o=Symbol("exit"),U2=Symbol("skip");function z2(e,t){let r,n;typeof t=="function"?r=t:t&&typeof t=="object"&&(t.enter&&(r=t.enter),t.leave&&(n=t.leave)),i(e,void 0,void 0,[])();function i(a,s,u,l){return Ko(a)&&(c.displayName="node ("+a.type+")"),c;function c(){const f=r?W0(r(a,s,u,l)):[];if(f[0]===$o)return f;if(f[0]!==U2){let d;for(d in a)if(B2.call(a,d)&&a[d]&&typeof a[d]=="object"&&d!=="data"&&d!=="position"){const x=l.concat(a),b=a[d];if(Array.isArray(b)){const T=b;let A=0;for(;A>-1&&A<T.length;){const C=T[A];if(Ko(C)){const S=i(C,d,A,x)();if(S[0]===$o)return S;A=typeof S[1]=="number"?S[1]:A+1}else A++}}else if(Ko(b)){const T=i(b,d,void 0,x)();if(T[0]===$o)return T}}}return n?W0(n(a,s,u,l)):f}}}function W0(e){return Array.isArray(e)?e:typeof e=="number"?[F2,e]:[e]}function Ko(e){return!!(e&&typeof e=="object"&&"type"in e&&typeof e.type=="string"&&e.type.length>0)}function Jf(e,t){const r=t.prefix||"",n=t.suffix||"",i=Object.assign({},t.acornOptions),a=[],s=[],u=i.onComment,l=i.onToken;let c=!1,f,d;const x=Object.assign({},i,{onComment:a,preserveParens:!0});l&&(x.onToken=s);const b=H2(e,t.tokenTypes),T=b.value,A=r+T+n,C=t.expression&&$0(T);if(C&&!t.allowEmpty)throw new st("Unexpected empty expression",{place:I(0),ruleId:"unexpected-empty-expression",source:"micromark-extension-mdx-expression"});try{f=t.expression&&!C?t.acorn.parseExpressionAt(A,0,x):t.acorn.parse(A,x)}catch(D){const q=D,O=I(q.pos);q.message=String(q.message).replace(/ \(\d+:\d+\)$/,""),q.pos=O.offset,q.loc={line:O.line,column:O.column-1},d=q,c=q.raisedAt>=r.length+T.length||q.message==="Unterminated comment"}if(f&&t.expression&&!C)if($0(A.slice(f.end,A.length-n.length)))f={type:"Program",start:0,end:r.length+T.length,body:[{type:"ExpressionStatement",expression:f,start:0,end:r.length+T.length}],sourceType:"module",comments:[]};else{const D=I(f.end),q=new Error("Unexpected content after expression");q.pos=D.offset,q.loc={line:D.line,column:D.column-1},d=q,f=void 0}if(f){if(f.comments=a,z2(f,function(D,q,O,g){let P=g[g.length-1],G=q;D.type==="ParenthesizedExpression"&&P&&G&&(typeof O=="number"&&(P=P[G],G=O),P[G]=D.expression),S(D)}),Array.isArray(u))u.push(...a);else if(typeof u=="function")for(const D of a)u(D.type==="Block",D.value,D.start,D.end,D.loc.start,D.loc.end);for(const D of s)D.end<=r.length||D.start-r.length>=T.length||(S(D),Array.isArray(l)?l.push(D):l(D))}return{estree:f,error:d,swallow:c};function S(D){const q=I(D.start),O=I(D.end);D.start=q.offset,D.end=O.offset,D.loc={start:{line:q.line,column:q.column-1,offset:q.offset},end:{line:O.line,column:O.column-1,offset:O.offset}},D.range=[D.start,D.end]}function I(D){let q=D-r.length;q<0?q=0:q>T.length&&(q=T.length);let O=V2(b.stops,q);return O||(O={line:t.start.line,column:t.start.column,offset:t.start.offset}),O}}function $0(e){return/^\s*$/.test(e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\/\/[^\r\n]*(\r\n|\n|\r)/g,""))}function H2(e,t){const r={value:"",stops:[]};let n=-1;for(;++n<e.length;){const i=e[n];if(i[0]==="enter"){const a=i[1].type;if(a==="lineEnding"||t.includes(a)){const s=i[2].sliceStream(i[1]);for(;s.length>0&&s[0]===-1;)s.shift();const u=q2(s);r.stops.push([r.value.length,i[1].start]),r.value+=u,r.stops.push([r.value.length,i[1].end])}}}return r}function V2(e,t){let r=0;for(;r<e.length&&e[r][0]<=t;)r+=1;if(r===0)return;const[n,i]=e[r-1],a=t-n;return{line:i.line,column:i.column+a,offset:i.offset+a}}function q2(e){let t=-1;const r=[];let n;for(;++t<e.length;){const i=e[t];let a;if(typeof i=="string")a=i;else switch(i){case-5:{a="\r";break}case-4:{a=`
|
|
31
31
|
`;break}case-3:{a=`\r
|
|
32
32
|
`;break}case-2:{a=" ";break}case-1:{if(n)continue;a=" ";break}default:a=String.fromCharCode(i)}n=i===-2,r.push(a)}return r.join("")}function ks(e){const t=e||{},r=t.loc||{},n=t.range||[void 0,void 0],i=K0(r.start,n[0]||t.start),a=K0(r.end,n[1]||t.end);if(i&&a)return{start:i,end:a}}function K0(e,t){if(e&&typeof e=="object"){const r="line"in e?Xo(e.line):void 0,n="column"in e?Xo(e.column):void 0;if(r&&n!==void 0)return{line:r,column:n+1,offset:Xo(t)}}}function Xo(e){return typeof e=="number"&&e>-1?e:void 0}const G2=2,Mi="https://github.com/micromark/micromark-extension-mdx-expression/tree/main/packages/micromark-extension-mdx-expression",Y2="#unexpected-end-of-file-in-expression-expected-a-corresponding-closing-brace-for-",W2="#unexpected-lazy-line-in-expression-in-container-expected-line-to-be-prefixed",X0="#unexpected-type-in-code-expected-an-object-spread-spread",$2="#unexpected-extra-content-in-spread-only-a-single-spread-is-supported",K2="#could-not-parse-expression-with-acorn";function zs(e,t,r,n,i,a,s,u,l,c,f){const d=this,x=this.events.length+3;let b=0,T,A;return C;function C(q){return e.enter(r),e.enter(n),e.consume(q),e.exit(n),T=d.now(),S}function S(q){if(q===null){if(A)throw A;const O=new st("Unexpected end of file in expression, expected a corresponding closing brace for `{`",{place:d.now(),ruleId:"unexpected-eof",source:"micromark-extension-mdx-expression"});throw O.url=Mi+Y2,O}if(_e(q))return e.enter("lineEnding"),e.consume(q),e.exit("lineEnding"),D;if(q===125&&b===0){const O=a?X2.call(d,a,s,i,x,T,c||!1,l||!1):{type:"ok",estree:void 0};if(O.type==="ok"){e.enter(n),e.consume(q),e.exit(n);const g=e.exit(r);return u&&O.estree&&Object.assign(g,{estree:O.estree}),t}return A=O.message,e.enter(i),e.consume(q),I}return e.enter(i),I(q)}function I(q){return q===125&&b===0||q===null||_e(q)?(e.exit(i),S(q)):(q===123&&!a?b+=1:q===125&&(b-=1),e.consume(q),I)}function D(q){const O=d.now();if(O.line!==T.line&&!f&&d.parser.lazy[O.line]){const g=new st("Unexpected lazy line in expression in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",{place:d.now(),ruleId:"unexpected-lazy",source:"micromark-extension-mdx-expression"});throw g.url=Mi+W2,g}return Ye(q)?Xe(e,S,"linePrefix",G2+1)(q):S(q)}}function X2(e,t,r,n,i,a,s){const u=Jf(this.events.slice(n),{acorn:e,tokenTypes:[r],acornOptions:t,start:i,expression:!0,allowEmpty:a,prefix:s?"({":"",suffix:s?"})":""}),l=u.estree;if(s&&l){const c=l.body[0];if(c.type!=="ExpressionStatement"||c.expression.type!=="ObjectExpression"){const f=ks(c),d=new st("Unexpected `"+c.type+"` in code: expected an object spread (`{...spread}`)",{place:f.start,ruleId:"non-spread",source:"micromark-extension-mdx-expression"});throw d.url=Mi+X0,d}if(c.expression.properties[1]){const f=ks(c.expression.properties[1]),d=new st("Unexpected extra content in spread: only a single spread is supported",{place:f.start,ruleId:"spread-extra",source:"micromark-extension-mdx-expression"});throw d.url=Mi+$2,d}if(c.expression.properties[0]&&c.expression.properties[0].type!=="SpreadElement"){const f=ks(c.expression.properties[0]),d=new st("Unexpected `"+c.expression.properties[0].type+"` in code: only spread elements are supported",{place:f.start,ruleId:"non-spread",source:"micromark-extension-mdx-expression"});throw d.url=Mi+X0,d}}if(u.error){const c=new st("Could not parse expression with acorn",{cause:u.error,place:{line:u.error.loc.line,column:u.error.loc.column+1,offset:u.error.pos},ruleId:"acorn",source:"micromark-extension-mdx-expression"});return c.url=Mi+K2,{type:"nok",message:c}}return{type:"ok",estree:l}}function j2(e){const t=e||{},r=t.addResult,n=t.acorn,i=t.spread;let a=t.allowEmpty,s;if(a==null&&(a=!0),n){if(!n.parseExpressionAt)throw new Error("Expected a proper `acorn` instance passed in as `options.acorn`");s=Object.assign({ecmaVersion:2024,sourceType:"module"},t.acornOptions)}else if(t.acornOptions||t.addResult)throw new Error("Expected an `acorn` instance passed in as `options.acorn`");return{flow:{123:{name:"mdxFlowExpression",tokenize:u,concrete:!0}},text:{123:{name:"mdxTextExpression",tokenize:l}}};function u(c,f,d){const x=this;return b;function b(S){return T(S)}function T(S){return zs.call(x,c,A,"mdxFlowExpression","mdxFlowExpressionMarker","mdxFlowExpressionChunk",n,s,r,i,a)(S)}function A(S){return Ye(S)?Xe(c,C,"whitespace")(S):C(S)}function C(S){const I=x.parser.constructs.flow[60],q=(Array.isArray(I)?I:I?[I]:[]).find(function(O){return O.name==="mdxJsxFlowTag"});return S===60&&q?c.attempt(q,C,d)(S):S===null||_e(S)?f(S):d(S)}}function l(c,f){const d=this;return x;function x(b){return zs.call(d,c,f,"mdxTextExpression","mdxTextExpressionMarker","mdxTextExpressionChunk",n,s,r,i,a,!0)(b)}}}const j0="https://github.com/micromark/micromark-extension-mdx-jsx";function Qf(e,t,r,n,i,a,s,u,l,c,f,d,x,b,T,A,C,S,I,D,q,O,g,P,G,K,Y,re,ee,be,oe,ne){const Se=this;let Ie,Oe;return qe;function qe(N){return e.enter(u),e.enter(l),e.consume(N),e.exit(l),F}function F(N){return nt(N)?r(N):(Ie=We,et(N))}function We(N){if(N===47)return e.enter(c),e.consume(N),e.exit(c),Ie=Ge,et;if(N===62)return It(N);if(N!==null&&N>=0&&Zr(N))return e.enter(d),e.enter(x),e.consume(N),H;te(N,"before name","a character that can start a name, such as a letter, `$`, or `_`"+(N===33?" (note: to create a comment in MDX, use `{/* text */}`)":""))}function Ge(N){if(N===62)return It(N);if(N!==null&&N>=0&&Zr(N))return e.enter(d),e.enter(x),e.consume(N),H;te(N,"before name","a character that can start a name, such as a letter, `$`, or `_`"+(N===42||N===47?" (note: JS comments in JSX tags are not supported in MDX)":""))}function H(N){if(N!==null&&N>=0&&ca(N,{jsx:!0}))return e.consume(N),H;if(N===46||N===47||N===58||N===62||N===123||nt(N)||gr(N))return e.exit(x),Ie=xt,et(N);te(N,"in name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(N===64?" (note: to create a link in MDX, use `[text](url)`)":""))}function xt(N){if(N===46)return e.enter(b),e.consume(N),e.exit(b),Ie=Nt,et;if(N===58)return e.enter(A),e.consume(N),e.exit(A),Ie=Vt,et;if(N===47||N===62||N===123||N!==null&&N>=0&&Zr(N))return e.exit(d),_t(N);te(N,"after name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function Nt(N){if(N!==null&&N>=0&&Zr(N))return e.enter(T),e.consume(N),ut;te(N,"before member name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function ut(N){if(N!==null&&N>=0&&ca(N,{jsx:!0}))return e.consume(N),ut;if(N===46||N===47||N===62||N===123||nt(N)||gr(N))return e.exit(T),Ie=Ht,et(N);te(N,"in member name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(N===64?" (note: to create a link in MDX, use `[text](url)`)":""))}function Ht(N){if(N===46)return e.enter(b),e.consume(N),e.exit(b),Ie=Nt,et;if(N===47||N===62||N===123||N!==null&&N>=0&&Zr(N))return e.exit(d),_t(N);te(N,"after member name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function Vt(N){if(N!==null&&N>=0&&Zr(N))return e.enter(C),e.consume(N),yt;te(N,"before local name","a character that can start a name, such as a letter, `$`, or `_`"+(N===43||N!==null&&N>46&&N<58?" (note: to create a link in MDX, use `[text](url)`)":""))}function yt(N){if(N!==null&&N>=0&&ca(N,{jsx:!0}))return e.consume(N),yt;if(N===47||N===62||N===123||nt(N)||gr(N))return e.exit(C),Ie=vt,et(N);te(N,"in local name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag")}function vt(N){if(N===47||N===62||N===123||N!==null&&N>=0&&Zr(N))return e.exit(d),_t(N);te(N,"after local name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function _t(N){if(N===47)return e.enter(f),e.consume(N),e.exit(f),Ie=jr,et;if(N===62)return It(N);if(N===123)return zs.call(Se,e,Nr,S,I,D,n,i,a,!0,!1,s)(N);if(N!==null&&N>=0&&Zr(N))return e.enter(q),e.enter(O),e.enter(g),e.consume(N),er;te(N,"before attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function Nr(N){return Ie=_t,et(N)}function er(N){if(N!==null&&N>=0&&ca(N,{jsx:!0}))return e.consume(N),er;if(N===47||N===58||N===61||N===62||N===123||nt(N)||gr(N))return e.exit(g),Ie=lr,et(N);te(N,"in attribute name","an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function lr(N){if(N===58)return e.enter(P),e.consume(N),e.exit(P),Ie=cr,et;if(N===61)return e.exit(O),e.enter(K),e.consume(N),e.exit(K),Ie=Bt,et;if(N===47||N===62||N===123||nt(N)||gr(N)||N!==null&&N>=0&&Zr(N))return e.exit(O),e.exit(q),Ie=_t,et(N);te(N,"after attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function cr(N){if(N!==null&&N>=0&&Zr(N))return e.enter(G),e.consume(N),Qe;te(N,"before local attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function Qe(N){if(N!==null&&N>=0&&ca(N,{jsx:!0}))return e.consume(N),Qe;if(N===47||N===61||N===62||N===123||nt(N)||gr(N))return e.exit(G),e.exit(O),Ie=Pt,et(N);te(N,"in local attribute name","an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function Pt(N){if(N===61)return e.enter(K),e.consume(N),e.exit(K),Ie=Bt,et;if(N===47||N===62||N===123||N!==null&&N>=0&&Zr(N))return e.exit(q),_t(N);te(N,"after local attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function Bt(N){if(N===34||N===39)return e.enter(Y),e.enter(re),e.consume(N),e.exit(re),Oe=N,Jt;if(N===123)return zs.call(Se,e,tr,be,oe,ne,n,i,a,!1,!1,s)(N);te(N,"before attribute value","a character that can start an attribute value, such as `\"`, `'`, or `{`"+(N===60?" (note: to use an element or fragment as a prop value in MDX, use `{<element />}`)":""))}function tr(N){return e.exit(q),Ie=_t,et(N)}function Jt(N){return N===null&&te(N,"in attribute value","a corresponding closing quote `"+String.fromCodePoint(Oe)+"`"),N===Oe?(e.enter(re),e.consume(N),e.exit(re),e.exit(Y),e.exit(q),Oe=void 0,Ie=_t,et):_e(N)?(Ie=Jt,et(N)):(e.enter(ee),Ir(N))}function Ir(N){return N===null||N===Oe||_e(N)?(e.exit(ee),Jt(N)):(e.consume(N),Ir)}function jr(N){if(N===62)return It(N);te(N,"after self-closing slash","`>` to end the tag"+(N===42||N===47?" (note: JS comments in JSX tags are not supported in MDX)":""))}function It(N){return e.enter(l),e.consume(N),e.exit(l),e.exit(u),t}function et(N){return _e(N)?(e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),Z):Ye(N)||gr(N)?(e.enter("esWhitespace"),Or(N)):Ie(N)}function Or(N){return _e(N)?(e.exit("esWhitespace"),et(N)):Ye(N)||gr(N)?(e.consume(N),Or):(e.exit("esWhitespace"),Ie(N))}function Z(N){if(!s&&Se.parser.lazy[Se.now().line]){const Ce=new st("Unexpected lazy line in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",Se.now(),"micromark-extension-mdx-jsx:unexpected-lazy");throw Ce.url=j0+"#unexpected-lazy-line-in-container-expected-line-to-be",Ce}return et(N)}function te(N,Ce,it){const Ft=new st("Unexpected "+(N===null?"end of file":"character `"+(N===96?"` ` `":String.fromCodePoint(N))+"` ("+J2(N)+")")+" "+Ce+", expected "+it,Se.now(),"micromark-extension-mdx-jsx:unexpected-"+(N===null?"eof":"character"));throw Ft.url=j0+(N===null?"#unexpected-end-of-file-at-expected-expect":"#unexpected-character-at-expected-expect"),Ft}}function J2(e){return"U+"+e.toString(16).toUpperCase().padStart(4,"0")}function Q2(e,t){return{name:"mdxJsxTextTag",tokenize:r};function r(n,i,a){return Qf.call(this,n,i,a,e,t.acornOptions,t.addResult,!0,"mdxJsxTextTag","mdxJsxTextTagMarker","mdxJsxTextTagClosingMarker","mdxJsxTextTagSelfClosingMarker","mdxJsxTextTagName","mdxJsxTextTagNamePrimary","mdxJsxTextTagNameMemberMarker","mdxJsxTextTagNameMember","mdxJsxTextTagNamePrefixMarker","mdxJsxTextTagNameLocal","mdxJsxTextTagExpressionAttribute","mdxJsxTextTagExpressionAttributeMarker","mdxJsxTextTagExpressionAttributeValue","mdxJsxTextTagAttribute","mdxJsxTextTagAttributeName","mdxJsxTextTagAttributeNamePrimary","mdxJsxTextTagAttributeNamePrefixMarker","mdxJsxTextTagAttributeNameLocal","mdxJsxTextTagAttributeInitializerMarker","mdxJsxTextTagAttributeValueLiteral","mdxJsxTextTagAttributeValueLiteralMarker","mdxJsxTextTagAttributeValueLiteralValue","mdxJsxTextTagAttributeValueExpression","mdxJsxTextTagAttributeValueExpressionMarker","mdxJsxTextTagAttributeValueExpressionValue")}}function Z2(e,t){return{concrete:!0,name:"mdxJsxFlowTag",tokenize:r};function r(n,i,a){const s=this;return u;function u(d){return l(d)}function l(d){return Qf.call(s,n,c,a,e,t.acornOptions,t.addResult,!1,"mdxJsxFlowTag","mdxJsxFlowTagMarker","mdxJsxFlowTagClosingMarker","mdxJsxFlowTagSelfClosingMarker","mdxJsxFlowTagName","mdxJsxFlowTagNamePrimary","mdxJsxFlowTagNameMemberMarker","mdxJsxFlowTagNameMember","mdxJsxFlowTagNamePrefixMarker","mdxJsxFlowTagNameLocal","mdxJsxFlowTagExpressionAttribute","mdxJsxFlowTagExpressionAttributeMarker","mdxJsxFlowTagExpressionAttributeValue","mdxJsxFlowTagAttribute","mdxJsxFlowTagAttributeName","mdxJsxFlowTagAttributeNamePrimary","mdxJsxFlowTagAttributeNamePrefixMarker","mdxJsxFlowTagAttributeNameLocal","mdxJsxFlowTagAttributeInitializerMarker","mdxJsxFlowTagAttributeValueLiteral","mdxJsxFlowTagAttributeValueLiteralMarker","mdxJsxFlowTagAttributeValueLiteralValue","mdxJsxFlowTagAttributeValueExpression","mdxJsxFlowTagAttributeValueExpressionMarker","mdxJsxFlowTagAttributeValueExpressionValue")(d)}function c(d){return Ye(d)?Xe(n,f,"whitespace")(d):f(d)}function f(d){const x=s.parser.constructs.flow[123],b=Array.isArray(x)?x:x?[x]:[];let T;for(const A of b)if(A.name==="mdxFlowExpression"){T=A;break}return d===60?u(d):d===123&&T?n.attempt(T,f,a)(d):d===null||_e(d)?i(d):a(d)}}}function eb(e){const t=e||{},r=t.acorn;let n;if(r){if(!r.parse||!r.parseExpressionAt)throw new Error("Expected a proper `acorn` instance passed in as `options.acorn`");n=Object.assign({ecmaVersion:2024,sourceType:"module"},t.acornOptions,{locations:!0})}else if(t.acornOptions||t.addResult)throw new Error("Expected an `acorn` instance passed in as `options.acorn`");return{flow:{60:Z2(r||void 0,{acornOptions:n,addResult:t.addResult||void 0})},text:{60:Q2(r||void 0,{acornOptions:n,addResult:t.addResult||void 0})}}}function tb(){return{disable:{null:["autolink","codeIndented","htmlFlow","htmlText"]}}}function Mr(e,t,r,n){const i=e.length;let a=0,s;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,r=r>0?r:0,n.length<1e4)s=Array.from(n),s.unshift(t,r),e.splice(...s);else for(r&&e.splice(t,r);a<n.length;)s=n.slice(a,a+1e4),s.unshift(t,0),e.splice(...s),a+=1e4,t+=1e4}function Gr(e,t){return e.length>0?(Mr(e,e.length,0,t),e):t}function Bi(e){if(e===null||nt(e)||gr(e))return 1;if(uo(e))return 2}function lo(e,t,r){const n=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!n.includes(a)&&(t=a(t,r),n.push(a))}return t}const Uu={name:"attention",resolveAll:rb,tokenize:nb};function rb(e,t){let r=-1,n,i,a,s,u,l,c,f;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(n=r;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[n][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;l=e[n][1].end.offset-e[n][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const d={...e[n][1].end},x={...e[r][1].start};J0(d,-l),J0(x,l),s={type:l>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},u={type:l>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:x},a={type:l>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[r][1].start}},i={type:l>1?"strong":"emphasis",start:{...s.start},end:{...u.end}},e[n][1].end={...s.start},e[r][1].start={...u.end},c=[],e[n][1].end.offset-e[n][1].start.offset&&(c=Gr(c,[["enter",e[n][1],t],["exit",e[n][1],t]])),c=Gr(c,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",a,t]]),c=Gr(c,lo(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),c=Gr(c,[["exit",a,t],["enter",u,t],["exit",u,t],["exit",i,t]]),e[r][1].end.offset-e[r][1].start.offset?(f=2,c=Gr(c,[["enter",e[r][1],t],["exit",e[r][1],t]])):f=0,Mr(e,n-1,r-n+3,c),r=n+c.length-f-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function nb(e,t){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,i=Bi(n);let a;return s;function s(l){return a=l,e.enter("attentionSequence"),u(l)}function u(l){if(l===a)return e.consume(l),u;const c=e.exit("attentionSequence"),f=Bi(l),d=!f||f===2&&i||r.includes(l),x=!i||i===2&&f||r.includes(n);return c._open=!!(a===42?d:d&&(i||!x)),c._close=!!(a===42?x:x&&(f||!d)),t(l)}}function J0(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const ib={name:"autolink",tokenize:ab};function ab(e,t,r){let n=0;return i;function i(b){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(b){return ar(b)?(e.consume(b),s):b===64?r(b):c(b)}function s(b){return b===43||b===45||b===46||sr(b)?(n=1,u(b)):c(b)}function u(b){return b===58?(e.consume(b),n=0,l):(b===43||b===45||b===46||sr(b))&&n++<32?(e.consume(b),u):(n=0,c(b))}function l(b){return b===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.exit("autolink"),t):b===null||b===32||b===60||Us(b)?r(b):(e.consume(b),l)}function c(b){return b===64?(e.consume(b),f):M2(b)?(e.consume(b),c):r(b)}function f(b){return sr(b)?d(b):r(b)}function d(b){return b===46?(e.consume(b),n=0,f):b===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.exit("autolink"),t):x(b)}function x(b){if((b===45||sr(b))&&n++<63){const T=b===45?x:d;return e.consume(b),T}return r(b)}}const Ki={partial:!0,tokenize:sb};function sb(e,t,r){return n;function n(a){return Ye(a)?Xe(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||_e(a)?t(a):r(a)}}const Zf={continuation:{tokenize:ub},exit:lb,name:"blockQuote",tokenize:ob};function ob(e,t,r){const n=this;return i;function i(s){if(s===62){const u=n.containerState;return u.open||(e.enter("blockQuote",{_container:!0}),u.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),a}return r(s)}function a(s){return Ye(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function ub(e,t,r){const n=this;return i;function i(s){return Ye(s)?Xe(e,a,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):a(s)}function a(s){return e.attempt(Zf,t,r)(s)}}function lb(e){e.exit("blockQuote")}const ed={name:"characterEscape",tokenize:cb};function cb(e,t,r){return n;function n(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),i}function i(a){return P2(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(a)}}const td={name:"characterReference",tokenize:hb};function hb(e,t,r){const n=this;let i=0,a,s;return u;function u(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),l}function l(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),a=31,s=sr,f(d))}function c(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,s=D2,f):(e.enter("characterReferenceValue"),a=7,s=Fu,f(d))}function f(d){if(d===59&&i){const x=e.exit("characterReferenceValue");return s===sr&&!Ra(n.sliceSerialize(x))?r(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(d)&&i++<a?(e.consume(d),f):r(d)}}const Q0={partial:!0,tokenize:db},Z0={concrete:!0,name:"codeFenced",tokenize:fb};function fb(e,t,r){const n=this,i={partial:!0,tokenize:O};let a=0,s=0,u;return l;function l(g){return c(g)}function c(g){const P=n.events[n.events.length-1];return a=P&&P[1].type==="linePrefix"?P[2].sliceSerialize(P[1],!0).length:0,u=g,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(g)}function f(g){return g===u?(s++,e.consume(g),f):s<3?r(g):(e.exit("codeFencedFenceSequence"),Ye(g)?Xe(e,d,"whitespace")(g):d(g))}function d(g){return g===null||_e(g)?(e.exit("codeFencedFence"),n.interrupt?t(g):e.check(Q0,A,q)(g)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),x(g))}function x(g){return g===null||_e(g)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(g)):Ye(g)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Xe(e,b,"whitespace")(g)):g===96&&g===u?r(g):(e.consume(g),x)}function b(g){return g===null||_e(g)?d(g):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),T(g))}function T(g){return g===null||_e(g)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(g)):g===96&&g===u?r(g):(e.consume(g),T)}function A(g){return e.attempt(i,q,C)(g)}function C(g){return e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),S}function S(g){return a>0&&Ye(g)?Xe(e,I,"linePrefix",a+1)(g):I(g)}function I(g){return g===null||_e(g)?e.check(Q0,A,q)(g):(e.enter("codeFlowValue"),D(g))}function D(g){return g===null||_e(g)?(e.exit("codeFlowValue"),I(g)):(e.consume(g),D)}function q(g){return e.exit("codeFenced"),t(g)}function O(g,P,G){let K=0;return Y;function Y(ne){return g.enter("lineEnding"),g.consume(ne),g.exit("lineEnding"),re}function re(ne){return g.enter("codeFencedFence"),Ye(ne)?Xe(g,ee,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ne):ee(ne)}function ee(ne){return ne===u?(g.enter("codeFencedFenceSequence"),be(ne)):G(ne)}function be(ne){return ne===u?(K++,g.consume(ne),be):K>=s?(g.exit("codeFencedFenceSequence"),Ye(ne)?Xe(g,oe,"whitespace")(ne):oe(ne)):G(ne)}function oe(ne){return ne===null||_e(ne)?(g.exit("codeFencedFence"),P(ne)):G(ne)}}}function db(e,t,r){const n=this;return i;function i(s){return s===null?r(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return n.parser.lazy[n.now().line]?r(s):t(s)}}const jo={name:"codeIndented",tokenize:mb},pb={partial:!0,tokenize:gb};function mb(e,t,r){const n=this;return i;function i(c){return e.enter("codeIndented"),Xe(e,a,"linePrefix",5)(c)}function a(c){const f=n.events[n.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?s(c):r(c)}function s(c){return c===null?l(c):_e(c)?e.attempt(pb,s,l)(c):(e.enter("codeFlowValue"),u(c))}function u(c){return c===null||_e(c)?(e.exit("codeFlowValue"),s(c)):(e.consume(c),u)}function l(c){return e.exit("codeIndented"),t(c)}}function gb(e,t,r){const n=this;return i;function i(s){return n.parser.lazy[n.now().line]?r(s):_e(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):Xe(e,a,"linePrefix",5)(s)}function a(s){const u=n.events[n.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(s):_e(s)?i(s):r(s)}}const bb={name:"codeText",previous:Eb,resolve:xb,tokenize:yb};function xb(e){let t=e.length-4,r=3,n,i;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)i===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(i=n):(n===t||e[n][1].type==="lineEnding")&&(e[i][1].type="codeTextData",n!==i+2&&(e[i][1].end=e[n-1][1].end,e.splice(i+2,n-i-2),t-=n-i-2,n=i+2),i=void 0);return e}function Eb(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function yb(e,t,r){let n=0,i,a;return s;function s(d){return e.enter("codeText"),e.enter("codeTextSequence"),u(d)}function u(d){return d===96?(e.consume(d),n++,u):(e.exit("codeTextSequence"),l(d))}function l(d){return d===null?r(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),l):d===96?(a=e.enter("codeTextSequence"),i=0,f(d)):_e(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),l):(e.enter("codeTextData"),c(d))}function c(d){return d===null||d===32||d===96||_e(d)?(e.exit("codeTextData"),l(d)):(e.consume(d),c)}function f(d){return d===96?(e.consume(d),i++,f):i===n?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(a.type="codeTextData",c(d))}}class vb{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){const n=r??Number.POSITIVE_INFINITY;return n<this.left.length?this.left.slice(t,n):t>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(t,r,n){const i=r||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return n&&da(this.left,n),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),da(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),da(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const r=this.left.splice(t,Number.POSITIVE_INFINITY);da(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);da(this.left,r.reverse())}}}function da(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function rd(e){const t={};let r=-1,n,i,a,s,u,l,c;const f=new vb(e);for(;++r<f.length;){for(;r in t;)r=t[r];if(n=f.get(r),r&&n[1].type==="chunkFlow"&&f.get(r-1)[1].type==="listItemPrefix"&&(l=n[1]._tokenizer.events,a=0,a<l.length&&l[a][1].type==="lineEndingBlank"&&(a+=2),a<l.length&&l[a][1].type==="content"))for(;++a<l.length&&l[a][1].type!=="content";)l[a][1].type==="chunkText"&&(l[a][1]._isInFirstContentOfListItem=!0,a++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,Tb(f,r)),r=t[r],c=!0);else if(n[1]._container){for(a=r,i=void 0;a--;)if(s=f.get(a),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),s[1].type="lineEnding",i=a);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;i&&(n[1].end={...f.get(i)[1].start},u=f.slice(i,r),u.unshift(n),f.splice(i,r-i+1,u))}}return Mr(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!c}function Tb(e,t){const r=e.get(t)[1],n=e.get(t)[2];let i=t-1;const a=[];let s=r._tokenizer;s||(s=n.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const u=s.events,l=[],c={};let f,d,x=-1,b=r,T=0,A=0;const C=[A];for(;b;){for(;e.get(++i)[1]!==b;);a.push(i),b._tokenizer||(f=n.sliceStream(b),b.next||f.push(null),d&&s.defineSkip(b.start),b._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(f),b._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),d=b,b=b.next}for(b=r;++x<u.length;)u[x][0]==="exit"&&u[x-1][0]==="enter"&&u[x][1].type===u[x-1][1].type&&u[x][1].start.line!==u[x][1].end.line&&(A=x+1,C.push(A),b._tokenizer=void 0,b.previous=void 0,b=b.next);for(s.events=[],b?(b._tokenizer=void 0,b.previous=void 0):C.pop(),x=C.length;x--;){const S=u.slice(C[x],C[x+1]),I=a.pop();l.push([I,I+S.length-1]),e.splice(I,2,S)}for(l.reverse(),x=-1;++x<l.length;)c[T+l[x][0]]=T+l[x][1],T+=l[x][1]-l[x][0]-1;return c}const _b={resolve:Sb,tokenize:wb},Ab={partial:!0,tokenize:kb};function Sb(e){return rd(e),e}function wb(e,t){let r;return n;function n(u){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),i(u)}function i(u){return u===null?a(u):_e(u)?e.check(Ab,s,a)(u):(e.consume(u),i)}function a(u){return e.exit("chunkContent"),e.exit("content"),t(u)}function s(u){return e.consume(u),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,i}}function kb(e,t,r){const n=this;return i;function i(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Xe(e,a,"linePrefix")}function a(s){if(s===null||_e(s))return r(s);const u=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(s):e.interrupt(n.parser.constructs.flow,r,t)(s)}}function nd(e,t,r,n,i,a,s,u,l){const c=l||Number.POSITIVE_INFINITY;let f=0;return d;function d(S){return S===60?(e.enter(n),e.enter(i),e.enter(a),e.consume(S),e.exit(a),x):S===null||S===32||S===41||Us(S)?r(S):(e.enter(n),e.enter(s),e.enter(u),e.enter("chunkString",{contentType:"string"}),A(S))}function x(S){return S===62?(e.enter(a),e.consume(S),e.exit(a),e.exit(i),e.exit(n),t):(e.enter(u),e.enter("chunkString",{contentType:"string"}),b(S))}function b(S){return S===62?(e.exit("chunkString"),e.exit(u),x(S)):S===null||S===60||_e(S)?r(S):(e.consume(S),S===92?T:b)}function T(S){return S===60||S===62||S===92?(e.consume(S),b):b(S)}function A(S){return!f&&(S===null||S===41||nt(S))?(e.exit("chunkString"),e.exit(u),e.exit(s),e.exit(n),t(S)):f<c&&S===40?(e.consume(S),f++,A):S===41?(e.consume(S),f--,A):S===null||S===32||S===40||Us(S)?r(S):(e.consume(S),S===92?C:A)}function C(S){return S===40||S===41||S===92?(e.consume(S),A):A(S)}}function id(e,t,r,n,i,a){const s=this;let u=0,l;return c;function c(b){return e.enter(n),e.enter(i),e.consume(b),e.exit(i),e.enter(a),f}function f(b){return u>999||b===null||b===91||b===93&&!l||b===94&&!u&&"_hiddenFootnoteSupport"in s.parser.constructs?r(b):b===93?(e.exit(a),e.enter(i),e.consume(b),e.exit(i),e.exit(n),t):_e(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),d(b))}function d(b){return b===null||b===91||b===93||_e(b)||u++>999?(e.exit("chunkString"),f(b)):(e.consume(b),l||(l=!Ye(b)),b===92?x:d)}function x(b){return b===91||b===92||b===93?(e.consume(b),u++,d):d(b)}}function ad(e,t,r,n,i,a){let s;return u;function u(x){return x===34||x===39||x===40?(e.enter(n),e.enter(i),e.consume(x),e.exit(i),s=x===40?41:x,l):r(x)}function l(x){return x===s?(e.enter(i),e.consume(x),e.exit(i),e.exit(n),t):(e.enter(a),c(x))}function c(x){return x===s?(e.exit(a),l(s)):x===null?r(x):_e(x)?(e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),Xe(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(x))}function f(x){return x===s||x===null||_e(x)?(e.exit("chunkString"),c(x)):(e.consume(x),x===92?d:f)}function d(x){return x===s||x===92?(e.consume(x),f):f(x)}}function _a(e,t){let r;return n;function n(i){return _e(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n):Ye(i)?Xe(e,n,r?"linePrefix":"lineSuffix")(i):t(i)}}function tn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Cb={name:"definition",tokenize:Ib},Nb={partial:!0,tokenize:Ob};function Ib(e,t,r){const n=this;let i;return a;function a(b){return e.enter("definition"),s(b)}function s(b){return id.call(n,e,u,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(b)}function u(b){return i=tn(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),l):r(b)}function l(b){return nt(b)?_a(e,c)(b):c(b)}function c(b){return nd(e,f,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(b)}function f(b){return e.attempt(Nb,d,d)(b)}function d(b){return Ye(b)?Xe(e,x,"whitespace")(b):x(b)}function x(b){return b===null||_e(b)?(e.exit("definition"),n.parser.defined.push(i),t(b)):r(b)}}function Ob(e,t,r){return n;function n(u){return nt(u)?_a(e,i)(u):r(u)}function i(u){return ad(e,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function a(u){return Ye(u)?Xe(e,s,"whitespace")(u):s(u)}function s(u){return u===null||_e(u)?t(u):r(u)}}const Rb={name:"hardBreakEscape",tokenize:Lb};function Lb(e,t,r){return n;function n(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return _e(a)?(e.exit("hardBreakEscape"),t(a)):r(a)}}const Mb={name:"headingAtx",resolve:Db,tokenize:Pb};function Db(e,t){let r=e.length-2,n=3,i,a;return e[n][1].type==="whitespace"&&(n+=2),r-2>n&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&e[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(i={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},a={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},Mr(e,n,r-n+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function Pb(e,t,r){let n=0;return i;function i(f){return e.enter("atxHeading"),a(f)}function a(f){return e.enter("atxHeadingSequence"),s(f)}function s(f){return f===35&&n++<6?(e.consume(f),s):f===null||nt(f)?(e.exit("atxHeadingSequence"),u(f)):r(f)}function u(f){return f===35?(e.enter("atxHeadingSequence"),l(f)):f===null||_e(f)?(e.exit("atxHeading"),t(f)):Ye(f)?Xe(e,u,"whitespace")(f):(e.enter("atxHeadingText"),c(f))}function l(f){return f===35?(e.consume(f),l):(e.exit("atxHeadingSequence"),u(f))}function c(f){return f===null||f===35||nt(f)?(e.exit("atxHeadingText"),u(f)):(e.consume(f),c)}}const Bb=["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"],ec=["pre","script","style","textarea"],Fb={concrete:!0,name:"htmlFlow",resolveTo:Hb,tokenize:Vb},Ub={partial:!0,tokenize:Gb},zb={partial:!0,tokenize:qb};function Hb(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 Vb(e,t,r){const n=this;let i,a,s,u,l;return c;function c(H){return f(H)}function f(H){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(H),d}function d(H){return H===33?(e.consume(H),x):H===47?(e.consume(H),a=!0,A):H===63?(e.consume(H),i=3,n.interrupt?t:F):ar(H)?(e.consume(H),s=String.fromCharCode(H),C):r(H)}function x(H){return H===45?(e.consume(H),i=2,b):H===91?(e.consume(H),i=5,u=0,T):ar(H)?(e.consume(H),i=4,n.interrupt?t:F):r(H)}function b(H){return H===45?(e.consume(H),n.interrupt?t:F):r(H)}function T(H){const xt="CDATA[";return H===xt.charCodeAt(u++)?(e.consume(H),u===xt.length?n.interrupt?t:ee:T):r(H)}function A(H){return ar(H)?(e.consume(H),s=String.fromCharCode(H),C):r(H)}function C(H){if(H===null||H===47||H===62||nt(H)){const xt=H===47,Nt=s.toLowerCase();return!xt&&!a&&ec.includes(Nt)?(i=1,n.interrupt?t(H):ee(H)):Bb.includes(s.toLowerCase())?(i=6,xt?(e.consume(H),S):n.interrupt?t(H):ee(H)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(H):a?I(H):D(H))}return H===45||sr(H)?(e.consume(H),s+=String.fromCharCode(H),C):r(H)}function S(H){return H===62?(e.consume(H),n.interrupt?t:ee):r(H)}function I(H){return Ye(H)?(e.consume(H),I):Y(H)}function D(H){return H===47?(e.consume(H),Y):H===58||H===95||ar(H)?(e.consume(H),q):Ye(H)?(e.consume(H),D):Y(H)}function q(H){return H===45||H===46||H===58||H===95||sr(H)?(e.consume(H),q):O(H)}function O(H){return H===61?(e.consume(H),g):Ye(H)?(e.consume(H),O):D(H)}function g(H){return H===null||H===60||H===61||H===62||H===96?r(H):H===34||H===39?(e.consume(H),l=H,P):Ye(H)?(e.consume(H),g):G(H)}function P(H){return H===l?(e.consume(H),l=null,K):H===null||_e(H)?r(H):(e.consume(H),P)}function G(H){return H===null||H===34||H===39||H===47||H===60||H===61||H===62||H===96||nt(H)?O(H):(e.consume(H),G)}function K(H){return H===47||H===62||Ye(H)?D(H):r(H)}function Y(H){return H===62?(e.consume(H),re):r(H)}function re(H){return H===null||_e(H)?ee(H):Ye(H)?(e.consume(H),re):r(H)}function ee(H){return H===45&&i===2?(e.consume(H),Se):H===60&&i===1?(e.consume(H),Ie):H===62&&i===4?(e.consume(H),We):H===63&&i===3?(e.consume(H),F):H===93&&i===5?(e.consume(H),qe):_e(H)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Ub,Ge,be)(H)):H===null||_e(H)?(e.exit("htmlFlowData"),be(H)):(e.consume(H),ee)}function be(H){return e.check(zb,oe,Ge)(H)}function oe(H){return e.enter("lineEnding"),e.consume(H),e.exit("lineEnding"),ne}function ne(H){return H===null||_e(H)?be(H):(e.enter("htmlFlowData"),ee(H))}function Se(H){return H===45?(e.consume(H),F):ee(H)}function Ie(H){return H===47?(e.consume(H),s="",Oe):ee(H)}function Oe(H){if(H===62){const xt=s.toLowerCase();return ec.includes(xt)?(e.consume(H),We):ee(H)}return ar(H)&&s.length<8?(e.consume(H),s+=String.fromCharCode(H),Oe):ee(H)}function qe(H){return H===93?(e.consume(H),F):ee(H)}function F(H){return H===62?(e.consume(H),We):H===45&&i===2?(e.consume(H),F):ee(H)}function We(H){return H===null||_e(H)?(e.exit("htmlFlowData"),Ge(H)):(e.consume(H),We)}function Ge(H){return e.exit("htmlFlow"),t(H)}}function qb(e,t,r){const n=this;return i;function i(s){return _e(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):r(s)}function a(s){return n.parser.lazy[n.now().line]?r(s):t(s)}}function Gb(e,t,r){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Ki,t,r)}}const Yb={name:"htmlText",tokenize:Wb};function Wb(e,t,r){const n=this;let i,a,s;return u;function u(F){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(F),l}function l(F){return F===33?(e.consume(F),c):F===47?(e.consume(F),O):F===63?(e.consume(F),D):ar(F)?(e.consume(F),G):r(F)}function c(F){return F===45?(e.consume(F),f):F===91?(e.consume(F),a=0,T):ar(F)?(e.consume(F),I):r(F)}function f(F){return F===45?(e.consume(F),b):r(F)}function d(F){return F===null?r(F):F===45?(e.consume(F),x):_e(F)?(s=d,Ie(F)):(e.consume(F),d)}function x(F){return F===45?(e.consume(F),b):d(F)}function b(F){return F===62?Se(F):F===45?x(F):d(F)}function T(F){const We="CDATA[";return F===We.charCodeAt(a++)?(e.consume(F),a===We.length?A:T):r(F)}function A(F){return F===null?r(F):F===93?(e.consume(F),C):_e(F)?(s=A,Ie(F)):(e.consume(F),A)}function C(F){return F===93?(e.consume(F),S):A(F)}function S(F){return F===62?Se(F):F===93?(e.consume(F),S):A(F)}function I(F){return F===null||F===62?Se(F):_e(F)?(s=I,Ie(F)):(e.consume(F),I)}function D(F){return F===null?r(F):F===63?(e.consume(F),q):_e(F)?(s=D,Ie(F)):(e.consume(F),D)}function q(F){return F===62?Se(F):D(F)}function O(F){return ar(F)?(e.consume(F),g):r(F)}function g(F){return F===45||sr(F)?(e.consume(F),g):P(F)}function P(F){return _e(F)?(s=P,Ie(F)):Ye(F)?(e.consume(F),P):Se(F)}function G(F){return F===45||sr(F)?(e.consume(F),G):F===47||F===62||nt(F)?K(F):r(F)}function K(F){return F===47?(e.consume(F),Se):F===58||F===95||ar(F)?(e.consume(F),Y):_e(F)?(s=K,Ie(F)):Ye(F)?(e.consume(F),K):Se(F)}function Y(F){return F===45||F===46||F===58||F===95||sr(F)?(e.consume(F),Y):re(F)}function re(F){return F===61?(e.consume(F),ee):_e(F)?(s=re,Ie(F)):Ye(F)?(e.consume(F),re):K(F)}function ee(F){return F===null||F===60||F===61||F===62||F===96?r(F):F===34||F===39?(e.consume(F),i=F,be):_e(F)?(s=ee,Ie(F)):Ye(F)?(e.consume(F),ee):(e.consume(F),oe)}function be(F){return F===i?(e.consume(F),i=void 0,ne):F===null?r(F):_e(F)?(s=be,Ie(F)):(e.consume(F),be)}function oe(F){return F===null||F===34||F===39||F===60||F===61||F===96?r(F):F===47||F===62||nt(F)?K(F):(e.consume(F),oe)}function ne(F){return F===47||F===62||nt(F)?K(F):r(F)}function Se(F){return F===62?(e.consume(F),e.exit("htmlTextData"),e.exit("htmlText"),t):r(F)}function Ie(F){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),Oe}function Oe(F){return Ye(F)?Xe(e,qe,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):qe(F)}function qe(F){return e.enter("htmlTextData"),s(F)}}const Cl={name:"labelEnd",resolveAll:jb,resolveTo:Jb,tokenize:Qb},$b={tokenize:Zb},Kb={tokenize:e4},Xb={tokenize:t4};function jb(e){let t=-1;const r=[];for(;++t<e.length;){const n=e[t][1];if(r.push(e[t]),n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd"){const i=n.type==="labelImage"?4:2;n.type="data",t+=i}}return e.length!==r.length&&Mr(e,0,e.length,r),e}function Jb(e,t){let r=e.length,n=0,i,a,s,u;for(;r--;)if(i=e[r][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[r][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(s){if(e[r][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=r,i.type!=="labelLink")){n=2;break}}else i.type==="labelEnd"&&(s=r);const l={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[a][1].start},end:{...e[s][1].end}},f={type:"labelText",start:{...e[a+n+2][1].end},end:{...e[s-2][1].start}};return u=[["enter",l,t],["enter",c,t]],u=Gr(u,e.slice(a+1,a+n+3)),u=Gr(u,[["enter",f,t]]),u=Gr(u,lo(t.parser.constructs.insideSpan.null,e.slice(a+n+4,s-3),t)),u=Gr(u,[["exit",f,t],e[s-2],e[s-1],["exit",c,t]]),u=Gr(u,e.slice(s+1)),u=Gr(u,[["exit",l,t]]),Mr(e,a,e.length,u),e}function Qb(e,t,r){const n=this;let i=n.events.length,a,s;for(;i--;)if((n.events[i][1].type==="labelImage"||n.events[i][1].type==="labelLink")&&!n.events[i][1]._balanced){a=n.events[i][1];break}return u;function u(x){return a?a._inactive?d(x):(s=n.parser.defined.includes(tn(n.sliceSerialize({start:a.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(x),e.exit("labelMarker"),e.exit("labelEnd"),l):r(x)}function l(x){return x===40?e.attempt($b,f,s?f:d)(x):x===91?e.attempt(Kb,f,s?c:d)(x):s?f(x):d(x)}function c(x){return e.attempt(Xb,f,d)(x)}function f(x){return t(x)}function d(x){return a._balanced=!0,r(x)}}function Zb(e,t,r){return n;function n(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),i}function i(d){return nt(d)?_a(e,a)(d):a(d)}function a(d){return d===41?f(d):nd(e,s,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function s(d){return nt(d)?_a(e,l)(d):f(d)}function u(d){return r(d)}function l(d){return d===34||d===39||d===40?ad(e,c,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):f(d)}function c(d){return nt(d)?_a(e,f)(d):f(d)}function f(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):r(d)}}function e4(e,t,r){const n=this;return i;function i(u){return id.call(n,e,a,s,"reference","referenceMarker","referenceString")(u)}function a(u){return n.parser.defined.includes(tn(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(u):r(u)}function s(u){return r(u)}}function t4(e,t,r){return n;function n(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),i}function i(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):r(a)}}const r4={name:"labelStartImage",resolveAll:Cl.resolveAll,tokenize:n4};function n4(e,t,r){const n=this;return i;function i(u){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(u),e.exit("labelImageMarker"),a}function a(u){return u===91?(e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelImage"),s):r(u)}function s(u){return u===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(u):t(u)}}const i4={name:"labelStartLink",resolveAll:Cl.resolveAll,tokenize:a4};function a4(e,t,r){const n=this;return i;function i(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),a}function a(s){return s===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(s):t(s)}}const Jo={name:"lineEnding",tokenize:s4};function s4(e,t){return r;function r(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Xe(e,t,"linePrefix")}}const Cs={name:"thematicBreak",tokenize:o4};function o4(e,t,r){let n=0,i;return a;function a(c){return e.enter("thematicBreak"),s(c)}function s(c){return i=c,u(c)}function u(c){return c===i?(e.enter("thematicBreakSequence"),l(c)):n>=3&&(c===null||_e(c))?(e.exit("thematicBreak"),t(c)):r(c)}function l(c){return c===i?(e.consume(c),n++,l):(e.exit("thematicBreakSequence"),Ye(c)?Xe(e,u,"whitespace")(c):u(c))}}const Sr={continuation:{tokenize:h4},exit:d4,name:"list",tokenize:c4},u4={partial:!0,tokenize:p4},l4={partial:!0,tokenize:f4};function c4(e,t,r){const n=this,i=n.events[n.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return u;function u(b){const T=n.containerState.type||(b===42||b===43||b===45?"listUnordered":"listOrdered");if(T==="listUnordered"?!n.containerState.marker||b===n.containerState.marker:Fu(b)){if(n.containerState.type||(n.containerState.type=T,e.enter(T,{_container:!0})),T==="listUnordered")return e.enter("listItemPrefix"),b===42||b===45?e.check(Cs,r,c)(b):c(b);if(!n.interrupt||b===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(b)}return r(b)}function l(b){return Fu(b)&&++s<10?(e.consume(b),l):(!n.interrupt||s<2)&&(n.containerState.marker?b===n.containerState.marker:b===41||b===46)?(e.exit("listItemValue"),c(b)):r(b)}function c(b){return e.enter("listItemMarker"),e.consume(b),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||b,e.check(Ki,n.interrupt?r:f,e.attempt(u4,x,d))}function f(b){return n.containerState.initialBlankLine=!0,a++,x(b)}function d(b){return Ye(b)?(e.enter("listItemPrefixWhitespace"),e.consume(b),e.exit("listItemPrefixWhitespace"),x):r(b)}function x(b){return n.containerState.size=a+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(b)}}function h4(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(Ki,i,a);function i(u){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,Xe(e,t,"listItemIndent",n.containerState.size+1)(u)}function a(u){return n.containerState.furtherBlankLines||!Ye(u)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,s(u)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(l4,t,s)(u))}function s(u){return n.containerState._closeFlow=!0,n.interrupt=void 0,Xe(e,e.attempt(Sr,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function f4(e,t,r){const n=this;return Xe(e,i,"listItemIndent",n.containerState.size+1);function i(a){const s=n.events[n.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===n.containerState.size?t(a):r(a)}}function d4(e){e.exit(this.containerState.type)}function p4(e,t,r){const n=this;return Xe(e,i,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const s=n.events[n.events.length-1];return!Ye(a)&&s&&s[1].type==="listItemPrefixWhitespace"?t(a):r(a)}}const tc={name:"setextUnderline",resolveTo:m4,tokenize:g4};function m4(e,t){let r=e.length,n,i,a;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){n=r;break}e[r][1].type==="paragraph"&&(i=r)}else e[r][1].type==="content"&&e.splice(r,1),!a&&e[r][1].type==="definition"&&(a=r);const s={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",s,t]),e.splice(a+1,0,["exit",e[n][1],t]),e[n][1].end={...e[a][1].end}):e[n][1]=s,e.push(["exit",s,t]),e}function g4(e,t,r){const n=this;let i;return a;function a(c){let f=n.events.length,d;for(;f--;)if(n.events[f][1].type!=="lineEnding"&&n.events[f][1].type!=="linePrefix"&&n.events[f][1].type!=="content"){d=n.events[f][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||d)?(e.enter("setextHeadingLine"),i=c,s(c)):r(c)}function s(c){return e.enter("setextHeadingLineSequence"),u(c)}function u(c){return c===i?(e.consume(c),u):(e.exit("setextHeadingLineSequence"),Ye(c)?Xe(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||_e(c)?(e.exit("setextHeadingLine"),t(c)):r(c)}}const b4={tokenize:y4,partial:!0},rc="https://github.com/micromark/micromark-extension-mdxjs-esm",x4=new Set(["ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ImportDeclaration"]);function E4(e){const t={tokenize:i,concrete:!0};if(!e||!e.acorn||!e.acorn.parse)throw new Error("Expected an `acorn` instance passed in as `options.acorn`");const r=e.acorn,n=Object.assign({ecmaVersion:2024,sourceType:"module"},e.acornOptions,{locations:!0});return{flow:{101:t,105:t}};function i(a,s,u){const l=this,c=l.parser.definedModuleSpecifiers||(l.parser.definedModuleSpecifiers=[]),f=this.events.length+1;let d="";return l.interrupt?u:x;function x(I){return l.now().column>1?u(I):(a.enter("mdxjsEsm"),a.enter("mdxjsEsmData"),a.consume(I),d+=String.fromCharCode(I),b)}function b(I){return ar(I)?(a.consume(I),d+=String.fromCharCode(I),b):(d==="import"||d==="export")&&I===32?(a.consume(I),T):u(I)}function T(I){return I===null||_e(I)?(a.exit("mdxjsEsmData"),A(I)):(a.consume(I),T)}function A(I){return I===null?S(I):_e(I)?a.check(b4,S,C)(I):(a.enter("mdxjsEsmData"),T(I))}function C(I){return a.enter("lineEnding"),a.consume(I),a.exit("lineEnding"),A}function S(I){const D=Jf(l.events.slice(f),{acorn:r,acornOptions:n,tokenTypes:["mdxjsEsmData"],prefix:c.length>0?"var "+c.join(",")+`
|
|
33
|
-
`:""});if(D.error){if(I!==null&&D.swallow)return C(I);const O=new st("Could not parse import/exports with acorn",{cause:D.error,place:{line:D.error.loc.line,column:D.error.loc.column+1,offset:D.error.pos},ruleId:"acorn",source:"micromark-extension-mdxjs-esm"});throw O.url=rc+"#could-not-parse-importexports-with-acorn",O}c.length>0&&D.estree.body.shift();let q=-1;for(;++q<D.estree.body.length;){const O=D.estree.body[q];if(!x4.has(O.type)){const g=new st("Unexpected `"+O.type+"` in code: only import/exports are supported",{place:ks(O),ruleId:"non-esm",source:"micromark-extension-mdxjs-esm"});throw g.url=rc+"#unexpected-type-in-code-only-importexports-are-supported",g}if(O.type==="ImportDeclaration"&&!l.interrupt){let g=-1;for(;++g<O.specifiers.length;){const P=O.specifiers[g];c.push(P.local.name)}}}return Object.assign(a.exit("mdxjsEsm"),e.addResult?{estree:D.estree}:void 0),s(I)}}}function y4(e,t,r){return n;function n(i){return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),e.attempt(Ki,t,r)}}const nc={}.hasOwnProperty;function Nl(e){const t={};let r=-1;for(;++r<e.length;)v4(t,e[r]);return t}function v4(e,t){let r;for(r in t){const i=(nc.call(e,r)?e[r]:void 0)||(e[r]={}),a=t[r];let s;if(a)for(s in a){nc.call(i,s)||(i[s]=[]);const u=a[s];T4(i[s],Array.isArray(u)?u:u?[u]:[])}}}function T4(e,t){let r=-1;const n=[];for(;++r<t.length;)(t[r].add==="after"?e:n).push(t[r]);Mr(e,0,0,n)}function _4(e){const t=Object.assign({acorn:Xt.extend(Lm()),acornOptions:{ecmaVersion:2024,sourceType:"module"},addResult:!0},e);return Nl([E4(t),j2(t),eb(t),tb()])}const A4={};function __(e){const t=this,r=e||A4,n=t.data(),i=n.micromarkExtensions||(n.micromarkExtensions=[]),a=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);i.push(_4(r)),a.push($g()),s.push(Kg(r))}const S4={};function Il(e,t){const r=S4,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return sd(e,n,i)}function sd(e,t,r){if(w4(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return ic(e.children,t,r)}return Array.isArray(e)?ic(e,t,r):""}function ic(e,t,r){const n=[];let i=-1;for(;++i<e.length;)n[i]=sd(e[i],t,r);return n.join("")}function w4(e){return!!(e&&typeof e=="object")}function od(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function Xi(e){const t=[];let r=-1,n=0,i=0;for(;++r<e.length;){const a=e.charCodeAt(r);let s="";if(a===37&&sr(e.charCodeAt(r+1))&&sr(e.charCodeAt(r+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(s=String.fromCharCode(a));else if(a>55295&&a<57344){const u=e.charCodeAt(r+1);a<56320&&u>56319&&u<57344?(s=String.fromCharCode(a,u),i=1):s="�"}else s=String.fromCharCode(a);s&&(t.push(e.slice(n,r),encodeURIComponent(s)),n=r+i+1,s=""),i&&(r+=i,i=0)}return t.join("")+e.slice(n)}const k4={tokenize:C4};function C4(e){const t=e.attempt(this.parser.constructs.contentInitial,n,i);let r;return t;function n(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),Xe(e,t,"linePrefix")}function i(u){return e.enter("paragraph"),a(u)}function a(u){const l=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=l),r=l,s(u)}function s(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return _e(u)?(e.consume(u),e.exit("chunkText"),a):(e.consume(u),s)}}const N4={tokenize:I4},ac={tokenize:O4};function I4(e){const t=this,r=[];let n=0,i,a,s;return u;function u(D){if(n<r.length){const q=r[n];return t.containerState=q[1],e.attempt(q[0].continuation,l,c)(D)}return c(D)}function l(D){if(n++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&I();const q=t.events.length;let O=q,g;for(;O--;)if(t.events[O][0]==="exit"&&t.events[O][1].type==="chunkFlow"){g=t.events[O][1].end;break}S(n);let P=q;for(;P<t.events.length;)t.events[P][1].end={...g},P++;return Mr(t.events,O+1,0,t.events.slice(q)),t.events.length=P,c(D)}return u(D)}function c(D){if(n===r.length){if(!i)return x(D);if(i.currentConstruct&&i.currentConstruct.concrete)return T(D);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(ac,f,d)(D)}function f(D){return i&&I(),S(n),x(D)}function d(D){return t.parser.lazy[t.now().line]=n!==r.length,s=t.now().offset,T(D)}function x(D){return t.containerState={},e.attempt(ac,b,T)(D)}function b(D){return n++,r.push([t.currentConstruct,t.containerState]),x(D)}function T(D){if(D===null){i&&I(),S(0),e.consume(D);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:a}),A(D)}function A(D){if(D===null){C(e.exit("chunkFlow"),!0),S(0),e.consume(D);return}return _e(D)?(e.consume(D),C(e.exit("chunkFlow")),n=0,t.interrupt=void 0,u):(e.consume(D),A)}function C(D,q){const O=t.sliceStream(D);if(q&&O.push(null),D.previous=a,a&&(a.next=D),a=D,i.defineSkip(D.start),i.write(O),t.parser.lazy[D.start.line]){let g=i.events.length;for(;g--;)if(i.events[g][1].start.offset<s&&(!i.events[g][1].end||i.events[g][1].end.offset>s))return;const P=t.events.length;let G=P,K,Y;for(;G--;)if(t.events[G][0]==="exit"&&t.events[G][1].type==="chunkFlow"){if(K){Y=t.events[G][1].end;break}K=!0}for(S(n),g=P;g<t.events.length;)t.events[g][1].end={...Y},g++;Mr(t.events,G+1,0,t.events.slice(P)),t.events.length=g}}function S(D){let q=r.length;for(;q-- >D;){const O=r[q];t.containerState=O[1],O[0].exit.call(t,e)}r.length=D}function I(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function O4(e,t,r){return Xe(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const R4={tokenize:L4};function L4(e){const t=this,r=e.attempt(Ki,n,e.attempt(this.parser.constructs.flowInitial,i,Xe(e,e.attempt(this.parser.constructs.flow,i,e.attempt(_b,i)),"linePrefix")));return r;function n(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const M4={resolveAll:ld()},D4=ud("string"),P4=ud("text");function ud(e){return{resolveAll:ld(e==="text"?B4:void 0),tokenize:t};function t(r){const n=this,i=this.parser.constructs[e],a=r.attempt(i,s,u);return s;function s(f){return c(f)?a(f):u(f)}function u(f){if(f===null){r.consume(f);return}return r.enter("data"),r.consume(f),l}function l(f){return c(f)?(r.exit("data"),a(f)):(r.consume(f),l)}function c(f){if(f===null)return!0;const d=i[f];let x=-1;if(d)for(;++x<d.length;){const b=d[x];if(!b.previous||b.previous.call(n,n.previous))return!0}return!1}}}function ld(e){return t;function t(r,n){let i=-1,a;for(;++i<=r.length;)a===void 0?r[i]&&r[i][1].type==="data"&&(a=i,i++):(!r[i]||r[i][1].type!=="data")&&(i!==a+2&&(r[a][1].end=r[i-1][1].end,r.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(r,n):r}}function B4(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const n=e[r-1][1],i=t.sliceStream(n);let a=i.length,s=-1,u=0,l;for(;a--;){const c=i[a];if(typeof c=="string"){for(s=c.length;c.charCodeAt(s-1)===32;)u++,s--;if(s)break;s=-1}else if(c===-2)l=!0,u++;else if(c!==-1){a++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(u=0),u){const c={type:r===e.length||l||u<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?s:n.start._bufferIndex+s,_index:n.start._index+a,line:n.end.line,column:n.end.column-u,offset:n.end.offset-u},end:{...n.end}};n.end={...c.start},n.start.offset===n.end.offset?Object.assign(n,c):(e.splice(r,0,["enter",c,t],["exit",c,t]),r+=2)}r++}return e}const F4={42:Sr,43:Sr,45:Sr,48:Sr,49:Sr,50:Sr,51:Sr,52:Sr,53:Sr,54:Sr,55:Sr,56:Sr,57:Sr,62:Zf},U4={91:Cb},z4={[-2]:jo,[-1]:jo,32:jo},H4={35:Mb,42:Cs,45:[tc,Cs],60:Fb,61:tc,95:Cs,96:Z0,126:Z0},V4={38:td,92:ed},q4={[-5]:Jo,[-4]:Jo,[-3]:Jo,33:r4,38:td,42:Uu,60:[ib,Yb],91:i4,92:[Rb,ed],93:Cl,95:Uu,96:bb},G4={null:[Uu,M4]},Y4={null:[42,95]},W4={null:[]},$4=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Y4,contentInitial:U4,disable:W4,document:F4,flow:H4,flowInitial:z4,insideSpan:G4,string:V4,text:q4},Symbol.toStringTag,{value:"Module"}));function K4(e,t,r){let n={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const i={},a=[];let s=[],u=[];const l={attempt:P(O),check:P(g),consume:I,enter:D,exit:q,interrupt:P(g,{interrupt:!0})},c={code:null,containerState:{},defineSkip:A,events:[],now:T,parser:e,previous:null,sliceSerialize:x,sliceStream:b,write:d};let f=t.tokenize.call(c,l);return t.resolveAll&&a.push(t),c;function d(re){return s=Gr(s,re),C(),s[s.length-1]!==null?[]:(G(t,0),c.events=lo(a,c.events,c),c.events)}function x(re,ee){return j4(b(re),ee)}function b(re){return X4(s,re)}function T(){const{_bufferIndex:re,_index:ee,line:be,column:oe,offset:ne}=n;return{_bufferIndex:re,_index:ee,line:be,column:oe,offset:ne}}function A(re){i[re.line]=re.column,Y()}function C(){let re;for(;n._index<s.length;){const ee=s[n._index];if(typeof ee=="string")for(re=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===re&&n._bufferIndex<ee.length;)S(ee.charCodeAt(n._bufferIndex));else S(ee)}}function S(re){f=f(re)}function I(re){_e(re)?(n.line++,n.column=1,n.offset+=re===-3?2:1,Y()):re!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===s[n._index].length&&(n._bufferIndex=-1,n._index++)),c.previous=re}function D(re,ee){const be=ee||{};return be.type=re,be.start=T(),c.events.push(["enter",be,c]),u.push(be),be}function q(re){const ee=u.pop();return ee.end=T(),c.events.push(["exit",ee,c]),ee}function O(re,ee){G(re,ee.from)}function g(re,ee){ee.restore()}function P(re,ee){return be;function be(oe,ne,Se){let Ie,Oe,qe,F;return Array.isArray(oe)?Ge(oe):"tokenize"in oe?Ge([oe]):We(oe);function We(ut){return Ht;function Ht(Vt){const yt=Vt!==null&&ut[Vt],vt=Vt!==null&&ut.null,_t=[...Array.isArray(yt)?yt:yt?[yt]:[],...Array.isArray(vt)?vt:vt?[vt]:[]];return Ge(_t)(Vt)}}function Ge(ut){return Ie=ut,Oe=0,ut.length===0?Se:H(ut[Oe])}function H(ut){return Ht;function Ht(Vt){return F=K(),qe=ut,ut.partial||(c.currentConstruct=ut),ut.name&&c.parser.constructs.disable.null.includes(ut.name)?Nt():ut.tokenize.call(ee?Object.assign(Object.create(c),ee):c,l,xt,Nt)(Vt)}}function xt(ut){return re(qe,F),ne}function Nt(ut){return F.restore(),++Oe<Ie.length?H(Ie[Oe]):Se}}}function G(re,ee){re.resolveAll&&!a.includes(re)&&a.push(re),re.resolve&&Mr(c.events,ee,c.events.length-ee,re.resolve(c.events.slice(ee),c)),re.resolveTo&&(c.events=re.resolveTo(c.events,c))}function K(){const re=T(),ee=c.previous,be=c.currentConstruct,oe=c.events.length,ne=Array.from(u);return{from:oe,restore:Se};function Se(){n=re,c.previous=ee,c.currentConstruct=be,c.events.length=oe,u=ne,Y()}}function Y(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}function X4(e,t){const r=t.start._index,n=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let s;if(r===i)s=[e[r].slice(n,a)];else{if(s=e.slice(r,i),n>-1){const u=s[0];typeof u=="string"?s[0]=u.slice(n):s.shift()}a>0&&s.push(e[i].slice(0,a))}return s}function j4(e,t){let r=-1;const n=[];let i;for(;++r<e.length;){const a=e[r];let s;if(typeof a=="string")s=a;else switch(a){case-5:{s="\r";break}case-4:{s=`
|
|
33
|
+
`:""});if(D.error){if(I!==null&&D.swallow)return C(I);const O=new st("Could not parse import/exports with acorn",{cause:D.error,place:{line:D.error.loc.line,column:D.error.loc.column+1,offset:D.error.pos},ruleId:"acorn",source:"micromark-extension-mdxjs-esm"});throw O.url=rc+"#could-not-parse-importexports-with-acorn",O}c.length>0&&D.estree.body.shift();let q=-1;for(;++q<D.estree.body.length;){const O=D.estree.body[q];if(!x4.has(O.type)){const g=new st("Unexpected `"+O.type+"` in code: only import/exports are supported",{place:ks(O),ruleId:"non-esm",source:"micromark-extension-mdxjs-esm"});throw g.url=rc+"#unexpected-type-in-code-only-importexports-are-supported",g}if(O.type==="ImportDeclaration"&&!l.interrupt){let g=-1;for(;++g<O.specifiers.length;){const P=O.specifiers[g];c.push(P.local.name)}}}return Object.assign(a.exit("mdxjsEsm"),e.addResult?{estree:D.estree}:void 0),s(I)}}}function y4(e,t,r){return n;function n(i){return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),e.attempt(Ki,t,r)}}const nc={}.hasOwnProperty;function Nl(e){const t={};let r=-1;for(;++r<e.length;)v4(t,e[r]);return t}function v4(e,t){let r;for(r in t){const i=(nc.call(e,r)?e[r]:void 0)||(e[r]={}),a=t[r];let s;if(a)for(s in a){nc.call(i,s)||(i[s]=[]);const u=a[s];T4(i[s],Array.isArray(u)?u:u?[u]:[])}}}function T4(e,t){let r=-1;const n=[];for(;++r<t.length;)(t[r].add==="after"?e:n).push(t[r]);Mr(e,0,0,n)}function _4(e){const t=Object.assign({acorn:Xt.extend(Lm()),acornOptions:{ecmaVersion:2024,sourceType:"module"},addResult:!0},e);return Nl([E4(t),j2(t),eb(t),tb()])}const A4={};function S_(e){const t=this,r=e||A4,n=t.data(),i=n.micromarkExtensions||(n.micromarkExtensions=[]),a=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);i.push(_4(r)),a.push($g()),s.push(Kg(r))}const S4={};function Il(e,t){const r=S4,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return sd(e,n,i)}function sd(e,t,r){if(w4(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return ic(e.children,t,r)}return Array.isArray(e)?ic(e,t,r):""}function ic(e,t,r){const n=[];let i=-1;for(;++i<e.length;)n[i]=sd(e[i],t,r);return n.join("")}function w4(e){return!!(e&&typeof e=="object")}function od(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function Xi(e){const t=[];let r=-1,n=0,i=0;for(;++r<e.length;){const a=e.charCodeAt(r);let s="";if(a===37&&sr(e.charCodeAt(r+1))&&sr(e.charCodeAt(r+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(s=String.fromCharCode(a));else if(a>55295&&a<57344){const u=e.charCodeAt(r+1);a<56320&&u>56319&&u<57344?(s=String.fromCharCode(a,u),i=1):s="�"}else s=String.fromCharCode(a);s&&(t.push(e.slice(n,r),encodeURIComponent(s)),n=r+i+1,s=""),i&&(r+=i,i=0)}return t.join("")+e.slice(n)}const k4={tokenize:C4};function C4(e){const t=e.attempt(this.parser.constructs.contentInitial,n,i);let r;return t;function n(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),Xe(e,t,"linePrefix")}function i(u){return e.enter("paragraph"),a(u)}function a(u){const l=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=l),r=l,s(u)}function s(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return _e(u)?(e.consume(u),e.exit("chunkText"),a):(e.consume(u),s)}}const N4={tokenize:I4},ac={tokenize:O4};function I4(e){const t=this,r=[];let n=0,i,a,s;return u;function u(D){if(n<r.length){const q=r[n];return t.containerState=q[1],e.attempt(q[0].continuation,l,c)(D)}return c(D)}function l(D){if(n++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&I();const q=t.events.length;let O=q,g;for(;O--;)if(t.events[O][0]==="exit"&&t.events[O][1].type==="chunkFlow"){g=t.events[O][1].end;break}S(n);let P=q;for(;P<t.events.length;)t.events[P][1].end={...g},P++;return Mr(t.events,O+1,0,t.events.slice(q)),t.events.length=P,c(D)}return u(D)}function c(D){if(n===r.length){if(!i)return x(D);if(i.currentConstruct&&i.currentConstruct.concrete)return T(D);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(ac,f,d)(D)}function f(D){return i&&I(),S(n),x(D)}function d(D){return t.parser.lazy[t.now().line]=n!==r.length,s=t.now().offset,T(D)}function x(D){return t.containerState={},e.attempt(ac,b,T)(D)}function b(D){return n++,r.push([t.currentConstruct,t.containerState]),x(D)}function T(D){if(D===null){i&&I(),S(0),e.consume(D);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:a}),A(D)}function A(D){if(D===null){C(e.exit("chunkFlow"),!0),S(0),e.consume(D);return}return _e(D)?(e.consume(D),C(e.exit("chunkFlow")),n=0,t.interrupt=void 0,u):(e.consume(D),A)}function C(D,q){const O=t.sliceStream(D);if(q&&O.push(null),D.previous=a,a&&(a.next=D),a=D,i.defineSkip(D.start),i.write(O),t.parser.lazy[D.start.line]){let g=i.events.length;for(;g--;)if(i.events[g][1].start.offset<s&&(!i.events[g][1].end||i.events[g][1].end.offset>s))return;const P=t.events.length;let G=P,K,Y;for(;G--;)if(t.events[G][0]==="exit"&&t.events[G][1].type==="chunkFlow"){if(K){Y=t.events[G][1].end;break}K=!0}for(S(n),g=P;g<t.events.length;)t.events[g][1].end={...Y},g++;Mr(t.events,G+1,0,t.events.slice(P)),t.events.length=g}}function S(D){let q=r.length;for(;q-- >D;){const O=r[q];t.containerState=O[1],O[0].exit.call(t,e)}r.length=D}function I(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function O4(e,t,r){return Xe(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const R4={tokenize:L4};function L4(e){const t=this,r=e.attempt(Ki,n,e.attempt(this.parser.constructs.flowInitial,i,Xe(e,e.attempt(this.parser.constructs.flow,i,e.attempt(_b,i)),"linePrefix")));return r;function n(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const M4={resolveAll:ld()},D4=ud("string"),P4=ud("text");function ud(e){return{resolveAll:ld(e==="text"?B4:void 0),tokenize:t};function t(r){const n=this,i=this.parser.constructs[e],a=r.attempt(i,s,u);return s;function s(f){return c(f)?a(f):u(f)}function u(f){if(f===null){r.consume(f);return}return r.enter("data"),r.consume(f),l}function l(f){return c(f)?(r.exit("data"),a(f)):(r.consume(f),l)}function c(f){if(f===null)return!0;const d=i[f];let x=-1;if(d)for(;++x<d.length;){const b=d[x];if(!b.previous||b.previous.call(n,n.previous))return!0}return!1}}}function ld(e){return t;function t(r,n){let i=-1,a;for(;++i<=r.length;)a===void 0?r[i]&&r[i][1].type==="data"&&(a=i,i++):(!r[i]||r[i][1].type!=="data")&&(i!==a+2&&(r[a][1].end=r[i-1][1].end,r.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(r,n):r}}function B4(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const n=e[r-1][1],i=t.sliceStream(n);let a=i.length,s=-1,u=0,l;for(;a--;){const c=i[a];if(typeof c=="string"){for(s=c.length;c.charCodeAt(s-1)===32;)u++,s--;if(s)break;s=-1}else if(c===-2)l=!0,u++;else if(c!==-1){a++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(u=0),u){const c={type:r===e.length||l||u<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?s:n.start._bufferIndex+s,_index:n.start._index+a,line:n.end.line,column:n.end.column-u,offset:n.end.offset-u},end:{...n.end}};n.end={...c.start},n.start.offset===n.end.offset?Object.assign(n,c):(e.splice(r,0,["enter",c,t],["exit",c,t]),r+=2)}r++}return e}const F4={42:Sr,43:Sr,45:Sr,48:Sr,49:Sr,50:Sr,51:Sr,52:Sr,53:Sr,54:Sr,55:Sr,56:Sr,57:Sr,62:Zf},U4={91:Cb},z4={[-2]:jo,[-1]:jo,32:jo},H4={35:Mb,42:Cs,45:[tc,Cs],60:Fb,61:tc,95:Cs,96:Z0,126:Z0},V4={38:td,92:ed},q4={[-5]:Jo,[-4]:Jo,[-3]:Jo,33:r4,38:td,42:Uu,60:[ib,Yb],91:i4,92:[Rb,ed],93:Cl,95:Uu,96:bb},G4={null:[Uu,M4]},Y4={null:[42,95]},W4={null:[]},$4=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Y4,contentInitial:U4,disable:W4,document:F4,flow:H4,flowInitial:z4,insideSpan:G4,string:V4,text:q4},Symbol.toStringTag,{value:"Module"}));function K4(e,t,r){let n={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const i={},a=[];let s=[],u=[];const l={attempt:P(O),check:P(g),consume:I,enter:D,exit:q,interrupt:P(g,{interrupt:!0})},c={code:null,containerState:{},defineSkip:A,events:[],now:T,parser:e,previous:null,sliceSerialize:x,sliceStream:b,write:d};let f=t.tokenize.call(c,l);return t.resolveAll&&a.push(t),c;function d(re){return s=Gr(s,re),C(),s[s.length-1]!==null?[]:(G(t,0),c.events=lo(a,c.events,c),c.events)}function x(re,ee){return j4(b(re),ee)}function b(re){return X4(s,re)}function T(){const{_bufferIndex:re,_index:ee,line:be,column:oe,offset:ne}=n;return{_bufferIndex:re,_index:ee,line:be,column:oe,offset:ne}}function A(re){i[re.line]=re.column,Y()}function C(){let re;for(;n._index<s.length;){const ee=s[n._index];if(typeof ee=="string")for(re=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===re&&n._bufferIndex<ee.length;)S(ee.charCodeAt(n._bufferIndex));else S(ee)}}function S(re){f=f(re)}function I(re){_e(re)?(n.line++,n.column=1,n.offset+=re===-3?2:1,Y()):re!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===s[n._index].length&&(n._bufferIndex=-1,n._index++)),c.previous=re}function D(re,ee){const be=ee||{};return be.type=re,be.start=T(),c.events.push(["enter",be,c]),u.push(be),be}function q(re){const ee=u.pop();return ee.end=T(),c.events.push(["exit",ee,c]),ee}function O(re,ee){G(re,ee.from)}function g(re,ee){ee.restore()}function P(re,ee){return be;function be(oe,ne,Se){let Ie,Oe,qe,F;return Array.isArray(oe)?Ge(oe):"tokenize"in oe?Ge([oe]):We(oe);function We(ut){return Ht;function Ht(Vt){const yt=Vt!==null&&ut[Vt],vt=Vt!==null&&ut.null,_t=[...Array.isArray(yt)?yt:yt?[yt]:[],...Array.isArray(vt)?vt:vt?[vt]:[]];return Ge(_t)(Vt)}}function Ge(ut){return Ie=ut,Oe=0,ut.length===0?Se:H(ut[Oe])}function H(ut){return Ht;function Ht(Vt){return F=K(),qe=ut,ut.partial||(c.currentConstruct=ut),ut.name&&c.parser.constructs.disable.null.includes(ut.name)?Nt():ut.tokenize.call(ee?Object.assign(Object.create(c),ee):c,l,xt,Nt)(Vt)}}function xt(ut){return re(qe,F),ne}function Nt(ut){return F.restore(),++Oe<Ie.length?H(Ie[Oe]):Se}}}function G(re,ee){re.resolveAll&&!a.includes(re)&&a.push(re),re.resolve&&Mr(c.events,ee,c.events.length-ee,re.resolve(c.events.slice(ee),c)),re.resolveTo&&(c.events=re.resolveTo(c.events,c))}function K(){const re=T(),ee=c.previous,be=c.currentConstruct,oe=c.events.length,ne=Array.from(u);return{from:oe,restore:Se};function Se(){n=re,c.previous=ee,c.currentConstruct=be,c.events.length=oe,u=ne,Y()}}function Y(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}function X4(e,t){const r=t.start._index,n=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let s;if(r===i)s=[e[r].slice(n,a)];else{if(s=e.slice(r,i),n>-1){const u=s[0];typeof u=="string"?s[0]=u.slice(n):s.shift()}a>0&&s.push(e[i].slice(0,a))}return s}function j4(e,t){let r=-1;const n=[];let i;for(;++r<e.length;){const a=e[r];let s;if(typeof a=="string")s=a;else switch(a){case-5:{s="\r";break}case-4:{s=`
|
|
34
34
|
`;break}case-3:{s=`\r
|
|
35
35
|
`;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&i)continue;s=" ";break}default:s=String.fromCharCode(a)}i=a===-2,n.push(s)}return n.join("")}function J4(e){const n={constructs:Nl([$4,...(e||{}).extensions||[]]),content:i(k4),defined:[],document:i(N4),flow:i(R4),lazy:{},string:i(D4),text:i(P4)};return n;function i(a){return s;function s(u){return K4(n,a,u)}}}function Q4(e){for(;!rd(e););return e}const sc=/[\0\t\n\r]/g;function Z4(){let e=1,t="",r=!0,n;return i;function i(a,s,u){const l=[];let c,f,d,x,b;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(s||void 0).decode(a)),d=0,t="",r&&(a.charCodeAt(0)===65279&&d++,r=void 0);d<a.length;){if(sc.lastIndex=d,c=sc.exec(a),x=c&&c.index!==void 0?c.index:a.length,b=a.charCodeAt(x),!c){t=a.slice(d);break}if(b===10&&d===x&&n)l.push(-3),n=void 0;else switch(n&&(l.push(-5),n=void 0),d<x&&(l.push(a.slice(d,x)),e+=x-d),b){case 0:{l.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,l.push(-2);e++<f;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:n=!0,e=1}d=x+1}return u&&(n&&l.push(-5),t&&l.push(t),l.push(null)),l}}const e3=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function t3(e){return e.replace(e3,r3)}function r3(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const i=r.charCodeAt(1),a=i===120||i===88;return od(r.slice(a?2:1),a?16:10)}return Ra(r)||e}const cd={}.hasOwnProperty;function n3(e,t,r){return t&&typeof t=="object"&&(r=t,t=void 0),i3(r)(Q4(J4(r).document().write(Z4()(e,t,!0))))}function i3(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(tr),autolinkProtocol:K,autolinkEmail:K,atxHeading:a(cr),blockQuote:a(vt),characterEscape:K,characterReference:K,codeFenced:a(_t),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:a(_t,s),codeText:a(Nr,s),codeTextData:K,data:K,codeFlowValue:K,definition:a(er),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:a(lr),hardBreakEscape:a(Qe),hardBreakTrailing:a(Qe),htmlFlow:a(Pt,s),htmlFlowData:K,htmlText:a(Pt,s),htmlTextData:K,image:a(Bt),label:s,link:a(tr),listItem:a(Ir),listItemValue:x,listOrdered:a(Jt,d),listUnordered:a(Jt),paragraph:a(jr),reference:H,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:a(cr),strong:a(It),thematicBreak:a(Or)},exit:{atxHeading:l(),atxHeadingSequence:O,autolink:l(),autolinkEmail:yt,autolinkProtocol:Vt,blockQuote:l(),characterEscapeValue:Y,characterReferenceMarkerHexadecimal:Nt,characterReferenceMarkerNumeric:Nt,characterReferenceValue:ut,characterReference:Ht,codeFenced:l(C),codeFencedFence:A,codeFencedFenceInfo:b,codeFencedFenceMeta:T,codeFlowValue:Y,codeIndented:l(S),codeText:l(ne),codeTextData:Y,data:Y,definition:l(),definitionDestinationString:q,definitionLabelString:I,definitionTitleString:D,emphasis:l(),hardBreakEscape:l(ee),hardBreakTrailing:l(ee),htmlFlow:l(be),htmlFlowData:Y,htmlText:l(oe),htmlTextData:Y,image:l(Ie),label:qe,labelText:Oe,lineEnding:re,link:l(Se),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:xt,resourceDestinationString:F,resourceTitleString:We,resource:Ge,setextHeading:l(G),setextHeadingLineSequence:P,setextHeadingText:g,strong:l(),thematicBreak:l()}};hd(t,(e||{}).mdastExtensions||[]);const r={};return n;function n(Z){let te={type:"root",children:[]};const N={stack:[te],tokenStack:[],config:t,enter:u,exit:c,buffer:s,resume:f,data:r},Ce=[];let it=-1;for(;++it<Z.length;)if(Z[it][1].type==="listOrdered"||Z[it][1].type==="listUnordered")if(Z[it][0]==="enter")Ce.push(it);else{const Ft=Ce.pop();it=i(Z,Ft,it)}for(it=-1;++it<Z.length;){const Ft=t[Z[it][0]];cd.call(Ft,Z[it][1].type)&&Ft[Z[it][1].type].call(Object.assign({sliceSerialize:Z[it][2].sliceSerialize},N),Z[it][1])}if(N.tokenStack.length>0){const Ft=N.tokenStack[N.tokenStack.length-1];(Ft[1]||oc).call(N,void 0,Ft[0])}for(te.position={start:Bn(Z.length>0?Z[0][1].start:{line:1,column:1,offset:0}),end:Bn(Z.length>0?Z[Z.length-2][1].end:{line:1,column:1,offset:0})},it=-1;++it<t.transforms.length;)te=t.transforms[it](te)||te;return te}function i(Z,te,N){let Ce=te-1,it=-1,Ft=!1,ye,hr,an,vn;for(;++Ce<=N;){const Ut=Z[Ce];switch(Ut[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ut[0]==="enter"?it++:it--,vn=void 0;break}case"lineEndingBlank":{Ut[0]==="enter"&&(ye&&!vn&&!it&&!an&&(an=Ce),vn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:vn=void 0}if(!it&&Ut[0]==="enter"&&Ut[1].type==="listItemPrefix"||it===-1&&Ut[0]==="exit"&&(Ut[1].type==="listUnordered"||Ut[1].type==="listOrdered")){if(ye){let Ur=Ce;for(hr=void 0;Ur--;){const rr=Z[Ur];if(rr[1].type==="lineEnding"||rr[1].type==="lineEndingBlank"){if(rr[0]==="exit")continue;hr&&(Z[hr][1].type="lineEndingBlank",Ft=!0),rr[1].type="lineEnding",hr=Ur}else if(!(rr[1].type==="linePrefix"||rr[1].type==="blockQuotePrefix"||rr[1].type==="blockQuotePrefixWhitespace"||rr[1].type==="blockQuoteMarker"||rr[1].type==="listItemIndent"))break}an&&(!hr||an<hr)&&(ye._spread=!0),ye.end=Object.assign({},hr?Z[hr][1].start:Ut[1].end),Z.splice(hr||Ce,0,["exit",ye,Ut[2]]),Ce++,N++}if(Ut[1].type==="listItemPrefix"){const Ur={type:"listItem",_spread:!1,start:Object.assign({},Ut[1].start),end:void 0};ye=Ur,Z.splice(Ce,0,["enter",Ur,Ut[2]]),Ce++,N++,an=void 0,vn=!0}}}return Z[te][1]._spread=Ft,N}function a(Z,te){return N;function N(Ce){u.call(this,Z(Ce),Ce),te&&te.call(this,Ce)}}function s(){this.stack.push({type:"fragment",children:[]})}function u(Z,te,N){this.stack[this.stack.length-1].children.push(Z),this.stack.push(Z),this.tokenStack.push([te,N||void 0]),Z.position={start:Bn(te.start),end:void 0}}function l(Z){return te;function te(N){Z&&Z.call(this,N),c.call(this,N)}}function c(Z,te){const N=this.stack.pop(),Ce=this.tokenStack.pop();if(Ce)Ce[0].type!==Z.type&&(te?te.call(this,Z,Ce[0]):(Ce[1]||oc).call(this,Z,Ce[0]));else throw new Error("Cannot close `"+Z.type+"` ("+wn({start:Z.start,end:Z.end})+"): it’s not open");N.position.end=Bn(Z.end)}function f(){return Il(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function x(Z){if(this.data.expectingFirstListItemValue){const te=this.stack[this.stack.length-2];te.start=Number.parseInt(this.sliceSerialize(Z),10),this.data.expectingFirstListItemValue=void 0}}function b(){const Z=this.resume(),te=this.stack[this.stack.length-1];te.lang=Z}function T(){const Z=this.resume(),te=this.stack[this.stack.length-1];te.meta=Z}function A(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const Z=this.resume(),te=this.stack[this.stack.length-1];te.value=Z.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function S(){const Z=this.resume(),te=this.stack[this.stack.length-1];te.value=Z.replace(/(\r?\n|\r)$/g,"")}function I(Z){const te=this.resume(),N=this.stack[this.stack.length-1];N.label=te,N.identifier=tn(this.sliceSerialize(Z)).toLowerCase()}function D(){const Z=this.resume(),te=this.stack[this.stack.length-1];te.title=Z}function q(){const Z=this.resume(),te=this.stack[this.stack.length-1];te.url=Z}function O(Z){const te=this.stack[this.stack.length-1];if(!te.depth){const N=this.sliceSerialize(Z).length;te.depth=N}}function g(){this.data.setextHeadingSlurpLineEnding=!0}function P(Z){const te=this.stack[this.stack.length-1];te.depth=this.sliceSerialize(Z).codePointAt(0)===61?1:2}function G(){this.data.setextHeadingSlurpLineEnding=void 0}function K(Z){const N=this.stack[this.stack.length-1].children;let Ce=N[N.length-1];(!Ce||Ce.type!=="text")&&(Ce=et(),Ce.position={start:Bn(Z.start),end:void 0},N.push(Ce)),this.stack.push(Ce)}function Y(Z){const te=this.stack.pop();te.value+=this.sliceSerialize(Z),te.position.end=Bn(Z.end)}function re(Z){const te=this.stack[this.stack.length-1];if(this.data.atHardBreak){const N=te.children[te.children.length-1];N.position.end=Bn(Z.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(te.type)&&(K.call(this,Z),Y.call(this,Z))}function ee(){this.data.atHardBreak=!0}function be(){const Z=this.resume(),te=this.stack[this.stack.length-1];te.value=Z}function oe(){const Z=this.resume(),te=this.stack[this.stack.length-1];te.value=Z}function ne(){const Z=this.resume(),te=this.stack[this.stack.length-1];te.value=Z}function Se(){const Z=this.stack[this.stack.length-1];if(this.data.inReference){const te=this.data.referenceType||"shortcut";Z.type+="Reference",Z.referenceType=te,delete Z.url,delete Z.title}else delete Z.identifier,delete Z.label;this.data.referenceType=void 0}function Ie(){const Z=this.stack[this.stack.length-1];if(this.data.inReference){const te=this.data.referenceType||"shortcut";Z.type+="Reference",Z.referenceType=te,delete Z.url,delete Z.title}else delete Z.identifier,delete Z.label;this.data.referenceType=void 0}function Oe(Z){const te=this.sliceSerialize(Z),N=this.stack[this.stack.length-2];N.label=t3(te),N.identifier=tn(te).toLowerCase()}function qe(){const Z=this.stack[this.stack.length-1],te=this.resume(),N=this.stack[this.stack.length-1];if(this.data.inReference=!0,N.type==="link"){const Ce=Z.children;N.children=Ce}else N.alt=te}function F(){const Z=this.resume(),te=this.stack[this.stack.length-1];te.url=Z}function We(){const Z=this.resume(),te=this.stack[this.stack.length-1];te.title=Z}function Ge(){this.data.inReference=void 0}function H(){this.data.referenceType="collapsed"}function xt(Z){const te=this.resume(),N=this.stack[this.stack.length-1];N.label=te,N.identifier=tn(this.sliceSerialize(Z)).toLowerCase(),this.data.referenceType="full"}function Nt(Z){this.data.characterReferenceType=Z.type}function ut(Z){const te=this.sliceSerialize(Z),N=this.data.characterReferenceType;let Ce;N?(Ce=od(te,N==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ce=Ra(te);const it=this.stack[this.stack.length-1];it.value+=Ce}function Ht(Z){const te=this.stack.pop();te.position.end=Bn(Z.end)}function Vt(Z){Y.call(this,Z);const te=this.stack[this.stack.length-1];te.url=this.sliceSerialize(Z)}function yt(Z){Y.call(this,Z);const te=this.stack[this.stack.length-1];te.url="mailto:"+this.sliceSerialize(Z)}function vt(){return{type:"blockquote",children:[]}}function _t(){return{type:"code",lang:null,meta:null,value:""}}function Nr(){return{type:"inlineCode",value:""}}function er(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function lr(){return{type:"emphasis",children:[]}}function cr(){return{type:"heading",depth:0,children:[]}}function Qe(){return{type:"break"}}function Pt(){return{type:"html",value:""}}function Bt(){return{type:"image",title:null,url:"",alt:null}}function tr(){return{type:"link",title:null,url:"",children:[]}}function Jt(Z){return{type:"list",ordered:Z.type==="listOrdered",start:null,spread:Z._spread,children:[]}}function Ir(Z){return{type:"listItem",spread:Z._spread,checked:null,children:[]}}function jr(){return{type:"paragraph",children:[]}}function It(){return{type:"strong",children:[]}}function et(){return{type:"text",value:""}}function Or(){return{type:"thematicBreak"}}}function Bn(e){return{line:e.line,column:e.column,offset:e.offset}}function hd(e,t){let r=-1;for(;++r<t.length;){const n=t[r];Array.isArray(n)?hd(e,n):a3(e,n)}}function a3(e,t){let r;for(r in t)if(cd.call(t,r))switch(r){case"canContainEols":{const n=t[r];n&&e[r].push(...n);break}case"transforms":{const n=t[r];n&&e[r].push(...n);break}case"enter":case"exit":{const n=t[r];n&&Object.assign(e[r],n);break}}}function oc(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+wn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+wn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+wn({start:t.start,end:t.end})+") is still open")}function s3(e){const t=this;t.parser=r;function r(n){return n3(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function o3(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function u3(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
|
|
36
36
|
`}]}function l3(e,t){const r=t.value?t.value+`
|
|
@@ -42,13 +42,13 @@ Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=1
|
|
|
42
42
|
`});++n<e.length;)n&&r.push({type:"text",value:`
|
|
43
43
|
`}),r.push(e[n]);return t&&e.length>0&&r.push({type:"text",value:`
|
|
44
44
|
`}),r}function pc(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function mc(e,t){const r=K3(e,t),n=r.one(e,void 0),i=U3(r),a=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return i&&a.children.push({type:"text",value:`
|
|
45
|
-
`},i),a}function Z3(e,t){return e&&"run"in e?async function(r,n){const i=mc(r,{file:n,...t});await e.run(i,n)}:function(r,n){return mc(r,{file:n,...e||t})}}function gc(e){if(e)throw e}var Qo,bc;function e6(){if(bc)return Qo;bc=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=function(c){return typeof Array.isArray=="function"?Array.isArray(c):t.call(c)==="[object Array]"},a=function(c){if(!c||t.call(c)!=="[object Object]")return!1;var f=e.call(c,"constructor"),d=c.constructor&&c.constructor.prototype&&e.call(c.constructor.prototype,"isPrototypeOf");if(c.constructor&&!f&&!d)return!1;var x;for(x in c);return typeof x>"u"||e.call(c,x)},s=function(c,f){r&&f.name==="__proto__"?r(c,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):c[f.name]=f.newValue},u=function(c,f){if(f==="__proto__")if(e.call(c,f)){if(n)return n(c,f).value}else return;return c[f]};return Qo=function l(){var c,f,d,x,b,T,A=arguments[0],C=1,S=arguments.length,I=!1;for(typeof A=="boolean"&&(I=A,A=arguments[1]||{},C=2),(A==null||typeof A!="object"&&typeof A!="function")&&(A={});C<S;++C)if(c=arguments[C],c!=null)for(f in c)d=u(A,f),x=u(c,f),A!==x&&(I&&x&&(a(x)||(b=i(x)))?(b?(b=!1,T=d&&i(d)?d:[]):T=d&&a(d)?d:{},s(A,{name:f,newValue:l(I,T,x)})):typeof x<"u"&&s(A,{name:f,newValue:x}));return A},Qo}var t6=e6();const Zo=eo(t6);function Vu(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function r6(){const e=[],t={run:r,use:n};return t;function r(...i){let a=-1;const s=i.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);u(null,...i);function u(l,...c){const f=e[++a];let d=-1;if(l){s(l);return}for(;++d<i.length;)(c[d]===null||c[d]===void 0)&&(c[d]=i[d]);i=c,f?n6(f,u)(...c):s(null,...c)}}function n(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function n6(e,t){let r;return n;function n(...s){const u=e.length>s.length;let l;u&&s.push(i);try{l=e.apply(this,s)}catch(c){const f=c;if(u&&r)throw f;return i(f)}u||(l&&l.then&&typeof l.then=="function"?l.then(a,i):l instanceof Error?i(l):a(l))}function i(s,...u){r||(r=!0,t(s,...u))}function a(s){i(null,s)}}const i6=(function(e){const n=this.constructor.prototype,i=n[e],a=function(){return i.apply(a,arguments)};return Object.setPrototypeOf(a,n),a}),a6={}.hasOwnProperty;class Pl extends i6{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=r6()}copy(){const t=new Pl;let r=-1;for(;++r<this.attachers.length;){const n=this.attachers[r];t.use(...n)}return t.data(Zo(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(ru("data",this.frozen),this.namespace[t]=r,this):a6.call(this.namespace,t)&&this.namespace[t]||void 0:t?(ru("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);const i=r.call(t,...n);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=hs(t),n=this.parser||this.Parser;return eu("parse",n),n(String(r),r)}process(t,r){const n=this;return this.freeze(),eu("process",this.parser||this.Parser),tu("process",this.compiler||this.Compiler),r?i(void 0,r):new Promise(i);function i(a,s){const u=hs(t),l=n.parse(u);n.run(l,u,function(f,d,x){if(f||!d||!x)return c(f);const b=d,T=n.stringify(b,x);u6(T)?x.value=T:x.result=T,c(f,x)});function c(f,d){f||!d?s(f):a?a(d):r(void 0,d)}}}processSync(t){let r=!1,n;return this.freeze(),eu("processSync",this.parser||this.Parser),tu("processSync",this.compiler||this.Compiler),this.process(t,i),Ec("processSync","process",r),n;function i(a,s){r=!0,gc(a),n=s}}run(t,r,n){xc(t),this.freeze();const i=this.transformers;return!n&&typeof r=="function"&&(n=r,r=void 0),n?a(void 0,n):new Promise(a);function a(s,u){const l=hs(r);i.run(t,l,c);function c(f,d,x){const b=d||t;f?u(f):s?s(b):n(void 0,b,x)}}}runSync(t,r){let n=!1,i;return this.run(t,r,a),Ec("runSync","run",n),i;function a(s,u){gc(s),i=u,n=!0}}stringify(t,r){this.freeze();const n=hs(r),i=this.compiler||this.Compiler;return tu("stringify",i),xc(t),i(t,n)}use(t,...r){const n=this.attachers,i=this.namespace;if(ru("use",this.frozen),t!=null)if(typeof t=="function")l(t,r);else if(typeof t=="object")Array.isArray(t)?u(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(c){if(typeof c=="function")l(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[f,...d]=c;l(f,d)}else s(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function s(c){if(!("plugins"in c)&&!("settings"in c))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");u(c.plugins),c.settings&&(i.settings=Zo(!0,i.settings,c.settings))}function u(c){let f=-1;if(c!=null)if(Array.isArray(c))for(;++f<c.length;){const d=c[f];a(d)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function l(c,f){let d=-1,x=-1;for(;++d<n.length;)if(n[d][0]===c){x=d;break}if(x===-1)n.push([c,...f]);else if(f.length>0){let[b,...T]=f;const A=n[x][1];Vu(A)&&Vu(b)&&(b=Zo(!0,A,b)),n[x]=[c,b,...T]}}}}const s6=new Pl().freeze();function eu(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function tu(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function ru(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function xc(e){if(!Vu(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Ec(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function hs(e){return o6(e)?e:new Kh(e)}function o6(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function u6(e){return typeof e=="string"||l6(e)}function l6(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function A_(){return function(e){di(e,"raw",function(t,r,n){if(n&&typeof r=="number")return n.children.splice(r,1),r})}}const c6=/\s+/g,h6=/[\t\n\v\f\r ]+/g;function f6(e,t){t?typeof t=="string"&&(t={style:t}):t={};const r=t.preserveLineEndings?d6:p6;return String(e).replace(t.style==="html"?h6:c6,t.trim?m6(r):r)}function d6(e){const t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function p6(){return" "}function m6(e){return t;function t(r,n,i){return n===0||n+r.length===i.length?"":e(r)}}function S_(){return function(e){di(e,function(t,r,n){let i=-1,a=!0,s=!1;if(n&&typeof r=="number"&&t.type==="paragraph"){const u=t.children;for(;++i<u.length;){const l=u[i];if(l.type==="mdxJsxTextElement"||l.type==="mdxTextExpression")s=!0;else if(!(l.type==="text"&&f6(l.value,{style:"html",trim:!0})==="")){a=!1;break}}if(a&&s){i=-1;const l=[];for(;++i<u.length;){const c=u[i];c.type==="mdxJsxTextElement"&&(c.type="mdxJsxFlowElement"),c.type==="mdxTextExpression"&&(c.type="mdxFlowExpression"),c.type==="text"&&/^[\t\r\n ]+$/.test(String(c.value))||l.push(c)}return n.children.splice(r,1,...l),r}}if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement"){const u=t.data||(t.data={});u._mdxExplicitJsx=!0}(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression"||t.type==="mdxjsEsm")&&t.data&&t.data.estree&&Cm(t.data.estree,{enter(u){if(u.type==="JSXElement"){const l=u.data||(u.data={});l._mdxExplicitJsx=!0}}})})}}const Bl={}.hasOwnProperty,g6=new Map,b6=/[A-Z]/g,x6=new Set(["table","tbody","thead","tfoot","tr"]),E6=new Set(["td","th"]),Ed="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function y6(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let n;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");n=C6(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");n=k6(r,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:n,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?rn:qi,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=yd(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function yd(e,t,r){if(t.type==="element")return v6(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return T6(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return A6(e,t,r);if(t.type==="mdxjsEsm")return _6(e,t);if(t.type==="root")return S6(e,t,r);if(t.type==="text")return w6(e,t)}function v6(e,t,r){const n=e.schema;let i=n;t.tagName.toLowerCase()==="svg"&&n.space==="html"&&(i=rn,e.schema=i),e.ancestors.push(t);const a=Td(e,t.tagName,!1),s=N6(e,t);let u=Ul(e,t);return x6.has(t.tagName)&&(u=u.filter(function(l){return typeof l=="string"?!uf(l):!0})),vd(e,s,a,t),Fl(s,u),e.ancestors.pop(),e.schema=n,e.create(t,a,s,r)}function T6(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}Da(e,t.position)}function _6(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Da(e,t.position)}function A6(e,t,r){const n=e.schema;let i=n;t.name==="svg"&&n.space==="html"&&(i=rn,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:Td(e,t.name,!0),s=I6(e,t),u=Ul(e,t);return vd(e,s,a,t),Fl(s,u),e.ancestors.pop(),e.schema=n,e.create(t,a,s,r)}function S6(e,t,r){const n={};return Fl(n,Ul(e,t)),e.create(t,e.Fragment,n,r)}function w6(e,t){return t.value}function vd(e,t,r,n){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=n)}function Fl(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function k6(e,t,r){return n;function n(i,a,s,u){const c=Array.isArray(s.children)?r:t;return u?c(a,s,u):c(a,s)}}function C6(e,t){return r;function r(n,i,a,s){const u=Array.isArray(a.children),l=pn(n);return t(i,a,s,u,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function N6(e,t){const r={};let n,i;for(i in t.properties)if(i!=="children"&&Bl.call(t.properties,i)){const a=O6(e,i,t.properties[i]);if(a){const[s,u]=a;e.tableCellAlignToStyle&&s==="align"&&typeof u=="string"&&E6.has(t.tagName)?n=u:r[s]=u}}if(n){const a=r.style||(r.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=n}return r}function I6(e,t){const r={};for(const n of t.attributes)if(n.type==="mdxJsxExpressionAttribute")if(n.data&&n.data.estree&&e.evaluater){const a=n.data.estree.body[0];a.type;const s=a.expression;s.type;const u=s.properties[0];u.type,Object.assign(r,e.evaluater.evaluateExpression(u.argument))}else Da(e,t.position);else{const i=n.name;let a;if(n.value&&typeof n.value=="object")if(n.value.data&&n.value.data.estree&&e.evaluater){const u=n.value.data.estree.body[0];u.type,a=e.evaluater.evaluateExpression(u.expression)}else Da(e,t.position);else a=n.value===null?!0:n.value;r[i]=a}return r}function Ul(e,t){const r=[];let n=-1;const i=e.passKeys?new Map:g6;for(;++n<t.children.length;){const a=t.children[n];let s;if(e.passKeys){const l=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(l){const c=i.get(l)||0;s=l+"-"+c,i.set(l,c+1)}}const u=yd(e,a,s);u!==void 0&&r.push(u)}return r}function O6(e,t,r){const n=Va(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=n.commaSeparated?ml(r):bl(r)),n.property==="style"){let i=typeof r=="object"?r:R6(e,String(r));return e.stylePropertyNameCase==="css"&&(i=L6(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&n.space?nf[n.property]||n.property:n.attribute,r]}}function R6(e,t){try{return af(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const n=r,i=new st("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=Ed+"#cannot-parse-style-attribute",i}}function Td(e,t,r){let n;if(!r)n={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let a=-1,s;for(;++a<i.length;){const u=va(i[a])?{type:"Identifier",name:i[a]}:{type:"Literal",value:i[a]};s=s?{type:"MemberExpression",object:s,property:u,computed:!!(a&&u.type==="Literal"),optional:!1}:u}n=s}else n=va(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(n.type==="Literal"){const i=n.value;return Bl.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(n);Da(e)}function Da(e,t){const r=new st("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=Ed+"#cannot-handle-mdx-estrees-without-createevaluater",r}function L6(e){const t={};let r;for(r in e)Bl.call(e,r)&&(t[M6(r)]=e[r]);return t}function M6(e){let t=e.replace(b6,D6);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function D6(e){return"-"+e.toLowerCase()}const nu={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},P6="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",yc=[],vc={allowDangerousHtml:!0},B6=/^(https?|ircs?|mailto|xmpp)$/i,F6=[{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 w_(e){const t=U6(e),r=z6(e);return H6(t.runSync(t.parse(r),r),e)}function U6(e){const t=e.rehypePlugins||yc,r=e.remarkPlugins||yc,n=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...vc}:vc;return s6().use(s3).use(r).use(Z3,n).use(t)}function z6(e){const t=e.children||"",r=new Kh;return typeof t=="string"&&(r.value=t),r}function H6(e,t){const r=t.allowedElements,n=t.allowElement,i=t.components,a=t.disallowedElements,s=t.skipHtml,u=t.unwrapDisallowed,l=t.urlTransform||V6;for(const f of F6)Object.hasOwn(t,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+P6+f.id,void 0);return di(e,c),y6(e,{Fragment:Po.Fragment,components:i,ignoreInvalidStyle:!0,jsx:Po.jsx,jsxs:Po.jsxs,passKeys:!0,passNode:!0});function c(f,d,x){if(f.type==="raw"&&x&&typeof d=="number")return s?x.children.splice(d,1):x.children[d]={type:"text",value:f.value},d;if(f.type==="element"){let b;for(b in nu)if(Object.hasOwn(nu,b)&&Object.hasOwn(f.properties,b)){const T=f.properties[b],A=nu[b];(A===null||A.includes(f.tagName))&&(f.properties[b]=l(String(T||""),b,f))}}if(f.type==="element"){let b=r?!r.includes(f.tagName):a?a.includes(f.tagName):!1;if(!b&&n&&typeof d=="number"&&(b=!n(f,d,x)),b&&x&&typeof d=="number")return u&&f.children?x.children.splice(d,1,...f.children):x.children.splice(d,1),d}}}function V6(e){const t=e.indexOf(":"),r=e.indexOf("?"),n=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||r!==-1&&t>r||n!==-1&&t>n||B6.test(e.slice(0,t))?e:""}const Tc=(function(e,t,r){const n=Ya(r);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof t=="number"){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(t=e.children.indexOf(t),t<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(n(e.children[t],t,e))return e.children[t]}),pi=(function(e){if(e==null)return Y6;if(typeof e=="string")return G6(e);if(typeof e=="object")return q6(e);if(typeof e=="function")return zl(e);throw new Error("Expected function, string, or array as `test`")});function q6(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=pi(e[r]);return zl(n);function n(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function G6(e){return zl(t);function t(r){return r.tagName===e}}function zl(e){return t;function t(r,n,i){return!!(W6(r)&&e.call(this,r,typeof n=="number"?n:void 0,i||void 0))}}function Y6(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function W6(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const _c=/\n/g,Ac=/[\t ]+/g,qu=pi("br"),Sc=pi(Z6),$6=pi("p"),wc=pi("tr"),K6=pi(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",Q6,ex]),_d=pi(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function Ad(e,t){const r=t||{},n="children"in e?e.children:[],i=_d(e),a=kd(e,{whitespace:r.whitespace||"normal"}),s=[];(e.type==="text"||e.type==="comment")&&s.push(...wd(e,{breakBefore:!0,breakAfter:!0}));let u=-1;for(;++u<n.length;)s.push(...Sd(n[u],e,{whitespace:a,breakBefore:u?void 0:i,breakAfter:u<n.length-1?qu(n[u+1]):i}));const l=[];let c;for(u=-1;++u<s.length;){const f=s[u];typeof f=="number"?c!==void 0&&f>c&&(c=f):f&&(c!==void 0&&c>-1&&l.push(`
|
|
45
|
+
`},i),a}function Z3(e,t){return e&&"run"in e?async function(r,n){const i=mc(r,{file:n,...t});await e.run(i,n)}:function(r,n){return mc(r,{file:n,...e||t})}}function gc(e){if(e)throw e}var Qo,bc;function e6(){if(bc)return Qo;bc=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=function(c){return typeof Array.isArray=="function"?Array.isArray(c):t.call(c)==="[object Array]"},a=function(c){if(!c||t.call(c)!=="[object Object]")return!1;var f=e.call(c,"constructor"),d=c.constructor&&c.constructor.prototype&&e.call(c.constructor.prototype,"isPrototypeOf");if(c.constructor&&!f&&!d)return!1;var x;for(x in c);return typeof x>"u"||e.call(c,x)},s=function(c,f){r&&f.name==="__proto__"?r(c,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):c[f.name]=f.newValue},u=function(c,f){if(f==="__proto__")if(e.call(c,f)){if(n)return n(c,f).value}else return;return c[f]};return Qo=function l(){var c,f,d,x,b,T,A=arguments[0],C=1,S=arguments.length,I=!1;for(typeof A=="boolean"&&(I=A,A=arguments[1]||{},C=2),(A==null||typeof A!="object"&&typeof A!="function")&&(A={});C<S;++C)if(c=arguments[C],c!=null)for(f in c)d=u(A,f),x=u(c,f),A!==x&&(I&&x&&(a(x)||(b=i(x)))?(b?(b=!1,T=d&&i(d)?d:[]):T=d&&a(d)?d:{},s(A,{name:f,newValue:l(I,T,x)})):typeof x<"u"&&s(A,{name:f,newValue:x}));return A},Qo}var t6=e6();const Zo=eo(t6);function Vu(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function r6(){const e=[],t={run:r,use:n};return t;function r(...i){let a=-1;const s=i.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);u(null,...i);function u(l,...c){const f=e[++a];let d=-1;if(l){s(l);return}for(;++d<i.length;)(c[d]===null||c[d]===void 0)&&(c[d]=i[d]);i=c,f?n6(f,u)(...c):s(null,...c)}}function n(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function n6(e,t){let r;return n;function n(...s){const u=e.length>s.length;let l;u&&s.push(i);try{l=e.apply(this,s)}catch(c){const f=c;if(u&&r)throw f;return i(f)}u||(l&&l.then&&typeof l.then=="function"?l.then(a,i):l instanceof Error?i(l):a(l))}function i(s,...u){r||(r=!0,t(s,...u))}function a(s){i(null,s)}}const i6=(function(e){const n=this.constructor.prototype,i=n[e],a=function(){return i.apply(a,arguments)};return Object.setPrototypeOf(a,n),a}),a6={}.hasOwnProperty;class Pl extends i6{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=r6()}copy(){const t=new Pl;let r=-1;for(;++r<this.attachers.length;){const n=this.attachers[r];t.use(...n)}return t.data(Zo(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(ru("data",this.frozen),this.namespace[t]=r,this):a6.call(this.namespace,t)&&this.namespace[t]||void 0:t?(ru("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);const i=r.call(t,...n);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=hs(t),n=this.parser||this.Parser;return eu("parse",n),n(String(r),r)}process(t,r){const n=this;return this.freeze(),eu("process",this.parser||this.Parser),tu("process",this.compiler||this.Compiler),r?i(void 0,r):new Promise(i);function i(a,s){const u=hs(t),l=n.parse(u);n.run(l,u,function(f,d,x){if(f||!d||!x)return c(f);const b=d,T=n.stringify(b,x);u6(T)?x.value=T:x.result=T,c(f,x)});function c(f,d){f||!d?s(f):a?a(d):r(void 0,d)}}}processSync(t){let r=!1,n;return this.freeze(),eu("processSync",this.parser||this.Parser),tu("processSync",this.compiler||this.Compiler),this.process(t,i),Ec("processSync","process",r),n;function i(a,s){r=!0,gc(a),n=s}}run(t,r,n){xc(t),this.freeze();const i=this.transformers;return!n&&typeof r=="function"&&(n=r,r=void 0),n?a(void 0,n):new Promise(a);function a(s,u){const l=hs(r);i.run(t,l,c);function c(f,d,x){const b=d||t;f?u(f):s?s(b):n(void 0,b,x)}}}runSync(t,r){let n=!1,i;return this.run(t,r,a),Ec("runSync","run",n),i;function a(s,u){gc(s),i=u,n=!0}}stringify(t,r){this.freeze();const n=hs(r),i=this.compiler||this.Compiler;return tu("stringify",i),xc(t),i(t,n)}use(t,...r){const n=this.attachers,i=this.namespace;if(ru("use",this.frozen),t!=null)if(typeof t=="function")l(t,r);else if(typeof t=="object")Array.isArray(t)?u(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(c){if(typeof c=="function")l(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[f,...d]=c;l(f,d)}else s(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function s(c){if(!("plugins"in c)&&!("settings"in c))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");u(c.plugins),c.settings&&(i.settings=Zo(!0,i.settings,c.settings))}function u(c){let f=-1;if(c!=null)if(Array.isArray(c))for(;++f<c.length;){const d=c[f];a(d)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function l(c,f){let d=-1,x=-1;for(;++d<n.length;)if(n[d][0]===c){x=d;break}if(x===-1)n.push([c,...f]);else if(f.length>0){let[b,...T]=f;const A=n[x][1];Vu(A)&&Vu(b)&&(b=Zo(!0,A,b)),n[x]=[c,b,...T]}}}}const s6=new Pl().freeze();function eu(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function tu(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function ru(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function xc(e){if(!Vu(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Ec(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function hs(e){return o6(e)?e:new Kh(e)}function o6(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function u6(e){return typeof e=="string"||l6(e)}function l6(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function w_(){return function(e){di(e,"raw",function(t,r,n){if(n&&typeof r=="number")return n.children.splice(r,1),r})}}const c6=/\s+/g,h6=/[\t\n\v\f\r ]+/g;function f6(e,t){t?typeof t=="string"&&(t={style:t}):t={};const r=t.preserveLineEndings?d6:p6;return String(e).replace(t.style==="html"?h6:c6,t.trim?m6(r):r)}function d6(e){const t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function p6(){return" "}function m6(e){return t;function t(r,n,i){return n===0||n+r.length===i.length?"":e(r)}}function k_(){return function(e){di(e,function(t,r,n){let i=-1,a=!0,s=!1;if(n&&typeof r=="number"&&t.type==="paragraph"){const u=t.children;for(;++i<u.length;){const l=u[i];if(l.type==="mdxJsxTextElement"||l.type==="mdxTextExpression")s=!0;else if(!(l.type==="text"&&f6(l.value,{style:"html",trim:!0})==="")){a=!1;break}}if(a&&s){i=-1;const l=[];for(;++i<u.length;){const c=u[i];c.type==="mdxJsxTextElement"&&(c.type="mdxJsxFlowElement"),c.type==="mdxTextExpression"&&(c.type="mdxFlowExpression"),c.type==="text"&&/^[\t\r\n ]+$/.test(String(c.value))||l.push(c)}return n.children.splice(r,1,...l),r}}if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement"){const u=t.data||(t.data={});u._mdxExplicitJsx=!0}(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression"||t.type==="mdxjsEsm")&&t.data&&t.data.estree&&Cm(t.data.estree,{enter(u){if(u.type==="JSXElement"){const l=u.data||(u.data={});l._mdxExplicitJsx=!0}}})})}}const Bl={}.hasOwnProperty,g6=new Map,b6=/[A-Z]/g,x6=new Set(["table","tbody","thead","tfoot","tr"]),E6=new Set(["td","th"]),Ed="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function y6(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let n;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");n=C6(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");n=k6(r,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:n,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?rn:qi,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=yd(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function yd(e,t,r){if(t.type==="element")return v6(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return T6(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return A6(e,t,r);if(t.type==="mdxjsEsm")return _6(e,t);if(t.type==="root")return S6(e,t,r);if(t.type==="text")return w6(e,t)}function v6(e,t,r){const n=e.schema;let i=n;t.tagName.toLowerCase()==="svg"&&n.space==="html"&&(i=rn,e.schema=i),e.ancestors.push(t);const a=Td(e,t.tagName,!1),s=N6(e,t);let u=Ul(e,t);return x6.has(t.tagName)&&(u=u.filter(function(l){return typeof l=="string"?!uf(l):!0})),vd(e,s,a,t),Fl(s,u),e.ancestors.pop(),e.schema=n,e.create(t,a,s,r)}function T6(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}Da(e,t.position)}function _6(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Da(e,t.position)}function A6(e,t,r){const n=e.schema;let i=n;t.name==="svg"&&n.space==="html"&&(i=rn,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:Td(e,t.name,!0),s=I6(e,t),u=Ul(e,t);return vd(e,s,a,t),Fl(s,u),e.ancestors.pop(),e.schema=n,e.create(t,a,s,r)}function S6(e,t,r){const n={};return Fl(n,Ul(e,t)),e.create(t,e.Fragment,n,r)}function w6(e,t){return t.value}function vd(e,t,r,n){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=n)}function Fl(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function k6(e,t,r){return n;function n(i,a,s,u){const c=Array.isArray(s.children)?r:t;return u?c(a,s,u):c(a,s)}}function C6(e,t){return r;function r(n,i,a,s){const u=Array.isArray(a.children),l=pn(n);return t(i,a,s,u,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function N6(e,t){const r={};let n,i;for(i in t.properties)if(i!=="children"&&Bl.call(t.properties,i)){const a=O6(e,i,t.properties[i]);if(a){const[s,u]=a;e.tableCellAlignToStyle&&s==="align"&&typeof u=="string"&&E6.has(t.tagName)?n=u:r[s]=u}}if(n){const a=r.style||(r.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=n}return r}function I6(e,t){const r={};for(const n of t.attributes)if(n.type==="mdxJsxExpressionAttribute")if(n.data&&n.data.estree&&e.evaluater){const a=n.data.estree.body[0];a.type;const s=a.expression;s.type;const u=s.properties[0];u.type,Object.assign(r,e.evaluater.evaluateExpression(u.argument))}else Da(e,t.position);else{const i=n.name;let a;if(n.value&&typeof n.value=="object")if(n.value.data&&n.value.data.estree&&e.evaluater){const u=n.value.data.estree.body[0];u.type,a=e.evaluater.evaluateExpression(u.expression)}else Da(e,t.position);else a=n.value===null?!0:n.value;r[i]=a}return r}function Ul(e,t){const r=[];let n=-1;const i=e.passKeys?new Map:g6;for(;++n<t.children.length;){const a=t.children[n];let s;if(e.passKeys){const l=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(l){const c=i.get(l)||0;s=l+"-"+c,i.set(l,c+1)}}const u=yd(e,a,s);u!==void 0&&r.push(u)}return r}function O6(e,t,r){const n=Va(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=n.commaSeparated?ml(r):bl(r)),n.property==="style"){let i=typeof r=="object"?r:R6(e,String(r));return e.stylePropertyNameCase==="css"&&(i=L6(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&n.space?nf[n.property]||n.property:n.attribute,r]}}function R6(e,t){try{return af(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const n=r,i=new st("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=Ed+"#cannot-parse-style-attribute",i}}function Td(e,t,r){let n;if(!r)n={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let a=-1,s;for(;++a<i.length;){const u=va(i[a])?{type:"Identifier",name:i[a]}:{type:"Literal",value:i[a]};s=s?{type:"MemberExpression",object:s,property:u,computed:!!(a&&u.type==="Literal"),optional:!1}:u}n=s}else n=va(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(n.type==="Literal"){const i=n.value;return Bl.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(n);Da(e)}function Da(e,t){const r=new st("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=Ed+"#cannot-handle-mdx-estrees-without-createevaluater",r}function L6(e){const t={};let r;for(r in e)Bl.call(e,r)&&(t[M6(r)]=e[r]);return t}function M6(e){let t=e.replace(b6,D6);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function D6(e){return"-"+e.toLowerCase()}const nu={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},P6="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",yc=[],vc={allowDangerousHtml:!0},B6=/^(https?|ircs?|mailto|xmpp)$/i,F6=[{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 C_(e){const t=U6(e),r=z6(e);return H6(t.runSync(t.parse(r),r),e)}function U6(e){const t=e.rehypePlugins||yc,r=e.remarkPlugins||yc,n=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...vc}:vc;return s6().use(s3).use(r).use(Z3,n).use(t)}function z6(e){const t=e.children||"",r=new Kh;return typeof t=="string"&&(r.value=t),r}function H6(e,t){const r=t.allowedElements,n=t.allowElement,i=t.components,a=t.disallowedElements,s=t.skipHtml,u=t.unwrapDisallowed,l=t.urlTransform||V6;for(const f of F6)Object.hasOwn(t,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+P6+f.id,void 0);return di(e,c),y6(e,{Fragment:Po.Fragment,components:i,ignoreInvalidStyle:!0,jsx:Po.jsx,jsxs:Po.jsxs,passKeys:!0,passNode:!0});function c(f,d,x){if(f.type==="raw"&&x&&typeof d=="number")return s?x.children.splice(d,1):x.children[d]={type:"text",value:f.value},d;if(f.type==="element"){let b;for(b in nu)if(Object.hasOwn(nu,b)&&Object.hasOwn(f.properties,b)){const T=f.properties[b],A=nu[b];(A===null||A.includes(f.tagName))&&(f.properties[b]=l(String(T||""),b,f))}}if(f.type==="element"){let b=r?!r.includes(f.tagName):a?a.includes(f.tagName):!1;if(!b&&n&&typeof d=="number"&&(b=!n(f,d,x)),b&&x&&typeof d=="number")return u&&f.children?x.children.splice(d,1,...f.children):x.children.splice(d,1),d}}}function V6(e){const t=e.indexOf(":"),r=e.indexOf("?"),n=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||r!==-1&&t>r||n!==-1&&t>n||B6.test(e.slice(0,t))?e:""}const Tc=(function(e,t,r){const n=Ya(r);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof t=="number"){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(t=e.children.indexOf(t),t<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(n(e.children[t],t,e))return e.children[t]}),pi=(function(e){if(e==null)return Y6;if(typeof e=="string")return G6(e);if(typeof e=="object")return q6(e);if(typeof e=="function")return zl(e);throw new Error("Expected function, string, or array as `test`")});function q6(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=pi(e[r]);return zl(n);function n(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function G6(e){return zl(t);function t(r){return r.tagName===e}}function zl(e){return t;function t(r,n,i){return!!(W6(r)&&e.call(this,r,typeof n=="number"?n:void 0,i||void 0))}}function Y6(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function W6(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const _c=/\n/g,Ac=/[\t ]+/g,qu=pi("br"),Sc=pi(Z6),$6=pi("p"),wc=pi("tr"),K6=pi(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",Q6,ex]),_d=pi(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function Ad(e,t){const r=t||{},n="children"in e?e.children:[],i=_d(e),a=kd(e,{whitespace:r.whitespace||"normal"}),s=[];(e.type==="text"||e.type==="comment")&&s.push(...wd(e,{breakBefore:!0,breakAfter:!0}));let u=-1;for(;++u<n.length;)s.push(...Sd(n[u],e,{whitespace:a,breakBefore:u?void 0:i,breakAfter:u<n.length-1?qu(n[u+1]):i}));const l=[];let c;for(u=-1;++u<s.length;){const f=s[u];typeof f=="number"?c!==void 0&&f>c&&(c=f):f&&(c!==void 0&&c>-1&&l.push(`
|
|
46
46
|
`.repeat(c)||" "),c=-1,l.push(f))}return l.join("")}function Sd(e,t,r){return e.type==="element"?X6(e,t,r):e.type==="text"?r.whitespace==="normal"?wd(e,r):j6(e):[]}function X6(e,t,r){const n=kd(e,r),i=e.children||[];let a=-1,s=[];if(K6(e))return s;let u,l;for(qu(e)||wc(e)&&Tc(t,e,wc)?l=`
|
|
47
47
|
`:$6(e)?(u=2,l=2):_d(e)&&(u=1,l=1);++a<i.length;)s=s.concat(Sd(i[a],e,{whitespace:n,breakBefore:a?void 0:u,breakAfter:a<i.length-1?qu(i[a+1]):l}));return Sc(e)&&Tc(t,e,Sc)&&s.push(" "),u&&s.unshift(u),l&&s.push(l),s}function wd(e,t){const r=String(e.value),n=[],i=[];let a=0;for(;a<=r.length;){_c.lastIndex=a;const l=_c.exec(r),c=l&&"index"in l?l.index:r.length;n.push(J6(r.slice(a,c).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),a===0?t.breakBefore:!0,c===r.length?t.breakAfter:!0)),a=c+1}let s=-1,u;for(;++s<n.length;)n[s].charCodeAt(n[s].length-1)===8203||s<n.length-1&&n[s+1].charCodeAt(0)===8203?(i.push(n[s]),u=void 0):n[s]?(typeof u=="number"&&i.push(u),i.push(n[s]),u=0):(s===0||s===n.length-1)&&i.push(0);return i}function j6(e){return[String(e.value)]}function J6(e,t,r){const n=[];let i=0,a;for(;i<e.length;){Ac.lastIndex=i;const s=Ac.exec(e);a=s?s.index:e.length,!i&&!a&&s&&!t&&n.push(""),i!==a&&n.push(e.slice(i,a)),i=s?a+s[0].length:a}return i!==a&&!r&&n.push(""),n.join(" ")}function kd(e,t){if(e.type==="element"){const r=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return r.wrap?"pre-wrap":"pre";case"td":case"th":return r.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}function Q6(e){return!!(e.properties||{}).hidden}function Z6(e){return e.tagName==="td"||e.tagName==="th"}function ex(e){return e.tagName==="dialog"&&!(e.properties||{}).open}function tx(e){const t=e.regex,r=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),n="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",s="(?!struct)("+n+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",u={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},f={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},d={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(c,{className:"string"}),{className:"string",begin:/<.*?>/},r,e.C_BLOCK_COMMENT_MODE]},x={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},b=t.optional(i)+e.IDENT_RE+"\\s*\\(",T=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],A=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],C=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],S=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],q={type:A,keyword:T,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:C},O={className:"function.dispatch",relevance:0,keywords:{_hint:S},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},g=[O,d,u,r,e.C_BLOCK_COMMENT_MODE,f,c],P={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:q,contains:g.concat([{begin:/\(/,end:/\)/,keywords:q,contains:g.concat(["self"]),relevance:0}]),relevance:0},G={className:"function",begin:"("+s+"[\\*&\\s]+)+"+b,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:q,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:n,keywords:q,relevance:0},{begin:b,returnBegin:!0,contains:[x],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[c,f]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:q,relevance:0,contains:[r,e.C_BLOCK_COMMENT_MODE,c,f,u,{begin:/\(/,end:/\)/,keywords:q,relevance:0,contains:["self",r,e.C_BLOCK_COMMENT_MODE,c,f,u]}]},u,r,e.C_BLOCK_COMMENT_MODE,d]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:q,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(P,G,O,g,[d,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:q,contains:["self",u]},{begin:e.IDENT_RE+"::",keywords:q},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function rx(e){const t={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},r=tx(e),n=r.keywords;return n.type=[...n.type,...t.type],n.literal=[...n.literal,...t.literal],n.built_in=[...n.built_in,...t.built_in],n._hints=t._hints,r.name="Arduino",r.aliases=["ino"],r.supersetOf="cpp",r}function nx(e){const t=e.regex,r={},n={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[r]}]};Object.assign(r,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},n]});const i={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},a=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),s={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},u={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,r,i]};i.contains.push(u);const l={match:/\\"/},c={className:"string",begin:/'/,end:/'/},f={match:/\\'/},d={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,r]},x=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],b=e.SHEBANG({binary:`(${x.join("|")})`,relevance:10}),T={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},A=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],C=["true","false"],S={match:/(\/[a-z._-]+)+/},I=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],D=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],q=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],O=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:A,literal:C,built_in:[...I,...D,"set","shopt",...q,...O]},contains:[b,e.SHEBANG(),T,d,a,s,S,u,l,c,f,r]}}function ix(e){const t=e.regex,r=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),n="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",s="("+n+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",u={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},f={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},d={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(c,{className:"string"}),{className:"string",begin:/<.*?>/},r,e.C_BLOCK_COMMENT_MODE]},x={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},b=t.optional(i)+e.IDENT_RE+"\\s*\\(",C={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},S=[d,u,r,e.C_BLOCK_COMMENT_MODE,f,c],I={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:C,contains:S.concat([{begin:/\(/,end:/\)/,keywords:C,contains:S.concat(["self"]),relevance:0}]),relevance:0},D={begin:"("+s+"[\\*&\\s]+)+"+b,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:C,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:n,keywords:C,relevance:0},{begin:b,returnBegin:!0,contains:[e.inherit(x,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:[r,e.C_BLOCK_COMMENT_MODE,c,f,u,{begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:["self",r,e.C_BLOCK_COMMENT_MODE,c,f,u]}]},u,r,e.C_BLOCK_COMMENT_MODE,d]};return{name:"C",aliases:["h"],keywords:C,disableAutodetect:!0,illegal:"</",contains:[].concat(I,D,S,[d,{begin:e.IDENT_RE+"::",keywords:C},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:d,strings:c,keywords:C}}}function ax(e){const t=e.regex,r=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),n="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",s="(?!struct)("+n+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",u={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},f={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},d={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(c,{className:"string"}),{className:"string",begin:/<.*?>/},r,e.C_BLOCK_COMMENT_MODE]},x={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},b=t.optional(i)+e.IDENT_RE+"\\s*\\(",T=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],A=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],C=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],S=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],q={type:A,keyword:T,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:C},O={className:"function.dispatch",relevance:0,keywords:{_hint:S},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},g=[O,d,u,r,e.C_BLOCK_COMMENT_MODE,f,c],P={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:q,contains:g.concat([{begin:/\(/,end:/\)/,keywords:q,contains:g.concat(["self"]),relevance:0}]),relevance:0},G={className:"function",begin:"("+s+"[\\*&\\s]+)+"+b,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:q,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:n,keywords:q,relevance:0},{begin:b,returnBegin:!0,contains:[x],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[c,f]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:q,relevance:0,contains:[r,e.C_BLOCK_COMMENT_MODE,c,f,u,{begin:/\(/,end:/\)/,keywords:q,relevance:0,contains:["self",r,e.C_BLOCK_COMMENT_MODE,c,f,u]}]},u,r,e.C_BLOCK_COMMENT_MODE,d]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:q,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(P,G,O,g,[d,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:q,contains:["self",u]},{begin:e.IDENT_RE+"::",keywords:q},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function sx(e){const t=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],r=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],n=["default","false","null","true"],i=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],a=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],s={keyword:i.concat(a),built_in:t,literal:n},u=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),l={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},c={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},f={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},d=e.inherit(f,{illegal:/\n/}),x={className:"subst",begin:/\{/,end:/\}/,keywords:s},b=e.inherit(x,{illegal:/\n/}),T={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,b]},A={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},x]},C=e.inherit(A,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},b]});x.contains=[A,T,f,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,e.C_BLOCK_COMMENT_MODE],b.contains=[C,T,d,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const S={variants:[c,A,T,f,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},I={begin:"<",end:">",contains:[{beginKeywords:"in out"},u]},D=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",q={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:s,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},S,l,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},u,I,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[u,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[u,I,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+D+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:s,contains:[{beginKeywords:r.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,I],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,relevance:0,contains:[S,l,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},q]}}const ox=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),ux=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],lx=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],cx=[...ux,...lx],hx=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),fx=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),dx=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),px=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function mx(e){const t=e.regex,r=ox(e),n={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},i="and or not only",a=/@-?\w[\w]*(-\w+)*/,s="[a-zA-Z-][a-zA-Z0-9_-]*",u=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[r.BLOCK_COMMENT,n,r.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+s,relevance:0},r.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+fx.join("|")+")"},{begin:":(:)?("+dx.join("|")+")"}]},r.CSS_VARIABLE,{className:"attribute",begin:"\\b("+px.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[r.BLOCK_COMMENT,r.HEXCOLOR,r.IMPORTANT,r.CSS_NUMBER_MODE,...u,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...u,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},r.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:a},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:i,attribute:hx.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...u,r.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+cx.join("|")+")\\b"}]}}function gx(e){const t=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}function bx(e){const a={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:a,illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:a,illegal:/["']/}]}]}}function xx(e){const t=e.regex,r=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:t.concat(r,t.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}function Ex(e){const t=e.regex,r={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},n=e.COMMENT();n.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const i={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},a={className:"literal",begin:/\bon|off|true|false|yes|no\b/},s={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},u={begin:/\[/,end:/\]/,contains:[n,a,i,s,r,"self"],relevance:0},l=/[A-Za-z0-9_-]+/,c=/"(\\"|[^"])*"/,f=/'[^']*'/,d=t.either(l,c,f),x=t.concat(d,"(\\s*\\.\\s*",d,")*",t.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[n,{className:"section",begin:/\[+/,end:/\]+/},{begin:x,className:"attr",starts:{end:/$/,contains:[n,u,a,i,s,r]}}]}}var Oi="[0-9](_*[0-9])*",fs=`\\.(${Oi})`,ds="[0-9a-fA-F](_*[0-9a-fA-F])*",kc={className:"number",variants:[{begin:`(\\b(${Oi})((${fs})|\\.)?|(${fs}))[eE][+-]?(${Oi})[fFdD]?\\b`},{begin:`\\b(${Oi})((${fs})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${fs})[fFdD]?\\b`},{begin:`\\b(${Oi})[fFdD]\\b`},{begin:`\\b0[xX]((${ds})\\.?|(${ds})?\\.(${ds}))[pP][+-]?(${Oi})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${ds})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function Cd(e,t,r){return r===-1?"":e.replace(t,n=>Cd(e,t,r-1))}function yx(e){const t=e.regex,r="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",n=r+Cd("(?:<"+r+"~~~(?:\\s*,\\s*"+r+"~~~)*>)?",/~~~/g,2),l={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},c={className:"meta",begin:"@"+r,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},f={className:"params",begin:/\(/,end:/\)/,keywords:l,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:l,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[t.concat(/(?!else)/,r),/\s+/,r,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,r],className:{1:"keyword",3:"title.class"},contains:[f,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+n+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:l,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:l,relevance:0,contains:[c,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,kc,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},kc,c]}}const Cc="[A-Za-z$_][0-9A-Za-z$_]*",vx=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],Tx=["true","false","null","undefined","NaN","Infinity"],Nd=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Id=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Od=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],_x=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Ax=[].concat(Od,Nd,Id);function Sx(e){const t=e.regex,r=(Oe,{after:qe})=>{const F="</"+Oe[0].slice(1);return Oe.input.indexOf(F,qe)!==-1},n=Cc,i={begin:"<>",end:"</>"},a=/<[A-Za-z0-9\\._:-]+\s*\/>/,s={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Oe,qe)=>{const F=Oe[0].length+Oe.index,We=Oe.input[F];if(We==="<"||We===","){qe.ignoreMatch();return}We===">"&&(r(Oe,{after:F})||qe.ignoreMatch());let Ge;const H=Oe.input.substring(F);if(Ge=H.match(/^\s*=/)){qe.ignoreMatch();return}if((Ge=H.match(/^\s+extends\s+/))&&Ge.index===0){qe.ignoreMatch();return}}},u={$pattern:Cc,keyword:vx,literal:Tx,built_in:Ax,"variable.language":_x},l="[0-9](_?[0-9])*",c=`\\.(${l})`,f="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${f})((${c})|\\.)?|(${c}))[eE][+-]?(${l})\\b`},{begin:`\\b(${f})\\b((${c})\\b|\\.)?|(${c})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},x={className:"subst",begin:"\\$\\{",end:"\\}",keywords:u,contains:[]},b={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,x],subLanguage:"xml"}},T={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,x],subLanguage:"css"}},A={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,x],subLanguage:"graphql"}},C={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,x]},I={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:n+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},D=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,b,T,A,C,{match:/\$\d+/},d];x.contains=D.concat({begin:/\{/,end:/\}/,keywords:u,contains:["self"].concat(D)});const q=[].concat(I,x.contains),O=q.concat([{begin:/(\s*)\(/,end:/\)/,keywords:u,contains:["self"].concat(q)}]),g={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,contains:O},P={variants:[{match:[/class/,/\s+/,n,/\s+/,/extends/,/\s+/,t.concat(n,"(",t.concat(/\./,n),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,n],scope:{1:"keyword",3:"title.class"}}]},G={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Nd,...Id]}},K={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},Y={variants:[{match:[/function/,/\s+/,n,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[g],illegal:/%/},re={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function ee(Oe){return t.concat("(?!",Oe.join("|"),")")}const be={match:t.concat(/\b/,ee([...Od,"super","import"].map(Oe=>`${Oe}\\s*\\(`)),n,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},oe={begin:t.concat(/\./,t.lookahead(t.concat(n,/(?![0-9A-Za-z$_(])/))),end:n,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},ne={match:[/get|set/,/\s+/,n,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},g]},Se="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",Ie={match:[/const|var|let/,/\s+/,n,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(Se)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[g]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:u,exports:{PARAMS_CONTAINS:O,CLASS_REFERENCE:G},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),K,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,b,T,A,C,I,{match:/\$\d+/},d,G,{scope:"attr",match:n+t.lookahead(":"),relevance:0},Ie,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[I,e.REGEXP_MODE,{className:"function",begin:Se,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,contains:O}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:a},{begin:s.begin,"on:begin":s.isTrulyOpeningTag,end:s.end}],subLanguage:"xml",contains:[{begin:s.begin,end:s.end,skip:!0,contains:["self"]}]}]},Y,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[g,e.inherit(e.TITLE_MODE,{begin:n,className:"title.function"})]},{match:/\.\.\./,relevance:0},oe,{match:"\\$"+n,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[g]},be,re,P,ne,{match:/\$[(.]/}]}}function wx(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},r={match:/[{}[\],:]/,className:"punctuation",relevance:0},n=["true","false","null"],i={scope:"literal",beginKeywords:n.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:n},contains:[t,r,e.QUOTE_STRING_MODE,i,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}var Ri="[0-9](_*[0-9])*",ps=`\\.(${Ri})`,ms="[0-9a-fA-F](_*[0-9a-fA-F])*",kx={className:"number",variants:[{begin:`(\\b(${Ri})((${ps})|\\.)?|(${ps}))[eE][+-]?(${Ri})[fFdD]?\\b`},{begin:`\\b(${Ri})((${ps})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${ps})[fFdD]?\\b`},{begin:`\\b(${Ri})[fFdD]\\b`},{begin:`\\b0[xX]((${ms})\\.?|(${ms})?\\.(${ms}))[pP][+-]?(${Ri})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${ms})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function Cx(e){const t={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},r={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},n={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},i={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},a={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},s={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[a,i]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,a,i]}]};i.contains.push(s);const u={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},l={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(s,{className:"string"}),"self"]}]},c=kx,f=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),d={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},x=d;return x.variants[1].contains=[d],d.variants[1].contains=[x],{name:"Kotlin",aliases:["kt","kts"],keywords:t,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,f,r,n,u,l,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:t,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[d,e.C_LINE_COMMENT_MODE,f],relevance:0},e.C_LINE_COMMENT_MODE,f,u,l,s,e.C_NUMBER_MODE]},f]},{begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},u,l]},s,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
|
|
48
48
|
`},c]}}const Nx=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),Ix=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Ox=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],Rx=[...Ix,...Ox],Lx=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),Rd=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),Ld=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Mx=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),Dx=Rd.concat(Ld).sort().reverse();function Px(e){const t=Nx(e),r=Dx,n="and or not only",i="[\\w-]+",a="("+i+"|@\\{"+i+"\\})",s=[],u=[],l=function(D){return{className:"string",begin:"~?"+D+".*?"+D}},c=function(D,q,O){return{className:D,begin:q,relevance:O}},f={$pattern:/[a-z-]+/,keyword:n,attribute:Lx.join(" ")},d={begin:"\\(",end:"\\)",contains:u,keywords:f,relevance:0};u.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,l("'"),l('"'),t.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},t.HEXCOLOR,d,c("variable","@@?"+i,10),c("variable","@\\{"+i+"\\}"),c("built_in","~?`[^`]*?`"),{className:"attribute",begin:i+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},t.IMPORTANT,{beginKeywords:"and not"},t.FUNCTION_DISPATCH);const x=u.concat({begin:/\{/,end:/\}/,contains:s}),b={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(u)},T={begin:a+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Mx.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:u}}]},A={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:f,returnEnd:!0,contains:u,relevance:0}},C={className:"variable",variants:[{begin:"@"+i+"\\s*:",relevance:15},{begin:"@"+i}],starts:{end:"[;}]",returnEnd:!0,contains:x}},S={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:a,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,b,c("keyword","all\\b"),c("variable","@\\{"+i+"\\}"),{begin:"\\b("+Rx.join("|")+")\\b",className:"selector-tag"},t.CSS_NUMBER_MODE,c("selector-tag",a,0),c("selector-id","#"+a),c("selector-class","\\."+a,0),c("selector-tag","&",0),t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+Rd.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+Ld.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:x},{begin:"!important"},t.FUNCTION_DISPATCH]},I={begin:i+`:(:)?(${r.join("|")})`,returnBegin:!0,contains:[S]};return s.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,A,C,I,T,S,b,t.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:s}}function Bx(e){const t="\\[=*\\[",r="\\]=*\\]",n={begin:t,end:r,contains:["self"]},i=[e.COMMENT("--(?!"+t+")","$"),e.COMMENT("--"+t,r,{contains:[n],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:i.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:i}].concat(i)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:r,contains:[n],relevance:5}])}}function Fx(e){const t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},r={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t]},n={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[t,r]},i={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},a={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},s={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[t]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[e.HASH_COMMENT_MODE,t,r,n,i,a,s]}}function Ux(e){const t=e.regex,r={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},n={begin:"^[-\\*]{3,}",end:"$"},i={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},a={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},s={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},u=/[A-Za-z][A-Za-z0-9+.-]*/,l={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,u,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},c={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},f={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},d=e.inherit(c,{contains:[]}),x=e.inherit(f,{contains:[]});c.contains.push(x),f.contains.push(d);let b=[r,l];return[c,f,d,x].forEach(S=>{S.contains=S.contains.concat(b)}),b=b.concat(c,f),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:b},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:b}]}]},r,a,c,f,{className:"quote",begin:"^>\\s+",contains:b,end:"$"},i,n,l,s,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}function zx(e){const t={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},r=/[a-zA-Z@][a-zA-Z0-9_]*/,u={"variable.language":["this","super"],$pattern:r,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},l={$pattern:r,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:u,illegal:"</",contains:[t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+l.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:l,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}function Hx(e){const t=e.regex,r=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],n=/[dualxmsipngr]{0,12}/,i={$pattern:/[\w.]+/,keyword:r.join(" ")},a={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:i},s={begin:/->\{/,end:/\}/},u={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},l={scope:"variable",variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[u]},c={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},f=[e.BACKSLASH_ESCAPE,a,l],d=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],x=(A,C,S="\\1")=>{const I=S==="\\1"?S:t.concat(S,C);return t.concat(t.concat("(?:",A,")"),C,/(?:\\.|[^\\\/])*?/,I,/(?:\\.|[^\\\/])*?/,S,n)},b=(A,C,S)=>t.concat(t.concat("(?:",A,")"),C,/(?:\\.|[^\\\/])*?/,S,n),T=[l,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),s,{className:"string",contains:f,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},c,{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:x("s|tr|y",t.either(...d,{capture:!0}))},{begin:x("s|tr|y","\\(","\\)")},{begin:x("s|tr|y","\\[","\\]")},{begin:x("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:b("(?:m|qr)?",/\//,/\//)},{begin:b("m|qr",t.either(...d,{capture:!0}),/\1/)},{begin:b("m|qr",/\(/,/\)/)},{begin:b("m|qr",/\[/,/\]/)},{begin:b("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,u]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,u,c]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return a.contains=T,s.contains=T,{name:"Perl",aliases:["pl","pm"],keywords:i,contains:T}}function Vx(e){const t=e.regex,r=/(?![A-Za-z0-9])(?![$])/,n=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,r),i=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,r),a=t.concat(/[A-Z]+/,r),s={scope:"variable",match:"\\$+"+n},u={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},l={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},c=e.inherit(e.APOS_STRING_MODE,{illegal:null}),f=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(l)}),d={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(l),"on:begin":(oe,ne)=>{ne.data._beginMatch=oe[1]||oe[2]},"on:end":(oe,ne)=>{ne.data._beginMatch!==oe[1]&&ne.ignoreMatch()}},x=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),b=`[
|
|
49
49
|
]`,T={scope:"string",variants:[f,c,d,x]},A={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},C=["false","null","true"],S=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],I=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],q={keyword:S,literal:(oe=>{const ne=[];return oe.forEach(Se=>{ne.push(Se),Se.toLowerCase()===Se?ne.push(Se.toUpperCase()):ne.push(Se.toLowerCase())}),ne})(C),built_in:I},O=oe=>oe.map(ne=>ne.replace(/\|\d+$/,"")),g={variants:[{match:[/new/,t.concat(b,"+"),t.concat("(?!",O(I).join("\\b|"),"\\b)"),i],scope:{1:"keyword",4:"title.class"}}]},P=t.concat(n,"\\b(?!\\()"),G={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),P],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[i,t.concat(/::/,t.lookahead(/(?!class\b)/)),P],scope:{1:"title.class",3:"variable.constant"}},{match:[i,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[i,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},K={scope:"attr",match:t.concat(n,t.lookahead(":"),t.lookahead(/(?!::)/))},Y={relevance:0,begin:/\(/,end:/\)/,keywords:q,contains:[K,s,G,e.C_BLOCK_COMMENT_MODE,T,A,g]},re={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",O(S).join("\\b|"),"|",O(I).join("\\b|"),"\\b)"),n,t.concat(b,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[Y]};Y.contains.push(re);const ee=[K,G,e.C_BLOCK_COMMENT_MODE,T,A,g],be={begin:t.concat(/#\[\s*\\?/,t.either(i,a)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:C,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:C,keyword:["new","array"]},contains:["self",...ee]},...ee,{scope:"meta",variants:[{match:i},{match:a}]}]};return{case_insensitive:!1,keywords:q,contains:[be,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},u,{scope:"variable.language",match:/\$this\b/},s,re,G,{match:[/const/,/\s/,n],scope:{1:"keyword",3:"variable.constant"}},g,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:q,contains:["self",be,s,G,e.C_BLOCK_COMMENT_MODE,T,A]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},T,A]}}function qx(e){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}function Gx(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function Yx(e){const t=e.regex,r=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),n=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],u={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:n,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},l={className:"meta",begin:/^(>>>|\.\.\.) /},c={className:"subst",begin:/\{/,end:/\}/,keywords:u,illegal:/#/},f={begin:/\{\{/,relevance:0},d={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,l,f,c]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,l,f,c]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,f,c]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,f,c]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},x="[0-9](_?[0-9])*",b=`(\\b(${x}))?\\.(${x})|\\b(${x})\\.`,T=`\\b|${n.join("|")}`,A={className:"number",relevance:0,variants:[{begin:`(\\b(${x})|(${b}))[eE][+-]?(${x})[jJ]?(?=${T})`},{begin:`(${b})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${T})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${T})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${T})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${T})`},{begin:`\\b(${x})[jJ](?=${T})`}]},C={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:u,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},S={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,contains:["self",l,A,d,e.HASH_COMMENT_MODE]}]};return c.contains=[d,A,l],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:u,illegal:/(<\/|\?)|=>/,contains:[l,A,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},d,C,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,r],scope:{1:"keyword",3:"title.function"},contains:[S]},{variants:[{match:[/\bclass/,/\s+/,r,/\s*/,/\(\s*/,r,/\s*\)/]},{match:[/\bclass/,/\s+/,r]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[A,S,d]}]}}function Wx(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function $x(e){const t=e.regex,r=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,n=t.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),i=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,a=t.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:r,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:t.lookahead(t.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:r},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[i,n]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,n]},{scope:{1:"punctuation",2:"number"},match:[a,n]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,n]}]},{scope:{3:"operator"},match:[r,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:i},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:a},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}function Kx(e){const t=e.regex,r="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",n=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=t.concat(n,/(::\w+)*/),s={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},u={className:"doctag",begin:"@[A-Za-z]+"},l={begin:"#<",end:">"},c=[e.COMMENT("#","$",{contains:[u]}),e.COMMENT("^=begin","^=end",{contains:[u],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],f={className:"subst",begin:/#\{/,end:/\}/,keywords:s},d={className:"string",contains:[e.BACKSLASH_ESCAPE,f],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,f]})]}]},x="[1-9](_?[0-9])*|0",b="[0-9](_?[0-9])*",T={className:"number",relevance:0,variants:[{begin:`\\b(${x})(\\.(${b}))?([eE][+-]?(${b})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},A={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:s}]},g=[d,{variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/\b(class|module)\s+/,i]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:s},{match:[/(include|extend)\s+/,i],scope:{2:"title.class"},keywords:s},{relevance:0,match:[i,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:n,scope:"title.class"},{match:[/def/,/\s+/,r],scope:{1:"keyword",3:"title.function"},contains:[A]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[d,{begin:r}],relevance:0},T,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:s},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,f],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(l,c),relevance:0}].concat(l,c);f.contains=g,A.contains=g;const Y=[{begin:/^\s*=>/,starts:{end:"$",contains:g}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:s,contains:g}}];return c.unshift(l),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:s,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(Y).concat(c).concat(g)}}function Xx(e){const t=e.regex,r=/(r#)?/,n=t.concat(r,e.UNDERSCORE_IDENT_RE),i=t.concat(r,e.IDENT_RE),a={className:"title.function.invoke",relevance:0,begin:t.concat(/\b/,/(?!let|for|while|if|else|match\b)/,i,t.lookahead(/\s*\(/))},s="([ui](8|16|32|64|128|size)|f(32|64))?",u=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],l=["true","false","Some","None","Ok","Err"],c=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],f=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:f,keyword:u,literal:l,built_in:c},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{className:"number",variants:[{begin:"\\b0b([01_]+)"+s},{begin:"\\b0o([0-7_]+)"+s},{begin:"\\b0x([A-Fa-f0-9_]+)"+s},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+s}],relevance:0},{begin:[/fn/,/\s+/,n],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,n],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,n,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{keyword:"Self",built_in:c,type:f}},{className:"punctuation",begin:"->"},a]}}const jx=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),Jx=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Qx=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],Zx=[...Jx,...Qx],eE=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),tE=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),rE=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),nE=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function iE(e){const t=jx(e),r=rE,n=tE,i="@[a-z-]+",a="and or not only",u={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+Zx.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+n.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+r.join("|")+")"},u,{begin:/\(/,end:/\)/,contains:[t.CSS_NUMBER_MODE]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+nE.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[t.BLOCK_COMMENT,u,t.HEXCOLOR,t.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.IMPORTANT,t.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:i,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:a,attribute:eE.join(" ")},contains:[{begin:i,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},u,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.HEXCOLOR,t.CSS_NUMBER_MODE]},t.FUNCTION_DISPATCH]}}function aE(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function sE(e){const t=e.regex,r=e.COMMENT("--","$"),n={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},i={begin:/"/,end:/"/,contains:[{match:/""/}]},a=["true","false","unknown"],s=["double precision","large object","with timezone","without timezone"],u=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],l=["add","asc","collation","desc","final","first","last","view"],c=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],f=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],d=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],x=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],b=f,T=[...c,...l].filter(O=>!f.includes(O)),A={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},C={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},S={match:t.concat(/\b/,t.either(...b),/\s*\(/),relevance:0,keywords:{built_in:b}};function I(O){return t.concat(/\b/,t.either(...O.map(g=>g.replace(/\s+/,"\\s+"))),/\b/)}const D={scope:"keyword",match:I(x),relevance:0};function q(O,{exceptions:g,when:P}={}){const G=P;return g=g||[],O.map(K=>K.match(/\|\d+$/)||g.includes(K)?K:G(K)?`${K}|0`:K)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:q(T,{when:O=>O.length<3}),literal:a,type:u,built_in:d},contains:[{scope:"type",match:I(s)},D,S,A,n,i,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,r,C]}}function Md(e){return e?typeof e=="string"?e:e.source:null}function ma(e){return mt("(?=",e,")")}function mt(...e){return e.map(r=>Md(r)).join("")}function oE(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function mr(...e){return"("+(oE(e).capture?"":"?:")+e.map(n=>Md(n)).join("|")+")"}const Hl=e=>mt(/\b/,e,/\w$/.test(e)?/\b/:/\B/),uE=["Protocol","Type"].map(Hl),Nc=["init","self"].map(Hl),lE=["Any","Self"],iu=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],Ic=["false","nil","true"],cE=["assignment","associativity","higherThan","left","lowerThan","none","right"],hE=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],Oc=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],Dd=mr(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),Pd=mr(Dd,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),au=mt(Dd,Pd,"*"),Bd=mr(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),Vs=mr(Bd,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),on=mt(Bd,Vs,"*"),gs=mt(/[A-Z]/,Vs,"*"),fE=["attached","autoclosure",mt(/convention\(/,mr("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",mt(/objc\(/,on,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],dE=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function pE(e){const t={match:/\s+/,relevance:0},r=e.COMMENT("/\\*","\\*/",{contains:["self"]}),n=[e.C_LINE_COMMENT_MODE,r],i={match:[/\./,mr(...uE,...Nc)],className:{2:"keyword"}},a={match:mt(/\./,mr(...iu)),relevance:0},s=iu.filter(Qe=>typeof Qe=="string").concat(["_|0"]),u=iu.filter(Qe=>typeof Qe!="string").concat(lE).map(Hl),l={variants:[{className:"keyword",match:mr(...u,...Nc)}]},c={$pattern:mr(/\b\w+/,/#\w+/),keyword:s.concat(hE),literal:Ic},f=[i,a,l],d={match:mt(/\./,mr(...Oc)),relevance:0},x={className:"built_in",match:mt(/\b/,mr(...Oc),/(?=\()/)},b=[d,x],T={match:/->/,relevance:0},A={className:"operator",relevance:0,variants:[{match:au},{match:`\\.(\\.|${Pd})+`}]},C=[T,A],S="([0-9]_*)+",I="([0-9a-fA-F]_*)+",D={className:"number",relevance:0,variants:[{match:`\\b(${S})(\\.(${S}))?([eE][+-]?(${S}))?\\b`},{match:`\\b0x(${I})(\\.(${I}))?([pP][+-]?(${S}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},q=(Qe="")=>({className:"subst",variants:[{match:mt(/\\/,Qe,/[0\\tnr"']/)},{match:mt(/\\/,Qe,/u\{[0-9a-fA-F]{1,8}\}/)}]}),O=(Qe="")=>({className:"subst",match:mt(/\\/,Qe,/[\t ]*(?:[\r\n]|\r\n)/)}),g=(Qe="")=>({className:"subst",label:"interpol",begin:mt(/\\/,Qe,/\(/),end:/\)/}),P=(Qe="")=>({begin:mt(Qe,/"""/),end:mt(/"""/,Qe),contains:[q(Qe),O(Qe),g(Qe)]}),G=(Qe="")=>({begin:mt(Qe,/"/),end:mt(/"/,Qe),contains:[q(Qe),g(Qe)]}),K={className:"string",variants:[P(),P("#"),P("##"),P("###"),G(),G("#"),G("##"),G("###")]},Y=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],re={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:Y},ee=Qe=>{const Pt=mt(Qe,/\//),Bt=mt(/\//,Qe);return{begin:Pt,end:Bt,contains:[...Y,{scope:"comment",begin:`#(?!.*${Bt})`,end:/$/}]}},be={scope:"regexp",variants:[ee("###"),ee("##"),ee("#"),re]},oe={match:mt(/`/,on,/`/)},ne={className:"variable",match:/\$\d+/},Se={className:"variable",match:`\\$${Vs}+`},Ie=[oe,ne,Se],Oe={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:dE,contains:[...C,D,K]}]}},qe={scope:"keyword",match:mt(/@/,mr(...fE),ma(mr(/\(/,/\s+/)))},F={scope:"meta",match:mt(/@/,on)},We=[Oe,qe,F],Ge={match:ma(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:mt(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,Vs,"+")},{className:"type",match:gs,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:mt(/\s+&\s+/,ma(gs)),relevance:0}]},H={begin:/</,end:/>/,keywords:c,contains:[...n,...f,...We,T,Ge]};Ge.contains.push(H);const xt={match:mt(on,/\s*:/),keywords:"_|0",relevance:0},Nt={begin:/\(/,end:/\)/,relevance:0,keywords:c,contains:["self",xt,...n,be,...f,...b,...C,D,K,...Ie,...We,Ge]},ut={begin:/</,end:/>/,keywords:"repeat each",contains:[...n,Ge]},Ht={begin:mr(ma(mt(on,/\s*:/)),ma(mt(on,/\s+/,on,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:on}]},Vt={begin:/\(/,end:/\)/,keywords:c,contains:[Ht,...n,...f,...C,D,K,...We,Ge,Nt],endsParent:!0,illegal:/["']/},yt={match:[/(func|macro)/,/\s+/,mr(oe.match,on,au)],className:{1:"keyword",3:"title.function"},contains:[ut,Vt,t],illegal:[/\[/,/%/]},vt={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[ut,Vt,t],illegal:/\[|%/},_t={match:[/operator/,/\s+/,au],className:{1:"keyword",3:"title"}},Nr={begin:[/precedencegroup/,/\s+/,gs],className:{1:"keyword",3:"title"},contains:[Ge],keywords:[...cE,...Ic],end:/}/},er={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},lr={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},cr={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,on,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:c,contains:[ut,...f,{begin:/:/,end:/\{/,keywords:c,contains:[{scope:"title.class.inherited",match:gs},...f],relevance:0}]};for(const Qe of K.variants){const Pt=Qe.contains.find(tr=>tr.label==="interpol");Pt.keywords=c;const Bt=[...f,...b,...C,D,K,...Ie];Pt.contains=[...Bt,{begin:/\(/,end:/\)/,contains:["self",...Bt]}]}return{name:"Swift",keywords:c,contains:[...n,yt,vt,er,lr,cr,_t,Nr,{beginKeywords:"import",end:/$/,contains:[...n],relevance:0},be,...f,...b,...C,D,K,...Ie,...We,Ge,Nt]}}const qs="[A-Za-z$_][0-9A-Za-z$_]*",Fd=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],Ud=["true","false","null","undefined","NaN","Infinity"],zd=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Hd=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Vd=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],qd=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Gd=[].concat(Vd,zd,Hd);function mE(e){const t=e.regex,r=(Oe,{after:qe})=>{const F="</"+Oe[0].slice(1);return Oe.input.indexOf(F,qe)!==-1},n=qs,i={begin:"<>",end:"</>"},a=/<[A-Za-z0-9\\._:-]+\s*\/>/,s={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Oe,qe)=>{const F=Oe[0].length+Oe.index,We=Oe.input[F];if(We==="<"||We===","){qe.ignoreMatch();return}We===">"&&(r(Oe,{after:F})||qe.ignoreMatch());let Ge;const H=Oe.input.substring(F);if(Ge=H.match(/^\s*=/)){qe.ignoreMatch();return}if((Ge=H.match(/^\s+extends\s+/))&&Ge.index===0){qe.ignoreMatch();return}}},u={$pattern:qs,keyword:Fd,literal:Ud,built_in:Gd,"variable.language":qd},l="[0-9](_?[0-9])*",c=`\\.(${l})`,f="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${f})((${c})|\\.)?|(${c}))[eE][+-]?(${l})\\b`},{begin:`\\b(${f})\\b((${c})\\b|\\.)?|(${c})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},x={className:"subst",begin:"\\$\\{",end:"\\}",keywords:u,contains:[]},b={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,x],subLanguage:"xml"}},T={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,x],subLanguage:"css"}},A={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,x],subLanguage:"graphql"}},C={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,x]},I={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:n+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},D=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,b,T,A,C,{match:/\$\d+/},d];x.contains=D.concat({begin:/\{/,end:/\}/,keywords:u,contains:["self"].concat(D)});const q=[].concat(I,x.contains),O=q.concat([{begin:/(\s*)\(/,end:/\)/,keywords:u,contains:["self"].concat(q)}]),g={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,contains:O},P={variants:[{match:[/class/,/\s+/,n,/\s+/,/extends/,/\s+/,t.concat(n,"(",t.concat(/\./,n),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,n],scope:{1:"keyword",3:"title.class"}}]},G={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...zd,...Hd]}},K={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},Y={variants:[{match:[/function/,/\s+/,n,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[g],illegal:/%/},re={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function ee(Oe){return t.concat("(?!",Oe.join("|"),")")}const be={match:t.concat(/\b/,ee([...Vd,"super","import"].map(Oe=>`${Oe}\\s*\\(`)),n,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},oe={begin:t.concat(/\./,t.lookahead(t.concat(n,/(?![0-9A-Za-z$_(])/))),end:n,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},ne={match:[/get|set/,/\s+/,n,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},g]},Se="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",Ie={match:[/const|var|let/,/\s+/,n,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(Se)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[g]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:u,exports:{PARAMS_CONTAINS:O,CLASS_REFERENCE:G},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),K,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,b,T,A,C,I,{match:/\$\d+/},d,G,{scope:"attr",match:n+t.lookahead(":"),relevance:0},Ie,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[I,e.REGEXP_MODE,{className:"function",begin:Se,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,contains:O}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:a},{begin:s.begin,"on:begin":s.isTrulyOpeningTag,end:s.end}],subLanguage:"xml",contains:[{begin:s.begin,end:s.end,skip:!0,contains:["self"]}]}]},Y,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[g,e.inherit(e.TITLE_MODE,{begin:n,className:"title.function"})]},{match:/\.\.\./,relevance:0},oe,{match:"\\$"+n,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[g]},be,re,P,ne,{match:/\$[(.]/}]}}function gE(e){const t=e.regex,r=mE(e),n=qs,i=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],a={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},s={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:i},contains:[r.exports.CLASS_REFERENCE]},u={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},l=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],c={$pattern:qs,keyword:Fd.concat(l),literal:Ud,built_in:Gd.concat(i),"variable.language":qd},f={className:"meta",begin:"@"+n},d=(A,C,S)=>{const I=A.contains.findIndex(D=>D.label===C);if(I===-1)throw new Error("can not find mode to replace");A.contains.splice(I,1,S)};Object.assign(r.keywords,c),r.exports.PARAMS_CONTAINS.push(f);const x=r.contains.find(A=>A.scope==="attr"),b=Object.assign({},x,{match:t.concat(n,t.lookahead(/\s*\?:/))});r.exports.PARAMS_CONTAINS.push([r.exports.CLASS_REFERENCE,x,b]),r.contains=r.contains.concat([f,a,s,b]),d(r,"shebang",e.SHEBANG()),d(r,"use_strict",u);const T=r.contains.find(A=>A.label==="func.def");return T.relevance=0,Object.assign(r,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),r}function bE(e){const t=e.regex,r={className:"string",begin:/"(""|[^/n])"C\b/},n={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},i=/\d{1,2}\/\d{1,2}\/\d{4}/,a=/\d{4}-\d{1,2}-\d{1,2}/,s=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,u=/\d{1,2}(:\d{1,2}){1,2}/,l={className:"literal",variants:[{begin:t.concat(/# */,t.either(a,i),/ *#/)},{begin:t.concat(/# */,u,/ *#/)},{begin:t.concat(/# */,s,/ *#/)},{begin:t.concat(/# */,t.either(a,i),/ +/,t.either(s,u),/ *#/)}]},c={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},f={className:"label",begin:/^\w+:/},d=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),x=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[r,n,l,c,f,d,x,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[x]}]}}function xE(e){e.regex;const t=e.COMMENT(/\(;/,/;\)/);t.contains.push("self");const r=e.COMMENT(/;;/,/$/),n=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],i={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},a={className:"variable",begin:/\$[\w_]+/},s={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},u={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},l={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},c={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:n},contains:[r,t,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},a,s,i,e.QUOTE_STRING_MODE,l,c,u]}}function EE(e){const t=e.regex,r=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),n=/[\p{L}0-9._:-]+/u,i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},a={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},s=e.inherit(a,{begin:/\(/,end:/\)/}),u=e.inherit(e.APOS_STRING_MODE,{className:"string"}),l=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),c={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:n,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[a,l,u,s,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[a,s,l,u]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[c],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[c],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(r,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:r,relevance:0,starts:c}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(r,/>/))),contains:[{className:"name",begin:r,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function yE(e){const t="true false yes no null",r="[\\w#;/?:@&=+$,.~*'()[\\]]+",n={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},i={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},a={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},s={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,i]},u=e.inherit(s,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),x={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},b={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},T={begin:/\{/,end:/\}/,contains:[b],illegal:"\\n",relevance:0},A={begin:"\\[",end:"\\]",contains:[b],illegal:"\\n",relevance:0},C=[n,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+r},{className:"type",begin:"!<"+r+">"},{className:"type",begin:"!"+r},{className:"type",begin:"!!"+r},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},x,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},T,A,a,s],S=[...C];return S.pop(),S.push(u),b.contains=S,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:C}}const vE={arduino:rx,bash:nx,c:ix,cpp:ax,csharp:sx,css:mx,diff:gx,go:bx,graphql:xx,ini:Ex,java:yx,javascript:Sx,json:wx,kotlin:Cx,less:Px,lua:Bx,makefile:Fx,markdown:Ux,objectivec:zx,perl:Hx,php:Vx,"php-template":qx,plaintext:Gx,python:Yx,"python-repl":Wx,r:$x,ruby:Kx,rust:Xx,scss:iE,shell:aE,sql:sE,swift:pE,typescript:gE,vbnet:bE,wasm:xE,xml:EE,yaml:yE};var su,Rc;function TE(){if(Rc)return su;Rc=1;function e(V){return V instanceof Map?V.clear=V.delete=V.set=function(){throw new Error("map is read-only")}:V instanceof Set&&(V.add=V.clear=V.delete=function(){throw new Error("set is read-only")}),Object.freeze(V),Object.getOwnPropertyNames(V).forEach(j=>{const xe=V[j],Pe=typeof xe;(Pe==="object"||Pe==="function")&&!Object.isFrozen(xe)&&e(xe)}),V}class t{constructor(j){j.data===void 0&&(j.data={}),this.data=j.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function r(V){return V.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function n(V,...j){const xe=Object.create(null);for(const Pe in V)xe[Pe]=V[Pe];return j.forEach(function(Pe){for(const Ot in Pe)xe[Ot]=Pe[Ot]}),xe}const i="</span>",a=V=>!!V.scope,s=(V,{prefix:j})=>{if(V.startsWith("language:"))return V.replace("language:","language-");if(V.includes(".")){const xe=V.split(".");return[`${j}${xe.shift()}`,...xe.map((Pe,Ot)=>`${Pe}${"_".repeat(Ot+1)}`)].join(" ")}return`${j}${V}`};class u{constructor(j,xe){this.buffer="",this.classPrefix=xe.classPrefix,j.walk(this)}addText(j){this.buffer+=r(j)}openNode(j){if(!a(j))return;const xe=s(j.scope,{prefix:this.classPrefix});this.span(xe)}closeNode(j){a(j)&&(this.buffer+=i)}value(){return this.buffer}span(j){this.buffer+=`<span class="${j}">`}}const l=(V={})=>{const j={children:[]};return Object.assign(j,V),j};class c{constructor(){this.rootNode=l(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(j){this.top.children.push(j)}openNode(j){const xe=l({scope:j});this.add(xe),this.stack.push(xe)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(j){return this.constructor._walk(j,this.rootNode)}static _walk(j,xe){return typeof xe=="string"?j.addText(xe):xe.children&&(j.openNode(xe),xe.children.forEach(Pe=>this._walk(j,Pe)),j.closeNode(xe)),j}static _collapse(j){typeof j!="string"&&j.children&&(j.children.every(xe=>typeof xe=="string")?j.children=[j.children.join("")]:j.children.forEach(xe=>{c._collapse(xe)}))}}class f extends c{constructor(j){super(),this.options=j}addText(j){j!==""&&this.add(j)}startScope(j){this.openNode(j)}endScope(){this.closeNode()}__addSublanguage(j,xe){const Pe=j.root;xe&&(Pe.scope=`language:${xe}`),this.add(Pe)}toHTML(){return new u(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function d(V){return V?typeof V=="string"?V:V.source:null}function x(V){return A("(?=",V,")")}function b(V){return A("(?:",V,")*")}function T(V){return A("(?:",V,")?")}function A(...V){return V.map(xe=>d(xe)).join("")}function C(V){const j=V[V.length-1];return typeof j=="object"&&j.constructor===Object?(V.splice(V.length-1,1),j):{}}function S(...V){return"("+(C(V).capture?"":"?:")+V.map(Pe=>d(Pe)).join("|")+")"}function I(V){return new RegExp(V.toString()+"|").exec("").length-1}function D(V,j){const xe=V&&V.exec(j);return xe&&xe.index===0}const q=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function O(V,{joinWith:j}){let xe=0;return V.map(Pe=>{xe+=1;const Ot=xe;let Et=d(Pe),Te="";for(;Et.length>0;){const we=q.exec(Et);if(!we){Te+=Et;break}Te+=Et.substring(0,we.index),Et=Et.substring(we.index+we[0].length),we[0][0]==="\\"&&we[1]?Te+="\\"+String(Number(we[1])+Ot):(Te+=we[0],we[0]==="("&&xe++)}return Te}).map(Pe=>`(${Pe})`).join(j)}const g=/\b\B/,P="[a-zA-Z]\\w*",G="[a-zA-Z_]\\w*",K="\\b\\d+(\\.\\d+)?",Y="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",re="\\b(0b[01]+)",ee="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",be=(V={})=>{const j=/^#![ ]*\//;return V.binary&&(V.begin=A(j,/.*\b/,V.binary,/\b.*/)),n({scope:"meta",begin:j,end:/$/,relevance:0,"on:begin":(xe,Pe)=>{xe.index!==0&&Pe.ignoreMatch()}},V)},oe={begin:"\\\\[\\s\\S]",relevance:0},ne={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[oe]},Se={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[oe]},Ie={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},Oe=function(V,j,xe={}){const Pe=n({scope:"comment",begin:V,end:j,contains:[]},xe);Pe.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const Ot=S("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return Pe.contains.push({begin:A(/[ ]+/,"(",Ot,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),Pe},qe=Oe("//","$"),F=Oe("/\\*","\\*/"),We=Oe("#","$"),Ge={scope:"number",begin:K,relevance:0},H={scope:"number",begin:Y,relevance:0},xt={scope:"number",begin:re,relevance:0},Nt={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[oe,{begin:/\[/,end:/\]/,relevance:0,contains:[oe]}]},ut={scope:"title",begin:P,relevance:0},Ht={scope:"title",begin:G,relevance:0},Vt={begin:"\\.\\s*"+G,relevance:0};var vt=Object.freeze({__proto__:null,APOS_STRING_MODE:ne,BACKSLASH_ESCAPE:oe,BINARY_NUMBER_MODE:xt,BINARY_NUMBER_RE:re,COMMENT:Oe,C_BLOCK_COMMENT_MODE:F,C_LINE_COMMENT_MODE:qe,C_NUMBER_MODE:H,C_NUMBER_RE:Y,END_SAME_AS_BEGIN:function(V){return Object.assign(V,{"on:begin":(j,xe)=>{xe.data._beginMatch=j[1]},"on:end":(j,xe)=>{xe.data._beginMatch!==j[1]&&xe.ignoreMatch()}})},HASH_COMMENT_MODE:We,IDENT_RE:P,MATCH_NOTHING_RE:g,METHOD_GUARD:Vt,NUMBER_MODE:Ge,NUMBER_RE:K,PHRASAL_WORDS_MODE:Ie,QUOTE_STRING_MODE:Se,REGEXP_MODE:Nt,RE_STARTERS_RE:ee,SHEBANG:be,TITLE_MODE:ut,UNDERSCORE_IDENT_RE:G,UNDERSCORE_TITLE_MODE:Ht});function _t(V,j){V.input[V.index-1]==="."&&j.ignoreMatch()}function Nr(V,j){V.className!==void 0&&(V.scope=V.className,delete V.className)}function er(V,j){j&&V.beginKeywords&&(V.begin="\\b("+V.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",V.__beforeBegin=_t,V.keywords=V.keywords||V.beginKeywords,delete V.beginKeywords,V.relevance===void 0&&(V.relevance=0))}function lr(V,j){Array.isArray(V.illegal)&&(V.illegal=S(...V.illegal))}function cr(V,j){if(V.match){if(V.begin||V.end)throw new Error("begin & end are not supported with match");V.begin=V.match,delete V.match}}function Qe(V,j){V.relevance===void 0&&(V.relevance=1)}const Pt=(V,j)=>{if(!V.beforeMatch)return;if(V.starts)throw new Error("beforeMatch cannot be used with starts");const xe=Object.assign({},V);Object.keys(V).forEach(Pe=>{delete V[Pe]}),V.keywords=xe.keywords,V.begin=A(xe.beforeMatch,x(xe.begin)),V.starts={relevance:0,contains:[Object.assign(xe,{endsParent:!0})]},V.relevance=0,delete xe.beforeMatch},Bt=["of","and","for","in","not","or","if","then","parent","list","value"],tr="keyword";function Jt(V,j,xe=tr){const Pe=Object.create(null);return typeof V=="string"?Ot(xe,V.split(" ")):Array.isArray(V)?Ot(xe,V):Object.keys(V).forEach(function(Et){Object.assign(Pe,Jt(V[Et],j,Et))}),Pe;function Ot(Et,Te){j&&(Te=Te.map(we=>we.toLowerCase())),Te.forEach(function(we){const Me=we.split("|");Pe[Me[0]]=[Et,Ir(Me[0],Me[1])]})}}function Ir(V,j){return j?Number(j):jr(V)?0:1}function jr(V){return Bt.includes(V.toLowerCase())}const It={},et=V=>{console.error(V)},Or=(V,...j)=>{console.log(`WARN: ${V}`,...j)},Z=(V,j)=>{It[`${V}/${j}`]||(console.log(`Deprecated as of ${V}. ${j}`),It[`${V}/${j}`]=!0)},te=new Error;function N(V,j,{key:xe}){let Pe=0;const Ot=V[xe],Et={},Te={};for(let we=1;we<=j.length;we++)Te[we+Pe]=Ot[we],Et[we+Pe]=!0,Pe+=I(j[we-1]);V[xe]=Te,V[xe]._emit=Et,V[xe]._multi=!0}function Ce(V){if(Array.isArray(V.begin)){if(V.skip||V.excludeBegin||V.returnBegin)throw et("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),te;if(typeof V.beginScope!="object"||V.beginScope===null)throw et("beginScope must be object"),te;N(V,V.begin,{key:"beginScope"}),V.begin=O(V.begin,{joinWith:""})}}function it(V){if(Array.isArray(V.end)){if(V.skip||V.excludeEnd||V.returnEnd)throw et("skip, excludeEnd, returnEnd not compatible with endScope: {}"),te;if(typeof V.endScope!="object"||V.endScope===null)throw et("endScope must be object"),te;N(V,V.end,{key:"endScope"}),V.end=O(V.end,{joinWith:""})}}function Ft(V){V.scope&&typeof V.scope=="object"&&V.scope!==null&&(V.beginScope=V.scope,delete V.scope)}function ye(V){Ft(V),typeof V.beginScope=="string"&&(V.beginScope={_wrap:V.beginScope}),typeof V.endScope=="string"&&(V.endScope={_wrap:V.endScope}),Ce(V),it(V)}function hr(V){function j(Te,we){return new RegExp(d(Te),"m"+(V.case_insensitive?"i":"")+(V.unicodeRegex?"u":"")+(we?"g":""))}class xe{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(we,Me){Me.position=this.position++,this.matchIndexes[this.matchAt]=Me,this.regexes.push([Me,we]),this.matchAt+=I(we)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const we=this.regexes.map(Me=>Me[1]);this.matcherRe=j(O(we,{joinWith:"|"}),!0),this.lastIndex=0}exec(we){this.matcherRe.lastIndex=this.lastIndex;const Me=this.matcherRe.exec(we);if(!Me)return null;const At=Me.findIndex((ti,bi)=>bi>0&&ti!==void 0),Rt=this.matchIndexes[At];return Me.splice(0,At),Object.assign(Me,Rt)}}class Pe{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(we){if(this.multiRegexes[we])return this.multiRegexes[we];const Me=new xe;return this.rules.slice(we).forEach(([At,Rt])=>Me.addRule(At,Rt)),Me.compile(),this.multiRegexes[we]=Me,Me}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(we,Me){this.rules.push([we,Me]),Me.type==="begin"&&this.count++}exec(we){const Me=this.getMatcher(this.regexIndex);Me.lastIndex=this.lastIndex;let At=Me.exec(we);if(this.resumingScanAtSamePosition()&&!(At&&At.index===this.lastIndex)){const Rt=this.getMatcher(0);Rt.lastIndex=this.lastIndex+1,At=Rt.exec(we)}return At&&(this.regexIndex+=At.position+1,this.regexIndex===this.count&&this.considerAll()),At}}function Ot(Te){const we=new Pe;return Te.contains.forEach(Me=>we.addRule(Me.begin,{rule:Me,type:"begin"})),Te.terminatorEnd&&we.addRule(Te.terminatorEnd,{type:"end"}),Te.illegal&&we.addRule(Te.illegal,{type:"illegal"}),we}function Et(Te,we){const Me=Te;if(Te.isCompiled)return Me;[Nr,cr,ye,Pt].forEach(Rt=>Rt(Te,we)),V.compilerExtensions.forEach(Rt=>Rt(Te,we)),Te.__beforeBegin=null,[er,lr,Qe].forEach(Rt=>Rt(Te,we)),Te.isCompiled=!0;let At=null;return typeof Te.keywords=="object"&&Te.keywords.$pattern&&(Te.keywords=Object.assign({},Te.keywords),At=Te.keywords.$pattern,delete Te.keywords.$pattern),At=At||/\w+/,Te.keywords&&(Te.keywords=Jt(Te.keywords,V.case_insensitive)),Me.keywordPatternRe=j(At,!0),we&&(Te.begin||(Te.begin=/\B|\b/),Me.beginRe=j(Me.begin),!Te.end&&!Te.endsWithParent&&(Te.end=/\B|\b/),Te.end&&(Me.endRe=j(Me.end)),Me.terminatorEnd=d(Me.end)||"",Te.endsWithParent&&we.terminatorEnd&&(Me.terminatorEnd+=(Te.end?"|":"")+we.terminatorEnd)),Te.illegal&&(Me.illegalRe=j(Te.illegal)),Te.contains||(Te.contains=[]),Te.contains=[].concat(...Te.contains.map(function(Rt){return vn(Rt==="self"?Te:Rt)})),Te.contains.forEach(function(Rt){Et(Rt,Me)}),Te.starts&&Et(Te.starts,we),Me.matcher=Ot(Me),Me}if(V.compilerExtensions||(V.compilerExtensions=[]),V.contains&&V.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return V.classNameAliases=n(V.classNameAliases||{}),Et(V)}function an(V){return V?V.endsWithParent||an(V.starts):!1}function vn(V){return V.variants&&!V.cachedVariants&&(V.cachedVariants=V.variants.map(function(j){return n(V,{variants:null},j)})),V.cachedVariants?V.cachedVariants:an(V)?n(V,{starts:V.starts?n(V.starts):null}):Object.isFrozen(V)?n(V):V}var Ut="11.11.1";class Ur extends Error{constructor(j,xe){super(j),this.name="HTMLInjectionError",this.html=xe}}const rr=r,Ja=n,ei=Symbol("nomatch"),vr=7,fr=function(V){const j=Object.create(null),xe=Object.create(null),Pe=[];let Ot=!0;const Et="Could not find the language '{}', did you forget to load/include a language module?",Te={disableAutodetect:!0,name:"Plain text",contains:[]};let we={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:f};function Me(pe){return we.noHighlightRe.test(pe)}function At(pe){let Le=pe.className+" ";Le+=pe.parentNode?pe.parentNode.className:"";const se=we.languageDetectRe.exec(Le);if(se){const lt=Jr(se[1]);return lt||(Or(Et.replace("{}",se[1])),Or("Falling back to no-highlight mode for this block.",pe)),lt?se[1]:"no-highlight"}return Le.split(/\s+/).find(lt=>Me(lt)||Jr(lt))}function Rt(pe,Le,se){let lt="",pt="";typeof Le=="object"?(lt=pe,se=Le.ignoreIllegals,pt=Le.language):(Z("10.7.0","highlight(lang, code, ...args) has been deprecated."),Z("10.7.0",`Please use highlight(code, options) instead.
|
|
50
50
|
https://github.com/highlightjs/highlight.js/issues/2277`),pt=pe,lt=Le),se===void 0&&(se=!0);const Rr={code:lt,language:pt};vi("before:highlight",Rr);const sn=Rr.result?Rr.result:ti(Rr.language,Rr.code,se);return sn.code=Rr.code,vi("after:highlight",sn),sn}function ti(pe,Le,se,lt){const pt=Object.create(null);function Rr(Ee,Re){return Ee.keywords[Re]}function sn(){if(!Ue.keywords){qt.addText(ct);return}let Ee=0;Ue.keywordPatternRe.lastIndex=0;let Re=Ue.keywordPatternRe.exec(ct),Ke="";for(;Re;){Ke+=ct.substring(Ee,Re.index);const ht=Hr.case_insensitive?Re[0].toLowerCase():Re[0],o=Rr(Ue,ht);if(o){const[h,y]=o;if(qt.addText(Ke),Ke="",pt[ht]=(pt[ht]||0)+1,pt[ht]<=vr&&($e+=y),h.startsWith("_"))Ke+=Re[0];else{const v=Hr.classNameAliases[h]||h;zr(Re[0],v)}}else Ke+=Re[0];Ee=Ue.keywordPatternRe.lastIndex,Re=Ue.keywordPatternRe.exec(ct)}Ke+=ct.substring(Ee),qt.addText(Ke)}function ri(){if(ct==="")return;let Ee=null;if(typeof Ue.subLanguage=="string"){if(!j[Ue.subLanguage]){qt.addText(ct);return}Ee=ti(Ue.subLanguage,ct,!0,ua[Ue.subLanguage]),ua[Ue.subLanguage]=Ee._top}else Ee=xi(ct,Ue.subLanguage.length?Ue.subLanguage:null);Ue.relevance>0&&($e+=Ee.relevance),qt.__addSublanguage(Ee._emitter,Ee.language)}function dr(){Ue.subLanguage!=null?ri():sn(),ct=""}function zr(Ee,Re){Ee!==""&&(qt.startScope(Re),qt.addText(Ee),qt.endScope())}function sa(Ee,Re){let Ke=1;const ht=Re.length-1;for(;Ke<=ht;){if(!Ee._emit[Ke]){Ke++;continue}const o=Hr.classNameAliases[Ee[Ke]]||Ee[Ke],h=Re[Ke];o?zr(h,o):(ct=h,sn(),ct=""),Ke++}}function as(Ee,Re){return Ee.scope&&typeof Ee.scope=="string"&&qt.openNode(Hr.classNameAliases[Ee.scope]||Ee.scope),Ee.beginScope&&(Ee.beginScope._wrap?(zr(ct,Hr.classNameAliases[Ee.beginScope._wrap]||Ee.beginScope._wrap),ct=""):Ee.beginScope._multi&&(sa(Ee.beginScope,Re),ct="")),Ue=Object.create(Ee,{parent:{value:Ue}}),Ue}function oa(Ee,Re,Ke){let ht=D(Ee.endRe,Ke);if(ht){if(Ee["on:end"]){const o=new t(Ee);Ee["on:end"](Re,o),o.isMatchIgnored&&(ht=!1)}if(ht){for(;Ee.endsParent&&Ee.parent;)Ee=Ee.parent;return Ee}}if(Ee.endsWithParent)return oa(Ee.parent,Re,Ke)}function Qr(Ee){return Ue.matcher.regexIndex===0?(ct+=Ee[0],1):(Ai=!0,0)}function Tr(Ee){const Re=Ee[0],Ke=Ee.rule,ht=new t(Ke),o=[Ke.__beforeBegin,Ke["on:begin"]];for(const h of o)if(h&&(h(Ee,ht),ht.isMatchIgnored))return Qr(Re);return Ke.skip?ct+=Re:(Ke.excludeBegin&&(ct+=Re),dr(),!Ke.returnBegin&&!Ke.excludeBegin&&(ct=Re)),as(Ke,Ee),Ke.returnBegin?0:Re.length}function Mo(Ee){const Re=Ee[0],Ke=Le.substring(Ee.index),ht=oa(Ue,Ee,Ke);if(!ht)return ei;const o=Ue;Ue.endScope&&Ue.endScope._wrap?(dr(),zr(Re,Ue.endScope._wrap)):Ue.endScope&&Ue.endScope._multi?(dr(),sa(Ue.endScope,Ee)):o.skip?ct+=Re:(o.returnEnd||o.excludeEnd||(ct+=Re),dr(),o.excludeEnd&&(ct=Re));do Ue.scope&&qt.closeNode(),!Ue.skip&&!Ue.subLanguage&&($e+=Ue.relevance),Ue=Ue.parent;while(Ue!==ht.parent);return ht.starts&&as(ht.starts,Ee),o.returnEnd?0:Re.length}function ss(){const Ee=[];for(let Re=Ue;Re!==Hr;Re=Re.parent)Re.scope&&Ee.unshift(Re.scope);Ee.forEach(Re=>qt.openNode(Re))}let Ti={};function os(Ee,Re){const Ke=Re&&Re[0];if(ct+=Ee,Ke==null)return dr(),0;if(Ti.type==="begin"&&Re.type==="end"&&Ti.index===Re.index&&Ke===""){if(ct+=Le.slice(Re.index,Re.index+1),!Ot){const ht=new Error(`0 width match regex (${pe})`);throw ht.languageName=pe,ht.badRule=Ti.rule,ht}return 1}if(Ti=Re,Re.type==="begin")return Tr(Re);if(Re.type==="illegal"&&!se){const ht=new Error('Illegal lexeme "'+Ke+'" for mode "'+(Ue.scope||"<unnamed>")+'"');throw ht.mode=Ue,ht}else if(Re.type==="end"){const ht=Mo(Re);if(ht!==ei)return ht}if(Re.type==="illegal"&&Ke==="")return ct+=`
|
|
51
|
-
`,1;if(_i>1e5&&_i>Re.index*3)throw new Error("potential infinite loop, way more iterations than matches");return ct+=Ke,Ke.length}const Hr=Jr(pe);if(!Hr)throw et(Et.replace("{}",pe)),new Error('Unknown language: "'+pe+'"');const Do=hr(Hr);let Pn="",Ue=lt||Do;const ua={},qt=new we.__emitter(we);ss();let ct="",$e=0,Tn=0,_i=0,Ai=!1;try{if(Hr.__emitTokens)Hr.__emitTokens(Le,qt);else{for(Ue.matcher.considerAll();;){_i++,Ai?Ai=!1:Ue.matcher.considerAll(),Ue.matcher.lastIndex=Tn;const Ee=Ue.matcher.exec(Le);if(!Ee)break;const Re=Le.substring(Tn,Ee.index),Ke=os(Re,Ee);Tn=Ee.index+Ke}os(Le.substring(Tn))}return qt.finalize(),Pn=qt.toHTML(),{language:pe,value:Pn,relevance:$e,illegal:!1,_emitter:qt,_top:Ue}}catch(Ee){if(Ee.message&&Ee.message.includes("Illegal"))return{language:pe,value:rr(Le),illegal:!0,relevance:0,_illegalBy:{message:Ee.message,index:Tn,context:Le.slice(Tn-100,Tn+100),mode:Ee.mode,resultSoFar:Pn},_emitter:qt};if(Ot)return{language:pe,value:rr(Le),illegal:!1,relevance:0,errorRaised:Ee,_emitter:qt,_top:Ue};throw Ee}}function bi(pe){const Le={value:rr(pe),illegal:!1,relevance:0,_top:Te,_emitter:new we.__emitter(we)};return Le._emitter.addText(pe),Le}function xi(pe,Le){Le=Le||we.languages||Object.keys(j);const se=bi(pe),lt=Le.filter(Jr).filter(ia).map(dr=>ti(dr,pe,!1));lt.unshift(se);const pt=lt.sort((dr,zr)=>{if(dr.relevance!==zr.relevance)return zr.relevance-dr.relevance;if(dr.language&&zr.language){if(Jr(dr.language).supersetOf===zr.language)return 1;if(Jr(zr.language).supersetOf===dr.language)return-1}return 0}),[Rr,sn]=pt,ri=Rr;return ri.secondBest=sn,ri}function Qa(pe,Le,se){const lt=Le&&xe[Le]||se;pe.classList.add("hljs"),pe.classList.add(`language-${lt}`)}function Ei(pe){let Le=null;const se=At(pe);if(Me(se))return;if(vi("before:highlightElement",{el:pe,language:se}),pe.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",pe);return}if(pe.children.length>0&&(we.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(pe)),we.throwUnescapedHTML))throw new Ur("One of your code blocks includes unescaped HTML.",pe.innerHTML);Le=pe;const lt=Le.textContent,pt=se?Rt(lt,{language:se,ignoreIllegals:!0}):xi(lt);pe.innerHTML=pt.value,pe.dataset.highlighted="yes",Qa(pe,se,pt.language),pe.result={language:pt.language,re:pt.relevance,relevance:pt.relevance},pt.secondBest&&(pe.secondBest={language:pt.secondBest.language,relevance:pt.secondBest.relevance}),vi("after:highlightElement",{el:pe,result:pt,text:lt})}function Za(pe){we=Ja(we,pe)}const Io=()=>{yi(),Z("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Oo(){yi(),Z("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let es=!1;function yi(){function pe(){yi()}if(document.readyState==="loading"){es||window.addEventListener("DOMContentLoaded",pe,!1),es=!0;return}document.querySelectorAll(we.cssSelector).forEach(Ei)}function ts(pe,Le){let se=null;try{se=Le(V)}catch(lt){if(et("Language definition for '{}' could not be registered.".replace("{}",pe)),Ot)et(lt);else throw lt;se=Te}se.name||(se.name=pe),j[pe]=se,se.rawDefinition=Le.bind(null,V),se.aliases&&na(se.aliases,{languageName:pe})}function rs(pe){delete j[pe];for(const Le of Object.keys(xe))xe[Le]===pe&&delete xe[Le]}function ns(){return Object.keys(j)}function Jr(pe){return pe=(pe||"").toLowerCase(),j[pe]||j[xe[pe]]}function na(pe,{languageName:Le}){typeof pe=="string"&&(pe=[pe]),pe.forEach(se=>{xe[se.toLowerCase()]=Le})}function ia(pe){const Le=Jr(pe);return Le&&!Le.disableAutodetect}function Ro(pe){pe["before:highlightBlock"]&&!pe["before:highlightElement"]&&(pe["before:highlightElement"]=Le=>{pe["before:highlightBlock"](Object.assign({block:Le.el},Le))}),pe["after:highlightBlock"]&&!pe["after:highlightElement"]&&(pe["after:highlightElement"]=Le=>{pe["after:highlightBlock"](Object.assign({block:Le.el},Le))})}function Lo(pe){Ro(pe),Pe.push(pe)}function is(pe){const Le=Pe.indexOf(pe);Le!==-1&&Pe.splice(Le,1)}function vi(pe,Le){const se=pe;Pe.forEach(function(lt){lt[se]&<[se](Le)})}function aa(pe){return Z("10.7.0","highlightBlock will be removed entirely in v12.0"),Z("10.7.0","Please use highlightElement now."),Ei(pe)}Object.assign(V,{highlight:Rt,highlightAuto:xi,highlightAll:yi,highlightElement:Ei,highlightBlock:aa,configure:Za,initHighlighting:Io,initHighlightingOnLoad:Oo,registerLanguage:ts,unregisterLanguage:rs,listLanguages:ns,getLanguage:Jr,registerAliases:na,autoDetection:ia,inherit:Ja,addPlugin:Lo,removePlugin:is}),V.debugMode=function(){Ot=!1},V.safeMode=function(){Ot=!0},V.versionString=Ut,V.regex={concat:A,lookahead:x,either:S,optional:T,anyNumberOfTimes:b};for(const pe in vt)typeof vt[pe]=="object"&&e(vt[pe]);return Object.assign(V,vt),V},ot=fr({});return ot.newInstance=()=>fr({}),su=ot,ot.HighlightJS=ot,ot.default=ot,su}var _E=TE();const AE=eo(_E),Lc={},SE="hljs-";function wE(e){const t=AE.newInstance();return e&&a(e),{highlight:r,highlightAuto:n,listLanguages:i,register:a,registerAlias:s,registered:u};function r(l,c,f){const d=f||Lc,x=typeof d.prefix=="string"?d.prefix:SE;if(!t.getLanguage(l))throw new Error("Unknown language: `"+l+"` is not registered");t.configure({__emitter:kE,classPrefix:x});const b=t.highlight(c,{ignoreIllegals:!0,language:l});if(b.errorRaised)throw new Error("Could not highlight with `Highlight.js`",{cause:b.errorRaised});const T=b._emitter.root,A=T.data;return A.language=b.language,A.relevance=b.relevance,T}function n(l,c){const d=(c||Lc).subset||i();let x=-1,b=0,T;for(;++x<d.length;){const A=d[x];if(!t.getLanguage(A))continue;const C=r(A,l,c);C.data&&C.data.relevance!==void 0&&C.data.relevance>b&&(b=C.data.relevance,T=C)}return T||{type:"root",children:[],data:{language:void 0,relevance:b}}}function i(){return t.listLanguages()}function a(l,c){if(typeof l=="string")t.registerLanguage(l,c);else{let f;for(f in l)Object.hasOwn(l,f)&&t.registerLanguage(f,l[f])}}function s(l,c){if(typeof l=="string")t.registerAliases(typeof c=="string"?c:[...c],{languageName:l});else{let f;for(f in l)if(Object.hasOwn(l,f)){const d=l[f];t.registerAliases(typeof d=="string"?d:[...d],{languageName:f})}}}function u(l){return!!t.getLanguage(l)}}class kE{constructor(t){this.options=t,this.root={type:"root",children:[],data:{language:void 0,relevance:0}},this.stack=[this.root]}addText(t){if(t==="")return;const r=this.stack[this.stack.length-1],n=r.children[r.children.length-1];n&&n.type==="text"?n.value+=t:r.children.push({type:"text",value:t})}startScope(t){this.openNode(String(t))}endScope(){this.closeNode()}__addSublanguage(t,r){const n=this.stack[this.stack.length-1],i=t.root.children;r?n.children.push({type:"element",tagName:"span",properties:{className:[r]},children:i}):n.children.push(...i)}openNode(t){const r=this,n=t.split(".").map(function(s,u){return u?s+"_".repeat(u):r.options.classPrefix+s}),i=this.stack[this.stack.length-1],a={type:"element",tagName:"span",properties:{className:n},children:[]};i.children.push(a),this.stack.push(a)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}const CE={};function k_(e){const t=e||CE,r=t.aliases,n=t.detect||!1,i=t.languages||vE,a=t.plainText,s=t.prefix,u=t.subset;let l="hljs";const c=wE(i);if(r&&c.registerAlias(r),s){const f=s.indexOf("-");l=f===-1?s:s.slice(0,f)}return function(f,d){di(f,"element",function(x,b,T){if(x.tagName!=="code"||!T||T.type!=="element"||T.tagName!=="pre")return;const A=NE(x);if(A===!1||!A&&!n||A&&a&&a.includes(A))return;Array.isArray(x.properties.className)||(x.properties.className=[]),x.properties.className.includes(l)||x.properties.className.unshift(l);const C=Ad(x,{whitespace:"pre"});let S;try{S=A?c.highlight(A,C,{prefix:s}):c.highlightAuto(C,{prefix:s,subset:u})}catch(I){const D=I;if(A&&/Unknown language/.test(D.message)){d.message("Cannot highlight as `"+A+"`, it’s not registered",{ancestors:[T,x],cause:D,place:x.position,ruleId:"missing-language",source:"rehype-highlight"});return}throw D}!A&&S.data&&S.data.language&&x.properties.className.push("language-"+S.data.language),S.children.length>0&&(x.children=S.children)})}}function NE(e){const t=e.properties.className;let r=-1;if(!Array.isArray(t))return;let n;for(;++r<t.length;){const i=String(t[r]);if(i==="no-highlight"||i==="nohighlight")return!1;!n&&i.slice(0,5)==="lang-"&&(n=i.slice(5)),!n&&i.slice(0,9)==="language-"&&(n=i.slice(9))}return n}const Mc=/[#.]/g;function IE(e,t){const r=e||"",n={};let i=0,a,s;for(;i<r.length;){Mc.lastIndex=i;const u=Mc.exec(r),l=r.slice(i,u?u.index:r.length);l&&(a?a==="#"?n.id=l:Array.isArray(n.className)?n.className.push(l):n.className=[l]:s=l,i+=l.length),u&&(a=u[0],i++)}return{type:"element",tagName:s||t||"div",properties:n,children:[]}}function Yd(e,t,r){const n=r?ME(r):void 0;function i(a,s,...u){let l;if(a==null){l={type:"root",children:[]};const c=s;u.unshift(c)}else{l=IE(a,t);const c=l.tagName.toLowerCase(),f=n?n.get(c):void 0;if(l.tagName=f||c,OE(s))u.unshift(s);else for(const[d,x]of Object.entries(s))RE(e,l.properties,d,x)}for(const c of u)Gu(l.children,c);return l.type==="element"&&l.tagName==="template"&&(l.content={type:"root",children:l.children},l.children=[]),l}return i}function OE(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,r=Object.keys(e);for(const n of r){const i=t[n];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const a=i;for(const s of a)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function RE(e,t,r,n){const i=Va(e,r);let a;if(n!=null){if(typeof n=="number"){if(Number.isNaN(n))return;a=n}else typeof n=="boolean"?a=n:typeof n=="string"?i.spaceSeparated?a=A0(n):i.commaSeparated?a=v0(n):i.commaOrSpaceSeparated?a=A0(v0(n).join(" ")):a=Dc(i,i.property,n):Array.isArray(n)?a=[...n]:a=i.property==="style"?LE(n):String(n);if(Array.isArray(a)){const s=[];for(const u of a)s.push(Dc(i,i.property,u));a=s}i.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function Gu(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const r of t)Gu(e,r);else if(typeof t=="object"&&"type"in t)t.type==="root"?Gu(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Dc(e,t,r){if(typeof r=="string"){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(r===""||Oa(r)===Oa(t)))return!0}return r}function LE(e){const t=[];for(const[r,n]of Object.entries(e))t.push([r,n].join(": "));return t.join("; ")}function ME(e){const t=new Map;for(const r of e)t.set(r.toLowerCase(),r);return t}const DE=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],Wd=Yd(qi,"div"),$d=Yd(rn,"g",DE),hn={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function PE(e,t){return Kd(e,{})||{type:"root",children:[]}}function Kd(e,t){const r=BE(e,t);return r&&t.afterTransform&&t.afterTransform(e,r),r}function BE(e,t){switch(e.nodeType){case 1:return HE(e,t);case 3:return UE(e);case 8:return zE(e);case 9:return Pc(e,t);case 10:return FE();case 11:return Pc(e,t);default:return}}function Pc(e,t){return{type:"root",children:Xd(e,t)}}function FE(){return{type:"doctype"}}function UE(e){return{type:"text",value:e.nodeValue||""}}function zE(e){return{type:"comment",value:e.nodeValue||""}}function HE(e,t){const r=e.namespaceURI,n=r===hn.svg?$d:Wd,i=r===hn.html?e.tagName.toLowerCase():e.tagName,a=r===hn.html&&i==="template"?e.content:e,s=e.getAttributeNames(),u={};let l=-1;for(;++l<s.length;)u[s[l]]=e.getAttribute(s[l])||"";return n(i,u,Xd(a,t))}function Xd(e,t){const r=e.childNodes,n=[];let i=-1;for(;++i<r.length;){const a=Kd(r[i],t);a!==void 0&&n.push(a)}return n}new DOMParser;function VE(e,t){const r=qE(e);return PE(r)}function qE(e){const t=document.createElement("template");return t.innerHTML=e,t.content}class he extends Error{constructor(t,r){var n="KaTeX parse error: "+t,i,a,s=r&&r.loc;if(s&&s.start<=s.end){var u=s.lexer.input;i=s.start,a=s.end,i===u.length?n+=" at end of input: ":n+=" at position "+(i+1)+": ";var l=u.slice(i,a).replace(/[^]/g,"$&̲"),c;i>15?c="…"+u.slice(i-15,i):c=u.slice(0,i);var f;a+15<u.length?f=u.slice(a,a+15)+"…":f=u.slice(a),n+=c+l+f}super(n),this.name="ParseError",this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,he.prototype),this.position=i,i!=null&&a!=null&&(this.length=a-i),this.rawMessage=t}}var GE=/([A-Z])/g,YE=e=>e.replace(GE,"-$1").toLowerCase(),WE={"&":"&",">":">","<":"<",'"':""","'":"'"},$E=/[&><"']/g,or=e=>String(e).replace($E,t=>WE[t]),Ns=e=>e.type==="ordgroup"||e.type==="color"?e.body.length===1?Ns(e.body[0]):e:e.type==="font"?Ns(e.body):e,KE=new Set(["mathord","textord","atom"]),Rn=e=>KE.has(Ns(e).type),XE=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():"_relative"},Gs={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function jE(e){if(typeof e!="string")return e.enum[0];switch(e){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{};default:throw new Error("Unexpected schema type; settings must declare an explicit default.")}}function JE(e){if(e.default!==void 0)return e.default;var t=Array.isArray(e.type)?e.type[0]:e.type;return jE(t)}function QE(e,t,r,n){var i=r[t];e[t]=i!==void 0?n.processor?n.processor(i):i:JE(n)}class Vl{constructor(t){t===void 0&&(t={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var r of Object.keys(Gs)){var n=Gs[r];n&&QE(this,r,t,n)}}reportNonstrict(t,r,n){var i=this.strict;if(typeof i=="function"&&(i=i(t,r,n)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new he("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+t+"]"),n);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+t+"]"))}}useStrictBehavior(t,r,n){var i=this.strict;if(typeof i=="function")try{i=i(t,r,n)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+t+"]")),!1)}isTrusted(t){if("url"in t&&t.url&&!t.protocol){var r=XE(t.url);if(r==null)return!1;t.protocol=r}var n=typeof this.trust=="function"?this.trust(t):this.trust;return!!n}}class Fn{constructor(t,r,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=r,this.cramped=n}sup(){return ln[ZE[this.id]]}sub(){return ln[e5[this.id]]}fracNum(){return ln[t5[this.id]]}fracDen(){return ln[r5[this.id]]}cramp(){return ln[n5[this.id]]}text(){return ln[i5[this.id]]}isTight(){return this.size>=2}}var ql=0,Ys=1,Pi=2,kn=3,Pa=4,$r=5,Fi=6,xr=7,ln=[new Fn(ql,0,!1),new Fn(Ys,0,!0),new Fn(Pi,1,!1),new Fn(kn,1,!0),new Fn(Pa,2,!1),new Fn($r,2,!0),new Fn(Fi,3,!1),new Fn(xr,3,!0)],ZE=[Pa,$r,Pa,$r,Fi,xr,Fi,xr],e5=[$r,$r,$r,$r,xr,xr,xr,xr],t5=[Pi,kn,Pa,$r,Fi,xr,Fi,xr],r5=[kn,kn,$r,$r,xr,xr,xr,xr],n5=[Ys,Ys,kn,kn,$r,$r,xr,xr],i5=[ql,Ys,Pi,kn,Pi,kn,Pi,kn],Ve={DISPLAY:ln[ql],TEXT:ln[Pi],SCRIPT:ln[Pa],SCRIPTSCRIPT:ln[Fi]},Yu=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function a5(e){for(var t=0;t<Yu.length;t++)for(var r=Yu[t],n=0;n<r.blocks.length;n++){var i=r.blocks[n];if(e>=i[0]&&e<=i[1])return r.name}return null}var Is=[];Yu.forEach(e=>e.blocks.forEach(t=>Is.push(...t)));function jd(e){for(var t=0;t<Is.length;t+=2)if(e>=Is[t]&&e<=Is[t+1])return!0;return!1}var Kt=e=>e+" "+e,Ii=80,s5=function(t,r){return"M95,"+(622+t+r)+`
|
|
51
|
+
`,1;if(_i>1e5&&_i>Re.index*3)throw new Error("potential infinite loop, way more iterations than matches");return ct+=Ke,Ke.length}const Hr=Jr(pe);if(!Hr)throw et(Et.replace("{}",pe)),new Error('Unknown language: "'+pe+'"');const Do=hr(Hr);let Pn="",Ue=lt||Do;const ua={},qt=new we.__emitter(we);ss();let ct="",$e=0,Tn=0,_i=0,Ai=!1;try{if(Hr.__emitTokens)Hr.__emitTokens(Le,qt);else{for(Ue.matcher.considerAll();;){_i++,Ai?Ai=!1:Ue.matcher.considerAll(),Ue.matcher.lastIndex=Tn;const Ee=Ue.matcher.exec(Le);if(!Ee)break;const Re=Le.substring(Tn,Ee.index),Ke=os(Re,Ee);Tn=Ee.index+Ke}os(Le.substring(Tn))}return qt.finalize(),Pn=qt.toHTML(),{language:pe,value:Pn,relevance:$e,illegal:!1,_emitter:qt,_top:Ue}}catch(Ee){if(Ee.message&&Ee.message.includes("Illegal"))return{language:pe,value:rr(Le),illegal:!0,relevance:0,_illegalBy:{message:Ee.message,index:Tn,context:Le.slice(Tn-100,Tn+100),mode:Ee.mode,resultSoFar:Pn},_emitter:qt};if(Ot)return{language:pe,value:rr(Le),illegal:!1,relevance:0,errorRaised:Ee,_emitter:qt,_top:Ue};throw Ee}}function bi(pe){const Le={value:rr(pe),illegal:!1,relevance:0,_top:Te,_emitter:new we.__emitter(we)};return Le._emitter.addText(pe),Le}function xi(pe,Le){Le=Le||we.languages||Object.keys(j);const se=bi(pe),lt=Le.filter(Jr).filter(ia).map(dr=>ti(dr,pe,!1));lt.unshift(se);const pt=lt.sort((dr,zr)=>{if(dr.relevance!==zr.relevance)return zr.relevance-dr.relevance;if(dr.language&&zr.language){if(Jr(dr.language).supersetOf===zr.language)return 1;if(Jr(zr.language).supersetOf===dr.language)return-1}return 0}),[Rr,sn]=pt,ri=Rr;return ri.secondBest=sn,ri}function Qa(pe,Le,se){const lt=Le&&xe[Le]||se;pe.classList.add("hljs"),pe.classList.add(`language-${lt}`)}function Ei(pe){let Le=null;const se=At(pe);if(Me(se))return;if(vi("before:highlightElement",{el:pe,language:se}),pe.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",pe);return}if(pe.children.length>0&&(we.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(pe)),we.throwUnescapedHTML))throw new Ur("One of your code blocks includes unescaped HTML.",pe.innerHTML);Le=pe;const lt=Le.textContent,pt=se?Rt(lt,{language:se,ignoreIllegals:!0}):xi(lt);pe.innerHTML=pt.value,pe.dataset.highlighted="yes",Qa(pe,se,pt.language),pe.result={language:pt.language,re:pt.relevance,relevance:pt.relevance},pt.secondBest&&(pe.secondBest={language:pt.secondBest.language,relevance:pt.secondBest.relevance}),vi("after:highlightElement",{el:pe,result:pt,text:lt})}function Za(pe){we=Ja(we,pe)}const Io=()=>{yi(),Z("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Oo(){yi(),Z("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let es=!1;function yi(){function pe(){yi()}if(document.readyState==="loading"){es||window.addEventListener("DOMContentLoaded",pe,!1),es=!0;return}document.querySelectorAll(we.cssSelector).forEach(Ei)}function ts(pe,Le){let se=null;try{se=Le(V)}catch(lt){if(et("Language definition for '{}' could not be registered.".replace("{}",pe)),Ot)et(lt);else throw lt;se=Te}se.name||(se.name=pe),j[pe]=se,se.rawDefinition=Le.bind(null,V),se.aliases&&na(se.aliases,{languageName:pe})}function rs(pe){delete j[pe];for(const Le of Object.keys(xe))xe[Le]===pe&&delete xe[Le]}function ns(){return Object.keys(j)}function Jr(pe){return pe=(pe||"").toLowerCase(),j[pe]||j[xe[pe]]}function na(pe,{languageName:Le}){typeof pe=="string"&&(pe=[pe]),pe.forEach(se=>{xe[se.toLowerCase()]=Le})}function ia(pe){const Le=Jr(pe);return Le&&!Le.disableAutodetect}function Ro(pe){pe["before:highlightBlock"]&&!pe["before:highlightElement"]&&(pe["before:highlightElement"]=Le=>{pe["before:highlightBlock"](Object.assign({block:Le.el},Le))}),pe["after:highlightBlock"]&&!pe["after:highlightElement"]&&(pe["after:highlightElement"]=Le=>{pe["after:highlightBlock"](Object.assign({block:Le.el},Le))})}function Lo(pe){Ro(pe),Pe.push(pe)}function is(pe){const Le=Pe.indexOf(pe);Le!==-1&&Pe.splice(Le,1)}function vi(pe,Le){const se=pe;Pe.forEach(function(lt){lt[se]&<[se](Le)})}function aa(pe){return Z("10.7.0","highlightBlock will be removed entirely in v12.0"),Z("10.7.0","Please use highlightElement now."),Ei(pe)}Object.assign(V,{highlight:Rt,highlightAuto:xi,highlightAll:yi,highlightElement:Ei,highlightBlock:aa,configure:Za,initHighlighting:Io,initHighlightingOnLoad:Oo,registerLanguage:ts,unregisterLanguage:rs,listLanguages:ns,getLanguage:Jr,registerAliases:na,autoDetection:ia,inherit:Ja,addPlugin:Lo,removePlugin:is}),V.debugMode=function(){Ot=!1},V.safeMode=function(){Ot=!0},V.versionString=Ut,V.regex={concat:A,lookahead:x,either:S,optional:T,anyNumberOfTimes:b};for(const pe in vt)typeof vt[pe]=="object"&&e(vt[pe]);return Object.assign(V,vt),V},ot=fr({});return ot.newInstance=()=>fr({}),su=ot,ot.HighlightJS=ot,ot.default=ot,su}var _E=TE();const AE=eo(_E),Lc={},SE="hljs-";function wE(e){const t=AE.newInstance();return e&&a(e),{highlight:r,highlightAuto:n,listLanguages:i,register:a,registerAlias:s,registered:u};function r(l,c,f){const d=f||Lc,x=typeof d.prefix=="string"?d.prefix:SE;if(!t.getLanguage(l))throw new Error("Unknown language: `"+l+"` is not registered");t.configure({__emitter:kE,classPrefix:x});const b=t.highlight(c,{ignoreIllegals:!0,language:l});if(b.errorRaised)throw new Error("Could not highlight with `Highlight.js`",{cause:b.errorRaised});const T=b._emitter.root,A=T.data;return A.language=b.language,A.relevance=b.relevance,T}function n(l,c){const d=(c||Lc).subset||i();let x=-1,b=0,T;for(;++x<d.length;){const A=d[x];if(!t.getLanguage(A))continue;const C=r(A,l,c);C.data&&C.data.relevance!==void 0&&C.data.relevance>b&&(b=C.data.relevance,T=C)}return T||{type:"root",children:[],data:{language:void 0,relevance:b}}}function i(){return t.listLanguages()}function a(l,c){if(typeof l=="string")t.registerLanguage(l,c);else{let f;for(f in l)Object.hasOwn(l,f)&&t.registerLanguage(f,l[f])}}function s(l,c){if(typeof l=="string")t.registerAliases(typeof c=="string"?c:[...c],{languageName:l});else{let f;for(f in l)if(Object.hasOwn(l,f)){const d=l[f];t.registerAliases(typeof d=="string"?d:[...d],{languageName:f})}}}function u(l){return!!t.getLanguage(l)}}class kE{constructor(t){this.options=t,this.root={type:"root",children:[],data:{language:void 0,relevance:0}},this.stack=[this.root]}addText(t){if(t==="")return;const r=this.stack[this.stack.length-1],n=r.children[r.children.length-1];n&&n.type==="text"?n.value+=t:r.children.push({type:"text",value:t})}startScope(t){this.openNode(String(t))}endScope(){this.closeNode()}__addSublanguage(t,r){const n=this.stack[this.stack.length-1],i=t.root.children;r?n.children.push({type:"element",tagName:"span",properties:{className:[r]},children:i}):n.children.push(...i)}openNode(t){const r=this,n=t.split(".").map(function(s,u){return u?s+"_".repeat(u):r.options.classPrefix+s}),i=this.stack[this.stack.length-1],a={type:"element",tagName:"span",properties:{className:n},children:[]};i.children.push(a),this.stack.push(a)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}const CE={};function N_(e){const t=e||CE,r=t.aliases,n=t.detect||!1,i=t.languages||vE,a=t.plainText,s=t.prefix,u=t.subset;let l="hljs";const c=wE(i);if(r&&c.registerAlias(r),s){const f=s.indexOf("-");l=f===-1?s:s.slice(0,f)}return function(f,d){di(f,"element",function(x,b,T){if(x.tagName!=="code"||!T||T.type!=="element"||T.tagName!=="pre")return;const A=NE(x);if(A===!1||!A&&!n||A&&a&&a.includes(A))return;Array.isArray(x.properties.className)||(x.properties.className=[]),x.properties.className.includes(l)||x.properties.className.unshift(l);const C=Ad(x,{whitespace:"pre"});let S;try{S=A?c.highlight(A,C,{prefix:s}):c.highlightAuto(C,{prefix:s,subset:u})}catch(I){const D=I;if(A&&/Unknown language/.test(D.message)){d.message("Cannot highlight as `"+A+"`, it’s not registered",{ancestors:[T,x],cause:D,place:x.position,ruleId:"missing-language",source:"rehype-highlight"});return}throw D}!A&&S.data&&S.data.language&&x.properties.className.push("language-"+S.data.language),S.children.length>0&&(x.children=S.children)})}}function NE(e){const t=e.properties.className;let r=-1;if(!Array.isArray(t))return;let n;for(;++r<t.length;){const i=String(t[r]);if(i==="no-highlight"||i==="nohighlight")return!1;!n&&i.slice(0,5)==="lang-"&&(n=i.slice(5)),!n&&i.slice(0,9)==="language-"&&(n=i.slice(9))}return n}const Mc=/[#.]/g;function IE(e,t){const r=e||"",n={};let i=0,a,s;for(;i<r.length;){Mc.lastIndex=i;const u=Mc.exec(r),l=r.slice(i,u?u.index:r.length);l&&(a?a==="#"?n.id=l:Array.isArray(n.className)?n.className.push(l):n.className=[l]:s=l,i+=l.length),u&&(a=u[0],i++)}return{type:"element",tagName:s||t||"div",properties:n,children:[]}}function Yd(e,t,r){const n=r?ME(r):void 0;function i(a,s,...u){let l;if(a==null){l={type:"root",children:[]};const c=s;u.unshift(c)}else{l=IE(a,t);const c=l.tagName.toLowerCase(),f=n?n.get(c):void 0;if(l.tagName=f||c,OE(s))u.unshift(s);else for(const[d,x]of Object.entries(s))RE(e,l.properties,d,x)}for(const c of u)Gu(l.children,c);return l.type==="element"&&l.tagName==="template"&&(l.content={type:"root",children:l.children},l.children=[]),l}return i}function OE(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,r=Object.keys(e);for(const n of r){const i=t[n];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const a=i;for(const s of a)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function RE(e,t,r,n){const i=Va(e,r);let a;if(n!=null){if(typeof n=="number"){if(Number.isNaN(n))return;a=n}else typeof n=="boolean"?a=n:typeof n=="string"?i.spaceSeparated?a=A0(n):i.commaSeparated?a=v0(n):i.commaOrSpaceSeparated?a=A0(v0(n).join(" ")):a=Dc(i,i.property,n):Array.isArray(n)?a=[...n]:a=i.property==="style"?LE(n):String(n);if(Array.isArray(a)){const s=[];for(const u of a)s.push(Dc(i,i.property,u));a=s}i.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function Gu(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const r of t)Gu(e,r);else if(typeof t=="object"&&"type"in t)t.type==="root"?Gu(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Dc(e,t,r){if(typeof r=="string"){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(r===""||Oa(r)===Oa(t)))return!0}return r}function LE(e){const t=[];for(const[r,n]of Object.entries(e))t.push([r,n].join(": "));return t.join("; ")}function ME(e){const t=new Map;for(const r of e)t.set(r.toLowerCase(),r);return t}const DE=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],Wd=Yd(qi,"div"),$d=Yd(rn,"g",DE),hn={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function PE(e,t){return Kd(e,{})||{type:"root",children:[]}}function Kd(e,t){const r=BE(e,t);return r&&t.afterTransform&&t.afterTransform(e,r),r}function BE(e,t){switch(e.nodeType){case 1:return HE(e,t);case 3:return UE(e);case 8:return zE(e);case 9:return Pc(e,t);case 10:return FE();case 11:return Pc(e,t);default:return}}function Pc(e,t){return{type:"root",children:Xd(e,t)}}function FE(){return{type:"doctype"}}function UE(e){return{type:"text",value:e.nodeValue||""}}function zE(e){return{type:"comment",value:e.nodeValue||""}}function HE(e,t){const r=e.namespaceURI,n=r===hn.svg?$d:Wd,i=r===hn.html?e.tagName.toLowerCase():e.tagName,a=r===hn.html&&i==="template"?e.content:e,s=e.getAttributeNames(),u={};let l=-1;for(;++l<s.length;)u[s[l]]=e.getAttribute(s[l])||"";return n(i,u,Xd(a,t))}function Xd(e,t){const r=e.childNodes,n=[];let i=-1;for(;++i<r.length;){const a=Kd(r[i],t);a!==void 0&&n.push(a)}return n}new DOMParser;function VE(e,t){const r=qE(e);return PE(r)}function qE(e){const t=document.createElement("template");return t.innerHTML=e,t.content}class he extends Error{constructor(t,r){var n="KaTeX parse error: "+t,i,a,s=r&&r.loc;if(s&&s.start<=s.end){var u=s.lexer.input;i=s.start,a=s.end,i===u.length?n+=" at end of input: ":n+=" at position "+(i+1)+": ";var l=u.slice(i,a).replace(/[^]/g,"$&̲"),c;i>15?c="…"+u.slice(i-15,i):c=u.slice(0,i);var f;a+15<u.length?f=u.slice(a,a+15)+"…":f=u.slice(a),n+=c+l+f}super(n),this.name="ParseError",this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,he.prototype),this.position=i,i!=null&&a!=null&&(this.length=a-i),this.rawMessage=t}}var GE=/([A-Z])/g,YE=e=>e.replace(GE,"-$1").toLowerCase(),WE={"&":"&",">":">","<":"<",'"':""","'":"'"},$E=/[&><"']/g,or=e=>String(e).replace($E,t=>WE[t]),Ns=e=>e.type==="ordgroup"||e.type==="color"?e.body.length===1?Ns(e.body[0]):e:e.type==="font"?Ns(e.body):e,KE=new Set(["mathord","textord","atom"]),Rn=e=>KE.has(Ns(e).type),XE=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():"_relative"},Gs={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function jE(e){if(typeof e!="string")return e.enum[0];switch(e){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{};default:throw new Error("Unexpected schema type; settings must declare an explicit default.")}}function JE(e){if(e.default!==void 0)return e.default;var t=Array.isArray(e.type)?e.type[0]:e.type;return jE(t)}function QE(e,t,r,n){var i=r[t];e[t]=i!==void 0?n.processor?n.processor(i):i:JE(n)}class Vl{constructor(t){t===void 0&&(t={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var r of Object.keys(Gs)){var n=Gs[r];n&&QE(this,r,t,n)}}reportNonstrict(t,r,n){var i=this.strict;if(typeof i=="function"&&(i=i(t,r,n)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new he("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+t+"]"),n);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+t+"]"))}}useStrictBehavior(t,r,n){var i=this.strict;if(typeof i=="function")try{i=i(t,r,n)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+t+"]")),!1)}isTrusted(t){if("url"in t&&t.url&&!t.protocol){var r=XE(t.url);if(r==null)return!1;t.protocol=r}var n=typeof this.trust=="function"?this.trust(t):this.trust;return!!n}}class Fn{constructor(t,r,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=r,this.cramped=n}sup(){return ln[ZE[this.id]]}sub(){return ln[e5[this.id]]}fracNum(){return ln[t5[this.id]]}fracDen(){return ln[r5[this.id]]}cramp(){return ln[n5[this.id]]}text(){return ln[i5[this.id]]}isTight(){return this.size>=2}}var ql=0,Ys=1,Pi=2,kn=3,Pa=4,$r=5,Fi=6,xr=7,ln=[new Fn(ql,0,!1),new Fn(Ys,0,!0),new Fn(Pi,1,!1),new Fn(kn,1,!0),new Fn(Pa,2,!1),new Fn($r,2,!0),new Fn(Fi,3,!1),new Fn(xr,3,!0)],ZE=[Pa,$r,Pa,$r,Fi,xr,Fi,xr],e5=[$r,$r,$r,$r,xr,xr,xr,xr],t5=[Pi,kn,Pa,$r,Fi,xr,Fi,xr],r5=[kn,kn,$r,$r,xr,xr,xr,xr],n5=[Ys,Ys,kn,kn,$r,$r,xr,xr],i5=[ql,Ys,Pi,kn,Pi,kn,Pi,kn],Ve={DISPLAY:ln[ql],TEXT:ln[Pi],SCRIPT:ln[Pa],SCRIPTSCRIPT:ln[Fi]},Yu=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function a5(e){for(var t=0;t<Yu.length;t++)for(var r=Yu[t],n=0;n<r.blocks.length;n++){var i=r.blocks[n];if(e>=i[0]&&e<=i[1])return r.name}return null}var Is=[];Yu.forEach(e=>e.blocks.forEach(t=>Is.push(...t)));function jd(e){for(var t=0;t<Is.length;t+=2)if(e>=Is[t]&&e<=Is[t+1])return!0;return!1}var Kt=e=>e+" "+e,Ii=80,s5=function(t,r){return"M95,"+(622+t+r)+`
|
|
52
52
|
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
53
53
|
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
54
54
|
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|
|
@@ -304,8 +304,8 @@ l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
304
304
|
|[ \r ]+
|
|
305
305
|
?)[ \r ]*`,ul="[̀-ͯ]",N7=new RegExp(ul+"+$"),I7="("+Hp+"+)|"+(C7+"|")+"([!-\\[\\]-‧-豈-]"+(ul+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(ul+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+k7)+("|"+w7+")");class gh{constructor(t,r){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=r,this.tokenRegex=new RegExp(I7,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,r){this.catcodes[t]=r}lex(){var t=this.input,r=this.tokenRegex.lastIndex;if(r===t.length)return new Dr("EOF",new wr(this,r,r));var n=this.tokenRegex.exec(t);if(n===null||n.index!==r)throw new he("Unexpected character: '"+t[r]+"'",new Dr(t[r],new wr(this,r,r+1)));var i=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[i]===14){var a=t.indexOf(`
|
|
306
306
|
`,this.tokenRegex.lastIndex);return a===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=a+1,this.lex()}return new Dr(i,new wr(this,r,this.tokenRegex.lastIndex))}}class O7{constructor(t,r){t===void 0&&(t={}),r===void 0&&(r={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=r,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new he("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var r in t)t.hasOwnProperty(r)&&(t[r]==null?delete this.current[r]:this.current[r]=t[r])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,r,n){if(n===void 0&&(n=!1),n){for(var i=0;i<this.undefStack.length;i++)delete this.undefStack[i][t];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][t]=r)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(t)&&(a[t]=this.current[t])}r==null?delete this.current[t]:this.current[t]=r}}var R7=Ip;k("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});k("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});k("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});k("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});k("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var r=e.future();return t[0].length===1&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});k("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");k("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var bh={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};k("\\char",function(e){var t=e.popToken(),r,n=0;if(t.text==="'")r=8,t=e.popToken();else if(t.text==='"')r=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")n=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new he("\\char` missing argument");n=t.text.charCodeAt(0)}else r=10;if(r){if(n=bh[t.text],n==null||n>=r)throw new he("Invalid base-"+r+" digit "+t.text);for(var i;(i=bh[e.future().text])!=null&&i<r;)n*=r,n+=i,e.popToken()}return"\\@char{"+n+"}"});var e0=(e,t,r,n)=>{var i=e.consumeArg().tokens;if(i.length!==1)throw new he("\\newcommand's first argument must be a macro name");var a=i[0].text,s=e.isDefined(a);if(s&&!t)throw new he("\\newcommand{"+a+"} attempting to redefine "+(a+"; use \\renewcommand"));if(!s&&!r)throw new he("\\renewcommand{"+a+"} when command "+a+" does not yet exist; use \\newcommand");var u=0;if(i=e.consumeArg().tokens,i.length===1&&i[0].text==="["){for(var l="",c=e.expandNextToken();c.text!=="]"&&c.text!=="EOF";)l+=c.text,c=e.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new he("Invalid number of arguments: "+l);u=parseInt(l),i=e.consumeArg().tokens}return s&&n||e.macros.set(a,{tokens:i,numArgs:u}),""};k("\\newcommand",e=>e0(e,!1,!0,!1));k("\\renewcommand",e=>e0(e,!0,!1,!1));k("\\providecommand",e=>e0(e,!0,!0,!0));k("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(r=>r.text).join("")),""});k("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(r=>r.text).join("")),""});k("\\show",e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),Gn[r],kt.math[r],kt.text[r]),""});k("\\bgroup","{");k("\\egroup","}");k("~","\\nobreakspace");k("\\lq","`");k("\\rq","'");k("\\aa","\\r a");k("\\AA","\\r A");k("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");k("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");k("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");k("ℬ","\\mathscr{B}");k("ℰ","\\mathscr{E}");k("ℱ","\\mathscr{F}");k("ℋ","\\mathscr{H}");k("ℐ","\\mathscr{I}");k("ℒ","\\mathscr{L}");k("ℳ","\\mathscr{M}");k("ℛ","\\mathscr{R}");k("ℭ","\\mathfrak{C}");k("ℌ","\\mathfrak{H}");k("ℨ","\\mathfrak{Z}");k("\\Bbbk","\\Bbb{k}");k("\\llap","\\mathllap{\\textrm{#1}}");k("\\rlap","\\mathrlap{\\textrm{#1}}");k("\\clap","\\mathclap{\\textrm{#1}}");k("\\mathstrut","\\vphantom{(}");k("\\underbar","\\underline{\\text{#1}}");k("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');k("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");k("\\ne","\\neq");k("≠","\\neq");k("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");k("∉","\\notin");k("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");k("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");k("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");k("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");k("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");k("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");k("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");k("⟂","\\perp");k("‼","\\mathclose{!\\mkern-0.8mu!}");k("∌","\\notni");k("⌜","\\ulcorner");k("⌝","\\urcorner");k("⌞","\\llcorner");k("⌟","\\lrcorner");k("©","\\copyright");k("®","\\textregistered");k("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');k("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');k("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');k("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');k("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");k("⋮","\\vdots");k("\\varGamma","\\mathit{\\Gamma}");k("\\varDelta","\\mathit{\\Delta}");k("\\varTheta","\\mathit{\\Theta}");k("\\varLambda","\\mathit{\\Lambda}");k("\\varXi","\\mathit{\\Xi}");k("\\varPi","\\mathit{\\Pi}");k("\\varSigma","\\mathit{\\Sigma}");k("\\varUpsilon","\\mathit{\\Upsilon}");k("\\varPhi","\\mathit{\\Phi}");k("\\varPsi","\\mathit{\\Psi}");k("\\varOmega","\\mathit{\\Omega}");k("\\substack","\\begin{subarray}{c}#1\\end{subarray}");k("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");k("\\boxed","\\fbox{$\\displaystyle{#1}$}");k("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");k("\\implies","\\DOTSB\\;\\Longrightarrow\\;");k("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");k("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");k("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var xh={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"},L7=new Set(["bin","rel"]);k("\\dots",function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in xh?t=xh[r]:(r.slice(0,4)==="\\not"||r in kt.math&&L7.has(kt.math[r].group))&&(t="\\dotsb"),t});var t0={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};k("\\dotso",function(e){var t=e.future().text;return t in t0?"\\ldots\\,":"\\ldots"});k("\\dotsc",function(e){var t=e.future().text;return t in t0&&t!==","?"\\ldots\\,":"\\ldots"});k("\\cdots",function(e){var t=e.future().text;return t in t0?"\\@cdots\\,":"\\@cdots"});k("\\dotsb","\\cdots");k("\\dotsm","\\cdots");k("\\dotsi","\\!\\cdots");k("\\dotsx","\\ldots\\,");k("\\DOTSI","\\relax");k("\\DOTSB","\\relax");k("\\DOTSX","\\relax");k("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");k("\\,","\\tmspace+{3mu}{.1667em}");k("\\thinspace","\\,");k("\\>","\\mskip{4mu}");k("\\:","\\tmspace+{4mu}{.2222em}");k("\\medspace","\\:");k("\\;","\\tmspace+{5mu}{.2777em}");k("\\thickspace","\\;");k("\\!","\\tmspace-{3mu}{.1667em}");k("\\negthinspace","\\!");k("\\negmedspace","\\tmspace-{4mu}{.2222em}");k("\\negthickspace","\\tmspace-{5mu}{.277em}");k("\\enspace","\\kern.5em ");k("\\enskip","\\hskip.5em\\relax");k("\\quad","\\hskip1em\\relax");k("\\qquad","\\hskip2em\\relax");k("\\tag","\\@ifstar\\tag@literal\\tag@paren");k("\\tag@paren","\\tag@literal{({#1})}");k("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new he("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});k("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");k("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");k("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");k("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");k("\\newline","\\\\\\relax");k("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Vp=me(fn["Main-Regular"][84][1]-.7*fn["Main-Regular"][65][1]);k("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Vp+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");k("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Vp+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");k("\\hspace","\\@ifstar\\@hspacer\\@hspace");k("\\@hspace","\\hskip #1\\relax");k("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");k("\\ordinarycolon",":");k("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");k("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');k("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');k("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');k("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');k("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');k("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');k("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');k("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');k("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');k("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');k("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');k("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');k("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');k("∷","\\dblcolon");k("∹","\\eqcolon");k("≔","\\coloneqq");k("≕","\\eqqcolon");k("⩴","\\Coloneqq");k("\\ratio","\\vcentcolon");k("\\coloncolon","\\dblcolon");k("\\colonequals","\\coloneqq");k("\\coloncolonequals","\\Coloneqq");k("\\equalscolon","\\eqqcolon");k("\\equalscoloncolon","\\Eqqcolon");k("\\colonminus","\\coloneq");k("\\coloncolonminus","\\Coloneq");k("\\minuscolon","\\eqcolon");k("\\minuscoloncolon","\\Eqcolon");k("\\coloncolonapprox","\\Colonapprox");k("\\coloncolonsim","\\Colonsim");k("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");k("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");k("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");k("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");k("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");k("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");k("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");k("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");k("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");k("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");k("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");k("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");k("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");k("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");k("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");k("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");k("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");k("\\nleqq","\\html@mathml{\\@nleqq}{≰}");k("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");k("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");k("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");k("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");k("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");k("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");k("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");k("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");k("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");k("\\imath","\\html@mathml{\\@imath}{ı}");k("\\jmath","\\html@mathml{\\@jmath}{ȷ}");k("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");k("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");k("⟦","\\llbracket");k("⟧","\\rrbracket");k("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");k("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");k("⦃","\\lBrace");k("⦄","\\rBrace");k("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");k("⦵","\\minuso");k("\\darr","\\downarrow");k("\\dArr","\\Downarrow");k("\\Darr","\\Downarrow");k("\\lang","\\langle");k("\\rang","\\rangle");k("\\uarr","\\uparrow");k("\\uArr","\\Uparrow");k("\\Uarr","\\Uparrow");k("\\N","\\mathbb{N}");k("\\R","\\mathbb{R}");k("\\Z","\\mathbb{Z}");k("\\alef","\\aleph");k("\\alefsym","\\aleph");k("\\Alpha","\\mathrm{A}");k("\\Beta","\\mathrm{B}");k("\\bull","\\bullet");k("\\Chi","\\mathrm{X}");k("\\clubs","\\clubsuit");k("\\cnums","\\mathbb{C}");k("\\Complex","\\mathbb{C}");k("\\Dagger","\\ddagger");k("\\diamonds","\\diamondsuit");k("\\empty","\\emptyset");k("\\Epsilon","\\mathrm{E}");k("\\Eta","\\mathrm{H}");k("\\exist","\\exists");k("\\harr","\\leftrightarrow");k("\\hArr","\\Leftrightarrow");k("\\Harr","\\Leftrightarrow");k("\\hearts","\\heartsuit");k("\\image","\\Im");k("\\infin","\\infty");k("\\Iota","\\mathrm{I}");k("\\isin","\\in");k("\\Kappa","\\mathrm{K}");k("\\larr","\\leftarrow");k("\\lArr","\\Leftarrow");k("\\Larr","\\Leftarrow");k("\\lrarr","\\leftrightarrow");k("\\lrArr","\\Leftrightarrow");k("\\Lrarr","\\Leftrightarrow");k("\\Mu","\\mathrm{M}");k("\\natnums","\\mathbb{N}");k("\\Nu","\\mathrm{N}");k("\\Omicron","\\mathrm{O}");k("\\plusmn","\\pm");k("\\rarr","\\rightarrow");k("\\rArr","\\Rightarrow");k("\\Rarr","\\Rightarrow");k("\\real","\\Re");k("\\reals","\\mathbb{R}");k("\\Reals","\\mathbb{R}");k("\\Rho","\\mathrm{P}");k("\\sdot","\\cdot");k("\\sect","\\S");k("\\spades","\\spadesuit");k("\\sub","\\subset");k("\\sube","\\subseteq");k("\\supe","\\supseteq");k("\\Tau","\\mathrm{T}");k("\\thetasym","\\vartheta");k("\\weierp","\\wp");k("\\Zeta","\\mathrm{Z}");k("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");k("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");k("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");k("\\bra","\\mathinner{\\langle{#1}|}");k("\\ket","\\mathinner{|{#1}\\rangle}");k("\\braket","\\mathinner{\\langle{#1}\\rangle}");k("\\Bra","\\left\\langle#1\\right|");k("\\Ket","\\left|#1\\right\\rangle");var qp=e=>t=>{var r=t.consumeArg().tokens,n=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,s=t.macros.get("|"),u=t.macros.get("\\|");t.macros.beginGroup();var l=d=>x=>{e&&(x.macros.set("|",s),i.length&&x.macros.set("\\|",u));var b=d;if(!d&&i.length){var T=x.future();T.text==="|"&&(x.popToken(),b=!0)}return{tokens:b?i:n,numArgs:0}};t.macros.set("|",l(!1)),i.length&&t.macros.set("\\|",l(!0));var c=t.consumeArg().tokens,f=t.expandTokens([...a,...c,...r]);return t.macros.endGroup(),{tokens:f.reverse(),numArgs:0}};k("\\bra@ket",qp(!1));k("\\bra@set",qp(!0));k("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");k("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");k("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");k("\\angln","{\\angl n}");k("\\blue","\\textcolor{##6495ed}{#1}");k("\\orange","\\textcolor{##ffa500}{#1}");k("\\pink","\\textcolor{##ff00af}{#1}");k("\\red","\\textcolor{##df0030}{#1}");k("\\green","\\textcolor{##28ae7b}{#1}");k("\\gray","\\textcolor{gray}{#1}");k("\\purple","\\textcolor{##9d38bd}{#1}");k("\\blueA","\\textcolor{##ccfaff}{#1}");k("\\blueB","\\textcolor{##80f6ff}{#1}");k("\\blueC","\\textcolor{##63d9ea}{#1}");k("\\blueD","\\textcolor{##11accd}{#1}");k("\\blueE","\\textcolor{##0c7f99}{#1}");k("\\tealA","\\textcolor{##94fff5}{#1}");k("\\tealB","\\textcolor{##26edd5}{#1}");k("\\tealC","\\textcolor{##01d1c1}{#1}");k("\\tealD","\\textcolor{##01a995}{#1}");k("\\tealE","\\textcolor{##208170}{#1}");k("\\greenA","\\textcolor{##b6ffb0}{#1}");k("\\greenB","\\textcolor{##8af281}{#1}");k("\\greenC","\\textcolor{##74cf70}{#1}");k("\\greenD","\\textcolor{##1fab54}{#1}");k("\\greenE","\\textcolor{##0d923f}{#1}");k("\\goldA","\\textcolor{##ffd0a9}{#1}");k("\\goldB","\\textcolor{##ffbb71}{#1}");k("\\goldC","\\textcolor{##ff9c39}{#1}");k("\\goldD","\\textcolor{##e07d10}{#1}");k("\\goldE","\\textcolor{##a75a05}{#1}");k("\\redA","\\textcolor{##fca9a9}{#1}");k("\\redB","\\textcolor{##ff8482}{#1}");k("\\redC","\\textcolor{##f9685d}{#1}");k("\\redD","\\textcolor{##e84d39}{#1}");k("\\redE","\\textcolor{##bc2612}{#1}");k("\\maroonA","\\textcolor{##ffbde0}{#1}");k("\\maroonB","\\textcolor{##ff92c6}{#1}");k("\\maroonC","\\textcolor{##ed5fa6}{#1}");k("\\maroonD","\\textcolor{##ca337c}{#1}");k("\\maroonE","\\textcolor{##9e034e}{#1}");k("\\purpleA","\\textcolor{##ddd7ff}{#1}");k("\\purpleB","\\textcolor{##c6b9fc}{#1}");k("\\purpleC","\\textcolor{##aa87ff}{#1}");k("\\purpleD","\\textcolor{##7854ab}{#1}");k("\\purpleE","\\textcolor{##543b78}{#1}");k("\\mintA","\\textcolor{##f5f9e8}{#1}");k("\\mintB","\\textcolor{##edf2df}{#1}");k("\\mintC","\\textcolor{##e0e5cc}{#1}");k("\\grayA","\\textcolor{##f6f7f7}{#1}");k("\\grayB","\\textcolor{##f0f1f2}{#1}");k("\\grayC","\\textcolor{##e3e5e6}{#1}");k("\\grayD","\\textcolor{##d6d8da}{#1}");k("\\grayE","\\textcolor{##babec2}{#1}");k("\\grayF","\\textcolor{##888d93}{#1}");k("\\grayG","\\textcolor{##626569}{#1}");k("\\grayH","\\textcolor{##3b3e40}{#1}");k("\\grayI","\\textcolor{##21242c}{#1}");k("\\kaBlue","\\textcolor{##314453}{#1}");k("\\kaGreen","\\textcolor{##71B307}{#1}");var Gp={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class M7{constructor(t,r,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=r,this.expansionCount=0,this.feed(t),this.macros=new O7(R7,r.macros),this.mode=n,this.stack=[]}feed(t){this.lexer=new gh(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var r,n,i;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken(),{tokens:i,end:n}=this.consumeArg(["]"])}else({tokens:i,start:r,end:n}=this.consumeArg());return this.pushToken(new Dr("EOF",n.loc)),this.pushTokens(i),new Dr("",wr.range(r,n))}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var r=[],n=t&&t.length>0;n||this.consumeSpaces();var i=this.future(),a,s=0,u=0;do{if(a=this.popToken(),r.push(a),a.text==="{")++s;else if(a.text==="}"){if(--s,s===-1)throw new he("Extra }",a)}else if(a.text==="EOF")throw new he("Unexpected end of input in a macro argument, expected '"+(t&&n?t[u]:"}")+"'",a);if(t&&n)if((s===0||s===1&&t[u]==="{")&&a.text===t[u]){if(++u,u===t.length){r.splice(-u,u);break}}else u=0}while(s!==0||n);return i.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:i,end:a}}consumeArgs(t,r){if(r){if(r.length!==t+1)throw new he("The length of delimiters doesn't match the number of args!");for(var n=r[0],i=0;i<n.length;i++){var a=this.popToken();if(n[i]!==a.text)throw new he("Use of the macro doesn't match its definition",a)}}for(var s=[],u=0;u<t;u++)s.push(this.consumeArg(r&&r[u+1]).tokens);return s}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new he("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var r=this.popToken(),n=r.text,i=r.noexpand?null:this._getExpansion(n);if(i==null||t&&i.unexpandable){if(t&&i==null&&n[0]==="\\"&&!this.isDefined(n))throw new he("Undefined control sequence: "+n);return this.pushToken(r),!1}this.countExpansion(1);var a=i.tokens,s=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){a=a.slice();for(var u=a.length-1;u>=0;--u){var l=a[u];if(l.text==="#"){if(u===0)throw new he("Incomplete placeholder at end of macro body",l);if(l=a[--u],l.text==="#")a.splice(u+1,1);else if(/^[1-9]$/.test(l.text))a.splice(u,2,...s[+l.text-1]);else throw new he("Not a valid argument number",l)}}}return this.pushTokens(a),a.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}}expandMacro(t){return this.macros.has(t)?this.expandTokens([new Dr(t)]):void 0}expandTokens(t){var r=[],n=this.stack.length;for(this.pushTokens(t);this.stack.length>n;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),r.push(i)}return this.countExpansion(r.length),r}expandMacroAsText(t){var r=this.expandMacro(t);return r&&r.map(n=>n.text).join("")}_getExpansion(t){var r=this.macros.get(t);if(r==null)return r;if(t.length===1){var n=this.lexer.catcodes[t];if(n!=null&&n!==13)return}var i=typeof r=="function"?r(this):r;if(typeof i=="string"){var a=0;if(i.includes("#"))for(var s=i.replace(/##/g,"");s.includes("#"+(a+1));)++a;for(var u=new gh(i,this.settings),l=[],c=u.lex();c.text!=="EOF";)l.push(c),c=u.lex();l.reverse();var f={tokens:l,numArgs:a};return f}return i}isDefined(t){return this.macros.has(t)||Gn.hasOwnProperty(t)||kt.math.hasOwnProperty(t)||kt.text.hasOwnProperty(t)||Gp.hasOwnProperty(t)}isExpandable(t){var r=this.macros.get(t);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:Gn.hasOwnProperty(t)&&!Gn[t].primitive}}var Eh=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,As=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),Tu={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},yh={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};let Yp=class Wp{constructor(t,r){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new M7(t,r,this.mode),this.settings=r,this.leftrightDepth=0,this.nextToken=null}expect(t,r){if(r===void 0&&(r=!0),this.fetch().text!==t)throw new he("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());r&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var r=this.nextToken;this.consume(),this.gullet.pushToken(new Dr("}")),this.gullet.pushTokens(t);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,n}parseExpression(t,r){for(var n=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(Wp.endOfExpression.has(i.text)||r&&i.text===r||t&&Gn[i.text]&&Gn[i.text].infix)break;var a=this.parseAtom(r);if(a){if(a.type==="internal")continue}else break;n.push(a)}return this.mode==="text"&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(t){for(var r=-1,n,i=0;i<t.length;i++){var a=t[i];if(a.type==="infix"){if(r!==-1)throw new he("only one infix operator per group",a.token);r=i,n=a.replaceWith}}if(r!==-1&&n){var s,u,l=t.slice(0,r),c=t.slice(r+1);l.length===1&&l[0].type==="ordgroup"?s=l[0]:s={type:"ordgroup",mode:this.mode,body:l},c.length===1&&c[0].type==="ordgroup"?u=c[0]:u={type:"ordgroup",mode:this.mode,body:c};var f;return n==="\\\\abovefrac"?f=this.callFunction(n,[s,t[r],u],[]):f=this.callFunction(n,[s,u],[]),[f]}else return t}handleSupSubscript(t){var r=this.fetch(),n=r.text;this.consume(),this.consumeSpaces();var i;do{var a;i=this.parseGroup(t)}while(((a=i)==null?void 0:a.type)==="internal");if(!i)throw new he("Expected group after '"+n+"'",r);return i}formatUnsupportedCmd(t){for(var r=[],n=0;n<t.length;n++)r.push({type:"textord",mode:"text",text:t[n]});var i={type:"text",mode:this.mode,body:r},a={type:"color",mode:this.mode,color:this.settings.errorColor,body:[i]};return a}parseAtom(t){var r=this.parseGroup("atom",t);if(r?.type==="internal"||this.mode==="text")return r;for(var n,i;;){this.consumeSpaces();var a=this.fetch();if(a.text==="\\limits"||a.text==="\\nolimits"){if(r&&r.type==="op"){var s=a.text==="\\limits";r.limits=s,r.alwaysHandleSupSub=!0}else if(r&&r.type==="operatorname")r.alwaysHandleSupSub&&(r.limits=a.text==="\\limits");else throw new he("Limit controls must follow a math operator",a);this.consume()}else if(a.text==="^"){if(n)throw new he("Double superscript",a);n=this.handleSupSubscript("superscript")}else if(a.text==="_"){if(i)throw new he("Double subscript",a);i=this.handleSupSubscript("subscript")}else if(a.text==="'"){if(n)throw new he("Double superscript",a);var u={type:"textord",mode:this.mode,text:"\\prime"},l=[u];for(this.consume();this.fetch().text==="'";)l.push(u),this.consume();this.fetch().text==="^"&&l.push(this.handleSupSubscript("superscript")),n={type:"ordgroup",mode:this.mode,body:l}}else if(As[a.text]){var c=Eh.test(a.text),f=[];for(f.push(new Dr(As[a.text])),this.consume();;){var d=this.fetch().text;if(!As[d]||Eh.test(d)!==c)break;f.unshift(new Dr(As[d])),this.consume()}var x=this.subparse(f);c?i={type:"ordgroup",mode:"math",body:x}:n={type:"ordgroup",mode:"math",body:x}}else break}return n||i?{type:"supsub",mode:this.mode,base:r,sup:n,sub:i}:r}parseFunction(t,r){var n=this.fetch(),i=n.text,a=Gn[i];if(!a)return null;if(this.consume(),r&&r!=="atom"&&!a.allowedInArgument)throw new he("Got function '"+i+"' with no arguments"+(r?" as "+r:""),n);if(this.mode==="text"&&!a.allowedInText)throw new he("Can't use function '"+i+"' in text mode",n);if(this.mode==="math"&&a.allowedInMath===!1)throw new he("Can't use function '"+i+"' in math mode",n);var{args:s,optArgs:u}=this.parseArguments(i,a);return this.callFunction(i,s,u,n,t)}callFunction(t,r,n,i,a){var s={funcName:t,parser:this,token:i,breakOnTokenText:a},u=Gn[t];if(u&&u.handler)return u.handler(s,r,n);throw new he("No function handler for "+t)}parseArguments(t,r){var n=r.numArgs+r.numOptionalArgs;if(n===0)return{args:[],optArgs:[]};for(var i=[],a=[],s=0;s<n;s++){var u=r.argTypes&&r.argTypes[s],l=s<r.numOptionalArgs;("primitive"in r&&r.primitive&&u==null||r.type==="sqrt"&&s===1&&a[0]==null)&&(u="primitive");var c=this.parseGroupOfType("argument to '"+t+"'",u,l);if(l)a.push(c);else if(c!=null)i.push(c);else throw new he("Null argument, please report this as a bug")}return{args:i,optArgs:a}}parseGroupOfType(t,r,n){switch(r){case"color":return this.parseColorGroup(n);case"size":return this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n);case"math":case"text":return this.parseArgumentGroup(n,r);case"hbox":{var i=this.parseArgumentGroup(n,"text");return i!=null?{type:"styling",mode:i.mode,body:[i],style:"text",resetFont:!0}:null}case"raw":{var a=this.parseStringGroup("raw",n);return a!=null?{type:"raw",mode:"text",string:a.text}:null}case"primitive":{if(n)throw new he("A primitive argument cannot be optional");var s=this.parseGroup(t);if(s==null)throw new he("Expected group as "+t,this.fetch());return s}case"original":case null:case void 0:return this.parseArgumentGroup(n);default:throw new he("Unknown group type as "+t,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(t,r){var n=this.gullet.scanArgument(r);if(n==null)return null;for(var i="",a;(a=this.fetch()).text!=="EOF";)i+=a.text,this.consume();return this.consume(),n.text=i,n}parseRegexGroup(t,r){for(var n=this.fetch(),i=n,a="",s;(s=this.fetch()).text!=="EOF"&&t.test(a+s.text);)i=s,a+=i.text,this.consume();if(a==="")throw new he("Invalid "+r+": '"+n.text+"'",n);return n.range(i,a)}parseColorGroup(t){var r=this.parseStringGroup("color",t);if(r==null)return null;var n=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(r.text);if(!n)throw new he("Invalid color: '"+r.text+"'",r);var i=n[0];return/^[0-9a-f]{6}$/i.test(i)&&(i="#"+i),{type:"color-token",mode:this.mode,color:i}}parseSizeGroup(t){var r,n=!1;if(this.gullet.consumeSpaces(),!t&&this.gullet.future().text!=="{"?r=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):r=this.parseStringGroup("size",t),!r)return null;!t&&r.text.length===0&&(r.text="0pt",n=!0);var i=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(r.text);if(!i)throw new he("Invalid size: '"+r.text+"'",r);var a={number:+(i[1]+i[2]),unit:i[3]};if(!Jd(a))throw new he("Invalid unit: '"+a.unit+"'",r);return{type:"size",mode:this.mode,value:a,isBlank:n}}parseUrlGroup(t){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var r=this.parseStringGroup("url",t);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),r==null)return null;var n=r.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:n}}parseArgumentGroup(t,r){var n=this.gullet.scanArgument(t);if(n==null)return null;var i=this.mode;r&&this.switchMode(r),this.gullet.beginGroup();var a=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var s={type:"ordgroup",mode:this.mode,loc:n.loc,body:a};return r&&this.switchMode(i),s}parseGroup(t,r){var n=this.fetch(),i=n.text,a;if(i==="{"||i==="\\begingroup"){this.consume();var s=i==="{"?"}":"\\endgroup";this.gullet.beginGroup();var u=this.parseExpression(!1,s),l=this.fetch();this.expect(s),this.gullet.endGroup(),a={type:"ordgroup",mode:this.mode,loc:wr.range(n,l),body:u,semisimple:i==="\\begingroup"||void 0}}else if(a=this.parseFunction(r,t)||this.parseSymbol(),a==null&&i[0]==="\\"&&!Gp.hasOwnProperty(i)){if(this.settings.throwOnError)throw new he("Undefined control sequence: "+i,n);a=this.formatUnsupportedCmd(i),this.consume()}return a}formLigatures(t){for(var r=t.length-1,n=0;n<r;++n){var i=t[n];if(i.type==="textord"){var a=i.text,s=t[n+1];if(!(!s||s.type!=="textord")){if(a==="-"&&s.text==="-"){var u=t[n+2];n+1<r&&u&&u.type==="textord"&&u.text==="-"?(t.splice(n,3,{type:"textord",mode:"text",loc:wr.range(i,u),text:"---"}),r-=2):(t.splice(n,2,{type:"textord",mode:"text",loc:wr.range(i,s),text:"--"}),r-=1)}(a==="'"||a==="`")&&s.text===a&&(t.splice(n,2,{type:"textord",mode:"text",loc:wr.range(i,s),text:a+a}),r-=1)}}}}parseSymbol(){var t=this.fetch(),r=t.text;if(/^\\verb[^a-zA-Z]/.test(r)){this.consume();var n=r.slice(5),i=n.charAt(0)==="*";if(i&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new he(`\\verb assertion failed --
|
|
307
|
-
please report what input caused this bug`);return n=n.slice(1,-1),{type:"verb",mode:"text",body:n,star:i}}yh.hasOwnProperty(r[0])&&!kt[this.mode][r[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+r[0]+'" used in math mode',t),r=yh[r[0]]+r.slice(1));var a=N7.exec(r);a&&(r=r.substring(0,a.index),r==="i"?r="ı":r==="j"&&(r="ȷ"));var s;if(kt[this.mode][r]){this.settings.strict&&this.mode==="math"&&Ku.includes(r)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+r[0]+'" used in math mode',t);var u=kt[this.mode][r].group,l=wr.range(t),c;j5(u)?c={type:"atom",mode:this.mode,family:u,loc:l,text:r}:c={type:u,mode:this.mode,loc:l,text:r},s=c}else if(r.charCodeAt(0)>=128)this.settings.strict&&(jd(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),t)),s={type:"textord",mode:"text",loc:wr.range(t),text:r};else return null;if(this.consume(),a)for(var f=0;f<a[0].length;f++){var d=a[0][f];if(!Tu[d])throw new he("Unknown accent ' "+d+"'",t);var x=Tu[d][this.mode]||Tu[d].text;if(!x)throw new he("Accent "+d+" unsupported in "+this.mode+" mode",t);s={type:"accent",mode:this.mode,loc:wr.range(t),label:x,isStretchy:!1,isShifty:!0,base:s}}return s}};Yp.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var r0=function(t,r){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new Yp(t,r);delete n.gullet.macros.current["\\df@tag"];var i=n.parse();if(delete n.gullet.macros.current["\\current@color"],delete n.gullet.macros.current["\\color"],n.gullet.macros.get("\\df@tag")){if(!r.displayMode)throw new he("\\tag works only in display equations");i=[{type:"tag",mode:"text",body:i,tag:n.subparse([new Dr("\\df@tag")])}]}return i},n0=function(t,r,n){r.textContent="";var i=So(t,n).toNode();r.appendChild(i)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),n0=function(){throw new he("KaTeX doesn't work in quirks mode.")});var $p=function(t,r){var n=So(t,r).toMarkup();return n},Kp=function(t,r){var n=new Vl(r);return r0(t,n)},Xp=function(t,r,n){if(n.throwOnError||!(t instanceof he))throw t;var i=ue(["katex-error"],[new Pr(r)]);return i.setAttribute("title",t.toString()),i.setAttribute("style","color:"+n.errorColor),i},So=function(t,r){var n=new Vl(r);try{var i=r0(t,n);return V5(i,t,n)}catch(a){return Xp(a,t,n)}},jp=function(t,r){var n=new Vl(r);try{var i=r0(t,n);return q5(i,t,n)}catch(a){return Xp(a,t,n)}},Jp="0.16.47",Qp={Span:Ji,Anchor:fo,SymbolNode:Pr,SvgNode:In,PathNode:Kn,LineNode:$u},ll={version:Jp,render:n0,renderToString:$p,ParseError:he,SETTINGS_SCHEMA:Gs,__parse:Kp,__renderToDomTree:So,__renderToHTMLTree:jp,__setFontMetrics:tp,__defineSymbol:m,__defineFunction:ve,__defineMacro:k,__domTree:Qp};const
|
|
308
|
-
`,t);return n===-1?r:r===-1||r+1===n?n:r<n?r:n}const Zp={}.hasOwnProperty,F7=Object.prototype;function U7(e,t){const r=t||{};return i0({file:r.file||void 0,location:!1,schema:r.space==="svg"?rn:qi,verbose:r.verbose||!1},e)}function i0(e,t){let r;switch(t.nodeName){case"#comment":{const n=t;return r={type:"comment",value:n.data},Os(e,n,r),r}case"#document":case"#document-fragment":{const n=t,i="mode"in n?n.mode==="quirks"||n.mode==="limited-quirks":!1;if(r={type:"root",children:e1(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const a=String(e.file),s=B7(a),u=s.toPoint(0),l=s.toPoint(a.length);r.position={start:u,end:l}}return r}case"#documentType":{const n=t;return r={type:"doctype"},Os(e,n,r),r}case"#text":{const n=t;return r={type:"text",value:n.value},Os(e,n,r),r}default:return r=z7(e,t),r}}function e1(e,t){let r=-1;const n=[];for(;++r<t.length;){const i=i0(e,t[r]);n.push(i)}return n}function z7(e,t){const r=e.schema;e.schema=t.namespaceURI===hn.svg?rn:qi;let n=-1;const i={};for(;++n<t.attrs.length;){const u=t.attrs[n],l=(u.prefix?u.prefix+":":"")+u.name;Zp.call(F7,l)||(i[l]=u.value)}const s=(e.schema.space==="svg"?$d:Wd)(t.tagName,i,e1(e,t.childNodes));if(Os(e,t,s),s.tagName==="template"){const u=t,l=u.sourceCodeLocation,c=l&&l.startTag&&Di(l.startTag),f=l&&l.endTag&&Di(l.endTag),d=i0(e,u.content);c&&f&&e.file&&(d.position={start:c.end,end:f.start}),s.content=d}return e.schema=r,s}function Os(e,t,r){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const n=H7(e,r,t.sourceCodeLocation);n&&(e.location=!0,r.position=n)}}function H7(e,t,r){const n=Di(r);if(t.type==="element"){const i=t.children[t.children.length-1];if(n&&!r.endTag&&i&&i.position&&i.position.end&&(n.end=Object.assign({},i.position.end)),e.verbose){const a={};let s;if(r.attrs)for(s in r.attrs)Zp.call(r.attrs,s)&&(a[Va(e.schema,s).property]=Di(r.attrs[s]));r.startTag;const u=Di(r.startTag),l=r.endTag?Di(r.endTag):void 0,c={opening:u};l&&(c.closing=l),c.properties=a,t.data={position:c}}}return n}function Di(e){const t=Th({line:e.startLine,column:e.startCol,offset:e.startOffset}),r=Th({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||r?{start:t,end:r}:void 0}function Th(e){return e.line&&e.column?e:void 0}const V7={},q7={}.hasOwnProperty,t1=yl("type",{handlers:{root:Y7,element:j7,text:K7,comment:X7,doctype:$7}});function G7(e,t){const n=(t||V7).space;return t1(e,n==="svg"?rn:qi)}function Y7(e,t){const r={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return r.childNodes=a0(e.children,r,t),ea(e,r),r}function W7(e,t){const r={nodeName:"#document-fragment",childNodes:[]};return r.childNodes=a0(e.children,r,t),ea(e,r),r}function $7(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return ea(e,t),t}function K7(e){const t={nodeName:"#text",value:e.value,parentNode:null};return ea(e,t),t}function X7(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return ea(e,t),t}function j7(e,t){const r=t;let n=r;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&r.space==="html"&&(n=rn);const i=[];let a;if(e.properties){for(a in e.properties)if(a!=="children"&&q7.call(e.properties,a)){const l=J7(n,a,e.properties[a]);l&&i.push(l)}}const s=n.space,u={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:hn[s],childNodes:[],parentNode:null};return u.childNodes=a0(e.children,u,n),ea(e,u),e.tagName==="template"&&e.content&&(u.content=W7(e.content,n)),u}function J7(e,t,r){const n=Va(e,t);if(r===!1||r===null||r===void 0||typeof r=="number"&&Number.isNaN(r)||!r&&n.boolean)return;Array.isArray(r)&&(r=n.commaSeparated?ml(r):bl(r));const i={name:n.attribute,value:r===!0?"":String(r)};if(n.space&&n.space!=="html"&&n.space!=="svg"){const a=i.name.indexOf(":");a<0?i.prefix="":(i.name=i.name.slice(a+1),i.prefix=n.attribute.slice(0,a)),i.namespace=hn[n.space]}return i}function a0(e,t,r){let n=-1;const i=[];if(e)for(;++n<e.length;){const a=t1(e[n],r);a.parentNode=t,i.push(a)}return i}function ea(e,t){const r=e.position;r&&r.start&&r.end&&(r.start.offset,r.end.offset,t.sourceCodeLocation={startLine:r.start.line,startCol:r.start.column,startOffset:r.start.offset,endLine:r.end.line,endCol:r.end.column,endOffset:r.end.offset})}const Q7=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],Z7=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),St="�";var R;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(R||(R={}));const Ar={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function r1(e){return e>=55296&&e<=57343}function e8(e){return e>=56320&&e<=57343}function t8(e,t){return(e-55296)*1024+9216+t}function n1(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function i1(e){return e>=64976&&e<=65007||Z7.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||(Q={}));const r8=65536;class n8{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=r8,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,r){const{line:n,col:i,offset:a}=this,s=i+r,u=a+r;return{code:t,startLine:n,endLine:n,startCol:s,endCol:s,startOffset:u,endOffset:u}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const r=this.html.charCodeAt(this.pos+1);if(e8(r))return this.pos++,this._addGap(),t8(t,r)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,R.EOF;return this._err(Q.surrogateInInputStream),t}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(t,r){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=r}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,r){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(r)return this.html.startsWith(t,this.pos);for(let n=0;n<t.length;n++)if((this.html.charCodeAt(this.pos+n)|32)!==t.charCodeAt(n))return!1;return!0}peek(t){const r=this.pos+t;if(r>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,R.EOF;const n=this.html.charCodeAt(r);return n===R.CARRIAGE_RETURN?R.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,R.EOF;let t=this.html.charCodeAt(this.pos);return t===R.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,R.LINE_FEED):t===R.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,r1(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===R.LINE_FEED||t===R.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){n1(t)?this._err(Q.controlCharacterInInputStream):i1(t)&&this._err(Q.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var Ze;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(Ze||(Ze={}));function a1(e,t){for(let r=e.attrs.length-1;r>=0;r--)if(e.attrs[r].name===t)return e.attrs[r].value;return null}const i8=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୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢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;怳Ādpuct;戏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ǣጓ\0y;䐎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Ā;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀ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Ā;elƀ;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\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»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ↄⅪ←ٖ↛ǰ↉\0proø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肻 ଷ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;䅓Ācrir;榿;쀀𝔬ͯ\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\0m;櫳;櫽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))),a8=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function s8(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=a8.get(e))!==null&&t!==void 0?t:e}var Zt;(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"})(Zt||(Zt={}));const o8=32;var Yn;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Yn||(Yn={}));function cl(e){return e>=Zt.ZERO&&e<=Zt.NINE}function u8(e){return e>=Zt.UPPER_A&&e<=Zt.UPPER_F||e>=Zt.LOWER_A&&e<=Zt.LOWER_F}function l8(e){return e>=Zt.UPPER_A&&e<=Zt.UPPER_Z||e>=Zt.LOWER_A&&e<=Zt.LOWER_Z||cl(e)}function c8(e){return e===Zt.EQUALS||l8(e)}var Qt;(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"})(Qt||(Qt={}));var Sn;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Sn||(Sn={}));class h8{constructor(t,r,n){this.decodeTree=t,this.emitCodePoint=r,this.errors=n,this.state=Qt.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Sn.Strict}startEntity(t){this.decodeMode=t,this.state=Qt.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,r){switch(this.state){case Qt.EntityStart:return t.charCodeAt(r)===Zt.NUM?(this.state=Qt.NumericStart,this.consumed+=1,this.stateNumericStart(t,r+1)):(this.state=Qt.NamedEntity,this.stateNamedEntity(t,r));case Qt.NumericStart:return this.stateNumericStart(t,r);case Qt.NumericDecimal:return this.stateNumericDecimal(t,r);case Qt.NumericHex:return this.stateNumericHex(t,r);case Qt.NamedEntity:return this.stateNamedEntity(t,r)}}stateNumericStart(t,r){return r>=t.length?-1:(t.charCodeAt(r)|o8)===Zt.LOWER_X?(this.state=Qt.NumericHex,this.consumed+=1,this.stateNumericHex(t,r+1)):(this.state=Qt.NumericDecimal,this.stateNumericDecimal(t,r))}addToNumericResult(t,r,n,i){if(r!==n){const a=n-r;this.result=this.result*Math.pow(i,a)+Number.parseInt(t.substr(r,a),i),this.consumed+=a}}stateNumericHex(t,r){const n=r;for(;r<t.length;){const i=t.charCodeAt(r);if(cl(i)||u8(i))r+=1;else return this.addToNumericResult(t,n,r,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(t,n,r,16),-1}stateNumericDecimal(t,r){const n=r;for(;r<t.length;){const i=t.charCodeAt(r);if(cl(i))r+=1;else return this.addToNumericResult(t,n,r,10),this.emitNumericEntity(i,2)}return this.addToNumericResult(t,n,r,10),-1}emitNumericEntity(t,r){var n;if(this.consumed<=r)return(n=this.errors)===null||n===void 0||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Zt.SEMI)this.consumed+=1;else if(this.decodeMode===Sn.Strict)return 0;return this.emitCodePoint(s8(this.result),this.consumed),this.errors&&(t!==Zt.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,r){const{decodeTree:n}=this;let i=n[this.treeIndex],a=(i&Yn.VALUE_LENGTH)>>14;for(;r<t.length;r++,this.excess++){const s=t.charCodeAt(r);if(this.treeIndex=f8(n,i,this.treeIndex+Math.max(1,a),s),this.treeIndex<0)return this.result===0||this.decodeMode===Sn.Attribute&&(a===0||c8(s))?0:this.emitNotTerminatedNamedEntity();if(i=n[this.treeIndex],a=(i&Yn.VALUE_LENGTH)>>14,a!==0){if(s===Zt.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==Sn.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:r,decodeTree:n}=this,i=(n[r]&Yn.VALUE_LENGTH)>>14;return this.emitNamedEntityData(r,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,r,n){const{decodeTree:i}=this;return this.emitCodePoint(r===1?i[t]&~Yn.VALUE_LENGTH:i[t+1],n),r===3&&this.emitCodePoint(i[t+2],n),n}end(){var t;switch(this.state){case Qt.NamedEntity:return this.result!==0&&(this.decodeMode!==Sn.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Qt.NumericDecimal:return this.emitNumericEntity(0,2);case Qt.NumericHex:return this.emitNumericEntity(0,3);case Qt.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Qt.EntityStart:return 0}}}function f8(e,t,r,n){const i=(t&Yn.BRANCH_LENGTH)>>7,a=t&Yn.JUMP_TABLE;if(i===0)return a!==0&&n===a?r:-1;if(a){const l=n-a;return l<0||l>=i?-1:e[r+l]-1}let s=r,u=s+i-1;for(;s<=u;){const l=s+u>>>1,c=e[l];if(c<n)s=l+1;else if(c>n)u=l-1;else return e[l+i]}return-1}var ae;(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/"})(ae||(ae={}));var li;(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"})(li||(li={}));var Yr;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Yr||(Yr={}));var X;(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"})(X||(X={}));var p;(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"})(p||(p={}));const d8=new Map([[X.A,p.A],[X.ADDRESS,p.ADDRESS],[X.ANNOTATION_XML,p.ANNOTATION_XML],[X.APPLET,p.APPLET],[X.AREA,p.AREA],[X.ARTICLE,p.ARTICLE],[X.ASIDE,p.ASIDE],[X.B,p.B],[X.BASE,p.BASE],[X.BASEFONT,p.BASEFONT],[X.BGSOUND,p.BGSOUND],[X.BIG,p.BIG],[X.BLOCKQUOTE,p.BLOCKQUOTE],[X.BODY,p.BODY],[X.BR,p.BR],[X.BUTTON,p.BUTTON],[X.CAPTION,p.CAPTION],[X.CENTER,p.CENTER],[X.CODE,p.CODE],[X.COL,p.COL],[X.COLGROUP,p.COLGROUP],[X.DD,p.DD],[X.DESC,p.DESC],[X.DETAILS,p.DETAILS],[X.DIALOG,p.DIALOG],[X.DIR,p.DIR],[X.DIV,p.DIV],[X.DL,p.DL],[X.DT,p.DT],[X.EM,p.EM],[X.EMBED,p.EMBED],[X.FIELDSET,p.FIELDSET],[X.FIGCAPTION,p.FIGCAPTION],[X.FIGURE,p.FIGURE],[X.FONT,p.FONT],[X.FOOTER,p.FOOTER],[X.FOREIGN_OBJECT,p.FOREIGN_OBJECT],[X.FORM,p.FORM],[X.FRAME,p.FRAME],[X.FRAMESET,p.FRAMESET],[X.H1,p.H1],[X.H2,p.H2],[X.H3,p.H3],[X.H4,p.H4],[X.H5,p.H5],[X.H6,p.H6],[X.HEAD,p.HEAD],[X.HEADER,p.HEADER],[X.HGROUP,p.HGROUP],[X.HR,p.HR],[X.HTML,p.HTML],[X.I,p.I],[X.IMG,p.IMG],[X.IMAGE,p.IMAGE],[X.INPUT,p.INPUT],[X.IFRAME,p.IFRAME],[X.KEYGEN,p.KEYGEN],[X.LABEL,p.LABEL],[X.LI,p.LI],[X.LINK,p.LINK],[X.LISTING,p.LISTING],[X.MAIN,p.MAIN],[X.MALIGNMARK,p.MALIGNMARK],[X.MARQUEE,p.MARQUEE],[X.MATH,p.MATH],[X.MENU,p.MENU],[X.META,p.META],[X.MGLYPH,p.MGLYPH],[X.MI,p.MI],[X.MO,p.MO],[X.MN,p.MN],[X.MS,p.MS],[X.MTEXT,p.MTEXT],[X.NAV,p.NAV],[X.NOBR,p.NOBR],[X.NOFRAMES,p.NOFRAMES],[X.NOEMBED,p.NOEMBED],[X.NOSCRIPT,p.NOSCRIPT],[X.OBJECT,p.OBJECT],[X.OL,p.OL],[X.OPTGROUP,p.OPTGROUP],[X.OPTION,p.OPTION],[X.P,p.P],[X.PARAM,p.PARAM],[X.PLAINTEXT,p.PLAINTEXT],[X.PRE,p.PRE],[X.RB,p.RB],[X.RP,p.RP],[X.RT,p.RT],[X.RTC,p.RTC],[X.RUBY,p.RUBY],[X.S,p.S],[X.SCRIPT,p.SCRIPT],[X.SEARCH,p.SEARCH],[X.SECTION,p.SECTION],[X.SELECT,p.SELECT],[X.SOURCE,p.SOURCE],[X.SMALL,p.SMALL],[X.SPAN,p.SPAN],[X.STRIKE,p.STRIKE],[X.STRONG,p.STRONG],[X.STYLE,p.STYLE],[X.SUB,p.SUB],[X.SUMMARY,p.SUMMARY],[X.SUP,p.SUP],[X.TABLE,p.TABLE],[X.TBODY,p.TBODY],[X.TEMPLATE,p.TEMPLATE],[X.TEXTAREA,p.TEXTAREA],[X.TFOOT,p.TFOOT],[X.TD,p.TD],[X.TH,p.TH],[X.THEAD,p.THEAD],[X.TITLE,p.TITLE],[X.TR,p.TR],[X.TRACK,p.TRACK],[X.TT,p.TT],[X.U,p.U],[X.UL,p.UL],[X.SVG,p.SVG],[X.VAR,p.VAR],[X.WBR,p.WBR],[X.XMP,p.XMP]]);function ta(e){var t;return(t=d8.get(e))!==null&&t!==void 0?t:p.UNKNOWN}const le=p,p8={[ae.HTML]:new Set([le.ADDRESS,le.APPLET,le.AREA,le.ARTICLE,le.ASIDE,le.BASE,le.BASEFONT,le.BGSOUND,le.BLOCKQUOTE,le.BODY,le.BR,le.BUTTON,le.CAPTION,le.CENTER,le.COL,le.COLGROUP,le.DD,le.DETAILS,le.DIR,le.DIV,le.DL,le.DT,le.EMBED,le.FIELDSET,le.FIGCAPTION,le.FIGURE,le.FOOTER,le.FORM,le.FRAME,le.FRAMESET,le.H1,le.H2,le.H3,le.H4,le.H5,le.H6,le.HEAD,le.HEADER,le.HGROUP,le.HR,le.HTML,le.IFRAME,le.IMG,le.INPUT,le.LI,le.LINK,le.LISTING,le.MAIN,le.MARQUEE,le.MENU,le.META,le.NAV,le.NOEMBED,le.NOFRAMES,le.NOSCRIPT,le.OBJECT,le.OL,le.P,le.PARAM,le.PLAINTEXT,le.PRE,le.SCRIPT,le.SECTION,le.SELECT,le.SOURCE,le.STYLE,le.SUMMARY,le.TABLE,le.TBODY,le.TD,le.TEMPLATE,le.TEXTAREA,le.TFOOT,le.TH,le.THEAD,le.TITLE,le.TR,le.TRACK,le.UL,le.WBR,le.XMP]),[ae.MATHML]:new Set([le.MI,le.MO,le.MN,le.MS,le.MTEXT,le.ANNOTATION_XML]),[ae.SVG]:new Set([le.TITLE,le.FOREIGN_OBJECT,le.DESC]),[ae.XLINK]:new Set,[ae.XML]:new Set,[ae.XMLNS]:new Set},hl=new Set([le.H1,le.H2,le.H3,le.H4,le.H5,le.H6]);X.STYLE,X.SCRIPT,X.XMP,X.IFRAME,X.NOEMBED,X.NOFRAMES,X.PLAINTEXT;var M;(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"})(M||(M={}));const zt={DATA:M.DATA,RCDATA:M.RCDATA,RAWTEXT:M.RAWTEXT,SCRIPT_DATA:M.SCRIPT_DATA,PLAINTEXT:M.PLAINTEXT,CDATA_SECTION:M.CDATA_SECTION};function m8(e){return e>=R.DIGIT_0&&e<=R.DIGIT_9}function ya(e){return e>=R.LATIN_CAPITAL_A&&e<=R.LATIN_CAPITAL_Z}function g8(e){return e>=R.LATIN_SMALL_A&&e<=R.LATIN_SMALL_Z}function zn(e){return g8(e)||ya(e)}function _h(e){return zn(e)||m8(e)}function Ss(e){return e+32}function s1(e){return e===R.SPACE||e===R.LINE_FEED||e===R.TABULATION||e===R.FORM_FEED}function Ah(e){return s1(e)||e===R.SOLIDUS||e===R.GREATER_THAN_SIGN}function b8(e){return e===R.NULL?Q.nullCharacterReference:e>1114111?Q.characterReferenceOutsideUnicodeRange:r1(e)?Q.surrogateCharacterReference:i1(e)?Q.noncharacterCharacterReference:n1(e)||e===R.CARRIAGE_RETURN?Q.controlCharacterReference:null}class x8{constructor(t,r){this.options=t,this.handler=r,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=M.DATA,this.returnState=M.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new n8(r),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new h8(i8,(n,i)=>{this.preprocessor.pos=this.entityStartPos+i-1,this._flushCodePointConsumedAsCharacterReference(n)},r.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(Q.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:n=>{this._err(Q.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+n)},validateNumericCharacterReference:n=>{const i=b8(n);i&&this._err(i,1)}}:void 0)}_err(t,r=0){var n,i;(i=(n=this.handler).onParseError)===null||i===void 0||i.call(n,this.preprocessor.getError(t,r))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,r,n){this.active=!0,this.preprocessor.write(t,r),this._runParsingLoop(),this.paused||n?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),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(t){this.consumedAfterSnapshot+=t;for(let r=0;r<t;r++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,r){return this.preprocessor.startsWith(t,r)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:Ze.START_TAG,tagName:"",tagID:p.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Ze.END_TAG,tagName:"",tagID:p.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:Ze.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:Ze.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,r){this.currentCharacterToken={type:t,chars:r,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,r;const n=this.currentToken;if(a1(n,this.currentAttr.name)===null){if(n.attrs.push(this.currentAttr),n.location&&this.currentLocation){const i=(t=(r=n.location).attrs)!==null&&t!==void 0?t:r.attrs=Object.create(null);i[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(Q.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=ta(t.tagName),t.type===Ze.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(Q.endTagWithAttributes),t.selfClosing&&this._err(Q.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case Ze.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Ze.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Ze.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:Ze.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,r){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=r;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,r)}_emitCodePoint(t){const r=s1(t)?Ze.WHITESPACE_CHARACTER:t===R.NULL?Ze.NULL_CHARACTER:Ze.CHARACTER;this._appendCharToCurrentCharacterToken(r,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Ze.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=M.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Sn.Attribute:Sn.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===M.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===M.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===M.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case M.DATA:{this._stateData(t);break}case M.RCDATA:{this._stateRcdata(t);break}case M.RAWTEXT:{this._stateRawtext(t);break}case M.SCRIPT_DATA:{this._stateScriptData(t);break}case M.PLAINTEXT:{this._statePlaintext(t);break}case M.TAG_OPEN:{this._stateTagOpen(t);break}case M.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case M.TAG_NAME:{this._stateTagName(t);break}case M.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case M.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case M.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case M.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case M.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case M.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case M.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case M.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case M.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case M.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case M.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case M.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case M.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case M.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case M.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case M.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case M.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case M.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case M.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case M.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case M.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case M.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case M.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case M.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case M.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case M.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case M.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case M.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case M.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case M.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case M.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case M.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case M.BOGUS_COMMENT:{this._stateBogusComment(t);break}case M.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case M.COMMENT_START:{this._stateCommentStart(t);break}case M.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case M.COMMENT:{this._stateComment(t);break}case M.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case M.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case M.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case M.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case M.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case M.COMMENT_END:{this._stateCommentEnd(t);break}case M.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case M.DOCTYPE:{this._stateDoctype(t);break}case M.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case M.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case M.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case M.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case M.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case M.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case M.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case M.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case M.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case M.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case M.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case M.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case M.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case M.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case M.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case M.CDATA_SECTION:{this._stateCdataSection(t);break}case M.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case M.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case M.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case M.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case R.LESS_THAN_SIGN:{this.state=M.TAG_OPEN;break}case R.AMPERSAND:{this._startCharacterReference();break}case R.NULL:{this._err(Q.unexpectedNullCharacter),this._emitCodePoint(t);break}case R.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case R.AMPERSAND:{this._startCharacterReference();break}case R.LESS_THAN_SIGN:{this.state=M.RCDATA_LESS_THAN_SIGN;break}case R.NULL:{this._err(Q.unexpectedNullCharacter),this._emitChars(St);break}case R.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case R.LESS_THAN_SIGN:{this.state=M.RAWTEXT_LESS_THAN_SIGN;break}case R.NULL:{this._err(Q.unexpectedNullCharacter),this._emitChars(St);break}case R.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case R.LESS_THAN_SIGN:{this.state=M.SCRIPT_DATA_LESS_THAN_SIGN;break}case R.NULL:{this._err(Q.unexpectedNullCharacter),this._emitChars(St);break}case R.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case R.NULL:{this._err(Q.unexpectedNullCharacter),this._emitChars(St);break}case R.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(zn(t))this._createStartTagToken(),this.state=M.TAG_NAME,this._stateTagName(t);else switch(t){case R.EXCLAMATION_MARK:{this.state=M.MARKUP_DECLARATION_OPEN;break}case R.SOLIDUS:{this.state=M.END_TAG_OPEN;break}case R.QUESTION_MARK:{this._err(Q.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=M.BOGUS_COMMENT,this._stateBogusComment(t);break}case R.EOF:{this._err(Q.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(Q.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=M.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(zn(t))this._createEndTagToken(),this.state=M.TAG_NAME,this._stateTagName(t);else switch(t){case R.GREATER_THAN_SIGN:{this._err(Q.missingEndTagName),this.state=M.DATA;break}case R.EOF:{this._err(Q.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(Q.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=M.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const r=this.currentToken;switch(t){case R.SPACE:case R.LINE_FEED:case R.TABULATION:case R.FORM_FEED:{this.state=M.BEFORE_ATTRIBUTE_NAME;break}case R.SOLIDUS:{this.state=M.SELF_CLOSING_START_TAG;break}case R.GREATER_THAN_SIGN:{this.state=M.DATA,this.emitCurrentTagToken();break}case R.NULL:{this._err(Q.unexpectedNullCharacter),r.tagName+=St;break}case R.EOF:{this._err(Q.eofInTag),this._emitEOFToken();break}default:r.tagName+=String.fromCodePoint(ya(t)?Ss(t):t)}}_stateRcdataLessThanSign(t){t===R.SOLIDUS?this.state=M.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=M.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){zn(t)?(this.state=M.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=M.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const r=this.currentToken;switch(r.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case R.SPACE:case R.LINE_FEED:case R.TABULATION:case R.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=M.BEFORE_ATTRIBUTE_NAME,!1;case R.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=M.SELF_CLOSING_START_TAG,!1;case R.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=M.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=M.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===R.SOLIDUS?this.state=M.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=M.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){zn(t)?(this.state=M.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=M.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=M.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case R.SOLIDUS:{this.state=M.SCRIPT_DATA_END_TAG_OPEN;break}case R.EXCLAMATION_MARK:{this.state=M.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=M.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){zn(t)?(this.state=M.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=M.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=M.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===R.HYPHEN_MINUS?(this.state=M.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=M.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===R.HYPHEN_MINUS?(this.state=M.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=M.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case R.HYPHEN_MINUS:{this.state=M.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case R.LESS_THAN_SIGN:{this.state=M.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case R.NULL:{this._err(Q.unexpectedNullCharacter),this._emitChars(St);break}case R.EOF:{this._err(Q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case R.HYPHEN_MINUS:{this.state=M.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case R.LESS_THAN_SIGN:{this.state=M.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case R.NULL:{this._err(Q.unexpectedNullCharacter),this.state=M.SCRIPT_DATA_ESCAPED,this._emitChars(St);break}case R.EOF:{this._err(Q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=M.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case R.HYPHEN_MINUS:{this._emitChars("-");break}case R.LESS_THAN_SIGN:{this.state=M.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case R.GREATER_THAN_SIGN:{this.state=M.SCRIPT_DATA,this._emitChars(">");break}case R.NULL:{this._err(Q.unexpectedNullCharacter),this.state=M.SCRIPT_DATA_ESCAPED,this._emitChars(St);break}case R.EOF:{this._err(Q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=M.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===R.SOLIDUS?this.state=M.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:zn(t)?(this._emitChars("<"),this.state=M.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=M.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){zn(t)?(this.state=M.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=M.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=M.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(Ar.SCRIPT,!1)&&Ah(this.preprocessor.peek(Ar.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<Ar.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=M.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=M.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case R.HYPHEN_MINUS:{this.state=M.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case R.LESS_THAN_SIGN:{this.state=M.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case R.NULL:{this._err(Q.unexpectedNullCharacter),this._emitChars(St);break}case R.EOF:{this._err(Q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case R.HYPHEN_MINUS:{this.state=M.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case R.LESS_THAN_SIGN:{this.state=M.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case R.NULL:{this._err(Q.unexpectedNullCharacter),this.state=M.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(St);break}case R.EOF:{this._err(Q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=M.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case R.HYPHEN_MINUS:{this._emitChars("-");break}case R.LESS_THAN_SIGN:{this.state=M.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case R.GREATER_THAN_SIGN:{this.state=M.SCRIPT_DATA,this._emitChars(">");break}case R.NULL:{this._err(Q.unexpectedNullCharacter),this.state=M.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(St);break}case R.EOF:{this._err(Q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=M.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===R.SOLIDUS?(this.state=M.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=M.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Ar.SCRIPT,!1)&&Ah(this.preprocessor.peek(Ar.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<Ar.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=M.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=M.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case R.SPACE:case R.LINE_FEED:case R.TABULATION:case R.FORM_FEED:break;case R.SOLIDUS:case R.GREATER_THAN_SIGN:case R.EOF:{this.state=M.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case R.EQUALS_SIGN:{this._err(Q.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=M.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=M.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case R.SPACE:case R.LINE_FEED:case R.TABULATION:case R.FORM_FEED:case R.SOLIDUS:case R.GREATER_THAN_SIGN:case R.EOF:{this._leaveAttrName(),this.state=M.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case R.EQUALS_SIGN:{this._leaveAttrName(),this.state=M.BEFORE_ATTRIBUTE_VALUE;break}case R.QUOTATION_MARK:case R.APOSTROPHE:case R.LESS_THAN_SIGN:{this._err(Q.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case R.NULL:{this._err(Q.unexpectedNullCharacter),this.currentAttr.name+=St;break}default:this.currentAttr.name+=String.fromCodePoint(ya(t)?Ss(t):t)}}_stateAfterAttributeName(t){switch(t){case R.SPACE:case R.LINE_FEED:case R.TABULATION:case R.FORM_FEED:break;case R.SOLIDUS:{this.state=M.SELF_CLOSING_START_TAG;break}case R.EQUALS_SIGN:{this.state=M.BEFORE_ATTRIBUTE_VALUE;break}case R.GREATER_THAN_SIGN:{this.state=M.DATA,this.emitCurrentTagToken();break}case R.EOF:{this._err(Q.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=M.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case R.SPACE:case R.LINE_FEED:case R.TABULATION:case R.FORM_FEED:break;case R.QUOTATION_MARK:{this.state=M.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case R.APOSTROPHE:{this.state=M.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case R.GREATER_THAN_SIGN:{this._err(Q.missingAttributeValue),this.state=M.DATA,this.emitCurrentTagToken();break}default:this.state=M.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case R.QUOTATION_MARK:{this.state=M.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case R.AMPERSAND:{this._startCharacterReference();break}case R.NULL:{this._err(Q.unexpectedNullCharacter),this.currentAttr.value+=St;break}case R.EOF:{this._err(Q.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case R.APOSTROPHE:{this.state=M.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case R.AMPERSAND:{this._startCharacterReference();break}case R.NULL:{this._err(Q.unexpectedNullCharacter),this.currentAttr.value+=St;break}case R.EOF:{this._err(Q.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case R.SPACE:case R.LINE_FEED:case R.TABULATION:case R.FORM_FEED:{this._leaveAttrValue(),this.state=M.BEFORE_ATTRIBUTE_NAME;break}case R.AMPERSAND:{this._startCharacterReference();break}case R.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=M.DATA,this.emitCurrentTagToken();break}case R.NULL:{this._err(Q.unexpectedNullCharacter),this.currentAttr.value+=St;break}case R.QUOTATION_MARK:case R.APOSTROPHE:case R.LESS_THAN_SIGN:case R.EQUALS_SIGN:case R.GRAVE_ACCENT:{this._err(Q.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case R.EOF:{this._err(Q.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case R.SPACE:case R.LINE_FEED:case R.TABULATION:case R.FORM_FEED:{this._leaveAttrValue(),this.state=M.BEFORE_ATTRIBUTE_NAME;break}case R.SOLIDUS:{this._leaveAttrValue(),this.state=M.SELF_CLOSING_START_TAG;break}case R.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=M.DATA,this.emitCurrentTagToken();break}case R.EOF:{this._err(Q.eofInTag),this._emitEOFToken();break}default:this._err(Q.missingWhitespaceBetweenAttributes),this.state=M.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case R.GREATER_THAN_SIGN:{const r=this.currentToken;r.selfClosing=!0,this.state=M.DATA,this.emitCurrentTagToken();break}case R.EOF:{this._err(Q.eofInTag),this._emitEOFToken();break}default:this._err(Q.unexpectedSolidusInTag),this.state=M.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const r=this.currentToken;switch(t){case R.GREATER_THAN_SIGN:{this.state=M.DATA,this.emitCurrentComment(r);break}case R.EOF:{this.emitCurrentComment(r),this._emitEOFToken();break}case R.NULL:{this._err(Q.unexpectedNullCharacter),r.data+=St;break}default:r.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(Ar.DASH_DASH,!0)?(this._createCommentToken(Ar.DASH_DASH.length+1),this.state=M.COMMENT_START):this._consumeSequenceIfMatch(Ar.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Ar.DOCTYPE.length+1),this.state=M.DOCTYPE):this._consumeSequenceIfMatch(Ar.CDATA_START,!0)?this.inForeignNode?this.state=M.CDATA_SECTION:(this._err(Q.cdataInHtmlContent),this._createCommentToken(Ar.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=M.BOGUS_COMMENT):this._ensureHibernation()||(this._err(Q.incorrectlyOpenedComment),this._createCommentToken(2),this.state=M.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case R.HYPHEN_MINUS:{this.state=M.COMMENT_START_DASH;break}case R.GREATER_THAN_SIGN:{this._err(Q.abruptClosingOfEmptyComment),this.state=M.DATA;const r=this.currentToken;this.emitCurrentComment(r);break}default:this.state=M.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const r=this.currentToken;switch(t){case R.HYPHEN_MINUS:{this.state=M.COMMENT_END;break}case R.GREATER_THAN_SIGN:{this._err(Q.abruptClosingOfEmptyComment),this.state=M.DATA,this.emitCurrentComment(r);break}case R.EOF:{this._err(Q.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=M.COMMENT,this._stateComment(t)}}_stateComment(t){const r=this.currentToken;switch(t){case R.HYPHEN_MINUS:{this.state=M.COMMENT_END_DASH;break}case R.LESS_THAN_SIGN:{r.data+="<",this.state=M.COMMENT_LESS_THAN_SIGN;break}case R.NULL:{this._err(Q.unexpectedNullCharacter),r.data+=St;break}case R.EOF:{this._err(Q.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const r=this.currentToken;switch(t){case R.EXCLAMATION_MARK:{r.data+="!",this.state=M.COMMENT_LESS_THAN_SIGN_BANG;break}case R.LESS_THAN_SIGN:{r.data+="<";break}default:this.state=M.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===R.HYPHEN_MINUS?this.state=M.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=M.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===R.HYPHEN_MINUS?this.state=M.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=M.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==R.GREATER_THAN_SIGN&&t!==R.EOF&&this._err(Q.nestedComment),this.state=M.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const r=this.currentToken;switch(t){case R.HYPHEN_MINUS:{this.state=M.COMMENT_END;break}case R.EOF:{this._err(Q.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=M.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const r=this.currentToken;switch(t){case R.GREATER_THAN_SIGN:{this.state=M.DATA,this.emitCurrentComment(r);break}case R.EXCLAMATION_MARK:{this.state=M.COMMENT_END_BANG;break}case R.HYPHEN_MINUS:{r.data+="-";break}case R.EOF:{this._err(Q.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--",this.state=M.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const r=this.currentToken;switch(t){case R.HYPHEN_MINUS:{r.data+="--!",this.state=M.COMMENT_END_DASH;break}case R.GREATER_THAN_SIGN:{this._err(Q.incorrectlyClosedComment),this.state=M.DATA,this.emitCurrentComment(r);break}case R.EOF:{this._err(Q.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--!",this.state=M.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case R.SPACE:case R.LINE_FEED:case R.TABULATION:case R.FORM_FEED:{this.state=M.BEFORE_DOCTYPE_NAME;break}case R.GREATER_THAN_SIGN:{this.state=M.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case R.EOF:{this._err(Q.eofInDoctype),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(Q.missingWhitespaceBeforeDoctypeName),this.state=M.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(ya(t))this._createDoctypeToken(String.fromCharCode(Ss(t))),this.state=M.DOCTYPE_NAME;else switch(t){case R.SPACE:case R.LINE_FEED:case R.TABULATION:case R.FORM_FEED:break;case R.NULL:{this._err(Q.unexpectedNullCharacter),this._createDoctypeToken(St),this.state=M.DOCTYPE_NAME;break}case R.GREATER_THAN_SIGN:{this._err(Q.missingDoctypeName),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=M.DATA;break}case R.EOF:{this._err(Q.eofInDoctype),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=M.DOCTYPE_NAME}}_stateDoctypeName(t){const r=this.currentToken;switch(t){case R.SPACE:case R.LINE_FEED:case R.TABULATION:case R.FORM_FEED:{this.state=M.AFTER_DOCTYPE_NAME;break}case R.GREATER_THAN_SIGN:{this.state=M.DATA,this.emitCurrentDoctype(r);break}case R.NULL:{this._err(Q.unexpectedNullCharacter),r.name+=St;break}case R.EOF:{this._err(Q.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.name+=String.fromCodePoint(ya(t)?Ss(t):t)}}_stateAfterDoctypeName(t){const r=this.currentToken;switch(t){case R.SPACE:case R.LINE_FEED:case R.TABULATION:case R.FORM_FEED:break;case R.GREATER_THAN_SIGN:{this.state=M.DATA,this.emitCurrentDoctype(r);break}case R.EOF:{this._err(Q.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Ar.PUBLIC,!1)?this.state=M.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Ar.SYSTEM,!1)?this.state=M.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(Q.invalidCharacterSequenceAfterDoctypeName),r.forceQuirks=!0,this.state=M.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const r=this.currentToken;switch(t){case R.SPACE:case R.LINE_FEED:case R.TABULATION:case R.FORM_FEED:{this.state=M.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case R.QUOTATION_MARK:{this._err(Q.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=M.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case R.APOSTROPHE:{this._err(Q.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=M.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case R.GREATER_THAN_SIGN:{this._err(Q.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=M.DATA,this.emitCurrentDoctype(r);break}case R.EOF:{this._err(Q.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(Q.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=M.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const r=this.currentToken;switch(t){case R.SPACE:case R.LINE_FEED:case R.TABULATION:case R.FORM_FEED:break;case R.QUOTATION_MARK:{r.publicId="",this.state=M.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case R.APOSTROPHE:{r.publicId="",this.state=M.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case R.GREATER_THAN_SIGN:{this._err(Q.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=M.DATA,this.emitCurrentDoctype(r);break}case R.EOF:{this._err(Q.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(Q.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=M.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const r=this.currentToken;switch(t){case R.QUOTATION_MARK:{this.state=M.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case R.NULL:{this._err(Q.unexpectedNullCharacter),r.publicId+=St;break}case R.GREATER_THAN_SIGN:{this._err(Q.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=M.DATA;break}case R.EOF:{this._err(Q.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const r=this.currentToken;switch(t){case R.APOSTROPHE:{this.state=M.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case R.NULL:{this._err(Q.unexpectedNullCharacter),r.publicId+=St;break}case R.GREATER_THAN_SIGN:{this._err(Q.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=M.DATA;break}case R.EOF:{this._err(Q.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const r=this.currentToken;switch(t){case R.SPACE:case R.LINE_FEED:case R.TABULATION:case R.FORM_FEED:{this.state=M.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case R.GREATER_THAN_SIGN:{this.state=M.DATA,this.emitCurrentDoctype(r);break}case R.QUOTATION_MARK:{this._err(Q.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=M.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case R.APOSTROPHE:{this._err(Q.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=M.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case R.EOF:{this._err(Q.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(Q.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=M.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const r=this.currentToken;switch(t){case R.SPACE:case R.LINE_FEED:case R.TABULATION:case R.FORM_FEED:break;case R.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=M.DATA;break}case R.QUOTATION_MARK:{r.systemId="",this.state=M.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case R.APOSTROPHE:{r.systemId="",this.state=M.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case R.EOF:{this._err(Q.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(Q.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=M.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const r=this.currentToken;switch(t){case R.SPACE:case R.LINE_FEED:case R.TABULATION:case R.FORM_FEED:{this.state=M.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case R.QUOTATION_MARK:{this._err(Q.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=M.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case R.APOSTROPHE:{this._err(Q.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=M.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case R.GREATER_THAN_SIGN:{this._err(Q.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=M.DATA,this.emitCurrentDoctype(r);break}case R.EOF:{this._err(Q.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(Q.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=M.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const r=this.currentToken;switch(t){case R.SPACE:case R.LINE_FEED:case R.TABULATION:case R.FORM_FEED:break;case R.QUOTATION_MARK:{r.systemId="",this.state=M.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case R.APOSTROPHE:{r.systemId="",this.state=M.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case R.GREATER_THAN_SIGN:{this._err(Q.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=M.DATA,this.emitCurrentDoctype(r);break}case R.EOF:{this._err(Q.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(Q.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=M.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const r=this.currentToken;switch(t){case R.QUOTATION_MARK:{this.state=M.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case R.NULL:{this._err(Q.unexpectedNullCharacter),r.systemId+=St;break}case R.GREATER_THAN_SIGN:{this._err(Q.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=M.DATA;break}case R.EOF:{this._err(Q.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const r=this.currentToken;switch(t){case R.APOSTROPHE:{this.state=M.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case R.NULL:{this._err(Q.unexpectedNullCharacter),r.systemId+=St;break}case R.GREATER_THAN_SIGN:{this._err(Q.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=M.DATA;break}case R.EOF:{this._err(Q.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const r=this.currentToken;switch(t){case R.SPACE:case R.LINE_FEED:case R.TABULATION:case R.FORM_FEED:break;case R.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=M.DATA;break}case R.EOF:{this._err(Q.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(Q.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=M.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const r=this.currentToken;switch(t){case R.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=M.DATA;break}case R.NULL:{this._err(Q.unexpectedNullCharacter);break}case R.EOF:{this.emitCurrentDoctype(r),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case R.RIGHT_SQUARE_BRACKET:{this.state=M.CDATA_SECTION_BRACKET;break}case R.EOF:{this._err(Q.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===R.RIGHT_SQUARE_BRACKET?this.state=M.CDATA_SECTION_END:(this._emitChars("]"),this.state=M.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case R.GREATER_THAN_SIGN:{this.state=M.DATA;break}case R.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=M.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(R.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&_h(this.preprocessor.peek(1))?M.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){_h(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===R.SEMICOLON&&this._err(Q.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const o1=new Set([p.DD,p.DT,p.LI,p.OPTGROUP,p.OPTION,p.P,p.RB,p.RP,p.RT,p.RTC]),Sh=new Set([...o1,p.CAPTION,p.COLGROUP,p.TBODY,p.TD,p.TFOOT,p.TH,p.THEAD,p.TR]),js=new Set([p.APPLET,p.CAPTION,p.HTML,p.MARQUEE,p.OBJECT,p.TABLE,p.TD,p.TEMPLATE,p.TH]),E8=new Set([...js,p.OL,p.UL]),y8=new Set([...js,p.BUTTON]),wh=new Set([p.ANNOTATION_XML,p.MI,p.MN,p.MO,p.MS,p.MTEXT]),kh=new Set([p.DESC,p.FOREIGN_OBJECT,p.TITLE]),v8=new Set([p.TR,p.TEMPLATE,p.HTML]),T8=new Set([p.TBODY,p.TFOOT,p.THEAD,p.TEMPLATE,p.HTML]),_8=new Set([p.TABLE,p.TEMPLATE,p.HTML]),A8=new Set([p.TD,p.TH]);class S8{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,r,n){this.treeAdapter=r,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=p.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===p.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===ae.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,r){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=r,this.currentTagId=r,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,r,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,r){const n=this._indexOf(t);this.items[n]=r,n===this.stackTop&&(this.current=r)}insertAfter(t,r,n){const i=this._indexOf(t)+1;this.items.splice(i,0,r),this.tagIDs.splice(i,0,n),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(t){let r=this.stackTop+1;do r=this.tagIDs.lastIndexOf(t,r-1);while(r>0&&this.treeAdapter.getNamespaceURI(this.items[r])!==ae.HTML);this.shortenToLength(Math.max(r,0))}shortenToLength(t){for(;this.stackTop>=t;){const r=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(r,this.stackTop<t)}}popUntilElementPopped(t){const r=this._indexOf(t);this.shortenToLength(Math.max(r,0))}popUntilPopped(t,r){const n=this._indexOfTagNames(t,r);this.shortenToLength(Math.max(n,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(hl,ae.HTML)}popUntilTableCellPopped(){this.popUntilPopped(A8,ae.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,r){for(let n=this.stackTop;n>=0;n--)if(t.has(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===r)return n;return-1}clearBackTo(t,r){const n=this._indexOfTagNames(t,r);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(_8,ae.HTML)}clearBackToTableBodyContext(){this.clearBackTo(T8,ae.HTML)}clearBackToTableRowContext(){this.clearBackTo(v8,ae.HTML)}remove(t){const r=this._indexOf(t);r>=0&&(r===this.stackTop?this.pop():(this.items.splice(r,1),this.tagIDs.splice(r,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===p.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const r=this._indexOf(t)-1;return r>=0?this.items[r]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===p.HTML}hasInDynamicScope(t,r){for(let n=this.stackTop;n>=0;n--){const i=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case ae.HTML:{if(i===t)return!0;if(r.has(i))return!1;break}case ae.SVG:{if(kh.has(i))return!1;break}case ae.MATHML:{if(wh.has(i))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,js)}hasInListItemScope(t){return this.hasInDynamicScope(t,E8)}hasInButtonScope(t){return this.hasInDynamicScope(t,y8)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const r=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case ae.HTML:{if(hl.has(r))return!0;if(js.has(r))return!1;break}case ae.SVG:{if(kh.has(r))return!1;break}case ae.MATHML:{if(wh.has(r))return!1;break}}}return!0}hasInTableScope(t){for(let r=this.stackTop;r>=0;r--)if(this.treeAdapter.getNamespaceURI(this.items[r])===ae.HTML)switch(this.tagIDs[r]){case t:return!0;case p.TABLE:case p.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===ae.HTML)switch(this.tagIDs[t]){case p.TBODY:case p.THEAD:case p.TFOOT:return!0;case p.TABLE:case p.HTML:return!1}return!0}hasInSelectScope(t){for(let r=this.stackTop;r>=0;r--)if(this.treeAdapter.getNamespaceURI(this.items[r])===ae.HTML)switch(this.tagIDs[r]){case t:return!0;case p.OPTION:case p.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&o1.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&Sh.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&Sh.has(this.currentTagId);)this.pop()}}const _u=3;var cn;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(cn||(cn={}));const Ch={type:cn.Marker};class w8{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,r){const n=[],i=r.length,a=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let u=0;u<this.entries.length;u++){const l=this.entries[u];if(l.type===cn.Marker)break;const{element:c}=l;if(this.treeAdapter.getTagName(c)===a&&this.treeAdapter.getNamespaceURI(c)===s){const f=this.treeAdapter.getAttrList(c);f.length===i&&n.push({idx:u,attrs:f})}}return n}_ensureNoahArkCondition(t){if(this.entries.length<_u)return;const r=this.treeAdapter.getAttrList(t),n=this._getNoahArkConditionCandidates(t,r);if(n.length<_u)return;const i=new Map(r.map(s=>[s.name,s.value]));let a=0;for(let s=0;s<n.length;s++){const u=n[s];u.attrs.every(l=>i.get(l.name)===l.value)&&(a+=1,a>=_u&&this.entries.splice(u.idx,1))}}insertMarker(){this.entries.unshift(Ch)}pushElement(t,r){this._ensureNoahArkCondition(t),this.entries.unshift({type:cn.Element,element:t,token:r})}insertElementAfterBookmark(t,r){const n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:cn.Element,element:t,token:r})}removeEntry(t){const r=this.entries.indexOf(t);r!==-1&&this.entries.splice(r,1)}clearToLastMarker(){const t=this.entries.indexOf(Ch);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const r=this.entries.find(n=>n.type===cn.Marker||this.treeAdapter.getTagName(n.element)===t);return r&&r.type===cn.Element?r:null}getElementEntry(t){return this.entries.find(r=>r.type===cn.Element&&r.element===t)}}const Hn={createDocument(){return{nodeName:"#document",mode:Yr.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,r){return{nodeName:e,tagName:e,attrs:r,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,r){const n=e.childNodes.indexOf(r);e.childNodes.splice(n,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,r,n){const i=e.childNodes.find(a=>a.nodeName==="#documentType");if(i)i.name=t,i.publicId=r,i.systemId=n;else{const a={nodeName:"#documentType",name:t,publicId:r,systemId:n,parentNode:null};Hn.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const r=e.childNodes[e.childNodes.length-1];if(Hn.isTextNode(r)){r.value+=t;return}}Hn.appendChild(e,Hn.createTextNode(t))},insertTextBefore(e,t,r){const n=e.childNodes[e.childNodes.indexOf(r)-1];n&&Hn.isTextNode(n)?n.value+=t:Hn.insertBefore(e,Hn.createTextNode(t),r)},adoptAttributes(e,t){const r=new Set(e.attrs.map(n=>n.name));for(let n=0;n<t.length;n++)r.has(t[n].name)||e.attrs.push(t[n])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},u1="html",k8="about:legacy-compat",C8="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",l1=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],N8=[...l1,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],I8=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),c1=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],O8=[...c1,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Nh(e,t){return t.some(r=>e.startsWith(r))}function R8(e){return e.name===u1&&e.publicId===null&&(e.systemId===null||e.systemId===k8)}function L8(e){if(e.name!==u1)return Yr.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===C8)return Yr.QUIRKS;let{publicId:r}=e;if(r!==null){if(r=r.toLowerCase(),I8.has(r))return Yr.QUIRKS;let n=t===null?N8:l1;if(Nh(r,n))return Yr.QUIRKS;if(n=t===null?c1:O8,Nh(r,n))return Yr.LIMITED_QUIRKS}return Yr.NO_QUIRKS}const Ih={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},M8="definitionurl",D8="definitionURL",P8=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"].map(e=>[e.toLowerCase(),e])),B8=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:ae.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:ae.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:ae.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:ae.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:ae.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:ae.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:ae.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:ae.XML}],["xml:space",{prefix:"xml",name:"space",namespace:ae.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:ae.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:ae.XMLNS}]]),F8=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"].map(e=>[e.toLowerCase(),e])),U8=new Set([p.B,p.BIG,p.BLOCKQUOTE,p.BODY,p.BR,p.CENTER,p.CODE,p.DD,p.DIV,p.DL,p.DT,p.EM,p.EMBED,p.H1,p.H2,p.H3,p.H4,p.H5,p.H6,p.HEAD,p.HR,p.I,p.IMG,p.LI,p.LISTING,p.MENU,p.META,p.NOBR,p.OL,p.P,p.PRE,p.RUBY,p.S,p.SMALL,p.SPAN,p.STRONG,p.STRIKE,p.SUB,p.SUP,p.TABLE,p.TT,p.U,p.UL,p.VAR]);function z8(e){const t=e.tagID;return t===p.FONT&&e.attrs.some(({name:n})=>n===li.COLOR||n===li.SIZE||n===li.FACE)||U8.has(t)}function h1(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===M8){e.attrs[t].name=D8;break}}function f1(e){for(let t=0;t<e.attrs.length;t++){const r=P8.get(e.attrs[t].name);r!=null&&(e.attrs[t].name=r)}}function s0(e){for(let t=0;t<e.attrs.length;t++){const r=B8.get(e.attrs[t].name);r&&(e.attrs[t].prefix=r.prefix,e.attrs[t].name=r.name,e.attrs[t].namespace=r.namespace)}}function H8(e){const t=F8.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=ta(e.tagName))}function V8(e,t){return t===ae.MATHML&&(e===p.MI||e===p.MO||e===p.MN||e===p.MS||e===p.MTEXT)}function q8(e,t,r){if(t===ae.MATHML&&e===p.ANNOTATION_XML){for(let n=0;n<r.length;n++)if(r[n].name===li.ENCODING){const i=r[n].value.toLowerCase();return i===Ih.TEXT_HTML||i===Ih.APPLICATION_XML}}return t===ae.SVG&&(e===p.FOREIGN_OBJECT||e===p.DESC||e===p.TITLE)}function G8(e,t,r,n){return(!n||n===ae.HTML)&&q8(e,t,r)||(!n||n===ae.MATHML)&&V8(e,t)}const Y8="hidden",W8=8,$8=3;var z;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(z||(z={}));const K8={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},d1=new Set([p.TABLE,p.TBODY,p.TFOOT,p.THEAD,p.TR]),Oh={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Hn,onParseError:null};class Rh{constructor(t,r,n=null,i=null){this.fragmentContext=n,this.scriptHandler=i,this.currentToken=null,this.stopped=!1,this.insertionMode=z.INITIAL,this.originalInsertionMode=z.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...Oh,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=r??this.treeAdapter.createDocument(),this.tokenizer=new x8(this.options,this),this.activeFormattingElements=new w8(this.treeAdapter),this.fragmentContextID=n?ta(this.treeAdapter.getTagName(n)):p.UNKNOWN,this._setContextModes(n??this.document,this.fragmentContextID),this.openElements=new S8(this.document,this.treeAdapter,this)}static parse(t,r){const n=new this(r);return n.tokenizer.write(t,!0),n.document}static getFragmentParser(t,r){const n={...Oh,...r};t??(t=n.treeAdapter.createElement(X.TEMPLATE,ae.HTML,[]));const i=n.treeAdapter.createElement("documentmock",ae.HTML,[]),a=new this(n,i,t);return a.fragmentContextID===p.TEMPLATE&&a.tmplInsertionModeStack.unshift(z.IN_TEMPLATE),a._initTokenizerForFragmentParsing(),a._insertFakeRootElement(),a._resetInsertionMode(),a._findFormInFragmentContext(),a}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),r=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,r),r}_err(t,r,n){var i;if(!this.onParseError)return;const a=(i=t.location)!==null&&i!==void 0?i:K8,s={code:r,startLine:a.startLine,startCol:a.startCol,startOffset:a.startOffset,endLine:n?a.startLine:a.endLine,endCol:n?a.startCol:a.endCol,endOffset:n?a.startOffset:a.endOffset};this.onParseError(s)}onItemPush(t,r,n){var i,a;(a=(i=this.treeAdapter).onItemPush)===null||a===void 0||a.call(i,t),n&&this.openElements.stackTop>0&&this._setContextModes(t,r)}onItemPop(t,r){var n,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(n=this.treeAdapter).onItemPop)===null||i===void 0||i.call(n,t,this.openElements.current),r){let a,s;this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,s=this.fragmentContextID):{current:a,currentTagId:s}=this.openElements,this._setContextModes(a,s)}}_setContextModes(t,r){const n=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===ae.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&t!==void 0&&r!==void 0&&!this._isIntegrationPoint(r,t)}_switchToTextParsing(t,r){this._insertElement(t,ae.HTML),this.tokenizer.state=r,this.originalInsertionMode=this.insertionMode,this.insertionMode=z.TEXT}switchToPlaintextParsing(){this.insertionMode=z.TEXT,this.originalInsertionMode=z.IN_BODY,this.tokenizer.state=zt.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===X.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==ae.HTML))switch(this.fragmentContextID){case p.TITLE:case p.TEXTAREA:{this.tokenizer.state=zt.RCDATA;break}case p.STYLE:case p.XMP:case p.IFRAME:case p.NOEMBED:case p.NOFRAMES:case p.NOSCRIPT:{this.tokenizer.state=zt.RAWTEXT;break}case p.SCRIPT:{this.tokenizer.state=zt.SCRIPT_DATA;break}case p.PLAINTEXT:{this.tokenizer.state=zt.PLAINTEXT;break}}}_setDocumentType(t){const r=t.name||"",n=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,r,n,i),t.location){const s=this.treeAdapter.getChildNodes(this.document).find(u=>this.treeAdapter.isDocumentTypeNode(u));s&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}}_attachElementToTree(t,r){if(this.options.sourceCodeLocationInfo){const n=r&&{...r,startTag:r};this.treeAdapter.setNodeSourceCodeLocation(t,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const n=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(n??this.document,t)}}_appendElement(t,r){const n=this.treeAdapter.createElement(t.tagName,r,t.attrs);this._attachElementToTree(n,t.location)}_insertElement(t,r){const n=this.treeAdapter.createElement(t.tagName,r,t.attrs);this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID)}_insertFakeElement(t,r){const n=this.treeAdapter.createElement(t,ae.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,r)}_insertTemplate(t){const r=this.treeAdapter.createElement(t.tagName,ae.HTML,t.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(r,n),this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(X.HTML,ae.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,p.HTML)}_appendCommentNode(t,r){const n=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(r,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,t.location)}_insertCharacters(t){let r,n;if(this._shouldFosterParentOnInsertion()?({parent:r,beforeElement:n}=this._findFosterParentingLocation(),n?this.treeAdapter.insertTextBefore(r,t.chars,n):this.treeAdapter.insertText(r,t.chars)):(r=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(r,t.chars)),!t.location)return;const i=this.treeAdapter.getChildNodes(r),a=n?i.lastIndexOf(n):i.length,s=i[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:l,endCol:c,endOffset:f}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:l,endCol:c,endOffset:f})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_adoptNodes(t,r){for(let n=this.treeAdapter.getFirstChild(t);n;n=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(r,n)}_setEndLocation(t,r){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&r.location){const n=r.location,i=this.treeAdapter.getTagName(t),a=r.type===Ze.END_TAG&&i===r.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,a)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let r,n;return this.openElements.stackTop===0&&this.fragmentContext?(r=this.fragmentContext,n=this.fragmentContextID):{current:r,currentTagId:n}=this.openElements,t.tagID===p.SVG&&this.treeAdapter.getTagName(r)===X.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(r)===ae.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===p.MGLYPH||t.tagID===p.MALIGNMARK)&&n!==void 0&&!this._isIntegrationPoint(n,r,ae.HTML)}_processToken(t){switch(t.type){case Ze.CHARACTER:{this.onCharacter(t);break}case Ze.NULL_CHARACTER:{this.onNullCharacter(t);break}case Ze.COMMENT:{this.onComment(t);break}case Ze.DOCTYPE:{this.onDoctype(t);break}case Ze.START_TAG:{this._processStartTag(t);break}case Ze.END_TAG:{this.onEndTag(t);break}case Ze.EOF:{this.onEof(t);break}case Ze.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,r,n){const i=this.treeAdapter.getNamespaceURI(r),a=this.treeAdapter.getAttrList(r);return G8(t,i,a,n)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const r=this.activeFormattingElements.entries.findIndex(i=>i.type===cn.Marker||this.openElements.contains(i.element)),n=r===-1?t-1:r-1;for(let i=n;i>=0;i--){const a=this.activeFormattingElements.entries[i];this._insertElement(a.token,this.treeAdapter.getNamespaceURI(a.element)),a.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=z.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(p.P),this.openElements.popUntilTagNamePopped(p.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case p.TR:{this.insertionMode=z.IN_ROW;return}case p.TBODY:case p.THEAD:case p.TFOOT:{this.insertionMode=z.IN_TABLE_BODY;return}case p.CAPTION:{this.insertionMode=z.IN_CAPTION;return}case p.COLGROUP:{this.insertionMode=z.IN_COLUMN_GROUP;return}case p.TABLE:{this.insertionMode=z.IN_TABLE;return}case p.BODY:{this.insertionMode=z.IN_BODY;return}case p.FRAMESET:{this.insertionMode=z.IN_FRAMESET;return}case p.SELECT:{this._resetInsertionModeForSelect(t);return}case p.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case p.HTML:{this.insertionMode=this.headElement?z.AFTER_HEAD:z.BEFORE_HEAD;return}case p.TD:case p.TH:{if(t>0){this.insertionMode=z.IN_CELL;return}break}case p.HEAD:{if(t>0){this.insertionMode=z.IN_HEAD;return}break}}this.insertionMode=z.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let r=t-1;r>0;r--){const n=this.openElements.tagIDs[r];if(n===p.TEMPLATE)break;if(n===p.TABLE){this.insertionMode=z.IN_SELECT_IN_TABLE;return}}this.insertionMode=z.IN_SELECT}_isElementCausesFosterParenting(t){return d1.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const r=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case p.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(r)===ae.HTML)return{parent:this.treeAdapter.getTemplateContent(r),beforeElement:null};break}case p.TABLE:{const n=this.treeAdapter.getParentNode(r);return n?{parent:n,beforeElement:r}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const r=this._findFosterParentingLocation();r.beforeElement?this.treeAdapter.insertBefore(r.parent,t,r.beforeElement):this.treeAdapter.appendChild(r.parent,t)}_isSpecialElement(t,r){const n=this.treeAdapter.getNamespaceURI(t);return p8[n].has(r)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Av(this,t);return}switch(this.insertionMode){case z.INITIAL:{ga(this,t);break}case z.BEFORE_HTML:{wa(this,t);break}case z.BEFORE_HEAD:{ka(this,t);break}case z.IN_HEAD:{Ca(this,t);break}case z.IN_HEAD_NO_SCRIPT:{Na(this,t);break}case z.AFTER_HEAD:{Ia(this,t);break}case z.IN_BODY:case z.IN_CAPTION:case z.IN_CELL:case z.IN_TEMPLATE:{m1(this,t);break}case z.TEXT:case z.IN_SELECT:case z.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case z.IN_TABLE:case z.IN_TABLE_BODY:case z.IN_ROW:{Au(this,t);break}case z.IN_TABLE_TEXT:{v1(this,t);break}case z.IN_COLUMN_GROUP:{Js(this,t);break}case z.AFTER_BODY:{Qs(this,t);break}case z.AFTER_AFTER_BODY:{Rs(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){_v(this,t);return}switch(this.insertionMode){case z.INITIAL:{ga(this,t);break}case z.BEFORE_HTML:{wa(this,t);break}case z.BEFORE_HEAD:{ka(this,t);break}case z.IN_HEAD:{Ca(this,t);break}case z.IN_HEAD_NO_SCRIPT:{Na(this,t);break}case z.AFTER_HEAD:{Ia(this,t);break}case z.TEXT:{this._insertCharacters(t);break}case z.IN_TABLE:case z.IN_TABLE_BODY:case z.IN_ROW:{Au(this,t);break}case z.IN_COLUMN_GROUP:{Js(this,t);break}case z.AFTER_BODY:{Qs(this,t);break}case z.AFTER_AFTER_BODY:{Rs(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){fl(this,t);return}switch(this.insertionMode){case z.INITIAL:case z.BEFORE_HTML:case z.BEFORE_HEAD:case z.IN_HEAD:case z.IN_HEAD_NO_SCRIPT:case z.AFTER_HEAD:case z.IN_BODY:case z.IN_TABLE:case z.IN_CAPTION:case z.IN_COLUMN_GROUP:case z.IN_TABLE_BODY:case z.IN_ROW:case z.IN_CELL:case z.IN_SELECT:case z.IN_SELECT_IN_TABLE:case z.IN_TEMPLATE:case z.IN_FRAMESET:case z.AFTER_FRAMESET:{fl(this,t);break}case z.IN_TABLE_TEXT:{ba(this,t);break}case z.AFTER_BODY:{ty(this,t);break}case z.AFTER_AFTER_BODY:case z.AFTER_AFTER_FRAMESET:{ry(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case z.INITIAL:{ny(this,t);break}case z.BEFORE_HEAD:case z.IN_HEAD:case z.IN_HEAD_NO_SCRIPT:case z.AFTER_HEAD:{this._err(t,Q.misplacedDoctype);break}case z.IN_TABLE_TEXT:{ba(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,Q.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?Sv(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case z.INITIAL:{ga(this,t);break}case z.BEFORE_HTML:{iy(this,t);break}case z.BEFORE_HEAD:{sy(this,t);break}case z.IN_HEAD:{nn(this,t);break}case z.IN_HEAD_NO_SCRIPT:{ly(this,t);break}case z.AFTER_HEAD:{hy(this,t);break}case z.IN_BODY:{ur(this,t);break}case z.IN_TABLE:{Hi(this,t);break}case z.IN_TABLE_TEXT:{ba(this,t);break}case z.IN_CAPTION:{ov(this,t);break}case z.IN_COLUMN_GROUP:{l0(this,t);break}case z.IN_TABLE_BODY:{Co(this,t);break}case z.IN_ROW:{No(this,t);break}case z.IN_CELL:{cv(this,t);break}case z.IN_SELECT:{A1(this,t);break}case z.IN_SELECT_IN_TABLE:{fv(this,t);break}case z.IN_TEMPLATE:{pv(this,t);break}case z.AFTER_BODY:{gv(this,t);break}case z.IN_FRAMESET:{bv(this,t);break}case z.AFTER_FRAMESET:{Ev(this,t);break}case z.AFTER_AFTER_BODY:{vv(this,t);break}case z.AFTER_AFTER_FRAMESET:{Tv(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?wv(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case z.INITIAL:{ga(this,t);break}case z.BEFORE_HTML:{ay(this,t);break}case z.BEFORE_HEAD:{oy(this,t);break}case z.IN_HEAD:{uy(this,t);break}case z.IN_HEAD_NO_SCRIPT:{cy(this,t);break}case z.AFTER_HEAD:{fy(this,t);break}case z.IN_BODY:{ko(this,t);break}case z.TEXT:{Jy(this,t);break}case z.IN_TABLE:{Fa(this,t);break}case z.IN_TABLE_TEXT:{ba(this,t);break}case z.IN_CAPTION:{uv(this,t);break}case z.IN_COLUMN_GROUP:{lv(this,t);break}case z.IN_TABLE_BODY:{dl(this,t);break}case z.IN_ROW:{_1(this,t);break}case z.IN_CELL:{hv(this,t);break}case z.IN_SELECT:{S1(this,t);break}case z.IN_SELECT_IN_TABLE:{dv(this,t);break}case z.IN_TEMPLATE:{mv(this,t);break}case z.AFTER_BODY:{k1(this,t);break}case z.IN_FRAMESET:{xv(this,t);break}case z.AFTER_FRAMESET:{yv(this,t);break}case z.AFTER_AFTER_BODY:{Rs(this,t);break}}}onEof(t){switch(this.insertionMode){case z.INITIAL:{ga(this,t);break}case z.BEFORE_HTML:{wa(this,t);break}case z.BEFORE_HEAD:{ka(this,t);break}case z.IN_HEAD:{Ca(this,t);break}case z.IN_HEAD_NO_SCRIPT:{Na(this,t);break}case z.AFTER_HEAD:{Ia(this,t);break}case z.IN_BODY:case z.IN_TABLE:case z.IN_CAPTION:case z.IN_COLUMN_GROUP:case z.IN_TABLE_BODY:case z.IN_ROW:case z.IN_CELL:case z.IN_SELECT:case z.IN_SELECT_IN_TABLE:{E1(this,t);break}case z.TEXT:{Qy(this,t);break}case z.IN_TABLE_TEXT:{ba(this,t);break}case z.IN_TEMPLATE:{w1(this,t);break}case z.AFTER_BODY:case z.IN_FRAMESET:case z.AFTER_FRAMESET:case z.AFTER_AFTER_BODY:case z.AFTER_AFTER_FRAMESET:{u0(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===R.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case z.IN_HEAD:case z.IN_HEAD_NO_SCRIPT:case z.AFTER_HEAD:case z.TEXT:case z.IN_COLUMN_GROUP:case z.IN_SELECT:case z.IN_SELECT_IN_TABLE:case z.IN_FRAMESET:case z.AFTER_FRAMESET:{this._insertCharacters(t);break}case z.IN_BODY:case z.IN_CAPTION:case z.IN_CELL:case z.IN_TEMPLATE:case z.AFTER_BODY:case z.AFTER_AFTER_BODY:case z.AFTER_AFTER_FRAMESET:{p1(this,t);break}case z.IN_TABLE:case z.IN_TABLE_BODY:case z.IN_ROW:{Au(this,t);break}case z.IN_TABLE_TEXT:{y1(this,t);break}}}}function X8(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return r?e.openElements.contains(r.element)?e.openElements.hasInScope(t.tagID)||(r=null):(e.activeFormattingElements.removeEntry(r),r=null):x1(e,t),r}function j8(e,t){let r=null,n=e.openElements.stackTop;for(;n>=0;n--){const i=e.openElements.items[n];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[n])&&(r=i)}return r||(e.openElements.shortenToLength(Math.max(n,0)),e.activeFormattingElements.removeEntry(t)),r}function J8(e,t,r){let n=t,i=e.openElements.getCommonAncestor(t);for(let a=0,s=i;s!==r;a++,s=i){i=e.openElements.getCommonAncestor(s);const u=e.activeFormattingElements.getElementEntry(s),l=u&&a>=$8;!u||l?(l&&e.activeFormattingElements.removeEntry(u),e.openElements.remove(s)):(s=Q8(e,u),n===t&&(e.activeFormattingElements.bookmark=u),e.treeAdapter.detachNode(n),e.treeAdapter.appendChild(s,n),n=s)}return n}function Q8(e,t){const r=e.treeAdapter.getNamespaceURI(t.element),n=e.treeAdapter.createElement(t.token.tagName,r,t.token.attrs);return e.openElements.replace(t.element,n),t.element=n,n}function Z8(e,t,r){const n=e.treeAdapter.getTagName(t),i=ta(n);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(r);else{const a=e.treeAdapter.getNamespaceURI(t);i===p.TEMPLATE&&a===ae.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,r)}}function ey(e,t,r){const n=e.treeAdapter.getNamespaceURI(r.element),{token:i}=r,a=e.treeAdapter.createElement(i.tagName,n,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(r),e.openElements.remove(r.element),e.openElements.insertAfter(t,a,i.tagID)}function o0(e,t){for(let r=0;r<W8;r++){const n=X8(e,t);if(!n)break;const i=j8(e,n);if(!i)break;e.activeFormattingElements.bookmark=n;const a=J8(e,i,n.element),s=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(a),s&&Z8(e,s,a),ey(e,i,n)}}function fl(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function ty(e,t){e._appendCommentNode(t,e.openElements.items[0])}function ry(e,t){e._appendCommentNode(t,e.document)}function u0(e,t){if(e.stopped=!0,t.location){const r=e.fragmentContext?0:2;for(let n=e.openElements.stackTop;n>=r;n--)e._setEndLocation(e.openElements.items[n],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const n=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(n);if(i&&!i.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){const a=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(a);s&&!s.endTag&&e._setEndLocation(a,t)}}}}function ny(e,t){e._setDocumentType(t);const r=t.forceQuirks?Yr.QUIRKS:L8(t);R8(t)||e._err(t,Q.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,r),e.insertionMode=z.BEFORE_HTML}function ga(e,t){e._err(t,Q.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Yr.QUIRKS),e.insertionMode=z.BEFORE_HTML,e._processToken(t)}function iy(e,t){t.tagID===p.HTML?(e._insertElement(t,ae.HTML),e.insertionMode=z.BEFORE_HEAD):wa(e,t)}function ay(e,t){const r=t.tagID;(r===p.HTML||r===p.HEAD||r===p.BODY||r===p.BR)&&wa(e,t)}function wa(e,t){e._insertFakeRootElement(),e.insertionMode=z.BEFORE_HEAD,e._processToken(t)}function sy(e,t){switch(t.tagID){case p.HTML:{ur(e,t);break}case p.HEAD:{e._insertElement(t,ae.HTML),e.headElement=e.openElements.current,e.insertionMode=z.IN_HEAD;break}default:ka(e,t)}}function oy(e,t){const r=t.tagID;r===p.HEAD||r===p.BODY||r===p.HTML||r===p.BR?ka(e,t):e._err(t,Q.endTagWithoutMatchingOpenElement)}function ka(e,t){e._insertFakeElement(X.HEAD,p.HEAD),e.headElement=e.openElements.current,e.insertionMode=z.IN_HEAD,e._processToken(t)}function nn(e,t){switch(t.tagID){case p.HTML:{ur(e,t);break}case p.BASE:case p.BASEFONT:case p.BGSOUND:case p.LINK:case p.META:{e._appendElement(t,ae.HTML),t.ackSelfClosing=!0;break}case p.TITLE:{e._switchToTextParsing(t,zt.RCDATA);break}case p.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,zt.RAWTEXT):(e._insertElement(t,ae.HTML),e.insertionMode=z.IN_HEAD_NO_SCRIPT);break}case p.NOFRAMES:case p.STYLE:{e._switchToTextParsing(t,zt.RAWTEXT);break}case p.SCRIPT:{e._switchToTextParsing(t,zt.SCRIPT_DATA);break}case p.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=z.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(z.IN_TEMPLATE);break}case p.HEAD:{e._err(t,Q.misplacedStartTagForHeadElement);break}default:Ca(e,t)}}function uy(e,t){switch(t.tagID){case p.HEAD:{e.openElements.pop(),e.insertionMode=z.AFTER_HEAD;break}case p.BODY:case p.BR:case p.HTML:{Ca(e,t);break}case p.TEMPLATE:{gi(e,t);break}default:e._err(t,Q.endTagWithoutMatchingOpenElement)}}function gi(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==p.TEMPLATE&&e._err(t,Q.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(p.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,Q.endTagWithoutMatchingOpenElement)}function Ca(e,t){e.openElements.pop(),e.insertionMode=z.AFTER_HEAD,e._processToken(t)}function ly(e,t){switch(t.tagID){case p.HTML:{ur(e,t);break}case p.BASEFONT:case p.BGSOUND:case p.HEAD:case p.LINK:case p.META:case p.NOFRAMES:case p.STYLE:{nn(e,t);break}case p.NOSCRIPT:{e._err(t,Q.nestedNoscriptInHead);break}default:Na(e,t)}}function cy(e,t){switch(t.tagID){case p.NOSCRIPT:{e.openElements.pop(),e.insertionMode=z.IN_HEAD;break}case p.BR:{Na(e,t);break}default:e._err(t,Q.endTagWithoutMatchingOpenElement)}}function Na(e,t){const r=t.type===Ze.EOF?Q.openElementsLeftAfterEof:Q.disallowedContentInNoscriptInHead;e._err(t,r),e.openElements.pop(),e.insertionMode=z.IN_HEAD,e._processToken(t)}function hy(e,t){switch(t.tagID){case p.HTML:{ur(e,t);break}case p.BODY:{e._insertElement(t,ae.HTML),e.framesetOk=!1,e.insertionMode=z.IN_BODY;break}case p.FRAMESET:{e._insertElement(t,ae.HTML),e.insertionMode=z.IN_FRAMESET;break}case p.BASE:case p.BASEFONT:case p.BGSOUND:case p.LINK:case p.META:case p.NOFRAMES:case p.SCRIPT:case p.STYLE:case p.TEMPLATE:case p.TITLE:{e._err(t,Q.abandonedHeadElementChild),e.openElements.push(e.headElement,p.HEAD),nn(e,t),e.openElements.remove(e.headElement);break}case p.HEAD:{e._err(t,Q.misplacedStartTagForHeadElement);break}default:Ia(e,t)}}function fy(e,t){switch(t.tagID){case p.BODY:case p.HTML:case p.BR:{Ia(e,t);break}case p.TEMPLATE:{gi(e,t);break}default:e._err(t,Q.endTagWithoutMatchingOpenElement)}}function Ia(e,t){e._insertFakeElement(X.BODY,p.BODY),e.insertionMode=z.IN_BODY,wo(e,t)}function wo(e,t){switch(t.type){case Ze.CHARACTER:{m1(e,t);break}case Ze.WHITESPACE_CHARACTER:{p1(e,t);break}case Ze.COMMENT:{fl(e,t);break}case Ze.START_TAG:{ur(e,t);break}case Ze.END_TAG:{ko(e,t);break}case Ze.EOF:{E1(e,t);break}}}function p1(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function m1(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function dy(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function py(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(r,t.attrs))}function my(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&r&&(e.treeAdapter.detachNode(r),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,ae.HTML),e.insertionMode=z.IN_FRAMESET)}function gy(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,ae.HTML)}function by(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&hl.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,ae.HTML)}function xy(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,ae.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Ey(e,t){const r=e.openElements.tmplCount>0;(!e.formElement||r)&&(e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,ae.HTML),r||(e.formElement=e.openElements.current))}function yy(e,t){e.framesetOk=!1;const r=t.tagID;for(let n=e.openElements.stackTop;n>=0;n--){const i=e.openElements.tagIDs[n];if(r===p.LI&&i===p.LI||(r===p.DD||r===p.DT)&&(i===p.DD||i===p.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==p.ADDRESS&&i!==p.DIV&&i!==p.P&&e._isSpecialElement(e.openElements.items[n],i))break}e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,ae.HTML)}function vy(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,ae.HTML),e.tokenizer.state=zt.PLAINTEXT}function Ty(e,t){e.openElements.hasInScope(p.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(p.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,ae.HTML),e.framesetOk=!1}function _y(e,t){const r=e.activeFormattingElements.getElementEntryInScopeWithTagName(X.A);r&&(o0(e,t),e.openElements.remove(r.element),e.activeFormattingElements.removeEntry(r)),e._reconstructActiveFormattingElements(),e._insertElement(t,ae.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Ay(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ae.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Sy(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(p.NOBR)&&(o0(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,ae.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function wy(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ae.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function ky(e,t){e.treeAdapter.getDocumentMode(e.document)!==Yr.QUIRKS&&e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,ae.HTML),e.framesetOk=!1,e.insertionMode=z.IN_TABLE}function g1(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,ae.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function b1(e){const t=a1(e,li.TYPE);return t!=null&&t.toLowerCase()===Y8}function Cy(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,ae.HTML),b1(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function Ny(e,t){e._appendElement(t,ae.HTML),t.ackSelfClosing=!0}function Iy(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._appendElement(t,ae.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Oy(e,t){t.tagName=X.IMG,t.tagID=p.IMG,g1(e,t)}function Ry(e,t){e._insertElement(t,ae.HTML),e.skipNextNewLine=!0,e.tokenizer.state=zt.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=z.TEXT}function Ly(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,zt.RAWTEXT)}function My(e,t){e.framesetOk=!1,e._switchToTextParsing(t,zt.RAWTEXT)}function Lh(e,t){e._switchToTextParsing(t,zt.RAWTEXT)}function Dy(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ae.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===z.IN_TABLE||e.insertionMode===z.IN_CAPTION||e.insertionMode===z.IN_TABLE_BODY||e.insertionMode===z.IN_ROW||e.insertionMode===z.IN_CELL?z.IN_SELECT_IN_TABLE:z.IN_SELECT}function Py(e,t){e.openElements.currentTagId===p.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,ae.HTML)}function By(e,t){e.openElements.hasInScope(p.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,ae.HTML)}function Fy(e,t){e.openElements.hasInScope(p.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(p.RTC),e._insertElement(t,ae.HTML)}function Uy(e,t){e._reconstructActiveFormattingElements(),h1(t),s0(t),t.selfClosing?e._appendElement(t,ae.MATHML):e._insertElement(t,ae.MATHML),t.ackSelfClosing=!0}function zy(e,t){e._reconstructActiveFormattingElements(),f1(t),s0(t),t.selfClosing?e._appendElement(t,ae.SVG):e._insertElement(t,ae.SVG),t.ackSelfClosing=!0}function Mh(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ae.HTML)}function ur(e,t){switch(t.tagID){case p.I:case p.S:case p.B:case p.U:case p.EM:case p.TT:case p.BIG:case p.CODE:case p.FONT:case p.SMALL:case p.STRIKE:case p.STRONG:{Ay(e,t);break}case p.A:{_y(e,t);break}case p.H1:case p.H2:case p.H3:case p.H4:case p.H5:case p.H6:{by(e,t);break}case p.P:case p.DL:case p.OL:case p.UL:case p.DIV:case p.DIR:case p.NAV:case p.MAIN:case p.MENU:case p.ASIDE:case p.CENTER:case p.FIGURE:case p.FOOTER:case p.HEADER:case p.HGROUP:case p.DIALOG:case p.DETAILS:case p.ADDRESS:case p.ARTICLE:case p.SEARCH:case p.SECTION:case p.SUMMARY:case p.FIELDSET:case p.BLOCKQUOTE:case p.FIGCAPTION:{gy(e,t);break}case p.LI:case p.DD:case p.DT:{yy(e,t);break}case p.BR:case p.IMG:case p.WBR:case p.AREA:case p.EMBED:case p.KEYGEN:{g1(e,t);break}case p.HR:{Iy(e,t);break}case p.RB:case p.RTC:{By(e,t);break}case p.RT:case p.RP:{Fy(e,t);break}case p.PRE:case p.LISTING:{xy(e,t);break}case p.XMP:{Ly(e,t);break}case p.SVG:{zy(e,t);break}case p.HTML:{dy(e,t);break}case p.BASE:case p.LINK:case p.META:case p.STYLE:case p.TITLE:case p.SCRIPT:case p.BGSOUND:case p.BASEFONT:case p.TEMPLATE:{nn(e,t);break}case p.BODY:{py(e,t);break}case p.FORM:{Ey(e,t);break}case p.NOBR:{Sy(e,t);break}case p.MATH:{Uy(e,t);break}case p.TABLE:{ky(e,t);break}case p.INPUT:{Cy(e,t);break}case p.PARAM:case p.TRACK:case p.SOURCE:{Ny(e,t);break}case p.IMAGE:{Oy(e,t);break}case p.BUTTON:{Ty(e,t);break}case p.APPLET:case p.OBJECT:case p.MARQUEE:{wy(e,t);break}case p.IFRAME:{My(e,t);break}case p.SELECT:{Dy(e,t);break}case p.OPTION:case p.OPTGROUP:{Py(e,t);break}case p.NOEMBED:case p.NOFRAMES:{Lh(e,t);break}case p.FRAMESET:{my(e,t);break}case p.TEXTAREA:{Ry(e,t);break}case p.NOSCRIPT:{e.options.scriptingEnabled?Lh(e,t):Mh(e,t);break}case p.PLAINTEXT:{vy(e,t);break}case p.COL:case p.TH:case p.TD:case p.TR:case p.HEAD:case p.FRAME:case p.TBODY:case p.TFOOT:case p.THEAD:case p.CAPTION:case p.COLGROUP:break;default:Mh(e,t)}}function Hy(e,t){if(e.openElements.hasInScope(p.BODY)&&(e.insertionMode=z.AFTER_BODY,e.options.sourceCodeLocationInfo)){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e._setEndLocation(r,t)}}function Vy(e,t){e.openElements.hasInScope(p.BODY)&&(e.insertionMode=z.AFTER_BODY,k1(e,t))}function qy(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r))}function Gy(e){const t=e.openElements.tmplCount>0,{formElement:r}=e;t||(e.formElement=null),(r||t)&&e.openElements.hasInScope(p.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(p.FORM):r&&e.openElements.remove(r))}function Yy(e){e.openElements.hasInButtonScope(p.P)||e._insertFakeElement(X.P,p.P),e._closePElement()}function Wy(e){e.openElements.hasInListItemScope(p.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(p.LI),e.openElements.popUntilTagNamePopped(p.LI))}function $y(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r))}function Ky(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function Xy(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker())}function jy(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(X.BR,p.BR),e.openElements.pop(),e.framesetOk=!1}function x1(e,t){const r=t.tagName,n=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const a=e.openElements.items[i],s=e.openElements.tagIDs[i];if(n===s&&(n!==p.UNKNOWN||e.treeAdapter.getTagName(a)===r)){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(a,s))break}}function ko(e,t){switch(t.tagID){case p.A:case p.B:case p.I:case p.S:case p.U:case p.EM:case p.TT:case p.BIG:case p.CODE:case p.FONT:case p.NOBR:case p.SMALL:case p.STRIKE:case p.STRONG:{o0(e,t);break}case p.P:{Yy(e);break}case p.DL:case p.UL:case p.OL:case p.DIR:case p.DIV:case p.NAV:case p.PRE:case p.MAIN:case p.MENU:case p.ASIDE:case p.BUTTON:case p.CENTER:case p.FIGURE:case p.FOOTER:case p.HEADER:case p.HGROUP:case p.DIALOG:case p.ADDRESS:case p.ARTICLE:case p.DETAILS:case p.SEARCH:case p.SECTION:case p.SUMMARY:case p.LISTING:case p.FIELDSET:case p.BLOCKQUOTE:case p.FIGCAPTION:{qy(e,t);break}case p.LI:{Wy(e);break}case p.DD:case p.DT:{$y(e,t);break}case p.H1:case p.H2:case p.H3:case p.H4:case p.H5:case p.H6:{Ky(e);break}case p.BR:{jy(e);break}case p.BODY:{Hy(e,t);break}case p.HTML:{Vy(e,t);break}case p.FORM:{Gy(e);break}case p.APPLET:case p.OBJECT:case p.MARQUEE:{Xy(e,t);break}case p.TEMPLATE:{gi(e,t);break}default:x1(e,t)}}function E1(e,t){e.tmplInsertionModeStack.length>0?w1(e,t):u0(e,t)}function Jy(e,t){var r;t.tagID===p.SCRIPT&&((r=e.scriptHandler)===null||r===void 0||r.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function Qy(e,t){e._err(t,Q.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Au(e,t){if(e.openElements.currentTagId!==void 0&&d1.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=z.IN_TABLE_TEXT,t.type){case Ze.CHARACTER:{v1(e,t);break}case Ze.WHITESPACE_CHARACTER:{y1(e,t);break}}else Ka(e,t)}function Zy(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,ae.HTML),e.insertionMode=z.IN_CAPTION}function ev(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,ae.HTML),e.insertionMode=z.IN_COLUMN_GROUP}function tv(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(X.COLGROUP,p.COLGROUP),e.insertionMode=z.IN_COLUMN_GROUP,l0(e,t)}function rv(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,ae.HTML),e.insertionMode=z.IN_TABLE_BODY}function nv(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(X.TBODY,p.TBODY),e.insertionMode=z.IN_TABLE_BODY,Co(e,t)}function iv(e,t){e.openElements.hasInTableScope(p.TABLE)&&(e.openElements.popUntilTagNamePopped(p.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function av(e,t){b1(t)?e._appendElement(t,ae.HTML):Ka(e,t),t.ackSelfClosing=!0}function sv(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,ae.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Hi(e,t){switch(t.tagID){case p.TD:case p.TH:case p.TR:{nv(e,t);break}case p.STYLE:case p.SCRIPT:case p.TEMPLATE:{nn(e,t);break}case p.COL:{tv(e,t);break}case p.FORM:{sv(e,t);break}case p.TABLE:{iv(e,t);break}case p.TBODY:case p.TFOOT:case p.THEAD:{rv(e,t);break}case p.INPUT:{av(e,t);break}case p.CAPTION:{Zy(e,t);break}case p.COLGROUP:{ev(e,t);break}default:Ka(e,t)}}function Fa(e,t){switch(t.tagID){case p.TABLE:{e.openElements.hasInTableScope(p.TABLE)&&(e.openElements.popUntilTagNamePopped(p.TABLE),e._resetInsertionMode());break}case p.TEMPLATE:{gi(e,t);break}case p.BODY:case p.CAPTION:case p.COL:case p.COLGROUP:case p.HTML:case p.TBODY:case p.TD:case p.TFOOT:case p.TH:case p.THEAD:case p.TR:break;default:Ka(e,t)}}function Ka(e,t){const r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,wo(e,t),e.fosterParentingEnabled=r}function y1(e,t){e.pendingCharacterTokens.push(t)}function v1(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function ba(e,t){let r=0;if(e.hasNonWhitespacePendingCharacterToken)for(;r<e.pendingCharacterTokens.length;r++)Ka(e,e.pendingCharacterTokens[r]);else for(;r<e.pendingCharacterTokens.length;r++)e._insertCharacters(e.pendingCharacterTokens[r]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const T1=new Set([p.CAPTION,p.COL,p.COLGROUP,p.TBODY,p.TD,p.TFOOT,p.TH,p.THEAD,p.TR]);function ov(e,t){const r=t.tagID;T1.has(r)?e.openElements.hasInTableScope(p.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(p.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=z.IN_TABLE,Hi(e,t)):ur(e,t)}function uv(e,t){const r=t.tagID;switch(r){case p.CAPTION:case p.TABLE:{e.openElements.hasInTableScope(p.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(p.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=z.IN_TABLE,r===p.TABLE&&Fa(e,t));break}case p.BODY:case p.COL:case p.COLGROUP:case p.HTML:case p.TBODY:case p.TD:case p.TFOOT:case p.TH:case p.THEAD:case p.TR:break;default:ko(e,t)}}function l0(e,t){switch(t.tagID){case p.HTML:{ur(e,t);break}case p.COL:{e._appendElement(t,ae.HTML),t.ackSelfClosing=!0;break}case p.TEMPLATE:{nn(e,t);break}default:Js(e,t)}}function lv(e,t){switch(t.tagID){case p.COLGROUP:{e.openElements.currentTagId===p.COLGROUP&&(e.openElements.pop(),e.insertionMode=z.IN_TABLE);break}case p.TEMPLATE:{gi(e,t);break}case p.COL:break;default:Js(e,t)}}function Js(e,t){e.openElements.currentTagId===p.COLGROUP&&(e.openElements.pop(),e.insertionMode=z.IN_TABLE,e._processToken(t))}function Co(e,t){switch(t.tagID){case p.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,ae.HTML),e.insertionMode=z.IN_ROW;break}case p.TH:case p.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(X.TR,p.TR),e.insertionMode=z.IN_ROW,No(e,t);break}case p.CAPTION:case p.COL:case p.COLGROUP:case p.TBODY:case p.TFOOT:case p.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=z.IN_TABLE,Hi(e,t));break}default:Hi(e,t)}}function dl(e,t){const r=t.tagID;switch(t.tagID){case p.TBODY:case p.TFOOT:case p.THEAD:{e.openElements.hasInTableScope(r)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=z.IN_TABLE);break}case p.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=z.IN_TABLE,Fa(e,t));break}case p.BODY:case p.CAPTION:case p.COL:case p.COLGROUP:case p.HTML:case p.TD:case p.TH:case p.TR:break;default:Fa(e,t)}}function No(e,t){switch(t.tagID){case p.TH:case p.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,ae.HTML),e.insertionMode=z.IN_CELL,e.activeFormattingElements.insertMarker();break}case p.CAPTION:case p.COL:case p.COLGROUP:case p.TBODY:case p.TFOOT:case p.THEAD:case p.TR:{e.openElements.hasInTableScope(p.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=z.IN_TABLE_BODY,Co(e,t));break}default:Hi(e,t)}}function _1(e,t){switch(t.tagID){case p.TR:{e.openElements.hasInTableScope(p.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=z.IN_TABLE_BODY);break}case p.TABLE:{e.openElements.hasInTableScope(p.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=z.IN_TABLE_BODY,dl(e,t));break}case p.TBODY:case p.TFOOT:case p.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(p.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=z.IN_TABLE_BODY,dl(e,t));break}case p.BODY:case p.CAPTION:case p.COL:case p.COLGROUP:case p.HTML:case p.TD:case p.TH:break;default:Fa(e,t)}}function cv(e,t){const r=t.tagID;T1.has(r)?(e.openElements.hasInTableScope(p.TD)||e.openElements.hasInTableScope(p.TH))&&(e._closeTableCell(),No(e,t)):ur(e,t)}function hv(e,t){const r=t.tagID;switch(r){case p.TD:case p.TH:{e.openElements.hasInTableScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=z.IN_ROW);break}case p.TABLE:case p.TBODY:case p.TFOOT:case p.THEAD:case p.TR:{e.openElements.hasInTableScope(r)&&(e._closeTableCell(),_1(e,t));break}case p.BODY:case p.CAPTION:case p.COL:case p.COLGROUP:case p.HTML:break;default:ko(e,t)}}function A1(e,t){switch(t.tagID){case p.HTML:{ur(e,t);break}case p.OPTION:{e.openElements.currentTagId===p.OPTION&&e.openElements.pop(),e._insertElement(t,ae.HTML);break}case p.OPTGROUP:{e.openElements.currentTagId===p.OPTION&&e.openElements.pop(),e.openElements.currentTagId===p.OPTGROUP&&e.openElements.pop(),e._insertElement(t,ae.HTML);break}case p.HR:{e.openElements.currentTagId===p.OPTION&&e.openElements.pop(),e.openElements.currentTagId===p.OPTGROUP&&e.openElements.pop(),e._appendElement(t,ae.HTML),t.ackSelfClosing=!0;break}case p.INPUT:case p.KEYGEN:case p.TEXTAREA:case p.SELECT:{e.openElements.hasInSelectScope(p.SELECT)&&(e.openElements.popUntilTagNamePopped(p.SELECT),e._resetInsertionMode(),t.tagID!==p.SELECT&&e._processStartTag(t));break}case p.SCRIPT:case p.TEMPLATE:{nn(e,t);break}}}function S1(e,t){switch(t.tagID){case p.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===p.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===p.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===p.OPTGROUP&&e.openElements.pop();break}case p.OPTION:{e.openElements.currentTagId===p.OPTION&&e.openElements.pop();break}case p.SELECT:{e.openElements.hasInSelectScope(p.SELECT)&&(e.openElements.popUntilTagNamePopped(p.SELECT),e._resetInsertionMode());break}case p.TEMPLATE:{gi(e,t);break}}}function fv(e,t){const r=t.tagID;r===p.CAPTION||r===p.TABLE||r===p.TBODY||r===p.TFOOT||r===p.THEAD||r===p.TR||r===p.TD||r===p.TH?(e.openElements.popUntilTagNamePopped(p.SELECT),e._resetInsertionMode(),e._processStartTag(t)):A1(e,t)}function dv(e,t){const r=t.tagID;r===p.CAPTION||r===p.TABLE||r===p.TBODY||r===p.TFOOT||r===p.THEAD||r===p.TR||r===p.TD||r===p.TH?e.openElements.hasInTableScope(r)&&(e.openElements.popUntilTagNamePopped(p.SELECT),e._resetInsertionMode(),e.onEndTag(t)):S1(e,t)}function pv(e,t){switch(t.tagID){case p.BASE:case p.BASEFONT:case p.BGSOUND:case p.LINK:case p.META:case p.NOFRAMES:case p.SCRIPT:case p.STYLE:case p.TEMPLATE:case p.TITLE:{nn(e,t);break}case p.CAPTION:case p.COLGROUP:case p.TBODY:case p.TFOOT:case p.THEAD:{e.tmplInsertionModeStack[0]=z.IN_TABLE,e.insertionMode=z.IN_TABLE,Hi(e,t);break}case p.COL:{e.tmplInsertionModeStack[0]=z.IN_COLUMN_GROUP,e.insertionMode=z.IN_COLUMN_GROUP,l0(e,t);break}case p.TR:{e.tmplInsertionModeStack[0]=z.IN_TABLE_BODY,e.insertionMode=z.IN_TABLE_BODY,Co(e,t);break}case p.TD:case p.TH:{e.tmplInsertionModeStack[0]=z.IN_ROW,e.insertionMode=z.IN_ROW,No(e,t);break}default:e.tmplInsertionModeStack[0]=z.IN_BODY,e.insertionMode=z.IN_BODY,ur(e,t)}}function mv(e,t){t.tagID===p.TEMPLATE&&gi(e,t)}function w1(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(p.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):u0(e,t)}function gv(e,t){t.tagID===p.HTML?ur(e,t):Qs(e,t)}function k1(e,t){var r;if(t.tagID===p.HTML){if(e.fragmentContext||(e.insertionMode=z.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===p.HTML){e._setEndLocation(e.openElements.items[0],t);const n=e.openElements.items[1];n&&!(!((r=e.treeAdapter.getNodeSourceCodeLocation(n))===null||r===void 0)&&r.endTag)&&e._setEndLocation(n,t)}}else Qs(e,t)}function Qs(e,t){e.insertionMode=z.IN_BODY,wo(e,t)}function bv(e,t){switch(t.tagID){case p.HTML:{ur(e,t);break}case p.FRAMESET:{e._insertElement(t,ae.HTML);break}case p.FRAME:{e._appendElement(t,ae.HTML),t.ackSelfClosing=!0;break}case p.NOFRAMES:{nn(e,t);break}}}function xv(e,t){t.tagID===p.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==p.FRAMESET&&(e.insertionMode=z.AFTER_FRAMESET))}function Ev(e,t){switch(t.tagID){case p.HTML:{ur(e,t);break}case p.NOFRAMES:{nn(e,t);break}}}function yv(e,t){t.tagID===p.HTML&&(e.insertionMode=z.AFTER_AFTER_FRAMESET)}function vv(e,t){t.tagID===p.HTML?ur(e,t):Rs(e,t)}function Rs(e,t){e.insertionMode=z.IN_BODY,wo(e,t)}function Tv(e,t){switch(t.tagID){case p.HTML:{ur(e,t);break}case p.NOFRAMES:{nn(e,t);break}}}function _v(e,t){t.chars=St,e._insertCharacters(t)}function Av(e,t){e._insertCharacters(t),e.framesetOk=!1}function C1(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==ae.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function Sv(e,t){if(z8(t))C1(e),e._startTagOutsideForeignContent(t);else{const r=e._getAdjustedCurrentElement(),n=e.treeAdapter.getNamespaceURI(r);n===ae.MATHML?h1(t):n===ae.SVG&&(H8(t),f1(t)),s0(t),t.selfClosing?e._appendElement(t,n):e._insertElement(t,n),t.ackSelfClosing=!0}}function wv(e,t){if(t.tagID===p.P||t.tagID===p.BR){C1(e),e._endTagOutsideForeignContent(t);return}for(let r=e.openElements.stackTop;r>0;r--){const n=e.openElements.items[r];if(e.treeAdapter.getNamespaceURI(n)===ae.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(n);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(r);break}}}X.AREA,X.BASE,X.BASEFONT,X.BGSOUND,X.BR,X.COL,X.EMBED,X.FRAME,X.HR,X.IMG,X.INPUT,X.KEYGEN,X.LINK,X.META,X.PARAM,X.SOURCE,X.TRACK,X.WBR;const kv=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,Cv=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Dh={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function N1(e,t){const r=Fv(e),n=yl("type",{handlers:{root:Nv,element:Iv,text:Ov,comment:O1,doctype:Rv,raw:Mv},unknown:Dv}),i={parser:r?new Rh(Dh):Rh.getFragmentParser(void 0,Dh),handle(u){n(u,i)},stitches:!1,options:t||{}};n(e,i),ra(i,pn());const a=r?i.parser.document:i.parser.getFragment(),s=U7(a,{file:i.options.file});return i.stitches&&di(s,"comment",function(u,l,c){const f=u;if(f.value.stitch&&c&&l!==void 0){const d=c.children;return d[l]=f.value.stitch,l}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function I1(e,t){let r=-1;if(e)for(;++r<e.length;)t.handle(e[r])}function Nv(e,t){I1(e.children,t)}function Iv(e,t){Pv(e,t),I1(e.children,t),Bv(e,t)}function Ov(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const r={type:Ze.CHARACTER,chars:e.value,location:Xa(e)};ra(t,pn(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function Rv(e,t){const r={type:Ze.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Xa(e)};ra(t,pn(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function Lv(e,t){t.stitches=!0;const r=Uv(e);if("children"in e&&"children"in r){const n=N1({type:"root",children:e.children},t.options);r.children=n.children}O1({type:"comment",value:{stitch:r}},t)}function O1(e,t){const r=e.value,n={type:Ze.COMMENT,data:r,location:Xa(e)};ra(t,pn(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Mv(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,R1(t,pn(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(kv,"<$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;const r=t.parser.tokenizer._consume();t.parser.tokenizer._callState(r)}}function Dv(e,t){const r=e;if(t.options.passThrough&&t.options.passThrough.includes(r.type))Lv(r,t);else{let n="";throw Cv.has(r.type)&&(n=". 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"),new Error("Cannot compile `"+r.type+"` node"+n)}}function ra(e,t){R1(e,t);const r=e.parser.tokenizer.currentCharacterToken;r&&r.location&&(r.location.endLine=e.parser.tokenizer.preprocessor.line,r.location.endCol=e.parser.tokenizer.preprocessor.col+1,r.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=r,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=zt.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 R1(e,t){if(t&&t.offset!==void 0){const r={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=r}}function Pv(e,t){const r=e.tagName.toLowerCase();if(t.parser.tokenizer.state===zt.PLAINTEXT)return;ra(t,pn(e));const n=t.parser.openElements.current;let i="namespaceURI"in n?n.namespaceURI:hn.html;i===hn.html&&r==="svg"&&(i=hn.svg);const a=G7({...e,children:[]},{space:i===hn.svg?"svg":"html"}),s={type:Ze.START_TAG,tagName:r,tagID:ta(r),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:Xa(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=r}function Bv(e,t){const r=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&Q7.includes(r)||t.parser.tokenizer.state===zt.PLAINTEXT)return;ra(t,to(e));const n={type:Ze.END_TAG,tagName:r,tagID:ta(r),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Xa(e)};t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken),r===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===zt.RCDATA||t.parser.tokenizer.state===zt.RAWTEXT||t.parser.tokenizer.state===zt.SCRIPT_DATA)&&(t.parser.tokenizer.state=zt.DATA)}function Fv(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function Xa(e){const t=pn(e)||{line:void 0,column:void 0,offset:void 0},r=to(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:r.line,endCol:r.column,endOffset:r.offset}}function Uv(e){return"children"in e?ci({...e,children:[]}):ci(e)}function I_(e){return function(t,r){return N1(t,{...e,file:r})}}const ai=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],Ph={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...ai,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...ai],h2:[["className","sr-only"]],img:[...ai,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...ai,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...ai],table:[...ai],ul:[...ai,["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"]},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"]},Vn={}.hasOwnProperty;function zv(e,t){let r={type:"root",children:[]};const n={schema:t?{...Ph,...t}:Ph,stack:[]},i=L1(n,e);return i&&(Array.isArray(i)?i.length===1?r=i[0]:r.children=i:r=i),r}function L1(e,t){if(t&&typeof t=="object"){const r=t;switch(typeof r.type=="string"?r.type:""){case"comment":return Hv(e,r);case"doctype":return Vv(e,r);case"element":return qv(e,r);case"root":return Gv(e,r);case"text":return Yv(e,r)}}}function Hv(e,t){if(e.schema.allowComments){const r=typeof t.value=="string"?t.value:"",n=r.indexOf("-->"),a={type:"comment",value:n<0?r:r.slice(0,n)};return ja(a,t),a}}function Vv(e,t){if(e.schema.allowDoctypes){const r={type:"doctype"};return ja(r,t),r}}function qv(e,t){const r=typeof t.tagName=="string"?t.tagName:"";e.stack.push(r);const n=M1(e,t.children),i=Wv(e,t.properties);e.stack.pop();let a=!1;if(r&&r!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(r))&&(a=!0,e.schema.ancestors&&Vn.call(e.schema.ancestors,r))){const u=e.schema.ancestors[r];let l=-1;for(a=!1;++l<u.length;)e.stack.includes(u[l])&&(a=!0)}if(!a)return e.schema.strip&&!e.schema.strip.includes(r)?n:void 0;const s={type:"element",tagName:r,properties:i,children:n};return ja(s,t),s}function Gv(e,t){const n={type:"root",children:M1(e,t.children)};return ja(n,t),n}function Yv(e,t){const n={type:"text",value:typeof t.value=="string"?t.value:""};return ja(n,t),n}function M1(e,t){const r=[];if(Array.isArray(t)){const n=t;let i=-1;for(;++i<n.length;){const a=L1(e,n[i]);a&&(Array.isArray(a)?r.push(...a):r.push(a))}}return r}function Wv(e,t){const r=e.stack[e.stack.length-1],n=e.schema.attributes,i=e.schema.required,a=n&&Vn.call(n,r)?n[r]:void 0,s=n&&Vn.call(n,"*")?n["*"]:void 0,u=t&&typeof t=="object"?t:{},l={};let c;for(c in u)if(Vn.call(u,c)){const f=u[c];let d=Bh(e,Fh(a,c),c,f);d==null&&(d=Bh(e,Fh(s,c),c,f)),d!=null&&(l[c]=d)}if(i&&Vn.call(i,r)){const f=i[r];for(c in f)Vn.call(f,c)&&!Vn.call(l,c)&&(l[c]=f[c])}return l}function Bh(e,t,r,n){return t?Array.isArray(n)?$v(e,t,r,n):D1(e,t,r,n):void 0}function $v(e,t,r,n){let i=-1;const a=[];for(;++i<n.length;){const s=D1(e,t,r,n[i]);(typeof s=="number"||typeof s=="string")&&a.push(s)}return a}function D1(e,t,r,n){if(!(typeof n!="boolean"&&typeof n!="number"&&typeof n!="string")&&Kv(e,r,n)){if(typeof t=="object"&&t.length>1){let i=!1,a=0;for(;++a<t.length;){const s=t[a];if(s&&typeof s=="object"&&"flags"in s){if(s.test(String(n))){i=!0;break}}else if(s===n){i=!0;break}}if(!i)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(r)?e.schema.clobberPrefix+n:n}}function Kv(e,t,r){const n=e.schema.protocols&&Vn.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!n||n.length===0)return!0;const i=String(r),a=i.indexOf(":"),s=i.indexOf("?"),u=i.indexOf("#"),l=i.indexOf("/");if(a<0||l>-1&&a>l||s>-1&&a>s||u>-1&&a>u)return!0;let c=-1;for(;++c<n.length;){const f=n[c];if(a===f.length&&i.slice(0,f.length)===f)return!0}return!1}function ja(e,t){const r=El(t);t.data&&(e.data=ci(t.data)),r&&(e.position=r)}function Fh(e,t){let r,n=-1;if(e)for(;++n<e.length;){const i=e[n],a=typeof i=="string"?i:i[0];if(a===t)return i;a==="data*"&&(r=i)}if(t.length>4&&t.slice(0,4).toLowerCase()==="data")return r}function O_(e){return function(t){return zv(t,e)}}function Xv(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function P1(e,t,r){const i=Ya((r||{}).ignore||[]),a=jv(t);let s=-1;for(;++s<a.length;)Dl(e,"text",u);function u(c,f){let d=-1,x;for(;++d<f.length;){const b=f[d],T=x?x.children:void 0;if(i(b,T?T.indexOf(b):void 0,x))return;x=b}if(x)return l(c,f)}function l(c,f){const d=f[f.length-1],x=a[s][0],b=a[s][1];let T=0;const C=d.children.indexOf(c);let S=!1,I=[];x.lastIndex=0;let D=x.exec(c.value);for(;D;){const q=D.index,O={index:D.index,input:D.input,stack:[...f,c]};let g=b(...D,O);if(typeof g=="string"&&(g=g.length>0?{type:"text",value:g}:void 0),g===!1?x.lastIndex=q+1:(T!==q&&I.push({type:"text",value:c.value.slice(T,q)}),Array.isArray(g)?I.push(...g):g&&I.push(g),T=q+D[0].length,S=!0),!x.global)break;D=x.exec(c.value)}return S?(T<c.value.length&&I.push({type:"text",value:c.value.slice(T)}),d.children.splice(C,1,...I)):I=[c],C+I.length}}function jv(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!e[0]||Array.isArray(e[0])?e:[e];let n=-1;for(;++n<r.length;){const i=r[n];t.push([Jv(i[0]),Qv(i[1])])}return t}function Jv(e){return typeof e=="string"?new RegExp(Xv(e),"g"):e}function Qv(e){return typeof e=="function"?e:function(){return e}}function Zv(e){P1(e,[/\r?\n|\r/g,eT])}function eT(){return{type:"break"}}function R_(){return function(e){Zv(e)}}const Su="phrasing",wu=["autolink","link","image","label"];function tT(){return{transforms:[uT],enter:{literalAutolink:nT,literalAutolinkEmail:ku,literalAutolinkHttp:ku,literalAutolinkWww:ku},exit:{literalAutolink:oT,literalAutolinkEmail:sT,literalAutolinkHttp:iT,literalAutolinkWww:aT}}}function rT(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Su,notInConstruct:wu},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Su,notInConstruct:wu},{character:":",before:"[ps]",after:"\\/",inConstruct:Su,notInConstruct:wu}]}}function nT(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function ku(e){this.config.enter.autolinkProtocol.call(this,e)}function iT(e){this.config.exit.autolinkProtocol.call(this,e)}function aT(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function sT(e){this.config.exit.autolinkEmail.call(this,e)}function oT(e){this.exit(e)}function uT(e){P1(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,lT],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),cT]],{ignore:["link","linkReference"]})}function lT(e,t,r,n,i){let a="";if(!B1(i)||(/^w/i.test(t)&&(r=t+r,t="",a="http://"),!hT(r)))return!1;const s=fT(r+n);if(!s[0])return!1;const u={type:"link",title:null,url:a+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[u,{type:"text",value:s[1]}]:u}function cT(e,t,r,n){return!B1(n,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function hT(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function fT(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],n=r.indexOf(")");const i=Ms(e,"(");let a=Ms(e,")");for(;n!==-1&&i>a;)e+=r.slice(0,n+1),r=r.slice(n+1),n=r.indexOf(")"),a++;return[e,r]}function B1(e,t){const r=e.input.charCodeAt(e.index-1);return(e.index===0||gr(r)||uo(r))&&(!t||r!==47)}F1.peek=vT;function dT(){this.buffer()}function pT(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function mT(){this.buffer()}function gT(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function bT(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=tn(this.sliceSerialize(e)).toLowerCase(),r.label=t}function xT(e){this.exit(e)}function ET(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=tn(this.sliceSerialize(e)).toLowerCase(),r.label=t}function yT(e){this.exit(e)}function vT(){return"["}function F1(e,t,r,n){const i=r.createTracker(n);let a=i.move("[^");const s=r.enter("footnoteReference"),u=r.enter("reference");return a+=i.move(r.safe(r.associationId(e),{after:"]",before:a})),u(),s(),a+=i.move("]"),a}function TT(){return{enter:{gfmFootnoteCallString:dT,gfmFootnoteCall:pT,gfmFootnoteDefinitionLabelString:mT,gfmFootnoteDefinition:gT},exit:{gfmFootnoteCallString:bT,gfmFootnoteCall:xT,gfmFootnoteDefinitionLabelString:ET,gfmFootnoteDefinition:yT}}}function _T(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:r,footnoteReference:F1},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(n,i,a,s){const u=a.createTracker(s);let l=u.move("[^");const c=a.enter("footnoteDefinition"),f=a.enter("label");return l+=u.move(a.safe(a.associationId(n),{before:l,after:"]"})),f(),l+=u.move("]:"),n.children&&n.children.length>0&&(u.shift(4),l+=u.move((t?`
|
|
307
|
+
please report what input caused this bug`);return n=n.slice(1,-1),{type:"verb",mode:"text",body:n,star:i}}yh.hasOwnProperty(r[0])&&!kt[this.mode][r[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+r[0]+'" used in math mode',t),r=yh[r[0]]+r.slice(1));var a=N7.exec(r);a&&(r=r.substring(0,a.index),r==="i"?r="ı":r==="j"&&(r="ȷ"));var s;if(kt[this.mode][r]){this.settings.strict&&this.mode==="math"&&Ku.includes(r)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+r[0]+'" used in math mode',t);var u=kt[this.mode][r].group,l=wr.range(t),c;j5(u)?c={type:"atom",mode:this.mode,family:u,loc:l,text:r}:c={type:u,mode:this.mode,loc:l,text:r},s=c}else if(r.charCodeAt(0)>=128)this.settings.strict&&(jd(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),t)),s={type:"textord",mode:"text",loc:wr.range(t),text:r};else return null;if(this.consume(),a)for(var f=0;f<a[0].length;f++){var d=a[0][f];if(!Tu[d])throw new he("Unknown accent ' "+d+"'",t);var x=Tu[d][this.mode]||Tu[d].text;if(!x)throw new he("Accent "+d+" unsupported in "+this.mode+" mode",t);s={type:"accent",mode:this.mode,loc:wr.range(t),label:x,isStretchy:!1,isShifty:!0,base:s}}return s}};Yp.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var r0=function(t,r){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new Yp(t,r);delete n.gullet.macros.current["\\df@tag"];var i=n.parse();if(delete n.gullet.macros.current["\\current@color"],delete n.gullet.macros.current["\\color"],n.gullet.macros.get("\\df@tag")){if(!r.displayMode)throw new he("\\tag works only in display equations");i=[{type:"tag",mode:"text",body:i,tag:n.subparse([new Dr("\\df@tag")])}]}return i},n0=function(t,r,n){r.textContent="";var i=So(t,n).toNode();r.appendChild(i)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),n0=function(){throw new he("KaTeX doesn't work in quirks mode.")});var $p=function(t,r){var n=So(t,r).toMarkup();return n},Kp=function(t,r){var n=new Vl(r);return r0(t,n)},Xp=function(t,r,n){if(n.throwOnError||!(t instanceof he))throw t;var i=ue(["katex-error"],[new Pr(r)]);return i.setAttribute("title",t.toString()),i.setAttribute("style","color:"+n.errorColor),i},So=function(t,r){var n=new Vl(r);try{var i=r0(t,n);return V5(i,t,n)}catch(a){return Xp(a,t,n)}},jp=function(t,r){var n=new Vl(r);try{var i=r0(t,n);return q5(i,t,n)}catch(a){return Xp(a,t,n)}},Jp="0.16.47",Qp={Span:Ji,Anchor:fo,SymbolNode:Pr,SvgNode:In,PathNode:Kn,LineNode:$u},ll={version:Jp,render:n0,renderToString:$p,ParseError:he,SETTINGS_SCHEMA:Gs,__parse:Kp,__renderToDomTree:So,__renderToHTMLTree:jp,__setFontMetrics:tp,__defineSymbol:m,__defineFunction:ve,__defineMacro:k,__domTree:Qp};const I_=Object.freeze(Object.defineProperty({__proto__:null,ParseError:he,SETTINGS_SCHEMA:Gs,__defineFunction:ve,__defineMacro:k,__defineSymbol:m,__domTree:Qp,__parse:Kp,__renderToDomTree:So,__renderToHTMLTree:jp,__setFontMetrics:tp,default:ll,get render(){return n0},renderToString:$p,version:Jp},Symbol.toStringTag,{value:"Module"})),D7={},P7=[];function O_(e){const t=e||D7;return function(r,n){Dl(r,"element",function(i,a){const s=Array.isArray(i.properties.className)?i.properties.className:P7,u=s.includes("language-math"),l=s.includes("math-display"),c=s.includes("math-inline");let f=l;if(!u&&!l&&!c)return;let d=a[a.length-1],x=i;if(i.tagName==="code"&&u&&d&&d.type==="element"&&d.tagName==="pre"&&(x=d,d=a[a.length-2],f=!0),!d)return;const b=Ad(x,{whitespace:"pre"});let T;try{T=ll.renderToString(b,{...t,displayMode:f,throwOnError:!0})}catch(C){const S=C,I=S.name.toLowerCase();n.message("Could not render math with KaTeX",{ancestors:[...a,i],cause:S,place:i.position,ruleId:I,source:"rehype-katex"});try{T=ll.renderToString(b,{...t,displayMode:f,strict:"ignore",throwOnError:!1})}catch{T=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(t.errorColor||"#cc0000"),title:String(C)},children:[{type:"text",value:b}]}]}}typeof T=="string"&&(T=VE(T).children);const A=d.children.indexOf(x);return d.children.splice(A,1,...T),xd})}}function B7(e){const t=String(e),r=[];return{toOffset:i,toPoint:n};function n(a){if(typeof a=="number"&&a>-1&&a<=t.length){let s=0;for(;;){let u=r[s];if(u===void 0){const l=vh(t,r[s-1]);u=l===-1?t.length+1:l+1,r[s]=u}if(u>a)return{line:s+1,column:a-(s>0?r[s-1]:0)+1,offset:a};s++}}}function i(a){if(a&&typeof a.line=="number"&&typeof a.column=="number"&&!Number.isNaN(a.line)&&!Number.isNaN(a.column)){for(;r.length<a.line;){const u=r[r.length-1],l=vh(t,u),c=l===-1?t.length+1:l+1;if(u===c)break;r.push(c)}const s=(a.line>1?r[a.line-2]:0)+a.column-1;if(s<r[a.line-1])return s}}}function vh(e,t){const r=e.indexOf("\r",t),n=e.indexOf(`
|
|
308
|
+
`,t);return n===-1?r:r===-1||r+1===n?n:r<n?r:n}const Zp={}.hasOwnProperty,F7=Object.prototype;function U7(e,t){const r=t||{};return i0({file:r.file||void 0,location:!1,schema:r.space==="svg"?rn:qi,verbose:r.verbose||!1},e)}function i0(e,t){let r;switch(t.nodeName){case"#comment":{const n=t;return r={type:"comment",value:n.data},Os(e,n,r),r}case"#document":case"#document-fragment":{const n=t,i="mode"in n?n.mode==="quirks"||n.mode==="limited-quirks":!1;if(r={type:"root",children:e1(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const a=String(e.file),s=B7(a),u=s.toPoint(0),l=s.toPoint(a.length);r.position={start:u,end:l}}return r}case"#documentType":{const n=t;return r={type:"doctype"},Os(e,n,r),r}case"#text":{const n=t;return r={type:"text",value:n.value},Os(e,n,r),r}default:return r=z7(e,t),r}}function e1(e,t){let r=-1;const n=[];for(;++r<t.length;){const i=i0(e,t[r]);n.push(i)}return n}function z7(e,t){const r=e.schema;e.schema=t.namespaceURI===hn.svg?rn:qi;let n=-1;const i={};for(;++n<t.attrs.length;){const u=t.attrs[n],l=(u.prefix?u.prefix+":":"")+u.name;Zp.call(F7,l)||(i[l]=u.value)}const s=(e.schema.space==="svg"?$d:Wd)(t.tagName,i,e1(e,t.childNodes));if(Os(e,t,s),s.tagName==="template"){const u=t,l=u.sourceCodeLocation,c=l&&l.startTag&&Di(l.startTag),f=l&&l.endTag&&Di(l.endTag),d=i0(e,u.content);c&&f&&e.file&&(d.position={start:c.end,end:f.start}),s.content=d}return e.schema=r,s}function Os(e,t,r){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const n=H7(e,r,t.sourceCodeLocation);n&&(e.location=!0,r.position=n)}}function H7(e,t,r){const n=Di(r);if(t.type==="element"){const i=t.children[t.children.length-1];if(n&&!r.endTag&&i&&i.position&&i.position.end&&(n.end=Object.assign({},i.position.end)),e.verbose){const a={};let s;if(r.attrs)for(s in r.attrs)Zp.call(r.attrs,s)&&(a[Va(e.schema,s).property]=Di(r.attrs[s]));r.startTag;const u=Di(r.startTag),l=r.endTag?Di(r.endTag):void 0,c={opening:u};l&&(c.closing=l),c.properties=a,t.data={position:c}}}return n}function Di(e){const t=Th({line:e.startLine,column:e.startCol,offset:e.startOffset}),r=Th({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||r?{start:t,end:r}:void 0}function Th(e){return e.line&&e.column?e:void 0}const V7={},q7={}.hasOwnProperty,t1=yl("type",{handlers:{root:Y7,element:j7,text:K7,comment:X7,doctype:$7}});function G7(e,t){const n=(t||V7).space;return t1(e,n==="svg"?rn:qi)}function Y7(e,t){const r={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return r.childNodes=a0(e.children,r,t),ea(e,r),r}function W7(e,t){const r={nodeName:"#document-fragment",childNodes:[]};return r.childNodes=a0(e.children,r,t),ea(e,r),r}function $7(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return ea(e,t),t}function K7(e){const t={nodeName:"#text",value:e.value,parentNode:null};return ea(e,t),t}function X7(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return ea(e,t),t}function j7(e,t){const r=t;let n=r;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&r.space==="html"&&(n=rn);const i=[];let a;if(e.properties){for(a in e.properties)if(a!=="children"&&q7.call(e.properties,a)){const l=J7(n,a,e.properties[a]);l&&i.push(l)}}const s=n.space,u={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:hn[s],childNodes:[],parentNode:null};return u.childNodes=a0(e.children,u,n),ea(e,u),e.tagName==="template"&&e.content&&(u.content=W7(e.content,n)),u}function J7(e,t,r){const n=Va(e,t);if(r===!1||r===null||r===void 0||typeof r=="number"&&Number.isNaN(r)||!r&&n.boolean)return;Array.isArray(r)&&(r=n.commaSeparated?ml(r):bl(r));const i={name:n.attribute,value:r===!0?"":String(r)};if(n.space&&n.space!=="html"&&n.space!=="svg"){const a=i.name.indexOf(":");a<0?i.prefix="":(i.name=i.name.slice(a+1),i.prefix=n.attribute.slice(0,a)),i.namespace=hn[n.space]}return i}function a0(e,t,r){let n=-1;const i=[];if(e)for(;++n<e.length;){const a=t1(e[n],r);a.parentNode=t,i.push(a)}return i}function ea(e,t){const r=e.position;r&&r.start&&r.end&&(r.start.offset,r.end.offset,t.sourceCodeLocation={startLine:r.start.line,startCol:r.start.column,startOffset:r.start.offset,endLine:r.end.line,endCol:r.end.column,endOffset:r.end.offset})}const Q7=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],Z7=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),St="�";var R;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(R||(R={}));const Ar={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function r1(e){return e>=55296&&e<=57343}function e8(e){return e>=56320&&e<=57343}function t8(e,t){return(e-55296)*1024+9216+t}function n1(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function i1(e){return e>=64976&&e<=65007||Z7.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||(Q={}));const r8=65536;class n8{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=r8,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,r){const{line:n,col:i,offset:a}=this,s=i+r,u=a+r;return{code:t,startLine:n,endLine:n,startCol:s,endCol:s,startOffset:u,endOffset:u}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const r=this.html.charCodeAt(this.pos+1);if(e8(r))return this.pos++,this._addGap(),t8(t,r)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,R.EOF;return this._err(Q.surrogateInInputStream),t}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(t,r){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=r}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,r){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(r)return this.html.startsWith(t,this.pos);for(let n=0;n<t.length;n++)if((this.html.charCodeAt(this.pos+n)|32)!==t.charCodeAt(n))return!1;return!0}peek(t){const r=this.pos+t;if(r>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,R.EOF;const n=this.html.charCodeAt(r);return n===R.CARRIAGE_RETURN?R.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,R.EOF;let t=this.html.charCodeAt(this.pos);return t===R.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,R.LINE_FEED):t===R.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,r1(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===R.LINE_FEED||t===R.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){n1(t)?this._err(Q.controlCharacterInInputStream):i1(t)&&this._err(Q.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var Ze;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(Ze||(Ze={}));function a1(e,t){for(let r=e.attrs.length-1;r>=0;r--)if(e.attrs[r].name===t)return e.attrs[r].value;return null}const i8=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୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢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;怳Ādpuct;戏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ǣጓ\0y;䐎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Ā;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀ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Ā;elƀ;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\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»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ↄⅪ←ٖ↛ǰ↉\0proø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肻 ଷ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;䅓Ācrir;榿;쀀𝔬ͯ\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\0m;櫳;櫽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))),a8=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function s8(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=a8.get(e))!==null&&t!==void 0?t:e}var Zt;(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"})(Zt||(Zt={}));const o8=32;var Yn;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Yn||(Yn={}));function cl(e){return e>=Zt.ZERO&&e<=Zt.NINE}function u8(e){return e>=Zt.UPPER_A&&e<=Zt.UPPER_F||e>=Zt.LOWER_A&&e<=Zt.LOWER_F}function l8(e){return e>=Zt.UPPER_A&&e<=Zt.UPPER_Z||e>=Zt.LOWER_A&&e<=Zt.LOWER_Z||cl(e)}function c8(e){return e===Zt.EQUALS||l8(e)}var Qt;(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"})(Qt||(Qt={}));var Sn;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Sn||(Sn={}));class h8{constructor(t,r,n){this.decodeTree=t,this.emitCodePoint=r,this.errors=n,this.state=Qt.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Sn.Strict}startEntity(t){this.decodeMode=t,this.state=Qt.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,r){switch(this.state){case Qt.EntityStart:return t.charCodeAt(r)===Zt.NUM?(this.state=Qt.NumericStart,this.consumed+=1,this.stateNumericStart(t,r+1)):(this.state=Qt.NamedEntity,this.stateNamedEntity(t,r));case Qt.NumericStart:return this.stateNumericStart(t,r);case Qt.NumericDecimal:return this.stateNumericDecimal(t,r);case Qt.NumericHex:return this.stateNumericHex(t,r);case Qt.NamedEntity:return this.stateNamedEntity(t,r)}}stateNumericStart(t,r){return r>=t.length?-1:(t.charCodeAt(r)|o8)===Zt.LOWER_X?(this.state=Qt.NumericHex,this.consumed+=1,this.stateNumericHex(t,r+1)):(this.state=Qt.NumericDecimal,this.stateNumericDecimal(t,r))}addToNumericResult(t,r,n,i){if(r!==n){const a=n-r;this.result=this.result*Math.pow(i,a)+Number.parseInt(t.substr(r,a),i),this.consumed+=a}}stateNumericHex(t,r){const n=r;for(;r<t.length;){const i=t.charCodeAt(r);if(cl(i)||u8(i))r+=1;else return this.addToNumericResult(t,n,r,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(t,n,r,16),-1}stateNumericDecimal(t,r){const n=r;for(;r<t.length;){const i=t.charCodeAt(r);if(cl(i))r+=1;else return this.addToNumericResult(t,n,r,10),this.emitNumericEntity(i,2)}return this.addToNumericResult(t,n,r,10),-1}emitNumericEntity(t,r){var n;if(this.consumed<=r)return(n=this.errors)===null||n===void 0||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Zt.SEMI)this.consumed+=1;else if(this.decodeMode===Sn.Strict)return 0;return this.emitCodePoint(s8(this.result),this.consumed),this.errors&&(t!==Zt.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,r){const{decodeTree:n}=this;let i=n[this.treeIndex],a=(i&Yn.VALUE_LENGTH)>>14;for(;r<t.length;r++,this.excess++){const s=t.charCodeAt(r);if(this.treeIndex=f8(n,i,this.treeIndex+Math.max(1,a),s),this.treeIndex<0)return this.result===0||this.decodeMode===Sn.Attribute&&(a===0||c8(s))?0:this.emitNotTerminatedNamedEntity();if(i=n[this.treeIndex],a=(i&Yn.VALUE_LENGTH)>>14,a!==0){if(s===Zt.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==Sn.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:r,decodeTree:n}=this,i=(n[r]&Yn.VALUE_LENGTH)>>14;return this.emitNamedEntityData(r,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,r,n){const{decodeTree:i}=this;return this.emitCodePoint(r===1?i[t]&~Yn.VALUE_LENGTH:i[t+1],n),r===3&&this.emitCodePoint(i[t+2],n),n}end(){var t;switch(this.state){case Qt.NamedEntity:return this.result!==0&&(this.decodeMode!==Sn.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Qt.NumericDecimal:return this.emitNumericEntity(0,2);case Qt.NumericHex:return this.emitNumericEntity(0,3);case Qt.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Qt.EntityStart:return 0}}}function f8(e,t,r,n){const i=(t&Yn.BRANCH_LENGTH)>>7,a=t&Yn.JUMP_TABLE;if(i===0)return a!==0&&n===a?r:-1;if(a){const l=n-a;return l<0||l>=i?-1:e[r+l]-1}let s=r,u=s+i-1;for(;s<=u;){const l=s+u>>>1,c=e[l];if(c<n)s=l+1;else if(c>n)u=l-1;else return e[l+i]}return-1}var ae;(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/"})(ae||(ae={}));var li;(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"})(li||(li={}));var Yr;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Yr||(Yr={}));var X;(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"})(X||(X={}));var p;(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"})(p||(p={}));const d8=new Map([[X.A,p.A],[X.ADDRESS,p.ADDRESS],[X.ANNOTATION_XML,p.ANNOTATION_XML],[X.APPLET,p.APPLET],[X.AREA,p.AREA],[X.ARTICLE,p.ARTICLE],[X.ASIDE,p.ASIDE],[X.B,p.B],[X.BASE,p.BASE],[X.BASEFONT,p.BASEFONT],[X.BGSOUND,p.BGSOUND],[X.BIG,p.BIG],[X.BLOCKQUOTE,p.BLOCKQUOTE],[X.BODY,p.BODY],[X.BR,p.BR],[X.BUTTON,p.BUTTON],[X.CAPTION,p.CAPTION],[X.CENTER,p.CENTER],[X.CODE,p.CODE],[X.COL,p.COL],[X.COLGROUP,p.COLGROUP],[X.DD,p.DD],[X.DESC,p.DESC],[X.DETAILS,p.DETAILS],[X.DIALOG,p.DIALOG],[X.DIR,p.DIR],[X.DIV,p.DIV],[X.DL,p.DL],[X.DT,p.DT],[X.EM,p.EM],[X.EMBED,p.EMBED],[X.FIELDSET,p.FIELDSET],[X.FIGCAPTION,p.FIGCAPTION],[X.FIGURE,p.FIGURE],[X.FONT,p.FONT],[X.FOOTER,p.FOOTER],[X.FOREIGN_OBJECT,p.FOREIGN_OBJECT],[X.FORM,p.FORM],[X.FRAME,p.FRAME],[X.FRAMESET,p.FRAMESET],[X.H1,p.H1],[X.H2,p.H2],[X.H3,p.H3],[X.H4,p.H4],[X.H5,p.H5],[X.H6,p.H6],[X.HEAD,p.HEAD],[X.HEADER,p.HEADER],[X.HGROUP,p.HGROUP],[X.HR,p.HR],[X.HTML,p.HTML],[X.I,p.I],[X.IMG,p.IMG],[X.IMAGE,p.IMAGE],[X.INPUT,p.INPUT],[X.IFRAME,p.IFRAME],[X.KEYGEN,p.KEYGEN],[X.LABEL,p.LABEL],[X.LI,p.LI],[X.LINK,p.LINK],[X.LISTING,p.LISTING],[X.MAIN,p.MAIN],[X.MALIGNMARK,p.MALIGNMARK],[X.MARQUEE,p.MARQUEE],[X.MATH,p.MATH],[X.MENU,p.MENU],[X.META,p.META],[X.MGLYPH,p.MGLYPH],[X.MI,p.MI],[X.MO,p.MO],[X.MN,p.MN],[X.MS,p.MS],[X.MTEXT,p.MTEXT],[X.NAV,p.NAV],[X.NOBR,p.NOBR],[X.NOFRAMES,p.NOFRAMES],[X.NOEMBED,p.NOEMBED],[X.NOSCRIPT,p.NOSCRIPT],[X.OBJECT,p.OBJECT],[X.OL,p.OL],[X.OPTGROUP,p.OPTGROUP],[X.OPTION,p.OPTION],[X.P,p.P],[X.PARAM,p.PARAM],[X.PLAINTEXT,p.PLAINTEXT],[X.PRE,p.PRE],[X.RB,p.RB],[X.RP,p.RP],[X.RT,p.RT],[X.RTC,p.RTC],[X.RUBY,p.RUBY],[X.S,p.S],[X.SCRIPT,p.SCRIPT],[X.SEARCH,p.SEARCH],[X.SECTION,p.SECTION],[X.SELECT,p.SELECT],[X.SOURCE,p.SOURCE],[X.SMALL,p.SMALL],[X.SPAN,p.SPAN],[X.STRIKE,p.STRIKE],[X.STRONG,p.STRONG],[X.STYLE,p.STYLE],[X.SUB,p.SUB],[X.SUMMARY,p.SUMMARY],[X.SUP,p.SUP],[X.TABLE,p.TABLE],[X.TBODY,p.TBODY],[X.TEMPLATE,p.TEMPLATE],[X.TEXTAREA,p.TEXTAREA],[X.TFOOT,p.TFOOT],[X.TD,p.TD],[X.TH,p.TH],[X.THEAD,p.THEAD],[X.TITLE,p.TITLE],[X.TR,p.TR],[X.TRACK,p.TRACK],[X.TT,p.TT],[X.U,p.U],[X.UL,p.UL],[X.SVG,p.SVG],[X.VAR,p.VAR],[X.WBR,p.WBR],[X.XMP,p.XMP]]);function ta(e){var t;return(t=d8.get(e))!==null&&t!==void 0?t:p.UNKNOWN}const le=p,p8={[ae.HTML]:new Set([le.ADDRESS,le.APPLET,le.AREA,le.ARTICLE,le.ASIDE,le.BASE,le.BASEFONT,le.BGSOUND,le.BLOCKQUOTE,le.BODY,le.BR,le.BUTTON,le.CAPTION,le.CENTER,le.COL,le.COLGROUP,le.DD,le.DETAILS,le.DIR,le.DIV,le.DL,le.DT,le.EMBED,le.FIELDSET,le.FIGCAPTION,le.FIGURE,le.FOOTER,le.FORM,le.FRAME,le.FRAMESET,le.H1,le.H2,le.H3,le.H4,le.H5,le.H6,le.HEAD,le.HEADER,le.HGROUP,le.HR,le.HTML,le.IFRAME,le.IMG,le.INPUT,le.LI,le.LINK,le.LISTING,le.MAIN,le.MARQUEE,le.MENU,le.META,le.NAV,le.NOEMBED,le.NOFRAMES,le.NOSCRIPT,le.OBJECT,le.OL,le.P,le.PARAM,le.PLAINTEXT,le.PRE,le.SCRIPT,le.SECTION,le.SELECT,le.SOURCE,le.STYLE,le.SUMMARY,le.TABLE,le.TBODY,le.TD,le.TEMPLATE,le.TEXTAREA,le.TFOOT,le.TH,le.THEAD,le.TITLE,le.TR,le.TRACK,le.UL,le.WBR,le.XMP]),[ae.MATHML]:new Set([le.MI,le.MO,le.MN,le.MS,le.MTEXT,le.ANNOTATION_XML]),[ae.SVG]:new Set([le.TITLE,le.FOREIGN_OBJECT,le.DESC]),[ae.XLINK]:new Set,[ae.XML]:new Set,[ae.XMLNS]:new Set},hl=new Set([le.H1,le.H2,le.H3,le.H4,le.H5,le.H6]);X.STYLE,X.SCRIPT,X.XMP,X.IFRAME,X.NOEMBED,X.NOFRAMES,X.PLAINTEXT;var M;(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"})(M||(M={}));const zt={DATA:M.DATA,RCDATA:M.RCDATA,RAWTEXT:M.RAWTEXT,SCRIPT_DATA:M.SCRIPT_DATA,PLAINTEXT:M.PLAINTEXT,CDATA_SECTION:M.CDATA_SECTION};function m8(e){return e>=R.DIGIT_0&&e<=R.DIGIT_9}function ya(e){return e>=R.LATIN_CAPITAL_A&&e<=R.LATIN_CAPITAL_Z}function g8(e){return e>=R.LATIN_SMALL_A&&e<=R.LATIN_SMALL_Z}function zn(e){return g8(e)||ya(e)}function _h(e){return zn(e)||m8(e)}function Ss(e){return e+32}function s1(e){return e===R.SPACE||e===R.LINE_FEED||e===R.TABULATION||e===R.FORM_FEED}function Ah(e){return s1(e)||e===R.SOLIDUS||e===R.GREATER_THAN_SIGN}function b8(e){return e===R.NULL?Q.nullCharacterReference:e>1114111?Q.characterReferenceOutsideUnicodeRange:r1(e)?Q.surrogateCharacterReference:i1(e)?Q.noncharacterCharacterReference:n1(e)||e===R.CARRIAGE_RETURN?Q.controlCharacterReference:null}class x8{constructor(t,r){this.options=t,this.handler=r,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=M.DATA,this.returnState=M.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new n8(r),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new h8(i8,(n,i)=>{this.preprocessor.pos=this.entityStartPos+i-1,this._flushCodePointConsumedAsCharacterReference(n)},r.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(Q.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:n=>{this._err(Q.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+n)},validateNumericCharacterReference:n=>{const i=b8(n);i&&this._err(i,1)}}:void 0)}_err(t,r=0){var n,i;(i=(n=this.handler).onParseError)===null||i===void 0||i.call(n,this.preprocessor.getError(t,r))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,r,n){this.active=!0,this.preprocessor.write(t,r),this._runParsingLoop(),this.paused||n?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),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(t){this.consumedAfterSnapshot+=t;for(let r=0;r<t;r++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,r){return this.preprocessor.startsWith(t,r)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:Ze.START_TAG,tagName:"",tagID:p.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Ze.END_TAG,tagName:"",tagID:p.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:Ze.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:Ze.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,r){this.currentCharacterToken={type:t,chars:r,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,r;const n=this.currentToken;if(a1(n,this.currentAttr.name)===null){if(n.attrs.push(this.currentAttr),n.location&&this.currentLocation){const i=(t=(r=n.location).attrs)!==null&&t!==void 0?t:r.attrs=Object.create(null);i[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(Q.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=ta(t.tagName),t.type===Ze.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(Q.endTagWithAttributes),t.selfClosing&&this._err(Q.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case Ze.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Ze.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Ze.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:Ze.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,r){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=r;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,r)}_emitCodePoint(t){const r=s1(t)?Ze.WHITESPACE_CHARACTER:t===R.NULL?Ze.NULL_CHARACTER:Ze.CHARACTER;this._appendCharToCurrentCharacterToken(r,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Ze.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=M.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Sn.Attribute:Sn.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===M.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===M.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===M.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case M.DATA:{this._stateData(t);break}case M.RCDATA:{this._stateRcdata(t);break}case M.RAWTEXT:{this._stateRawtext(t);break}case M.SCRIPT_DATA:{this._stateScriptData(t);break}case M.PLAINTEXT:{this._statePlaintext(t);break}case M.TAG_OPEN:{this._stateTagOpen(t);break}case M.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case M.TAG_NAME:{this._stateTagName(t);break}case M.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case M.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case M.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case M.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case M.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case M.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case M.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case M.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case M.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case M.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case M.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case M.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case M.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case M.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case M.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case M.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case M.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case M.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case M.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case M.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case M.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case M.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case M.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case M.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case M.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case M.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case M.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case M.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case M.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case M.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case M.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case M.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case M.BOGUS_COMMENT:{this._stateBogusComment(t);break}case M.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case M.COMMENT_START:{this._stateCommentStart(t);break}case M.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case M.COMMENT:{this._stateComment(t);break}case M.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case M.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case M.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case M.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case M.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case M.COMMENT_END:{this._stateCommentEnd(t);break}case M.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case M.DOCTYPE:{this._stateDoctype(t);break}case M.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case M.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case M.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case M.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case M.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case M.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case M.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case M.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case M.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case M.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case M.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case M.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case M.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case M.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case M.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case M.CDATA_SECTION:{this._stateCdataSection(t);break}case M.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case M.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case M.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case M.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case R.LESS_THAN_SIGN:{this.state=M.TAG_OPEN;break}case R.AMPERSAND:{this._startCharacterReference();break}case R.NULL:{this._err(Q.unexpectedNullCharacter),this._emitCodePoint(t);break}case R.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case R.AMPERSAND:{this._startCharacterReference();break}case R.LESS_THAN_SIGN:{this.state=M.RCDATA_LESS_THAN_SIGN;break}case R.NULL:{this._err(Q.unexpectedNullCharacter),this._emitChars(St);break}case R.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case R.LESS_THAN_SIGN:{this.state=M.RAWTEXT_LESS_THAN_SIGN;break}case R.NULL:{this._err(Q.unexpectedNullCharacter),this._emitChars(St);break}case R.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case R.LESS_THAN_SIGN:{this.state=M.SCRIPT_DATA_LESS_THAN_SIGN;break}case R.NULL:{this._err(Q.unexpectedNullCharacter),this._emitChars(St);break}case R.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case R.NULL:{this._err(Q.unexpectedNullCharacter),this._emitChars(St);break}case R.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(zn(t))this._createStartTagToken(),this.state=M.TAG_NAME,this._stateTagName(t);else switch(t){case R.EXCLAMATION_MARK:{this.state=M.MARKUP_DECLARATION_OPEN;break}case R.SOLIDUS:{this.state=M.END_TAG_OPEN;break}case R.QUESTION_MARK:{this._err(Q.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=M.BOGUS_COMMENT,this._stateBogusComment(t);break}case R.EOF:{this._err(Q.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(Q.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=M.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(zn(t))this._createEndTagToken(),this.state=M.TAG_NAME,this._stateTagName(t);else switch(t){case R.GREATER_THAN_SIGN:{this._err(Q.missingEndTagName),this.state=M.DATA;break}case R.EOF:{this._err(Q.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(Q.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=M.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const r=this.currentToken;switch(t){case R.SPACE:case R.LINE_FEED:case R.TABULATION:case R.FORM_FEED:{this.state=M.BEFORE_ATTRIBUTE_NAME;break}case R.SOLIDUS:{this.state=M.SELF_CLOSING_START_TAG;break}case R.GREATER_THAN_SIGN:{this.state=M.DATA,this.emitCurrentTagToken();break}case R.NULL:{this._err(Q.unexpectedNullCharacter),r.tagName+=St;break}case R.EOF:{this._err(Q.eofInTag),this._emitEOFToken();break}default:r.tagName+=String.fromCodePoint(ya(t)?Ss(t):t)}}_stateRcdataLessThanSign(t){t===R.SOLIDUS?this.state=M.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=M.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){zn(t)?(this.state=M.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=M.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const r=this.currentToken;switch(r.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case R.SPACE:case R.LINE_FEED:case R.TABULATION:case R.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=M.BEFORE_ATTRIBUTE_NAME,!1;case R.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=M.SELF_CLOSING_START_TAG,!1;case R.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=M.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=M.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===R.SOLIDUS?this.state=M.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=M.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){zn(t)?(this.state=M.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=M.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=M.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case R.SOLIDUS:{this.state=M.SCRIPT_DATA_END_TAG_OPEN;break}case R.EXCLAMATION_MARK:{this.state=M.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=M.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){zn(t)?(this.state=M.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=M.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=M.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===R.HYPHEN_MINUS?(this.state=M.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=M.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===R.HYPHEN_MINUS?(this.state=M.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=M.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case R.HYPHEN_MINUS:{this.state=M.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case R.LESS_THAN_SIGN:{this.state=M.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case R.NULL:{this._err(Q.unexpectedNullCharacter),this._emitChars(St);break}case R.EOF:{this._err(Q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case R.HYPHEN_MINUS:{this.state=M.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case R.LESS_THAN_SIGN:{this.state=M.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case R.NULL:{this._err(Q.unexpectedNullCharacter),this.state=M.SCRIPT_DATA_ESCAPED,this._emitChars(St);break}case R.EOF:{this._err(Q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=M.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case R.HYPHEN_MINUS:{this._emitChars("-");break}case R.LESS_THAN_SIGN:{this.state=M.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case R.GREATER_THAN_SIGN:{this.state=M.SCRIPT_DATA,this._emitChars(">");break}case R.NULL:{this._err(Q.unexpectedNullCharacter),this.state=M.SCRIPT_DATA_ESCAPED,this._emitChars(St);break}case R.EOF:{this._err(Q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=M.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===R.SOLIDUS?this.state=M.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:zn(t)?(this._emitChars("<"),this.state=M.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=M.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){zn(t)?(this.state=M.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=M.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=M.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(Ar.SCRIPT,!1)&&Ah(this.preprocessor.peek(Ar.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<Ar.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=M.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=M.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case R.HYPHEN_MINUS:{this.state=M.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case R.LESS_THAN_SIGN:{this.state=M.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case R.NULL:{this._err(Q.unexpectedNullCharacter),this._emitChars(St);break}case R.EOF:{this._err(Q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case R.HYPHEN_MINUS:{this.state=M.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case R.LESS_THAN_SIGN:{this.state=M.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case R.NULL:{this._err(Q.unexpectedNullCharacter),this.state=M.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(St);break}case R.EOF:{this._err(Q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=M.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case R.HYPHEN_MINUS:{this._emitChars("-");break}case R.LESS_THAN_SIGN:{this.state=M.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case R.GREATER_THAN_SIGN:{this.state=M.SCRIPT_DATA,this._emitChars(">");break}case R.NULL:{this._err(Q.unexpectedNullCharacter),this.state=M.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(St);break}case R.EOF:{this._err(Q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=M.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===R.SOLIDUS?(this.state=M.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=M.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Ar.SCRIPT,!1)&&Ah(this.preprocessor.peek(Ar.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<Ar.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=M.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=M.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case R.SPACE:case R.LINE_FEED:case R.TABULATION:case R.FORM_FEED:break;case R.SOLIDUS:case R.GREATER_THAN_SIGN:case R.EOF:{this.state=M.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case R.EQUALS_SIGN:{this._err(Q.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=M.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=M.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case R.SPACE:case R.LINE_FEED:case R.TABULATION:case R.FORM_FEED:case R.SOLIDUS:case R.GREATER_THAN_SIGN:case R.EOF:{this._leaveAttrName(),this.state=M.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case R.EQUALS_SIGN:{this._leaveAttrName(),this.state=M.BEFORE_ATTRIBUTE_VALUE;break}case R.QUOTATION_MARK:case R.APOSTROPHE:case R.LESS_THAN_SIGN:{this._err(Q.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case R.NULL:{this._err(Q.unexpectedNullCharacter),this.currentAttr.name+=St;break}default:this.currentAttr.name+=String.fromCodePoint(ya(t)?Ss(t):t)}}_stateAfterAttributeName(t){switch(t){case R.SPACE:case R.LINE_FEED:case R.TABULATION:case R.FORM_FEED:break;case R.SOLIDUS:{this.state=M.SELF_CLOSING_START_TAG;break}case R.EQUALS_SIGN:{this.state=M.BEFORE_ATTRIBUTE_VALUE;break}case R.GREATER_THAN_SIGN:{this.state=M.DATA,this.emitCurrentTagToken();break}case R.EOF:{this._err(Q.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=M.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case R.SPACE:case R.LINE_FEED:case R.TABULATION:case R.FORM_FEED:break;case R.QUOTATION_MARK:{this.state=M.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case R.APOSTROPHE:{this.state=M.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case R.GREATER_THAN_SIGN:{this._err(Q.missingAttributeValue),this.state=M.DATA,this.emitCurrentTagToken();break}default:this.state=M.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case R.QUOTATION_MARK:{this.state=M.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case R.AMPERSAND:{this._startCharacterReference();break}case R.NULL:{this._err(Q.unexpectedNullCharacter),this.currentAttr.value+=St;break}case R.EOF:{this._err(Q.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case R.APOSTROPHE:{this.state=M.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case R.AMPERSAND:{this._startCharacterReference();break}case R.NULL:{this._err(Q.unexpectedNullCharacter),this.currentAttr.value+=St;break}case R.EOF:{this._err(Q.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case R.SPACE:case R.LINE_FEED:case R.TABULATION:case R.FORM_FEED:{this._leaveAttrValue(),this.state=M.BEFORE_ATTRIBUTE_NAME;break}case R.AMPERSAND:{this._startCharacterReference();break}case R.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=M.DATA,this.emitCurrentTagToken();break}case R.NULL:{this._err(Q.unexpectedNullCharacter),this.currentAttr.value+=St;break}case R.QUOTATION_MARK:case R.APOSTROPHE:case R.LESS_THAN_SIGN:case R.EQUALS_SIGN:case R.GRAVE_ACCENT:{this._err(Q.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case R.EOF:{this._err(Q.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case R.SPACE:case R.LINE_FEED:case R.TABULATION:case R.FORM_FEED:{this._leaveAttrValue(),this.state=M.BEFORE_ATTRIBUTE_NAME;break}case R.SOLIDUS:{this._leaveAttrValue(),this.state=M.SELF_CLOSING_START_TAG;break}case R.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=M.DATA,this.emitCurrentTagToken();break}case R.EOF:{this._err(Q.eofInTag),this._emitEOFToken();break}default:this._err(Q.missingWhitespaceBetweenAttributes),this.state=M.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case R.GREATER_THAN_SIGN:{const r=this.currentToken;r.selfClosing=!0,this.state=M.DATA,this.emitCurrentTagToken();break}case R.EOF:{this._err(Q.eofInTag),this._emitEOFToken();break}default:this._err(Q.unexpectedSolidusInTag),this.state=M.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const r=this.currentToken;switch(t){case R.GREATER_THAN_SIGN:{this.state=M.DATA,this.emitCurrentComment(r);break}case R.EOF:{this.emitCurrentComment(r),this._emitEOFToken();break}case R.NULL:{this._err(Q.unexpectedNullCharacter),r.data+=St;break}default:r.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(Ar.DASH_DASH,!0)?(this._createCommentToken(Ar.DASH_DASH.length+1),this.state=M.COMMENT_START):this._consumeSequenceIfMatch(Ar.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Ar.DOCTYPE.length+1),this.state=M.DOCTYPE):this._consumeSequenceIfMatch(Ar.CDATA_START,!0)?this.inForeignNode?this.state=M.CDATA_SECTION:(this._err(Q.cdataInHtmlContent),this._createCommentToken(Ar.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=M.BOGUS_COMMENT):this._ensureHibernation()||(this._err(Q.incorrectlyOpenedComment),this._createCommentToken(2),this.state=M.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case R.HYPHEN_MINUS:{this.state=M.COMMENT_START_DASH;break}case R.GREATER_THAN_SIGN:{this._err(Q.abruptClosingOfEmptyComment),this.state=M.DATA;const r=this.currentToken;this.emitCurrentComment(r);break}default:this.state=M.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const r=this.currentToken;switch(t){case R.HYPHEN_MINUS:{this.state=M.COMMENT_END;break}case R.GREATER_THAN_SIGN:{this._err(Q.abruptClosingOfEmptyComment),this.state=M.DATA,this.emitCurrentComment(r);break}case R.EOF:{this._err(Q.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=M.COMMENT,this._stateComment(t)}}_stateComment(t){const r=this.currentToken;switch(t){case R.HYPHEN_MINUS:{this.state=M.COMMENT_END_DASH;break}case R.LESS_THAN_SIGN:{r.data+="<",this.state=M.COMMENT_LESS_THAN_SIGN;break}case R.NULL:{this._err(Q.unexpectedNullCharacter),r.data+=St;break}case R.EOF:{this._err(Q.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const r=this.currentToken;switch(t){case R.EXCLAMATION_MARK:{r.data+="!",this.state=M.COMMENT_LESS_THAN_SIGN_BANG;break}case R.LESS_THAN_SIGN:{r.data+="<";break}default:this.state=M.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===R.HYPHEN_MINUS?this.state=M.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=M.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===R.HYPHEN_MINUS?this.state=M.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=M.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==R.GREATER_THAN_SIGN&&t!==R.EOF&&this._err(Q.nestedComment),this.state=M.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const r=this.currentToken;switch(t){case R.HYPHEN_MINUS:{this.state=M.COMMENT_END;break}case R.EOF:{this._err(Q.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=M.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const r=this.currentToken;switch(t){case R.GREATER_THAN_SIGN:{this.state=M.DATA,this.emitCurrentComment(r);break}case R.EXCLAMATION_MARK:{this.state=M.COMMENT_END_BANG;break}case R.HYPHEN_MINUS:{r.data+="-";break}case R.EOF:{this._err(Q.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--",this.state=M.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const r=this.currentToken;switch(t){case R.HYPHEN_MINUS:{r.data+="--!",this.state=M.COMMENT_END_DASH;break}case R.GREATER_THAN_SIGN:{this._err(Q.incorrectlyClosedComment),this.state=M.DATA,this.emitCurrentComment(r);break}case R.EOF:{this._err(Q.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--!",this.state=M.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case R.SPACE:case R.LINE_FEED:case R.TABULATION:case R.FORM_FEED:{this.state=M.BEFORE_DOCTYPE_NAME;break}case R.GREATER_THAN_SIGN:{this.state=M.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case R.EOF:{this._err(Q.eofInDoctype),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(Q.missingWhitespaceBeforeDoctypeName),this.state=M.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(ya(t))this._createDoctypeToken(String.fromCharCode(Ss(t))),this.state=M.DOCTYPE_NAME;else switch(t){case R.SPACE:case R.LINE_FEED:case R.TABULATION:case R.FORM_FEED:break;case R.NULL:{this._err(Q.unexpectedNullCharacter),this._createDoctypeToken(St),this.state=M.DOCTYPE_NAME;break}case R.GREATER_THAN_SIGN:{this._err(Q.missingDoctypeName),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=M.DATA;break}case R.EOF:{this._err(Q.eofInDoctype),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=M.DOCTYPE_NAME}}_stateDoctypeName(t){const r=this.currentToken;switch(t){case R.SPACE:case R.LINE_FEED:case R.TABULATION:case R.FORM_FEED:{this.state=M.AFTER_DOCTYPE_NAME;break}case R.GREATER_THAN_SIGN:{this.state=M.DATA,this.emitCurrentDoctype(r);break}case R.NULL:{this._err(Q.unexpectedNullCharacter),r.name+=St;break}case R.EOF:{this._err(Q.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.name+=String.fromCodePoint(ya(t)?Ss(t):t)}}_stateAfterDoctypeName(t){const r=this.currentToken;switch(t){case R.SPACE:case R.LINE_FEED:case R.TABULATION:case R.FORM_FEED:break;case R.GREATER_THAN_SIGN:{this.state=M.DATA,this.emitCurrentDoctype(r);break}case R.EOF:{this._err(Q.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Ar.PUBLIC,!1)?this.state=M.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Ar.SYSTEM,!1)?this.state=M.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(Q.invalidCharacterSequenceAfterDoctypeName),r.forceQuirks=!0,this.state=M.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const r=this.currentToken;switch(t){case R.SPACE:case R.LINE_FEED:case R.TABULATION:case R.FORM_FEED:{this.state=M.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case R.QUOTATION_MARK:{this._err(Q.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=M.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case R.APOSTROPHE:{this._err(Q.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=M.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case R.GREATER_THAN_SIGN:{this._err(Q.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=M.DATA,this.emitCurrentDoctype(r);break}case R.EOF:{this._err(Q.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(Q.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=M.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const r=this.currentToken;switch(t){case R.SPACE:case R.LINE_FEED:case R.TABULATION:case R.FORM_FEED:break;case R.QUOTATION_MARK:{r.publicId="",this.state=M.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case R.APOSTROPHE:{r.publicId="",this.state=M.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case R.GREATER_THAN_SIGN:{this._err(Q.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=M.DATA,this.emitCurrentDoctype(r);break}case R.EOF:{this._err(Q.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(Q.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=M.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const r=this.currentToken;switch(t){case R.QUOTATION_MARK:{this.state=M.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case R.NULL:{this._err(Q.unexpectedNullCharacter),r.publicId+=St;break}case R.GREATER_THAN_SIGN:{this._err(Q.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=M.DATA;break}case R.EOF:{this._err(Q.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const r=this.currentToken;switch(t){case R.APOSTROPHE:{this.state=M.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case R.NULL:{this._err(Q.unexpectedNullCharacter),r.publicId+=St;break}case R.GREATER_THAN_SIGN:{this._err(Q.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=M.DATA;break}case R.EOF:{this._err(Q.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const r=this.currentToken;switch(t){case R.SPACE:case R.LINE_FEED:case R.TABULATION:case R.FORM_FEED:{this.state=M.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case R.GREATER_THAN_SIGN:{this.state=M.DATA,this.emitCurrentDoctype(r);break}case R.QUOTATION_MARK:{this._err(Q.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=M.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case R.APOSTROPHE:{this._err(Q.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=M.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case R.EOF:{this._err(Q.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(Q.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=M.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const r=this.currentToken;switch(t){case R.SPACE:case R.LINE_FEED:case R.TABULATION:case R.FORM_FEED:break;case R.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=M.DATA;break}case R.QUOTATION_MARK:{r.systemId="",this.state=M.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case R.APOSTROPHE:{r.systemId="",this.state=M.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case R.EOF:{this._err(Q.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(Q.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=M.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const r=this.currentToken;switch(t){case R.SPACE:case R.LINE_FEED:case R.TABULATION:case R.FORM_FEED:{this.state=M.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case R.QUOTATION_MARK:{this._err(Q.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=M.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case R.APOSTROPHE:{this._err(Q.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=M.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case R.GREATER_THAN_SIGN:{this._err(Q.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=M.DATA,this.emitCurrentDoctype(r);break}case R.EOF:{this._err(Q.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(Q.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=M.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const r=this.currentToken;switch(t){case R.SPACE:case R.LINE_FEED:case R.TABULATION:case R.FORM_FEED:break;case R.QUOTATION_MARK:{r.systemId="",this.state=M.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case R.APOSTROPHE:{r.systemId="",this.state=M.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case R.GREATER_THAN_SIGN:{this._err(Q.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=M.DATA,this.emitCurrentDoctype(r);break}case R.EOF:{this._err(Q.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(Q.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=M.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const r=this.currentToken;switch(t){case R.QUOTATION_MARK:{this.state=M.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case R.NULL:{this._err(Q.unexpectedNullCharacter),r.systemId+=St;break}case R.GREATER_THAN_SIGN:{this._err(Q.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=M.DATA;break}case R.EOF:{this._err(Q.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const r=this.currentToken;switch(t){case R.APOSTROPHE:{this.state=M.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case R.NULL:{this._err(Q.unexpectedNullCharacter),r.systemId+=St;break}case R.GREATER_THAN_SIGN:{this._err(Q.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=M.DATA;break}case R.EOF:{this._err(Q.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const r=this.currentToken;switch(t){case R.SPACE:case R.LINE_FEED:case R.TABULATION:case R.FORM_FEED:break;case R.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=M.DATA;break}case R.EOF:{this._err(Q.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(Q.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=M.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const r=this.currentToken;switch(t){case R.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=M.DATA;break}case R.NULL:{this._err(Q.unexpectedNullCharacter);break}case R.EOF:{this.emitCurrentDoctype(r),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case R.RIGHT_SQUARE_BRACKET:{this.state=M.CDATA_SECTION_BRACKET;break}case R.EOF:{this._err(Q.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===R.RIGHT_SQUARE_BRACKET?this.state=M.CDATA_SECTION_END:(this._emitChars("]"),this.state=M.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case R.GREATER_THAN_SIGN:{this.state=M.DATA;break}case R.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=M.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(R.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&_h(this.preprocessor.peek(1))?M.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){_h(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===R.SEMICOLON&&this._err(Q.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const o1=new Set([p.DD,p.DT,p.LI,p.OPTGROUP,p.OPTION,p.P,p.RB,p.RP,p.RT,p.RTC]),Sh=new Set([...o1,p.CAPTION,p.COLGROUP,p.TBODY,p.TD,p.TFOOT,p.TH,p.THEAD,p.TR]),js=new Set([p.APPLET,p.CAPTION,p.HTML,p.MARQUEE,p.OBJECT,p.TABLE,p.TD,p.TEMPLATE,p.TH]),E8=new Set([...js,p.OL,p.UL]),y8=new Set([...js,p.BUTTON]),wh=new Set([p.ANNOTATION_XML,p.MI,p.MN,p.MO,p.MS,p.MTEXT]),kh=new Set([p.DESC,p.FOREIGN_OBJECT,p.TITLE]),v8=new Set([p.TR,p.TEMPLATE,p.HTML]),T8=new Set([p.TBODY,p.TFOOT,p.THEAD,p.TEMPLATE,p.HTML]),_8=new Set([p.TABLE,p.TEMPLATE,p.HTML]),A8=new Set([p.TD,p.TH]);class S8{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,r,n){this.treeAdapter=r,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=p.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===p.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===ae.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,r){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=r,this.currentTagId=r,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,r,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,r){const n=this._indexOf(t);this.items[n]=r,n===this.stackTop&&(this.current=r)}insertAfter(t,r,n){const i=this._indexOf(t)+1;this.items.splice(i,0,r),this.tagIDs.splice(i,0,n),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(t){let r=this.stackTop+1;do r=this.tagIDs.lastIndexOf(t,r-1);while(r>0&&this.treeAdapter.getNamespaceURI(this.items[r])!==ae.HTML);this.shortenToLength(Math.max(r,0))}shortenToLength(t){for(;this.stackTop>=t;){const r=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(r,this.stackTop<t)}}popUntilElementPopped(t){const r=this._indexOf(t);this.shortenToLength(Math.max(r,0))}popUntilPopped(t,r){const n=this._indexOfTagNames(t,r);this.shortenToLength(Math.max(n,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(hl,ae.HTML)}popUntilTableCellPopped(){this.popUntilPopped(A8,ae.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,r){for(let n=this.stackTop;n>=0;n--)if(t.has(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===r)return n;return-1}clearBackTo(t,r){const n=this._indexOfTagNames(t,r);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(_8,ae.HTML)}clearBackToTableBodyContext(){this.clearBackTo(T8,ae.HTML)}clearBackToTableRowContext(){this.clearBackTo(v8,ae.HTML)}remove(t){const r=this._indexOf(t);r>=0&&(r===this.stackTop?this.pop():(this.items.splice(r,1),this.tagIDs.splice(r,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===p.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const r=this._indexOf(t)-1;return r>=0?this.items[r]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===p.HTML}hasInDynamicScope(t,r){for(let n=this.stackTop;n>=0;n--){const i=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case ae.HTML:{if(i===t)return!0;if(r.has(i))return!1;break}case ae.SVG:{if(kh.has(i))return!1;break}case ae.MATHML:{if(wh.has(i))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,js)}hasInListItemScope(t){return this.hasInDynamicScope(t,E8)}hasInButtonScope(t){return this.hasInDynamicScope(t,y8)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const r=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case ae.HTML:{if(hl.has(r))return!0;if(js.has(r))return!1;break}case ae.SVG:{if(kh.has(r))return!1;break}case ae.MATHML:{if(wh.has(r))return!1;break}}}return!0}hasInTableScope(t){for(let r=this.stackTop;r>=0;r--)if(this.treeAdapter.getNamespaceURI(this.items[r])===ae.HTML)switch(this.tagIDs[r]){case t:return!0;case p.TABLE:case p.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===ae.HTML)switch(this.tagIDs[t]){case p.TBODY:case p.THEAD:case p.TFOOT:return!0;case p.TABLE:case p.HTML:return!1}return!0}hasInSelectScope(t){for(let r=this.stackTop;r>=0;r--)if(this.treeAdapter.getNamespaceURI(this.items[r])===ae.HTML)switch(this.tagIDs[r]){case t:return!0;case p.OPTION:case p.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&o1.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&Sh.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&Sh.has(this.currentTagId);)this.pop()}}const _u=3;var cn;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(cn||(cn={}));const Ch={type:cn.Marker};class w8{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,r){const n=[],i=r.length,a=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let u=0;u<this.entries.length;u++){const l=this.entries[u];if(l.type===cn.Marker)break;const{element:c}=l;if(this.treeAdapter.getTagName(c)===a&&this.treeAdapter.getNamespaceURI(c)===s){const f=this.treeAdapter.getAttrList(c);f.length===i&&n.push({idx:u,attrs:f})}}return n}_ensureNoahArkCondition(t){if(this.entries.length<_u)return;const r=this.treeAdapter.getAttrList(t),n=this._getNoahArkConditionCandidates(t,r);if(n.length<_u)return;const i=new Map(r.map(s=>[s.name,s.value]));let a=0;for(let s=0;s<n.length;s++){const u=n[s];u.attrs.every(l=>i.get(l.name)===l.value)&&(a+=1,a>=_u&&this.entries.splice(u.idx,1))}}insertMarker(){this.entries.unshift(Ch)}pushElement(t,r){this._ensureNoahArkCondition(t),this.entries.unshift({type:cn.Element,element:t,token:r})}insertElementAfterBookmark(t,r){const n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:cn.Element,element:t,token:r})}removeEntry(t){const r=this.entries.indexOf(t);r!==-1&&this.entries.splice(r,1)}clearToLastMarker(){const t=this.entries.indexOf(Ch);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const r=this.entries.find(n=>n.type===cn.Marker||this.treeAdapter.getTagName(n.element)===t);return r&&r.type===cn.Element?r:null}getElementEntry(t){return this.entries.find(r=>r.type===cn.Element&&r.element===t)}}const Hn={createDocument(){return{nodeName:"#document",mode:Yr.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,r){return{nodeName:e,tagName:e,attrs:r,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,r){const n=e.childNodes.indexOf(r);e.childNodes.splice(n,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,r,n){const i=e.childNodes.find(a=>a.nodeName==="#documentType");if(i)i.name=t,i.publicId=r,i.systemId=n;else{const a={nodeName:"#documentType",name:t,publicId:r,systemId:n,parentNode:null};Hn.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const r=e.childNodes[e.childNodes.length-1];if(Hn.isTextNode(r)){r.value+=t;return}}Hn.appendChild(e,Hn.createTextNode(t))},insertTextBefore(e,t,r){const n=e.childNodes[e.childNodes.indexOf(r)-1];n&&Hn.isTextNode(n)?n.value+=t:Hn.insertBefore(e,Hn.createTextNode(t),r)},adoptAttributes(e,t){const r=new Set(e.attrs.map(n=>n.name));for(let n=0;n<t.length;n++)r.has(t[n].name)||e.attrs.push(t[n])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},u1="html",k8="about:legacy-compat",C8="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",l1=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],N8=[...l1,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],I8=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),c1=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],O8=[...c1,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Nh(e,t){return t.some(r=>e.startsWith(r))}function R8(e){return e.name===u1&&e.publicId===null&&(e.systemId===null||e.systemId===k8)}function L8(e){if(e.name!==u1)return Yr.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===C8)return Yr.QUIRKS;let{publicId:r}=e;if(r!==null){if(r=r.toLowerCase(),I8.has(r))return Yr.QUIRKS;let n=t===null?N8:l1;if(Nh(r,n))return Yr.QUIRKS;if(n=t===null?c1:O8,Nh(r,n))return Yr.LIMITED_QUIRKS}return Yr.NO_QUIRKS}const Ih={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},M8="definitionurl",D8="definitionURL",P8=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"].map(e=>[e.toLowerCase(),e])),B8=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:ae.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:ae.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:ae.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:ae.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:ae.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:ae.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:ae.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:ae.XML}],["xml:space",{prefix:"xml",name:"space",namespace:ae.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:ae.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:ae.XMLNS}]]),F8=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"].map(e=>[e.toLowerCase(),e])),U8=new Set([p.B,p.BIG,p.BLOCKQUOTE,p.BODY,p.BR,p.CENTER,p.CODE,p.DD,p.DIV,p.DL,p.DT,p.EM,p.EMBED,p.H1,p.H2,p.H3,p.H4,p.H5,p.H6,p.HEAD,p.HR,p.I,p.IMG,p.LI,p.LISTING,p.MENU,p.META,p.NOBR,p.OL,p.P,p.PRE,p.RUBY,p.S,p.SMALL,p.SPAN,p.STRONG,p.STRIKE,p.SUB,p.SUP,p.TABLE,p.TT,p.U,p.UL,p.VAR]);function z8(e){const t=e.tagID;return t===p.FONT&&e.attrs.some(({name:n})=>n===li.COLOR||n===li.SIZE||n===li.FACE)||U8.has(t)}function h1(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===M8){e.attrs[t].name=D8;break}}function f1(e){for(let t=0;t<e.attrs.length;t++){const r=P8.get(e.attrs[t].name);r!=null&&(e.attrs[t].name=r)}}function s0(e){for(let t=0;t<e.attrs.length;t++){const r=B8.get(e.attrs[t].name);r&&(e.attrs[t].prefix=r.prefix,e.attrs[t].name=r.name,e.attrs[t].namespace=r.namespace)}}function H8(e){const t=F8.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=ta(e.tagName))}function V8(e,t){return t===ae.MATHML&&(e===p.MI||e===p.MO||e===p.MN||e===p.MS||e===p.MTEXT)}function q8(e,t,r){if(t===ae.MATHML&&e===p.ANNOTATION_XML){for(let n=0;n<r.length;n++)if(r[n].name===li.ENCODING){const i=r[n].value.toLowerCase();return i===Ih.TEXT_HTML||i===Ih.APPLICATION_XML}}return t===ae.SVG&&(e===p.FOREIGN_OBJECT||e===p.DESC||e===p.TITLE)}function G8(e,t,r,n){return(!n||n===ae.HTML)&&q8(e,t,r)||(!n||n===ae.MATHML)&&V8(e,t)}const Y8="hidden",W8=8,$8=3;var z;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(z||(z={}));const K8={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},d1=new Set([p.TABLE,p.TBODY,p.TFOOT,p.THEAD,p.TR]),Oh={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Hn,onParseError:null};class Rh{constructor(t,r,n=null,i=null){this.fragmentContext=n,this.scriptHandler=i,this.currentToken=null,this.stopped=!1,this.insertionMode=z.INITIAL,this.originalInsertionMode=z.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...Oh,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=r??this.treeAdapter.createDocument(),this.tokenizer=new x8(this.options,this),this.activeFormattingElements=new w8(this.treeAdapter),this.fragmentContextID=n?ta(this.treeAdapter.getTagName(n)):p.UNKNOWN,this._setContextModes(n??this.document,this.fragmentContextID),this.openElements=new S8(this.document,this.treeAdapter,this)}static parse(t,r){const n=new this(r);return n.tokenizer.write(t,!0),n.document}static getFragmentParser(t,r){const n={...Oh,...r};t??(t=n.treeAdapter.createElement(X.TEMPLATE,ae.HTML,[]));const i=n.treeAdapter.createElement("documentmock",ae.HTML,[]),a=new this(n,i,t);return a.fragmentContextID===p.TEMPLATE&&a.tmplInsertionModeStack.unshift(z.IN_TEMPLATE),a._initTokenizerForFragmentParsing(),a._insertFakeRootElement(),a._resetInsertionMode(),a._findFormInFragmentContext(),a}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),r=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,r),r}_err(t,r,n){var i;if(!this.onParseError)return;const a=(i=t.location)!==null&&i!==void 0?i:K8,s={code:r,startLine:a.startLine,startCol:a.startCol,startOffset:a.startOffset,endLine:n?a.startLine:a.endLine,endCol:n?a.startCol:a.endCol,endOffset:n?a.startOffset:a.endOffset};this.onParseError(s)}onItemPush(t,r,n){var i,a;(a=(i=this.treeAdapter).onItemPush)===null||a===void 0||a.call(i,t),n&&this.openElements.stackTop>0&&this._setContextModes(t,r)}onItemPop(t,r){var n,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(n=this.treeAdapter).onItemPop)===null||i===void 0||i.call(n,t,this.openElements.current),r){let a,s;this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,s=this.fragmentContextID):{current:a,currentTagId:s}=this.openElements,this._setContextModes(a,s)}}_setContextModes(t,r){const n=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===ae.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&t!==void 0&&r!==void 0&&!this._isIntegrationPoint(r,t)}_switchToTextParsing(t,r){this._insertElement(t,ae.HTML),this.tokenizer.state=r,this.originalInsertionMode=this.insertionMode,this.insertionMode=z.TEXT}switchToPlaintextParsing(){this.insertionMode=z.TEXT,this.originalInsertionMode=z.IN_BODY,this.tokenizer.state=zt.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===X.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==ae.HTML))switch(this.fragmentContextID){case p.TITLE:case p.TEXTAREA:{this.tokenizer.state=zt.RCDATA;break}case p.STYLE:case p.XMP:case p.IFRAME:case p.NOEMBED:case p.NOFRAMES:case p.NOSCRIPT:{this.tokenizer.state=zt.RAWTEXT;break}case p.SCRIPT:{this.tokenizer.state=zt.SCRIPT_DATA;break}case p.PLAINTEXT:{this.tokenizer.state=zt.PLAINTEXT;break}}}_setDocumentType(t){const r=t.name||"",n=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,r,n,i),t.location){const s=this.treeAdapter.getChildNodes(this.document).find(u=>this.treeAdapter.isDocumentTypeNode(u));s&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}}_attachElementToTree(t,r){if(this.options.sourceCodeLocationInfo){const n=r&&{...r,startTag:r};this.treeAdapter.setNodeSourceCodeLocation(t,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const n=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(n??this.document,t)}}_appendElement(t,r){const n=this.treeAdapter.createElement(t.tagName,r,t.attrs);this._attachElementToTree(n,t.location)}_insertElement(t,r){const n=this.treeAdapter.createElement(t.tagName,r,t.attrs);this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID)}_insertFakeElement(t,r){const n=this.treeAdapter.createElement(t,ae.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,r)}_insertTemplate(t){const r=this.treeAdapter.createElement(t.tagName,ae.HTML,t.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(r,n),this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(X.HTML,ae.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,p.HTML)}_appendCommentNode(t,r){const n=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(r,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,t.location)}_insertCharacters(t){let r,n;if(this._shouldFosterParentOnInsertion()?({parent:r,beforeElement:n}=this._findFosterParentingLocation(),n?this.treeAdapter.insertTextBefore(r,t.chars,n):this.treeAdapter.insertText(r,t.chars)):(r=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(r,t.chars)),!t.location)return;const i=this.treeAdapter.getChildNodes(r),a=n?i.lastIndexOf(n):i.length,s=i[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:l,endCol:c,endOffset:f}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:l,endCol:c,endOffset:f})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_adoptNodes(t,r){for(let n=this.treeAdapter.getFirstChild(t);n;n=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(r,n)}_setEndLocation(t,r){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&r.location){const n=r.location,i=this.treeAdapter.getTagName(t),a=r.type===Ze.END_TAG&&i===r.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,a)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let r,n;return this.openElements.stackTop===0&&this.fragmentContext?(r=this.fragmentContext,n=this.fragmentContextID):{current:r,currentTagId:n}=this.openElements,t.tagID===p.SVG&&this.treeAdapter.getTagName(r)===X.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(r)===ae.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===p.MGLYPH||t.tagID===p.MALIGNMARK)&&n!==void 0&&!this._isIntegrationPoint(n,r,ae.HTML)}_processToken(t){switch(t.type){case Ze.CHARACTER:{this.onCharacter(t);break}case Ze.NULL_CHARACTER:{this.onNullCharacter(t);break}case Ze.COMMENT:{this.onComment(t);break}case Ze.DOCTYPE:{this.onDoctype(t);break}case Ze.START_TAG:{this._processStartTag(t);break}case Ze.END_TAG:{this.onEndTag(t);break}case Ze.EOF:{this.onEof(t);break}case Ze.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,r,n){const i=this.treeAdapter.getNamespaceURI(r),a=this.treeAdapter.getAttrList(r);return G8(t,i,a,n)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const r=this.activeFormattingElements.entries.findIndex(i=>i.type===cn.Marker||this.openElements.contains(i.element)),n=r===-1?t-1:r-1;for(let i=n;i>=0;i--){const a=this.activeFormattingElements.entries[i];this._insertElement(a.token,this.treeAdapter.getNamespaceURI(a.element)),a.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=z.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(p.P),this.openElements.popUntilTagNamePopped(p.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case p.TR:{this.insertionMode=z.IN_ROW;return}case p.TBODY:case p.THEAD:case p.TFOOT:{this.insertionMode=z.IN_TABLE_BODY;return}case p.CAPTION:{this.insertionMode=z.IN_CAPTION;return}case p.COLGROUP:{this.insertionMode=z.IN_COLUMN_GROUP;return}case p.TABLE:{this.insertionMode=z.IN_TABLE;return}case p.BODY:{this.insertionMode=z.IN_BODY;return}case p.FRAMESET:{this.insertionMode=z.IN_FRAMESET;return}case p.SELECT:{this._resetInsertionModeForSelect(t);return}case p.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case p.HTML:{this.insertionMode=this.headElement?z.AFTER_HEAD:z.BEFORE_HEAD;return}case p.TD:case p.TH:{if(t>0){this.insertionMode=z.IN_CELL;return}break}case p.HEAD:{if(t>0){this.insertionMode=z.IN_HEAD;return}break}}this.insertionMode=z.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let r=t-1;r>0;r--){const n=this.openElements.tagIDs[r];if(n===p.TEMPLATE)break;if(n===p.TABLE){this.insertionMode=z.IN_SELECT_IN_TABLE;return}}this.insertionMode=z.IN_SELECT}_isElementCausesFosterParenting(t){return d1.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const r=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case p.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(r)===ae.HTML)return{parent:this.treeAdapter.getTemplateContent(r),beforeElement:null};break}case p.TABLE:{const n=this.treeAdapter.getParentNode(r);return n?{parent:n,beforeElement:r}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const r=this._findFosterParentingLocation();r.beforeElement?this.treeAdapter.insertBefore(r.parent,t,r.beforeElement):this.treeAdapter.appendChild(r.parent,t)}_isSpecialElement(t,r){const n=this.treeAdapter.getNamespaceURI(t);return p8[n].has(r)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Av(this,t);return}switch(this.insertionMode){case z.INITIAL:{ga(this,t);break}case z.BEFORE_HTML:{wa(this,t);break}case z.BEFORE_HEAD:{ka(this,t);break}case z.IN_HEAD:{Ca(this,t);break}case z.IN_HEAD_NO_SCRIPT:{Na(this,t);break}case z.AFTER_HEAD:{Ia(this,t);break}case z.IN_BODY:case z.IN_CAPTION:case z.IN_CELL:case z.IN_TEMPLATE:{m1(this,t);break}case z.TEXT:case z.IN_SELECT:case z.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case z.IN_TABLE:case z.IN_TABLE_BODY:case z.IN_ROW:{Au(this,t);break}case z.IN_TABLE_TEXT:{v1(this,t);break}case z.IN_COLUMN_GROUP:{Js(this,t);break}case z.AFTER_BODY:{Qs(this,t);break}case z.AFTER_AFTER_BODY:{Rs(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){_v(this,t);return}switch(this.insertionMode){case z.INITIAL:{ga(this,t);break}case z.BEFORE_HTML:{wa(this,t);break}case z.BEFORE_HEAD:{ka(this,t);break}case z.IN_HEAD:{Ca(this,t);break}case z.IN_HEAD_NO_SCRIPT:{Na(this,t);break}case z.AFTER_HEAD:{Ia(this,t);break}case z.TEXT:{this._insertCharacters(t);break}case z.IN_TABLE:case z.IN_TABLE_BODY:case z.IN_ROW:{Au(this,t);break}case z.IN_COLUMN_GROUP:{Js(this,t);break}case z.AFTER_BODY:{Qs(this,t);break}case z.AFTER_AFTER_BODY:{Rs(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){fl(this,t);return}switch(this.insertionMode){case z.INITIAL:case z.BEFORE_HTML:case z.BEFORE_HEAD:case z.IN_HEAD:case z.IN_HEAD_NO_SCRIPT:case z.AFTER_HEAD:case z.IN_BODY:case z.IN_TABLE:case z.IN_CAPTION:case z.IN_COLUMN_GROUP:case z.IN_TABLE_BODY:case z.IN_ROW:case z.IN_CELL:case z.IN_SELECT:case z.IN_SELECT_IN_TABLE:case z.IN_TEMPLATE:case z.IN_FRAMESET:case z.AFTER_FRAMESET:{fl(this,t);break}case z.IN_TABLE_TEXT:{ba(this,t);break}case z.AFTER_BODY:{ty(this,t);break}case z.AFTER_AFTER_BODY:case z.AFTER_AFTER_FRAMESET:{ry(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case z.INITIAL:{ny(this,t);break}case z.BEFORE_HEAD:case z.IN_HEAD:case z.IN_HEAD_NO_SCRIPT:case z.AFTER_HEAD:{this._err(t,Q.misplacedDoctype);break}case z.IN_TABLE_TEXT:{ba(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,Q.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?Sv(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case z.INITIAL:{ga(this,t);break}case z.BEFORE_HTML:{iy(this,t);break}case z.BEFORE_HEAD:{sy(this,t);break}case z.IN_HEAD:{nn(this,t);break}case z.IN_HEAD_NO_SCRIPT:{ly(this,t);break}case z.AFTER_HEAD:{hy(this,t);break}case z.IN_BODY:{ur(this,t);break}case z.IN_TABLE:{Hi(this,t);break}case z.IN_TABLE_TEXT:{ba(this,t);break}case z.IN_CAPTION:{ov(this,t);break}case z.IN_COLUMN_GROUP:{l0(this,t);break}case z.IN_TABLE_BODY:{Co(this,t);break}case z.IN_ROW:{No(this,t);break}case z.IN_CELL:{cv(this,t);break}case z.IN_SELECT:{A1(this,t);break}case z.IN_SELECT_IN_TABLE:{fv(this,t);break}case z.IN_TEMPLATE:{pv(this,t);break}case z.AFTER_BODY:{gv(this,t);break}case z.IN_FRAMESET:{bv(this,t);break}case z.AFTER_FRAMESET:{Ev(this,t);break}case z.AFTER_AFTER_BODY:{vv(this,t);break}case z.AFTER_AFTER_FRAMESET:{Tv(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?wv(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case z.INITIAL:{ga(this,t);break}case z.BEFORE_HTML:{ay(this,t);break}case z.BEFORE_HEAD:{oy(this,t);break}case z.IN_HEAD:{uy(this,t);break}case z.IN_HEAD_NO_SCRIPT:{cy(this,t);break}case z.AFTER_HEAD:{fy(this,t);break}case z.IN_BODY:{ko(this,t);break}case z.TEXT:{Jy(this,t);break}case z.IN_TABLE:{Fa(this,t);break}case z.IN_TABLE_TEXT:{ba(this,t);break}case z.IN_CAPTION:{uv(this,t);break}case z.IN_COLUMN_GROUP:{lv(this,t);break}case z.IN_TABLE_BODY:{dl(this,t);break}case z.IN_ROW:{_1(this,t);break}case z.IN_CELL:{hv(this,t);break}case z.IN_SELECT:{S1(this,t);break}case z.IN_SELECT_IN_TABLE:{dv(this,t);break}case z.IN_TEMPLATE:{mv(this,t);break}case z.AFTER_BODY:{k1(this,t);break}case z.IN_FRAMESET:{xv(this,t);break}case z.AFTER_FRAMESET:{yv(this,t);break}case z.AFTER_AFTER_BODY:{Rs(this,t);break}}}onEof(t){switch(this.insertionMode){case z.INITIAL:{ga(this,t);break}case z.BEFORE_HTML:{wa(this,t);break}case z.BEFORE_HEAD:{ka(this,t);break}case z.IN_HEAD:{Ca(this,t);break}case z.IN_HEAD_NO_SCRIPT:{Na(this,t);break}case z.AFTER_HEAD:{Ia(this,t);break}case z.IN_BODY:case z.IN_TABLE:case z.IN_CAPTION:case z.IN_COLUMN_GROUP:case z.IN_TABLE_BODY:case z.IN_ROW:case z.IN_CELL:case z.IN_SELECT:case z.IN_SELECT_IN_TABLE:{E1(this,t);break}case z.TEXT:{Qy(this,t);break}case z.IN_TABLE_TEXT:{ba(this,t);break}case z.IN_TEMPLATE:{w1(this,t);break}case z.AFTER_BODY:case z.IN_FRAMESET:case z.AFTER_FRAMESET:case z.AFTER_AFTER_BODY:case z.AFTER_AFTER_FRAMESET:{u0(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===R.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case z.IN_HEAD:case z.IN_HEAD_NO_SCRIPT:case z.AFTER_HEAD:case z.TEXT:case z.IN_COLUMN_GROUP:case z.IN_SELECT:case z.IN_SELECT_IN_TABLE:case z.IN_FRAMESET:case z.AFTER_FRAMESET:{this._insertCharacters(t);break}case z.IN_BODY:case z.IN_CAPTION:case z.IN_CELL:case z.IN_TEMPLATE:case z.AFTER_BODY:case z.AFTER_AFTER_BODY:case z.AFTER_AFTER_FRAMESET:{p1(this,t);break}case z.IN_TABLE:case z.IN_TABLE_BODY:case z.IN_ROW:{Au(this,t);break}case z.IN_TABLE_TEXT:{y1(this,t);break}}}}function X8(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return r?e.openElements.contains(r.element)?e.openElements.hasInScope(t.tagID)||(r=null):(e.activeFormattingElements.removeEntry(r),r=null):x1(e,t),r}function j8(e,t){let r=null,n=e.openElements.stackTop;for(;n>=0;n--){const i=e.openElements.items[n];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[n])&&(r=i)}return r||(e.openElements.shortenToLength(Math.max(n,0)),e.activeFormattingElements.removeEntry(t)),r}function J8(e,t,r){let n=t,i=e.openElements.getCommonAncestor(t);for(let a=0,s=i;s!==r;a++,s=i){i=e.openElements.getCommonAncestor(s);const u=e.activeFormattingElements.getElementEntry(s),l=u&&a>=$8;!u||l?(l&&e.activeFormattingElements.removeEntry(u),e.openElements.remove(s)):(s=Q8(e,u),n===t&&(e.activeFormattingElements.bookmark=u),e.treeAdapter.detachNode(n),e.treeAdapter.appendChild(s,n),n=s)}return n}function Q8(e,t){const r=e.treeAdapter.getNamespaceURI(t.element),n=e.treeAdapter.createElement(t.token.tagName,r,t.token.attrs);return e.openElements.replace(t.element,n),t.element=n,n}function Z8(e,t,r){const n=e.treeAdapter.getTagName(t),i=ta(n);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(r);else{const a=e.treeAdapter.getNamespaceURI(t);i===p.TEMPLATE&&a===ae.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,r)}}function ey(e,t,r){const n=e.treeAdapter.getNamespaceURI(r.element),{token:i}=r,a=e.treeAdapter.createElement(i.tagName,n,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(r),e.openElements.remove(r.element),e.openElements.insertAfter(t,a,i.tagID)}function o0(e,t){for(let r=0;r<W8;r++){const n=X8(e,t);if(!n)break;const i=j8(e,n);if(!i)break;e.activeFormattingElements.bookmark=n;const a=J8(e,i,n.element),s=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(a),s&&Z8(e,s,a),ey(e,i,n)}}function fl(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function ty(e,t){e._appendCommentNode(t,e.openElements.items[0])}function ry(e,t){e._appendCommentNode(t,e.document)}function u0(e,t){if(e.stopped=!0,t.location){const r=e.fragmentContext?0:2;for(let n=e.openElements.stackTop;n>=r;n--)e._setEndLocation(e.openElements.items[n],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const n=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(n);if(i&&!i.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){const a=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(a);s&&!s.endTag&&e._setEndLocation(a,t)}}}}function ny(e,t){e._setDocumentType(t);const r=t.forceQuirks?Yr.QUIRKS:L8(t);R8(t)||e._err(t,Q.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,r),e.insertionMode=z.BEFORE_HTML}function ga(e,t){e._err(t,Q.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Yr.QUIRKS),e.insertionMode=z.BEFORE_HTML,e._processToken(t)}function iy(e,t){t.tagID===p.HTML?(e._insertElement(t,ae.HTML),e.insertionMode=z.BEFORE_HEAD):wa(e,t)}function ay(e,t){const r=t.tagID;(r===p.HTML||r===p.HEAD||r===p.BODY||r===p.BR)&&wa(e,t)}function wa(e,t){e._insertFakeRootElement(),e.insertionMode=z.BEFORE_HEAD,e._processToken(t)}function sy(e,t){switch(t.tagID){case p.HTML:{ur(e,t);break}case p.HEAD:{e._insertElement(t,ae.HTML),e.headElement=e.openElements.current,e.insertionMode=z.IN_HEAD;break}default:ka(e,t)}}function oy(e,t){const r=t.tagID;r===p.HEAD||r===p.BODY||r===p.HTML||r===p.BR?ka(e,t):e._err(t,Q.endTagWithoutMatchingOpenElement)}function ka(e,t){e._insertFakeElement(X.HEAD,p.HEAD),e.headElement=e.openElements.current,e.insertionMode=z.IN_HEAD,e._processToken(t)}function nn(e,t){switch(t.tagID){case p.HTML:{ur(e,t);break}case p.BASE:case p.BASEFONT:case p.BGSOUND:case p.LINK:case p.META:{e._appendElement(t,ae.HTML),t.ackSelfClosing=!0;break}case p.TITLE:{e._switchToTextParsing(t,zt.RCDATA);break}case p.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,zt.RAWTEXT):(e._insertElement(t,ae.HTML),e.insertionMode=z.IN_HEAD_NO_SCRIPT);break}case p.NOFRAMES:case p.STYLE:{e._switchToTextParsing(t,zt.RAWTEXT);break}case p.SCRIPT:{e._switchToTextParsing(t,zt.SCRIPT_DATA);break}case p.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=z.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(z.IN_TEMPLATE);break}case p.HEAD:{e._err(t,Q.misplacedStartTagForHeadElement);break}default:Ca(e,t)}}function uy(e,t){switch(t.tagID){case p.HEAD:{e.openElements.pop(),e.insertionMode=z.AFTER_HEAD;break}case p.BODY:case p.BR:case p.HTML:{Ca(e,t);break}case p.TEMPLATE:{gi(e,t);break}default:e._err(t,Q.endTagWithoutMatchingOpenElement)}}function gi(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==p.TEMPLATE&&e._err(t,Q.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(p.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,Q.endTagWithoutMatchingOpenElement)}function Ca(e,t){e.openElements.pop(),e.insertionMode=z.AFTER_HEAD,e._processToken(t)}function ly(e,t){switch(t.tagID){case p.HTML:{ur(e,t);break}case p.BASEFONT:case p.BGSOUND:case p.HEAD:case p.LINK:case p.META:case p.NOFRAMES:case p.STYLE:{nn(e,t);break}case p.NOSCRIPT:{e._err(t,Q.nestedNoscriptInHead);break}default:Na(e,t)}}function cy(e,t){switch(t.tagID){case p.NOSCRIPT:{e.openElements.pop(),e.insertionMode=z.IN_HEAD;break}case p.BR:{Na(e,t);break}default:e._err(t,Q.endTagWithoutMatchingOpenElement)}}function Na(e,t){const r=t.type===Ze.EOF?Q.openElementsLeftAfterEof:Q.disallowedContentInNoscriptInHead;e._err(t,r),e.openElements.pop(),e.insertionMode=z.IN_HEAD,e._processToken(t)}function hy(e,t){switch(t.tagID){case p.HTML:{ur(e,t);break}case p.BODY:{e._insertElement(t,ae.HTML),e.framesetOk=!1,e.insertionMode=z.IN_BODY;break}case p.FRAMESET:{e._insertElement(t,ae.HTML),e.insertionMode=z.IN_FRAMESET;break}case p.BASE:case p.BASEFONT:case p.BGSOUND:case p.LINK:case p.META:case p.NOFRAMES:case p.SCRIPT:case p.STYLE:case p.TEMPLATE:case p.TITLE:{e._err(t,Q.abandonedHeadElementChild),e.openElements.push(e.headElement,p.HEAD),nn(e,t),e.openElements.remove(e.headElement);break}case p.HEAD:{e._err(t,Q.misplacedStartTagForHeadElement);break}default:Ia(e,t)}}function fy(e,t){switch(t.tagID){case p.BODY:case p.HTML:case p.BR:{Ia(e,t);break}case p.TEMPLATE:{gi(e,t);break}default:e._err(t,Q.endTagWithoutMatchingOpenElement)}}function Ia(e,t){e._insertFakeElement(X.BODY,p.BODY),e.insertionMode=z.IN_BODY,wo(e,t)}function wo(e,t){switch(t.type){case Ze.CHARACTER:{m1(e,t);break}case Ze.WHITESPACE_CHARACTER:{p1(e,t);break}case Ze.COMMENT:{fl(e,t);break}case Ze.START_TAG:{ur(e,t);break}case Ze.END_TAG:{ko(e,t);break}case Ze.EOF:{E1(e,t);break}}}function p1(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function m1(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function dy(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function py(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(r,t.attrs))}function my(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&r&&(e.treeAdapter.detachNode(r),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,ae.HTML),e.insertionMode=z.IN_FRAMESET)}function gy(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,ae.HTML)}function by(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&hl.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,ae.HTML)}function xy(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,ae.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Ey(e,t){const r=e.openElements.tmplCount>0;(!e.formElement||r)&&(e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,ae.HTML),r||(e.formElement=e.openElements.current))}function yy(e,t){e.framesetOk=!1;const r=t.tagID;for(let n=e.openElements.stackTop;n>=0;n--){const i=e.openElements.tagIDs[n];if(r===p.LI&&i===p.LI||(r===p.DD||r===p.DT)&&(i===p.DD||i===p.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==p.ADDRESS&&i!==p.DIV&&i!==p.P&&e._isSpecialElement(e.openElements.items[n],i))break}e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,ae.HTML)}function vy(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,ae.HTML),e.tokenizer.state=zt.PLAINTEXT}function Ty(e,t){e.openElements.hasInScope(p.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(p.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,ae.HTML),e.framesetOk=!1}function _y(e,t){const r=e.activeFormattingElements.getElementEntryInScopeWithTagName(X.A);r&&(o0(e,t),e.openElements.remove(r.element),e.activeFormattingElements.removeEntry(r)),e._reconstructActiveFormattingElements(),e._insertElement(t,ae.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Ay(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ae.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Sy(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(p.NOBR)&&(o0(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,ae.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function wy(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ae.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function ky(e,t){e.treeAdapter.getDocumentMode(e.document)!==Yr.QUIRKS&&e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,ae.HTML),e.framesetOk=!1,e.insertionMode=z.IN_TABLE}function g1(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,ae.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function b1(e){const t=a1(e,li.TYPE);return t!=null&&t.toLowerCase()===Y8}function Cy(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,ae.HTML),b1(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function Ny(e,t){e._appendElement(t,ae.HTML),t.ackSelfClosing=!0}function Iy(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._appendElement(t,ae.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Oy(e,t){t.tagName=X.IMG,t.tagID=p.IMG,g1(e,t)}function Ry(e,t){e._insertElement(t,ae.HTML),e.skipNextNewLine=!0,e.tokenizer.state=zt.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=z.TEXT}function Ly(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,zt.RAWTEXT)}function My(e,t){e.framesetOk=!1,e._switchToTextParsing(t,zt.RAWTEXT)}function Lh(e,t){e._switchToTextParsing(t,zt.RAWTEXT)}function Dy(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ae.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===z.IN_TABLE||e.insertionMode===z.IN_CAPTION||e.insertionMode===z.IN_TABLE_BODY||e.insertionMode===z.IN_ROW||e.insertionMode===z.IN_CELL?z.IN_SELECT_IN_TABLE:z.IN_SELECT}function Py(e,t){e.openElements.currentTagId===p.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,ae.HTML)}function By(e,t){e.openElements.hasInScope(p.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,ae.HTML)}function Fy(e,t){e.openElements.hasInScope(p.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(p.RTC),e._insertElement(t,ae.HTML)}function Uy(e,t){e._reconstructActiveFormattingElements(),h1(t),s0(t),t.selfClosing?e._appendElement(t,ae.MATHML):e._insertElement(t,ae.MATHML),t.ackSelfClosing=!0}function zy(e,t){e._reconstructActiveFormattingElements(),f1(t),s0(t),t.selfClosing?e._appendElement(t,ae.SVG):e._insertElement(t,ae.SVG),t.ackSelfClosing=!0}function Mh(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ae.HTML)}function ur(e,t){switch(t.tagID){case p.I:case p.S:case p.B:case p.U:case p.EM:case p.TT:case p.BIG:case p.CODE:case p.FONT:case p.SMALL:case p.STRIKE:case p.STRONG:{Ay(e,t);break}case p.A:{_y(e,t);break}case p.H1:case p.H2:case p.H3:case p.H4:case p.H5:case p.H6:{by(e,t);break}case p.P:case p.DL:case p.OL:case p.UL:case p.DIV:case p.DIR:case p.NAV:case p.MAIN:case p.MENU:case p.ASIDE:case p.CENTER:case p.FIGURE:case p.FOOTER:case p.HEADER:case p.HGROUP:case p.DIALOG:case p.DETAILS:case p.ADDRESS:case p.ARTICLE:case p.SEARCH:case p.SECTION:case p.SUMMARY:case p.FIELDSET:case p.BLOCKQUOTE:case p.FIGCAPTION:{gy(e,t);break}case p.LI:case p.DD:case p.DT:{yy(e,t);break}case p.BR:case p.IMG:case p.WBR:case p.AREA:case p.EMBED:case p.KEYGEN:{g1(e,t);break}case p.HR:{Iy(e,t);break}case p.RB:case p.RTC:{By(e,t);break}case p.RT:case p.RP:{Fy(e,t);break}case p.PRE:case p.LISTING:{xy(e,t);break}case p.XMP:{Ly(e,t);break}case p.SVG:{zy(e,t);break}case p.HTML:{dy(e,t);break}case p.BASE:case p.LINK:case p.META:case p.STYLE:case p.TITLE:case p.SCRIPT:case p.BGSOUND:case p.BASEFONT:case p.TEMPLATE:{nn(e,t);break}case p.BODY:{py(e,t);break}case p.FORM:{Ey(e,t);break}case p.NOBR:{Sy(e,t);break}case p.MATH:{Uy(e,t);break}case p.TABLE:{ky(e,t);break}case p.INPUT:{Cy(e,t);break}case p.PARAM:case p.TRACK:case p.SOURCE:{Ny(e,t);break}case p.IMAGE:{Oy(e,t);break}case p.BUTTON:{Ty(e,t);break}case p.APPLET:case p.OBJECT:case p.MARQUEE:{wy(e,t);break}case p.IFRAME:{My(e,t);break}case p.SELECT:{Dy(e,t);break}case p.OPTION:case p.OPTGROUP:{Py(e,t);break}case p.NOEMBED:case p.NOFRAMES:{Lh(e,t);break}case p.FRAMESET:{my(e,t);break}case p.TEXTAREA:{Ry(e,t);break}case p.NOSCRIPT:{e.options.scriptingEnabled?Lh(e,t):Mh(e,t);break}case p.PLAINTEXT:{vy(e,t);break}case p.COL:case p.TH:case p.TD:case p.TR:case p.HEAD:case p.FRAME:case p.TBODY:case p.TFOOT:case p.THEAD:case p.CAPTION:case p.COLGROUP:break;default:Mh(e,t)}}function Hy(e,t){if(e.openElements.hasInScope(p.BODY)&&(e.insertionMode=z.AFTER_BODY,e.options.sourceCodeLocationInfo)){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e._setEndLocation(r,t)}}function Vy(e,t){e.openElements.hasInScope(p.BODY)&&(e.insertionMode=z.AFTER_BODY,k1(e,t))}function qy(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r))}function Gy(e){const t=e.openElements.tmplCount>0,{formElement:r}=e;t||(e.formElement=null),(r||t)&&e.openElements.hasInScope(p.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(p.FORM):r&&e.openElements.remove(r))}function Yy(e){e.openElements.hasInButtonScope(p.P)||e._insertFakeElement(X.P,p.P),e._closePElement()}function Wy(e){e.openElements.hasInListItemScope(p.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(p.LI),e.openElements.popUntilTagNamePopped(p.LI))}function $y(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r))}function Ky(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function Xy(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker())}function jy(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(X.BR,p.BR),e.openElements.pop(),e.framesetOk=!1}function x1(e,t){const r=t.tagName,n=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const a=e.openElements.items[i],s=e.openElements.tagIDs[i];if(n===s&&(n!==p.UNKNOWN||e.treeAdapter.getTagName(a)===r)){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(a,s))break}}function ko(e,t){switch(t.tagID){case p.A:case p.B:case p.I:case p.S:case p.U:case p.EM:case p.TT:case p.BIG:case p.CODE:case p.FONT:case p.NOBR:case p.SMALL:case p.STRIKE:case p.STRONG:{o0(e,t);break}case p.P:{Yy(e);break}case p.DL:case p.UL:case p.OL:case p.DIR:case p.DIV:case p.NAV:case p.PRE:case p.MAIN:case p.MENU:case p.ASIDE:case p.BUTTON:case p.CENTER:case p.FIGURE:case p.FOOTER:case p.HEADER:case p.HGROUP:case p.DIALOG:case p.ADDRESS:case p.ARTICLE:case p.DETAILS:case p.SEARCH:case p.SECTION:case p.SUMMARY:case p.LISTING:case p.FIELDSET:case p.BLOCKQUOTE:case p.FIGCAPTION:{qy(e,t);break}case p.LI:{Wy(e);break}case p.DD:case p.DT:{$y(e,t);break}case p.H1:case p.H2:case p.H3:case p.H4:case p.H5:case p.H6:{Ky(e);break}case p.BR:{jy(e);break}case p.BODY:{Hy(e,t);break}case p.HTML:{Vy(e,t);break}case p.FORM:{Gy(e);break}case p.APPLET:case p.OBJECT:case p.MARQUEE:{Xy(e,t);break}case p.TEMPLATE:{gi(e,t);break}default:x1(e,t)}}function E1(e,t){e.tmplInsertionModeStack.length>0?w1(e,t):u0(e,t)}function Jy(e,t){var r;t.tagID===p.SCRIPT&&((r=e.scriptHandler)===null||r===void 0||r.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function Qy(e,t){e._err(t,Q.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Au(e,t){if(e.openElements.currentTagId!==void 0&&d1.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=z.IN_TABLE_TEXT,t.type){case Ze.CHARACTER:{v1(e,t);break}case Ze.WHITESPACE_CHARACTER:{y1(e,t);break}}else Ka(e,t)}function Zy(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,ae.HTML),e.insertionMode=z.IN_CAPTION}function ev(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,ae.HTML),e.insertionMode=z.IN_COLUMN_GROUP}function tv(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(X.COLGROUP,p.COLGROUP),e.insertionMode=z.IN_COLUMN_GROUP,l0(e,t)}function rv(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,ae.HTML),e.insertionMode=z.IN_TABLE_BODY}function nv(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(X.TBODY,p.TBODY),e.insertionMode=z.IN_TABLE_BODY,Co(e,t)}function iv(e,t){e.openElements.hasInTableScope(p.TABLE)&&(e.openElements.popUntilTagNamePopped(p.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function av(e,t){b1(t)?e._appendElement(t,ae.HTML):Ka(e,t),t.ackSelfClosing=!0}function sv(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,ae.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Hi(e,t){switch(t.tagID){case p.TD:case p.TH:case p.TR:{nv(e,t);break}case p.STYLE:case p.SCRIPT:case p.TEMPLATE:{nn(e,t);break}case p.COL:{tv(e,t);break}case p.FORM:{sv(e,t);break}case p.TABLE:{iv(e,t);break}case p.TBODY:case p.TFOOT:case p.THEAD:{rv(e,t);break}case p.INPUT:{av(e,t);break}case p.CAPTION:{Zy(e,t);break}case p.COLGROUP:{ev(e,t);break}default:Ka(e,t)}}function Fa(e,t){switch(t.tagID){case p.TABLE:{e.openElements.hasInTableScope(p.TABLE)&&(e.openElements.popUntilTagNamePopped(p.TABLE),e._resetInsertionMode());break}case p.TEMPLATE:{gi(e,t);break}case p.BODY:case p.CAPTION:case p.COL:case p.COLGROUP:case p.HTML:case p.TBODY:case p.TD:case p.TFOOT:case p.TH:case p.THEAD:case p.TR:break;default:Ka(e,t)}}function Ka(e,t){const r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,wo(e,t),e.fosterParentingEnabled=r}function y1(e,t){e.pendingCharacterTokens.push(t)}function v1(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function ba(e,t){let r=0;if(e.hasNonWhitespacePendingCharacterToken)for(;r<e.pendingCharacterTokens.length;r++)Ka(e,e.pendingCharacterTokens[r]);else for(;r<e.pendingCharacterTokens.length;r++)e._insertCharacters(e.pendingCharacterTokens[r]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const T1=new Set([p.CAPTION,p.COL,p.COLGROUP,p.TBODY,p.TD,p.TFOOT,p.TH,p.THEAD,p.TR]);function ov(e,t){const r=t.tagID;T1.has(r)?e.openElements.hasInTableScope(p.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(p.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=z.IN_TABLE,Hi(e,t)):ur(e,t)}function uv(e,t){const r=t.tagID;switch(r){case p.CAPTION:case p.TABLE:{e.openElements.hasInTableScope(p.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(p.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=z.IN_TABLE,r===p.TABLE&&Fa(e,t));break}case p.BODY:case p.COL:case p.COLGROUP:case p.HTML:case p.TBODY:case p.TD:case p.TFOOT:case p.TH:case p.THEAD:case p.TR:break;default:ko(e,t)}}function l0(e,t){switch(t.tagID){case p.HTML:{ur(e,t);break}case p.COL:{e._appendElement(t,ae.HTML),t.ackSelfClosing=!0;break}case p.TEMPLATE:{nn(e,t);break}default:Js(e,t)}}function lv(e,t){switch(t.tagID){case p.COLGROUP:{e.openElements.currentTagId===p.COLGROUP&&(e.openElements.pop(),e.insertionMode=z.IN_TABLE);break}case p.TEMPLATE:{gi(e,t);break}case p.COL:break;default:Js(e,t)}}function Js(e,t){e.openElements.currentTagId===p.COLGROUP&&(e.openElements.pop(),e.insertionMode=z.IN_TABLE,e._processToken(t))}function Co(e,t){switch(t.tagID){case p.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,ae.HTML),e.insertionMode=z.IN_ROW;break}case p.TH:case p.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(X.TR,p.TR),e.insertionMode=z.IN_ROW,No(e,t);break}case p.CAPTION:case p.COL:case p.COLGROUP:case p.TBODY:case p.TFOOT:case p.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=z.IN_TABLE,Hi(e,t));break}default:Hi(e,t)}}function dl(e,t){const r=t.tagID;switch(t.tagID){case p.TBODY:case p.TFOOT:case p.THEAD:{e.openElements.hasInTableScope(r)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=z.IN_TABLE);break}case p.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=z.IN_TABLE,Fa(e,t));break}case p.BODY:case p.CAPTION:case p.COL:case p.COLGROUP:case p.HTML:case p.TD:case p.TH:case p.TR:break;default:Fa(e,t)}}function No(e,t){switch(t.tagID){case p.TH:case p.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,ae.HTML),e.insertionMode=z.IN_CELL,e.activeFormattingElements.insertMarker();break}case p.CAPTION:case p.COL:case p.COLGROUP:case p.TBODY:case p.TFOOT:case p.THEAD:case p.TR:{e.openElements.hasInTableScope(p.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=z.IN_TABLE_BODY,Co(e,t));break}default:Hi(e,t)}}function _1(e,t){switch(t.tagID){case p.TR:{e.openElements.hasInTableScope(p.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=z.IN_TABLE_BODY);break}case p.TABLE:{e.openElements.hasInTableScope(p.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=z.IN_TABLE_BODY,dl(e,t));break}case p.TBODY:case p.TFOOT:case p.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(p.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=z.IN_TABLE_BODY,dl(e,t));break}case p.BODY:case p.CAPTION:case p.COL:case p.COLGROUP:case p.HTML:case p.TD:case p.TH:break;default:Fa(e,t)}}function cv(e,t){const r=t.tagID;T1.has(r)?(e.openElements.hasInTableScope(p.TD)||e.openElements.hasInTableScope(p.TH))&&(e._closeTableCell(),No(e,t)):ur(e,t)}function hv(e,t){const r=t.tagID;switch(r){case p.TD:case p.TH:{e.openElements.hasInTableScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=z.IN_ROW);break}case p.TABLE:case p.TBODY:case p.TFOOT:case p.THEAD:case p.TR:{e.openElements.hasInTableScope(r)&&(e._closeTableCell(),_1(e,t));break}case p.BODY:case p.CAPTION:case p.COL:case p.COLGROUP:case p.HTML:break;default:ko(e,t)}}function A1(e,t){switch(t.tagID){case p.HTML:{ur(e,t);break}case p.OPTION:{e.openElements.currentTagId===p.OPTION&&e.openElements.pop(),e._insertElement(t,ae.HTML);break}case p.OPTGROUP:{e.openElements.currentTagId===p.OPTION&&e.openElements.pop(),e.openElements.currentTagId===p.OPTGROUP&&e.openElements.pop(),e._insertElement(t,ae.HTML);break}case p.HR:{e.openElements.currentTagId===p.OPTION&&e.openElements.pop(),e.openElements.currentTagId===p.OPTGROUP&&e.openElements.pop(),e._appendElement(t,ae.HTML),t.ackSelfClosing=!0;break}case p.INPUT:case p.KEYGEN:case p.TEXTAREA:case p.SELECT:{e.openElements.hasInSelectScope(p.SELECT)&&(e.openElements.popUntilTagNamePopped(p.SELECT),e._resetInsertionMode(),t.tagID!==p.SELECT&&e._processStartTag(t));break}case p.SCRIPT:case p.TEMPLATE:{nn(e,t);break}}}function S1(e,t){switch(t.tagID){case p.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===p.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===p.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===p.OPTGROUP&&e.openElements.pop();break}case p.OPTION:{e.openElements.currentTagId===p.OPTION&&e.openElements.pop();break}case p.SELECT:{e.openElements.hasInSelectScope(p.SELECT)&&(e.openElements.popUntilTagNamePopped(p.SELECT),e._resetInsertionMode());break}case p.TEMPLATE:{gi(e,t);break}}}function fv(e,t){const r=t.tagID;r===p.CAPTION||r===p.TABLE||r===p.TBODY||r===p.TFOOT||r===p.THEAD||r===p.TR||r===p.TD||r===p.TH?(e.openElements.popUntilTagNamePopped(p.SELECT),e._resetInsertionMode(),e._processStartTag(t)):A1(e,t)}function dv(e,t){const r=t.tagID;r===p.CAPTION||r===p.TABLE||r===p.TBODY||r===p.TFOOT||r===p.THEAD||r===p.TR||r===p.TD||r===p.TH?e.openElements.hasInTableScope(r)&&(e.openElements.popUntilTagNamePopped(p.SELECT),e._resetInsertionMode(),e.onEndTag(t)):S1(e,t)}function pv(e,t){switch(t.tagID){case p.BASE:case p.BASEFONT:case p.BGSOUND:case p.LINK:case p.META:case p.NOFRAMES:case p.SCRIPT:case p.STYLE:case p.TEMPLATE:case p.TITLE:{nn(e,t);break}case p.CAPTION:case p.COLGROUP:case p.TBODY:case p.TFOOT:case p.THEAD:{e.tmplInsertionModeStack[0]=z.IN_TABLE,e.insertionMode=z.IN_TABLE,Hi(e,t);break}case p.COL:{e.tmplInsertionModeStack[0]=z.IN_COLUMN_GROUP,e.insertionMode=z.IN_COLUMN_GROUP,l0(e,t);break}case p.TR:{e.tmplInsertionModeStack[0]=z.IN_TABLE_BODY,e.insertionMode=z.IN_TABLE_BODY,Co(e,t);break}case p.TD:case p.TH:{e.tmplInsertionModeStack[0]=z.IN_ROW,e.insertionMode=z.IN_ROW,No(e,t);break}default:e.tmplInsertionModeStack[0]=z.IN_BODY,e.insertionMode=z.IN_BODY,ur(e,t)}}function mv(e,t){t.tagID===p.TEMPLATE&&gi(e,t)}function w1(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(p.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):u0(e,t)}function gv(e,t){t.tagID===p.HTML?ur(e,t):Qs(e,t)}function k1(e,t){var r;if(t.tagID===p.HTML){if(e.fragmentContext||(e.insertionMode=z.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===p.HTML){e._setEndLocation(e.openElements.items[0],t);const n=e.openElements.items[1];n&&!(!((r=e.treeAdapter.getNodeSourceCodeLocation(n))===null||r===void 0)&&r.endTag)&&e._setEndLocation(n,t)}}else Qs(e,t)}function Qs(e,t){e.insertionMode=z.IN_BODY,wo(e,t)}function bv(e,t){switch(t.tagID){case p.HTML:{ur(e,t);break}case p.FRAMESET:{e._insertElement(t,ae.HTML);break}case p.FRAME:{e._appendElement(t,ae.HTML),t.ackSelfClosing=!0;break}case p.NOFRAMES:{nn(e,t);break}}}function xv(e,t){t.tagID===p.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==p.FRAMESET&&(e.insertionMode=z.AFTER_FRAMESET))}function Ev(e,t){switch(t.tagID){case p.HTML:{ur(e,t);break}case p.NOFRAMES:{nn(e,t);break}}}function yv(e,t){t.tagID===p.HTML&&(e.insertionMode=z.AFTER_AFTER_FRAMESET)}function vv(e,t){t.tagID===p.HTML?ur(e,t):Rs(e,t)}function Rs(e,t){e.insertionMode=z.IN_BODY,wo(e,t)}function Tv(e,t){switch(t.tagID){case p.HTML:{ur(e,t);break}case p.NOFRAMES:{nn(e,t);break}}}function _v(e,t){t.chars=St,e._insertCharacters(t)}function Av(e,t){e._insertCharacters(t),e.framesetOk=!1}function C1(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==ae.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function Sv(e,t){if(z8(t))C1(e),e._startTagOutsideForeignContent(t);else{const r=e._getAdjustedCurrentElement(),n=e.treeAdapter.getNamespaceURI(r);n===ae.MATHML?h1(t):n===ae.SVG&&(H8(t),f1(t)),s0(t),t.selfClosing?e._appendElement(t,n):e._insertElement(t,n),t.ackSelfClosing=!0}}function wv(e,t){if(t.tagID===p.P||t.tagID===p.BR){C1(e),e._endTagOutsideForeignContent(t);return}for(let r=e.openElements.stackTop;r>0;r--){const n=e.openElements.items[r];if(e.treeAdapter.getNamespaceURI(n)===ae.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(n);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(r);break}}}X.AREA,X.BASE,X.BASEFONT,X.BGSOUND,X.BR,X.COL,X.EMBED,X.FRAME,X.HR,X.IMG,X.INPUT,X.KEYGEN,X.LINK,X.META,X.PARAM,X.SOURCE,X.TRACK,X.WBR;const kv=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,Cv=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Dh={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function N1(e,t){const r=Fv(e),n=yl("type",{handlers:{root:Nv,element:Iv,text:Ov,comment:O1,doctype:Rv,raw:Mv},unknown:Dv}),i={parser:r?new Rh(Dh):Rh.getFragmentParser(void 0,Dh),handle(u){n(u,i)},stitches:!1,options:t||{}};n(e,i),ra(i,pn());const a=r?i.parser.document:i.parser.getFragment(),s=U7(a,{file:i.options.file});return i.stitches&&di(s,"comment",function(u,l,c){const f=u;if(f.value.stitch&&c&&l!==void 0){const d=c.children;return d[l]=f.value.stitch,l}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function I1(e,t){let r=-1;if(e)for(;++r<e.length;)t.handle(e[r])}function Nv(e,t){I1(e.children,t)}function Iv(e,t){Pv(e,t),I1(e.children,t),Bv(e,t)}function Ov(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const r={type:Ze.CHARACTER,chars:e.value,location:Xa(e)};ra(t,pn(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function Rv(e,t){const r={type:Ze.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Xa(e)};ra(t,pn(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function Lv(e,t){t.stitches=!0;const r=Uv(e);if("children"in e&&"children"in r){const n=N1({type:"root",children:e.children},t.options);r.children=n.children}O1({type:"comment",value:{stitch:r}},t)}function O1(e,t){const r=e.value,n={type:Ze.COMMENT,data:r,location:Xa(e)};ra(t,pn(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Mv(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,R1(t,pn(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(kv,"<$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;const r=t.parser.tokenizer._consume();t.parser.tokenizer._callState(r)}}function Dv(e,t){const r=e;if(t.options.passThrough&&t.options.passThrough.includes(r.type))Lv(r,t);else{let n="";throw Cv.has(r.type)&&(n=". 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"),new Error("Cannot compile `"+r.type+"` node"+n)}}function ra(e,t){R1(e,t);const r=e.parser.tokenizer.currentCharacterToken;r&&r.location&&(r.location.endLine=e.parser.tokenizer.preprocessor.line,r.location.endCol=e.parser.tokenizer.preprocessor.col+1,r.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=r,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=zt.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 R1(e,t){if(t&&t.offset!==void 0){const r={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=r}}function Pv(e,t){const r=e.tagName.toLowerCase();if(t.parser.tokenizer.state===zt.PLAINTEXT)return;ra(t,pn(e));const n=t.parser.openElements.current;let i="namespaceURI"in n?n.namespaceURI:hn.html;i===hn.html&&r==="svg"&&(i=hn.svg);const a=G7({...e,children:[]},{space:i===hn.svg?"svg":"html"}),s={type:Ze.START_TAG,tagName:r,tagID:ta(r),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:Xa(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=r}function Bv(e,t){const r=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&Q7.includes(r)||t.parser.tokenizer.state===zt.PLAINTEXT)return;ra(t,to(e));const n={type:Ze.END_TAG,tagName:r,tagID:ta(r),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Xa(e)};t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken),r===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===zt.RCDATA||t.parser.tokenizer.state===zt.RAWTEXT||t.parser.tokenizer.state===zt.SCRIPT_DATA)&&(t.parser.tokenizer.state=zt.DATA)}function Fv(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function Xa(e){const t=pn(e)||{line:void 0,column:void 0,offset:void 0},r=to(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:r.line,endCol:r.column,endOffset:r.offset}}function Uv(e){return"children"in e?ci({...e,children:[]}):ci(e)}function R_(e){return function(t,r){return N1(t,{...e,file:r})}}const ai=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],Ph={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...ai,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...ai],h2:[["className","sr-only"]],img:[...ai,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...ai,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...ai],table:[...ai],ul:[...ai,["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"]},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"]},Vn={}.hasOwnProperty;function zv(e,t){let r={type:"root",children:[]};const n={schema:t?{...Ph,...t}:Ph,stack:[]},i=L1(n,e);return i&&(Array.isArray(i)?i.length===1?r=i[0]:r.children=i:r=i),r}function L1(e,t){if(t&&typeof t=="object"){const r=t;switch(typeof r.type=="string"?r.type:""){case"comment":return Hv(e,r);case"doctype":return Vv(e,r);case"element":return qv(e,r);case"root":return Gv(e,r);case"text":return Yv(e,r)}}}function Hv(e,t){if(e.schema.allowComments){const r=typeof t.value=="string"?t.value:"",n=r.indexOf("-->"),a={type:"comment",value:n<0?r:r.slice(0,n)};return ja(a,t),a}}function Vv(e,t){if(e.schema.allowDoctypes){const r={type:"doctype"};return ja(r,t),r}}function qv(e,t){const r=typeof t.tagName=="string"?t.tagName:"";e.stack.push(r);const n=M1(e,t.children),i=Wv(e,t.properties);e.stack.pop();let a=!1;if(r&&r!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(r))&&(a=!0,e.schema.ancestors&&Vn.call(e.schema.ancestors,r))){const u=e.schema.ancestors[r];let l=-1;for(a=!1;++l<u.length;)e.stack.includes(u[l])&&(a=!0)}if(!a)return e.schema.strip&&!e.schema.strip.includes(r)?n:void 0;const s={type:"element",tagName:r,properties:i,children:n};return ja(s,t),s}function Gv(e,t){const n={type:"root",children:M1(e,t.children)};return ja(n,t),n}function Yv(e,t){const n={type:"text",value:typeof t.value=="string"?t.value:""};return ja(n,t),n}function M1(e,t){const r=[];if(Array.isArray(t)){const n=t;let i=-1;for(;++i<n.length;){const a=L1(e,n[i]);a&&(Array.isArray(a)?r.push(...a):r.push(a))}}return r}function Wv(e,t){const r=e.stack[e.stack.length-1],n=e.schema.attributes,i=e.schema.required,a=n&&Vn.call(n,r)?n[r]:void 0,s=n&&Vn.call(n,"*")?n["*"]:void 0,u=t&&typeof t=="object"?t:{},l={};let c;for(c in u)if(Vn.call(u,c)){const f=u[c];let d=Bh(e,Fh(a,c),c,f);d==null&&(d=Bh(e,Fh(s,c),c,f)),d!=null&&(l[c]=d)}if(i&&Vn.call(i,r)){const f=i[r];for(c in f)Vn.call(f,c)&&!Vn.call(l,c)&&(l[c]=f[c])}return l}function Bh(e,t,r,n){return t?Array.isArray(n)?$v(e,t,r,n):D1(e,t,r,n):void 0}function $v(e,t,r,n){let i=-1;const a=[];for(;++i<n.length;){const s=D1(e,t,r,n[i]);(typeof s=="number"||typeof s=="string")&&a.push(s)}return a}function D1(e,t,r,n){if(!(typeof n!="boolean"&&typeof n!="number"&&typeof n!="string")&&Kv(e,r,n)){if(typeof t=="object"&&t.length>1){let i=!1,a=0;for(;++a<t.length;){const s=t[a];if(s&&typeof s=="object"&&"flags"in s){if(s.test(String(n))){i=!0;break}}else if(s===n){i=!0;break}}if(!i)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(r)?e.schema.clobberPrefix+n:n}}function Kv(e,t,r){const n=e.schema.protocols&&Vn.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!n||n.length===0)return!0;const i=String(r),a=i.indexOf(":"),s=i.indexOf("?"),u=i.indexOf("#"),l=i.indexOf("/");if(a<0||l>-1&&a>l||s>-1&&a>s||u>-1&&a>u)return!0;let c=-1;for(;++c<n.length;){const f=n[c];if(a===f.length&&i.slice(0,f.length)===f)return!0}return!1}function ja(e,t){const r=El(t);t.data&&(e.data=ci(t.data)),r&&(e.position=r)}function Fh(e,t){let r,n=-1;if(e)for(;++n<e.length;){const i=e[n],a=typeof i=="string"?i:i[0];if(a===t)return i;a==="data*"&&(r=i)}if(t.length>4&&t.slice(0,4).toLowerCase()==="data")return r}function L_(e){return function(t){return zv(t,e)}}function Xv(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function P1(e,t,r){const i=Ya((r||{}).ignore||[]),a=jv(t);let s=-1;for(;++s<a.length;)Dl(e,"text",u);function u(c,f){let d=-1,x;for(;++d<f.length;){const b=f[d],T=x?x.children:void 0;if(i(b,T?T.indexOf(b):void 0,x))return;x=b}if(x)return l(c,f)}function l(c,f){const d=f[f.length-1],x=a[s][0],b=a[s][1];let T=0;const C=d.children.indexOf(c);let S=!1,I=[];x.lastIndex=0;let D=x.exec(c.value);for(;D;){const q=D.index,O={index:D.index,input:D.input,stack:[...f,c]};let g=b(...D,O);if(typeof g=="string"&&(g=g.length>0?{type:"text",value:g}:void 0),g===!1?x.lastIndex=q+1:(T!==q&&I.push({type:"text",value:c.value.slice(T,q)}),Array.isArray(g)?I.push(...g):g&&I.push(g),T=q+D[0].length,S=!0),!x.global)break;D=x.exec(c.value)}return S?(T<c.value.length&&I.push({type:"text",value:c.value.slice(T)}),d.children.splice(C,1,...I)):I=[c],C+I.length}}function jv(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!e[0]||Array.isArray(e[0])?e:[e];let n=-1;for(;++n<r.length;){const i=r[n];t.push([Jv(i[0]),Qv(i[1])])}return t}function Jv(e){return typeof e=="string"?new RegExp(Xv(e),"g"):e}function Qv(e){return typeof e=="function"?e:function(){return e}}function Zv(e){P1(e,[/\r?\n|\r/g,eT])}function eT(){return{type:"break"}}function M_(){return function(e){Zv(e)}}const Su="phrasing",wu=["autolink","link","image","label"];function tT(){return{transforms:[uT],enter:{literalAutolink:nT,literalAutolinkEmail:ku,literalAutolinkHttp:ku,literalAutolinkWww:ku},exit:{literalAutolink:oT,literalAutolinkEmail:sT,literalAutolinkHttp:iT,literalAutolinkWww:aT}}}function rT(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Su,notInConstruct:wu},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Su,notInConstruct:wu},{character:":",before:"[ps]",after:"\\/",inConstruct:Su,notInConstruct:wu}]}}function nT(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function ku(e){this.config.enter.autolinkProtocol.call(this,e)}function iT(e){this.config.exit.autolinkProtocol.call(this,e)}function aT(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function sT(e){this.config.exit.autolinkEmail.call(this,e)}function oT(e){this.exit(e)}function uT(e){P1(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,lT],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),cT]],{ignore:["link","linkReference"]})}function lT(e,t,r,n,i){let a="";if(!B1(i)||(/^w/i.test(t)&&(r=t+r,t="",a="http://"),!hT(r)))return!1;const s=fT(r+n);if(!s[0])return!1;const u={type:"link",title:null,url:a+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[u,{type:"text",value:s[1]}]:u}function cT(e,t,r,n){return!B1(n,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function hT(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function fT(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],n=r.indexOf(")");const i=Ms(e,"(");let a=Ms(e,")");for(;n!==-1&&i>a;)e+=r.slice(0,n+1),r=r.slice(n+1),n=r.indexOf(")"),a++;return[e,r]}function B1(e,t){const r=e.input.charCodeAt(e.index-1);return(e.index===0||gr(r)||uo(r))&&(!t||r!==47)}F1.peek=vT;function dT(){this.buffer()}function pT(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function mT(){this.buffer()}function gT(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function bT(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=tn(this.sliceSerialize(e)).toLowerCase(),r.label=t}function xT(e){this.exit(e)}function ET(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=tn(this.sliceSerialize(e)).toLowerCase(),r.label=t}function yT(e){this.exit(e)}function vT(){return"["}function F1(e,t,r,n){const i=r.createTracker(n);let a=i.move("[^");const s=r.enter("footnoteReference"),u=r.enter("reference");return a+=i.move(r.safe(r.associationId(e),{after:"]",before:a})),u(),s(),a+=i.move("]"),a}function TT(){return{enter:{gfmFootnoteCallString:dT,gfmFootnoteCall:pT,gfmFootnoteDefinitionLabelString:mT,gfmFootnoteDefinition:gT},exit:{gfmFootnoteCallString:bT,gfmFootnoteCall:xT,gfmFootnoteDefinitionLabelString:ET,gfmFootnoteDefinition:yT}}}function _T(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:r,footnoteReference:F1},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(n,i,a,s){const u=a.createTracker(s);let l=u.move("[^");const c=a.enter("footnoteDefinition"),f=a.enter("label");return l+=u.move(a.safe(a.associationId(n),{before:l,after:"]"})),f(),l+=u.move("]:"),n.children&&n.children.length>0&&(u.shift(4),l+=u.move((t?`
|
|
309
309
|
`:" ")+a.indentLines(a.containerFlow(n,u.current()),t?U1:AT))),c(),l}}function AT(e,t,r){return t===0?e:U1(e,t,r)}function U1(e,t,r){return(r?"":" ")+e}const ST=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];z1.peek=IT;function wT(){return{canContainEols:["delete"],enter:{strikethrough:CT},exit:{strikethrough:NT}}}function kT(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:ST}],handlers:{delete:z1}}}function CT(e){this.enter({type:"delete",children:[]},e)}function NT(e){this.exit(e)}function z1(e,t,r,n){const i=r.createTracker(n),a=r.enter("strikethrough");let s=i.move("~~");return s+=r.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),a(),s}function IT(){return"~"}function OT(e){return e.length}function RT(e,t){const r=t||{},n=(r.align||[]).concat(),i=r.stringLength||OT,a=[],s=[],u=[],l=[];let c=0,f=-1;for(;++f<e.length;){const A=[],C=[];let S=-1;for(e[f].length>c&&(c=e[f].length);++S<e[f].length;){const I=LT(e[f][S]);if(r.alignDelimiters!==!1){const D=i(I);C[S]=D,(l[S]===void 0||D>l[S])&&(l[S]=D)}A.push(I)}s[f]=A,u[f]=C}let d=-1;if(typeof n=="object"&&"length"in n)for(;++d<c;)a[d]=Uh(n[d]);else{const A=Uh(n);for(;++d<c;)a[d]=A}d=-1;const x=[],b=[];for(;++d<c;){const A=a[d];let C="",S="";A===99?(C=":",S=":"):A===108?C=":":A===114&&(S=":");let I=r.alignDelimiters===!1?1:Math.max(1,l[d]-C.length-S.length);const D=C+"-".repeat(I)+S;r.alignDelimiters!==!1&&(I=C.length+I+S.length,I>l[d]&&(l[d]=I),b[d]=I),x[d]=D}s.splice(1,0,x),u.splice(1,0,b),f=-1;const T=[];for(;++f<s.length;){const A=s[f],C=u[f];d=-1;const S=[];for(;++d<c;){const I=A[d]||"";let D="",q="";if(r.alignDelimiters!==!1){const O=l[d]-(C[d]||0),g=a[d];g===114?D=" ".repeat(O):g===99?O%2?(D=" ".repeat(O/2+.5),q=" ".repeat(O/2-.5)):(D=" ".repeat(O/2),q=D):q=" ".repeat(O)}r.delimiterStart!==!1&&!d&&S.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&I==="")&&(r.delimiterStart!==!1||d)&&S.push(" "),r.alignDelimiters!==!1&&S.push(D),S.push(I),r.alignDelimiters!==!1&&S.push(q),r.padding!==!1&&S.push(" "),(r.delimiterEnd!==!1||d!==c-1)&&S.push("|")}T.push(r.delimiterEnd===!1?S.join("").replace(/ +$/,""):S.join(""))}return T.join(`
|
|
310
310
|
`)}function LT(e){return e==null?"":String(e)}function Uh(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function MT(e,t,r,n){const i=r.enter("blockquote"),a=r.createTracker(n);a.move("> "),a.shift(2);const s=r.indentLines(r.containerFlow(e,a.current()),DT);return i(),s}function DT(e,t,r){return">"+(r?"":" ")+e}function PT(e,t){return zh(e,t.inConstruct,!0)&&!zh(e,t.notInConstruct,!1)}function zh(e,t,r){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return r;let n=-1;for(;++n<t.length;)if(e.includes(t[n]))return!0;return!1}function Hh(e,t,r,n){let i=-1;for(;++i<r.unsafe.length;)if(r.unsafe[i].character===`
|
|
311
311
|
`&&PT(r.stack,r.unsafe[i]))return/[ \t]/.test(n.before)?"":" ";return`\\
|
|
@@ -320,8 +320,8 @@ l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
320
320
|
`))+1))}const s="#".repeat(i),u=r.enter("headingAtx"),l=r.enter("phrasing");a.move(s+" ");let c=r.containerPhrasing(e,{before:"# ",after:`
|
|
321
321
|
`,...a.current()});return/^[\t ]/.test(c)&&(c=Ua(c.charCodeAt(0))+c.slice(1)),c=c?s+" "+c:s,r.options.closeAtx&&(c+=" "+s),l(),u(),c}q1.peek=WT;function q1(e){return e.value||""}function WT(){return"<"}G1.peek=$T;function G1(e,t,r,n){const i=c0(r),a=i==='"'?"Quote":"Apostrophe",s=r.enter("image");let u=r.enter("label");const l=r.createTracker(n);let c=l.move("![");return c+=l.move(r.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=r.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(r.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(u=r.enter("destinationRaw"),c+=l.move(r.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),u(),e.title&&(u=r.enter(`title${a}`),c+=l.move(" "+i),c+=l.move(r.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),u()),c+=l.move(")"),s(),c}function $T(){return"!"}Y1.peek=KT;function Y1(e,t,r,n){const i=e.referenceType,a=r.enter("imageReference");let s=r.enter("label");const u=r.createTracker(n);let l=u.move("![");const c=r.safe(e.alt,{before:l,after:"]",...u.current()});l+=u.move(c+"]["),s();const f=r.stack;r.stack=[],s=r.enter("reference");const d=r.safe(r.associationId(e),{before:l,after:"]",...u.current()});return s(),r.stack=f,a(),i==="full"||!c||c!==d?l+=u.move(d+"]"):i==="shortcut"?l=l.slice(0,-1):l+=u.move("]"),l}function KT(){return"!"}W1.peek=XT;function W1(e,t,r){let n=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(n);)i+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++a<r.unsafe.length;){const s=r.unsafe[a],u=r.compilePattern(s);let l;if(s.atBreak)for(;l=u.exec(n);){let c=l.index;n.charCodeAt(c)===10&&n.charCodeAt(c-1)===13&&c--,n=n.slice(0,c)+" "+n.slice(l.index+1)}}return i+n+i}function XT(){return"`"}function $1(e,t){const r=Il(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}K1.peek=jT;function K1(e,t,r,n){const i=c0(r),a=i==='"'?"Quote":"Apostrophe",s=r.createTracker(n);let u,l;if($1(e,r)){const f=r.stack;r.stack=[],u=r.enter("autolink");let d=s.move("<");return d+=s.move(r.containerPhrasing(e,{before:d,after:">",...s.current()})),d+=s.move(">"),u(),r.stack=f,d}u=r.enter("link"),l=r.enter("label");let c=s.move("[");return c+=s.move(r.containerPhrasing(e,{before:c,after:"](",...s.current()})),c+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=r.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(r.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(l=r.enter("destinationRaw"),c+=s.move(r.safe(e.url,{before:c,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=r.enter(`title${a}`),c+=s.move(" "+i),c+=s.move(r.safe(e.title,{before:c,after:i,...s.current()})),c+=s.move(i),l()),c+=s.move(")"),u(),c}function jT(e,t,r){return $1(e,r)?"<":"["}X1.peek=JT;function X1(e,t,r,n){const i=e.referenceType,a=r.enter("linkReference");let s=r.enter("label");const u=r.createTracker(n);let l=u.move("[");const c=r.containerPhrasing(e,{before:l,after:"]",...u.current()});l+=u.move(c+"]["),s();const f=r.stack;r.stack=[],s=r.enter("reference");const d=r.safe(r.associationId(e),{before:l,after:"]",...u.current()});return s(),r.stack=f,a(),i==="full"||!c||c!==d?l+=u.move(d+"]"):i==="shortcut"?l=l.slice(0,-1):l+=u.move("]"),l}function JT(){return"["}function h0(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function QT(e){const t=h0(e),r=e.options.bulletOther;if(!r)return t==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}function ZT(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function j1(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function e9(e,t,r,n){const i=r.enter("list"),a=r.bulletCurrent;let s=e.ordered?ZT(r):h0(r);const u=e.ordered?s==="."?")":".":QT(r);let l=t&&r.bulletLastUsed?s===r.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&f&&(!f.children||!f.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(l=!0),j1(r)===s&&f){let d=-1;for(;++d<e.children.length;){const x=e.children[d];if(x&&x.type==="listItem"&&x.children&&x.children[0]&&x.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(s=u),r.bulletCurrent=s;const c=r.containerFlow(e,n);return r.bulletLastUsed=s,r.bulletCurrent=a,i(),c}function t9(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function r9(e,t,r,n){const i=t9(r);let a=r.bulletCurrent||h0(r);t&&t.type==="list"&&t.ordered&&(a=(typeof t.start=="number"&&t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let s=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const u=r.createTracker(n);u.move(a+" ".repeat(s-a.length)),u.shift(s);const l=r.enter("listItem"),c=r.indentLines(r.containerFlow(e,u.current()),f);return l(),c;function f(d,x,b){return x?(b?"":" ".repeat(s))+d:(b?a:a+" ".repeat(s-a.length))+d}}function n9(e,t,r,n){const i=r.enter("paragraph"),a=r.enter("phrasing"),s=r.containerPhrasing(e,n);return a(),i(),s}const i9=Ya(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function a9(e,t,r,n){return(e.children.some(function(s){return i9(s)})?r.containerPhrasing:r.containerFlow).call(r,e,n)}function s9(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}J1.peek=o9;function J1(e,t,r,n){const i=s9(r),a=r.enter("strong"),s=r.createTracker(n),u=s.move(i+i);let l=s.move(r.containerPhrasing(e,{after:i,before:u,...s.current()}));const c=l.charCodeAt(0),f=Zs(n.before.charCodeAt(n.before.length-1),c,i);f.inside&&(l=Ua(c)+l.slice(1));const d=l.charCodeAt(l.length-1),x=Zs(n.after.charCodeAt(0),d,i);x.inside&&(l=l.slice(0,-1)+Ua(d));const b=s.move(i+i);return a(),r.attentionEncodeSurroundingInfo={after:x.outside,before:f.outside},u+l+b}function o9(e,t,r){return r.options.strong||"*"}function u9(e,t,r,n){return r.safe(e.value,n)}function l9(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function c9(e,t,r){const n=(j1(r)+(r.options.ruleSpaces?" ":"")).repeat(l9(r));return r.options.ruleSpaces?n.slice(0,-1):n}const Q1={blockquote:MT,break:Hh,code:UT,definition:HT,emphasis:V1,hardBreak:Hh,heading:YT,html:q1,image:G1,imageReference:Y1,inlineCode:W1,link:K1,linkReference:X1,list:e9,listItem:r9,paragraph:n9,root:a9,strong:J1,text:u9,thematicBreak:c9};function h9(){return{enter:{table:f9,tableData:Vh,tableHeader:Vh,tableRow:p9},exit:{codeText:m9,table:d9,tableData:Cu,tableHeader:Cu,tableRow:Cu}}}function f9(e){const t=e._align;this.enter({type:"table",align:t.map(function(r){return r==="none"?null:r}),children:[]},e),this.data.inTable=!0}function d9(e){this.exit(e),this.data.inTable=void 0}function p9(e){this.enter({type:"tableRow",children:[]},e)}function Cu(e){this.exit(e)}function Vh(e){this.enter({type:"tableCell",children:[]},e)}function m9(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,g9));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function g9(e,t){return t==="|"?t:e}function b9(e){const t=e||{},r=t.tableCellPadding,n=t.tablePipeAlign,i=t.stringLength,a=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
322
322
|
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:x,table:s,tableCell:l,tableRow:u}};function s(b,T,A,C){return c(f(b,A,C),b.align)}function u(b,T,A,C){const S=d(b,A,C),I=c([S]);return I.slice(0,I.indexOf(`
|
|
323
|
-
`))}function l(b,T,A,C){const S=A.enter("tableCell"),I=A.enter("phrasing"),D=A.containerPhrasing(b,{...C,before:a,after:a});return I(),S(),D}function c(b,T){return RT(b,{align:T,alignDelimiters:n,padding:r,stringLength:i})}function f(b,T,A){const C=b.children;let S=-1;const I=[],D=T.enter("table");for(;++S<C.length;)I[S]=d(C[S],T,A);return D(),I}function d(b,T,A){const C=b.children;let S=-1;const I=[],D=T.enter("tableRow");for(;++S<C.length;)I[S]=l(C[S],b,T,A);return D(),I}function x(b,T,A){let C=Q1.inlineCode(b,T,A);return A.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}function x9(){return{exit:{taskListCheckValueChecked:qh,taskListCheckValueUnchecked:qh,paragraph:y9}}}function E9(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:v9}}}function qh(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function y9(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const n=r.children[0];if(n&&n.type==="text"){const i=t.children;let a=-1,s;for(;++a<i.length;){const u=i[a];if(u.type==="paragraph"){s=u;break}}s===r&&(n.value=n.value.slice(1),n.value.length===0?r.children.shift():r.position&&n.position&&typeof n.position.start.offset=="number"&&(n.position.start.column++,n.position.start.offset++,r.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function v9(e,t,r,n){const i=e.children[0],a=typeof e.checked=="boolean"&&i&&i.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",u=r.createTracker(n);a&&u.move(s);let l=Q1.listItem(e,t,r,{...n,...u.current()});return a&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),l;function c(f){return f+s}}function T9(){return[tT(),TT(),wT(),h9(),x9()]}function _9(e){return{extensions:[rT(),_T(e),kT(),b9(e),E9()]}}const A9={tokenize:I9,partial:!0},Z1={tokenize:O9,partial:!0},em={tokenize:R9,partial:!0},tm={tokenize:L9,partial:!0},S9={tokenize:M9,partial:!0},rm={name:"wwwAutolink",tokenize:C9,previous:im},nm={name:"protocolAutolink",tokenize:N9,previous:am},Dn={name:"emailAutolink",tokenize:k9,previous:sm},yn={};function w9(){return{text:yn}}let si=48;for(;si<123;)yn[si]=Dn,si++,si===58?si=65:si===91&&(si=97);yn[43]=Dn;yn[45]=Dn;yn[46]=Dn;yn[95]=Dn;yn[72]=[Dn,nm];yn[104]=[Dn,nm];yn[87]=[Dn,rm];yn[119]=[Dn,rm];function k9(e,t,r){const n=this;let i,a;return s;function s(d){return!pl(d)||!sm.call(n,n.previous)||f0(n.events)?r(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),u(d))}function u(d){return pl(d)?(e.consume(d),u):d===64?(e.consume(d),l):r(d)}function l(d){return d===46?e.check(S9,f,c)(d):d===45||d===95||sr(d)?(a=!0,e.consume(d),l):f(d)}function c(d){return e.consume(d),i=!0,l}function f(d){return a&&i&&ar(n.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):r(d)}}function C9(e,t,r){const n=this;return i;function i(s){return s!==87&&s!==119||!im.call(n,n.previous)||f0(n.events)?r(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(A9,e.attempt(Z1,e.attempt(em,a),r),r)(s))}function a(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function N9(e,t,r){const n=this;let i="",a=!1;return s;function s(d){return(d===72||d===104)&&am.call(n,n.previous)&&!f0(n.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(d),e.consume(d),u):r(d)}function u(d){if(ar(d)&&i.length<5)return i+=String.fromCodePoint(d),e.consume(d),u;if(d===58){const x=i.toLowerCase();if(x==="http"||x==="https")return e.consume(d),l}return r(d)}function l(d){return d===47?(e.consume(d),a?c:(a=!0,l)):r(d)}function c(d){return d===null||Us(d)||nt(d)||gr(d)||uo(d)?r(d):e.attempt(Z1,e.attempt(em,f),r)(d)}function f(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function I9(e,t,r){let n=0;return i;function i(s){return(s===87||s===119)&&n<3?(n++,e.consume(s),i):s===46&&n===3?(e.consume(s),a):r(s)}function a(s){return s===null?r(s):t(s)}}function O9(e,t,r){let n,i,a;return s;function s(c){return c===46||c===95?e.check(tm,l,u)(c):c===null||nt(c)||gr(c)||c!==45&&uo(c)?l(c):(a=!0,e.consume(c),s)}function u(c){return c===95?n=!0:(i=n,n=void 0),e.consume(c),s}function l(c){return i||n||!a?r(c):t(c)}}function R9(e,t){let r=0,n=0;return i;function i(s){return s===40?(r++,e.consume(s),i):s===41&&n<r?a(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(tm,t,a)(s):s===null||nt(s)||gr(s)?t(s):(e.consume(s),i)}function a(s){return s===41&&n++,e.consume(s),i}}function L9(e,t,r){return n;function n(u){return u===33||u===34||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===63||u===95||u===126?(e.consume(u),n):u===38?(e.consume(u),a):u===93?(e.consume(u),i):u===60||u===null||nt(u)||gr(u)?t(u):r(u)}function i(u){return u===null||u===40||u===91||nt(u)||gr(u)?t(u):n(u)}function a(u){return ar(u)?s(u):r(u)}function s(u){return u===59?(e.consume(u),n):ar(u)?(e.consume(u),s):r(u)}}function M9(e,t,r){return n;function n(a){return e.consume(a),i}function i(a){return sr(a)?r(a):t(a)}}function im(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||nt(e)}function am(e){return!ar(e)}function sm(e){return!(e===47||pl(e))}function pl(e){return e===43||e===45||e===46||e===95||sr(e)}function f0(e){let t=e.length,r=!1;for(;t--;){const n=e[t][1];if((n.type==="labelLink"||n.type==="labelImage")&&!n._balanced){r=!0;break}if(n._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const D9={tokenize:q9,partial:!0};function P9(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:z9,continuation:{tokenize:H9},exit:V9}},text:{91:{name:"gfmFootnoteCall",tokenize:U9},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:B9,resolveTo:F9}}}}function B9(e,t,r){const n=this;let i=n.events.length;const a=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let s;for(;i--;){const l=n.events[i][1];if(l.type==="labelImage"){s=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return u;function u(l){if(!s||!s._balanced)return r(l);const c=tn(n.sliceSerialize({start:s.end,end:n.now()}));return c.codePointAt(0)!==94||!a.includes(c.slice(1))?r(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function F9(e,t){let r=e.length;for(;r--;)if(e[r][1].type==="labelImage"&&e[r][0]==="enter"){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const n={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},u=[e[r+1],e[r+2],["enter",n,t],e[r+3],e[r+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",n,t]];return e.splice(r,e.length-r+1,...u),e}function U9(e,t,r){const n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a=0,s;return u;function u(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?r(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(d){if(a>999||d===93&&!s||d===null||d===91||nt(d))return r(d);if(d===93){e.exit("chunkString");const x=e.exit("gfmFootnoteCallString");return i.includes(tn(n.sliceSerialize(x)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(d)}return nt(d)||(s=!0),a++,e.consume(d),d===92?f:c}function f(d){return d===91||d===92||d===93?(e.consume(d),a++,c):c(d)}}function z9(e,t,r){const n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a,s=0,u;return l;function l(T){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(T),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(T){return T===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(T),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):r(T)}function f(T){if(s>999||T===93&&!u||T===null||T===91||nt(T))return r(T);if(T===93){e.exit("chunkString");const A=e.exit("gfmFootnoteDefinitionLabelString");return a=tn(n.sliceSerialize(A)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(T),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),x}return nt(T)||(u=!0),s++,e.consume(T),T===92?d:f}function d(T){return T===91||T===92||T===93?(e.consume(T),s++,f):f(T)}function x(T){return T===58?(e.enter("definitionMarker"),e.consume(T),e.exit("definitionMarker"),i.includes(a)||i.push(a),Xe(e,b,"gfmFootnoteDefinitionWhitespace")):r(T)}function b(T){return t(T)}}function H9(e,t,r){return e.check(Ki,t,e.attempt(D9,t,r))}function V9(e){e.exit("gfmFootnoteDefinition")}function q9(e,t,r){const n=this;return Xe(e,i,"gfmFootnoteDefinitionIndent",5);function i(a){const s=n.events[n.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(a):r(a)}}function G9(e){let r=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:a,resolveAll:i};return r==null&&(r=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function i(s,u){let l=-1;for(;++l<s.length;)if(s[l][0]==="enter"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._close){let c=l;for(;c--;)if(s[c][0]==="exit"&&s[c][1].type==="strikethroughSequenceTemporary"&&s[c][1]._open&&s[l][1].end.offset-s[l][1].start.offset===s[c][1].end.offset-s[c][1].start.offset){s[l][1].type="strikethroughSequence",s[c][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},s[c][1].start),end:Object.assign({},s[l][1].end)},d={type:"strikethroughText",start:Object.assign({},s[c][1].end),end:Object.assign({},s[l][1].start)},x=[["enter",f,u],["enter",s[c][1],u],["exit",s[c][1],u],["enter",d,u]],b=u.parser.constructs.insideSpan.null;b&&Mr(x,x.length,0,lo(b,s.slice(c+1,l),u)),Mr(x,x.length,0,[["exit",d,u],["enter",s[l][1],u],["exit",s[l][1],u],["exit",f,u]]),Mr(s,c-1,l-c+3,x),l=c+x.length-2;break}}for(l=-1;++l<s.length;)s[l][1].type==="strikethroughSequenceTemporary"&&(s[l][1].type="data");return s}function a(s,u,l){const c=this.previous,f=this.events;let d=0;return x;function x(T){return c===126&&f[f.length-1][1].type!=="characterEscape"?l(T):(s.enter("strikethroughSequenceTemporary"),b(T))}function b(T){const A=Bi(c);if(T===126)return d>1?l(T):(s.consume(T),d++,b);if(d<2&&!r)return l(T);const C=s.exit("strikethroughSequenceTemporary"),S=Bi(T);return C._open=!S||S===2&&!!A,C._close=!A||A===2&&!!S,u(T)}}}class Y9{constructor(){this.map=[]}add(t,r,n){W9(this,t,r,n)}consume(t){if(this.map.sort(function(a,s){return a[0]-s[0]}),this.map.length===0)return;let r=this.map.length;const n=[];for(;r>0;)r-=1,n.push(t.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),t.length=this.map[r][0];n.push(t.slice()),t.length=0;let i=n.pop();for(;i;){for(const a of i)t.push(a);i=n.pop()}this.map.length=0}}function W9(e,t,r,n){let i=0;if(!(r===0&&n.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=r,e.map[i][2].push(...n);return}i+=1}e.map.push([t,r,n])}}function $9(e,t){let r=!1;const n=[];for(;t<e.length;){const i=e[t];if(r){if(i[0]==="enter")i[1].type==="tableContent"&&n.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const a=n.length-1;n[a]=n[a]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(r=!0);t+=1}return n}function K9(){return{flow:{null:{name:"table",tokenize:X9,resolveAll:j9}}}}function X9(e,t,r){const n=this;let i=0,a=0,s;return u;function u(Y){let re=n.events.length-1;for(;re>-1;){const oe=n.events[re][1].type;if(oe==="lineEnding"||oe==="linePrefix")re--;else break}const ee=re>-1?n.events[re][1].type:null,be=ee==="tableHead"||ee==="tableRow"?g:l;return be===g&&n.parser.lazy[n.now().line]?r(Y):be(Y)}function l(Y){return e.enter("tableHead"),e.enter("tableRow"),c(Y)}function c(Y){return Y===124||(s=!0,a+=1),f(Y)}function f(Y){return Y===null?r(Y):_e(Y)?a>1?(a=0,n.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(Y),e.exit("lineEnding"),b):r(Y):Ye(Y)?Xe(e,f,"whitespace")(Y):(a+=1,s&&(s=!1,i+=1),Y===124?(e.enter("tableCellDivider"),e.consume(Y),e.exit("tableCellDivider"),s=!0,f):(e.enter("data"),d(Y)))}function d(Y){return Y===null||Y===124||nt(Y)?(e.exit("data"),f(Y)):(e.consume(Y),Y===92?x:d)}function x(Y){return Y===92||Y===124?(e.consume(Y),d):d(Y)}function b(Y){return n.interrupt=!1,n.parser.lazy[n.now().line]?r(Y):(e.enter("tableDelimiterRow"),s=!1,Ye(Y)?Xe(e,T,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Y):T(Y))}function T(Y){return Y===45||Y===58?C(Y):Y===124?(s=!0,e.enter("tableCellDivider"),e.consume(Y),e.exit("tableCellDivider"),A):O(Y)}function A(Y){return Ye(Y)?Xe(e,C,"whitespace")(Y):C(Y)}function C(Y){return Y===58?(a+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(Y),e.exit("tableDelimiterMarker"),S):Y===45?(a+=1,S(Y)):Y===null||_e(Y)?q(Y):O(Y)}function S(Y){return Y===45?(e.enter("tableDelimiterFiller"),I(Y)):O(Y)}function I(Y){return Y===45?(e.consume(Y),I):Y===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(Y),e.exit("tableDelimiterMarker"),D):(e.exit("tableDelimiterFiller"),D(Y))}function D(Y){return Ye(Y)?Xe(e,q,"whitespace")(Y):q(Y)}function q(Y){return Y===124?T(Y):Y===null||_e(Y)?!s||i!==a?O(Y):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(Y)):O(Y)}function O(Y){return r(Y)}function g(Y){return e.enter("tableRow"),P(Y)}function P(Y){return Y===124?(e.enter("tableCellDivider"),e.consume(Y),e.exit("tableCellDivider"),P):Y===null||_e(Y)?(e.exit("tableRow"),t(Y)):Ye(Y)?Xe(e,P,"whitespace")(Y):(e.enter("data"),G(Y))}function G(Y){return Y===null||Y===124||nt(Y)?(e.exit("data"),P(Y)):(e.consume(Y),Y===92?K:G)}function K(Y){return Y===92||Y===124?(e.consume(Y),G):G(Y)}}function j9(e,t){let r=-1,n=!0,i=0,a=[0,0,0,0],s=[0,0,0,0],u=!1,l=0,c,f,d;const x=new Y9;for(;++r<e.length;){const b=e[r],T=b[1];b[0]==="enter"?T.type==="tableHead"?(u=!1,l!==0&&(Gh(x,t,l,c,f),f=void 0,l=0),c={type:"table",start:Object.assign({},T.start),end:Object.assign({},T.end)},x.add(r,0,[["enter",c,t]])):T.type==="tableRow"||T.type==="tableDelimiterRow"?(n=!0,d=void 0,a=[0,0,0,0],s=[0,r+1,0,0],u&&(u=!1,f={type:"tableBody",start:Object.assign({},T.start),end:Object.assign({},T.end)},x.add(r,0,[["enter",f,t]])),i=T.type==="tableDelimiterRow"?2:f?3:1):i&&(T.type==="data"||T.type==="tableDelimiterMarker"||T.type==="tableDelimiterFiller")?(n=!1,s[2]===0&&(a[1]!==0&&(s[0]=s[1],d=ws(x,t,a,i,void 0,d),a=[0,0,0,0]),s[2]=r)):T.type==="tableCellDivider"&&(n?n=!1:(a[1]!==0&&(s[0]=s[1],d=ws(x,t,a,i,void 0,d)),a=s,s=[a[1],r,0,0])):T.type==="tableHead"?(u=!0,l=r):T.type==="tableRow"||T.type==="tableDelimiterRow"?(l=r,a[1]!==0?(s[0]=s[1],d=ws(x,t,a,i,r,d)):s[1]!==0&&(d=ws(x,t,s,i,r,d)),i=0):i&&(T.type==="data"||T.type==="tableDelimiterMarker"||T.type==="tableDelimiterFiller")&&(s[3]=r)}for(l!==0&&Gh(x,t,l,c,f),x.consume(t.events),r=-1;++r<t.events.length;){const b=t.events[r];b[0]==="enter"&&b[1].type==="table"&&(b[1]._align=$9(t.events,r))}return e}function ws(e,t,r,n,i,a){const s=n===1?"tableHeader":n===2?"tableDelimiter":"tableData",u="tableContent";r[0]!==0&&(a.end=Object.assign({},Li(t.events,r[0])),e.add(r[0],0,[["exit",a,t]]));const l=Li(t.events,r[1]);if(a={type:s,start:Object.assign({},l),end:Object.assign({},l)},e.add(r[1],0,[["enter",a,t]]),r[2]!==0){const c=Li(t.events,r[2]),f=Li(t.events,r[3]),d={type:u,start:Object.assign({},c),end:Object.assign({},f)};if(e.add(r[2],0,[["enter",d,t]]),n!==2){const x=t.events[r[2]],b=t.events[r[3]];if(x[1].end=Object.assign({},b[1].end),x[1].type="chunkText",x[1].contentType="text",r[3]>r[2]+1){const T=r[2]+1,A=r[3]-r[2]-1;e.add(T,A,[])}}e.add(r[3]+1,0,[["exit",d,t]])}return i!==void 0&&(a.end=Object.assign({},Li(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function Gh(e,t,r,n,i){const a=[],s=Li(t.events,r);i&&(i.end=Object.assign({},s),a.push(["exit",i,t])),n.end=Object.assign({},s),a.push(["exit",n,t]),e.add(r+1,0,a)}function Li(e,t){const r=e[t],n=r[0]==="enter"?"start":"end";return r[1][n]}const J9={name:"tasklistCheck",tokenize:Z9};function Q9(){return{text:{91:J9}}}function Z9(e,t,r){const n=this;return i;function i(l){return n.previous!==null||!n._gfmTasklistFirstContentOfListItem?r(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),a)}function a(l){return nt(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),s):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),s):r(l)}function s(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),u):r(l)}function u(l){return _e(l)?t(l):Ye(l)?e.check({tokenize:e_},t,r)(l):r(l)}}function e_(e,t,r){return Xe(e,n,"whitespace");function n(i){return i===null?r(i):t(i)}}function t_(e){return Nl([w9(),P9(),G9(e),K9(),Q9()])}const r_={};function L_(e){const t=this,r=e||r_,n=t.data(),i=n.micromarkExtensions||(n.micromarkExtensions=[]),a=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);i.push(t_(r)),a.push(T9()),s.push(_9(r))}function n_(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:a},exit:{mathFlow:i,mathFlowFence:n,mathFlowFenceMeta:r,mathFlowValue:u,mathText:s,mathTextData:u}};function e(l){const c={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[c]}},l)}function t(){this.buffer()}function r(){const l=this.resume(),c=this.stack[this.stack.length-1];c.type,c.meta=l}function n(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function i(l){const c=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),f=this.stack[this.stack.length-1];f.type,this.exit(l),f.value=c;const d=f.data.hChildren[0];d.type,d.tagName,d.children.push({type:"text",value:c}),this.data.mathFlowInside=void 0}function a(l){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},l),this.buffer()}function s(l){const c=this.resume(),f=this.stack[this.stack.length-1];f.type,this.exit(l),f.value=c,f.data.hChildren.push({type:"text",value:c})}function u(l){this.config.enter.data.call(this,l),this.config.exit.data.call(this,l)}}function i_(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),n.peek=i,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
|
|
323
|
+
`))}function l(b,T,A,C){const S=A.enter("tableCell"),I=A.enter("phrasing"),D=A.containerPhrasing(b,{...C,before:a,after:a});return I(),S(),D}function c(b,T){return RT(b,{align:T,alignDelimiters:n,padding:r,stringLength:i})}function f(b,T,A){const C=b.children;let S=-1;const I=[],D=T.enter("table");for(;++S<C.length;)I[S]=d(C[S],T,A);return D(),I}function d(b,T,A){const C=b.children;let S=-1;const I=[],D=T.enter("tableRow");for(;++S<C.length;)I[S]=l(C[S],b,T,A);return D(),I}function x(b,T,A){let C=Q1.inlineCode(b,T,A);return A.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}function x9(){return{exit:{taskListCheckValueChecked:qh,taskListCheckValueUnchecked:qh,paragraph:y9}}}function E9(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:v9}}}function qh(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function y9(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const n=r.children[0];if(n&&n.type==="text"){const i=t.children;let a=-1,s;for(;++a<i.length;){const u=i[a];if(u.type==="paragraph"){s=u;break}}s===r&&(n.value=n.value.slice(1),n.value.length===0?r.children.shift():r.position&&n.position&&typeof n.position.start.offset=="number"&&(n.position.start.column++,n.position.start.offset++,r.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function v9(e,t,r,n){const i=e.children[0],a=typeof e.checked=="boolean"&&i&&i.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",u=r.createTracker(n);a&&u.move(s);let l=Q1.listItem(e,t,r,{...n,...u.current()});return a&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),l;function c(f){return f+s}}function T9(){return[tT(),TT(),wT(),h9(),x9()]}function _9(e){return{extensions:[rT(),_T(e),kT(),b9(e),E9()]}}const A9={tokenize:I9,partial:!0},Z1={tokenize:O9,partial:!0},em={tokenize:R9,partial:!0},tm={tokenize:L9,partial:!0},S9={tokenize:M9,partial:!0},rm={name:"wwwAutolink",tokenize:C9,previous:im},nm={name:"protocolAutolink",tokenize:N9,previous:am},Dn={name:"emailAutolink",tokenize:k9,previous:sm},yn={};function w9(){return{text:yn}}let si=48;for(;si<123;)yn[si]=Dn,si++,si===58?si=65:si===91&&(si=97);yn[43]=Dn;yn[45]=Dn;yn[46]=Dn;yn[95]=Dn;yn[72]=[Dn,nm];yn[104]=[Dn,nm];yn[87]=[Dn,rm];yn[119]=[Dn,rm];function k9(e,t,r){const n=this;let i,a;return s;function s(d){return!pl(d)||!sm.call(n,n.previous)||f0(n.events)?r(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),u(d))}function u(d){return pl(d)?(e.consume(d),u):d===64?(e.consume(d),l):r(d)}function l(d){return d===46?e.check(S9,f,c)(d):d===45||d===95||sr(d)?(a=!0,e.consume(d),l):f(d)}function c(d){return e.consume(d),i=!0,l}function f(d){return a&&i&&ar(n.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):r(d)}}function C9(e,t,r){const n=this;return i;function i(s){return s!==87&&s!==119||!im.call(n,n.previous)||f0(n.events)?r(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(A9,e.attempt(Z1,e.attempt(em,a),r),r)(s))}function a(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function N9(e,t,r){const n=this;let i="",a=!1;return s;function s(d){return(d===72||d===104)&&am.call(n,n.previous)&&!f0(n.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(d),e.consume(d),u):r(d)}function u(d){if(ar(d)&&i.length<5)return i+=String.fromCodePoint(d),e.consume(d),u;if(d===58){const x=i.toLowerCase();if(x==="http"||x==="https")return e.consume(d),l}return r(d)}function l(d){return d===47?(e.consume(d),a?c:(a=!0,l)):r(d)}function c(d){return d===null||Us(d)||nt(d)||gr(d)||uo(d)?r(d):e.attempt(Z1,e.attempt(em,f),r)(d)}function f(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function I9(e,t,r){let n=0;return i;function i(s){return(s===87||s===119)&&n<3?(n++,e.consume(s),i):s===46&&n===3?(e.consume(s),a):r(s)}function a(s){return s===null?r(s):t(s)}}function O9(e,t,r){let n,i,a;return s;function s(c){return c===46||c===95?e.check(tm,l,u)(c):c===null||nt(c)||gr(c)||c!==45&&uo(c)?l(c):(a=!0,e.consume(c),s)}function u(c){return c===95?n=!0:(i=n,n=void 0),e.consume(c),s}function l(c){return i||n||!a?r(c):t(c)}}function R9(e,t){let r=0,n=0;return i;function i(s){return s===40?(r++,e.consume(s),i):s===41&&n<r?a(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(tm,t,a)(s):s===null||nt(s)||gr(s)?t(s):(e.consume(s),i)}function a(s){return s===41&&n++,e.consume(s),i}}function L9(e,t,r){return n;function n(u){return u===33||u===34||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===63||u===95||u===126?(e.consume(u),n):u===38?(e.consume(u),a):u===93?(e.consume(u),i):u===60||u===null||nt(u)||gr(u)?t(u):r(u)}function i(u){return u===null||u===40||u===91||nt(u)||gr(u)?t(u):n(u)}function a(u){return ar(u)?s(u):r(u)}function s(u){return u===59?(e.consume(u),n):ar(u)?(e.consume(u),s):r(u)}}function M9(e,t,r){return n;function n(a){return e.consume(a),i}function i(a){return sr(a)?r(a):t(a)}}function im(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||nt(e)}function am(e){return!ar(e)}function sm(e){return!(e===47||pl(e))}function pl(e){return e===43||e===45||e===46||e===95||sr(e)}function f0(e){let t=e.length,r=!1;for(;t--;){const n=e[t][1];if((n.type==="labelLink"||n.type==="labelImage")&&!n._balanced){r=!0;break}if(n._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const D9={tokenize:q9,partial:!0};function P9(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:z9,continuation:{tokenize:H9},exit:V9}},text:{91:{name:"gfmFootnoteCall",tokenize:U9},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:B9,resolveTo:F9}}}}function B9(e,t,r){const n=this;let i=n.events.length;const a=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let s;for(;i--;){const l=n.events[i][1];if(l.type==="labelImage"){s=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return u;function u(l){if(!s||!s._balanced)return r(l);const c=tn(n.sliceSerialize({start:s.end,end:n.now()}));return c.codePointAt(0)!==94||!a.includes(c.slice(1))?r(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function F9(e,t){let r=e.length;for(;r--;)if(e[r][1].type==="labelImage"&&e[r][0]==="enter"){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const n={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},u=[e[r+1],e[r+2],["enter",n,t],e[r+3],e[r+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",n,t]];return e.splice(r,e.length-r+1,...u),e}function U9(e,t,r){const n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a=0,s;return u;function u(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?r(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(d){if(a>999||d===93&&!s||d===null||d===91||nt(d))return r(d);if(d===93){e.exit("chunkString");const x=e.exit("gfmFootnoteCallString");return i.includes(tn(n.sliceSerialize(x)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(d)}return nt(d)||(s=!0),a++,e.consume(d),d===92?f:c}function f(d){return d===91||d===92||d===93?(e.consume(d),a++,c):c(d)}}function z9(e,t,r){const n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a,s=0,u;return l;function l(T){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(T),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(T){return T===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(T),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):r(T)}function f(T){if(s>999||T===93&&!u||T===null||T===91||nt(T))return r(T);if(T===93){e.exit("chunkString");const A=e.exit("gfmFootnoteDefinitionLabelString");return a=tn(n.sliceSerialize(A)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(T),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),x}return nt(T)||(u=!0),s++,e.consume(T),T===92?d:f}function d(T){return T===91||T===92||T===93?(e.consume(T),s++,f):f(T)}function x(T){return T===58?(e.enter("definitionMarker"),e.consume(T),e.exit("definitionMarker"),i.includes(a)||i.push(a),Xe(e,b,"gfmFootnoteDefinitionWhitespace")):r(T)}function b(T){return t(T)}}function H9(e,t,r){return e.check(Ki,t,e.attempt(D9,t,r))}function V9(e){e.exit("gfmFootnoteDefinition")}function q9(e,t,r){const n=this;return Xe(e,i,"gfmFootnoteDefinitionIndent",5);function i(a){const s=n.events[n.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(a):r(a)}}function G9(e){let r=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:a,resolveAll:i};return r==null&&(r=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function i(s,u){let l=-1;for(;++l<s.length;)if(s[l][0]==="enter"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._close){let c=l;for(;c--;)if(s[c][0]==="exit"&&s[c][1].type==="strikethroughSequenceTemporary"&&s[c][1]._open&&s[l][1].end.offset-s[l][1].start.offset===s[c][1].end.offset-s[c][1].start.offset){s[l][1].type="strikethroughSequence",s[c][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},s[c][1].start),end:Object.assign({},s[l][1].end)},d={type:"strikethroughText",start:Object.assign({},s[c][1].end),end:Object.assign({},s[l][1].start)},x=[["enter",f,u],["enter",s[c][1],u],["exit",s[c][1],u],["enter",d,u]],b=u.parser.constructs.insideSpan.null;b&&Mr(x,x.length,0,lo(b,s.slice(c+1,l),u)),Mr(x,x.length,0,[["exit",d,u],["enter",s[l][1],u],["exit",s[l][1],u],["exit",f,u]]),Mr(s,c-1,l-c+3,x),l=c+x.length-2;break}}for(l=-1;++l<s.length;)s[l][1].type==="strikethroughSequenceTemporary"&&(s[l][1].type="data");return s}function a(s,u,l){const c=this.previous,f=this.events;let d=0;return x;function x(T){return c===126&&f[f.length-1][1].type!=="characterEscape"?l(T):(s.enter("strikethroughSequenceTemporary"),b(T))}function b(T){const A=Bi(c);if(T===126)return d>1?l(T):(s.consume(T),d++,b);if(d<2&&!r)return l(T);const C=s.exit("strikethroughSequenceTemporary"),S=Bi(T);return C._open=!S||S===2&&!!A,C._close=!A||A===2&&!!S,u(T)}}}class Y9{constructor(){this.map=[]}add(t,r,n){W9(this,t,r,n)}consume(t){if(this.map.sort(function(a,s){return a[0]-s[0]}),this.map.length===0)return;let r=this.map.length;const n=[];for(;r>0;)r-=1,n.push(t.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),t.length=this.map[r][0];n.push(t.slice()),t.length=0;let i=n.pop();for(;i;){for(const a of i)t.push(a);i=n.pop()}this.map.length=0}}function W9(e,t,r,n){let i=0;if(!(r===0&&n.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=r,e.map[i][2].push(...n);return}i+=1}e.map.push([t,r,n])}}function $9(e,t){let r=!1;const n=[];for(;t<e.length;){const i=e[t];if(r){if(i[0]==="enter")i[1].type==="tableContent"&&n.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const a=n.length-1;n[a]=n[a]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(r=!0);t+=1}return n}function K9(){return{flow:{null:{name:"table",tokenize:X9,resolveAll:j9}}}}function X9(e,t,r){const n=this;let i=0,a=0,s;return u;function u(Y){let re=n.events.length-1;for(;re>-1;){const oe=n.events[re][1].type;if(oe==="lineEnding"||oe==="linePrefix")re--;else break}const ee=re>-1?n.events[re][1].type:null,be=ee==="tableHead"||ee==="tableRow"?g:l;return be===g&&n.parser.lazy[n.now().line]?r(Y):be(Y)}function l(Y){return e.enter("tableHead"),e.enter("tableRow"),c(Y)}function c(Y){return Y===124||(s=!0,a+=1),f(Y)}function f(Y){return Y===null?r(Y):_e(Y)?a>1?(a=0,n.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(Y),e.exit("lineEnding"),b):r(Y):Ye(Y)?Xe(e,f,"whitespace")(Y):(a+=1,s&&(s=!1,i+=1),Y===124?(e.enter("tableCellDivider"),e.consume(Y),e.exit("tableCellDivider"),s=!0,f):(e.enter("data"),d(Y)))}function d(Y){return Y===null||Y===124||nt(Y)?(e.exit("data"),f(Y)):(e.consume(Y),Y===92?x:d)}function x(Y){return Y===92||Y===124?(e.consume(Y),d):d(Y)}function b(Y){return n.interrupt=!1,n.parser.lazy[n.now().line]?r(Y):(e.enter("tableDelimiterRow"),s=!1,Ye(Y)?Xe(e,T,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Y):T(Y))}function T(Y){return Y===45||Y===58?C(Y):Y===124?(s=!0,e.enter("tableCellDivider"),e.consume(Y),e.exit("tableCellDivider"),A):O(Y)}function A(Y){return Ye(Y)?Xe(e,C,"whitespace")(Y):C(Y)}function C(Y){return Y===58?(a+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(Y),e.exit("tableDelimiterMarker"),S):Y===45?(a+=1,S(Y)):Y===null||_e(Y)?q(Y):O(Y)}function S(Y){return Y===45?(e.enter("tableDelimiterFiller"),I(Y)):O(Y)}function I(Y){return Y===45?(e.consume(Y),I):Y===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(Y),e.exit("tableDelimiterMarker"),D):(e.exit("tableDelimiterFiller"),D(Y))}function D(Y){return Ye(Y)?Xe(e,q,"whitespace")(Y):q(Y)}function q(Y){return Y===124?T(Y):Y===null||_e(Y)?!s||i!==a?O(Y):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(Y)):O(Y)}function O(Y){return r(Y)}function g(Y){return e.enter("tableRow"),P(Y)}function P(Y){return Y===124?(e.enter("tableCellDivider"),e.consume(Y),e.exit("tableCellDivider"),P):Y===null||_e(Y)?(e.exit("tableRow"),t(Y)):Ye(Y)?Xe(e,P,"whitespace")(Y):(e.enter("data"),G(Y))}function G(Y){return Y===null||Y===124||nt(Y)?(e.exit("data"),P(Y)):(e.consume(Y),Y===92?K:G)}function K(Y){return Y===92||Y===124?(e.consume(Y),G):G(Y)}}function j9(e,t){let r=-1,n=!0,i=0,a=[0,0,0,0],s=[0,0,0,0],u=!1,l=0,c,f,d;const x=new Y9;for(;++r<e.length;){const b=e[r],T=b[1];b[0]==="enter"?T.type==="tableHead"?(u=!1,l!==0&&(Gh(x,t,l,c,f),f=void 0,l=0),c={type:"table",start:Object.assign({},T.start),end:Object.assign({},T.end)},x.add(r,0,[["enter",c,t]])):T.type==="tableRow"||T.type==="tableDelimiterRow"?(n=!0,d=void 0,a=[0,0,0,0],s=[0,r+1,0,0],u&&(u=!1,f={type:"tableBody",start:Object.assign({},T.start),end:Object.assign({},T.end)},x.add(r,0,[["enter",f,t]])),i=T.type==="tableDelimiterRow"?2:f?3:1):i&&(T.type==="data"||T.type==="tableDelimiterMarker"||T.type==="tableDelimiterFiller")?(n=!1,s[2]===0&&(a[1]!==0&&(s[0]=s[1],d=ws(x,t,a,i,void 0,d),a=[0,0,0,0]),s[2]=r)):T.type==="tableCellDivider"&&(n?n=!1:(a[1]!==0&&(s[0]=s[1],d=ws(x,t,a,i,void 0,d)),a=s,s=[a[1],r,0,0])):T.type==="tableHead"?(u=!0,l=r):T.type==="tableRow"||T.type==="tableDelimiterRow"?(l=r,a[1]!==0?(s[0]=s[1],d=ws(x,t,a,i,r,d)):s[1]!==0&&(d=ws(x,t,s,i,r,d)),i=0):i&&(T.type==="data"||T.type==="tableDelimiterMarker"||T.type==="tableDelimiterFiller")&&(s[3]=r)}for(l!==0&&Gh(x,t,l,c,f),x.consume(t.events),r=-1;++r<t.events.length;){const b=t.events[r];b[0]==="enter"&&b[1].type==="table"&&(b[1]._align=$9(t.events,r))}return e}function ws(e,t,r,n,i,a){const s=n===1?"tableHeader":n===2?"tableDelimiter":"tableData",u="tableContent";r[0]!==0&&(a.end=Object.assign({},Li(t.events,r[0])),e.add(r[0],0,[["exit",a,t]]));const l=Li(t.events,r[1]);if(a={type:s,start:Object.assign({},l),end:Object.assign({},l)},e.add(r[1],0,[["enter",a,t]]),r[2]!==0){const c=Li(t.events,r[2]),f=Li(t.events,r[3]),d={type:u,start:Object.assign({},c),end:Object.assign({},f)};if(e.add(r[2],0,[["enter",d,t]]),n!==2){const x=t.events[r[2]],b=t.events[r[3]];if(x[1].end=Object.assign({},b[1].end),x[1].type="chunkText",x[1].contentType="text",r[3]>r[2]+1){const T=r[2]+1,A=r[3]-r[2]-1;e.add(T,A,[])}}e.add(r[3]+1,0,[["exit",d,t]])}return i!==void 0&&(a.end=Object.assign({},Li(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function Gh(e,t,r,n,i){const a=[],s=Li(t.events,r);i&&(i.end=Object.assign({},s),a.push(["exit",i,t])),n.end=Object.assign({},s),a.push(["exit",n,t]),e.add(r+1,0,a)}function Li(e,t){const r=e[t],n=r[0]==="enter"?"start":"end";return r[1][n]}const J9={name:"tasklistCheck",tokenize:Z9};function Q9(){return{text:{91:J9}}}function Z9(e,t,r){const n=this;return i;function i(l){return n.previous!==null||!n._gfmTasklistFirstContentOfListItem?r(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),a)}function a(l){return nt(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),s):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),s):r(l)}function s(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),u):r(l)}function u(l){return _e(l)?t(l):Ye(l)?e.check({tokenize:e_},t,r)(l):r(l)}}function e_(e,t,r){return Xe(e,n,"whitespace");function n(i){return i===null?r(i):t(i)}}function t_(e){return Nl([w9(),P9(),G9(e),K9(),Q9()])}const r_={};function D_(e){const t=this,r=e||r_,n=t.data(),i=n.micromarkExtensions||(n.micromarkExtensions=[]),a=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);i.push(t_(r)),a.push(T9()),s.push(_9(r))}function n_(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:a},exit:{mathFlow:i,mathFlowFence:n,mathFlowFenceMeta:r,mathFlowValue:u,mathText:s,mathTextData:u}};function e(l){const c={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[c]}},l)}function t(){this.buffer()}function r(){const l=this.resume(),c=this.stack[this.stack.length-1];c.type,c.meta=l}function n(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function i(l){const c=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),f=this.stack[this.stack.length-1];f.type,this.exit(l),f.value=c;const d=f.data.hChildren[0];d.type,d.tagName,d.children.push({type:"text",value:c}),this.data.mathFlowInside=void 0}function a(l){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},l),this.buffer()}function s(l){const c=this.resume(),f=this.stack[this.stack.length-1];f.type,this.exit(l),f.value=c,f.data.hChildren.push({type:"text",value:c})}function u(l){this.config.enter.data.call(this,l),this.config.exit.data.call(this,l)}}function i_(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),n.peek=i,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
|
|
324
324
|
`,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:r,inlineMath:n}};function r(a,s,u,l){const c=a.value||"",f=u.createTracker(l),d="$".repeat(Math.max(H1(c,"$")+1,2)),x=u.enter("mathFlow");let b=f.move(d);if(a.meta){const T=u.enter("mathFlowMeta");b+=f.move(u.safe(a.meta,{after:`
|
|
325
325
|
`,before:b,encode:["$"],...f.current()})),T()}return b+=f.move(`
|
|
326
326
|
`),c&&(b+=f.move(c+`
|
|
327
|
-
`)),b+=f.move(d),x(),b}function n(a,s,u){let l=a.value||"",c=1;for(t||c++;new RegExp("(^|[^$])"+"\\$".repeat(c)+"([^$]|$)").test(l);)c++;const f="$".repeat(c);/[^ \r\n]/.test(l)&&(/^[ \r\n]/.test(l)&&/[ \r\n]$/.test(l)||/^\$|\$$/.test(l))&&(l=" "+l+" ");let d=-1;for(;++d<u.unsafe.length;){const x=u.unsafe[d];if(!x.atBreak)continue;const b=u.compilePattern(x);let T;for(;T=b.exec(l);){let A=T.index;l.codePointAt(A)===10&&l.codePointAt(A-1)===13&&A--,l=l.slice(0,A)+" "+l.slice(T.index+1)}}return f+l+f}function i(){return"$"}}const a_={tokenize:s_,concrete:!0,name:"mathFlow"},Yh={tokenize:o_,partial:!0};function s_(e,t,r){const n=this,i=n.events[n.events.length-1],a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0;let s=0;return u;function u(I){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),l(I)}function l(I){return I===36?(e.consume(I),s++,l):s<2?r(I):(e.exit("mathFlowFenceSequence"),Xe(e,c,"whitespace")(I))}function c(I){return I===null||_e(I)?d(I):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),f(I))}function f(I){return I===null||_e(I)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),d(I)):I===36?r(I):(e.consume(I),f)}function d(I){return e.exit("mathFlowFence"),n.interrupt?t(I):e.attempt(Yh,x,C)(I)}function x(I){return e.attempt({tokenize:S,partial:!0},C,b)(I)}function b(I){return(a?Xe(e,T,"linePrefix",a+1):T)(I)}function T(I){return I===null?C(I):_e(I)?e.attempt(Yh,x,C)(I):(e.enter("mathFlowValue"),A(I))}function A(I){return I===null||_e(I)?(e.exit("mathFlowValue"),T(I)):(e.consume(I),A)}function C(I){return e.exit("mathFlow"),t(I)}function S(I,D,q){let O=0;return Xe(I,g,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function g(K){return I.enter("mathFlowFence"),I.enter("mathFlowFenceSequence"),P(K)}function P(K){return K===36?(O++,I.consume(K),P):O<s?q(K):(I.exit("mathFlowFenceSequence"),Xe(I,G,"whitespace")(K))}function G(K){return K===null||_e(K)?(I.exit("mathFlowFence"),D(K)):q(K)}}}function o_(e,t,r){const n=this;return i;function i(s){return s===null?t(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return n.parser.lazy[n.now().line]?r(s):t(s)}}function u_(e){let r=(e||{}).singleDollarTextMath;return r==null&&(r=!0),{tokenize:n,resolve:l_,previous:c_,name:"mathText"};function n(i,a,s){let u=0,l,c;return f;function f(A){return i.enter("mathText"),i.enter("mathTextSequence"),d(A)}function d(A){return A===36?(i.consume(A),u++,d):u<2&&!r?s(A):(i.exit("mathTextSequence"),x(A))}function x(A){return A===null?s(A):A===36?(c=i.enter("mathTextSequence"),l=0,T(A)):A===32?(i.enter("space"),i.consume(A),i.exit("space"),x):_e(A)?(i.enter("lineEnding"),i.consume(A),i.exit("lineEnding"),x):(i.enter("mathTextData"),b(A))}function b(A){return A===null||A===32||A===36||_e(A)?(i.exit("mathTextData"),x(A)):(i.consume(A),b)}function T(A){return A===36?(i.consume(A),l++,T):l===u?(i.exit("mathTextSequence"),i.exit("mathText"),a(A)):(c.type="mathTextData",b(A))}}}function l_(e){let t=e.length-4,r=3,n,i;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="mathTextData"){e[t][1].type="mathTextPadding",e[r][1].type="mathTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)i===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(i=n):(n===t||e[n][1].type==="lineEnding")&&(e[i][1].type="mathTextData",n!==i+2&&(e[i][1].end=e[n-1][1].end,e.splice(i+2,n-i-2),t-=n-i-2,n=i+2),i=void 0);return e}function c_(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function h_(e){return{flow:{36:a_},text:{36:u_(e)}}}const f_={};function
|
|
327
|
+
`)),b+=f.move(d),x(),b}function n(a,s,u){let l=a.value||"",c=1;for(t||c++;new RegExp("(^|[^$])"+"\\$".repeat(c)+"([^$]|$)").test(l);)c++;const f="$".repeat(c);/[^ \r\n]/.test(l)&&(/^[ \r\n]/.test(l)&&/[ \r\n]$/.test(l)||/^\$|\$$/.test(l))&&(l=" "+l+" ");let d=-1;for(;++d<u.unsafe.length;){const x=u.unsafe[d];if(!x.atBreak)continue;const b=u.compilePattern(x);let T;for(;T=b.exec(l);){let A=T.index;l.codePointAt(A)===10&&l.codePointAt(A-1)===13&&A--,l=l.slice(0,A)+" "+l.slice(T.index+1)}}return f+l+f}function i(){return"$"}}const a_={tokenize:s_,concrete:!0,name:"mathFlow"},Yh={tokenize:o_,partial:!0};function s_(e,t,r){const n=this,i=n.events[n.events.length-1],a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0;let s=0;return u;function u(I){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),l(I)}function l(I){return I===36?(e.consume(I),s++,l):s<2?r(I):(e.exit("mathFlowFenceSequence"),Xe(e,c,"whitespace")(I))}function c(I){return I===null||_e(I)?d(I):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),f(I))}function f(I){return I===null||_e(I)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),d(I)):I===36?r(I):(e.consume(I),f)}function d(I){return e.exit("mathFlowFence"),n.interrupt?t(I):e.attempt(Yh,x,C)(I)}function x(I){return e.attempt({tokenize:S,partial:!0},C,b)(I)}function b(I){return(a?Xe(e,T,"linePrefix",a+1):T)(I)}function T(I){return I===null?C(I):_e(I)?e.attempt(Yh,x,C)(I):(e.enter("mathFlowValue"),A(I))}function A(I){return I===null||_e(I)?(e.exit("mathFlowValue"),T(I)):(e.consume(I),A)}function C(I){return e.exit("mathFlow"),t(I)}function S(I,D,q){let O=0;return Xe(I,g,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function g(K){return I.enter("mathFlowFence"),I.enter("mathFlowFenceSequence"),P(K)}function P(K){return K===36?(O++,I.consume(K),P):O<s?q(K):(I.exit("mathFlowFenceSequence"),Xe(I,G,"whitespace")(K))}function G(K){return K===null||_e(K)?(I.exit("mathFlowFence"),D(K)):q(K)}}}function o_(e,t,r){const n=this;return i;function i(s){return s===null?t(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return n.parser.lazy[n.now().line]?r(s):t(s)}}function u_(e){let r=(e||{}).singleDollarTextMath;return r==null&&(r=!0),{tokenize:n,resolve:l_,previous:c_,name:"mathText"};function n(i,a,s){let u=0,l,c;return f;function f(A){return i.enter("mathText"),i.enter("mathTextSequence"),d(A)}function d(A){return A===36?(i.consume(A),u++,d):u<2&&!r?s(A):(i.exit("mathTextSequence"),x(A))}function x(A){return A===null?s(A):A===36?(c=i.enter("mathTextSequence"),l=0,T(A)):A===32?(i.enter("space"),i.consume(A),i.exit("space"),x):_e(A)?(i.enter("lineEnding"),i.consume(A),i.exit("lineEnding"),x):(i.enter("mathTextData"),b(A))}function b(A){return A===null||A===32||A===36||_e(A)?(i.exit("mathTextData"),x(A)):(i.consume(A),b)}function T(A){return A===36?(i.consume(A),l++,T):l===u?(i.exit("mathTextSequence"),i.exit("mathText"),a(A)):(c.type="mathTextData",b(A))}}}function l_(e){let t=e.length-4,r=3,n,i;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="mathTextData"){e[t][1].type="mathTextPadding",e[r][1].type="mathTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)i===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(i=n):(n===t||e[n][1].type==="lineEnding")&&(e[i][1].type="mathTextData",n!==i+2&&(e[i][1].end=e[n-1][1].end,e.splice(i+2,n-i-2),t-=n-i-2,n=i+2),i=void 0);return e}function c_(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function h_(e){return{flow:{36:a_},text:{36:u_(e)}}}const f_={};function P_(e){const t=this,r=e||f_,n=t.data(),i=n.micromarkExtensions||(n.micromarkExtensions=[]),a=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);i.push(h_(r)),a.push(n_()),s.push(i_(r))}const d_=new Set(["h1","h2","h3","h4","h5","h6"]),p_="barkdown-section";function Wh(e){const t=/^h([1-6])$/.exec(e);return t?Number.parseInt(t[1],10):null}function m_(e){return e.type==="element"}function $h(e){return m_(e)&&d_.has(e.tagName)}function om(e){return e.type==="text"?e.value:e.children.map(t=>om(t)).join("")}function g_(e){return e.toLowerCase().replace(/[^\w\s-]/g,"").trim().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"")}class b_{seen=new Map;id(t){const r=g_(t)||"section",n=this.seen.get(r)??0;return this.seen.set(r,n+1),n===0?r:`${r}-${n}`}}function x_(e,t){const r=e.properties?.className,n=["barkdown-heading-wrapper"];return Array.isArray(r)?n.push(...r):typeof r=="string"&&r.length>0&&n.push(r),{...e,properties:{...e.properties,id:t,className:n}}}function um(e,t,r){const n=[];let i=0;for(;i<e.length;){const a=e[i];if(i++,!a||!$h(a)){a&&n.push(a);continue}const s=Wh(a.tagName);if(s===null||s<=t){n.push(a);continue}const u=r.id(om(a)),l=x_(a,u),c=[];for(;i<e.length;){const f=e[i];if(f&&$h(f)){const d=Wh(f.tagName);if(d!==null&&d<=s)break}f&&c.push(f),i++}n.push({type:"element",tagName:p_,properties:{},children:[l,...um(c,s,r)]})}return n}function B_(){return e=>{const t=new b_;e.children=um(e.children,0,t)}}const E_=new Set(["h1","h2","h3","h4","h5","h6"]);function lm(e){if(e.type==="element"){E_.has(e.tagName)&&e.position?.start?.line&&(e.properties.dataBarkdownLine=String(e.position.start.line));for(const t of e.children)lm(t)}}function F_(){return e=>{for(const t of e.children)lm(t)}}export{I_ as A,p_ as C,C_ as M,Kh as V,Lm as a,S_ as b,v_ as c,k_ as d,Z3 as e,w_ as f,eo as g,A_ as h,R_ as i,L_ as j,Ph as k,N_ as l,O_ as m,va as n,__ as o,ks as p,F_ as q,s3 as r,wn as s,B_ as t,s6 as u,M_ as v,Cm as w,D_ as x,P_ as y,T_ as z};
|