@chorus-aidlc/chorus 0.19.0 → 0.20.0
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/.next/standalone/.next/BUILD_ID +1 -1
- package/.next/standalone/.next/app-build-manifest.json +334 -335
- package/.next/standalone/.next/app-path-routes-manifest.json +30 -30
- package/.next/standalone/.next/build-manifest.json +5 -5
- package/.next/standalone/.next/prerender-manifest.json +21 -21
- package/.next/standalone/.next/server/app/(dashboard)/project-groups/[uuid]/page.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/project-groups/[uuid]/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/project-groups/[uuid]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/activity/page.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/activity/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/activity/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/dashboard/[ideaUuid]/page.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/dashboard/[ideaUuid]/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/dashboard/[ideaUuid]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/dashboard/page.js +2 -2
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/dashboard/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/dashboard/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/documents/[documentUuid]/page.js +2 -2
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/documents/[documentUuid]/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/documents/[documentUuid]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/documents/page.js +2 -2
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/documents/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/documents/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/graph/page.js +2 -2
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/graph/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/graph/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/proposals/[proposalUuid]/page.js +2 -2
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/proposals/[proposalUuid]/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/proposals/[proposalUuid]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/proposals/new/page.js +2 -2
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/proposals/new/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/proposals/new/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/proposals/page.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/proposals/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/proposals/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/tasks/[taskUuid]/page.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/tasks/[taskUuid]/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/tasks/[taskUuid]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/tasks/page.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/tasks/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/tasks/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/page.js +2 -2
- package/.next/standalone/.next/server/app/(dashboard)/projects/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/projects/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/settings/page.js +2 -2
- package/.next/standalone/.next/server/app/(dashboard)/settings/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/settings/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/_not-found.html +2 -2
- package/.next/standalone/.next/server/app/_not-found.rsc +2 -2
- package/.next/standalone/.next/server/app/admin/companies/[uuid]/page.js +1 -1
- package/.next/standalone/.next/server/app/admin/companies/[uuid]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/admin/companies/new/page.js +1 -1
- package/.next/standalone/.next/server/app/admin/companies/new/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/admin/companies/new.html +2 -2
- package/.next/standalone/.next/server/app/admin/companies/new.rsc +3 -3
- package/.next/standalone/.next/server/app/admin/companies/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/admin/companies.html +2 -2
- package/.next/standalone/.next/server/app/admin/companies.rsc +2 -2
- package/.next/standalone/.next/server/app/admin/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/admin.html +2 -2
- package/.next/standalone/.next/server/app/admin.rsc +2 -2
- package/.next/standalone/.next/server/app/api/admin/companies/[uuid]/route.js +1 -1
- package/.next/standalone/.next/server/app/api/admin/companies/[uuid]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/admin/companies/[uuid]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/admin/companies/route.js +1 -1
- package/.next/standalone/.next/server/app/api/admin/companies/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/admin/companies/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/admin/login/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/admin/session/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/agent-connections/route.js +1 -1
- package/.next/standalone/.next/server/app/api/agent-connections/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/agent-connections/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/agents/[uuid]/route.js +1 -1
- package/.next/standalone/.next/server/app/api/agents/[uuid]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/agents/[uuid]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/agents/[uuid]/sessions/route.js +1 -1
- package/.next/standalone/.next/server/app/api/agents/[uuid]/sessions/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/agents/[uuid]/sessions/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/agents/route.js +1 -1
- package/.next/standalone/.next/server/app/api/agents/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/agents/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/api-keys/[uuid]/route.js +1 -1
- package/.next/standalone/.next/server/app/api/api-keys/[uuid]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/api-keys/[uuid]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/api-keys/route.js +1 -1
- package/.next/standalone/.next/server/app/api/api-keys/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/api-keys/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/auth/callback/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/auth/check-default/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/auth/company-oidc/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/auth/default-login/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/auth/identify/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/auth/logout/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/auth/me/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/auth/sync-token/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/comments/route.js +1 -1
- package/.next/standalone/.next/server/app/api/comments/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/comments/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/daemon/connection-heartbeat/route.js +1 -1
- package/.next/standalone/.next/server/app/api/daemon/connection-heartbeat/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/daemon/connection-heartbeat/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/daemon/control/route.js +1 -1
- package/.next/standalone/.next/server/app/api/daemon/control/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/daemon/control/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/daemon/directory-request/report/route.js +1 -1
- package/.next/standalone/.next/server/app/api/daemon/directory-request/report/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/daemon/directory-request/report/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/daemon/execution-state/route.js +1 -1
- package/.next/standalone/.next/server/app/api/daemon/execution-state/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/daemon/execution-state/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/daemon/executions/route.js +1 -1
- package/.next/standalone/.next/server/app/api/daemon/executions/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/daemon/executions/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/daemon/pending-turns/route.js +1 -1
- package/.next/standalone/.next/server/app/api/daemon/pending-turns/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/daemon/pending-turns/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/daemon/report-interrupt/route.js +1 -1
- package/.next/standalone/.next/server/app/api/daemon/report-interrupt/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/daemon/report-interrupt/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/daemon/resume/route.js +1 -1
- package/.next/standalone/.next/server/app/api/daemon/resume/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/daemon/resume/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/daemon/transcript/route.js +1 -1
- package/.next/standalone/.next/server/app/api/daemon/transcript/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/daemon/transcript/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/daemon/turn-advance/route.js +1 -1
- package/.next/standalone/.next/server/app/api/daemon/turn-advance/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/daemon/turn-advance/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/daemon-directory-requests/[uuid]/route.js +1 -1
- package/.next/standalone/.next/server/app/api/daemon-directory-requests/[uuid]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/daemon-directory-requests/[uuid]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/daemon-directory-requests/route.js +1 -1
- package/.next/standalone/.next/server/app/api/daemon-directory-requests/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/daemon-directory-requests/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/daemon-sessions/[sessionUuid]/instruction/route.js +1 -1
- package/.next/standalone/.next/server/app/api/daemon-sessions/[sessionUuid]/instruction/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/daemon-sessions/[sessionUuid]/instruction/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/daemon-sessions/[sessionUuid]/repoint/route.js +1 -1
- package/.next/standalone/.next/server/app/api/daemon-sessions/[sessionUuid]/repoint/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/daemon-sessions/[sessionUuid]/repoint/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/daemon-sessions/[sessionUuid]/route.js +1 -1
- package/.next/standalone/.next/server/app/api/daemon-sessions/[sessionUuid]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/daemon-sessions/[sessionUuid]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/daemon-sessions/ad-hoc/route.js +1 -1
- package/.next/standalone/.next/server/app/api/daemon-sessions/ad-hoc/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/daemon-sessions/ad-hoc/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/daemon-sessions/route.js +1 -1
- package/.next/standalone/.next/server/app/api/daemon-sessions/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/daemon-sessions/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/documents/[uuid]/route.js +1 -1
- package/.next/standalone/.next/server/app/api/documents/[uuid]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/documents/[uuid]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/entities/[type]/[uuid]/root-idea/route.js +1 -1
- package/.next/standalone/.next/server/app/api/entities/[type]/[uuid]/root-idea/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/entities/[type]/[uuid]/root-idea/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/events/notifications/route.js +1 -1
- package/.next/standalone/.next/server/app/api/events/notifications/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/events/notifications/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/events/route.js +2 -2
- package/.next/standalone/.next/server/app/api/events/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/events/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/health/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/ideas/[uuid]/claim/route.js +1 -1
- package/.next/standalone/.next/server/app/api/ideas/[uuid]/claim/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/ideas/[uuid]/claim/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/ideas/[uuid]/move/preview/route.js +1 -1
- package/.next/standalone/.next/server/app/api/ideas/[uuid]/move/preview/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/ideas/[uuid]/move/preview/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/ideas/[uuid]/move/route.js +1 -1
- package/.next/standalone/.next/server/app/api/ideas/[uuid]/move/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/ideas/[uuid]/move/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/ideas/[uuid]/parent/route.js +1 -1
- package/.next/standalone/.next/server/app/api/ideas/[uuid]/parent/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/ideas/[uuid]/parent/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/ideas/[uuid]/release/route.js +1 -1
- package/.next/standalone/.next/server/app/api/ideas/[uuid]/release/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/ideas/[uuid]/release/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/ideas/[uuid]/route.js +1 -1
- package/.next/standalone/.next/server/app/api/ideas/[uuid]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/ideas/[uuid]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/ideas/[uuid]/wake-preview/route.js +1 -1
- package/.next/standalone/.next/server/app/api/ideas/[uuid]/wake-preview/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/ideas/[uuid]/wake-preview/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/ideas/conversational/route.js +1 -1
- package/.next/standalone/.next/server/app/api/ideas/conversational/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/ideas/conversational/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/mcp/route.js +1 -1
- package/.next/standalone/.next/server/app/api/mcp/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/mcp/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/me/assignments/route.js +1 -1
- package/.next/standalone/.next/server/app/api/me/assignments/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/me/assignments/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/mentionables/route.js +1 -1
- package/.next/standalone/.next/server/app/api/mentionables/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/mentionables/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/notifications/[uuid]/archive/route.js +1 -1
- package/.next/standalone/.next/server/app/api/notifications/[uuid]/archive/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/notifications/[uuid]/archive/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/notifications/[uuid]/read/route.js +1 -1
- package/.next/standalone/.next/server/app/api/notifications/[uuid]/read/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/notifications/[uuid]/read/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/notifications/preferences/route.js +1 -1
- package/.next/standalone/.next/server/app/api/notifications/preferences/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/notifications/preferences/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/notifications/read-all/route.js +1 -1
- package/.next/standalone/.next/server/app/api/notifications/read-all/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/notifications/read-all/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/notifications/route.js +1 -1
- package/.next/standalone/.next/server/app/api/notifications/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/notifications/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/notifications/unread-count/route.js +1 -1
- package/.next/standalone/.next/server/app/api/notifications/unread-count/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/notifications/unread-count/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/project-groups/[uuid]/dashboard/route.js +1 -1
- package/.next/standalone/.next/server/app/api/project-groups/[uuid]/dashboard/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/project-groups/[uuid]/dashboard/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/project-groups/[uuid]/route.js +1 -1
- package/.next/standalone/.next/server/app/api/project-groups/[uuid]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/project-groups/[uuid]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/project-groups/route.js +1 -1
- package/.next/standalone/.next/server/app/api/project-groups/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/project-groups/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/project-visits/pin/route.js +1 -1
- package/.next/standalone/.next/server/app/api/project-visits/pin/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/project-visits/pin/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/project-visits/route.js +1 -1
- package/.next/standalone/.next/server/app/api/project-visits/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/project-visits/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/project-visits/visit/route.js +1 -1
- package/.next/standalone/.next/server/app/api/project-visits/visit/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/project-visits/visit/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/activity/route.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/activity/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/activity/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/agent-cwds/route.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/agent-cwds/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/agent-cwds/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/available/route.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/available/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/available/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/documents/route.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/documents/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/documents/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/group/route.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/group/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/group/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/ideas/route.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/ideas/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/ideas/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/ideas/tracker/route.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/ideas/tracker/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/ideas/tracker/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/proposals/[proposalUuid]/validate/route.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/proposals/[proposalUuid]/validate/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/proposals/[proposalUuid]/validate/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/proposals/route.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/proposals/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/proposals/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/proposals/summary/route.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/proposals/summary/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/proposals/summary/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/resource-graph/route.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/resource-graph/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/resource-graph/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/route.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/stats/route.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/stats/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/stats/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/tasks/dependencies/route.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/tasks/dependencies/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/tasks/dependencies/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/tasks/route.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/tasks/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/projects/[uuid]/tasks/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/agent-cwd-options/route.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/agent-cwd-options/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/projects/agent-cwd-options/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/route.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/projects/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/proposals/[uuid]/approve/route.js +1 -1
- package/.next/standalone/.next/server/app/api/proposals/[uuid]/approve/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/proposals/[uuid]/approve/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/proposals/[uuid]/close/route.js +1 -1
- package/.next/standalone/.next/server/app/api/proposals/[uuid]/close/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/proposals/[uuid]/close/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/proposals/[uuid]/reject/route.js +1 -1
- package/.next/standalone/.next/server/app/api/proposals/[uuid]/reject/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/proposals/[uuid]/reject/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/proposals/[uuid]/revoke/route.js +1 -1
- package/.next/standalone/.next/server/app/api/proposals/[uuid]/revoke/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/proposals/[uuid]/revoke/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/proposals/[uuid]/route.js +1 -1
- package/.next/standalone/.next/server/app/api/proposals/[uuid]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/proposals/[uuid]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/references/[uuid]/route.js +1 -1
- package/.next/standalone/.next/server/app/api/references/[uuid]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/references/[uuid]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/references/route.js +1 -1
- package/.next/standalone/.next/server/app/api/references/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/references/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/search/route.js +1 -1
- package/.next/standalone/.next/server/app/api/search/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/search/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/session/route.js +1 -1
- package/.next/standalone/.next/server/app/api/session/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/session/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/sessions/[uuid]/route.js +1 -1
- package/.next/standalone/.next/server/app/api/sessions/[uuid]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/sessions/[uuid]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/tasks/[uuid]/claim/route.js +1 -1
- package/.next/standalone/.next/server/app/api/tasks/[uuid]/claim/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/tasks/[uuid]/claim/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/tasks/[uuid]/dependencies/[dependsOnUuid]/route.js +1 -1
- package/.next/standalone/.next/server/app/api/tasks/[uuid]/dependencies/[dependsOnUuid]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/tasks/[uuid]/dependencies/[dependsOnUuid]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/tasks/[uuid]/dependencies/route.js +1 -1
- package/.next/standalone/.next/server/app/api/tasks/[uuid]/dependencies/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/tasks/[uuid]/dependencies/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/tasks/[uuid]/release/route.js +1 -1
- package/.next/standalone/.next/server/app/api/tasks/[uuid]/release/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/tasks/[uuid]/release/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/tasks/[uuid]/route.js +1 -1
- package/.next/standalone/.next/server/app/api/tasks/[uuid]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/tasks/[uuid]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/tasks/[uuid]/sessions/route.js +1 -1
- package/.next/standalone/.next/server/app/api/tasks/[uuid]/sessions/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/tasks/[uuid]/sessions/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/index.html +2 -2
- package/.next/standalone/.next/server/app/index.rsc +2 -2
- package/.next/standalone/.next/server/app/login/admin/page.js +1 -1
- package/.next/standalone/.next/server/app/login/admin/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/login/admin.html +2 -2
- package/.next/standalone/.next/server/app/login/admin.rsc +3 -3
- package/.next/standalone/.next/server/app/login/callback/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/login/callback.html +2 -2
- package/.next/standalone/.next/server/app/login/callback.rsc +2 -2
- package/.next/standalone/.next/server/app/login/page.js +1 -1
- package/.next/standalone/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/login/pick-workspace/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/login/pick-workspace.html +2 -2
- package/.next/standalone/.next/server/app/login/pick-workspace.rsc +2 -2
- package/.next/standalone/.next/server/app/login.html +2 -2
- package/.next/standalone/.next/server/app/login.rsc +3 -3
- package/.next/standalone/.next/server/app/onboarding/page.js +2 -2
- package/.next/standalone/.next/server/app/onboarding/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/onboarding/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/onboarding.html +2 -2
- package/.next/standalone/.next/server/app/onboarding.rsc +3 -3
- package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/projects.html +2 -2
- package/.next/standalone/.next/server/app/projects.rsc +4 -4
- package/.next/standalone/.next/server/app/settings.html +2 -2
- package/.next/standalone/.next/server/app/settings.rsc +4 -4
- package/.next/standalone/.next/server/app-paths-manifest.json +30 -30
- package/.next/standalone/.next/server/chunks/1559.js +2 -2
- package/.next/standalone/.next/server/chunks/186.js +1 -0
- package/.next/standalone/.next/server/chunks/2572.js +2 -2
- package/.next/standalone/.next/server/chunks/2618.js +1 -1
- package/.next/standalone/.next/server/chunks/2961.js +1 -1
- package/.next/standalone/.next/server/chunks/3371.js +1 -0
- package/.next/standalone/.next/server/chunks/4131.js +39 -0
- package/.next/standalone/.next/server/chunks/4672.js +6 -0
- package/.next/standalone/.next/server/chunks/4827.js +1 -1
- package/.next/standalone/.next/server/chunks/5245.js +1 -1
- package/.next/standalone/.next/server/chunks/5577.js +1 -0
- package/.next/standalone/.next/server/chunks/5728.js +1 -0
- package/.next/standalone/.next/server/chunks/6113.js +1 -1
- package/.next/standalone/.next/server/chunks/6506.js +39 -3
- package/.next/standalone/.next/server/chunks/6515.js +2 -2
- package/.next/standalone/.next/server/chunks/{5489.js → 661.js} +44 -8
- package/.next/standalone/.next/server/chunks/6654.js +1 -0
- package/.next/standalone/.next/server/chunks/6737.js +1 -1
- package/.next/standalone/.next/server/chunks/6753.js +4 -4
- package/.next/standalone/.next/server/chunks/679.js +1 -1
- package/.next/standalone/.next/server/chunks/{2516.js → 7258.js} +1 -1
- package/.next/standalone/.next/server/chunks/7368.js +1 -1
- package/.next/standalone/.next/server/chunks/7530.js +1 -1
- package/.next/standalone/.next/server/chunks/7578.js +1 -1
- package/.next/standalone/.next/server/chunks/8017.js +1 -0
- package/.next/standalone/.next/server/chunks/8177.js +1 -0
- package/.next/standalone/.next/server/chunks/8437.js +1 -0
- package/.next/standalone/.next/server/chunks/{6449.js → 8566.js} +1 -1
- package/.next/standalone/.next/server/chunks/920.js +1 -1
- package/.next/standalone/.next/server/chunks/9213.js +1 -1
- package/.next/standalone/.next/server/chunks/9378.js +1 -1
- package/.next/standalone/.next/server/chunks/951.js +88 -1
- package/.next/standalone/.next/server/chunks/9670.js +1 -0
- package/.next/standalone/.next/server/chunks/9931.js +1 -1
- package/.next/standalone/.next/server/middleware-build-manifest.js +1 -1
- package/.next/standalone/.next/server/middleware-manifest.json +5 -5
- package/.next/standalone/.next/server/pages/404.html +2 -2
- package/.next/standalone/.next/server/pages/500.html +1 -1
- package/.next/standalone/.next/server/server-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/static/chunks/{15183-3f43af926186f7ef.js → 10488-d518e8ce8ae45724.js} +6 -6
- package/.next/standalone/.next/static/chunks/11595.4cebcf7499ef6a78.js +1 -0
- package/.next/standalone/.next/static/chunks/2069-68d93343e4ca252e.js +1 -0
- package/.next/standalone/.next/static/chunks/27370-0d04028ec8a339f0.js +1 -0
- package/.next/standalone/.next/static/chunks/27787-3566e3dd0506e241.js +1 -0
- package/.next/standalone/.next/static/chunks/33456.a5a9acba61ca3665.js +1 -0
- package/.next/standalone/.next/static/chunks/4860.61dfcdf8c4c5c703.js +1 -0
- package/.next/standalone/.next/static/chunks/53504-3a0f6dee12a39d5d.js +1 -0
- package/.next/standalone/.next/static/chunks/56863-a2cc92f9ca49f0f8.js +1 -0
- package/.next/standalone/.next/static/chunks/63819-c52b5bc9ee32ca9b.js +1 -0
- package/.next/standalone/.next/static/chunks/69398-c2f73fe154aaee76.js +1 -0
- package/.next/standalone/.next/static/chunks/71890-e6c13ce1debd87c2.js +1 -0
- package/.next/standalone/.next/static/chunks/71921-f6754331cd35fa5a.js +1 -0
- package/.next/standalone/.next/static/chunks/{26020-7b4756ba0aa906cf.js → 76103-5d656aebd9cd5e7f.js} +1 -1
- package/.next/standalone/.next/static/chunks/7777-18527b954e3c5557.js +1 -0
- package/.next/standalone/.next/static/chunks/78847-9f65efbac984cf70.js +1 -0
- package/.next/standalone/.next/static/chunks/79919-32af2c1abfc92a30.js +1 -0
- package/.next/standalone/.next/static/chunks/83749-f797272bf30fc2f4.js +10 -0
- package/.next/standalone/.next/static/chunks/91907-a4182d1a3c870d0f.js +1 -0
- package/.next/standalone/.next/static/chunks/91997-3592827b5a069beb.js +1 -0
- package/.next/standalone/.next/static/chunks/99373.747e181e4c952509.js +1 -0
- package/.next/standalone/.next/static/chunks/app/(dashboard)/layout-6135300353d6c6ad.js +1 -0
- package/.next/standalone/.next/static/chunks/app/(dashboard)/project-groups/[uuid]/page-bb9f26c107a6b113.js +1 -0
- package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/dashboard/page-31dd9042ee36b8e5.js +1 -0
- package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/documents/[documentUuid]/page-a6bfa3b6b6893bc4.js +1 -0
- package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/documents/page-01e81333c9beee2d.js +1 -0
- package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/graph/page-795b161eb0694092.js +1 -0
- package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/proposals/[proposalUuid]/page-e20e65b5df817433.js +1 -0
- package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/proposals/new/page-fc2d02d552bbdbf0.js +1 -0
- package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/proposals/page-0cfa38d2de9fa9d9.js +1 -0
- package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/tasks/[taskUuid]/{page-301f21a3ae52e318.js → page-529dec4c3bcd5ba9.js} +1 -1
- package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/tasks/{page-dd123990c14e9768.js → page-b211c29669eaa3e4.js} +1 -1
- package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/{page-069c9738e516436b.js → page-793285a6cf214896.js} +1 -1
- package/.next/standalone/.next/static/chunks/app/(dashboard)/settings/page-0606d1497512e155.js +1 -0
- package/.next/standalone/.next/static/chunks/app/admin/companies/[uuid]/page-47e49c331996193b.js +1 -0
- package/.next/standalone/.next/static/chunks/app/admin/companies/new/page-c1e28205503002de.js +1 -0
- package/.next/standalone/.next/static/chunks/app/login/admin/page-b0d0ea2fa4102ff7.js +1 -0
- package/.next/standalone/.next/static/chunks/app/login/page-ee63e900cb54148c.js +1 -0
- package/.next/standalone/.next/static/chunks/app/onboarding/{page-5914ff3d878a3c34.js → page-1f3ab167cab58610.js} +1 -1
- package/.next/standalone/.next/static/chunks/{webpack-de8a36d232a91d6b.js → webpack-6151d196b2fab7e8.js} +1 -1
- package/.next/standalone/.next/static/css/09ac5931fe977492.css +1 -0
- package/.next/standalone/package.json +1 -1
- package/.next/standalone/public/chorus-plugin/.claude-plugin/plugin.json +1 -1
- package/.next/standalone/public/chorus-plugin/bin/chorus-api.sh +1 -1
- package/.next/standalone/public/chorus-plugin/skills/brainstorm/SKILL.md +5 -1
- package/.next/standalone/public/chorus-plugin/skills/chorus/SKILL.md +16 -1
- package/.next/standalone/public/chorus-plugin/skills/chorus-cli/SKILL.md +1 -1
- package/.next/standalone/public/chorus-plugin/skills/develop/SKILL.md +1 -1
- package/.next/standalone/public/chorus-plugin/skills/docs/SKILL.md +1 -1
- package/.next/standalone/public/chorus-plugin/skills/idea/SKILL.md +13 -1
- package/.next/standalone/public/chorus-plugin/skills/openspec-aware/SKILL.md +1 -1
- package/.next/standalone/public/chorus-plugin/skills/orchestrate/SKILL.md +1 -1
- package/.next/standalone/public/chorus-plugin/skills/proposal/SKILL.md +9 -1
- package/.next/standalone/public/chorus-plugin/skills/quick-dev/SKILL.md +1 -1
- package/.next/standalone/public/chorus-plugin/skills/research/SKILL.md +51 -0
- package/.next/standalone/public/chorus-plugin/skills/review/SKILL.md +1 -1
- package/.next/standalone/public/chorus-plugin/skills/spec-lite/SKILL.md +1 -1
- package/.next/standalone/public/chorus-plugin/skills/yolo/SKILL.md +5 -1
- package/.next/standalone/public/kiro-plugin/.kiro/agents/chorus.json +1 -0
- package/.next/standalone/public/kiro-plugin/.kiro/skills/chorus-brainstorm/SKILL.md +5 -1
- package/.next/standalone/public/kiro-plugin/.kiro/skills/chorus-cli/SKILL.md +1 -1
- package/.next/standalone/public/kiro-plugin/.kiro/skills/chorus-develop/SKILL.md +1 -1
- package/.next/standalone/public/kiro-plugin/.kiro/skills/chorus-docs/SKILL.md +1 -1
- package/.next/standalone/public/kiro-plugin/.kiro/skills/chorus-idea/SKILL.md +13 -1
- package/.next/standalone/public/kiro-plugin/.kiro/skills/chorus-openspec-aware/SKILL.md +1 -1
- package/.next/standalone/public/kiro-plugin/.kiro/skills/chorus-orchestrate/SKILL.md +1 -1
- package/.next/standalone/public/kiro-plugin/.kiro/skills/chorus-proposal/SKILL.md +9 -1
- package/.next/standalone/public/kiro-plugin/.kiro/skills/chorus-quick-dev/SKILL.md +1 -1
- package/.next/standalone/public/kiro-plugin/.kiro/skills/chorus-research/SKILL.md +51 -0
- package/.next/standalone/public/kiro-plugin/.kiro/skills/chorus-review/SKILL.md +1 -1
- package/.next/standalone/public/kiro-plugin/.kiro/skills/chorus-spec-lite/SKILL.md +1 -1
- package/.next/standalone/public/kiro-plugin/.kiro/skills/chorus-yolo/SKILL.md +5 -1
- package/.next/standalone/public/kiro-plugin/.kiro/steering/chorus.md +16 -1
- package/.next/standalone/public/kiro-plugin/bin/chorus-api.sh +1 -1
- package/.next/standalone/public/kiro-plugin/manifest.txt +1 -0
- package/.next/standalone/public/skill/brainstorm-chorus/SKILL.md +4 -0
- package/.next/standalone/public/skill/chorus/SKILL.md +20 -2
- package/.next/standalone/public/skill/idea-chorus/SKILL.md +12 -0
- package/.next/standalone/public/skill/package.json +1 -0
- package/.next/standalone/public/skill/proposal-chorus/SKILL.md +8 -0
- package/.next/standalone/public/skill/research-chorus/SKILL.md +51 -0
- package/.next/standalone/public/skill/yolo-chorus/SKILL.md +4 -0
- package/README.ja.md +5 -11
- package/README.ko.md +5 -11
- package/README.md +20 -11
- package/README.zh.md +20 -11
- package/chorus.mjs +7 -1
- package/cli/agent-cli-config.mjs +28 -2
- package/cli/claude-spawner.mjs +330 -18
- package/cli/codex-app-server-client.mjs +402 -0
- package/cli/codex-app-server-events.mjs +176 -0
- package/cli/codex-session-map.mjs +1 -1
- package/cli/codex-spawner.mjs +247 -241
- package/cli/control-handler.mjs +20 -0
- package/cli/daemon-rest-client.mjs +7 -4
- package/cli/event-router.mjs +65 -3
- package/cli/init/adapters.mjs +2 -2
- package/cli/init/file-template.mjs +11 -4
- package/cli/init/install-methods.mjs +3 -1
- package/cli/operation-contract.mjs +3 -0
- package/cli/operation-prompts.mjs +99 -0
- package/cli/operation.mjs +46 -0
- package/cli/pi-spawner.mjs +472 -78
- package/cli/process-killer.mjs +138 -13
- package/cli/process-stop-hooks.mjs +13 -0
- package/cli/prompts.mjs +7 -0
- package/cli/upgrade-plugins.mjs +202 -0
- package/cli/upgrade-process.mjs +159 -0
- package/cli/upgrade.mjs +125 -0
- package/cli/upload-hooks.mjs +2 -2
- package/cli/wake-queue.mjs +5 -1
- package/cli/waker.mjs +127 -4
- package/cli/windows-process-tree.mjs +154 -0
- package/package.json +1 -1
- package/prisma/migrations/20260927073000_add_daemon_operation_payload/migration.sql +1 -0
- package/prisma/schema.prisma +3 -2
- package/.next/standalone/.next/server/chunks/1318.js +0 -1
- package/.next/standalone/.next/server/chunks/1416.js +0 -88
- package/.next/standalone/.next/server/chunks/1683.js +0 -1
- package/.next/standalone/.next/server/chunks/3341.js +0 -1
- package/.next/standalone/.next/server/chunks/457.js +0 -1
- package/.next/standalone/.next/server/chunks/5300.js +0 -1
- package/.next/standalone/.next/server/chunks/6607.js +0 -1
- package/.next/standalone/.next/server/chunks/7400.js +0 -1
- package/.next/standalone/.next/server/chunks/8044.js +0 -1
- package/.next/standalone/.next/server/chunks/8185.js +0 -1
- package/.next/standalone/.next/server/chunks/8454.js +0 -1
- package/.next/standalone/.next/server/chunks/9848.js +0 -39
- package/.next/standalone/.next/static/chunks/11595.f080a1d100972212.js +0 -1
- package/.next/standalone/.next/static/chunks/17099-936da9caf4c119b8.js +0 -1
- package/.next/standalone/.next/static/chunks/17562-56f932146e9e6c94.js +0 -10
- package/.next/standalone/.next/static/chunks/18751-3616e33050e9611e.js +0 -1
- package/.next/standalone/.next/static/chunks/27370-c056dee2016c9124.js +0 -1
- package/.next/standalone/.next/static/chunks/31308-bb4a97b3f39c22dd.js +0 -1
- package/.next/standalone/.next/static/chunks/33456.20313bd67a5c41cc.js +0 -1
- package/.next/standalone/.next/static/chunks/35432-5c245212c7595169.js +0 -1
- package/.next/standalone/.next/static/chunks/44437-d13183f50281116f.js +0 -1
- package/.next/standalone/.next/static/chunks/45024-eb7c062d13d9fe08.js +0 -1
- package/.next/standalone/.next/static/chunks/4860.3b555a398cdffb19.js +0 -1
- package/.next/standalone/.next/static/chunks/59713-426f81b6576173d8.js +0 -1
- package/.next/standalone/.next/static/chunks/60351-bdef539874e5027e.js +0 -1
- package/.next/standalone/.next/static/chunks/67580-8733964ab2c7fc0e.js +0 -1
- package/.next/standalone/.next/static/chunks/7777-8b1b6681256e1534.js +0 -1
- package/.next/standalone/.next/static/chunks/78155-db70d9684a1e77a2.js +0 -1
- package/.next/standalone/.next/static/chunks/79919-1e7e294a06f2c4a0.js +0 -1
- package/.next/standalone/.next/static/chunks/94643-e54eff17e941a93b.js +0 -1
- package/.next/standalone/.next/static/chunks/99373.b8a95d1bec5ad4e7.js +0 -1
- package/.next/standalone/.next/static/chunks/99733-5a2e39f57fbda32d.js +0 -1
- package/.next/standalone/.next/static/chunks/app/(dashboard)/layout-072a6b8f0a48b1b6.js +0 -1
- package/.next/standalone/.next/static/chunks/app/(dashboard)/project-groups/[uuid]/page-82e90e222d6bc547.js +0 -1
- package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/dashboard/page-198a3ff89ae871b9.js +0 -1
- package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/documents/[documentUuid]/page-a506de82e8997714.js +0 -1
- package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/documents/page-dc54fafa22d21863.js +0 -1
- package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/graph/page-6eb5d3cb036a78e0.js +0 -1
- package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/proposals/[proposalUuid]/page-69c6f0190623e19b.js +0 -1
- package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/proposals/new/page-2a52f747e6fac5a7.js +0 -1
- package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/proposals/page-22cce567a85ea291.js +0 -1
- package/.next/standalone/.next/static/chunks/app/(dashboard)/settings/page-548231f8c9856489.js +0 -1
- package/.next/standalone/.next/static/chunks/app/admin/companies/[uuid]/page-56118c51122ad639.js +0 -1
- package/.next/standalone/.next/static/chunks/app/admin/companies/new/page-4e20deb41357171c.js +0 -1
- package/.next/standalone/.next/static/chunks/app/login/admin/page-c8e40259e5d3d9e0.js +0 -1
- package/.next/standalone/.next/static/chunks/app/login/page-0a16a64855b771ef.js +0 -1
- package/.next/standalone/.next/static/css/44f13b43a3de716d.css +0 -1
- /package/.next/standalone/.next/static/{Pmji9kEq8T2lM6AKQkZji → kDppeym4sfPwXjGFspZG8}/_buildManifest.js +0 -0
- /package/.next/standalone/.next/static/{Pmji9kEq8T2lM6AKQkZji → kDppeym4sfPwXjGFspZG8}/_ssgManifest.js +0 -0
package/.next/standalone/.next/static/chunks/{15183-3f43af926186f7ef.js → 10488-d518e8ce8ae45724.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[10488],{18267:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(66206).A)("newspaper",[["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-4 0v-9a2 2 0 0 1 2-2h2",key:"39pd36"}],["rect",{width:"8",height:"4",x:"10",y:"6",rx:"1",key:"aywv1n"}]])},19169:(e,t,r)=>{r.d(t,{a:()=>to,V:()=>ti});var n=r(64395),a=r(97784),s=class{patterns;options;regexps;constructor(e,t={}){this.patterns=e,this.options=t;let{forgiving:r=!1,cache:n,regexConstructor:a}=t;if(!a)throw Error("Option `regexConstructor` is not provided");this.regexps=e.map(e=>{if("string"!=typeof e)return e;let t=n?.get(e);if(t){if(t instanceof RegExp)return t;if(r)return null;throw t}try{let t=a(e);return n?.set(e,t),t}catch(t){if(n?.set(e,t),r)return null;throw t}})}findNextMatchSync(e,t,r){let n="string"==typeof e?e:e.content,a=[];function s(e,t,r=0){return{index:e,captureIndices:t.indices.map(e=>null==e?{start:0xffffffff,end:0xffffffff,length:0}:{start:e[0]+r,end:e[1]+r,length:e[1]-e[0]})}}for(let e=0;e<this.regexps.length;e++){let r=this.regexps[e];if(r)try{r.lastIndex=t;let i=r.exec(n);if(!i)continue;if(i.index===t)return s(e,i,0);a.push([e,i,0])}catch(e){if(this.options.forgiving)continue;throw e}}if(a.length){let e=Math.min(...a.map(e=>e[1].index));for(let[t,r,n]of a)if(r.index===e)return s(t,r,n)}return null}};function i(e){if(1!=[...e].length)throw Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}let o=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),l=String.raw;function c(e,t){if(null==e)throw Error(t??"Value expected");return e}let u=l`\[\^?`,d=`c.? | C(?:-.?)?|${l`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${l`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${l`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${l`o\{[^\}]*\}?`}|${l`\d{1,3}`}`,h=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,p=RegExp(l`
|
|
2
2
|
\\ (?:
|
|
3
3
|
${d}
|
|
4
4
|
| [gk]<[^>]*>?
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
| &&
|
|
31
31
|
| .
|
|
32
32
|
`.replace(/\s+/g,""),"gsu");function f(e,{inCharClass:t}){let r=e[1];if("c"===r||"C"===r){var n=e;let t="c"===n[1]?n[2]:n[3];if(!t||!/[A-Za-z]/.test(t))throw Error(`Unsupported control character "${n}"`);return g(i(t.toUpperCase())-64,n)}if("dDhHsSwW".includes(r)){var a=e;let t=a[1].toLowerCase();return _({d:"digit",h:"hex",s:"space",w:"word"}[t],a,{negate:a[1]!==t})}if(e.startsWith(l`\o{`))throw Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);if(/^\\[pP]\{/.test(e)){if(3===e.length)throw Error(`Incomplete or invalid Unicode property "${e}"`);var s=e;let{p:t,neg:r,value:n}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(s).groups;return _("property",s,{value:n,negate:"P"===t&&!r||"p"===t&&!!r})}if(/^\\x[89A-Fa-f]\p{AHex}/u.test(e))try{let t=e.split(/\\x/).slice(1).map(e=>parseInt(e,16)),r=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(t)),n=new TextEncoder;return[...r].map(e=>{let t=[...n.encode(e)].map(e=>`\\x${e.toString(16)}`).join("");return g(i(e),t)})}catch{throw Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if("u"===r||"x"===r)return g(function(e){if(/^(?:\\u(?!\p{AHex}{4})|\\x(?!\p{AHex}{1,2}|\{\p{AHex}{1,8}\}))/u.test(e))throw Error(`Incomplete or invalid escape "${e}"`);return parseInt("{"===e[2]?/^\\x\{\s*(?<hex>\p{AHex}+)/u.exec(e).groups.hex:e.slice(2),16)}(e),e);if(N.has(r))return g(N.get(r),e);if(/\d/.test(r))return{type:"EscapedNumber",inCharClass:t,raw:e};if("\\"===e)throw Error(l`Incomplete escape "\"`);if("M"===r)throw Error(`Unsupported meta "${e}"`);if(2==[...e].length)return g(e.codePointAt(1),e);throw Error(`Unexpected escape "${e}"`)}function E(e,t){return{type:"Assertion",kind:e,raw:t}}function T(e){return{type:"Backreference",raw:e}}function g(e,t){return{type:"Character",value:e,raw:t}}function A(e,t){return{type:"CharacterClassOpen",negate:e,raw:t}}function _(e,t,r={}){return{type:"CharacterSet",kind:e,...r,raw:t}}function b(e,t,r={}){return"keep"===e?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:c(r.flags),raw:t}}function k(e,t,r={}){return{type:"GroupOpen",kind:e,...r,raw:t}}let C=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),N=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function I(e){let t=null,r,n;if("{"===e[0]){let{minStr:a,maxStr:s}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups;if(+a>1e5||s&&+s>1e5)throw Error("Quantifier value unsupported in Oniguruma");if((r=+a)>(n=void 0===s?+a:""===s?1/0:+s)&&(t="possessive",[r,n]=[n,r]),e.endsWith("?")){if("possessive"===t)throw Error('Unsupported possessive interval quantifier chain with "?"');t="lazy"}else t||(t="greedy")}else r=+("+"===e[0]),n="?"===e[0]?1:1/0,t="+"===e[1]?"possessive":"?"===e[1]?"lazy":"greedy";return{type:"Quantifier",kind:t,min:r,max:n,raw:e}}function S(e){let t={};return e.includes("i")&&(t.ignoreCase=!0),e.includes("m")&&(t.dotAll=!0),e.includes("x")&&(t.extended=!0),Object.keys(t).length?t:null}function y(e,t){if(!Array.isArray(e.body))throw Error("Expected node with body array");if(1!==e.body.length)return!1;let r=e.body[0];return!t||Object.keys(t).every(e=>t[e]===r[e])}let D=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function x(e,t={}){var r;let n={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},a=function(e,t={}){let r={flags:"",...t,rules:{captureGroup:!1,singleline:!1,...t.rules}};if("string"!=typeof e)throw Error("String expected as pattern");let n=function(e){let t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let r=0;r<e.length;r++){let n=e[r];if(!"imxDPSWy".includes(n))throw Error(`Invalid flag "${n}"`);if("y"===n){if(!/^y{[gw]}/.test(e.slice(r)))throw Error('Invalid or unspecified flag "y" mode');t.textSegmentMode="g"===e[r+2]?"grapheme":"word",r+=3;continue}t[({i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"})[n]]=!0}return t}(r.flags),a=[n.extended],s={captureGroup:r.rules.captureGroup,getCurrentModX:()=>a.at(-1),numOpenGroups:0,popModX(){a.pop()},pushModX(e){a.push(e)},replaceCurrentModX(e){a[a.length-1]=e},singleline:r.rules.singleline},c=[],u;for(p.lastIndex=0;u=p.exec(e);){let t=function(e,t,r,n){let[a,s]=r;if("["===r||"[^"===r){let e=function(e,t,r){let n=[A("^"===t[1],t)],a=1,s;for(m.lastIndex=r;s=m.exec(e);){let e=s[0];if("["===e[0]&&":"!==e[1])a++,n.push(A("^"===e[1],e));else if("]"===e){if("CharacterClassOpen"===n.at(-1).type)n.push(g(93,e));else if(a--,n.push({type:"CharacterClassClose",raw:e}),!a)break}else{let t=function(e){if("\\"===e[0])return f(e,{inCharClass:!0});if("["===e[0]){let t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!o.has(t.groups.name))throw Error(`Invalid POSIX class "${e}"`);return _("posix",e,{value:t.groups.name,negate:!!t.groups.negate})}return"-"===e?{type:"CharacterClassHyphen",raw:e}:"&&"===e?{type:"CharacterClassIntersector",raw:e}:g(i(e),e)}(e);Array.isArray(t)?n.push(...t):n.push(t)}}return{tokens:n,lastIndex:m.lastIndex||e.length}}(t,r,n);return{tokens:e.tokens,lastIndex:e.lastIndex}}if("\\"===a){if("AbBGyYzZ".includes(s))return{token:E(r,r)};if(/^\\g[<']/.test(r)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(r))throw Error(`Invalid group name "${r}"`);return{token:{type:"Subroutine",raw:r}}}if(/^\\k[<']/.test(r)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(r))throw Error(`Invalid group name "${r}"`);return{token:T(r)}}if("K"===s)return{token:b("keep",r)};if("N"===s||"R"===s)return{token:_("newline",r,{negate:"N"===s})};if("O"===s)return{token:_("any",r)};if("X"===s)return{token:_("text_segment",r)};let e=f(r,{inCharClass:!1});return Array.isArray(e)?{tokens:e}:{token:e}}if("("===a){if("*"===s)return{token:function(e){let t=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(e);if(!t)throw Error(`Incomplete or invalid named callout "${e}"`);let{name:r,tag:n,args:a}=t.groups;if(!r)throw Error(`Invalid named callout "${e}"`);if(""===n)throw Error(`Named callout tag with empty value not allowed "${e}"`);let s=a?a.split(",").filter(e=>""!==e).map(e=>/^[+-]?\d+$/.test(e)?+e:e):[],[i,o,l]=s,c=C.has(r)?r.toLowerCase():"custom";switch(c){case"fail":case"mismatch":case"skip":if(s.length>0)throw Error(`Named callout arguments not allowed "${s}"`);break;case"error":if(s.length>1)throw Error(`Named callout allows only one argument "${s}"`);if("string"==typeof i)throw Error(`Named callout argument must be a number "${i}"`);break;case"max":if(!s.length||s.length>2)throw Error(`Named callout must have one or two arguments "${s}"`);if("string"==typeof i&&!/^[A-Za-z_]\w*$/.test(i))throw Error(`Named callout argument one must be a tag or number "${i}"`);if(2===s.length&&("number"==typeof o||!/^[<>X]$/.test(o)))throw Error(`Named callout optional argument two must be '<', '>', or 'X' "${o}"`);break;case"count":case"total_count":if(s.length>1)throw Error(`Named callout allows only one argument "${s}"`);if(1===s.length&&("number"==typeof i||!/^[<>X]$/.test(i)))throw Error(`Named callout optional argument must be '<', '>', or 'X' "${i}"`);break;case"cmp":if(3!==s.length)throw Error(`Named callout must have three arguments "${s}"`);if("string"==typeof i&&!/^[A-Za-z_]\w*$/.test(i))throw Error(`Named callout argument one must be a tag or number "${i}"`);if("number"==typeof o||!/^(?:[<>!=]=|[<>])$/.test(o))throw Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${o}"`);if("string"==typeof l&&!/^[A-Za-z_]\w*$/.test(l))throw Error(`Named callout argument three must be a tag or number "${l}"`);break;case"custom":throw Error(`Undefined callout name "${r}"`);default:throw Error(`Unexpected named callout kind "${c}"`)}return{type:"NamedCallout",kind:c,tag:n??null,arguments:a?.split(",")??null,raw:e}}(r)};if("(?{"===r)throw Error(`Unsupported callout "${r}"`);if(r.startsWith("(?#")){if(")"!==t[n])throw Error('Unclosed comment group "(?#"');return{lastIndex:n+1}}if(/^\(\?[-imx]+[:)]$/.test(r))return{token:function(e,t){let{on:r,off:n}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;n??="";let a=(t.getCurrentModX()||r.includes("x"))&&!n.includes("x"),s=S(r),i=S(n),o={};if(s&&(o.enable=s),i&&(o.disable=i),e.endsWith(")"))return t.replaceCurrentModX(a),b("flags",e,{flags:o});if(e.endsWith(":"))return t.pushModX(a),t.numOpenGroups++,k("group",e,{...(s||i)&&{flags:o}});throw Error(`Unexpected flag modifier "${e}"`)}(r,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,"("===r&&!e.captureGroup||"(?:"===r)return{token:k("group",r)};if("(?>"===r)return{token:k("atomic",r)};if("(?="===r||"(?!"===r||"(?<="===r||"(?<!"===r)return{token:k("<"===r[2]?"lookbehind":"lookahead",r,{negate:r.endsWith("!")})};if("("===r&&e.captureGroup||r.startsWith("(?<")&&r.endsWith(">")||r.startsWith("(?'")&&r.endsWith("'"))return{token:k("capturing",r,{..."("!==r&&{name:r.slice(3,-1)}})};if(r.startsWith("(?~")){if("(?~|"===r)throw Error(`Unsupported absence function kind "${r}"`);return{token:k("absence_repeater",r)}}throw"(?("===r?Error(`Unsupported conditional "${r}"`):Error(`Invalid or unsupported group option "${r}"`)}if(")"===r){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw Error('Unmatched ")"');return{token:{type:"GroupClose",raw:r}}}if(e.getCurrentModX()){if("#"===r){let e=t.indexOf(`
|
|
33
|
-
`,n);return{lastIndex:-1===e?t.length:e}}if(/^\s$/.test(r)){let e=/\s+/y;return e.lastIndex=n,{lastIndex:e.exec(t)?e.lastIndex:n}}}return"."===r?{token:_("dot",r)}:"^"===r||"$"===r?{token:E(e.singleline?({"^":l`\A`,$:l`\Z`})[r]:r,r)}:"|"===r?{token:{type:"Alternator",raw:r}}:h.test(r)?{tokens:function(e){let t,r=[],n=RegExp(h,"gy");for(;t=n.exec(e);){let e=t[0];if("{"===e[0]){let t=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(e);if(t){let{min:a,max:s}=t.groups;if(+a>+s&&e.endsWith("?")){n.lastIndex--,r.push(I(e.slice(0,-1)));continue}}}r.push(I(e))}return r}(r)}:{token:g(i(r),r)}}(s,e,u[0],p.lastIndex);t.tokens?c.push(...t.tokens):t.token&&c.push(t.token),void 0!==t.lastIndex&&(p.lastIndex=t.lastIndex)}let d=[],N=0;c.filter(e=>"GroupOpen"===e.type).forEach(e=>{"capturing"===e.kind?e.number=++N:"("===e.raw&&d.push(e)}),N||d.forEach((e,t)=>{e.kind="capturing",e.number=t+1});let y=N||d.length;return{tokens:c.map(e=>"EscapedNumber"===e.type?function(e,t){let{raw:r,inCharClass:n}=e,a=r.slice(1);if(!n&&("0"!==a&&1===a.length||"0"!==a[0]&&+a<=t))return[T(r)];let s=[],o=a.match(/^[0-7]+|\d/g);for(let e=0;e<o.length;e++){let t,n=o[e];if(0===e&&"8"!==n&&"9"!==n){if((t=parseInt(n,8))>127)throw Error(l`Octal encoded byte above 177 unsupported "${r}"`)}else t=i(n);s.push(g(t,(0===e?"\\":"")+n))}return s}(e,y):e).flat(),flags:n}}(e,{flags:n.flags,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline}}),s=(e,t)=>{let r=a.tokens[u.nextIndex];switch(u.parent=e,u.nextIndex++,r.type){case"Alternator":return R();case"Assertion":return function({kind:e}){return L(c({"^":"line_start",$:"line_end","\\A":"string_start","\\b":"word_boundary","\\B":"word_boundary","\\G":"search_start","\\y":"text_segment_boundary","\\Y":"text_segment_boundary","\\z":"string_end","\\Z":"string_end_newline"}[e],`Unexpected assertion kind "${e}"`),{negate:e===l`\B`||e===l`\Y`})}(r);case"Backreference":return function({raw:e},t){let r=/^\\k[<']/.test(e),n=r?e.slice(3,-1):e.slice(1),a=(r,n=!1)=>{let a=t.capturingGroups.length,s=!1;if(r>a)if(t.skipBackrefValidation)s=!0;else throw Error(`Not enough capturing groups defined to the left "${e}"`);return t.hasNumberedRef=!0,O(n?a+1-r:r,{orphan:s})};if(r){let r=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(n);if(r)return a(+r.groups.num,!!r.groups.sign);if(/[-+]/.test(n))throw Error(`Invalid backref name "${e}"`);if(!t.namedGroupsByName.has(n))throw Error(`Group name not defined to the left "${e}"`);return O(n)}return a(+n)}(r,u);case"Character":return M(r.value,{useLastValid:!!t.isCheckingRangeEnd});case"CharacterClassHyphen":return function(e,t,r){let{tokens:n,walk:a}=t,s=t.parent,o=s.body.at(-1),l=n[t.nextIndex];if(!r.isCheckingRangeEnd&&o&&"CharacterClass"!==o.type&&"CharacterClassRange"!==o.type&&l&&"CharacterClassOpen"!==l.type&&"CharacterClassClose"!==l.type&&"CharacterClassIntersector"!==l.type){let e=a(s,{...r,isCheckingRangeEnd:!0});if("Character"===o.type&&"Character"===e.type)return s.body.pop(),function(e,t){if(t.value<e.value)throw Error("Character class range out of order");return{type:"CharacterClassRange",min:e,max:t}}(o,e);throw Error("Invalid character class range")}return M(i("-"))}(0,u,t);case"CharacterClassOpen":return function({negate:e},t,r){let{tokens:n,walk:a}=t,s=[P()],i=n[t.nextIndex],o=V(i);for(;"CharacterClassClose"!==o.type;){if("CharacterClassIntersector"===o.type)s.push(P()),t.nextIndex++;else{let e=s.at(-1);e.body.push(a(e,r))}o=V(n[t.nextIndex],i)}let l=P({negate:e});return 1===s.length?l.body=s[0].body:(l.kind="intersection",l.body=s.map(e=>1===e.body.length?e.body[0]:e)),t.nextIndex++,l}(r,u,t);case"CharacterSet":return function({kind:e,negate:t,value:r},n){let{normalizeUnknownPropertyNames:a,skipPropertyNameValidation:s,unicodePropertyMap:i}=n;if("property"===e){let n=q(r);if(!o.has(n)||i?.has(n))return G(r,{negate:t,normalizeUnknownPropertyNames:a,skipPropertyNameValidation:s,unicodePropertyMap:i});e="posix",r=n}return"posix"===e?function(e,t){let r=!!t?.negate;if(!o.has(e))throw Error(`Invalid POSIX class "${e}"`);return{type:"CharacterSet",kind:"posix",value:e,negate:r}}(r,{negate:t}):v(e,{negate:t})}(r,u);case"Directive":return function(e,t={}){if("keep"===e)return{type:"Directive",kind:e};if("flags"===e)return{type:"Directive",kind:e,flags:c(t.flags)};throw Error(`Unexpected directive kind "${e}"`)}(r.kind,{flags:r.flags});case"GroupOpen":return function(e,t,r){var n,a;let{tokens:s,capturingGroups:i,namedGroupsByName:o,skipLookbehindValidation:l,walk:c}=t,u=function({flags:e,kind:t,name:r,negate:n,number:a}){switch(t){case"absence_repeater":var s="repeater";!1;return{type:"AbsenceFunction",kind:s,body:j(void 0)};case"atomic":return B({atomic:!0});case"capturing":return w(a,{name:r});case"group":return B({flags:e});case"lookahead":case"lookbehind":return F({behind:"lookbehind"===t,negate:n});default:throw Error(`Unexpected group kind "${t}"`)}}(e),d="AbsenceFunction"===u.type,h=z(u),p=h&&u.negate;if("CapturingGroup"===u.type&&(i.push(u),u.name&&(n=u.name,a=[],o.has(n)||o.set(n,a),o.get(n)).push(u)),d&&r.isInAbsenceFunction)throw Error("Nested absence function not supported by Oniguruma");let m=W(s[t.nextIndex]);for(;"GroupClose"!==m.type;){if("Alternator"===m.type)u.body.push(R()),t.nextIndex++;else{let e=u.body.at(-1),t=c(e,{...r,isInAbsenceFunction:r.isInAbsenceFunction||d,isInLookbehind:r.isInLookbehind||h,isInNegLookbehind:r.isInNegLookbehind||p});if(e.body.push(t),(h||r.isInLookbehind)&&!l){let e="Lookbehind includes a pattern not allowed by Oniguruma";if(p||r.isInNegLookbehind){if(Y(t)||"CapturingGroup"===t.type)throw Error(e)}else if(Y(t)||z(t)&&t.negate)throw Error(e)}}m=W(s[t.nextIndex])}return t.nextIndex++,u}(r,u,t);case"NamedCallout":var n,s;return n=r.kind,s=r.tag,{type:"NamedCallout",kind:n,tag:s,arguments:r.arguments};case"Quantifier":return function({kind:e,min:t,max:r},n){let a=n.parent,s=a.body.at(-1);if(!s||!D.has(s.type))throw Error("Quantifier requires a repeatable token");let i=H(e,t,r,s);return a.body.pop(),i}(r,u);case"Subroutine":return function({raw:e},t){let{capturingGroups:r,subroutines:n}=t,a=e.slice(3,-1),s=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(a);if(s){let e=+s.groups.num,n=r.length;if(t.hasNumberedRef=!0,(a=({"":e,"+":n+e,"-":n+1-e})[s.groups.sign])<1)throw Error("Invalid subroutine number")}else"0"===a&&(a=0);let i=U(a);return n.push(i),i}(r,u);default:throw Error(`Unexpected token type "${r.type}"`)}},u={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:n.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:n.skipBackrefValidation,skipLookbehindValidation:n.skipLookbehindValidation,skipPropertyNameValidation:n.skipPropertyNameValidation,subroutines:[],tokens:a.tokens,unicodePropertyMap:n.unicodePropertyMap,walk:s},d=(r={type:"Flags",...a.flags},{type:"Regex",body:j(void 0),flags:r}),N=d.body[0];for(;u.nextIndex<a.tokens.length;){let e=s(N,{});"Alternative"===e.type?(d.body.push(e),N=e):N.body.push(e)}let{capturingGroups:y,hasNumberedRef:$,namedGroupsByName:Q,subroutines:K}=u;if($&&Q.size&&!n.rules.captureGroup)throw Error("Numbered backref/subroutine not allowed when using named capture");for(let{ref:e}of K)if("number"==typeof e){if(e>y.length)throw Error("Subroutine uses a group number that's not defined");e&&(y[e-1].isSubroutined=!0)}else if(Q.has(e)){if(Q.get(e).length>1)throw Error(l`Subroutine uses a duplicate group name "\g<${e}>"`);Q.get(e)[0].isSubroutined=!0}else throw Error(l`Subroutine uses a group name that's not defined "\g<${e}>"`);return d}function R(e){return{type:"Alternative",body:$(e?.body)}}function L(e,t){let r={type:"Assertion",kind:e};return("word_boundary"===e||"text_segment_boundary"===e)&&(r.negate=!!t?.negate),r}function O(e,t){let r=!!t?.orphan;return{type:"Backreference",ref:e,...r&&{orphan:r}}}function w(e,t){var r;let n={name:void 0,isSubroutined:!1,...t};if(void 0!==n.name&&(r=n.name,!/^[\p{Alpha}\p{Pc}][^)]*$/u.test(r)))throw Error(`Group name "${n.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:e,...n.name&&{name:n.name},...n.isSubroutined&&{isSubroutined:n.isSubroutined},body:j(t?.body)}}function M(e,t){let r={useLastValid:!1,...t};if(e>1114111){let t=e.toString(16);if(r.useLastValid)e=1114111;else throw e>1310719?Error(`Invalid code point out of range "\\x{${t}}"`):Error(`Invalid code point out of range in JS "\\x{${t}}"`)}return{type:"Character",value:e}}function P(e){let t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:$(e?.body)}}function v(e,t){let r=!!t?.negate,n={type:"CharacterSet",kind:e};return("digit"===e||"hex"===e||"newline"===e||"space"===e||"word"===e)&&(n.negate=r),"text_segment"!==e&&("newline"!==e||r)||(n.variableLength=!0),n}function B(e){let t=e?.atomic,r=e?.flags;if(t&&r)throw Error("Atomic group cannot have flags");return{type:"Group",...t&&{atomic:t},...r&&{flags:r},body:j(e?.body)}}function F(e){let t={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:t.behind?"lookbehind":"lookahead",negate:t.negate,body:j(e?.body)}}function H(e,t,r,n){if(t>r)throw Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:e,min:t,max:r,body:n}}function U(e){return{type:"Subroutine",ref:e}}function G(e,t){let r={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t},n=r.unicodePropertyMap?.get(q(e));if(!n){if(r.normalizeUnknownPropertyNames)n=e.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,e=>e[0].toUpperCase()+e.slice(1).toLowerCase());else if(r.unicodePropertyMap&&!r.skipPropertyNameValidation)throw Error(l`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:n??e,negate:r.negate}}function j(e){if(void 0===e)e=[R()];else if(!Array.isArray(e)||!e.length||!e.every(e=>"Alternative"===e.type))throw Error("Invalid body; expected array of one or more Alternative nodes");return e}function $(e){if(void 0===e)e=[];else if(!Array.isArray(e)||!e.every(e=>!!e.type))throw Error("Invalid body; expected array of nodes");return e}function Y(e){return"LookaroundAssertion"===e.type&&"lookahead"===e.kind}function z(e){return"LookaroundAssertion"===e.type&&"lookbehind"===e.kind}function q(e){return e.replace(/[- _]+/g,"").toLowerCase()}function V(e,t){return c(e,`Unclosed character class${t?.type==="Character"&&93===t.value&&"]"===t.raw?' (started with "]")':""}`)}function W(e){return c(e,"Unclosed group")}function Q(e,t,r=null){function n(e,t){for(let r=0;r<e.length;r++){let n=a(e[r],t,r,e);r=Math.max(-1,r+n)}}function a(s,i=null,o=null,l=null){let u=0,d=!1,h={node:s,parent:i,key:o,container:l,root:e,remove(){K(l).splice(Math.max(0,X(o)+u),1),u--,d=!0},removeAllNextSiblings:()=>K(l).splice(X(o)+1),removeAllPrevSiblings(){let e=X(o)+u;return u-=e,K(l).splice(0,Math.max(0,e))},replaceWith(e,t={}){let r=!!t.traverse;l?l[Math.max(0,X(o)+u)]=e:c(i,"Can't replace root node")[o]=e,r&&a(e,i,o,l),d=!0},replaceWithMultiple(e,t={}){let r=!!t.traverse;if(K(l).splice(Math.max(0,X(o)+u),1,...e),u+=e.length-1,r){let t=0;for(let r=0;r<e.length;r++)t+=a(e[r],i,X(o)+r+t,l)}d=!0},skip(){d=!0}},{type:p}=s,m=t["*"],f=t[p],E="function"==typeof m?m:m?.enter,T="function"==typeof f?f:f?.enter;if(E?.(h,r),T?.(h,r),!d)switch(p){case"AbsenceFunction":case"Alternative":case"CapturingGroup":case"CharacterClass":case"Group":case"LookaroundAssertion":n(s.body,s);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subroutine":break;case"CharacterClassRange":a(s.min,s,"min"),a(s.max,s,"max");break;case"Quantifier":a(s.body,s,"body");break;case"Regex":n(s.body,s),a(s.flags,s,"flags");break;default:throw Error(`Unexpected node type "${p}"`)}return f?.exit?.(h,r),m?.exit?.(h,r),u}return a(e),e}function K(e){if(!Array.isArray(e))throw Error("Container expected");return e}function X(e){if("number"!=typeof e)throw Error("Numeric key expected");return e}let Z=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`,J=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function ee(e,t,r,n){let a=RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,"gsu"),s=[!1],i=0,o="";for(let t of e.matchAll(a)){let{0:e,groups:{$skip:a}}=t;if(!a&&(!n||n===J.DEFAULT==!i)){r instanceof Function?o+=r(t,{context:i?J.CHAR_CLASS:J.DEFAULT,negated:s[s.length-1]}):o+=r;continue}"["===e[0]?(i++,s.push("^"===e[1])):"]"===e&&i&&(i--,s.pop()),o+=e}return o}function et(e,t,r){return!!function(e,t,r=0,n){let a;if(!RegExp(t,"su").test(e))return null;let s=RegExp(`${t}|(?<$skip>\\\\?.)`,"gsu");s.lastIndex=r;let i=0;for(;a=s.exec(e);){let{0:e,groups:{$skip:t}}=a;if(!t&&(!n||n===J.DEFAULT==!i))return a;"["===e?i++:"]"===e&&i&&i--,s.lastIndex==a.index&&s.lastIndex++}return null}(e,t,0,r)}let er=RegExp(String.raw`(?<noncapturingStart>${Z})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu"),en=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,ea=RegExp(String.raw`
|
|
33
|
+
`,n);return{lastIndex:-1===e?t.length:e}}if(/^\s$/.test(r)){let e=/\s+/y;return e.lastIndex=n,{lastIndex:e.exec(t)?e.lastIndex:n}}}return"."===r?{token:_("dot",r)}:"^"===r||"$"===r?{token:E(e.singleline?({"^":l`\A`,$:l`\Z`})[r]:r,r)}:"|"===r?{token:{type:"Alternator",raw:r}}:h.test(r)?{tokens:function(e){let t,r=[],n=RegExp(h,"gy");for(;t=n.exec(e);){let e=t[0];if("{"===e[0]){let t=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(e);if(t){let{min:a,max:s}=t.groups;if(+a>+s&&e.endsWith("?")){n.lastIndex--,r.push(I(e.slice(0,-1)));continue}}}r.push(I(e))}return r}(r)}:{token:g(i(r),r)}}(s,e,u[0],p.lastIndex);t.tokens?c.push(...t.tokens):t.token&&c.push(t.token),void 0!==t.lastIndex&&(p.lastIndex=t.lastIndex)}let d=[],N=0;c.filter(e=>"GroupOpen"===e.type).forEach(e=>{"capturing"===e.kind?e.number=++N:"("===e.raw&&d.push(e)}),N||d.forEach((e,t)=>{e.kind="capturing",e.number=t+1});let y=N||d.length;return{tokens:c.map(e=>"EscapedNumber"===e.type?function(e,t){let{raw:r,inCharClass:n}=e,a=r.slice(1);if(!n&&("0"!==a&&1===a.length||"0"!==a[0]&&+a<=t))return[T(r)];let s=[],o=a.match(/^[0-7]+|\d/g);for(let e=0;e<o.length;e++){let t,n=o[e];if(0===e&&"8"!==n&&"9"!==n){if((t=parseInt(n,8))>127)throw Error(l`Octal encoded byte above 177 unsupported "${r}"`)}else t=i(n);s.push(g(t,(0===e?"\\":"")+n))}return s}(e,y):e).flat(),flags:n}}(e,{flags:n.flags,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline}}),s=(e,t)=>{let r=a.tokens[u.nextIndex];switch(u.parent=e,u.nextIndex++,r.type){case"Alternator":return R();case"Assertion":return function({kind:e}){return L(c({"^":"line_start",$:"line_end","\\A":"string_start","\\b":"word_boundary","\\B":"word_boundary","\\G":"search_start","\\y":"text_segment_boundary","\\Y":"text_segment_boundary","\\z":"string_end","\\Z":"string_end_newline"}[e],`Unexpected assertion kind "${e}"`),{negate:e===l`\B`||e===l`\Y`})}(r);case"Backreference":return function({raw:e},t){let r=/^\\k[<']/.test(e),n=r?e.slice(3,-1):e.slice(1),a=(r,n=!1)=>{let a=t.capturingGroups.length,s=!1;if(r>a)if(t.skipBackrefValidation)s=!0;else throw Error(`Not enough capturing groups defined to the left "${e}"`);return t.hasNumberedRef=!0,O(n?a+1-r:r,{orphan:s})};if(r){let r=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(n);if(r)return a(+r.groups.num,!!r.groups.sign);if(/[-+]/.test(n))throw Error(`Invalid backref name "${e}"`);if(!t.namedGroupsByName.has(n))throw Error(`Group name not defined to the left "${e}"`);return O(n)}return a(+n)}(r,u);case"Character":return M(r.value,{useLastValid:!!t.isCheckingRangeEnd});case"CharacterClassHyphen":return function(e,t,r){let{tokens:n,walk:a}=t,s=t.parent,o=s.body.at(-1),l=n[t.nextIndex];if(!r.isCheckingRangeEnd&&o&&"CharacterClass"!==o.type&&"CharacterClassRange"!==o.type&&l&&"CharacterClassOpen"!==l.type&&"CharacterClassClose"!==l.type&&"CharacterClassIntersector"!==l.type){let e=a(s,{...r,isCheckingRangeEnd:!0});if("Character"===o.type&&"Character"===e.type)return s.body.pop(),function(e,t){if(t.value<e.value)throw Error("Character class range out of order");return{type:"CharacterClassRange",min:e,max:t}}(o,e);throw Error("Invalid character class range")}return M(i("-"))}(0,u,t);case"CharacterClassOpen":return function({negate:e},t,r){let{tokens:n,walk:a}=t,s=[P()],i=n[t.nextIndex],o=V(i);for(;"CharacterClassClose"!==o.type;){if("CharacterClassIntersector"===o.type)s.push(P()),t.nextIndex++;else{let e=s.at(-1);e.body.push(a(e,r))}o=V(n[t.nextIndex],i)}let l=P({negate:e});return 1===s.length?l.body=s[0].body:(l.kind="intersection",l.body=s.map(e=>1===e.body.length?e.body[0]:e)),t.nextIndex++,l}(r,u,t);case"CharacterSet":return function({kind:e,negate:t,value:r},n){let{normalizeUnknownPropertyNames:a,skipPropertyNameValidation:s,unicodePropertyMap:i}=n;if("property"===e){let n=q(r);if(!o.has(n)||i?.has(n))return G(r,{negate:t,normalizeUnknownPropertyNames:a,skipPropertyNameValidation:s,unicodePropertyMap:i});e="posix",r=n}return"posix"===e?function(e,t){let r=!!t?.negate;if(!o.has(e))throw Error(`Invalid POSIX class "${e}"`);return{type:"CharacterSet",kind:"posix",value:e,negate:r}}(r,{negate:t}):v(e,{negate:t})}(r,u);case"Directive":return function(e,t={}){if("keep"===e)return{type:"Directive",kind:e};if("flags"===e)return{type:"Directive",kind:e,flags:c(t.flags)};throw Error(`Unexpected directive kind "${e}"`)}(r.kind,{flags:r.flags});case"GroupOpen":return function(e,t,r){var n,a;let{tokens:s,capturingGroups:i,namedGroupsByName:o,skipLookbehindValidation:l,walk:c}=t,u=function({flags:e,kind:t,name:r,negate:n,number:a}){switch(t){case"absence_repeater":var s="repeater";!1;return{type:"AbsenceFunction",kind:s,body:j(void 0)};case"atomic":return B({atomic:!0});case"capturing":return w(a,{name:r});case"group":return B({flags:e});case"lookahead":case"lookbehind":return F({behind:"lookbehind"===t,negate:n});default:throw Error(`Unexpected group kind "${t}"`)}}(e),d="AbsenceFunction"===u.type,h=z(u),p=h&&u.negate;if("CapturingGroup"===u.type&&(i.push(u),u.name&&(n=u.name,a=[],o.has(n)||o.set(n,a),o.get(n)).push(u)),d&&r.isInAbsenceFunction)throw Error("Nested absence function not supported by Oniguruma");let m=W(s[t.nextIndex]);for(;"GroupClose"!==m.type;){if("Alternator"===m.type)u.body.push(R()),t.nextIndex++;else{let e=u.body.at(-1),t=c(e,{...r,isInAbsenceFunction:r.isInAbsenceFunction||d,isInLookbehind:r.isInLookbehind||h,isInNegLookbehind:r.isInNegLookbehind||p});if(e.body.push(t),(h||r.isInLookbehind)&&!l){let e="Lookbehind includes a pattern not allowed by Oniguruma";if(p||r.isInNegLookbehind){if(Y(t)||"CapturingGroup"===t.type)throw Error(e)}else if(Y(t)||z(t)&&t.negate)throw Error(e)}}m=W(s[t.nextIndex])}return t.nextIndex++,u}(r,u,t);case"NamedCallout":var n,s;return n=r.kind,s=r.tag,{type:"NamedCallout",kind:n,tag:s,arguments:r.arguments};case"Quantifier":return function({kind:e,min:t,max:r},n){let a=n.parent,s=a.body.at(-1);if(!s||!D.has(s.type))throw Error("Quantifier requires a repeatable token");let i=H(e,t,r,s);return a.body.pop(),i}(r,u);case"Subroutine":return function({raw:e},t){let{capturingGroups:r,subroutines:n}=t,a=e.slice(3,-1),s=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(a);if(s){let e=+s.groups.num,n=r.length;if(t.hasNumberedRef=!0,(a=({"":e,"+":n+e,"-":n+1-e})[s.groups.sign])<1)throw Error("Invalid subroutine number")}else"0"===a&&(a=0);let i=U(a);return n.push(i),i}(r,u);default:throw Error(`Unexpected token type "${r.type}"`)}},u={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:n.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:n.skipBackrefValidation,skipLookbehindValidation:n.skipLookbehindValidation,skipPropertyNameValidation:n.skipPropertyNameValidation,subroutines:[],tokens:a.tokens,unicodePropertyMap:n.unicodePropertyMap,walk:s},d=(r={type:"Flags",...a.flags},{type:"Regex",body:j(void 0),flags:r}),N=d.body[0];for(;u.nextIndex<a.tokens.length;){let e=s(N,{});"Alternative"===e.type?(d.body.push(e),N=e):N.body.push(e)}let{capturingGroups:y,hasNumberedRef:$,namedGroupsByName:Q,subroutines:X}=u;if($&&Q.size&&!n.rules.captureGroup)throw Error("Numbered backref/subroutine not allowed when using named capture");for(let{ref:e}of X)if("number"==typeof e){if(e>y.length)throw Error("Subroutine uses a group number that's not defined");e&&(y[e-1].isSubroutined=!0)}else if(Q.has(e)){if(Q.get(e).length>1)throw Error(l`Subroutine uses a duplicate group name "\g<${e}>"`);Q.get(e)[0].isSubroutined=!0}else throw Error(l`Subroutine uses a group name that's not defined "\g<${e}>"`);return d}function R(e){return{type:"Alternative",body:$(e?.body)}}function L(e,t){let r={type:"Assertion",kind:e};return("word_boundary"===e||"text_segment_boundary"===e)&&(r.negate=!!t?.negate),r}function O(e,t){let r=!!t?.orphan;return{type:"Backreference",ref:e,...r&&{orphan:r}}}function w(e,t){var r;let n={name:void 0,isSubroutined:!1,...t};if(void 0!==n.name&&(r=n.name,!/^[\p{Alpha}\p{Pc}][^)]*$/u.test(r)))throw Error(`Group name "${n.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:e,...n.name&&{name:n.name},...n.isSubroutined&&{isSubroutined:n.isSubroutined},body:j(t?.body)}}function M(e,t){let r={useLastValid:!1,...t};if(e>1114111){let t=e.toString(16);if(r.useLastValid)e=1114111;else throw e>1310719?Error(`Invalid code point out of range "\\x{${t}}"`):Error(`Invalid code point out of range in JS "\\x{${t}}"`)}return{type:"Character",value:e}}function P(e){let t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:$(e?.body)}}function v(e,t){let r=!!t?.negate,n={type:"CharacterSet",kind:e};return("digit"===e||"hex"===e||"newline"===e||"space"===e||"word"===e)&&(n.negate=r),"text_segment"!==e&&("newline"!==e||r)||(n.variableLength=!0),n}function B(e){let t=e?.atomic,r=e?.flags;if(t&&r)throw Error("Atomic group cannot have flags");return{type:"Group",...t&&{atomic:t},...r&&{flags:r},body:j(e?.body)}}function F(e){let t={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:t.behind?"lookbehind":"lookahead",negate:t.negate,body:j(e?.body)}}function H(e,t,r,n){if(t>r)throw Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:e,min:t,max:r,body:n}}function U(e){return{type:"Subroutine",ref:e}}function G(e,t){let r={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t},n=r.unicodePropertyMap?.get(q(e));if(!n){if(r.normalizeUnknownPropertyNames)n=e.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,e=>e[0].toUpperCase()+e.slice(1).toLowerCase());else if(r.unicodePropertyMap&&!r.skipPropertyNameValidation)throw Error(l`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:n??e,negate:r.negate}}function j(e){if(void 0===e)e=[R()];else if(!Array.isArray(e)||!e.length||!e.every(e=>"Alternative"===e.type))throw Error("Invalid body; expected array of one or more Alternative nodes");return e}function $(e){if(void 0===e)e=[];else if(!Array.isArray(e)||!e.every(e=>!!e.type))throw Error("Invalid body; expected array of nodes");return e}function Y(e){return"LookaroundAssertion"===e.type&&"lookahead"===e.kind}function z(e){return"LookaroundAssertion"===e.type&&"lookbehind"===e.kind}function q(e){return e.replace(/[- _]+/g,"").toLowerCase()}function V(e,t){return c(e,`Unclosed character class${t?.type==="Character"&&93===t.value&&"]"===t.raw?' (started with "]")':""}`)}function W(e){return c(e,"Unclosed group")}function Q(e,t,r=null){function n(e,t){for(let r=0;r<e.length;r++){let n=a(e[r],t,r,e);r=Math.max(-1,r+n)}}function a(s,i=null,o=null,l=null){let u=0,d=!1,h={node:s,parent:i,key:o,container:l,root:e,remove(){X(l).splice(Math.max(0,K(o)+u),1),u--,d=!0},removeAllNextSiblings:()=>X(l).splice(K(o)+1),removeAllPrevSiblings(){let e=K(o)+u;return u-=e,X(l).splice(0,Math.max(0,e))},replaceWith(e,t={}){let r=!!t.traverse;l?l[Math.max(0,K(o)+u)]=e:c(i,"Can't replace root node")[o]=e,r&&a(e,i,o,l),d=!0},replaceWithMultiple(e,t={}){let r=!!t.traverse;if(X(l).splice(Math.max(0,K(o)+u),1,...e),u+=e.length-1,r){let t=0;for(let r=0;r<e.length;r++)t+=a(e[r],i,K(o)+r+t,l)}d=!0},skip(){d=!0}},{type:p}=s,m=t["*"],f=t[p],E="function"==typeof m?m:m?.enter,T="function"==typeof f?f:f?.enter;if(E?.(h,r),T?.(h,r),!d)switch(p){case"AbsenceFunction":case"Alternative":case"CapturingGroup":case"CharacterClass":case"Group":case"LookaroundAssertion":n(s.body,s);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subroutine":break;case"CharacterClassRange":a(s.min,s,"min"),a(s.max,s,"max");break;case"Quantifier":a(s.body,s,"body");break;case"Regex":n(s.body,s),a(s.flags,s,"flags");break;default:throw Error(`Unexpected node type "${p}"`)}return f?.exit?.(h,r),m?.exit?.(h,r),u}return a(e),e}function X(e){if(!Array.isArray(e))throw Error("Container expected");return e}function K(e){if("number"!=typeof e)throw Error("Numeric key expected");return e}let Z=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`,J=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function ee(e,t,r,n){let a=RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,"gsu"),s=[!1],i=0,o="";for(let t of e.matchAll(a)){let{0:e,groups:{$skip:a}}=t;if(!a&&(!n||n===J.DEFAULT==!i)){r instanceof Function?o+=r(t,{context:i?J.CHAR_CLASS:J.DEFAULT,negated:s[s.length-1]}):o+=r;continue}"["===e[0]?(i++,s.push("^"===e[1])):"]"===e&&i&&(i--,s.pop()),o+=e}return o}function et(e,t,r){return!!function(e,t,r=0,n){let a;if(!RegExp(t,"su").test(e))return null;let s=RegExp(`${t}|(?<$skip>\\\\?.)`,"gsu");s.lastIndex=r;let i=0;for(;a=s.exec(e);){let{0:e,groups:{$skip:t}}=a;if(!t&&(!n||n===J.DEFAULT==!i))return a;"["===e?i++:"]"===e&&i&&i--,s.lastIndex==a.index&&s.lastIndex++}return null}(e,t,0,r)}let er=RegExp(String.raw`(?<noncapturingStart>${Z})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu"),en=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,ea=RegExp(String.raw`
|
|
34
34
|
\\(?: \d+
|
|
35
35
|
| c[A-Za-z]
|
|
36
36
|
| [gk]<[^>]+>
|
|
@@ -135,7 +135,7 @@ Uppercase Upper
|
|
|
135
135
|
Variation_Selector VS
|
|
136
136
|
White_Space space
|
|
137
137
|
XID_Continue XIDC
|
|
138
|
-
XID_Start XIDS`.split(/\s/).map(e=>[q(e),e])),ex=new Map([["s",eE(383)],[eE(383),"s"]]),eR=new Map([[eE(223),eE(7838)],[eE(107),eE(8490)],[eE(229),eE(8491)],[eE(969),eE(8486)]]),eL=new Map([ew(453),ew(456),ew(459),ew(498),...eM(8072,8079),...eM(8088,8095),...eM(8104,8111),ew(8124),ew(8140),ew(8188)]),eO=new Map([["alnum",eT`[\p{Alpha}\p{Nd}]`],["alpha",eT`\p{Alpha}`],["ascii",eT`\p{ASCII}`],["blank",eT`[\p{Zs}\t]`],["cntrl",eT`\p{Cc}`],["digit",eT`\p{Nd}`],["graph",eT`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",eT`\p{Lower}`],["print",eT`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",eT`[\p{P}\p{S}]`],["space",eT`\p{space}`],["upper",eT`\p{Upper}`],["word",eT`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",eT`\p{AHex}`]]);function ew(e){let t=eE(e);return[t.toLowerCase(),t]}function eM(e,t){return(function(e,t){let r=[];for(let n=e;n<=t;n++)r.push(n);return r})(e,t).map(e=>ew(e))}var eP=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]),ev={AbsenceFunction({node:e,parent:t,replaceWith:r}){let{body:n,kind:a}=e;if("repeater"===a){let e=B();e.body[0].body.push(F({negate:!0,body:n}),G("Any"));let a=B();a.body[0].body.push(H("greedy",0,1/0,e)),r(eW(a,t),{traverse:!0})}else throw Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:e,parent:t,key:r},{flagDirectivesByAlt:n}){let a=e.body.filter(e=>"flags"===e.kind);for(let e=r+1;e<t.body.length;e++)eb(n,t.body[e],[]).push(...a)},exit({node:e},{flagDirectivesByAlt:t}){if(t.get(e)?.length){let r=ej(t.get(e));if(r){let t=B({flags:r});t.body[0].body=e.body,e.body=[eW(t,e)]}}}},Assertion({node:e,parent:t,key:r,container:n,root:a,remove:s,replaceWith:i},o){let{kind:l,negate:c}=e,{asciiWordBoundaries:u,avoidSubclass:d,supportedGNodes:h,wordIsAscii:p}=o;if("text_segment_boundary"===l)throw Error(`Unsupported text segment boundary "\\${c?"Y":"y"}"`);if("line_end"===l)i(eW(F({body:[R({body:[L("string_end")]}),R({body:[M(10)]})]}),t));else if("line_start"===l)i(eW(ez(eT`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if("search_start"===l)if(h.has(e))a.flags.sticky=!0,s();else{let e=n[r-1];if(e&&function(e){let t=["Character","CharacterClass","CharacterSet"];return t.includes(e.type)||"Quantifier"===e.type&&e.min&&t.includes(e.body.type)}(e))i(eW(F({negate:!0}),t));else if(d)throw Error(eT`Uses "\G" in a way that requires a subclass`);else i(eV(L("string_start"),t)),o.strategy="clip_search"}else if("string_end"===l||"string_start"===l);else if("string_end_newline"===l)i(eW(ez(eT`(?=\n?\z)`),t));else if("word_boundary"===l){if(!p&&!u){let e=`(?:(?<=${eS})(?!${eS})|(?<!${eS})(?=${eS}))`,r=`(?:(?<=${eS})(?=${eS})|(?<!${eS})(?!${eS}))`;i(eW(ez(c?r:e),t))}}else throw Error(`Unexpected assertion kind "${l}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:r}=e;"string"!=typeof r||eY(r)||(e.ref=r=eG(r,t))},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:r}){let{name:n}=e;n&&!eY(n)&&(e.name=n=eG(n,t)),r.set(e.number,e),n&&r.set(n,e)},CharacterClassRange({node:e,parent:t,replaceWith:r}){"intersection"===t.kind&&r(eW(P({body:[e]}),t),{traverse:!0})},CharacterSet({node:e,parent:t,replaceWith:r},{accuracy:n,minTargetEs2024:a,digitIsAscii:s,spaceIsAscii:i,wordIsAscii:o}){let{kind:l,negate:c,value:u}=e;if(s&&("digit"===l||"digit"===u))return void r(eV(v("digit",{negate:c}),t));if(i&&("space"===l||"space"===u))return void r(eW(eq(ez("[ -\r ]"),c),t));if(o&&("word"===l||"word"===u))return void r(eV(v("word",{negate:c}),t));if("any"===l)r(eV(G("Any"),t));else if("digit"===l)r(eV(G("Nd",{negate:c}),t));else if("dot"===l);else if("text_segment"===l){if("strict"===n)throw Error(eT`Use of "\X" requires non-strict accuracy`);let e="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",s=eT`\p{RI}{2}|${e}(?:\u200D${e})*`;r(eW(ez(eT`(?>\r\n|${a?eT`\p{RGI_Emoji}`:s}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if("hex"===l)r(eV(G("AHex",{negate:c}),t));else if("newline"===l)r(eW(ez(c?"[^\n]":"(?>\r\n?|[\n\v\f\x85\u2028\u2029])"),t));else if("posix"===l)if(a||"graph"!==u&&"print"!==u)r(eW(eq(ez(eO.get(u)),c),t));else{if("strict"===n)throw Error(`POSIX class "${u}" requires min target ES2024 or non-strict accuracy`);let e={graph:"!-~",print:" -~"}[u];c&&(e=`\0-${eE(e.codePointAt(0)-1)}${eE(e.codePointAt(2)+1)}-\u{10FFFF}`),r(eW(ez(`[${e}]`),t))}else if("property"===l)eD.has(q(u))||(e.key="sc");else if("space"===l)r(eV(G("space",{negate:c}),t));else if("word"===l)r(eW(eq(ez(eS),c),t));else throw Error(`Unexpected character set kind "${l}"`)},Directive({node:e,parent:t,root:r,remove:n,replaceWith:a,removeAllPrevSiblings:s,removeAllNextSiblings:i}){let{kind:o,flags:l}=e;if("flags"===o)if(l.enable||l.disable){let e=B({flags:l});e.body[0].body=i(),a(eW(e,t),{traverse:!0})}else n();else if("keep"===o){let e=r.body[0],n=1===r.body.length&&y(e,{type:"Group"})&&1===e.body[0].body.length?e.body[0]:r;if(t.parent!==n||n.body.length>1)throw Error(eT`Uses "\K" in a way that's unsupported`);let i=F({behind:!0});i.body[0].body=s(),a(eW(i,t))}else throw Error(`Unexpected directive kind "${o}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw Error('Unsupported flag "P"');if("word"===e.textSegmentMode)throw Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(t=>delete e[t]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;let{enable:t,disable:r}=e.flags;t?.extended&&delete t.extended,r?.extended&&delete r.extended,t?.dotAll&&r?.dotAll&&delete t.dotAll,t?.ignoreCase&&r?.ignoreCase&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,r&&!Object.keys(r).length&&delete e.flags.disable,e.flags.enable||e.flags.disable||delete e.flags},LookaroundAssertion({node:e},t){let{kind:r}=e;"lookbehind"===r&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:r}){let{kind:n}=e;if("fail"===n)r(eW(F({negate:!0}),t));else throw Error(`Unsupported named callout "(*${n.toUpperCase()}"`)},Quantifier({node:e}){if("Quantifier"===e.body.type){let t=B();t.body[0].body.push(e.body),e.body=eW(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){let r=[],n=!1,a=!1;for(let t of e.body)if(1===t.body.length&&"search_start"===t.body[0].kind)t.body.pop();else{let e=function e(t){let r=t.find(e=>"search_start"===e.kind||function(e,t){let r={negate:null,...t};return"LookaroundAssertion"===e.type&&(null===r.negate||e.negate===r.negate)&&1===e.body.length&&y(e.body[0],{type:"Assertion",kind:"search_start"})}(e,{negate:!1})||!function({type:e}){return"Assertion"===e||"Directive"===e||"LookaroundAssertion"===e}(e));if(!r)return null;if("search_start"===r.kind)return r;if("LookaroundAssertion"===r.type)return r.body[0].body[0];if("CapturingGroup"===r.type||"Group"===r.type){let t=[];for(let n of r.body){let r=e(n.body);if(!r)return null;Array.isArray(r)?t.push(...r):t.push(r)}return t}return null}(t.body);e?(n=!0,Array.isArray(e)?r.push(...e):r.push(e)):a=!0}n&&!a&&r.forEach(e=>t.add(e))},exit(e,{accuracy:t,passedLookbehind:r,strategy:n}){if("strict"===t&&r&&n)throw Error(eT`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:r}=e;"string"!=typeof r||eY(r)||(e.ref=r=eG(r,t))}},eB={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:r}){let{orphan:n,ref:a}=e;n||r.set(e,[...t.get(a).map(({node:e})=>e)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:r,skip:n},{groupOriginByCopy:a,groupsByName:s,multiplexCapturesToLeftByRef:i,openRefs:o,reffedNodesByReferencer:l}){let c=a.get(e);if(c&&o.has(e.number)){let n=eV(eU(e.number),t);l.set(n,o.get(e.number)),r(n);return}o.set(e.number,e),i.set(e.number,[]),e.name&&eb(i,e.name,[]);let u=i.get(e.name??e.number);for(let t=0;t<u.length;t++){let r=u[t];if(c===r.node||c&&c===r.origin||e===r.origin){u.splice(t,1);break}}if(i.get(e.number).push({node:e,origin:c}),e.name&&i.get(e.name).push({node:e,origin:c}),e.name){let t=eb(s,e.name,new Map),r=!1;if(c)r=!0;else for(let e of t.values())if(!e.hasDuplicateNameToRemove){r=!0;break}s.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:r})}},exit({node:e},{openRefs:t}){t.get(e.number)===e&&t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=e_(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:r},n){let{isRecursive:a,ref:s}=e;if(a){let r=t;for(;(r=r.parent)&&("CapturingGroup"!==r.type||r.name!==s&&r.number!==s););n.reffedNodesByReferencer.set(e,r);return}let i=n.subroutineRefMap.get(s),o=0===s,l=o?eU(0):function e(t,r,n,a){let s=Array.isArray(t)?[]:{};for(let[i,o]of Object.entries(t))"parent"===i?s.parent=Array.isArray(n)?a:n:o&&"object"==typeof o?s[i]=e(o,r,s,n):("type"===i&&"CapturingGroup"===o&&r.set(s,r.get(t)??t),s[i]=o);return s}(i,n.groupOriginByCopy,null),c=l;if(!o){var u,d;let e=ej(function(e,t){let r=[];for(;e=e.parent;)(!t||t(e))&&r.push(e);return r}(i,e=>"Group"===e.type&&!!e.flags)),t=e?e_(n.globalFlags,e):n.globalFlags;u=t,d=n.currentFlags,(u.dotAll!==d.dotAll||u.ignoreCase!==d.ignoreCase)&&(c=B({flags:function({dotAll:e,ignoreCase:t}){let r={};return(e||t)&&(r.enable={},e&&(r.enable.dotAll=!0),t&&(r.enable.ignoreCase=!0)),e&&t||(r.disable={},e||(r.disable.dotAll=!0),t||(r.disable.ignoreCase=!0)),r}(t)})).body[0].body.push(l)}r(eW(c,t),{traverse:!o})}},eF={Backreference({node:e,parent:t,replaceWith:r},n){if(e.orphan){n.highestOrphanBackref=Math.max(n.highestOrphanBackref,e.ref);return}let a=n.reffedNodesByReferencer.get(e).filter(t=>(function(e,t){let r=t;do{if("Regex"===r.type)return!1;if("Alternative"===r.type)continue;if(r===e)return!1;for(let t of e$(r.parent)){if(t===r)break;if(t===e||function e(t,r){for(let n of e$(t)??[])if(n===r||e(n,r))return!0;return!1}(t,e))return!0}}while(r=r.parent);throw Error("Unexpected path")})(t,e));a.length?a.length>1?r(eW(B({atomic:!0,body:a.reverse().map(e=>R({body:[O(e.number)]}))}),t)):e.ref=a[0].number:r(eW(F({negate:!0}),t))},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Regex:{exit({node:e},t){let r=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let t=0;t<r;t++){let t=w();e.body.at(-1).body.push(t)}}},Subroutine({node:e},t){e.isRecursive&&0!==e.ref&&(e.ref=t.reffedNodesByReferencer.get(e).number)}};function eH(e){Q(e,{"*"({node:e,parent:t}){e.parent=t}})}function eU(e){let t=U(e);return t.isRecursive=!0,t}function eG(e,t){if(t.has(e))return t.get(e);let r=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return t.set(e,r),r}function ej(e){let t=["dotAll","ignoreCase"],r={enable:{},disable:{}};return(e.forEach(({flags:e})=>{t.forEach(t=>{e.enable?.[t]&&(delete r.disable[t],r.enable[t]=!0),e.disable?.[t]&&(r.disable[t]=!0)})}),Object.keys(r.enable).length||delete r.enable,Object.keys(r.disable).length||delete r.disable,r.enable||r.disable)?r:null}function e$(e){if(!e)throw Error("Node expected");let{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function eY(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function ez(e,t){let r=x(e,{...t,unicodePropertyMap:eD}).body;return r.length>1||r[0].body.length>1?B({body:r}):r[0].body[0]}function eq(e,t){return e.negate=t,e}function eV(e,t){return e.parent=t,e}function eW(e,t){return eH(e),e.parent=t,e}var eQ={"*":{enter({node:e},t){if(e8(e)){let r=t.getCurrentModI();t.pushModI(e.flags?e_({ignoreCase:r},e.flags).ignoreCase:r)}},exit({node:e},t){e8(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){e5(eE(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},r){t(),e3(e,{firstOnly:!0}).length&&r.setHasCasedChar()},CharacterSet({node:e},t){"property"===e.kind&&eP.has(e.value)&&t.setHasCasedChar()}},eK={Alternative:({body:e},t,r)=>e.map(r).join(""),Assertion({kind:e,negate:t}){if("string_end"===e)return"$";if("string_start"===e)return"^";if("word_boundary"===e)return t?eT`\B`:eT`\b`;throw Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if("number"!=typeof e)throw Error("Unexpected named backref in transformed AST");if(!t.useFlagMods&&"strict"===t.accuracy&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+e},CapturingGroup(e,t,r){let{body:n,name:a,number:s}=e,i={ignoreCase:t.currentFlags.ignoreCase},o=t.originMap.get(e);return o&&(i.hidden=!0,s>o.number&&(i.transferTo=o.number)),t.captureMap.set(s,i),`(${a?`?<${a}>`:""}${n.map(r).join("|")})`},Character({value:e},t){let r=eE(e),n=e2(e,{escDigit:"Backreference"===t.lastNode.type,inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(n!==r)return n;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&e5(r)){let e=ey(r);return t.inCharClass?e.join(""):e.length>1?`[${e.join("")}]`:e[0]}return r},CharacterClass(e,t,r){let{kind:n,negate:a,parent:s}=e,{body:i}=e;if("intersection"===n&&!t.useFlagV)throw Error("Use of character class intersection requires min target ES2024");eg.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&i.some(e6)&&(i=[M(45),...i.filter(e=>!e6(e))]);let o=()=>`[${a?"^":""}${i.map(r).join("intersection"===n?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||eg.bugNestedClassIgnoresNegation)&&!a){let t=i.filter(e=>"CharacterClass"===e.type&&"union"===e.kind&&e.negate);if(t.length){let n=B(),a=n.body[0];return n.parent=s,a.parent=n,e.body=i=i.filter(e=>!t.includes(e)),i.length?(e.parent=a,a.body.push(e)):n.body.pop(),t.forEach(e=>{let t=R({body:[e]});e.parent=t,t.parent=n,n.body.push(t)}),r(n)}}t.inCharClass=!0;let n=o();return t.inCharClass=!1,n}let l=i[0];if("union"===n&&!a&&l&&((!t.useFlagV||!t.verbose)&&"union"===s.kind&&!(eg.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&"intersection"===s.kind&&1===i.length&&"CharacterClassRange"!==l.type))return i.map(r).join("");if(!t.useFlagV&&"CharacterClass"===s.type)throw Error("Uses nested character class in a way that requires min target ES2024");return o()},CharacterClassRange(e,t){let r=e.min.value,n=e.max.value,a={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},s=e2(r,a),i=e2(n,a),o=new Set;return t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&(function(e){let t=e.map(e=>e.codePointAt(0)).sort((e,t)=>e-t),r=[],n=null;for(let e=0;e<t.length;e++)t[e+1]===t[e]+1?n??=t[e]:null===n?r.push(t[e]):(r.push([n,t[e]]),n=null);return r})(e3(e)).forEach(e=>{o.add(Array.isArray(e)?`${e2(e[0],a)}-${e2(e[1],a)}`:e2(e,a))}),`${s}-${i}${[...o].join("")}`},CharacterSet({kind:e,negate:t,value:r,key:n},a){if("dot"===e)return a.currentFlags.dotAll?a.appliedGlobalFlags.dotAll||a.useFlagMods?".":"[^]":eT`[^\n]`;if("digit"===e)return t?eT`\D`:eT`\d`;if("property"===e){if(a.useAppliedIgnoreCase&&a.currentFlags.ignoreCase&&eP.has(r))throw Error(`Unicode property "${r}" can't be case-insensitive when other chars have specific case`);return`${t?eT`\P`:eT`\p`}{${n?`${n}=`:""}${r}}`}if("word"===e)return t?eT`\W`:eT`\w`;throw Error(`Unexpected character set kind "${e}"`)},Flags:(e,t)=>(t.appliedGlobalFlags.ignoreCase?"i":"")+(e.dotAll?"s":"")+(e.sticky?"y":""),Group({atomic:e,body:t,flags:r,parent:n},a,s){let i=a.currentFlags;r&&(a.currentFlags=e_(i,r));let o=t.map(s).join("|"),l=a.verbose||1!==t.length||"Quantifier"===n.type||e||a.useFlagMods&&r?`(?${function(e,t,r){if(e)return">";let n="";if(t&&r){let{enable:e,disable:r}=t;n=(e?.ignoreCase?"i":"")+(e?.dotAll?"s":"")+(r?"-":"")+(r?.ignoreCase?"i":"")+(r?.dotAll?"s":"")}return`${n}:`}(e,r,a.useFlagMods)}${o})`:o;return a.currentFlags=i,l},LookaroundAssertion({body:e,kind:t,negate:r},n,a){let s=`${"lookahead"===t?"":"<"}${r?"!":"="}`;return`(?${s}${e.map(a).join("|")})`},Quantifier:(e,t,r)=>r(e.body)+function({kind:e,max:t,min:r}){return(r||1!==t?r||t!==1/0?1===r&&t===1/0?"+":r===t?`{${r}}`:`{${r},${t===1/0?"":t}}`:"*":"?")+({greedy:"",lazy:"?",possessive:"+"})[e]}(e),Subroutine({isRecursive:e,ref:t},r){if(!e)throw Error("Unexpected non-recursive subroutine in transformed AST");let n=r.recursionLimit;return 0===t?`(?R=${n})`:eT`\g<${t}&R=${n}>`}},eX=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),eZ=new Set(["-","\\","]","^","["]),eJ=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),e0=new Map([[9,eT`\t`],[10,eT`\n`],[11,eT`\v`],[12,eT`\f`],[13,eT`\r`],[8232,eT`\u2028`],[8233,eT`\u2029`],[65279,eT`\uFEFF`]]),e1=/^\p{Cased}$/u;function e5(e){return e1.test(e)}function e3(e,t){let r=!!t?.firstOnly,n=e.min.value,a=e.max.value,s=[];if(n<65&&(65535===a||a>=131071)||65536===n&&a>=131071)return s;for(let e=n;e<=a;e++){let t=eE(e);if(!e5(t))continue;let i=ey(t).filter(e=>{let t=e.codePointAt(0);return t<n||t>a});if(i.length&&(s.push(...i),r))break}return s}function e2(e,{escDigit:t,inCharClass:r,useFlagV:n}){var a;if(e0.has(e))return e0.get(e);if(e<32||e>126&&e<160||e>262143||t&&(a=e)>47&&a<58)return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;let s=eE(e);return((r?n?eJ:eZ:eX).has(s)?"\\":"")+s}function e8({type:e}){return"CapturingGroup"===e||"Group"===e||"LookaroundAssertion"===e}function e6({type:e,value:t}){return"Character"===e&&45===t}var e4=class e extends RegExp{#e=new Map;#t=null;#r;#n=null;#a=null;rawOptions={};get source(){return this.#r||"(?:)"}constructor(t,r,n){let a=!!n?.lazyCompile;if(t instanceof RegExp){if(n)throw Error("Cannot provide options when copying a regexp");super(t,r),this.#r=t.source,t instanceof e&&(this.#e=t.#e,this.#n=t.#n,this.#a=t.#a,this.rawOptions=t.rawOptions)}else{let e={hiddenCaptures:[],strategy:null,transfers:[],...n};super(a?"":t,r),this.#r=t,this.#e=function(e,t){let r=new Map;for(let t of e)r.set(t,{hidden:!0});for(let[e,n]of t)for(let t of n)eb(r,t,{}).transferTo=e;return r}(e.hiddenCaptures,e.transfers),this.#a=e.strategy,this.rawOptions=n??{}}a||(this.#t=this)}exec(t){if(!this.#t){let{lazyCompile:t,...r}=this.rawOptions;this.#t=new e(this.#r,this.flags,r)}let r=this.global||this.sticky,n=this.lastIndex;if("clip_search"===this.#a&&r&&n){this.lastIndex=0;let e=this.#s(t.slice(n));return e&&(function(e,t,r,n){if(e.index+=t,e.input=r,n){let r=e.indices;for(let e=0;e<r.length;e++){let n=r[e];n&&(r[e]=[n[0]+t,n[1]+t])}let n=r.groups;n&&Object.keys(n).forEach(e=>{let r=n[e];r&&(n[e]=[r[0]+t,r[1]+t])})}}(e,n,t,this.hasIndices),this.lastIndex+=n),e}return this.#s(t)}#s(e){let t;this.#t.lastIndex=this.lastIndex;let r=super.exec.call(this.#t,e);if(this.lastIndex=this.#t.lastIndex,!r||!this.#e.size)return r;let n=[...r];r.length=1,this.hasIndices&&(t=[...r.indices],r.indices.length=1);let a=[0];for(let e=1;e<n.length;e++){let{hidden:s,transferTo:i}=this.#e.get(e)??{};if(s?a.push(null):(a.push(r.length),r.push(n[e]),this.hasIndices&&r.indices.push(t[e])),i&&void 0!==n[e]){let s=a[i];if(!s)throw Error(`Invalid capture transfer to "${s}"`);if(r[s]=n[e],this.hasIndices&&(r.indices[s]=t[e]),r.groups){this.#n||(this.#n=function(e){let t,r=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,n=new Map,a=0,s=0;for(;t=r.exec(e);){let{0:e,groups:{capture:r,name:i}}=t;"["===e?a++:a?"]"===e&&a--:r&&(s++,i&&n.set(s,i))}return n}(this.source));let a=this.#n.get(i);a&&(r.groups[a]=n[e],this.hasIndices&&(r.indices.groups[a]=t[e]))}}}return r}},e9=function(e={}){let t={target:"auto",cache:new Map,...e};return t.regexConstructor||=e=>(function(e,t){let r=function(e,t){let r=eN(t),n=function(e,t){let r={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t};eH(e);let n={accuracy:r.accuracy,asciiWordBoundaries:r.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:ek[r.bestEffortTarget]>=ek.ES2024,passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:e.flags.digitIsAscii,spaceIsAscii:e.flags.spaceIsAscii,wordIsAscii:e.flags.wordIsAscii};Q(e,ev,n);let a={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},s={currentFlags:a,prevFlags:null,globalFlags:a,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:n.subroutineRefMap};return Q(e,eB,s),Q(e,eF,{groupsByName:s.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:s.reffedNodesByReferencer}),e._originMap=s.groupOriginByCopy,e._strategy=n.strategy,e}(x(e,{flags:r.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline},skipBackrefValidation:r.rules.allowOrphanBackrefs,unicodePropertyMap:eD}),{accuracy:r.accuracy,asciiWordBoundaries:r.rules.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,bestEffortTarget:r.target}),a=function(e,t){let r=eN(t),n=ek[r.target]>=ek.ES2024,a=ek[r.target]>=ek.ES2025,s=r.rules.recursionLimit;if(!Number.isInteger(s)||s<2||s>20)throw Error("Invalid recursionLimit; use 2-20");let i=null,o=null;if(!a){let t=[e.flags.ignoreCase];Q(e,eQ,{getCurrentModI:()=>t.at(-1),popModI(){t.pop()},pushModI(e){t.push(e)},setHasCasedChar(){t.at(-1)?i=!0:o=!0}})}let l={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||i)&&!o)},c=e,u={accuracy:r.accuracy,appliedGlobalFlags:l,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:c,originMap:e._originMap,recursionLimit:s,useAppliedIgnoreCase:!!(!a&&i&&o),useFlagMods:a,useFlagV:n,verbose:r.verbose};function d(e){return u.lastNode=c,c=e,(function(e,t){if(null==e)throw Error(t??"Value expected");return e})(eK[e.type],`Unexpected node type "${e.type}"`)(e,u,d)}let h={pattern:e.body.map(d).join("|"),flags:d(e.flags),options:{...e.options}};return n||(delete h.options.force.v,h.options.disable.v=!0,h.options.unicodeSetsPlugin=null),h._captureTransfers=new Map,h._hiddenCaptures=[],u.captureMap.forEach((e,t)=>{e.hidden&&h._hiddenCaptures.push(t),e.transferTo&&eb(h._captureTransfers,e.transferTo,[]).push(t)}),h}(n,r),s=function(e,t){let r,{hiddenCaptures:n,mode:a}={hiddenCaptures:[],mode:"plugin",...t},s=t?.captureTransfers??new Map;if(!RegExp(eo,"su").test(e))return{pattern:e,captureTransfers:s,hiddenCaptures:n};if("plugin"===a&&et(e,es`\(\?\(DEFINE\)`,J.DEFAULT))throw Error("DEFINE groups cannot be used with recursion");let i=[],o=et(e,es`\\[1-9]`,J.DEFAULT),l=new Map,c=[],u=!1,d=0,h=0;for(eu.lastIndex=0;r=eu.exec(e);){let{0:t,groups:{captureName:p,rDepth:m,gRNameOrNum:f,gRDepth:E}}=r;if("["===t)d++;else if(d)"]"===t&&d--;else if(m){if(eh(m),u)throw Error(ed);if(o)throw Error(`${"external"===a?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);let t=e.slice(0,r.index),l=e.slice(eu.lastIndex);if(et(l,eo,J.DEFAULT))throw Error(ed);let c=m-1;e=ep(t,l,c,!1,n,i,h),s=ef(s,t,c,i.length,0,h);break}else if(f){eh(E);let d=!1;for(let e of c)if(e.name===f||e.num===+f){if(d=!0,e.hasRecursedWithin)throw Error(ed);break}if(!d)throw Error(es`Recursive \g cannot be used outside the referenced group "${"external"===a?f:es`\g<${f}&R=${E}>`}"`);let p=l.get(f),m=function(e,t){let r,n=/\\?./gsu;n.lastIndex=t;let a=e.length,s=0,i=1;for(;r=n.exec(e);){let[e]=r;if("["===e)s++;else if(s)"]"===e&&s--;else if("("===e)i++;else if(")"===e&&!--i){a=r.index;break}}return e.slice(t,a)}(e,p);if(o&&et(m,es`${el}|\((?!\?)`,J.DEFAULT))throw Error(`${"external"===a?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);let T=e.slice(p,r.index),g=m.slice(T.length+t.length),A=i.length,_=E-1,b=ep(T,g,_,!0,n,i,h);s=ef(s,T,_,i.length-A,A,h);let k=e.slice(0,p),C=e.slice(p+m.length);e=`${k}${b}${C}`,eu.lastIndex+=b.length-t.length-T.length-g.length,c.forEach(e=>e.hasRecursedWithin=!0),u=!0}else if(p)h++,l.set(String(h),eu.lastIndex),l.set(p,eu.lastIndex),c.push({num:h,name:p});else if("("===t[0]){let e="("===t;e&&(h++,l.set(String(h),eu.lastIndex)),c.push(e?{num:h}:{})}else")"===t&&c.pop()}return n.push(...i),{pattern:e,captureTransfers:s,hiddenCaptures:n}}(a.pattern,{captureTransfers:a._captureTransfers,hiddenCaptures:a._hiddenCaptures,mode:"external"}),i=function(e,t){let r,n=t?.hiddenCaptures??[],a=t?.captureTransfers??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:a,hiddenCaptures:n};let s="(?:(?=(",i=[0],o=[],l=0,c=0,u=NaN;do{let t;r=!1;let d=0,h=0,p=!1;for(er.lastIndex=Number.isNaN(u)?0:u+s.length;t=er.exec(e);){let{0:m,index:f,groups:{capturingStart:E,noncapturingStart:T}}=t;if("["===m)d++;else if(d)"]"===m&&d--;else if("(?>"!==m||p){if(p&&T)h++;else if(E)p?h++:(l++,i.push(l+c));else if(")"===m&&p){if(!h){let t=l+ ++c;e=`${e.slice(0,u)}${s}${e.slice(u+3,f)}))<$$${t}>)${e.slice(f+1)}`,r=!0,o.push(t);for(let e=0;e<n.length;e++)n[e]>=t&&n[e]++;if(a.size){let e=new Map;a.forEach((r,n)=>{e.set(n>=t?n+1:n,r.map(e=>e>=t?e+1:e))}),a=e}break}h--}}else u=f,p=!0}}while(r);return n.push(...o),{pattern:e=ee(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:e,groups:{backrefNum:t,wrappedBackrefNum:r}})=>{if(t){let r=+t;if(r>i.length-1)throw Error(`Backref "${e}" greater than number of captures`);return`\\${i[r]}`}return`\\${r}`},J.DEFAULT),captureTransfers:a,hiddenCaptures:n}}(function(e){let t;if(!RegExp(`${en}\\+`).test(e))return{pattern:e};let r=[],n=null,a=null,s="",i=0;for(ea.lastIndex=0;t=ea.exec(e);){let{0:c,index:u,groups:{qBase:d,qMod:h,invalidQ:p}}=t;if("["===c)i||(a=u),i++;else if("]"===c)i?i--:a=null;else if(!i)if("+"===h&&s&&!s.startsWith("(")){if(p)throw Error(`Invalid quantifier "${c}"`);let t=-1;if(/^\{\d+\}$/.test(d)){var o,l;o=e,l=u+d.length,e=o.slice(0,l)+""+o.slice(l+h.length)}else{if(")"===s||"]"===s){let t=")"===s?n:a;if(null===t)throw Error(`Invalid unmatched "${s}"`);e=`${e.slice(0,t)}(?>${e.slice(t,u)}${d})${e.slice(u+c.length)}`}else e=`${e.slice(0,u-s.length)}(?>${s}${d})${e.slice(u+c.length)}`;t+=4}ea.lastIndex+=t}else"("===c[0]?r.push(u):")"===c&&(n=r.length?r.pop():null);s=c}return{pattern:e}}(s.pattern).pattern,{captureTransfers:s.captureTransfers,hiddenCaptures:s.hiddenCaptures}),o={pattern:i.pattern,flags:`${r.hasIndices?"d":""}${r.global?"g":""}${a.flags}${a.options.disable.v?"u":"v"}`};if(r.avoidSubclass){if(r.lazyCompileLength!==1/0)throw Error("Lazy compilation requires subclass")}else{let e=i.hiddenCaptures.sort((e,t)=>e-t),t=Array.from(i.captureTransfers),a=n._strategy,s=o.pattern.length>=r.lazyCompileLength;(e.length||t.length||a||s)&&(o.options={...e.length&&{hiddenCaptures:e},...t.length&&{transfers:t},...a&&{strategy:a},...s&&{lazyCompile:s}})}return o}(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t});return r.options?new e4(r.pattern,r.flags,r.options):new RegExp(r.pattern,r.flags)})(e,{target:t.target}),{createScanner:e=>new s(e,t),createString:e=>({content:e})}}({forgiving:!0}),e7=Object.fromEntries(n.i.flatMap(e=>{var t;return(null!=(t=e.aliases)?t:[]).map(t=>[t,e.id])})),te=new Set(Object.keys(n.t)),tt=e=>{let t=e.trim().toLowerCase();return e7[t]||(te.has(t),t)},tr=new Map,tn=new Map,ta=new Map,ts=e=>{var t;return"string"==typeof e?e:null!=(t=e.name)?t:"custom"};function ti(e={}){var t;let r=null!=(t=e.themes)?t:["github-light","github-dark"];return{name:"shiki",type:"code-highlighter",supportsLanguage(e){let t=tt(e);return te.has(t)},getSupportedLanguages:()=>Array.from(te),getThemes:()=>r,highlight({code:e,language:t,themes:r},n){let s,i,o=tt(t),l=[ts(r[0]),ts(r[1])],c=(s=e.slice(0,100),i=e.length>100?e.slice(-100):"",`${o}:${l[0]}:${l[1]}:${e.length}:${s}:${i}`);return tn.has(c)?tn.get(c):(n&&(ta.has(c)||ta.set(c,new Set),ta.get(c).add(n)),((e,t)=>{let r,n,s=(r=e,n=t,`${r}-${ts(n[0])}-${ts(n[1])}`);if(tr.has(s))return tr.get(s);let i=(0,a.O_)({themes:t,langs:[e],engine:e9});return tr.set(s,i),i})(o,r).then(t=>{let r=t.getLoadedLanguages().includes(o)?o:"text",n=t.codeToTokens(e,{lang:r,themes:{light:l[0],dark:l[1]}});tn.set(c,n);let a=ta.get(c);if(a){for(let e of a)e(n);ta.delete(c)}}).catch(e=>{console.error("[Streamdown Code] Failed to highlight code:",e),ta.delete(c)}),null)}}}var to=ti()},23153:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,n=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,l=/^\s+|\s+$/g;function c(e){return e?e.replace(l,""):""}e.exports=function(e,l){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];l=l||{};var u=1,d=1;function h(e){var t=e.match(r);t&&(u+=t.length);var n=e.lastIndexOf("\n");d=~n?e.length-n:d+e.length}function p(){var e={line:u,column:d};return function(t){return t.position=new m(e),E(n),t}}function m(e){this.start=e,this.end={line:u,column:d},this.source=l.source}function f(t){var r=Error(l.source+":"+u+":"+d+": "+t);if(r.reason=t,r.filename=l.source,r.line=u,r.column=d,r.source=e,l.silent);else throw r}function E(t){var r=t.exec(e);if(r){var n=r[0];return h(n),e=e.slice(n.length),r}}function T(e){var t;for(e=e||[];t=g();)!1!==t&&e.push(t);return e}function g(){var t=p();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var r=2;""!=e.charAt(r)&&("*"!=e.charAt(r)||"/"!=e.charAt(r+1));)++r;if(r+=2,""===e.charAt(r-1))return f("End of comment missing");var n=e.slice(2,r-2);return d+=2,h(n),e=e.slice(r),d+=2,t({type:"comment",comment:n})}}m.prototype.content=e,E(n);var A,_=[];for(T(_);A=function(){var e=p(),r=E(a);if(r){if(g(),!E(s))return f("property missing ':'");var n=E(i),l=e({type:"declaration",property:c(r[0].replace(t,"")),value:n?c(n[0].replace(t,"")):""});return E(o),l}}();)!1!==A&&(_.push(A),T(_));return _}},26190:(e,t,r)=>{r.d(t,{a:()=>s});var n=r(71352),a={startOnLoad:!1,theme:"default",securityLevel:"strict",fontFamily:"monospace",suppressErrorRendering:!0},s=function(e={}){let t=!1,r={...a,...e.config},s={initialize(s){r={...a,...e.config,...s},n.default.initialize(r),t=!0},render:async(e,a)=>(t||(n.default.initialize(r),t=!0),await n.default.render(e,a))};return{name:"mermaid",type:"diagram",language:"mermaid",getMermaid:e=>(e&&s.initialize(e),s)}}()},65700:(e,t,r)=>{r.d(t,{jH:()=>n.C});var n=r(85793)},83426:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let r=null;if(!e||"string"!=typeof e)return r;let n=(0,a.default)(e),s="function"==typeof t;return n.forEach(e=>{if("declaration"!==e.type)return;let{property:n,value:a}=e;s?t(n,a,e):a&&((r=r||{})[n]=a)}),r};let a=n(r(23153))},85793:(e,t,r)=>{r.d(t,{A:()=>iQ,C:()=>iX,c:()=>aj,f:()=>sn,l:()=>iJ});var n=r(1856),a=r(26885),s=r(18662);let i={indicator:"indicator",textOnly:"text-only",remove:"remove"};function o(e,t){if("string"!=typeof e)return null;try{return new URL(e)}catch{if(t)try{return new URL(e,t)}catch{return null}if(e.startsWith("/")||e.startsWith("./")||e.startsWith("../"))try{return new URL(e,"http://example.com")}catch{}return null}}let l=new Set(["https:","http:","irc:","ircs:","mailto:","xmpp:","blob:"]),c=new Set(["javascript:","data:","file:","vbscript:"]);function u(e,t,r,n=!1,a=!1,s=[]){if(!e)return null;if("string"==typeof e&&e.startsWith("#")&&!a)try{if(new URL(e,"http://example.com").hash===e)return e}catch{}if("string"==typeof e&&e.startsWith("data:"))return a&&n&&e.startsWith("data:image/")?e:null;if("string"==typeof e&&e.startsWith("blob:")){try{let t=new URL(e);if("blob:"===t.protocol&&e.length>5){let t=e.substring(5);if(t&&t.length>0&&"invalid"!==t)return e}}catch{}return null}let i=o(e,r);if(!i||c.has(i.protocol)||!(l.has(i.protocol)||s.includes(i.protocol)||s.includes("*")))return null;if("mailto:"===i.protocol||!i.protocol.match(/^https?:$/))return i.href;let d="string"==typeof e&&(e.startsWith("/")||e.startsWith("./")||e.startsWith("../"));return i&&t.some(e=>{let t=o(e,r);return!!t&&t.origin===i.origin&&i.href.startsWith(t.href)})?d?i.pathname+i.search+i.hash:i.href:t.includes("*")?"https:"!==i.protocol&&"http:"!==i.protocol?null:d?i.pathname+i.search+i.hash:i.href:null}let d=Symbol("node-seen"),h="object"==typeof self?self:globalThis,p=e=>((e,t)=>{let r=(t,r)=>(e.set(r,t),t),n=a=>{if(e.has(a))return e.get(a);let[s,i]=t[a];switch(s){case 0:case -1:return r(i,a);case 1:{let e=r([],a);for(let t of i)e.push(n(t));return e}case 2:{let e=r({},a);for(let[t,r]of i)e[n(t)]=n(r);return e}case 3:return r(new Date(i),a);case 4:{let{source:e,flags:t}=i;return r(new RegExp(e,t),a)}case 5:{let e=r(new Map,a);for(let[t,r]of i)e.set(n(t),n(r));return e}case 6:{let e=r(new Set,a);for(let t of i)e.add(n(t));return e}case 7:{let{name:e,message:t}=i;return r(new h[e](t),a)}case 8:return r(BigInt(i),a);case"BigInt":return r(Object(BigInt(i)),a);case"ArrayBuffer":return r(new Uint8Array(i).buffer,i);case"DataView":{let{buffer:e}=new Uint8Array(i);return r(new DataView(e),i)}}return r(new h[s](i),a)};return n})(new Map,e)(0),{toString:m}={},{keys:f}=Object,E=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let r=m.call(e).slice(8,-1);switch(r){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,r]}return r.includes("Array")?[1,r]:r.includes("Error")?[7,r]:[2,r]},T=([e,t])=>0===e&&("function"===t||"symbol"===t),g=(e,{json:t,lossy:r}={})=>{let n=[];return((e,t,r,n)=>{let a=(e,t)=>{let a=n.push(e)-1;return r.set(t,a),a},s=n=>{if(r.has(n))return r.get(n);let[i,o]=E(n);switch(i){case 0:{let t=n;switch(o){case"bigint":i=8,t=n.toString();break;case"function":case"symbol":if(e)throw TypeError("unable to serialize "+o);t=null;break;case"undefined":return a([-1],n)}return a([i,t],n)}case 1:{if(o){let e=n;return"DataView"===o?e=new Uint8Array(n.buffer):"ArrayBuffer"===o&&(e=new Uint8Array(n)),a([o,[...e]],n)}let e=[],t=a([i,e],n);for(let t of n)e.push(s(t));return t}case 2:{if(o)switch(o){case"BigInt":return a([o,n.toString()],n);case"Boolean":case"Number":case"String":return a([o,n.valueOf()],n)}if(t&&"toJSON"in n)return s(n.toJSON());let r=[],l=a([i,r],n);for(let t of f(n))(e||!T(E(n[t])))&&r.push([s(t),s(n[t])]);return l}case 3:return a([i,n.toISOString()],n);case 4:{let{source:e,flags:t}=n;return a([i,{source:e,flags:t}],n)}case 5:{let t=[],r=a([i,t],n);for(let[r,a]of n)(e||!(T(E(r))||T(E(a))))&&t.push([s(r),s(a)]);return r}case 6:{let t=[],r=a([i,t],n);for(let r of n)(e||!T(E(r)))&&t.push(s(r));return r}}let{message:l}=n;return a([i,{name:o,message:l}],n)};return s})(!(t||r),!!t,new Map,n)(e),n},A="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?p(g(e,t)):structuredClone(e):(e,t)=>p(g(e,t));var _=r(14824),b=r(78444),k=r(43918);let C=/[#.]/g;var N=r(54802),I=r(62196),S=r(49009);function y(e,t,r){let n=r?function(e){let t=new Map;for(let r of e)t.set(r.toLowerCase(),r);return t}(r):void 0;return function(r,a,...s){let i;if(null==r)i={type:"root",children:[]},s.unshift(a);else{let o=(i=function(e,t){let r,n,a=e||"",s={},i=0;for(;i<a.length;){C.lastIndex=i;let e=C.exec(a),t=a.slice(i,e?e.index:a.length);t&&(r?"#"===r?s.id=t:Array.isArray(s.className)?s.className.push(t):s.className=[t]:n=t,i+=t.length),e&&(r=e[0],i++)}return{type:"element",tagName:n||t||"div",properties:s,children:[]}}(r,t)).tagName.toLowerCase(),l=n?n.get(o):void 0;if(i.tagName=l||o,function(e){if(null===e||"object"!=typeof e||Array.isArray(e))return!0;if("string"!=typeof e.type)return!1;for(let t of Object.keys(e)){let r=e[t];if(r&&"object"==typeof r){if(!Array.isArray(r))return!0;for(let e of r)if("number"!=typeof e&&"string"!=typeof e)return!0}}return!!("children"in e&&Array.isArray(e.children))}(a))s.unshift(a);else for(let[t,r]of Object.entries(a))!function(e,t,r,n){let a,s=(0,N.I)(e,r);if(null!=n){if("number"==typeof n){if(Number.isNaN(n))return;a=n}else a="boolean"==typeof n?n:"string"==typeof n?s.spaceSeparated?(0,S.q)(n):s.commaSeparated?(0,k.q)(n):s.commaOrSpaceSeparated?(0,S.q)((0,k.q)(n).join(" ")):D(s,s.property,n):Array.isArray(n)?[...n]:"style"===s.property?function(e){let t=[];for(let[r,n]of Object.entries(e))t.push([r,n].join(": "));return t.join("; ")}(n):String(n);if(Array.isArray(a)){let e=[];for(let t of a)e.push(D(s,s.property,t));a=e}"className"===s.property&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[s.property]=a}}(e,i.properties,t,r)}for(let e of s)!function e(t,r){if(null==r);else if("number"==typeof r||"string"==typeof r)t.push({type:"text",value:String(r)});else if(Array.isArray(r))for(let n of r)e(t,n);else if("object"==typeof r&&"type"in r)"root"===r.type?e(t,r.children):t.push(r);else throw Error("Expected node, nodes, or string, got `"+r+"`")}(i.children,e);return"element"===i.type&&"template"===i.tagName&&(i.content={type:"root",children:i.children},i.children=[]),i}}function D(e,t,r){if("string"==typeof r){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(""===r||(0,I.S)(r)===(0,I.S)(t)))return!0}return r}let x=y(b.qy,"div"),R=y(b.JW,"g",["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"]);function L(e,t){let r=e.indexOf("\r",t),n=e.indexOf("\n",t);return -1===n?r:-1===r||r+1===n?n:r<n?r:n}let O={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/"},w={}.hasOwnProperty,M=Object.prototype;function P(e,t){let r;switch(t.nodeName){case"#comment":return r={type:"comment",value:t.data},B(e,t,r),r;case"#document":case"#document-fragment":{let n="mode"in t&&("quirks"===t.mode||"limited-quirks"===t.mode);if(r={type:"root",children:v(e,t.childNodes),data:{quirksMode:n}},e.file&&e.location){let t=String(e.file),n=function(e){let t=String(e),r=[];return{toOffset:function(e){if(e&&"number"==typeof e.line&&"number"==typeof e.column&&!Number.isNaN(e.line)&&!Number.isNaN(e.column)){for(;r.length<e.line;){let e=r[r.length-1],n=L(t,e),a=-1===n?t.length+1:n+1;if(e===a)break;r.push(a)}let n=(e.line>1?r[e.line-2]:0)+e.column-1;if(n<r[e.line-1])return n}},toPoint:function(e){if("number"==typeof e&&e>-1&&e<=t.length){let n=0;for(;;){let a=r[n];if(void 0===a){let e=L(t,r[n-1]);a=-1===e?t.length+1:e+1,r[n]=a}if(a>e)return{line:n+1,column:e-(n>0?r[n-1]:0)+1,offset:e};n++}}}}}(t),a=n.toPoint(0),s=n.toPoint(t.length);(0,_.ok)(a,"expected `start`"),(0,_.ok)(s,"expected `end`"),r.position={start:a,end:s}}return r}case"#documentType":return B(e,t,r={type:"doctype"}),r;case"#text":return r={type:"text",value:t.value},B(e,t,r),r;default:return function(e,t){let r=e.schema;e.schema=t.namespaceURI===O.svg?b.JW:b.qy;let n=-1,a={};for(;++n<t.attrs.length;){let e=t.attrs[n],r=(e.prefix?e.prefix+":":"")+e.name;w.call(M,r)||(a[r]=e.value)}let s=("svg"===e.schema.space?R:x)(t.tagName,a,v(e,t.childNodes));if(B(e,t,s),"template"===s.tagName){let r=t.sourceCodeLocation,n=r&&r.startTag&&F(r.startTag),a=r&&r.endTag&&F(r.endTag),i=P(e,t.content);n&&a&&e.file&&(i.position={start:n.end,end:a.start}),s.content=i}return e.schema=r,s}(e,t)}}function v(e,t){let r=-1,n=[];for(;++r<t.length;){let a=P(e,t[r]);n.push(a)}return n}function B(e,t,r){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){let n=function(e,t,r){let n=F(r);if("element"===t.type){let a=t.children[t.children.length-1];if(n&&!r.endTag&&a&&a.position&&a.position.end&&(n.end=Object.assign({},a.position.end)),e.verbose){let n,a={};if(r.attrs)for(n in r.attrs)w.call(r.attrs,n)&&(a[(0,N.I)(e.schema,n).property]=F(r.attrs[n]));(0,_.ok)(r.startTag,"a start tag should exist");let s=F(r.startTag),i=r.endTag?F(r.endTag):void 0,o={opening:s};i&&(o.closing=i),o.properties=a,t.data={position:o}}}return n}(e,r,t.sourceCodeLocation);n&&(e.location=!0,r.position=n)}}function F(e){let t=H({line:e.startLine,column:e.startCol,offset:e.startOffset}),r=H({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||r?{start:t,end:r}:void 0}function H(e){return e.line&&e.column?e:void 0}var U=r(8959);let G={}.hasOwnProperty,j=(0,U.A)("type",{handlers:{root:function(e,t){let r={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return r.childNodes=$(e.children,r,t),Y(e,r),r},element:function(e,t){let r,n=t;"element"===e.type&&"svg"===e.tagName.toLowerCase()&&"html"===t.space&&(n=b.JW);let a=[];if(e.properties){for(r in e.properties)if("children"!==r&&G.call(e.properties,r)){let t=function(e,t,r){let n=(0,N.I)(e,t);if(!1===r||null==r||"number"==typeof r&&Number.isNaN(r)||!r&&n.boolean)return;Array.isArray(r)&&(r=n.commaSeparated?(0,k.A)(r):(0,S.A)(r));let a={name:n.attribute,value:!0===r?"":String(r)};if(n.space&&"html"!==n.space&&"svg"!==n.space){let e=a.name.indexOf(":");e<0?a.prefix="":(a.name=a.name.slice(e+1),a.prefix=n.attribute.slice(0,e)),a.namespace=O[n.space]}return a}(n,r,e.properties[r]);t&&a.push(t)}}let s=n.space;(0,_.ok)(s);let i={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:O[s],childNodes:[],parentNode:null};return i.childNodes=$(e.children,i,n),Y(e,i),"template"===e.tagName&&e.content&&(i.content=function(e,t){let r={nodeName:"#document-fragment",childNodes:[]};return r.childNodes=$(e.children,r,t),Y(e,r),r}(e.content,n)),i},text:function(e){let t={nodeName:"#text",value:e.value,parentNode:null};return Y(e,t),t},comment:function(e){let t={nodeName:"#comment",data:e.value,parentNode:null};return Y(e,t),t},doctype:function(e){let t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Y(e,t),t}}});function $(e,t,r){let n=-1,a=[];if(e)for(;++n<e.length;){let s=j(e[n],r);s.parentNode=t,a.push(s)}return a}function Y(e,t){let r=e.position;r&&r.start&&r.end&&((0,_.ok)("number"==typeof r.start.offset),(0,_.ok)("number"==typeof 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})}var z=r(30736);let q=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]);!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"}(s1||(s1={}));let V={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function W(e){return e>=55296&&e<=57343}function Q(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159}function K(e){return e>=64976&&e<=65007||q.has(e)}!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"}(s5||(s5={}));class X{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,t){let{line:r,col:n,offset:a}=this,s=n+t,i=a+t;return{code:e,startLine:r,endLine:r,startCol:s,endCol:s,startOffset:i,endOffset:i}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){let t=this.html.charCodeAt(this.pos+1);if(t>=56320&&t<=57343)return this.pos++,this._addGap(),(e-55296)*1024+9216+t}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,s1.EOF;return this._err(s5.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let t=0;t<e.length;t++)if((32|this.html.charCodeAt(this.pos+t))!==e.charCodeAt(t))return!1;return!0}peek(e){let t=this.pos+e;if(t>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,s1.EOF;let r=this.html.charCodeAt(t);return r===s1.CARRIAGE_RETURN?s1.LINE_FEED:r}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,s1.EOF;let e=this.html.charCodeAt(this.pos);return e===s1.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,s1.LINE_FEED):e===s1.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,W(e)&&(e=this._processSurrogate(e)),null===this.handler.onParseError||e>31&&e<127||e===s1.LINE_FEED||e===s1.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){Q(e)?this._err(s5.controlCharacterInInputStream):K(e)&&this._err(s5.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}function Z(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}!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"}(s3||(s3={}));let J=new Uint16Array('ᵁ<\xd5ıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms\x7f\x84\x8b\x90\x95\x98\xa6\xb3\xb9\xc8\xcflig耻\xc6䃆P耻&䀦cute耻\xc1䃁reve;䄂Āiyx}rc耻\xc2䃂;䐐r;쀀\ud835\udd04rave耻\xc0䃀pha;䎑acr;䄀d;橓Āgp\x9d\xa1on;䄄f;쀀\ud835\udd38plyFunction;恡ing耻\xc5䃅Ācs\xbe\xc3r;쀀\ud835\udc9cign;扔ilde耻\xc3䃃ml耻\xc4䃄Ѐaceforsu\xe5\xfb\xfeėĜĢħĪĀcr\xea\xf2kslash;或Ŷ\xf6\xf8;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀\ud835\udd05pf;쀀\ud835\udd39eve;䋘c\xf2ēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻\xa9䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻\xc7䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷\xf2ſ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;쀀\ud835\udc9epĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀\ud835\udd07Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀\ud835\udd3bƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegra\xecȹoɴ\0\0ͻ\xbb͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔e\xe5ˊ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;쀀\ud835\udc9frok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻\xd0䃐cute耻\xc9䃉ƀaiyӒӗӜron;䄚rc耻\xca䃊;䐭ot;䄖r;쀀\ud835\udd08rave耻\xc8䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀\ud835\udd3csilon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻\xcb䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀\ud835\udd09lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀\ud835\udd3dAll;戀riertrf;愱c\xf2JTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀\ud835\udd0a;拙pf;쀀\ud835\udd3eeater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀\ud835\udca2;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅ\xf2کrok;䄦mpńېۘownHum\xf0įqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻\xcd䃍Āiyܓܘrc耻\xce䃎;䐘ot;䄰r;愑rave耻\xcc䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lie\xf3ϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀\ud835\udd40a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻\xcf䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀\ud835\udd0dpf;쀀\ud835\udd41ǣ߇\0ߌr;쀀\ud835\udca5rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀\ud835\udd0epf;쀀\ud835\udd42cr;쀀\ud835\udca6ր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\xe1Μs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀\ud835\udd0fĀ;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊight\xe1οight\xe1ϊf;쀀\ud835\udd43erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂ\xf2ࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀\ud835\udd10nusPlus;戓pf;쀀\ud835\udd44c\xf2੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦\xeberyThi\xeetedĀGLଆreaterGreate\xf2ٳessLes\xf3ੈLine;䀊r;쀀\ud835\udd11Ȁ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;쀀\ud835\udca9ilde耻\xd1䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻\xd3䃓Āiyීrc耻\xd4䃔;䐞blac;䅐r;쀀\ud835\udd12rave耻\xd2䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀\ud835\udd46enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀\ud835\udcaaash耻\xd8䃘iŬืde耻\xd5䃕es;樷ml耻\xd6䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀\ud835\udd13i;䎦;䎠usMinus;䂱Āipຢອncareplan\xe5ڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀\ud835\udcab;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀\ud835\udd14pf;愚cr;쀀\ud835\udcacBEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻\xae䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r\xbbཹ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;쀀\ud835\udd16ortȀDLRUᄪᄴᄾᅉownArrow\xbbОeftArrow\xbb࢚ightArrow\xbbpArrow;憑gma;䎣allCircle;战pf;쀀\ud835\udd4aɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀\ud835\udcaear;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Th\xe1ྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et\xbbሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻\xde䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀\ud835\udd17ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀\ud835\udd4bipleDot;惛Āctዖዛr;쀀\ud835\udcafrok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻\xda䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻\xdb䃛;䐣blac;䅰r;쀀\ud835\udd18rave耻\xd9䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀\ud835\udd4cЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥own\xe1ϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀\ud835\udcb0ilde;䅨ml耻\xdc䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀\ud835\udd19pf;쀀\ud835\udd4dcr;쀀\ud835\udcb1dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀\ud835\udd1apf;쀀\ud835\udd4ecr;쀀\ud835\udcb2Ȁfiosᓋᓐᓒᓘr;쀀\ud835\udd1b;䎞pf;쀀\ud835\udd4fcr;쀀\ud835\udcb3ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻\xdd䃝Āiyᔉᔍrc;䅶;䐫r;쀀\ud835\udd1cpf;쀀\ud835\udd50cr;쀀\ud835\udcb4ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidt\xe8a;䎖r;愨pf;愤cr;쀀\ud835\udcb5ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻\xe1䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻\xe2䃢te肻\xb4̆;䐰lig耻\xe6䃦Ā;r\xb2ᖺ;쀀\ud835\udd1erave耻\xe0䃠ĀepᗊᗖĀfpᗏᗔsym;愵\xe8ᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e\xbbᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢\xbb\xb9arr;捼Āgpᙣᙧon;䄅f;쀀\ud835\udd52;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒ\xf1ᚃing耻\xe5䃥ƀctyᚡᚦᚨr;쀀\ud835\udcb6;䀪mpĀ;eᚯ\xf1ʈilde耻\xe3䃣ml耻\xe4䃤Āciᛂᛈonin\xf4ɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e\xbbᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰s\xe9ᜌno\xf5ēƀahwᝯᝳ;䎲;愶een;扬r;쀀\ud835\udd1fgcostuvwឍឝឳេ៕៛ƀaiuបពរ\xf0ݠrc;旯p\xbb፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄e\xe5ᑄ\xe5ᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀\ud835\udd53Ā;tᏋᡣom\xbbᏌtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻\xa6䂦Ȁceioᥑᥖᥚᥠr;쀀\ud835\udcb7mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t\xbbpƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁\xeeړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻\xe7䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻\xb8ƭptyv;榲t脀\xa2;eᨭᨮ䂢r\xe4Ʋr;쀀\ud835\udd20ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark\xbbᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖\xbbཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it\xbb᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;q\xc7\xc6ɭ\0\0aĀ;t䀬;䁀ƀ;fl戁\xeeᅠeĀmxent\xbbe\xf3ɍǧ\0ᬇĀ;dኻᬂot;橭n\xf4Ɇƀfryᬐᬔᬗ;쀀\ud835\udd54o\xe4ɔ脀\xa9;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀\ud835\udcb8Ā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\xe3᭳u\xe3᭵ee;拎edge;拏en耻\xa4䂤earrowĀlrᯮ᯳eft\xbbᮀight\xbbᮽe\xe4ᯝĀciᰁᰇonin\xf4Ƿnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍r\xf2ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸\xf2ᄳhĀ;vᱚᱛ怐\xbbऊūᱡᱧarow;椏a\xe3̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻\xb0䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀\ud835\udd21arĀlrᲳᲵ\xbbࣜ\xbbသʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀\xf7;o᳧ᳰntimes;拇n\xf8᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀\ud835\udd55ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedg\xe5\xfanƀadhᄮᵝᵧownarrow\xf3ᲃarpoonĀlrᵲᵶef\xf4Ჴigh\xf4ᲶŢᵿᶅkaro\xf7གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀\ud835\udcb9;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃r\xf2Щa\xf2ྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴo\xf4ĀcsḎḔute耻\xe9䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻\xea䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀\ud835\udd22ƀ;rsṐṑṗ檚ave耻\xe8䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et\xbbẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀\ud835\udd56ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on\xbbớ;䏵ȀcsuvỪỳἋἣĀioữḱrc\xbbḮɩỹ\0\0ỻ\xedՈantĀglἂἆtr\xbbṝess\xbbṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯o\xf4͒ĀahὉὋ;䎷耻\xf0䃰Āmrὓὗl耻\xeb䃫o;悬ƀcipὡὤὧl;䀡s\xf4ծĀeoὬὴctatio\xeeՙnential\xe5չৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotse\xf1Ṅy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀\ud835\udd23lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀\ud835\udd57ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻\xbd䂽;慓耻\xbc䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻\xbe䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀\ud835\udcbbࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlan\xf4٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀\ud835\udd24Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox\xbbℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀\ud835\udd58Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0pro\xf8r;楸qĀlqؿ↖les\xf3₈i\xed٫Āen↣↭rtneqq;쀀≩︀\xc5↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽r\xf2ΠȀilmr⇐⇔⇗⇛rs\xf0ᒄf\xbb․il\xf4کĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it\xbb∊lip;怦con;抹r;쀀\ud835\udd25sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀\ud835\udd59bar;怕ƀclt≯≴≸r;쀀\ud835\udcbdas\xe8⇴rok;䄧Ābp⊂⊇ull;恃hen\xbbᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻\xed䃭ƀ;iyݱ⊰⊵rc耻\xee䃮;䐸Ācx⊼⊿y;䐵cl耻\xa1䂡ĀfrΟ⋉;쀀\ud835\udd26rave耻\xec䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓in\xe5ގar\xf4ܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝do\xf4⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙er\xf3ᕣ\xe3⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀\ud835\udd5aa;䎹uest耻\xbf䂿Āci⎊⎏r;쀀\ud835\udcbenʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻\xef䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀\ud835\udd27ath;䈷pf;쀀\ud835\udd5bǣ⏬\0⏱r;쀀\ud835\udcbfrcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀\ud835\udd28reen;䄸cy;䑅cy;䑜pf;쀀\ud835\udd5ccr;쀀\ud835\udcc0ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼r\xf2\xf2Εail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴ra\xeeࡌbda;䎻gƀ;dlࢎⓁⓃ;榑\xe5ࢎ;檅uo耻\xab䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝\xeb≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼\xecࢰ\xe2┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□a\xe9⓶arpoonĀdu▯▴own\xbbњp\xbb०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoon\xf3quigarro\xf7⇰hreetimes;拋ƀ;qs▋ও◺lan\xf4বʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋ppro\xf8Ⓠot;拖qĀgq♃♅\xf4উgt\xf2⒌\xf4ছi\xedলƀilr♕࣡♚sht;楼;쀀\ud835\udd29Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖r\xf2◁orne\xf2ᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che\xbb⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox\xbb⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽r\xebࣁgƀlmr⛿✍✔eftĀar০✇ight\xe1৲apsto;柼ight\xe1৽parrowĀlr✥✩ef\xf4⓭ight;憬ƀafl✶✹✽r;榅;쀀\ud835\udd5dus;樭imes;樴š❋❏st;戗\xe1ፎƀ;ef❗❘᠀旊nge\xbb❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇r\xf2ࢨorne\xf2ᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀\ud835\udcc1mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹re\xe5◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀\xc5⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻\xaf䂯Āet⡗⡙;時Ā;e⡞⡟朠se\xbb⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻ow\xeeҌef\xf4ए\xf0Ꮡker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle\xbbᘦr;쀀\ud835\udd2ao;愧ƀcdn⢯⢴⣉ro耻\xb5䂵Ȁ;acdᑤ⢽⣀⣄s\xf4ᚧir;櫰ot肻\xb7Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛\xf2−\xf0ઁĀdp⣩⣮els;抧f;쀀\ud835\udd5eĀct⣸⣽r;쀀\ud835\udcc2pos\xbbᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la\xbb˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉ro\xf8urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻\xa0ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸ui\xf6ୣĀei⩊⩎ar;椨\xedistĀ;sடr;쀀\ud835\udd2bȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lan\xf4i\xed௪Ā;rஶ⪁\xbbஷƀAap⪊⪍⪑r\xf2⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹r\xf2⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro\xf7⫁ightarro\xf7⪐ƀ;qs⪺⫪lan\xf4ౕĀ;sౕ⫴\xbbశi\xedౝĀ;rవ⫾iĀ;eచథi\xe4ඐĀpt⬌⬑f;쀀\ud835\udd5f膀\xac;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lle\xecl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳u\xe5ಥĀ;cಘ⭸Ā;eಒ⭽\xf1ಘȀAait⮈⮋⮝⮧r\xf2⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow\xbb⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉u\xe5;쀀\ud835\udcc3ortɭ⬅\0\0⯖ar\xe1⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭\xe5\xe5ഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗ\xf1സȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇ\xecௗlde耻\xf1䃱\xe7ృiangleĀlrⱒⱜeftĀ;eచⱚ\xf1దightĀ;eೋⱥ\xf1Ā;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耻\xf3䃳ĀiyⴼⵅrĀ;cⵂ耻\xf4䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀\ud835\udd2cͯ\0\0\0ⶂn;䋛ave耻\xf2䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨr\xf2᪀Āirⶠr;榾oss;榻n\xe5๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀\ud835\udd60ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨r\xf2᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f\xbbⷿ耻\xaa䂪耻\xba䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧\xf2⸁ash耻\xf8䃸l;折iŬⸯ⸴de耻\xf5䃵esĀ;aǛ⸺s;樶ml耻\xf6䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀\xb6;l䂶le\xecЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀\ud835\udd2dƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕ma\xf4੶ne;明ƀ;tv⺿⻀⻈䏀chfork\xbb´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎\xf6⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻\xb1ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀\ud835\udd61nd耻\xa3䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷u\xe5໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾ppro\xf8⽃urlye\xf1໙\xf1໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨i\xedໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺\xf0⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴\xefrel;抰Āci⿀⿅r;쀀\ud835\udcc5;䏈ncsp;怈̀fiopsu⋢⿱r;쀀\ud835\udd2epf;쀀\ud835\udd62rime;恗cr;쀀\ud835\udcc6ƀaeo⿸〉〓tĀei々rnion\xf3ڰnt;樖stĀ;e【】䀿\xf1Ἑ\xf4༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがr\xf2Ⴓ\xf2ϝail;検ar\xf2ᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕i\xe3ᅮmptyv;榳gȀ;del࿑らるろ;榒;榥\xe5࿑uo耻\xbb䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞\xeb≝\xf0✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶al\xf3༞ƀabrョリヮr\xf2៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗\xec\xe2ヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜn\xe5Ⴛar\xf4ྩt;断ƀilrㅩဣㅮsht;楽;쀀\ud835\udd2fĀaoㅷㆆrĀduㅽㅿ\xbbѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭa\xe9トarpoonĀduㆻㆿow\xeeㅾp\xbb႒eftĀah㇊㇐rrow\xf3arpoon\xf3Ցightarrows;應quigarro\xf7ニhreetimes;拌g;䋚ingdotse\xf1ἲƀahm㈍㈐㈓r\xf2a\xf2Ց;怏oustĀ;a㈞掱che\xbbmid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾r\xebဃƀafl㉇㉊㉎r;榆;쀀\ud835\udd63us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒ar\xf2㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀\ud835\udcc7Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠re\xe5ㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛qu\xef➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡u\xe5ᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓i\xedሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒\xeb∨Ā;oਸ਼t耻\xa7䂧i;䀻war;椩mĀin㍩\xf0nu\xf3\xf1t;朶rĀ;o㍶⁕쀀\ud835\udd30Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜i\xe4ᑤara\xec耻\xad䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲ar\xf2ᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetm\xe9㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀\ud835\udd64aĀdr㑍ЂesĀ;u㑔㑕晠it\xbb㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍\xf1ᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝\xf1ᆮƀ;afᅻ㒦ְrť㒫ֱ\xbbᅼar\xf2ᅈȀcemt㒹㒾㓂㓅r;쀀\ud835\udcc8tm\xee\xf1i\xec㐕ar\xe6ᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psilo\xeeỠh\xe9⺯s\xbb⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦ppro\xf8㋺urlye\xf1ᇾ\xf1ᇳƀaes㖂㖈㌛ppro\xf8㌚q\xf1㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻\xb9䂹耻\xb2䂲耻\xb3䂳;櫆Ā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㘦㘨\xeb∮Ā;oਫwar;椪lig耻\xdf䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄r\xebƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀\ud835\udd31Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮ppro\xf8im\xbbኬs\xf0ኞĀas㚺㚮\xf0rn耻\xfe䃾Ǭ̟㛆⋧es膀\xd7;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀\xe1⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀\ud835\udd65rk;櫚\xe1㍢rime;怴ƀaip㜏㜒㝤d\xe5ቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own\xbbᶻeftĀ;e⠀㜾\xf1म;扜ightĀ;e㊪㝋\xf1ၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀\ud835\udcc9;䑆cy;䑛rok;䅧Āio㞋㞎x\xf4headĀlr㞗㞠eftarro\xf7ࡏightarrow\xbbཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶r\xf2ϭar;楣Ācr㟜㟢ute耻\xfa䃺\xf2ᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻\xfb䃻;䑃ƀabh㠃㠆㠋r\xf2Ꭽlac;䅱a\xf2ᏃĀir㠓㠘sht;楾;쀀\ud835\udd32rave耻\xf9䃹š㠧㠱rĀlr㠬㠮\xbbॗ\xbbႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r\xbb㡆op;挏ri;旸Āal㡖㡚cr;䅫肻\xa8͉Āgp㡢㡦on;䅳f;쀀\ud835\udd66̀adhlsuᅋ㡸㡽፲㢑㢠own\xe1ᎳarpoonĀlr㢈㢌ef\xf4㠭igh\xf4㠯iƀ;hl㢙㢚㢜䏅\xbbᏺon\xbb㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r\xbb㢽op;挎ng;䅯ri;旹cr;쀀\ud835\udccaƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨\xbb᠓Āam㣯㣲r\xf2㢨l耻\xfc䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠r\xf2ϷarĀ;v㤦㤧櫨;櫩as\xe8ϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖app\xe1␕othin\xe7ẖƀhir㓫⻈㥙op\xf4⾵Ā;hᎷ㥢\xefㆍĀiu㥩㥭gm\xe1㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟et\xe1㚜iangleĀlr㦪㦯eft\xbbथight\xbbၑy;䐲ash\xbbံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨa\xf2ᑩr;쀀\ud835\udd33tr\xe9㦮suĀbp㧯㧱\xbbജ\xbb൙pf;쀀\ud835\udd67ro\xf0tr\xe9㦴Ācu㨆㨋r;쀀\ud835\udccbĀbp㨐㨘nĀEe㦀㨖\xbb㥾nĀEe㦒㨞\xbb㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀\ud835\udd34pf;쀀\ud835\udd68Ā;eᑹ㩦at\xe8ᑹcr;쀀\ud835\udcccૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtr\xe9៑r;쀀\ud835\udd35ĀAa㪔㪗r\xf2σr\xf2৶;䎾ĀAa㪡㪤r\xf2θr\xf2৫a\xf0✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀\ud835\udd69im\xe5ឲĀAa㫇㫊r\xf2ώr\xf2ਁĀcq㫒ីr;쀀\ud835\udccdĀpt៖㫜r\xe9។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻\xfd䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻\xa5䂥r;쀀\ud835\udd36cy;䑗pf;쀀\ud835\udd6acr;쀀\ud835\udcceĀcm㬦㬩y;䑎l耻\xff䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡tr\xe6ᕟa;䎶r;쀀\ud835\udd37cy;䐶grarr;懝pf;쀀\ud835\udd6bcr;쀀\ud835\udccfĀjn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),ee=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 et(e){return e>=s2.ZERO&&e<=s2.NINE}String.fromCodePoint,!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"}(s2||(s2={})),!function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(s8||(s8={})),!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"}(s6||(s6={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(s4||(s4={}));class er{constructor(e,t,r){this.decodeTree=e,this.emitCodePoint=t,this.errors=r,this.state=s6.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=s4.Strict}startEntity(e){this.decodeMode=e,this.state=s6.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case s6.EntityStart:if(e.charCodeAt(t)===s2.NUM)return this.state=s6.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1);return this.state=s6.NamedEntity,this.stateNamedEntity(e,t);case s6.NumericStart:return this.stateNumericStart(e,t);case s6.NumericDecimal:return this.stateNumericDecimal(e,t);case s6.NumericHex:return this.stateNumericHex(e,t);case s6.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===s2.LOWER_X?(this.state=s6.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=s6.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,r,n){if(t!==r){let a=r-t;this.result=this.result*Math.pow(n,a)+Number.parseInt(e.substr(t,a),n),this.consumed+=a}}stateNumericHex(e,t){let r=t;for(;t<e.length;){var n;let a=e.charCodeAt(t);if(!et(a)&&(!((n=a)>=s2.UPPER_A)||!(n<=s2.UPPER_F))&&(!(n>=s2.LOWER_A)||!(n<=s2.LOWER_F)))return this.addToNumericResult(e,r,t,16),this.emitNumericEntity(a,3);t+=1}return this.addToNumericResult(e,r,t,16),-1}stateNumericDecimal(e,t){let r=t;for(;t<e.length;){let n=e.charCodeAt(t);if(!et(n))return this.addToNumericResult(e,r,t,10),this.emitNumericEntity(n,2);t+=1}return this.addToNumericResult(e,r,t,10),-1}emitNumericEntity(e,t){var r,n,a;if(this.consumed<=t)return null==(r=this.errors)||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===s2.SEMI)this.consumed+=1;else if(this.decodeMode===s4.Strict)return 0;return this.emitCodePoint((n=this.result)>=55296&&n<=57343||n>1114111?65533:null!=(a=ee.get(n))?a:n,this.consumed),this.errors&&(e!==s2.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:r}=this,n=r[this.treeIndex],a=(n&s8.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){let s=e.charCodeAt(t);if(this.treeIndex=function(e,t,r,n){let a=(t&s8.BRANCH_LENGTH)>>7,s=t&s8.JUMP_TABLE;if(0===a)return 0!==s&&n===s?r:-1;if(s){let t=n-s;return t<0||t>=a?-1:e[r+t]-1}let i=r,o=i+a-1;for(;i<=o;){let t=i+o>>>1,r=e[t];if(r<n)i=t+1;else{if(!(r>n))return e[t+a];o=t-1}}return -1}(r,n,this.treeIndex+Math.max(1,a),s),this.treeIndex<0)return 0===this.result||this.decodeMode===s4.Attribute&&(0===a||function(e){var t;return e===s2.EQUALS||(t=e)>=s2.UPPER_A&&t<=s2.UPPER_Z||t>=s2.LOWER_A&&t<=s2.LOWER_Z||et(t)}(s))?0:this.emitNotTerminatedNamedEntity();if(0!=(a=((n=r[this.treeIndex])&s8.VALUE_LENGTH)>>14)){if(s===s2.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==s4.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return -1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:r}=this,n=(r[t]&s8.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,n,this.consumed),null==(e=this.errors)||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,r){let{decodeTree:n}=this;return this.emitCodePoint(1===t?n[e]&~s8.VALUE_LENGTH:n[e+1],r),3===t&&this.emitCodePoint(n[e+2],r),r}end(){var e;switch(this.state){case s6.NamedEntity:return 0!==this.result&&(this.decodeMode!==s4.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case s6.NumericDecimal:return this.emitNumericEntity(0,2);case s6.NumericHex:return this.emitNumericEntity(0,3);case s6.NumericStart:return null==(e=this.errors)||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case s6.EntityStart:return 0}}}!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/"}(s9||(s9={})),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"}(s7||(s7={})),function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"}(ie||(ie={})),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"}(it||(it={})),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"}(ir||(ir={}));let en=new Map([[it.A,ir.A],[it.ADDRESS,ir.ADDRESS],[it.ANNOTATION_XML,ir.ANNOTATION_XML],[it.APPLET,ir.APPLET],[it.AREA,ir.AREA],[it.ARTICLE,ir.ARTICLE],[it.ASIDE,ir.ASIDE],[it.B,ir.B],[it.BASE,ir.BASE],[it.BASEFONT,ir.BASEFONT],[it.BGSOUND,ir.BGSOUND],[it.BIG,ir.BIG],[it.BLOCKQUOTE,ir.BLOCKQUOTE],[it.BODY,ir.BODY],[it.BR,ir.BR],[it.BUTTON,ir.BUTTON],[it.CAPTION,ir.CAPTION],[it.CENTER,ir.CENTER],[it.CODE,ir.CODE],[it.COL,ir.COL],[it.COLGROUP,ir.COLGROUP],[it.DD,ir.DD],[it.DESC,ir.DESC],[it.DETAILS,ir.DETAILS],[it.DIALOG,ir.DIALOG],[it.DIR,ir.DIR],[it.DIV,ir.DIV],[it.DL,ir.DL],[it.DT,ir.DT],[it.EM,ir.EM],[it.EMBED,ir.EMBED],[it.FIELDSET,ir.FIELDSET],[it.FIGCAPTION,ir.FIGCAPTION],[it.FIGURE,ir.FIGURE],[it.FONT,ir.FONT],[it.FOOTER,ir.FOOTER],[it.FOREIGN_OBJECT,ir.FOREIGN_OBJECT],[it.FORM,ir.FORM],[it.FRAME,ir.FRAME],[it.FRAMESET,ir.FRAMESET],[it.H1,ir.H1],[it.H2,ir.H2],[it.H3,ir.H3],[it.H4,ir.H4],[it.H5,ir.H5],[it.H6,ir.H6],[it.HEAD,ir.HEAD],[it.HEADER,ir.HEADER],[it.HGROUP,ir.HGROUP],[it.HR,ir.HR],[it.HTML,ir.HTML],[it.I,ir.I],[it.IMG,ir.IMG],[it.IMAGE,ir.IMAGE],[it.INPUT,ir.INPUT],[it.IFRAME,ir.IFRAME],[it.KEYGEN,ir.KEYGEN],[it.LABEL,ir.LABEL],[it.LI,ir.LI],[it.LINK,ir.LINK],[it.LISTING,ir.LISTING],[it.MAIN,ir.MAIN],[it.MALIGNMARK,ir.MALIGNMARK],[it.MARQUEE,ir.MARQUEE],[it.MATH,ir.MATH],[it.MENU,ir.MENU],[it.META,ir.META],[it.MGLYPH,ir.MGLYPH],[it.MI,ir.MI],[it.MO,ir.MO],[it.MN,ir.MN],[it.MS,ir.MS],[it.MTEXT,ir.MTEXT],[it.NAV,ir.NAV],[it.NOBR,ir.NOBR],[it.NOFRAMES,ir.NOFRAMES],[it.NOEMBED,ir.NOEMBED],[it.NOSCRIPT,ir.NOSCRIPT],[it.OBJECT,ir.OBJECT],[it.OL,ir.OL],[it.OPTGROUP,ir.OPTGROUP],[it.OPTION,ir.OPTION],[it.P,ir.P],[it.PARAM,ir.PARAM],[it.PLAINTEXT,ir.PLAINTEXT],[it.PRE,ir.PRE],[it.RB,ir.RB],[it.RP,ir.RP],[it.RT,ir.RT],[it.RTC,ir.RTC],[it.RUBY,ir.RUBY],[it.S,ir.S],[it.SCRIPT,ir.SCRIPT],[it.SEARCH,ir.SEARCH],[it.SECTION,ir.SECTION],[it.SELECT,ir.SELECT],[it.SOURCE,ir.SOURCE],[it.SMALL,ir.SMALL],[it.SPAN,ir.SPAN],[it.STRIKE,ir.STRIKE],[it.STRONG,ir.STRONG],[it.STYLE,ir.STYLE],[it.SUB,ir.SUB],[it.SUMMARY,ir.SUMMARY],[it.SUP,ir.SUP],[it.TABLE,ir.TABLE],[it.TBODY,ir.TBODY],[it.TEMPLATE,ir.TEMPLATE],[it.TEXTAREA,ir.TEXTAREA],[it.TFOOT,ir.TFOOT],[it.TD,ir.TD],[it.TH,ir.TH],[it.THEAD,ir.THEAD],[it.TITLE,ir.TITLE],[it.TR,ir.TR],[it.TRACK,ir.TRACK],[it.TT,ir.TT],[it.U,ir.U],[it.UL,ir.UL],[it.SVG,ir.SVG],[it.VAR,ir.VAR],[it.WBR,ir.WBR],[it.XMP,ir.XMP]]);function ea(e){var t;return null!=(t=en.get(e))?t:ir.UNKNOWN}let es=ir,ei={[s9.HTML]:new Set([es.ADDRESS,es.APPLET,es.AREA,es.ARTICLE,es.ASIDE,es.BASE,es.BASEFONT,es.BGSOUND,es.BLOCKQUOTE,es.BODY,es.BR,es.BUTTON,es.CAPTION,es.CENTER,es.COL,es.COLGROUP,es.DD,es.DETAILS,es.DIR,es.DIV,es.DL,es.DT,es.EMBED,es.FIELDSET,es.FIGCAPTION,es.FIGURE,es.FOOTER,es.FORM,es.FRAME,es.FRAMESET,es.H1,es.H2,es.H3,es.H4,es.H5,es.H6,es.HEAD,es.HEADER,es.HGROUP,es.HR,es.HTML,es.IFRAME,es.IMG,es.INPUT,es.LI,es.LINK,es.LISTING,es.MAIN,es.MARQUEE,es.MENU,es.META,es.NAV,es.NOEMBED,es.NOFRAMES,es.NOSCRIPT,es.OBJECT,es.OL,es.P,es.PARAM,es.PLAINTEXT,es.PRE,es.SCRIPT,es.SECTION,es.SELECT,es.SOURCE,es.STYLE,es.SUMMARY,es.TABLE,es.TBODY,es.TD,es.TEMPLATE,es.TEXTAREA,es.TFOOT,es.TH,es.THEAD,es.TITLE,es.TR,es.TRACK,es.UL,es.WBR,es.XMP]),[s9.MATHML]:new Set([es.MI,es.MO,es.MN,es.MS,es.MTEXT,es.ANNOTATION_XML]),[s9.SVG]:new Set([es.TITLE,es.FOREIGN_OBJECT,es.DESC]),[s9.XLINK]:new Set,[s9.XML]:new Set,[s9.XMLNS]:new Set},eo=new Set([es.H1,es.H2,es.H3,es.H4,es.H5,es.H6]);it.STYLE,it.SCRIPT,it.XMP,it.IFRAME,it.NOEMBED,it.NOFRAMES,it.PLAINTEXT,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"}(ia||(ia={}));let el={DATA:ia.DATA,RCDATA:ia.RCDATA,RAWTEXT:ia.RAWTEXT,SCRIPT_DATA:ia.SCRIPT_DATA,PLAINTEXT:ia.PLAINTEXT,CDATA_SECTION:ia.CDATA_SECTION};function ec(e){return e>=s1.LATIN_CAPITAL_A&&e<=s1.LATIN_CAPITAL_Z}function eu(e){return e>=s1.LATIN_SMALL_A&&e<=s1.LATIN_SMALL_Z||ec(e)}function ed(e){return eu(e)||e>=s1.DIGIT_0&&e<=s1.DIGIT_9}function eh(e){return e===s1.SPACE||e===s1.LINE_FEED||e===s1.TABULATION||e===s1.FORM_FEED}function ep(e){return eh(e)||e===s1.SOLIDUS||e===s1.GREATER_THAN_SIGN}class em{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=ia.DATA,this.returnState=ia.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new X(t),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new er(J,(e,t)=>{this.preprocessor.pos=this.entityStartPos+t-1,this._flushCodePointConsumedAsCharacterReference(e)},t.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(s5.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:e=>{this._err(s5.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+e)},validateNumericCharacterReference:e=>{let t=function(e){if(e===s1.NULL)return s5.nullCharacterReference;if(e>1114111)return s5.characterReferenceOutsideUnicodeRange;if(W(e))return s5.surrogateCharacterReference;if(K(e))return s5.noncharacterCharacterReference;if(Q(e)||e===s1.CARRIAGE_RETURN)return s5.controlCharacterReference;return null}(e);t&&this._err(t,1)}}:void 0)}_err(e,t=0){var r,n;null==(n=(r=this.handler).onParseError)||n.call(r,this.preprocessor.getError(e,t))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;let e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||null==e||e())}write(e,t,r){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||null==r||r()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return!!this.preprocessor.endOfChunkHit&&(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0)}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t<e;t++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,t){return!!this.preprocessor.startsWith(e,t)&&(this._advanceBy(e.length-1),!0)}_createStartTagToken(){this.currentToken={type:s3.START_TAG,tagName:"",tagID:ir.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:s3.END_TAG,tagName:"",tagID:ir.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:s3.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:s3.DOCTYPE,name:e,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e,t;let r=this.currentToken;null===Z(r,this.currentAttr.name)?(r.attrs.push(this.currentAttr),r.location&&this.currentLocation&&((null!=(e=(t=r.location).attrs)?e:t.attrs=Object.create(null))[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue())):this._err(s5.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(e){this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location&&(e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){let e=this.currentToken;this.prepareToken(e),e.tagID=ea(e.tagName),e.type===s3.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(s5.endTagWithAttributes),e.selfClosing&&this._err(s5.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case s3.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case s3.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case s3.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){let e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:s3.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken)if(this.currentCharacterToken.type===e){this.currentCharacterToken.chars+=t;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(e,t)}_emitCodePoint(e){let t=eh(e)?s3.WHITESPACE_CHARACTER:e===s1.NULL?s3.NULL_CHARACTER:s3.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(s3.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=ia.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?s4.Attribute:s4.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===ia.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===ia.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===ia.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case ia.DATA:this._stateData(e);break;case ia.RCDATA:this._stateRcdata(e);break;case ia.RAWTEXT:this._stateRawtext(e);break;case ia.SCRIPT_DATA:this._stateScriptData(e);break;case ia.PLAINTEXT:this._statePlaintext(e);break;case ia.TAG_OPEN:this._stateTagOpen(e);break;case ia.END_TAG_OPEN:this._stateEndTagOpen(e);break;case ia.TAG_NAME:this._stateTagName(e);break;case ia.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case ia.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case ia.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case ia.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case ia.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case ia.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case ia.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case ia.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case ia.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case ia.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case ia.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case ia.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case ia.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case ia.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case ia.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case ia.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case ia.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case ia.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case ia.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case ia.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case ia.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case ia.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case ia.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case ia.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case ia.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case ia.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case ia.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case ia.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case ia.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case ia.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case ia.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case ia.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case ia.BOGUS_COMMENT:this._stateBogusComment(e);break;case ia.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case ia.COMMENT_START:this._stateCommentStart(e);break;case ia.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case ia.COMMENT:this._stateComment(e);break;case ia.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case ia.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case ia.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case ia.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case ia.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case ia.COMMENT_END:this._stateCommentEnd(e);break;case ia.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case ia.DOCTYPE:this._stateDoctype(e);break;case ia.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case ia.DOCTYPE_NAME:this._stateDoctypeName(e);break;case ia.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case ia.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case ia.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case ia.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case ia.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case ia.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case ia.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case ia.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case ia.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case ia.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case ia.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case ia.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case ia.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case ia.CDATA_SECTION:this._stateCdataSection(e);break;case ia.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case ia.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case ia.CHARACTER_REFERENCE:this._stateCharacterReference();break;case ia.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;default:throw Error("Unknown state")}}_stateData(e){switch(e){case s1.LESS_THAN_SIGN:this.state=ia.TAG_OPEN;break;case s1.AMPERSAND:this._startCharacterReference();break;case s1.NULL:this._err(s5.unexpectedNullCharacter),this._emitCodePoint(e);break;case s1.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case s1.AMPERSAND:this._startCharacterReference();break;case s1.LESS_THAN_SIGN:this.state=ia.RCDATA_LESS_THAN_SIGN;break;case s1.NULL:this._err(s5.unexpectedNullCharacter),this._emitChars("�");break;case s1.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case s1.LESS_THAN_SIGN:this.state=ia.RAWTEXT_LESS_THAN_SIGN;break;case s1.NULL:this._err(s5.unexpectedNullCharacter),this._emitChars("�");break;case s1.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case s1.LESS_THAN_SIGN:this.state=ia.SCRIPT_DATA_LESS_THAN_SIGN;break;case s1.NULL:this._err(s5.unexpectedNullCharacter),this._emitChars("�");break;case s1.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case s1.NULL:this._err(s5.unexpectedNullCharacter),this._emitChars("�");break;case s1.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(eu(e))this._createStartTagToken(),this.state=ia.TAG_NAME,this._stateTagName(e);else switch(e){case s1.EXCLAMATION_MARK:this.state=ia.MARKUP_DECLARATION_OPEN;break;case s1.SOLIDUS:this.state=ia.END_TAG_OPEN;break;case s1.QUESTION_MARK:this._err(s5.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=ia.BOGUS_COMMENT,this._stateBogusComment(e);break;case s1.EOF:this._err(s5.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(s5.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=ia.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(eu(e))this._createEndTagToken(),this.state=ia.TAG_NAME,this._stateTagName(e);else switch(e){case s1.GREATER_THAN_SIGN:this._err(s5.missingEndTagName),this.state=ia.DATA;break;case s1.EOF:this._err(s5.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break;default:this._err(s5.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=ia.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){let t=this.currentToken;switch(e){case s1.SPACE:case s1.LINE_FEED:case s1.TABULATION:case s1.FORM_FEED:this.state=ia.BEFORE_ATTRIBUTE_NAME;break;case s1.SOLIDUS:this.state=ia.SELF_CLOSING_START_TAG;break;case s1.GREATER_THAN_SIGN:this.state=ia.DATA,this.emitCurrentTagToken();break;case s1.NULL:this._err(s5.unexpectedNullCharacter),t.tagName+="�";break;case s1.EOF:this._err(s5.eofInTag),this._emitEOFToken();break;default:t.tagName+=String.fromCodePoint(ec(e)?e+32:e)}}_stateRcdataLessThanSign(e){e===s1.SOLIDUS?this.state=ia.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=ia.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){eu(e)?(this.state=ia.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars("</"),this.state=ia.RCDATA,this._stateRcdata(e))}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();switch(this._createEndTagToken(),this.currentToken.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case s1.SPACE:case s1.LINE_FEED:case s1.TABULATION:case s1.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=ia.BEFORE_ATTRIBUTE_NAME,!1;case s1.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=ia.SELF_CLOSING_START_TAG,!1;case s1.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=ia.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=ia.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===s1.SOLIDUS?this.state=ia.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=ia.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){eu(e)?(this.state=ia.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars("</"),this.state=ia.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=ia.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case s1.SOLIDUS:this.state=ia.SCRIPT_DATA_END_TAG_OPEN;break;case s1.EXCLAMATION_MARK:this.state=ia.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break;default:this._emitChars("<"),this.state=ia.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){eu(e)?(this.state=ia.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars("</"),this.state=ia.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=ia.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===s1.HYPHEN_MINUS?(this.state=ia.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=ia.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===s1.HYPHEN_MINUS?(this.state=ia.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=ia.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case s1.HYPHEN_MINUS:this.state=ia.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break;case s1.LESS_THAN_SIGN:this.state=ia.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case s1.NULL:this._err(s5.unexpectedNullCharacter),this._emitChars("�");break;case s1.EOF:this._err(s5.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case s1.HYPHEN_MINUS:this.state=ia.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break;case s1.LESS_THAN_SIGN:this.state=ia.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case s1.NULL:this._err(s5.unexpectedNullCharacter),this.state=ia.SCRIPT_DATA_ESCAPED,this._emitChars("�");break;case s1.EOF:this._err(s5.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=ia.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case s1.HYPHEN_MINUS:this._emitChars("-");break;case s1.LESS_THAN_SIGN:this.state=ia.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case s1.GREATER_THAN_SIGN:this.state=ia.SCRIPT_DATA,this._emitChars(">");break;case s1.NULL:this._err(s5.unexpectedNullCharacter),this.state=ia.SCRIPT_DATA_ESCAPED,this._emitChars("�");break;case s1.EOF:this._err(s5.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=ia.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===s1.SOLIDUS?this.state=ia.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:eu(e)?(this._emitChars("<"),this.state=ia.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=ia.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){eu(e)?(this.state=ia.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("</"),this.state=ia.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=ia.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(V.SCRIPT,!1)&&ep(this.preprocessor.peek(V.SCRIPT.length))){this._emitCodePoint(e);for(let e=0;e<V.SCRIPT.length;e++)this._emitCodePoint(this._consume());this.state=ia.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=ia.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case s1.HYPHEN_MINUS:this.state=ia.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break;case s1.LESS_THAN_SIGN:this.state=ia.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case s1.NULL:this._err(s5.unexpectedNullCharacter),this._emitChars("�");break;case s1.EOF:this._err(s5.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case s1.HYPHEN_MINUS:this.state=ia.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break;case s1.LESS_THAN_SIGN:this.state=ia.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case s1.NULL:this._err(s5.unexpectedNullCharacter),this.state=ia.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars("�");break;case s1.EOF:this._err(s5.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=ia.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case s1.HYPHEN_MINUS:this._emitChars("-");break;case s1.LESS_THAN_SIGN:this.state=ia.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case s1.GREATER_THAN_SIGN:this.state=ia.SCRIPT_DATA,this._emitChars(">");break;case s1.NULL:this._err(s5.unexpectedNullCharacter),this.state=ia.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars("�");break;case s1.EOF:this._err(s5.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=ia.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===s1.SOLIDUS?(this.state=ia.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=ia.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(V.SCRIPT,!1)&&ep(this.preprocessor.peek(V.SCRIPT.length))){this._emitCodePoint(e);for(let e=0;e<V.SCRIPT.length;e++)this._emitCodePoint(this._consume());this.state=ia.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=ia.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case s1.SPACE:case s1.LINE_FEED:case s1.TABULATION:case s1.FORM_FEED:break;case s1.SOLIDUS:case s1.GREATER_THAN_SIGN:case s1.EOF:this.state=ia.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case s1.EQUALS_SIGN:this._err(s5.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=ia.ATTRIBUTE_NAME;break;default:this._createAttr(""),this.state=ia.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case s1.SPACE:case s1.LINE_FEED:case s1.TABULATION:case s1.FORM_FEED:case s1.SOLIDUS:case s1.GREATER_THAN_SIGN:case s1.EOF:this._leaveAttrName(),this.state=ia.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case s1.EQUALS_SIGN:this._leaveAttrName(),this.state=ia.BEFORE_ATTRIBUTE_VALUE;break;case s1.QUOTATION_MARK:case s1.APOSTROPHE:case s1.LESS_THAN_SIGN:this._err(s5.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break;case s1.NULL:this._err(s5.unexpectedNullCharacter),this.currentAttr.name+="�";break;default:this.currentAttr.name+=String.fromCodePoint(ec(e)?e+32:e)}}_stateAfterAttributeName(e){switch(e){case s1.SPACE:case s1.LINE_FEED:case s1.TABULATION:case s1.FORM_FEED:break;case s1.SOLIDUS:this.state=ia.SELF_CLOSING_START_TAG;break;case s1.EQUALS_SIGN:this.state=ia.BEFORE_ATTRIBUTE_VALUE;break;case s1.GREATER_THAN_SIGN:this.state=ia.DATA,this.emitCurrentTagToken();break;case s1.EOF:this._err(s5.eofInTag),this._emitEOFToken();break;default:this._createAttr(""),this.state=ia.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case s1.SPACE:case s1.LINE_FEED:case s1.TABULATION:case s1.FORM_FEED:break;case s1.QUOTATION_MARK:this.state=ia.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case s1.APOSTROPHE:this.state=ia.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case s1.GREATER_THAN_SIGN:this._err(s5.missingAttributeValue),this.state=ia.DATA,this.emitCurrentTagToken();break;default:this.state=ia.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case s1.QUOTATION_MARK:this.state=ia.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case s1.AMPERSAND:this._startCharacterReference();break;case s1.NULL:this._err(s5.unexpectedNullCharacter),this.currentAttr.value+="�";break;case s1.EOF:this._err(s5.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case s1.APOSTROPHE:this.state=ia.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case s1.AMPERSAND:this._startCharacterReference();break;case s1.NULL:this._err(s5.unexpectedNullCharacter),this.currentAttr.value+="�";break;case s1.EOF:this._err(s5.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case s1.SPACE:case s1.LINE_FEED:case s1.TABULATION:case s1.FORM_FEED:this._leaveAttrValue(),this.state=ia.BEFORE_ATTRIBUTE_NAME;break;case s1.AMPERSAND:this._startCharacterReference();break;case s1.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=ia.DATA,this.emitCurrentTagToken();break;case s1.NULL:this._err(s5.unexpectedNullCharacter),this.currentAttr.value+="�";break;case s1.QUOTATION_MARK:case s1.APOSTROPHE:case s1.LESS_THAN_SIGN:case s1.EQUALS_SIGN:case s1.GRAVE_ACCENT:this._err(s5.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break;case s1.EOF:this._err(s5.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case s1.SPACE:case s1.LINE_FEED:case s1.TABULATION:case s1.FORM_FEED:this._leaveAttrValue(),this.state=ia.BEFORE_ATTRIBUTE_NAME;break;case s1.SOLIDUS:this._leaveAttrValue(),this.state=ia.SELF_CLOSING_START_TAG;break;case s1.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=ia.DATA,this.emitCurrentTagToken();break;case s1.EOF:this._err(s5.eofInTag),this._emitEOFToken();break;default:this._err(s5.missingWhitespaceBetweenAttributes),this.state=ia.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case s1.GREATER_THAN_SIGN:this.currentToken.selfClosing=!0,this.state=ia.DATA,this.emitCurrentTagToken();break;case s1.EOF:this._err(s5.eofInTag),this._emitEOFToken();break;default:this._err(s5.unexpectedSolidusInTag),this.state=ia.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){let t=this.currentToken;switch(e){case s1.GREATER_THAN_SIGN:this.state=ia.DATA,this.emitCurrentComment(t);break;case s1.EOF:this.emitCurrentComment(t),this._emitEOFToken();break;case s1.NULL:this._err(s5.unexpectedNullCharacter),t.data+="�";break;default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch(V.DASH_DASH,!0)?(this._createCommentToken(V.DASH_DASH.length+1),this.state=ia.COMMENT_START):this._consumeSequenceIfMatch(V.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(V.DOCTYPE.length+1),this.state=ia.DOCTYPE):this._consumeSequenceIfMatch(V.CDATA_START,!0)?this.inForeignNode?this.state=ia.CDATA_SECTION:(this._err(s5.cdataInHtmlContent),this._createCommentToken(V.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=ia.BOGUS_COMMENT):this._ensureHibernation()||(this._err(s5.incorrectlyOpenedComment),this._createCommentToken(2),this.state=ia.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case s1.HYPHEN_MINUS:this.state=ia.COMMENT_START_DASH;break;case s1.GREATER_THAN_SIGN:{this._err(s5.abruptClosingOfEmptyComment),this.state=ia.DATA;let e=this.currentToken;this.emitCurrentComment(e);break}default:this.state=ia.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){let t=this.currentToken;switch(e){case s1.HYPHEN_MINUS:this.state=ia.COMMENT_END;break;case s1.GREATER_THAN_SIGN:this._err(s5.abruptClosingOfEmptyComment),this.state=ia.DATA,this.emitCurrentComment(t);break;case s1.EOF:this._err(s5.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=ia.COMMENT,this._stateComment(e)}}_stateComment(e){let t=this.currentToken;switch(e){case s1.HYPHEN_MINUS:this.state=ia.COMMENT_END_DASH;break;case s1.LESS_THAN_SIGN:t.data+="<",this.state=ia.COMMENT_LESS_THAN_SIGN;break;case s1.NULL:this._err(s5.unexpectedNullCharacter),t.data+="�";break;case s1.EOF:this._err(s5.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){let t=this.currentToken;switch(e){case s1.EXCLAMATION_MARK:t.data+="!",this.state=ia.COMMENT_LESS_THAN_SIGN_BANG;break;case s1.LESS_THAN_SIGN:t.data+="<";break;default:this.state=ia.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===s1.HYPHEN_MINUS?this.state=ia.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=ia.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===s1.HYPHEN_MINUS?this.state=ia.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=ia.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==s1.GREATER_THAN_SIGN&&e!==s1.EOF&&this._err(s5.nestedComment),this.state=ia.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){let t=this.currentToken;switch(e){case s1.HYPHEN_MINUS:this.state=ia.COMMENT_END;break;case s1.EOF:this._err(s5.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=ia.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){let t=this.currentToken;switch(e){case s1.GREATER_THAN_SIGN:this.state=ia.DATA,this.emitCurrentComment(t);break;case s1.EXCLAMATION_MARK:this.state=ia.COMMENT_END_BANG;break;case s1.HYPHEN_MINUS:t.data+="-";break;case s1.EOF:this._err(s5.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--",this.state=ia.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){let t=this.currentToken;switch(e){case s1.HYPHEN_MINUS:t.data+="--!",this.state=ia.COMMENT_END_DASH;break;case s1.GREATER_THAN_SIGN:this._err(s5.incorrectlyClosedComment),this.state=ia.DATA,this.emitCurrentComment(t);break;case s1.EOF:this._err(s5.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--!",this.state=ia.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case s1.SPACE:case s1.LINE_FEED:case s1.TABULATION:case s1.FORM_FEED:this.state=ia.BEFORE_DOCTYPE_NAME;break;case s1.GREATER_THAN_SIGN:this.state=ia.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break;case s1.EOF:{this._err(s5.eofInDoctype),this._createDoctypeToken(null);let e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._err(s5.missingWhitespaceBeforeDoctypeName),this.state=ia.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(ec(e))this._createDoctypeToken(String.fromCharCode(e+32)),this.state=ia.DOCTYPE_NAME;else switch(e){case s1.SPACE:case s1.LINE_FEED:case s1.TABULATION:case s1.FORM_FEED:break;case s1.NULL:this._err(s5.unexpectedNullCharacter),this._createDoctypeToken("�"),this.state=ia.DOCTYPE_NAME;break;case s1.GREATER_THAN_SIGN:{this._err(s5.missingDoctypeName),this._createDoctypeToken(null);let e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=ia.DATA;break}case s1.EOF:{this._err(s5.eofInDoctype),this._createDoctypeToken(null);let e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=ia.DOCTYPE_NAME}}_stateDoctypeName(e){let t=this.currentToken;switch(e){case s1.SPACE:case s1.LINE_FEED:case s1.TABULATION:case s1.FORM_FEED:this.state=ia.AFTER_DOCTYPE_NAME;break;case s1.GREATER_THAN_SIGN:this.state=ia.DATA,this.emitCurrentDoctype(t);break;case s1.NULL:this._err(s5.unexpectedNullCharacter),t.name+="�";break;case s1.EOF:this._err(s5.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.name+=String.fromCodePoint(ec(e)?e+32:e)}}_stateAfterDoctypeName(e){let t=this.currentToken;switch(e){case s1.SPACE:case s1.LINE_FEED:case s1.TABULATION:case s1.FORM_FEED:break;case s1.GREATER_THAN_SIGN:this.state=ia.DATA,this.emitCurrentDoctype(t);break;case s1.EOF:this._err(s5.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._consumeSequenceIfMatch(V.PUBLIC,!1)?this.state=ia.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(V.SYSTEM,!1)?this.state=ia.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(s5.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=ia.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){let t=this.currentToken;switch(e){case s1.SPACE:case s1.LINE_FEED:case s1.TABULATION:case s1.FORM_FEED:this.state=ia.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case s1.QUOTATION_MARK:this._err(s5.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=ia.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case s1.APOSTROPHE:this._err(s5.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=ia.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case s1.GREATER_THAN_SIGN:this._err(s5.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=ia.DATA,this.emitCurrentDoctype(t);break;case s1.EOF:this._err(s5.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(s5.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=ia.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){let t=this.currentToken;switch(e){case s1.SPACE:case s1.LINE_FEED:case s1.TABULATION:case s1.FORM_FEED:break;case s1.QUOTATION_MARK:t.publicId="",this.state=ia.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case s1.APOSTROPHE:t.publicId="",this.state=ia.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case s1.GREATER_THAN_SIGN:this._err(s5.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=ia.DATA,this.emitCurrentDoctype(t);break;case s1.EOF:this._err(s5.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(s5.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=ia.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){let t=this.currentToken;switch(e){case s1.QUOTATION_MARK:this.state=ia.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case s1.NULL:this._err(s5.unexpectedNullCharacter),t.publicId+="�";break;case s1.GREATER_THAN_SIGN:this._err(s5.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=ia.DATA;break;case s1.EOF:this._err(s5.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){let t=this.currentToken;switch(e){case s1.APOSTROPHE:this.state=ia.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case s1.NULL:this._err(s5.unexpectedNullCharacter),t.publicId+="�";break;case s1.GREATER_THAN_SIGN:this._err(s5.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=ia.DATA;break;case s1.EOF:this._err(s5.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){let t=this.currentToken;switch(e){case s1.SPACE:case s1.LINE_FEED:case s1.TABULATION:case s1.FORM_FEED:this.state=ia.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case s1.GREATER_THAN_SIGN:this.state=ia.DATA,this.emitCurrentDoctype(t);break;case s1.QUOTATION_MARK:this._err(s5.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=ia.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case s1.APOSTROPHE:this._err(s5.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=ia.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case s1.EOF:this._err(s5.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(s5.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=ia.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){let t=this.currentToken;switch(e){case s1.SPACE:case s1.LINE_FEED:case s1.TABULATION:case s1.FORM_FEED:break;case s1.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=ia.DATA;break;case s1.QUOTATION_MARK:t.systemId="",this.state=ia.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case s1.APOSTROPHE:t.systemId="",this.state=ia.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case s1.EOF:this._err(s5.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(s5.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=ia.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){let t=this.currentToken;switch(e){case s1.SPACE:case s1.LINE_FEED:case s1.TABULATION:case s1.FORM_FEED:this.state=ia.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case s1.QUOTATION_MARK:this._err(s5.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=ia.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case s1.APOSTROPHE:this._err(s5.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=ia.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case s1.GREATER_THAN_SIGN:this._err(s5.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=ia.DATA,this.emitCurrentDoctype(t);break;case s1.EOF:this._err(s5.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(s5.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=ia.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){let t=this.currentToken;switch(e){case s1.SPACE:case s1.LINE_FEED:case s1.TABULATION:case s1.FORM_FEED:break;case s1.QUOTATION_MARK:t.systemId="",this.state=ia.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case s1.APOSTROPHE:t.systemId="",this.state=ia.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case s1.GREATER_THAN_SIGN:this._err(s5.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=ia.DATA,this.emitCurrentDoctype(t);break;case s1.EOF:this._err(s5.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(s5.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=ia.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){let t=this.currentToken;switch(e){case s1.QUOTATION_MARK:this.state=ia.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case s1.NULL:this._err(s5.unexpectedNullCharacter),t.systemId+="�";break;case s1.GREATER_THAN_SIGN:this._err(s5.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=ia.DATA;break;case s1.EOF:this._err(s5.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){let t=this.currentToken;switch(e){case s1.APOSTROPHE:this.state=ia.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case s1.NULL:this._err(s5.unexpectedNullCharacter),t.systemId+="�";break;case s1.GREATER_THAN_SIGN:this._err(s5.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=ia.DATA;break;case s1.EOF:this._err(s5.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){let t=this.currentToken;switch(e){case s1.SPACE:case s1.LINE_FEED:case s1.TABULATION:case s1.FORM_FEED:break;case s1.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=ia.DATA;break;case s1.EOF:this._err(s5.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(s5.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=ia.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){let t=this.currentToken;switch(e){case s1.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=ia.DATA;break;case s1.NULL:this._err(s5.unexpectedNullCharacter);break;case s1.EOF:this.emitCurrentDoctype(t),this._emitEOFToken()}}_stateCdataSection(e){switch(e){case s1.RIGHT_SQUARE_BRACKET:this.state=ia.CDATA_SECTION_BRACKET;break;case s1.EOF:this._err(s5.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===s1.RIGHT_SQUARE_BRACKET?this.state=ia.CDATA_SECTION_END:(this._emitChars("]"),this.state=ia.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case s1.GREATER_THAN_SIGN:this.state=ia.DATA;break;case s1.RIGHT_SQUARE_BRACKET:this._emitChars("]");break;default:this._emitChars("]]"),this.state=ia.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(){let e=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(e<0)if(this.preprocessor.lastChunkWritten)e=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}0===e?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(s1.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&ed(this.preprocessor.peek(1))?ia.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(e){ed(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===s1.SEMICOLON&&this._err(s5.unknownNamedCharacterReference),this.state=this.returnState,this._callState(e))}}let ef=new Set([ir.DD,ir.DT,ir.LI,ir.OPTGROUP,ir.OPTION,ir.P,ir.RB,ir.RP,ir.RT,ir.RTC]),eE=new Set([...ef,ir.CAPTION,ir.COLGROUP,ir.TBODY,ir.TD,ir.TFOOT,ir.TH,ir.THEAD,ir.TR]),eT=new Set([ir.APPLET,ir.CAPTION,ir.HTML,ir.MARQUEE,ir.OBJECT,ir.TABLE,ir.TD,ir.TEMPLATE,ir.TH]),eg=new Set([...eT,ir.OL,ir.UL]),eA=new Set([...eT,ir.BUTTON]),e_=new Set([ir.ANNOTATION_XML,ir.MI,ir.MN,ir.MO,ir.MS,ir.MTEXT]),eb=new Set([ir.DESC,ir.FOREIGN_OBJECT,ir.TITLE]),ek=new Set([ir.TR,ir.TEMPLATE,ir.HTML]),eC=new Set([ir.TBODY,ir.TFOOT,ir.THEAD,ir.TEMPLATE,ir.HTML]),eN=new Set([ir.TABLE,ir.TEMPLATE,ir.HTML]),eI=new Set([ir.TD,ir.TH]);class eS{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,r){this.treeAdapter=t,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=ir.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===ir.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===s9.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){let e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){let r=this._indexOf(e);this.items[r]=t,r===this.stackTop&&(this.current=t)}insertAfter(e,t,r){let n=this._indexOf(e)+1;this.items.splice(n,0,t),this.tagIDs.splice(n,0,r),this.stackTop++,n===this.stackTop&&this._updateCurrentElement(),this.current&&void 0!==this.currentTagId&&this.handler.onItemPush(this.current,this.currentTagId,n===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do t=this.tagIDs.lastIndexOf(e,t-1);while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==s9.HTML);this.shortenToLength(Math.max(t,0))}shortenToLength(e){for(;this.stackTop>=e;){let t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop<e)}}popUntilElementPopped(e){let t=this._indexOf(e);this.shortenToLength(Math.max(t,0))}popUntilPopped(e,t){let r=this._indexOfTagNames(e,t);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(eo,s9.HTML)}popUntilTableCellPopped(){this.popUntilPopped(eI,s9.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,t){for(let r=this.stackTop;r>=0;r--)if(e.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===t)return r;return -1}clearBackTo(e,t){let r=this._indexOfTagNames(e,t);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(eN,s9.HTML)}clearBackToTableBodyContext(){this.clearBackTo(eC,s9.HTML)}clearBackToTableRowContext(){this.clearBackTo(ek,s9.HTML)}remove(e){let t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===ir.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.tagIDs[0]===ir.HTML}hasInDynamicScope(e,t){for(let r=this.stackTop;r>=0;r--){let n=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case s9.HTML:if(n===e)return!0;if(t.has(n))return!1;break;case s9.SVG:if(eb.has(n))return!1;break;case s9.MATHML:if(e_.has(n))return!1}}return!0}hasInScope(e){return this.hasInDynamicScope(e,eT)}hasInListItemScope(e){return this.hasInDynamicScope(e,eg)}hasInButtonScope(e){return this.hasInDynamicScope(e,eA)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){let t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case s9.HTML:if(eo.has(t))return!0;if(eT.has(t))return!1;break;case s9.SVG:if(eb.has(t))return!1;break;case s9.MATHML:if(e_.has(t))return!1}}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===s9.HTML)switch(this.tagIDs[t]){case e:return!0;case ir.TABLE:case ir.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===s9.HTML)switch(this.tagIDs[e]){case ir.TBODY:case ir.THEAD:case ir.TFOOT:return!0;case ir.TABLE:case ir.HTML:return!1}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===s9.HTML)switch(this.tagIDs[t]){case e:return!0;case ir.OPTION:case ir.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;void 0!==this.currentTagId&&ef.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;void 0!==this.currentTagId&&eE.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;void 0!==this.currentTagId&&this.currentTagId!==e&&eE.has(this.currentTagId);)this.pop()}}!function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"}(is||(is={}));let ey={type:is.Marker};class eD{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){let r=[],n=t.length,a=this.treeAdapter.getTagName(e),s=this.treeAdapter.getNamespaceURI(e);for(let e=0;e<this.entries.length;e++){let t=this.entries[e];if(t.type===is.Marker)break;let{element:i}=t;if(this.treeAdapter.getTagName(i)===a&&this.treeAdapter.getNamespaceURI(i)===s){let t=this.treeAdapter.getAttrList(i);t.length===n&&r.push({idx:e,attrs:t})}}return r}_ensureNoahArkCondition(e){if(this.entries.length<3)return;let t=this.treeAdapter.getAttrList(e),r=this._getNoahArkConditionCandidates(e,t);if(r.length<3)return;let n=new Map(t.map(e=>[e.name,e.value])),a=0;for(let e=0;e<r.length;e++){let t=r[e];t.attrs.every(e=>n.get(e.name)===e.value)&&(a+=1)>=3&&this.entries.splice(t.idx,1)}}insertMarker(){this.entries.unshift(ey)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:is.Element,element:e,token:t})}insertElementAfterBookmark(e,t){let r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:is.Element,element:e,token:t})}removeEntry(e){let t=this.entries.indexOf(e);-1!==t&&this.entries.splice(t,1)}clearToLastMarker(){let e=this.entries.indexOf(ey);-1===e?this.entries.length=0:this.entries.splice(0,e+1)}getElementEntryInScopeWithTagName(e){let t=this.entries.find(t=>t.type===is.Marker||this.treeAdapter.getTagName(t.element)===e);return t&&t.type===is.Element?t:null}getElementEntry(e){return this.entries.find(t=>t.type===is.Element&&t.element===e)}}let ex={createDocument:()=>({nodeName:"#document",mode:ie.NO_QUIRKS,childNodes:[]}),createDocumentFragment:()=>({nodeName:"#document-fragment",childNodes:[]}),createElement:(e,t,r)=>({nodeName:e,tagName:e,attrs:r,namespaceURI:t,childNodes:[],parentNode:null}),createCommentNode:e=>({nodeName:"#comment",data:e,parentNode:null}),createTextNode:e=>({nodeName:"#text",value:e,parentNode:null}),appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,r){let n=e.childNodes.indexOf(r);e.childNodes.splice(n,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent:e=>e.content,setDocumentType(e,t,r,n){let a=e.childNodes.find(e=>"#documentType"===e.nodeName);a?(a.name=t,a.publicId=r,a.systemId=n):ex.appendChild(e,{nodeName:"#documentType",name:t,publicId:r,systemId:n,parentNode:null})},setDocumentMode(e,t){e.mode=t},getDocumentMode:e=>e.mode,detachNode(e){if(e.parentNode){let t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){let r=e.childNodes[e.childNodes.length-1];if(ex.isTextNode(r)){r.value+=t;return}}ex.appendChild(e,ex.createTextNode(t))},insertTextBefore(e,t,r){let n=e.childNodes[e.childNodes.indexOf(r)-1];n&&ex.isTextNode(n)?n.value+=t:ex.insertBefore(e,ex.createTextNode(t),r)},adoptAttributes(e,t){let r=new Set(e.attrs.map(e=>e.name));for(let n=0;n<t.length;n++)r.has(t[n].name)||e.attrs.push(t[n])},getFirstChild:e=>e.childNodes[0],getChildNodes:e=>e.childNodes,getParentNode:e=>e.parentNode,getAttrList:e=>e.attrs,getTagName:e=>e.tagName,getNamespaceURI:e=>e.namespaceURI,getTextNodeContent:e=>e.value,getCommentNodeContent:e=>e.data,getDocumentTypeNodeName:e=>e.name,getDocumentTypeNodePublicId:e=>e.publicId,getDocumentTypeNodeSystemId:e=>e.systemId,isTextNode:e=>"#text"===e.nodeName,isCommentNode:e=>"#comment"===e.nodeName,isDocumentTypeNode:e=>"#documentType"===e.nodeName,isElementNode:e=>Object.prototype.hasOwnProperty.call(e,"tagName"),setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation:e=>e.sourceCodeLocation,updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},eR="html",eL=["+//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//"],eO=[...eL,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],ew=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),eM=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],eP=[...eM,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function ev(e,t){return t.some(t=>e.startsWith(t))}let eB={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},eF=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])),eH=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:s9.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:s9.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:s9.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:s9.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:s9.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:s9.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:s9.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:s9.XML}],["xml:space",{prefix:"xml",name:"space",namespace:s9.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:s9.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:s9.XMLNS}]]),eU=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])),eG=new Set([ir.B,ir.BIG,ir.BLOCKQUOTE,ir.BODY,ir.BR,ir.CENTER,ir.CODE,ir.DD,ir.DIV,ir.DL,ir.DT,ir.EM,ir.EMBED,ir.H1,ir.H2,ir.H3,ir.H4,ir.H5,ir.H6,ir.HEAD,ir.HR,ir.I,ir.IMG,ir.LI,ir.LISTING,ir.MENU,ir.META,ir.NOBR,ir.OL,ir.P,ir.PRE,ir.RUBY,ir.S,ir.SMALL,ir.SPAN,ir.STRONG,ir.STRIKE,ir.SUB,ir.SUP,ir.TABLE,ir.TT,ir.U,ir.UL,ir.VAR]);function ej(e){for(let t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name){e.attrs[t].name="definitionURL";break}}function e$(e){for(let t=0;t<e.attrs.length;t++){let r=eF.get(e.attrs[t].name);null!=r&&(e.attrs[t].name=r)}}function eY(e){for(let t=0;t<e.attrs.length;t++){let r=eH.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(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"}(ii||(ii={}));let ez={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},eq=new Set([ir.TABLE,ir.TBODY,ir.TFOOT,ir.THEAD,ir.TR]),eV={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:ex,onParseError:null};class eW{constructor(e,t,r=null,n=null){this.fragmentContext=r,this.scriptHandler=n,this.currentToken=null,this.stopped=!1,this.insertionMode=ii.INITIAL,this.originalInsertionMode=ii.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={...eV,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=null!=t?t:this.treeAdapter.createDocument(),this.tokenizer=new em(this.options,this),this.activeFormattingElements=new eD(this.treeAdapter),this.fragmentContextID=r?ea(this.treeAdapter.getTagName(r)):ir.UNKNOWN,this._setContextModes(null!=r?r:this.document,this.fragmentContextID),this.openElements=new eS(this.document,this.treeAdapter,this)}static parse(e,t){let r=new this(t);return r.tokenizer.write(e,!0),r.document}static getFragmentParser(e,t){let r={...eV,...t};null!=e||(e=r.treeAdapter.createElement(it.TEMPLATE,s9.HTML,[]));let n=r.treeAdapter.createElement("documentmock",s9.HTML,[]),a=new this(r,n,e);return a.fragmentContextID===ir.TEMPLATE&&a.tmplInsertionModeStack.unshift(ii.IN_TEMPLATE),a._initTokenizerForFragmentParsing(),a._insertFakeRootElement(),a._resetInsertionMode(),a._findFormInFragmentContext(),a}getFragment(){let e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}_err(e,t,r){var n;if(!this.onParseError)return;let a=null!=(n=e.location)?n:ez,s={code:t,startLine:a.startLine,startCol:a.startCol,startOffset:a.startOffset,endLine:r?a.startLine:a.endLine,endCol:r?a.startCol:a.endCol,endOffset:r?a.startOffset:a.endOffset};this.onParseError(s)}onItemPush(e,t,r){var n,a;null==(a=(n=this.treeAdapter).onItemPush)||a.call(n,e),r&&this.openElements.stackTop>0&&this._setContextModes(e,t)}onItemPop(e,t){var r,n;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),null==(n=(r=this.treeAdapter).onItemPop)||n.call(r,e,this.openElements.current),t){let e,t;0===this.openElements.stackTop&&this.fragmentContext?(e=this.fragmentContext,t=this.fragmentContextID):{current:e,currentTagId:t}=this.openElements,this._setContextModes(e,t)}}_setContextModes(e,t){let r=e===this.document||e&&this.treeAdapter.getNamespaceURI(e)===s9.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&void 0!==e&&void 0!==t&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,s9.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=ii.TEXT}switchToPlaintextParsing(){this.insertionMode=ii.TEXT,this.originalInsertionMode=ii.IN_BODY,this.tokenizer.state=el.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===it.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===s9.HTML)switch(this.fragmentContextID){case ir.TITLE:case ir.TEXTAREA:this.tokenizer.state=el.RCDATA;break;case ir.STYLE:case ir.XMP:case ir.IFRAME:case ir.NOEMBED:case ir.NOFRAMES:case ir.NOSCRIPT:this.tokenizer.state=el.RAWTEXT;break;case ir.SCRIPT:this.tokenizer.state=el.SCRIPT_DATA;break;case ir.PLAINTEXT:this.tokenizer.state=el.PLAINTEXT}}_setDocumentType(e){let t=e.name||"",r=e.publicId||"",n=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,r,n),e.location){let t=this.treeAdapter.getChildNodes(this.document).find(e=>this.treeAdapter.isDocumentTypeNode(e));t&&this.treeAdapter.setNodeSourceCodeLocation(t,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){let r=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{let t=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(null!=t?t:this.document,e)}}_appendElement(e,t){let r=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(r,e.location)}_insertElement(e,t){let r=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(r,e.location),this.openElements.push(r,e.tagID)}_insertFakeElement(e,t){let r=this.treeAdapter.createElement(e,s9.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,t)}_insertTemplate(e){let t=this.treeAdapter.createElement(e.tagName,s9.HTML,e.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,r),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){let e=this.treeAdapter.createElement(it.HTML,s9.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,ir.HTML)}_appendCommentNode(e,t){let r=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,e.location)}_insertCharacters(e){let t,r;if(this._shouldFosterParentOnInsertion()?({parent:t,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(t,e.chars,r):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;let n=this.treeAdapter.getChildNodes(t),a=r?n.lastIndexOf(r):n.length,s=n[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){let{endLine:t,endCol:r,endOffset:n}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:t,endCol:r,endOffset:n})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,e.location)}_adoptNodes(e,t){for(let r=this.treeAdapter.getFirstChild(e);r;r=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(t,r)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){let r=t.location,n=this.treeAdapter.getTagName(e),a=t.type===s3.END_TAG&&n===t.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,a)}}shouldProcessStartTagTokenInForeignContent(e){let t,r;return!!this.currentNotInHTML&&(0===this.openElements.stackTop&&this.fragmentContext?(t=this.fragmentContext,r=this.fragmentContextID):{current:t,currentTagId:r}=this.openElements,(e.tagID!==ir.SVG||this.treeAdapter.getTagName(t)!==it.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==s9.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===ir.MGLYPH||e.tagID===ir.MALIGNMARK)&&void 0!==r&&!this._isIntegrationPoint(r,t,s9.HTML)))}_processToken(e){switch(e.type){case s3.CHARACTER:this.onCharacter(e);break;case s3.NULL_CHARACTER:this.onNullCharacter(e);break;case s3.COMMENT:this.onComment(e);break;case s3.DOCTYPE:this.onDoctype(e);break;case s3.START_TAG:this._processStartTag(e);break;case s3.END_TAG:this.onEndTag(e);break;case s3.EOF:this.onEof(e);break;case s3.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,r){let n=this.treeAdapter.getNamespaceURI(t),a=this.treeAdapter.getAttrList(t);return(!r||r===s9.HTML)&&function(e,t,r){if(t===s9.MATHML&&e===ir.ANNOTATION_XML){for(let e=0;e<r.length;e++)if(r[e].name===s7.ENCODING){let t=r[e].value.toLowerCase();return t===eB.TEXT_HTML||t===eB.APPLICATION_XML}}return t===s9.SVG&&(e===ir.FOREIGN_OBJECT||e===ir.DESC||e===ir.TITLE)}(e,n,a)||(!r||r===s9.MATHML)&&n===s9.MATHML&&(e===ir.MI||e===ir.MO||e===ir.MN||e===ir.MS||e===ir.MTEXT)}_reconstructActiveFormattingElements(){let e=this.activeFormattingElements.entries.length;if(e){let t=this.activeFormattingElements.entries.findIndex(e=>e.type===is.Marker||this.openElements.contains(e.element)),r=-1===t?e-1:t-1;for(let e=r;e>=0;e--){let t=this.activeFormattingElements.entries[e];this._insertElement(t.token,this.treeAdapter.getNamespaceURI(t.element)),t.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=ii.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(ir.P),this.openElements.popUntilTagNamePopped(ir.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case ir.TR:this.insertionMode=ii.IN_ROW;return;case ir.TBODY:case ir.THEAD:case ir.TFOOT:this.insertionMode=ii.IN_TABLE_BODY;return;case ir.CAPTION:this.insertionMode=ii.IN_CAPTION;return;case ir.COLGROUP:this.insertionMode=ii.IN_COLUMN_GROUP;return;case ir.TABLE:this.insertionMode=ii.IN_TABLE;return;case ir.BODY:this.insertionMode=ii.IN_BODY;return;case ir.FRAMESET:this.insertionMode=ii.IN_FRAMESET;return;case ir.SELECT:return void this._resetInsertionModeForSelect(e);case ir.TEMPLATE:this.insertionMode=this.tmplInsertionModeStack[0];return;case ir.HTML:this.insertionMode=this.headElement?ii.AFTER_HEAD:ii.BEFORE_HEAD;return;case ir.TD:case ir.TH:if(e>0){this.insertionMode=ii.IN_CELL;return}break;case ir.HEAD:if(e>0){this.insertionMode=ii.IN_HEAD;return}}this.insertionMode=ii.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){let e=this.openElements.tagIDs[t];if(e===ir.TEMPLATE)break;if(e===ir.TABLE){this.insertionMode=ii.IN_SELECT_IN_TABLE;return}}this.insertionMode=ii.IN_SELECT}_isElementCausesFosterParenting(e){return eq.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&void 0!==this.openElements.currentTagId&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){let t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case ir.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===s9.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case ir.TABLE:{let r=this.treeAdapter.getParentNode(t);if(r)return{parent:r,beforeElement:t};return{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){let t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){return ei[this.treeAdapter.getNamespaceURI(e)].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){var t,r;return void(t=this,r=e,t._insertCharacters(r),t.framesetOk=!1)}switch(this.insertionMode){case ii.INITIAL:eZ(this,e);break;case ii.BEFORE_HTML:eJ(this,e);break;case ii.BEFORE_HEAD:e0(this,e);break;case ii.IN_HEAD:e3(this,e);break;case ii.IN_HEAD_NO_SCRIPT:e2(this,e);break;case ii.AFTER_HEAD:e8(this,e);break;case ii.IN_BODY:case ii.IN_CAPTION:case ii.IN_CELL:case ii.IN_TEMPLATE:e9(this,e);break;case ii.TEXT:case ii.IN_SELECT:case ii.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case ii.IN_TABLE:case ii.IN_TABLE_BODY:case ii.IN_ROW:to(this,e);break;case ii.IN_TABLE_TEXT:th(this,e);break;case ii.IN_COLUMN_GROUP:tE(this,e);break;case ii.AFTER_BODY:tI(this,e);break;case ii.AFTER_AFTER_BODY:tS(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){var t,r;return void(t=this,(r=e).chars="�",t._insertCharacters(r))}switch(this.insertionMode){case ii.INITIAL:eZ(this,e);break;case ii.BEFORE_HTML:eJ(this,e);break;case ii.BEFORE_HEAD:e0(this,e);break;case ii.IN_HEAD:e3(this,e);break;case ii.IN_HEAD_NO_SCRIPT:e2(this,e);break;case ii.AFTER_HEAD:e8(this,e);break;case ii.TEXT:this._insertCharacters(e);break;case ii.IN_TABLE:case ii.IN_TABLE_BODY:case ii.IN_ROW:to(this,e);break;case ii.IN_COLUMN_GROUP:tE(this,e);break;case ii.AFTER_BODY:tI(this,e);break;case ii.AFTER_AFTER_BODY:tS(this,e)}}onComment(e){var t,r,n,a;if(this.skipNextNewLine=!1,this.currentNotInHTML)return void eK(this,e);switch(this.insertionMode){case ii.INITIAL:case ii.BEFORE_HTML:case ii.BEFORE_HEAD:case ii.IN_HEAD:case ii.IN_HEAD_NO_SCRIPT:case ii.AFTER_HEAD:case ii.IN_BODY:case ii.IN_TABLE:case ii.IN_CAPTION:case ii.IN_COLUMN_GROUP:case ii.IN_TABLE_BODY:case ii.IN_ROW:case ii.IN_CELL:case ii.IN_SELECT:case ii.IN_SELECT_IN_TABLE:case ii.IN_TEMPLATE:case ii.IN_FRAMESET:case ii.AFTER_FRAMESET:eK(this,e);break;case ii.IN_TABLE_TEXT:tp(this,e);break;case ii.AFTER_BODY:t=this,r=e,t._appendCommentNode(r,t.openElements.items[0]);break;case ii.AFTER_AFTER_BODY:case ii.AFTER_AFTER_FRAMESET:n=this,a=e,n._appendCommentNode(a,n.document)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case ii.INITIAL:!function(e,t){e._setDocumentType(t);let r=t.forceQuirks?ie.QUIRKS:function(e){if(e.name!==eR)return ie.QUIRKS;let{systemId:t}=e;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return ie.QUIRKS;let{publicId:r}=e;if(null!==r){if(r=r.toLowerCase(),ew.has(r))return ie.QUIRKS;let e=null===t?eO:eL;if(ev(r,e))return ie.QUIRKS;if(ev(r,e=null===t?eM:eP))return ie.LIMITED_QUIRKS}return ie.NO_QUIRKS}(t);(t.name!==eR||null!==t.publicId||null!==t.systemId&&"about:legacy-compat"!==t.systemId)&&e._err(t,s5.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,r),e.insertionMode=ii.BEFORE_HTML}(this,e);break;case ii.BEFORE_HEAD:case ii.IN_HEAD:case ii.IN_HEAD_NO_SCRIPT:case ii.AFTER_HEAD:this._err(e,s5.misplacedDoctype);break;case ii.IN_TABLE_TEXT:tp(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,s5.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?function(e,t){if(function(e){let t=e.tagID;return t===ir.FONT&&e.attrs.some(({name:e})=>e===s7.COLOR||e===s7.SIZE||e===s7.FACE)||eG.has(t)}(t))ty(e),e._startTagOutsideForeignContent(t);else{let r=e._getAdjustedCurrentElement(),n=e.treeAdapter.getNamespaceURI(r);if(n===s9.MATHML)ej(t);else if(n===s9.SVG){let e=eU.get(t.tagName);null!=e&&(t.tagName=e,t.tagID=ea(t.tagName)),e$(t)}eY(t),t.selfClosing?e._appendElement(t,n):e._insertElement(t,n),t.ackSelfClosing=!0}}(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case ii.INITIAL:eZ(this,e);break;case ii.BEFORE_HTML:t=this,(r=e).tagID===ir.HTML?(t._insertElement(r,s9.HTML),t.insertionMode=ii.BEFORE_HEAD):eJ(t,r);break;case ii.BEFORE_HEAD:var t,r,n,a,s,i,o=this,l=e;switch(l.tagID){case ir.HTML:tn(o,l);break;case ir.HEAD:o._insertElement(l,s9.HTML),o.headElement=o.openElements.current,o.insertionMode=ii.IN_HEAD;break;default:e0(o,l)}break;case ii.IN_HEAD:e1(this,e);break;case ii.IN_HEAD_NO_SCRIPT:var c=this,u=e;switch(u.tagID){case ir.HTML:tn(c,u);break;case ir.BASEFONT:case ir.BGSOUND:case ir.HEAD:case ir.LINK:case ir.META:case ir.NOFRAMES:case ir.STYLE:e1(c,u);break;case ir.NOSCRIPT:c._err(u,s5.nestedNoscriptInHead);break;default:e2(c,u)}break;case ii.AFTER_HEAD:var d=this,h=e;switch(h.tagID){case ir.HTML:tn(d,h);break;case ir.BODY:d._insertElement(h,s9.HTML),d.framesetOk=!1,d.insertionMode=ii.IN_BODY;break;case ir.FRAMESET:d._insertElement(h,s9.HTML),d.insertionMode=ii.IN_FRAMESET;break;case ir.BASE:case ir.BASEFONT:case ir.BGSOUND:case ir.LINK:case ir.META:case ir.NOFRAMES:case ir.SCRIPT:case ir.STYLE:case ir.TEMPLATE:case ir.TITLE:d._err(h,s5.abandonedHeadElementChild),d.openElements.push(d.headElement,ir.HEAD),e1(d,h),d.openElements.remove(d.headElement);break;case ir.HEAD:d._err(h,s5.misplacedStartTagForHeadElement);break;default:e8(d,h)}break;case ii.IN_BODY:tn(this,e);break;case ii.IN_TABLE:tl(this,e);break;case ii.IN_TABLE_TEXT:tp(this,e);break;case ii.IN_CAPTION:var p=this,m=e;let f=m.tagID;tm.has(f)?p.openElements.hasInTableScope(ir.CAPTION)&&(p.openElements.generateImpliedEndTags(),p.openElements.popUntilTagNamePopped(ir.CAPTION),p.activeFormattingElements.clearToLastMarker(),p.insertionMode=ii.IN_TABLE,tl(p,m)):tn(p,m);break;case ii.IN_COLUMN_GROUP:tf(this,e);break;case ii.IN_TABLE_BODY:tT(this,e);break;case ii.IN_ROW:tA(this,e);break;case ii.IN_CELL:var E=this,T=e;let g=T.tagID;tm.has(g)?(E.openElements.hasInTableScope(ir.TD)||E.openElements.hasInTableScope(ir.TH))&&(E._closeTableCell(),tA(E,T)):tn(E,T);break;case ii.IN_SELECT:tb(this,e);break;case ii.IN_SELECT_IN_TABLE:var A=this,_=e;let b=_.tagID;b===ir.CAPTION||b===ir.TABLE||b===ir.TBODY||b===ir.TFOOT||b===ir.THEAD||b===ir.TR||b===ir.TD||b===ir.TH?(A.openElements.popUntilTagNamePopped(ir.SELECT),A._resetInsertionMode(),A._processStartTag(_)):tb(A,_);break;case ii.IN_TEMPLATE:var k=this,C=e;switch(C.tagID){case ir.BASE:case ir.BASEFONT:case ir.BGSOUND:case ir.LINK:case ir.META:case ir.NOFRAMES:case ir.SCRIPT:case ir.STYLE:case ir.TEMPLATE:case ir.TITLE:e1(k,C);break;case ir.CAPTION:case ir.COLGROUP:case ir.TBODY:case ir.TFOOT:case ir.THEAD:k.tmplInsertionModeStack[0]=ii.IN_TABLE,k.insertionMode=ii.IN_TABLE,tl(k,C);break;case ir.COL:k.tmplInsertionModeStack[0]=ii.IN_COLUMN_GROUP,k.insertionMode=ii.IN_COLUMN_GROUP,tf(k,C);break;case ir.TR:k.tmplInsertionModeStack[0]=ii.IN_TABLE_BODY,k.insertionMode=ii.IN_TABLE_BODY,tT(k,C);break;case ir.TD:case ir.TH:k.tmplInsertionModeStack[0]=ii.IN_ROW,k.insertionMode=ii.IN_ROW,tA(k,C);break;default:k.tmplInsertionModeStack[0]=ii.IN_BODY,k.insertionMode=ii.IN_BODY,tn(k,C)}break;case ii.AFTER_BODY:n=this,(a=e).tagID===ir.HTML?tn(n,a):tI(n,a);break;case ii.IN_FRAMESET:var N=this,I=e;switch(I.tagID){case ir.HTML:tn(N,I);break;case ir.FRAMESET:N._insertElement(I,s9.HTML);break;case ir.FRAME:N._appendElement(I,s9.HTML),I.ackSelfClosing=!0;break;case ir.NOFRAMES:e1(N,I)}break;case ii.AFTER_FRAMESET:var S=this,y=e;switch(y.tagID){case ir.HTML:tn(S,y);break;case ir.NOFRAMES:e1(S,y)}break;case ii.AFTER_AFTER_BODY:s=this,(i=e).tagID===ir.HTML?tn(s,i):tS(s,i);break;case ii.AFTER_AFTER_FRAMESET:var D=this,x=e;switch(x.tagID){case ir.HTML:tn(D,x);break;case ir.NOFRAMES:e1(D,x)}}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?function(e,t){if(t.tagID===ir.P||t.tagID===ir.BR){ty(e),e._endTagOutsideForeignContent(t);return}for(let r=e.openElements.stackTop;r>0;r--){let n=e.openElements.items[r];if(e.treeAdapter.getNamespaceURI(n)===s9.HTML){e._endTagOutsideForeignContent(t);break}let a=e.treeAdapter.getTagName(n);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(r);break}}}(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case ii.INITIAL:eZ(this,e);break;case ii.BEFORE_HTML:var t,r,n,a,s,i,o=this,l=e;let c=l.tagID;(c===ir.HTML||c===ir.HEAD||c===ir.BODY||c===ir.BR)&&eJ(o,l);break;case ii.BEFORE_HEAD:var u=this,d=e;let h=d.tagID;h===ir.HEAD||h===ir.BODY||h===ir.HTML||h===ir.BR?e0(u,d):u._err(d,s5.endTagWithoutMatchingOpenElement);break;case ii.IN_HEAD:var p=this,m=e;switch(m.tagID){case ir.HEAD:p.openElements.pop(),p.insertionMode=ii.AFTER_HEAD;break;case ir.BODY:case ir.BR:case ir.HTML:e3(p,m);break;case ir.TEMPLATE:e5(p,m);break;default:p._err(m,s5.endTagWithoutMatchingOpenElement)}break;case ii.IN_HEAD_NO_SCRIPT:var f=this,E=e;switch(E.tagID){case ir.NOSCRIPT:f.openElements.pop(),f.insertionMode=ii.IN_HEAD;break;case ir.BR:e2(f,E);break;default:f._err(E,s5.endTagWithoutMatchingOpenElement)}break;case ii.AFTER_HEAD:var T=this,g=e;switch(g.tagID){case ir.BODY:case ir.HTML:case ir.BR:e8(T,g);break;case ir.TEMPLATE:e5(T,g);break;default:T._err(g,s5.endTagWithoutMatchingOpenElement)}break;case ii.IN_BODY:ts(this,e);break;case ii.TEXT:t=this,e.tagID===ir.SCRIPT&&(null==(r=t.scriptHandler)||r.call(t,t.openElements.current)),t.openElements.pop(),t.insertionMode=t.originalInsertionMode;break;case ii.IN_TABLE:tc(this,e);break;case ii.IN_TABLE_TEXT:tp(this,e);break;case ii.IN_CAPTION:var A=this,_=e;let b=_.tagID;switch(b){case ir.CAPTION:case ir.TABLE:A.openElements.hasInTableScope(ir.CAPTION)&&(A.openElements.generateImpliedEndTags(),A.openElements.popUntilTagNamePopped(ir.CAPTION),A.activeFormattingElements.clearToLastMarker(),A.insertionMode=ii.IN_TABLE,b===ir.TABLE&&tc(A,_));break;case ir.BODY:case ir.COL:case ir.COLGROUP:case ir.HTML:case ir.TBODY:case ir.TD:case ir.TFOOT:case ir.TH:case ir.THEAD:case ir.TR:break;default:ts(A,_)}break;case ii.IN_COLUMN_GROUP:var k=this,C=e;switch(C.tagID){case ir.COLGROUP:k.openElements.currentTagId===ir.COLGROUP&&(k.openElements.pop(),k.insertionMode=ii.IN_TABLE);break;case ir.TEMPLATE:e5(k,C);break;case ir.COL:break;default:tE(k,C)}break;case ii.IN_TABLE_BODY:tg(this,e);break;case ii.IN_ROW:t_(this,e);break;case ii.IN_CELL:var N=this,I=e;let S=I.tagID;switch(S){case ir.TD:case ir.TH:N.openElements.hasInTableScope(S)&&(N.openElements.generateImpliedEndTags(),N.openElements.popUntilTagNamePopped(S),N.activeFormattingElements.clearToLastMarker(),N.insertionMode=ii.IN_ROW);break;case ir.TABLE:case ir.TBODY:case ir.TFOOT:case ir.THEAD:case ir.TR:N.openElements.hasInTableScope(S)&&(N._closeTableCell(),t_(N,I));break;case ir.BODY:case ir.CAPTION:case ir.COL:case ir.COLGROUP:case ir.HTML:break;default:ts(N,I)}break;case ii.IN_SELECT:tk(this,e);break;case ii.IN_SELECT_IN_TABLE:var y=this,D=e;let x=D.tagID;x===ir.CAPTION||x===ir.TABLE||x===ir.TBODY||x===ir.TFOOT||x===ir.THEAD||x===ir.TR||x===ir.TD||x===ir.TH?y.openElements.hasInTableScope(x)&&(y.openElements.popUntilTagNamePopped(ir.SELECT),y._resetInsertionMode(),y.onEndTag(D)):tk(y,D);break;case ii.IN_TEMPLATE:n=this,(a=e).tagID===ir.TEMPLATE&&e5(n,a);break;case ii.AFTER_BODY:tN(this,e);break;case ii.IN_FRAMESET:s=this,e.tagID===ir.FRAMESET&&!s.openElements.isRootHtmlElementCurrent()&&(s.openElements.pop(),s.fragmentContext||s.openElements.currentTagId===ir.FRAMESET||(s.insertionMode=ii.AFTER_FRAMESET));break;case ii.AFTER_FRAMESET:i=this,e.tagID===ir.HTML&&(i.insertionMode=ii.AFTER_AFTER_FRAMESET);break;case ii.AFTER_AFTER_BODY:tS(this,e)}}onEof(e){switch(this.insertionMode){case ii.INITIAL:eZ(this,e);break;case ii.BEFORE_HTML:eJ(this,e);break;case ii.BEFORE_HEAD:e0(this,e);break;case ii.IN_HEAD:e3(this,e);break;case ii.IN_HEAD_NO_SCRIPT:e2(this,e);break;case ii.AFTER_HEAD:e8(this,e);break;case ii.IN_BODY:case ii.IN_TABLE:case ii.IN_CAPTION:case ii.IN_COLUMN_GROUP:case ii.IN_TABLE_BODY:case ii.IN_ROW:case ii.IN_CELL:case ii.IN_SELECT:case ii.IN_SELECT_IN_TABLE:ti(this,e);break;case ii.TEXT:var t,r;t=this,r=e,t._err(r,s5.eofInElementThatCanContainOnlyText),t.openElements.pop(),t.insertionMode=t.originalInsertionMode,t.onEof(r);break;case ii.IN_TABLE_TEXT:tp(this,e);break;case ii.IN_TEMPLATE:tC(this,e);break;case ii.AFTER_BODY:case ii.IN_FRAMESET:case ii.AFTER_FRAMESET:case ii.AFTER_AFTER_BODY:case ii.AFTER_AFTER_FRAMESET:eX(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===s1.LINE_FEED)){if(1===e.chars.length)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode)return void this._insertCharacters(e);switch(this.insertionMode){case ii.IN_HEAD:case ii.IN_HEAD_NO_SCRIPT:case ii.AFTER_HEAD:case ii.TEXT:case ii.IN_COLUMN_GROUP:case ii.IN_SELECT:case ii.IN_SELECT_IN_TABLE:case ii.IN_FRAMESET:case ii.AFTER_FRAMESET:this._insertCharacters(e);break;case ii.IN_BODY:case ii.IN_CAPTION:case ii.IN_CELL:case ii.IN_TEMPLATE:case ii.AFTER_BODY:case ii.AFTER_AFTER_BODY:case ii.AFTER_AFTER_FRAMESET:e4(this,e);break;case ii.IN_TABLE:case ii.IN_TABLE_BODY:case ii.IN_ROW:to(this,e);break;case ii.IN_TABLE_TEXT:td(this,e)}}}function eQ(e,t){for(let r=0;r<8;r++){let r=function(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):ta(e,t),r}(e,t);if(!r)break;let n=function(e,t){let r=null,n=e.openElements.stackTop;for(;n>=0;n--){let a=e.openElements.items[n];if(a===t.element)break;e._isSpecialElement(a,e.openElements.tagIDs[n])&&(r=a)}return r||(e.openElements.shortenToLength(Math.max(n,0)),e.activeFormattingElements.removeEntry(t)),r}(e,r);if(!n)break;e.activeFormattingElements.bookmark=r;let a=function(e,t,r){let n=t,a=e.openElements.getCommonAncestor(t);for(let s=0,i=a;i!==r;s++,i=a){a=e.openElements.getCommonAncestor(i);let r=e.activeFormattingElements.getElementEntry(i),o=r&&s>=3;!r||o?(o&&e.activeFormattingElements.removeEntry(r),e.openElements.remove(i)):(i=function(e,t){let 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}(e,r),n===t&&(e.activeFormattingElements.bookmark=r),e.treeAdapter.detachNode(n),e.treeAdapter.appendChild(i,n),n=i)}return n}(e,n,r.element),s=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(a),s&&function(e,t,r){let n=ea(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(n))e._fosterParentElement(r);else{let a=e.treeAdapter.getNamespaceURI(t);n===ir.TEMPLATE&&a===s9.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,r)}}(e,s,a);let i=e.treeAdapter.getNamespaceURI(r.element),{token:o}=r,l=e.treeAdapter.createElement(o.tagName,i,o.attrs);e._adoptNodes(n,l),e.treeAdapter.appendChild(n,l),e.activeFormattingElements.insertElementAfterBookmark(l,o),e.activeFormattingElements.removeEntry(r),e.openElements.remove(r.element),e.openElements.insertAfter(n,l,o.tagID)}}function eK(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function eX(e,t){if(e.stopped=!0,t.location){let r=2*!e.fragmentContext;for(let n=e.openElements.stackTop;n>=r;n--)e._setEndLocation(e.openElements.items[n],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){let r=e.openElements.items[0],n=e.treeAdapter.getNodeSourceCodeLocation(r);if(n&&!n.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){let r=e.openElements.items[1],n=e.treeAdapter.getNodeSourceCodeLocation(r);n&&!n.endTag&&e._setEndLocation(r,t)}}}}function eZ(e,t){e._err(t,s5.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,ie.QUIRKS),e.insertionMode=ii.BEFORE_HTML,e._processToken(t)}function eJ(e,t){e._insertFakeRootElement(),e.insertionMode=ii.BEFORE_HEAD,e._processToken(t)}function e0(e,t){e._insertFakeElement(it.HEAD,ir.HEAD),e.headElement=e.openElements.current,e.insertionMode=ii.IN_HEAD,e._processToken(t)}function e1(e,t){switch(t.tagID){case ir.HTML:tn(e,t);break;case ir.BASE:case ir.BASEFONT:case ir.BGSOUND:case ir.LINK:case ir.META:e._appendElement(t,s9.HTML),t.ackSelfClosing=!0;break;case ir.TITLE:e._switchToTextParsing(t,el.RCDATA);break;case ir.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,el.RAWTEXT):(e._insertElement(t,s9.HTML),e.insertionMode=ii.IN_HEAD_NO_SCRIPT);break;case ir.NOFRAMES:case ir.STYLE:e._switchToTextParsing(t,el.RAWTEXT);break;case ir.SCRIPT:e._switchToTextParsing(t,el.SCRIPT_DATA);break;case ir.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=ii.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(ii.IN_TEMPLATE);break;case ir.HEAD:e._err(t,s5.misplacedStartTagForHeadElement);break;default:e3(e,t)}}function e5(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==ir.TEMPLATE&&e._err(t,s5.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(ir.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,s5.endTagWithoutMatchingOpenElement)}function e3(e,t){e.openElements.pop(),e.insertionMode=ii.AFTER_HEAD,e._processToken(t)}function e2(e,t){let r=t.type===s3.EOF?s5.openElementsLeftAfterEof:s5.disallowedContentInNoscriptInHead;e._err(t,r),e.openElements.pop(),e.insertionMode=ii.IN_HEAD,e._processToken(t)}function e8(e,t){e._insertFakeElement(it.BODY,ir.BODY),e.insertionMode=ii.IN_BODY,e6(e,t)}function e6(e,t){switch(t.type){case s3.CHARACTER:e9(e,t);break;case s3.WHITESPACE_CHARACTER:e4(e,t);break;case s3.COMMENT:eK(e,t);break;case s3.START_TAG:tn(e,t);break;case s3.END_TAG:ts(e,t);break;case s3.EOF:ti(e,t)}}function e4(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function e9(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function e7(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,s9.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function te(e){let t=Z(e,s7.TYPE);return null!=t&&"hidden"===t.toLowerCase()}function tt(e,t){e._switchToTextParsing(t,el.RAWTEXT)}function tr(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,s9.HTML)}function tn(e,t){switch(t.tagID){case ir.I:case ir.S:case ir.B:case ir.U:case ir.EM:case ir.TT:case ir.BIG:case ir.CODE:case ir.FONT:case ir.SMALL:case ir.STRIKE:case ir.STRONG:e._reconstructActiveFormattingElements(),e._insertElement(t,s9.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);break;case ir.A:let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(it.A);r&&(eQ(e,t),e.openElements.remove(r.element),e.activeFormattingElements.removeEntry(r)),e._reconstructActiveFormattingElements(),e._insertElement(t,s9.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);break;case ir.H1:case ir.H2:case ir.H3:case ir.H4:case ir.H5:case ir.H6:e.openElements.hasInButtonScope(ir.P)&&e._closePElement(),void 0!==e.openElements.currentTagId&&eo.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,s9.HTML);break;case ir.P:case ir.DL:case ir.OL:case ir.UL:case ir.DIV:case ir.DIR:case ir.NAV:case ir.MAIN:case ir.MENU:case ir.ASIDE:case ir.CENTER:case ir.FIGURE:case ir.FOOTER:case ir.HEADER:case ir.HGROUP:case ir.DIALOG:case ir.DETAILS:case ir.ADDRESS:case ir.ARTICLE:case ir.SEARCH:case ir.SECTION:case ir.SUMMARY:case ir.FIELDSET:case ir.BLOCKQUOTE:case ir.FIGCAPTION:e.openElements.hasInButtonScope(ir.P)&&e._closePElement(),e._insertElement(t,s9.HTML);break;case ir.LI:case ir.DD:case ir.DT:e.framesetOk=!1;let n=t.tagID;for(let t=e.openElements.stackTop;t>=0;t--){let r=e.openElements.tagIDs[t];if(n===ir.LI&&r===ir.LI||(n===ir.DD||n===ir.DT)&&(r===ir.DD||r===ir.DT)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r);break}if(r!==ir.ADDRESS&&r!==ir.DIV&&r!==ir.P&&e._isSpecialElement(e.openElements.items[t],r))break}e.openElements.hasInButtonScope(ir.P)&&e._closePElement(),e._insertElement(t,s9.HTML);break;case ir.BR:case ir.IMG:case ir.WBR:case ir.AREA:case ir.EMBED:case ir.KEYGEN:e7(e,t);break;case ir.HR:e.openElements.hasInButtonScope(ir.P)&&e._closePElement(),e._appendElement(t,s9.HTML),e.framesetOk=!1,t.ackSelfClosing=!0;break;case ir.RB:case ir.RTC:e.openElements.hasInScope(ir.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,s9.HTML);break;case ir.RT:case ir.RP:e.openElements.hasInScope(ir.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(ir.RTC),e._insertElement(t,s9.HTML);break;case ir.PRE:case ir.LISTING:e.openElements.hasInButtonScope(ir.P)&&e._closePElement(),e._insertElement(t,s9.HTML),e.skipNextNewLine=!0,e.framesetOk=!1;break;case ir.XMP:e.openElements.hasInButtonScope(ir.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,el.RAWTEXT);break;case ir.SVG:e._reconstructActiveFormattingElements(),e$(t),eY(t),t.selfClosing?e._appendElement(t,s9.SVG):e._insertElement(t,s9.SVG),t.ackSelfClosing=!0;break;case ir.HTML:0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs);break;case ir.BASE:case ir.LINK:case ir.META:case ir.STYLE:case ir.TITLE:case ir.SCRIPT:case ir.BGSOUND:case ir.BASEFONT:case ir.TEMPLATE:e1(e,t);break;case ir.BODY:let a=e.openElements.tryPeekProperlyNestedBodyElement();a&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(a,t.attrs));break;case ir.FORM:let s=e.openElements.tmplCount>0;(!e.formElement||s)&&(e.openElements.hasInButtonScope(ir.P)&&e._closePElement(),e._insertElement(t,s9.HTML),s||(e.formElement=e.openElements.current));break;case ir.NOBR:e._reconstructActiveFormattingElements(),e.openElements.hasInScope(ir.NOBR)&&(eQ(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,s9.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);break;case ir.MATH:e._reconstructActiveFormattingElements(),ej(t),eY(t),t.selfClosing?e._appendElement(t,s9.MATHML):e._insertElement(t,s9.MATHML),t.ackSelfClosing=!0;break;case ir.TABLE:e.treeAdapter.getDocumentMode(e.document)!==ie.QUIRKS&&e.openElements.hasInButtonScope(ir.P)&&e._closePElement(),e._insertElement(t,s9.HTML),e.framesetOk=!1,e.insertionMode=ii.IN_TABLE;break;case ir.INPUT:e._reconstructActiveFormattingElements(),e._appendElement(t,s9.HTML),te(t)||(e.framesetOk=!1),t.ackSelfClosing=!0;break;case ir.PARAM:case ir.TRACK:case ir.SOURCE:e._appendElement(t,s9.HTML),t.ackSelfClosing=!0;break;case ir.IMAGE:t.tagName=it.IMG,t.tagID=ir.IMG,e7(e,t);break;case ir.BUTTON:e.openElements.hasInScope(ir.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(ir.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,s9.HTML),e.framesetOk=!1;break;case ir.APPLET:case ir.OBJECT:case ir.MARQUEE:e._reconstructActiveFormattingElements(),e._insertElement(t,s9.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1;break;case ir.IFRAME:e.framesetOk=!1,e._switchToTextParsing(t,el.RAWTEXT);break;case ir.SELECT:e._reconstructActiveFormattingElements(),e._insertElement(t,s9.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===ii.IN_TABLE||e.insertionMode===ii.IN_CAPTION||e.insertionMode===ii.IN_TABLE_BODY||e.insertionMode===ii.IN_ROW||e.insertionMode===ii.IN_CELL?ii.IN_SELECT_IN_TABLE:ii.IN_SELECT;break;case ir.OPTION:case ir.OPTGROUP:e.openElements.currentTagId===ir.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,s9.HTML);break;case ir.NOEMBED:case ir.NOFRAMES:tt(e,t);break;case ir.FRAMESET:let i=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&i&&(e.treeAdapter.detachNode(i),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,s9.HTML),e.insertionMode=ii.IN_FRAMESET);break;case ir.TEXTAREA:e._insertElement(t,s9.HTML),e.skipNextNewLine=!0,e.tokenizer.state=el.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=ii.TEXT;break;case ir.NOSCRIPT:e.options.scriptingEnabled?tt(e,t):tr(e,t);break;case ir.PLAINTEXT:e.openElements.hasInButtonScope(ir.P)&&e._closePElement(),e._insertElement(t,s9.HTML),e.tokenizer.state=el.PLAINTEXT;break;case ir.COL:case ir.TH:case ir.TD:case ir.TR:case ir.HEAD:case ir.FRAME:case ir.TBODY:case ir.TFOOT:case ir.THEAD:case ir.CAPTION:case ir.COLGROUP:break;default:tr(e,t)}}function ta(e,t){let r=t.tagName,n=t.tagID;for(let t=e.openElements.stackTop;t>0;t--){let a=e.openElements.items[t],s=e.openElements.tagIDs[t];if(n===s&&(n!==ir.UNKNOWN||e.treeAdapter.getTagName(a)===r)){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.stackTop>=t&&e.openElements.shortenToLength(t);break}if(e._isSpecialElement(a,s))break}}function ts(e,t){switch(t.tagID){case ir.A:case ir.B:case ir.I:case ir.S:case ir.U:case ir.EM:case ir.TT:case ir.BIG:case ir.CODE:case ir.FONT:case ir.NOBR:case ir.SMALL:case ir.STRIKE:case ir.STRONG:eQ(e,t);break;case ir.P:e.openElements.hasInButtonScope(ir.P)||e._insertFakeElement(it.P,ir.P),e._closePElement();break;case ir.DL:case ir.UL:case ir.OL:case ir.DIR:case ir.DIV:case ir.NAV:case ir.PRE:case ir.MAIN:case ir.MENU:case ir.ASIDE:case ir.BUTTON:case ir.CENTER:case ir.FIGURE:case ir.FOOTER:case ir.HEADER:case ir.HGROUP:case ir.DIALOG:case ir.ADDRESS:case ir.ARTICLE:case ir.DETAILS:case ir.SEARCH:case ir.SECTION:case ir.SUMMARY:case ir.LISTING:case ir.FIELDSET:case ir.BLOCKQUOTE:case ir.FIGCAPTION:let r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r));break;case ir.LI:e.openElements.hasInListItemScope(ir.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(ir.LI),e.openElements.popUntilTagNamePopped(ir.LI));break;case ir.DD:case ir.DT:let n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n));break;case ir.H1:case ir.H2:case ir.H3:case ir.H4:case ir.H5:case ir.H6:e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped());break;case ir.BR:e._reconstructActiveFormattingElements(),e._insertFakeElement(it.BR,ir.BR),e.openElements.pop(),e.framesetOk=!1;break;case ir.BODY:if(e.openElements.hasInScope(ir.BODY)&&(e.insertionMode=ii.AFTER_BODY,e.options.sourceCodeLocationInfo)){let r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e._setEndLocation(r,t)}break;case ir.HTML:e.openElements.hasInScope(ir.BODY)&&(e.insertionMode=ii.AFTER_BODY,tN(e,t));break;case ir.FORM:let a=e.openElements.tmplCount>0,{formElement:s}=e;a||(e.formElement=null),(s||a)&&e.openElements.hasInScope(ir.FORM)&&(e.openElements.generateImpliedEndTags(),a?e.openElements.popUntilTagNamePopped(ir.FORM):s&&e.openElements.remove(s));break;case ir.APPLET:case ir.OBJECT:case ir.MARQUEE:let i=t.tagID;e.openElements.hasInScope(i)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(i),e.activeFormattingElements.clearToLastMarker());break;case ir.TEMPLATE:e5(e,t);break;default:ta(e,t)}}function ti(e,t){e.tmplInsertionModeStack.length>0?tC(e,t):eX(e,t)}function to(e,t){if(void 0!==e.openElements.currentTagId&&eq.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=ii.IN_TABLE_TEXT,t.type){case s3.CHARACTER:th(e,t);break;case s3.WHITESPACE_CHARACTER:td(e,t)}else tu(e,t)}function tl(e,t){switch(t.tagID){case ir.TD:case ir.TH:case ir.TR:e.openElements.clearBackToTableContext(),e._insertFakeElement(it.TBODY,ir.TBODY),e.insertionMode=ii.IN_TABLE_BODY,tT(e,t);break;case ir.STYLE:case ir.SCRIPT:case ir.TEMPLATE:e1(e,t);break;case ir.COL:e.openElements.clearBackToTableContext(),e._insertFakeElement(it.COLGROUP,ir.COLGROUP),e.insertionMode=ii.IN_COLUMN_GROUP,tf(e,t);break;case ir.FORM:e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,s9.HTML),e.formElement=e.openElements.current,e.openElements.pop());break;case ir.TABLE:e.openElements.hasInTableScope(ir.TABLE)&&(e.openElements.popUntilTagNamePopped(ir.TABLE),e._resetInsertionMode(),e._processStartTag(t));break;case ir.TBODY:case ir.TFOOT:case ir.THEAD:e.openElements.clearBackToTableContext(),e._insertElement(t,s9.HTML),e.insertionMode=ii.IN_TABLE_BODY;break;case ir.INPUT:te(t)?e._appendElement(t,s9.HTML):tu(e,t),t.ackSelfClosing=!0;break;case ir.CAPTION:e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,s9.HTML),e.insertionMode=ii.IN_CAPTION;break;case ir.COLGROUP:e.openElements.clearBackToTableContext(),e._insertElement(t,s9.HTML),e.insertionMode=ii.IN_COLUMN_GROUP;break;default:tu(e,t)}}function tc(e,t){switch(t.tagID){case ir.TABLE:e.openElements.hasInTableScope(ir.TABLE)&&(e.openElements.popUntilTagNamePopped(ir.TABLE),e._resetInsertionMode());break;case ir.TEMPLATE:e5(e,t);break;case ir.BODY:case ir.CAPTION:case ir.COL:case ir.COLGROUP:case ir.HTML:case ir.TBODY:case ir.TD:case ir.TFOOT:case ir.TH:case ir.THEAD:case ir.TR:break;default:tu(e,t)}}function tu(e,t){let r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e6(e,t),e.fosterParentingEnabled=r}function td(e,t){e.pendingCharacterTokens.push(t)}function th(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function tp(e,t){let r=0;if(e.hasNonWhitespacePendingCharacterToken)for(;r<e.pendingCharacterTokens.length;r++)tu(e,e.pendingCharacterTokens[r]);else for(;r<e.pendingCharacterTokens.length;r++)e._insertCharacters(e.pendingCharacterTokens[r]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}let tm=new Set([ir.CAPTION,ir.COL,ir.COLGROUP,ir.TBODY,ir.TD,ir.TFOOT,ir.TH,ir.THEAD,ir.TR]);function tf(e,t){switch(t.tagID){case ir.HTML:tn(e,t);break;case ir.COL:e._appendElement(t,s9.HTML),t.ackSelfClosing=!0;break;case ir.TEMPLATE:e1(e,t);break;default:tE(e,t)}}function tE(e,t){e.openElements.currentTagId===ir.COLGROUP&&(e.openElements.pop(),e.insertionMode=ii.IN_TABLE,e._processToken(t))}function tT(e,t){switch(t.tagID){case ir.TR:e.openElements.clearBackToTableBodyContext(),e._insertElement(t,s9.HTML),e.insertionMode=ii.IN_ROW;break;case ir.TH:case ir.TD:e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(it.TR,ir.TR),e.insertionMode=ii.IN_ROW,tA(e,t);break;case ir.CAPTION:case ir.COL:case ir.COLGROUP:case ir.TBODY:case ir.TFOOT:case ir.THEAD:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=ii.IN_TABLE,tl(e,t));break;default:tl(e,t)}}function tg(e,t){let r=t.tagID;switch(t.tagID){case ir.TBODY:case ir.TFOOT:case ir.THEAD:e.openElements.hasInTableScope(r)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=ii.IN_TABLE);break;case ir.TABLE:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=ii.IN_TABLE,tc(e,t));break;case ir.BODY:case ir.CAPTION:case ir.COL:case ir.COLGROUP:case ir.HTML:case ir.TD:case ir.TH:case ir.TR:break;default:tc(e,t)}}function tA(e,t){switch(t.tagID){case ir.TH:case ir.TD:e.openElements.clearBackToTableRowContext(),e._insertElement(t,s9.HTML),e.insertionMode=ii.IN_CELL,e.activeFormattingElements.insertMarker();break;case ir.CAPTION:case ir.COL:case ir.COLGROUP:case ir.TBODY:case ir.TFOOT:case ir.THEAD:case ir.TR:e.openElements.hasInTableScope(ir.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=ii.IN_TABLE_BODY,tT(e,t));break;default:tl(e,t)}}function t_(e,t){switch(t.tagID){case ir.TR:e.openElements.hasInTableScope(ir.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=ii.IN_TABLE_BODY);break;case ir.TABLE:e.openElements.hasInTableScope(ir.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=ii.IN_TABLE_BODY,tg(e,t));break;case ir.TBODY:case ir.TFOOT:case ir.THEAD:(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(ir.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=ii.IN_TABLE_BODY,tg(e,t));break;case ir.BODY:case ir.CAPTION:case ir.COL:case ir.COLGROUP:case ir.HTML:case ir.TD:case ir.TH:break;default:tc(e,t)}}function tb(e,t){switch(t.tagID){case ir.HTML:tn(e,t);break;case ir.OPTION:e.openElements.currentTagId===ir.OPTION&&e.openElements.pop(),e._insertElement(t,s9.HTML);break;case ir.OPTGROUP:e.openElements.currentTagId===ir.OPTION&&e.openElements.pop(),e.openElements.currentTagId===ir.OPTGROUP&&e.openElements.pop(),e._insertElement(t,s9.HTML);break;case ir.HR:e.openElements.currentTagId===ir.OPTION&&e.openElements.pop(),e.openElements.currentTagId===ir.OPTGROUP&&e.openElements.pop(),e._appendElement(t,s9.HTML),t.ackSelfClosing=!0;break;case ir.INPUT:case ir.KEYGEN:case ir.TEXTAREA:case ir.SELECT:e.openElements.hasInSelectScope(ir.SELECT)&&(e.openElements.popUntilTagNamePopped(ir.SELECT),e._resetInsertionMode(),t.tagID!==ir.SELECT&&e._processStartTag(t));break;case ir.SCRIPT:case ir.TEMPLATE:e1(e,t)}}function tk(e,t){switch(t.tagID){case ir.OPTGROUP:e.openElements.stackTop>0&&e.openElements.currentTagId===ir.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===ir.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===ir.OPTGROUP&&e.openElements.pop();break;case ir.OPTION:e.openElements.currentTagId===ir.OPTION&&e.openElements.pop();break;case ir.SELECT:e.openElements.hasInSelectScope(ir.SELECT)&&(e.openElements.popUntilTagNamePopped(ir.SELECT),e._resetInsertionMode());break;case ir.TEMPLATE:e5(e,t)}}function tC(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(ir.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):eX(e,t)}function tN(e,t){var r;if(t.tagID===ir.HTML){if(e.fragmentContext||(e.insertionMode=ii.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===ir.HTML){e._setEndLocation(e.openElements.items[0],t);let n=e.openElements.items[1];!n||(null==(r=e.treeAdapter.getNodeSourceCodeLocation(n))?void 0:r.endTag)||e._setEndLocation(n,t)}}else tI(e,t)}function tI(e,t){e.insertionMode=ii.IN_BODY,e6(e,t)}function tS(e,t){e.insertionMode=ii.IN_BODY,e6(e,t)}function ty(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==s9.HTML&&void 0!==e.openElements.currentTagId&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}null==String.prototype.codePointAt||((e,t)=>e.codePointAt(t)),it.AREA,it.BASE,it.BASEFONT,it.BGSOUND,it.BR,it.COL,it.EMBED,it.FRAME,it.HR,it.IMG,it.INPUT,it.KEYGEN,it.LINK,it.META,it.PARAM,it.SOURCE,it.TRACK,it.WBR;let tD=tR("end"),tx=tR("start");function tR(e){return function(t){let r=t&&t.position&&t.position[e]||{};if("number"==typeof r.line&&r.line>0&&"number"==typeof r.column&&r.column>0)return{line:r.line,column:r.column,offset:"number"==typeof r.offset&&r.offset>-1?r.offset:void 0}}}function tL(e){let t=tx(e),r=tD(e);if(t&&r)return{start:t,end:r}}let tO=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,tw=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),tM={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function tP(e,t){let r=function(e){let t="root"===e.type?e.children[0]:e;return!!(t&&("doctype"===t.type||"element"===t.type&&"html"===t.tagName.toLowerCase()))}(e),n=(0,U.A)("type",{handlers:{root:tB,element:tF,text:tH,comment:tG,doctype:tU,raw:tj},unknown:t$}),s={parser:r?new eW(tM):eW.getFragmentParser(void 0,tM),handle(e){n(e,s)},stitches:!1,options:t||{}};n(e,s),tY(s,tx());let i=function(e,t){let r=t||{};return P({file:r.file||void 0,location:!1,schema:"svg"===r.space?b.JW:b.qy,verbose:r.verbose||!1},e)}(r?s.parser.document:s.parser.getFragment(),{file:s.options.file});return(s.stitches&&(0,a.YR)(i,"comment",function(e,t,r){if(e.value.stitch&&r&&void 0!==t)return r.children[t]=e.value.stitch,t}),"root"===i.type&&1===i.children.length&&i.children[0].type===e.type)?i.children[0]:i}function tv(e,t){let r=-1;if(e)for(;++r<e.length;)t.handle(e[r])}function tB(e,t){tv(e.children,t)}function tF(e,t){(function(e,t){let r=e.tagName.toLowerCase();if(t.parser.tokenizer.state===el.PLAINTEXT)return;tY(t,tx(e));let n=t.parser.openElements.current,a="namespaceURI"in n?n.namespaceURI:O.html;a===O.html&&"svg"===r&&(a=O.svg);let s=j({...e,children:[]},"svg"===({space:a===O.svg?"svg":"html"}).space?b.JW:b.qy),i={type:s3.START_TAG,tagName:r,tagID:ea(r),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in s?s.attrs:[],location:tq(e)};t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=r})(e,t),tv(e.children,t),function(e,t){let r=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&z.b.includes(r)||t.parser.tokenizer.state===el.PLAINTEXT)return;tY(t,tD(e));let n={type:s3.END_TAG,tagName:r,tagID:ea(r),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:tq(e)};t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken),r===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===el.RCDATA||t.parser.tokenizer.state===el.RAWTEXT||t.parser.tokenizer.state===el.SCRIPT_DATA)&&(t.parser.tokenizer.state=el.DATA)}(e,t)}function tH(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);let r={type:s3.CHARACTER,chars:e.value,location:tq(e)};tY(t,tx(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function tU(e,t){let r={type:s3.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:tq(e)};tY(t,tx(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function tG(e,t){let r=e.value,n={type:s3.COMMENT,data:r,location:tq(e)};tY(t,tx(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function tj(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,tz(t,tx(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(tO,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),72===t.parser.tokenizer.state||78===t.parser.tokenizer.state){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;let e=t.parser.tokenizer._consume();t.parser.tokenizer._callState(e)}}function t$(e,t){if(t.options.passThrough&&t.options.passThrough.includes(e.type)){var r;t.stitches=!0;let n="children"in(r=e)?A({...r,children:[]}):A(r);"children"in e&&"children"in n&&(n.children=tP({type:"root",children:e.children},t.options).children),tG({type:"comment",value:{stitch:n}},t)}else{let t="";throw tw.has(e.type)&&(t=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),Error("Cannot compile `"+e.type+"` node"+t)}}function tY(e,t){tz(e,t);let 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=el.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 tz(e,t){if(t&&void 0!==t.offset){let 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 tq(e){let t=tx(e)||{line:void 0,column:void 0,offset:void 0},r=tD(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 tV(e){return function(t,r){return tP(t,{...e,file:r})}}let tW=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],tQ={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...tW,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...tW],h2:[["className","sr-only"]],img:[...tW,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...tW,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...tW],table:[...tW],ul:[...tW,["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"]},tK={}.hasOwnProperty;function tX(e,t){if(t&&"object"==typeof t)switch("string"==typeof t.type?t.type:""){case"comment":var r=e,n=t;if(r.schema.allowComments){let e="string"==typeof n.value?n.value:"",t=e.indexOf("--\x3e"),r={type:"comment",value:t<0?e:e.slice(0,t)};return t1(r,n),r}return;case"doctype":var a=e,s=t;if(a.schema.allowDoctypes){let e={type:"doctype"};return t1(e,s),e}return;case"element":return function(e,t){let r="string"==typeof t.tagName?t.tagName:"";e.stack.push(r);let n=tZ(e,t.children),a=function(e,t){let r,n=e.stack[e.stack.length-1],a=e.schema.attributes,s=e.schema.required,i=a&&tK.call(a,n)?a[n]:void 0,o=a&&tK.call(a,"*")?a["*"]:void 0,l=t&&"object"==typeof t?t:{},c={};for(r in l)if(tK.call(l,r)){let t=l[r],n=tJ(e,t5(i,r),r,t);null==n&&(n=tJ(e,t5(o,r),r,t)),null!=n&&(c[r]=n)}if(s&&tK.call(s,n)){let e=s[n];for(r in e)tK.call(e,r)&&!tK.call(c,r)&&(c[r]=e[r])}return c}(e,t.properties);e.stack.pop();let s=!1;if(r&&"*"!==r&&(!e.schema.tagNames||e.schema.tagNames.includes(r))&&(s=!0,e.schema.ancestors&&tK.call(e.schema.ancestors,r))){let t=e.schema.ancestors[r],n=-1;for(s=!1;++n<t.length;)e.stack.includes(t[n])&&(s=!0)}if(!s)return e.schema.strip&&!e.schema.strip.includes(r)?n:void 0;let i={type:"element",tagName:r,properties:a,children:n};return t1(i,t),i}(e,t);case"root":var i=e,o=t;let l={type:"root",children:tZ(i,o.children)};return t1(l,o),l;case"text":var c=t;let u={type:"text",value:"string"==typeof c.value?c.value:""};return t1(u,c),u}}function tZ(e,t){let r=[];if(Array.isArray(t)){let n=-1;for(;++n<t.length;){let a=tX(e,t[n]);a&&(Array.isArray(a)?r.push(...a):r.push(a))}}return r}function tJ(e,t,r,n){return t?Array.isArray(n)?function(e,t,r,n){let a=-1,s=[];for(;++a<n.length;){let i=t0(e,t,r,n[a]);("number"==typeof i||"string"==typeof i)&&s.push(i)}return s}(e,t,r,n):t0(e,t,r,n):void 0}function t0(e,t,r,n){if(("boolean"==typeof n||"number"==typeof n||"string"==typeof n)&&function(e,t,r){let n=e.schema.protocols&&tK.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!n||0===n.length)return!0;let a=String(r),s=a.indexOf(":"),i=a.indexOf("?"),o=a.indexOf("#"),l=a.indexOf("/");if(s<0||l>-1&&s>l||i>-1&&s>i||o>-1&&s>o)return!0;let c=-1;for(;++c<n.length;){let e=n[c];if(s===e.length&&a.slice(0,e.length)===e)return!0}return!1}(e,r,n)){if("object"==typeof t&&t.length>1){let e=!1,r=0;for(;++r<t.length;){let a=t[r];if(a&&"object"==typeof a&&"flags"in a){if(a.test(String(n))){e=!0;break}}else if(a===n){e=!0;break}}if(!e)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(r)?e.schema.clobberPrefix+n:n}}function t1(e,t){let r=tL(t);t.data&&(e.data=A(t.data)),r&&(e.position=r)}function t5(e,t){let r,n=-1;if(e)for(;++n<e.length;){let a=e[n],s="string"==typeof a?a:a[0];if(s===t)return a;"data*"===s&&(r=a)}if(t.length>4&&"data"===t.slice(0,4).toLowerCase())return r}function t3(e){return function(t){var r=t,n=e;let a={type:"root",children:[]},s=tX({schema:n?{...tQ,...n}:tQ,stack:[]},r);return s&&(Array.isArray(s)?1===s.length?a=s[0]:a.children=s:a=s),a}}var t2=r(45532),t8=Object.defineProperty,t6=Object.defineProperties,t4=Object.getOwnPropertyDescriptors,t9=Object.getOwnPropertySymbols,t7=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,rt=(e,t,r)=>t in e?t8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rr=(e,t)=>{for(var r in t||(t={}))t7.call(t,r)&&rt(e,r,t[r]);if(t9)for(var r of t9(t))re.call(t,r)&&rt(e,r,t[r]);return e},rn=(e,t)=>t6(e,t4(t)),ra=(e,t)=>{let r=!1,n=!1;for(let a=0;a<t;a+=1){if("\\"===e[a]&&a+1<e.length&&"`"===e[a+1]){a+=1;continue}if("```"===e.substring(a,a+3)){n=!n,a+=2;continue}n||"`"!==e[a]||(r=!r)}return r||n},rs=(e,t)=>{let r="```"===e.substring(t,t+3),n=t>0&&"```"===e.substring(t-1,t+2),a=t>1&&"```"===e.substring(t-2,t+1);return r||n||a},ri=(e,t)=>{let r=!1,n=!1,a=-1;for(let s=0;s<e.length;s+=1){if("\\"===e[s]&&s+1<e.length&&"`"===e[s+1]){s+=1;continue}if("```"===e.substring(s,s+3)){n=!n,s+=2;continue}if(!n&&"`"===e[s])if(r){if(a<t&&t<s)return!0;r=!1,a=-1}else r=!0,a=s}return!1},ro=/^(\s*(?:[-*+]|\d+[.)]) +)>(=?\s*[$]?\d)/gm,rl=/(\*\*)([^*]*\*?)$/,rc=/(__)([^_]*?)$/,ru=/(\*\*\*)([^*]*?)$/,rd=/(\*)([^*]*?)$/,rh=/(_)([^_]*?)$/,rp=/(`)([^`]*?)$/,rm=/(~~)([^~]*?)$/,rf=/^[\s_~*`]*$/,rE=/^[\s]*[-*+][\s]+$/,rT=/[\p{L}\p{N}_]/u,rg=/^```[^`\n]*```?$/,rA=/^\*{4,}$/,r_=/(__)([^_]+)_$/,rb=/(~~)([^~]+)~$/,rk=/~~/g,rC=e=>{if(!e)return!1;let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||95===t||rT.test(e)},rN=(e,t)=>{let r=1;for(let n=t+1;n<e.length;n+=1)if("["===e[n])r+=1;else if("]"===e[n]&&0==(r-=1))return n;return -1},rI=(e,t)=>{let r=!1,n=!1;for(let a=0;a<e.length&&a<t;a+=1){if("\\"===e[a]&&"$"===e[a+1]){a+=1;continue}"$"===e[a]&&("$"===e[a+1]?(n=!n,a+=1,r=!1):n||(r=!r))}return r||n},rS=(e,t)=>{for(let r=t;r<e.length;r+=1){if(")"===e[r])return!0;if(e[r]===`
|
|
138
|
+
XID_Start XIDS`.split(/\s/).map(e=>[q(e),e])),ex=new Map([["s",eE(383)],[eE(383),"s"]]),eR=new Map([[eE(223),eE(7838)],[eE(107),eE(8490)],[eE(229),eE(8491)],[eE(969),eE(8486)]]),eL=new Map([ew(453),ew(456),ew(459),ew(498),...eM(8072,8079),...eM(8088,8095),...eM(8104,8111),ew(8124),ew(8140),ew(8188)]),eO=new Map([["alnum",eT`[\p{Alpha}\p{Nd}]`],["alpha",eT`\p{Alpha}`],["ascii",eT`\p{ASCII}`],["blank",eT`[\p{Zs}\t]`],["cntrl",eT`\p{Cc}`],["digit",eT`\p{Nd}`],["graph",eT`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",eT`\p{Lower}`],["print",eT`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",eT`[\p{P}\p{S}]`],["space",eT`\p{space}`],["upper",eT`\p{Upper}`],["word",eT`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",eT`\p{AHex}`]]);function ew(e){let t=eE(e);return[t.toLowerCase(),t]}function eM(e,t){return(function(e,t){let r=[];for(let n=e;n<=t;n++)r.push(n);return r})(e,t).map(e=>ew(e))}var eP=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]),ev={AbsenceFunction({node:e,parent:t,replaceWith:r}){let{body:n,kind:a}=e;if("repeater"===a){let e=B();e.body[0].body.push(F({negate:!0,body:n}),G("Any"));let a=B();a.body[0].body.push(H("greedy",0,1/0,e)),r(eW(a,t),{traverse:!0})}else throw Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:e,parent:t,key:r},{flagDirectivesByAlt:n}){let a=e.body.filter(e=>"flags"===e.kind);for(let e=r+1;e<t.body.length;e++)eb(n,t.body[e],[]).push(...a)},exit({node:e},{flagDirectivesByAlt:t}){if(t.get(e)?.length){let r=ej(t.get(e));if(r){let t=B({flags:r});t.body[0].body=e.body,e.body=[eW(t,e)]}}}},Assertion({node:e,parent:t,key:r,container:n,root:a,remove:s,replaceWith:i},o){let{kind:l,negate:c}=e,{asciiWordBoundaries:u,avoidSubclass:d,supportedGNodes:h,wordIsAscii:p}=o;if("text_segment_boundary"===l)throw Error(`Unsupported text segment boundary "\\${c?"Y":"y"}"`);if("line_end"===l)i(eW(F({body:[R({body:[L("string_end")]}),R({body:[M(10)]})]}),t));else if("line_start"===l)i(eW(ez(eT`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if("search_start"===l)if(h.has(e))a.flags.sticky=!0,s();else{let e=n[r-1];if(e&&function(e){let t=["Character","CharacterClass","CharacterSet"];return t.includes(e.type)||"Quantifier"===e.type&&e.min&&t.includes(e.body.type)}(e))i(eW(F({negate:!0}),t));else if(d)throw Error(eT`Uses "\G" in a way that requires a subclass`);else i(eV(L("string_start"),t)),o.strategy="clip_search"}else if("string_end"===l||"string_start"===l);else if("string_end_newline"===l)i(eW(ez(eT`(?=\n?\z)`),t));else if("word_boundary"===l){if(!p&&!u){let e=`(?:(?<=${eS})(?!${eS})|(?<!${eS})(?=${eS}))`,r=`(?:(?<=${eS})(?=${eS})|(?<!${eS})(?!${eS}))`;i(eW(ez(c?r:e),t))}}else throw Error(`Unexpected assertion kind "${l}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:r}=e;"string"!=typeof r||eY(r)||(e.ref=r=eG(r,t))},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:r}){let{name:n}=e;n&&!eY(n)&&(e.name=n=eG(n,t)),r.set(e.number,e),n&&r.set(n,e)},CharacterClassRange({node:e,parent:t,replaceWith:r}){"intersection"===t.kind&&r(eW(P({body:[e]}),t),{traverse:!0})},CharacterSet({node:e,parent:t,replaceWith:r},{accuracy:n,minTargetEs2024:a,digitIsAscii:s,spaceIsAscii:i,wordIsAscii:o}){let{kind:l,negate:c,value:u}=e;if(s&&("digit"===l||"digit"===u))return void r(eV(v("digit",{negate:c}),t));if(i&&("space"===l||"space"===u))return void r(eW(eq(ez("[ -\r ]"),c),t));if(o&&("word"===l||"word"===u))return void r(eV(v("word",{negate:c}),t));if("any"===l)r(eV(G("Any"),t));else if("digit"===l)r(eV(G("Nd",{negate:c}),t));else if("dot"===l);else if("text_segment"===l){if("strict"===n)throw Error(eT`Use of "\X" requires non-strict accuracy`);let e="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",s=eT`\p{RI}{2}|${e}(?:\u200D${e})*`;r(eW(ez(eT`(?>\r\n|${a?eT`\p{RGI_Emoji}`:s}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if("hex"===l)r(eV(G("AHex",{negate:c}),t));else if("newline"===l)r(eW(ez(c?"[^\n]":"(?>\r\n?|[\n\v\f\x85\u2028\u2029])"),t));else if("posix"===l)if(a||"graph"!==u&&"print"!==u)r(eW(eq(ez(eO.get(u)),c),t));else{if("strict"===n)throw Error(`POSIX class "${u}" requires min target ES2024 or non-strict accuracy`);let e={graph:"!-~",print:" -~"}[u];c&&(e=`\0-${eE(e.codePointAt(0)-1)}${eE(e.codePointAt(2)+1)}-\u{10FFFF}`),r(eW(ez(`[${e}]`),t))}else if("property"===l)eD.has(q(u))||(e.key="sc");else if("space"===l)r(eV(G("space",{negate:c}),t));else if("word"===l)r(eW(eq(ez(eS),c),t));else throw Error(`Unexpected character set kind "${l}"`)},Directive({node:e,parent:t,root:r,remove:n,replaceWith:a,removeAllPrevSiblings:s,removeAllNextSiblings:i}){let{kind:o,flags:l}=e;if("flags"===o)if(l.enable||l.disable){let e=B({flags:l});e.body[0].body=i(),a(eW(e,t),{traverse:!0})}else n();else if("keep"===o){let e=r.body[0],n=1===r.body.length&&y(e,{type:"Group"})&&1===e.body[0].body.length?e.body[0]:r;if(t.parent!==n||n.body.length>1)throw Error(eT`Uses "\K" in a way that's unsupported`);let i=F({behind:!0});i.body[0].body=s(),a(eW(i,t))}else throw Error(`Unexpected directive kind "${o}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw Error('Unsupported flag "P"');if("word"===e.textSegmentMode)throw Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(t=>delete e[t]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;let{enable:t,disable:r}=e.flags;t?.extended&&delete t.extended,r?.extended&&delete r.extended,t?.dotAll&&r?.dotAll&&delete t.dotAll,t?.ignoreCase&&r?.ignoreCase&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,r&&!Object.keys(r).length&&delete e.flags.disable,e.flags.enable||e.flags.disable||delete e.flags},LookaroundAssertion({node:e},t){let{kind:r}=e;"lookbehind"===r&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:r}){let{kind:n}=e;if("fail"===n)r(eW(F({negate:!0}),t));else throw Error(`Unsupported named callout "(*${n.toUpperCase()}"`)},Quantifier({node:e}){if("Quantifier"===e.body.type){let t=B();t.body[0].body.push(e.body),e.body=eW(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){let r=[],n=!1,a=!1;for(let t of e.body)if(1===t.body.length&&"search_start"===t.body[0].kind)t.body.pop();else{let e=function e(t){let r=t.find(e=>"search_start"===e.kind||function(e,t){let r={negate:null,...t};return"LookaroundAssertion"===e.type&&(null===r.negate||e.negate===r.negate)&&1===e.body.length&&y(e.body[0],{type:"Assertion",kind:"search_start"})}(e,{negate:!1})||!function({type:e}){return"Assertion"===e||"Directive"===e||"LookaroundAssertion"===e}(e));if(!r)return null;if("search_start"===r.kind)return r;if("LookaroundAssertion"===r.type)return r.body[0].body[0];if("CapturingGroup"===r.type||"Group"===r.type){let t=[];for(let n of r.body){let r=e(n.body);if(!r)return null;Array.isArray(r)?t.push(...r):t.push(r)}return t}return null}(t.body);e?(n=!0,Array.isArray(e)?r.push(...e):r.push(e)):a=!0}n&&!a&&r.forEach(e=>t.add(e))},exit(e,{accuracy:t,passedLookbehind:r,strategy:n}){if("strict"===t&&r&&n)throw Error(eT`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:r}=e;"string"!=typeof r||eY(r)||(e.ref=r=eG(r,t))}},eB={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:r}){let{orphan:n,ref:a}=e;n||r.set(e,[...t.get(a).map(({node:e})=>e)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:r,skip:n},{groupOriginByCopy:a,groupsByName:s,multiplexCapturesToLeftByRef:i,openRefs:o,reffedNodesByReferencer:l}){let c=a.get(e);if(c&&o.has(e.number)){let n=eV(eU(e.number),t);l.set(n,o.get(e.number)),r(n);return}o.set(e.number,e),i.set(e.number,[]),e.name&&eb(i,e.name,[]);let u=i.get(e.name??e.number);for(let t=0;t<u.length;t++){let r=u[t];if(c===r.node||c&&c===r.origin||e===r.origin){u.splice(t,1);break}}if(i.get(e.number).push({node:e,origin:c}),e.name&&i.get(e.name).push({node:e,origin:c}),e.name){let t=eb(s,e.name,new Map),r=!1;if(c)r=!0;else for(let e of t.values())if(!e.hasDuplicateNameToRemove){r=!0;break}s.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:r})}},exit({node:e},{openRefs:t}){t.get(e.number)===e&&t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=e_(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:r},n){let{isRecursive:a,ref:s}=e;if(a){let r=t;for(;(r=r.parent)&&("CapturingGroup"!==r.type||r.name!==s&&r.number!==s););n.reffedNodesByReferencer.set(e,r);return}let i=n.subroutineRefMap.get(s),o=0===s,l=o?eU(0):function e(t,r,n,a){let s=Array.isArray(t)?[]:{};for(let[i,o]of Object.entries(t))"parent"===i?s.parent=Array.isArray(n)?a:n:o&&"object"==typeof o?s[i]=e(o,r,s,n):("type"===i&&"CapturingGroup"===o&&r.set(s,r.get(t)??t),s[i]=o);return s}(i,n.groupOriginByCopy,null),c=l;if(!o){var u,d;let e=ej(function(e,t){let r=[];for(;e=e.parent;)(!t||t(e))&&r.push(e);return r}(i,e=>"Group"===e.type&&!!e.flags)),t=e?e_(n.globalFlags,e):n.globalFlags;u=t,d=n.currentFlags,(u.dotAll!==d.dotAll||u.ignoreCase!==d.ignoreCase)&&(c=B({flags:function({dotAll:e,ignoreCase:t}){let r={};return(e||t)&&(r.enable={},e&&(r.enable.dotAll=!0),t&&(r.enable.ignoreCase=!0)),e&&t||(r.disable={},e||(r.disable.dotAll=!0),t||(r.disable.ignoreCase=!0)),r}(t)})).body[0].body.push(l)}r(eW(c,t),{traverse:!o})}},eF={Backreference({node:e,parent:t,replaceWith:r},n){if(e.orphan){n.highestOrphanBackref=Math.max(n.highestOrphanBackref,e.ref);return}let a=n.reffedNodesByReferencer.get(e).filter(t=>(function(e,t){let r=t;do{if("Regex"===r.type)return!1;if("Alternative"===r.type)continue;if(r===e)return!1;for(let t of e$(r.parent)){if(t===r)break;if(t===e||function e(t,r){for(let n of e$(t)??[])if(n===r||e(n,r))return!0;return!1}(t,e))return!0}}while(r=r.parent);throw Error("Unexpected path")})(t,e));a.length?a.length>1?r(eW(B({atomic:!0,body:a.reverse().map(e=>R({body:[O(e.number)]}))}),t)):e.ref=a[0].number:r(eW(F({negate:!0}),t))},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Regex:{exit({node:e},t){let r=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let t=0;t<r;t++){let t=w();e.body.at(-1).body.push(t)}}},Subroutine({node:e},t){e.isRecursive&&0!==e.ref&&(e.ref=t.reffedNodesByReferencer.get(e).number)}};function eH(e){Q(e,{"*"({node:e,parent:t}){e.parent=t}})}function eU(e){let t=U(e);return t.isRecursive=!0,t}function eG(e,t){if(t.has(e))return t.get(e);let r=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return t.set(e,r),r}function ej(e){let t=["dotAll","ignoreCase"],r={enable:{},disable:{}};return(e.forEach(({flags:e})=>{t.forEach(t=>{e.enable?.[t]&&(delete r.disable[t],r.enable[t]=!0),e.disable?.[t]&&(r.disable[t]=!0)})}),Object.keys(r.enable).length||delete r.enable,Object.keys(r.disable).length||delete r.disable,r.enable||r.disable)?r:null}function e$(e){if(!e)throw Error("Node expected");let{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function eY(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function ez(e,t){let r=x(e,{...t,unicodePropertyMap:eD}).body;return r.length>1||r[0].body.length>1?B({body:r}):r[0].body[0]}function eq(e,t){return e.negate=t,e}function eV(e,t){return e.parent=t,e}function eW(e,t){return eH(e),e.parent=t,e}var eQ={"*":{enter({node:e},t){if(e6(e)){let r=t.getCurrentModI();t.pushModI(e.flags?e_({ignoreCase:r},e.flags).ignoreCase:r)}},exit({node:e},t){e6(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){e5(eE(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},r){t(),e2(e,{firstOnly:!0}).length&&r.setHasCasedChar()},CharacterSet({node:e},t){"property"===e.kind&&eP.has(e.value)&&t.setHasCasedChar()}},eX={Alternative:({body:e},t,r)=>e.map(r).join(""),Assertion({kind:e,negate:t}){if("string_end"===e)return"$";if("string_start"===e)return"^";if("word_boundary"===e)return t?eT`\B`:eT`\b`;throw Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if("number"!=typeof e)throw Error("Unexpected named backref in transformed AST");if(!t.useFlagMods&&"strict"===t.accuracy&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+e},CapturingGroup(e,t,r){let{body:n,name:a,number:s}=e,i={ignoreCase:t.currentFlags.ignoreCase},o=t.originMap.get(e);return o&&(i.hidden=!0,s>o.number&&(i.transferTo=o.number)),t.captureMap.set(s,i),`(${a?`?<${a}>`:""}${n.map(r).join("|")})`},Character({value:e},t){let r=eE(e),n=e3(e,{escDigit:"Backreference"===t.lastNode.type,inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(n!==r)return n;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&e5(r)){let e=ey(r);return t.inCharClass?e.join(""):e.length>1?`[${e.join("")}]`:e[0]}return r},CharacterClass(e,t,r){let{kind:n,negate:a,parent:s}=e,{body:i}=e;if("intersection"===n&&!t.useFlagV)throw Error("Use of character class intersection requires min target ES2024");eg.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&i.some(e8)&&(i=[M(45),...i.filter(e=>!e8(e))]);let o=()=>`[${a?"^":""}${i.map(r).join("intersection"===n?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||eg.bugNestedClassIgnoresNegation)&&!a){let t=i.filter(e=>"CharacterClass"===e.type&&"union"===e.kind&&e.negate);if(t.length){let n=B(),a=n.body[0];return n.parent=s,a.parent=n,e.body=i=i.filter(e=>!t.includes(e)),i.length?(e.parent=a,a.body.push(e)):n.body.pop(),t.forEach(e=>{let t=R({body:[e]});e.parent=t,t.parent=n,n.body.push(t)}),r(n)}}t.inCharClass=!0;let n=o();return t.inCharClass=!1,n}let l=i[0];if("union"===n&&!a&&l&&((!t.useFlagV||!t.verbose)&&"union"===s.kind&&!(eg.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&"intersection"===s.kind&&1===i.length&&"CharacterClassRange"!==l.type))return i.map(r).join("");if(!t.useFlagV&&"CharacterClass"===s.type)throw Error("Uses nested character class in a way that requires min target ES2024");return o()},CharacterClassRange(e,t){let r=e.min.value,n=e.max.value,a={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},s=e3(r,a),i=e3(n,a),o=new Set;return t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&(function(e){let t=e.map(e=>e.codePointAt(0)).sort((e,t)=>e-t),r=[],n=null;for(let e=0;e<t.length;e++)t[e+1]===t[e]+1?n??=t[e]:null===n?r.push(t[e]):(r.push([n,t[e]]),n=null);return r})(e2(e)).forEach(e=>{o.add(Array.isArray(e)?`${e3(e[0],a)}-${e3(e[1],a)}`:e3(e,a))}),`${s}-${i}${[...o].join("")}`},CharacterSet({kind:e,negate:t,value:r,key:n},a){if("dot"===e)return a.currentFlags.dotAll?a.appliedGlobalFlags.dotAll||a.useFlagMods?".":"[^]":eT`[^\n]`;if("digit"===e)return t?eT`\D`:eT`\d`;if("property"===e){if(a.useAppliedIgnoreCase&&a.currentFlags.ignoreCase&&eP.has(r))throw Error(`Unicode property "${r}" can't be case-insensitive when other chars have specific case`);return`${t?eT`\P`:eT`\p`}{${n?`${n}=`:""}${r}}`}if("word"===e)return t?eT`\W`:eT`\w`;throw Error(`Unexpected character set kind "${e}"`)},Flags:(e,t)=>(t.appliedGlobalFlags.ignoreCase?"i":"")+(e.dotAll?"s":"")+(e.sticky?"y":""),Group({atomic:e,body:t,flags:r,parent:n},a,s){let i=a.currentFlags;r&&(a.currentFlags=e_(i,r));let o=t.map(s).join("|"),l=a.verbose||1!==t.length||"Quantifier"===n.type||e||a.useFlagMods&&r?`(?${function(e,t,r){if(e)return">";let n="";if(t&&r){let{enable:e,disable:r}=t;n=(e?.ignoreCase?"i":"")+(e?.dotAll?"s":"")+(r?"-":"")+(r?.ignoreCase?"i":"")+(r?.dotAll?"s":"")}return`${n}:`}(e,r,a.useFlagMods)}${o})`:o;return a.currentFlags=i,l},LookaroundAssertion({body:e,kind:t,negate:r},n,a){let s=`${"lookahead"===t?"":"<"}${r?"!":"="}`;return`(?${s}${e.map(a).join("|")})`},Quantifier:(e,t,r)=>r(e.body)+function({kind:e,max:t,min:r}){return(r||1!==t?r||t!==1/0?1===r&&t===1/0?"+":r===t?`{${r}}`:`{${r},${t===1/0?"":t}}`:"*":"?")+({greedy:"",lazy:"?",possessive:"+"})[e]}(e),Subroutine({isRecursive:e,ref:t},r){if(!e)throw Error("Unexpected non-recursive subroutine in transformed AST");let n=r.recursionLimit;return 0===t?`(?R=${n})`:eT`\g<${t}&R=${n}>`}},eK=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),eZ=new Set(["-","\\","]","^","["]),eJ=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),e0=new Map([[9,eT`\t`],[10,eT`\n`],[11,eT`\v`],[12,eT`\f`],[13,eT`\r`],[8232,eT`\u2028`],[8233,eT`\u2029`],[65279,eT`\uFEFF`]]),e1=/^\p{Cased}$/u;function e5(e){return e1.test(e)}function e2(e,t){let r=!!t?.firstOnly,n=e.min.value,a=e.max.value,s=[];if(n<65&&(65535===a||a>=131071)||65536===n&&a>=131071)return s;for(let e=n;e<=a;e++){let t=eE(e);if(!e5(t))continue;let i=ey(t).filter(e=>{let t=e.codePointAt(0);return t<n||t>a});if(i.length&&(s.push(...i),r))break}return s}function e3(e,{escDigit:t,inCharClass:r,useFlagV:n}){var a;if(e0.has(e))return e0.get(e);if(e<32||e>126&&e<160||e>262143||t&&(a=e)>47&&a<58)return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;let s=eE(e);return((r?n?eJ:eZ:eK).has(s)?"\\":"")+s}function e6({type:e}){return"CapturingGroup"===e||"Group"===e||"LookaroundAssertion"===e}function e8({type:e,value:t}){return"Character"===e&&45===t}var e4=class e extends RegExp{#e=new Map;#t=null;#r;#n=null;#a=null;rawOptions={};get source(){return this.#r||"(?:)"}constructor(t,r,n){let a=!!n?.lazyCompile;if(t instanceof RegExp){if(n)throw Error("Cannot provide options when copying a regexp");super(t,r),this.#r=t.source,t instanceof e&&(this.#e=t.#e,this.#n=t.#n,this.#a=t.#a,this.rawOptions=t.rawOptions)}else{let e={hiddenCaptures:[],strategy:null,transfers:[],...n};super(a?"":t,r),this.#r=t,this.#e=function(e,t){let r=new Map;for(let t of e)r.set(t,{hidden:!0});for(let[e,n]of t)for(let t of n)eb(r,t,{}).transferTo=e;return r}(e.hiddenCaptures,e.transfers),this.#a=e.strategy,this.rawOptions=n??{}}a||(this.#t=this)}exec(t){if(!this.#t){let{lazyCompile:t,...r}=this.rawOptions;this.#t=new e(this.#r,this.flags,r)}let r=this.global||this.sticky,n=this.lastIndex;if("clip_search"===this.#a&&r&&n){this.lastIndex=0;let e=this.#s(t.slice(n));return e&&(function(e,t,r,n){if(e.index+=t,e.input=r,n){let r=e.indices;for(let e=0;e<r.length;e++){let n=r[e];n&&(r[e]=[n[0]+t,n[1]+t])}let n=r.groups;n&&Object.keys(n).forEach(e=>{let r=n[e];r&&(n[e]=[r[0]+t,r[1]+t])})}}(e,n,t,this.hasIndices),this.lastIndex+=n),e}return this.#s(t)}#s(e){let t;this.#t.lastIndex=this.lastIndex;let r=super.exec.call(this.#t,e);if(this.lastIndex=this.#t.lastIndex,!r||!this.#e.size)return r;let n=[...r];r.length=1,this.hasIndices&&(t=[...r.indices],r.indices.length=1);let a=[0];for(let e=1;e<n.length;e++){let{hidden:s,transferTo:i}=this.#e.get(e)??{};if(s?a.push(null):(a.push(r.length),r.push(n[e]),this.hasIndices&&r.indices.push(t[e])),i&&void 0!==n[e]){let s=a[i];if(!s)throw Error(`Invalid capture transfer to "${s}"`);if(r[s]=n[e],this.hasIndices&&(r.indices[s]=t[e]),r.groups){this.#n||(this.#n=function(e){let t,r=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,n=new Map,a=0,s=0;for(;t=r.exec(e);){let{0:e,groups:{capture:r,name:i}}=t;"["===e?a++:a?"]"===e&&a--:r&&(s++,i&&n.set(s,i))}return n}(this.source));let a=this.#n.get(i);a&&(r.groups[a]=n[e],this.hasIndices&&(r.indices.groups[a]=t[e]))}}}return r}},e9=function(e={}){let t={target:"auto",cache:new Map,...e};return t.regexConstructor||=e=>(function(e,t){let r=function(e,t){let r=eN(t),n=function(e,t){let r={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t};eH(e);let n={accuracy:r.accuracy,asciiWordBoundaries:r.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:ek[r.bestEffortTarget]>=ek.ES2024,passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:e.flags.digitIsAscii,spaceIsAscii:e.flags.spaceIsAscii,wordIsAscii:e.flags.wordIsAscii};Q(e,ev,n);let a={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},s={currentFlags:a,prevFlags:null,globalFlags:a,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:n.subroutineRefMap};return Q(e,eB,s),Q(e,eF,{groupsByName:s.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:s.reffedNodesByReferencer}),e._originMap=s.groupOriginByCopy,e._strategy=n.strategy,e}(x(e,{flags:r.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline},skipBackrefValidation:r.rules.allowOrphanBackrefs,unicodePropertyMap:eD}),{accuracy:r.accuracy,asciiWordBoundaries:r.rules.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,bestEffortTarget:r.target}),a=function(e,t){let r=eN(t),n=ek[r.target]>=ek.ES2024,a=ek[r.target]>=ek.ES2025,s=r.rules.recursionLimit;if(!Number.isInteger(s)||s<2||s>20)throw Error("Invalid recursionLimit; use 2-20");let i=null,o=null;if(!a){let t=[e.flags.ignoreCase];Q(e,eQ,{getCurrentModI:()=>t.at(-1),popModI(){t.pop()},pushModI(e){t.push(e)},setHasCasedChar(){t.at(-1)?i=!0:o=!0}})}let l={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||i)&&!o)},c=e,u={accuracy:r.accuracy,appliedGlobalFlags:l,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:c,originMap:e._originMap,recursionLimit:s,useAppliedIgnoreCase:!!(!a&&i&&o),useFlagMods:a,useFlagV:n,verbose:r.verbose};function d(e){return u.lastNode=c,c=e,(function(e,t){if(null==e)throw Error(t??"Value expected");return e})(eX[e.type],`Unexpected node type "${e.type}"`)(e,u,d)}let h={pattern:e.body.map(d).join("|"),flags:d(e.flags),options:{...e.options}};return n||(delete h.options.force.v,h.options.disable.v=!0,h.options.unicodeSetsPlugin=null),h._captureTransfers=new Map,h._hiddenCaptures=[],u.captureMap.forEach((e,t)=>{e.hidden&&h._hiddenCaptures.push(t),e.transferTo&&eb(h._captureTransfers,e.transferTo,[]).push(t)}),h}(n,r),s=function(e,t){let r,{hiddenCaptures:n,mode:a}={hiddenCaptures:[],mode:"plugin",...t},s=t?.captureTransfers??new Map;if(!RegExp(eo,"su").test(e))return{pattern:e,captureTransfers:s,hiddenCaptures:n};if("plugin"===a&&et(e,es`\(\?\(DEFINE\)`,J.DEFAULT))throw Error("DEFINE groups cannot be used with recursion");let i=[],o=et(e,es`\\[1-9]`,J.DEFAULT),l=new Map,c=[],u=!1,d=0,h=0;for(eu.lastIndex=0;r=eu.exec(e);){let{0:t,groups:{captureName:p,rDepth:m,gRNameOrNum:f,gRDepth:E}}=r;if("["===t)d++;else if(d)"]"===t&&d--;else if(m){if(eh(m),u)throw Error(ed);if(o)throw Error(`${"external"===a?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);let t=e.slice(0,r.index),l=e.slice(eu.lastIndex);if(et(l,eo,J.DEFAULT))throw Error(ed);let c=m-1;e=ep(t,l,c,!1,n,i,h),s=ef(s,t,c,i.length,0,h);break}else if(f){eh(E);let d=!1;for(let e of c)if(e.name===f||e.num===+f){if(d=!0,e.hasRecursedWithin)throw Error(ed);break}if(!d)throw Error(es`Recursive \g cannot be used outside the referenced group "${"external"===a?f:es`\g<${f}&R=${E}>`}"`);let p=l.get(f),m=function(e,t){let r,n=/\\?./gsu;n.lastIndex=t;let a=e.length,s=0,i=1;for(;r=n.exec(e);){let[e]=r;if("["===e)s++;else if(s)"]"===e&&s--;else if("("===e)i++;else if(")"===e&&!--i){a=r.index;break}}return e.slice(t,a)}(e,p);if(o&&et(m,es`${el}|\((?!\?)`,J.DEFAULT))throw Error(`${"external"===a?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);let T=e.slice(p,r.index),g=m.slice(T.length+t.length),A=i.length,_=E-1,b=ep(T,g,_,!0,n,i,h);s=ef(s,T,_,i.length-A,A,h);let k=e.slice(0,p),C=e.slice(p+m.length);e=`${k}${b}${C}`,eu.lastIndex+=b.length-t.length-T.length-g.length,c.forEach(e=>e.hasRecursedWithin=!0),u=!0}else if(p)h++,l.set(String(h),eu.lastIndex),l.set(p,eu.lastIndex),c.push({num:h,name:p});else if("("===t[0]){let e="("===t;e&&(h++,l.set(String(h),eu.lastIndex)),c.push(e?{num:h}:{})}else")"===t&&c.pop()}return n.push(...i),{pattern:e,captureTransfers:s,hiddenCaptures:n}}(a.pattern,{captureTransfers:a._captureTransfers,hiddenCaptures:a._hiddenCaptures,mode:"external"}),i=function(e,t){let r,n=t?.hiddenCaptures??[],a=t?.captureTransfers??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:a,hiddenCaptures:n};let s="(?:(?=(",i=[0],o=[],l=0,c=0,u=NaN;do{let t;r=!1;let d=0,h=0,p=!1;for(er.lastIndex=Number.isNaN(u)?0:u+s.length;t=er.exec(e);){let{0:m,index:f,groups:{capturingStart:E,noncapturingStart:T}}=t;if("["===m)d++;else if(d)"]"===m&&d--;else if("(?>"!==m||p){if(p&&T)h++;else if(E)p?h++:(l++,i.push(l+c));else if(")"===m&&p){if(!h){let t=l+ ++c;e=`${e.slice(0,u)}${s}${e.slice(u+3,f)}))<$$${t}>)${e.slice(f+1)}`,r=!0,o.push(t);for(let e=0;e<n.length;e++)n[e]>=t&&n[e]++;if(a.size){let e=new Map;a.forEach((r,n)=>{e.set(n>=t?n+1:n,r.map(e=>e>=t?e+1:e))}),a=e}break}h--}}else u=f,p=!0}}while(r);return n.push(...o),{pattern:e=ee(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:e,groups:{backrefNum:t,wrappedBackrefNum:r}})=>{if(t){let r=+t;if(r>i.length-1)throw Error(`Backref "${e}" greater than number of captures`);return`\\${i[r]}`}return`\\${r}`},J.DEFAULT),captureTransfers:a,hiddenCaptures:n}}(function(e){let t;if(!RegExp(`${en}\\+`).test(e))return{pattern:e};let r=[],n=null,a=null,s="",i=0;for(ea.lastIndex=0;t=ea.exec(e);){let{0:c,index:u,groups:{qBase:d,qMod:h,invalidQ:p}}=t;if("["===c)i||(a=u),i++;else if("]"===c)i?i--:a=null;else if(!i)if("+"===h&&s&&!s.startsWith("(")){if(p)throw Error(`Invalid quantifier "${c}"`);let t=-1;if(/^\{\d+\}$/.test(d)){var o,l;o=e,l=u+d.length,e=o.slice(0,l)+""+o.slice(l+h.length)}else{if(")"===s||"]"===s){let t=")"===s?n:a;if(null===t)throw Error(`Invalid unmatched "${s}"`);e=`${e.slice(0,t)}(?>${e.slice(t,u)}${d})${e.slice(u+c.length)}`}else e=`${e.slice(0,u-s.length)}(?>${s}${d})${e.slice(u+c.length)}`;t+=4}ea.lastIndex+=t}else"("===c[0]?r.push(u):")"===c&&(n=r.length?r.pop():null);s=c}return{pattern:e}}(s.pattern).pattern,{captureTransfers:s.captureTransfers,hiddenCaptures:s.hiddenCaptures}),o={pattern:i.pattern,flags:`${r.hasIndices?"d":""}${r.global?"g":""}${a.flags}${a.options.disable.v?"u":"v"}`};if(r.avoidSubclass){if(r.lazyCompileLength!==1/0)throw Error("Lazy compilation requires subclass")}else{let e=i.hiddenCaptures.sort((e,t)=>e-t),t=Array.from(i.captureTransfers),a=n._strategy,s=o.pattern.length>=r.lazyCompileLength;(e.length||t.length||a||s)&&(o.options={...e.length&&{hiddenCaptures:e},...t.length&&{transfers:t},...a&&{strategy:a},...s&&{lazyCompile:s}})}return o}(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t});return r.options?new e4(r.pattern,r.flags,r.options):new RegExp(r.pattern,r.flags)})(e,{target:t.target}),{createScanner:e=>new s(e,t),createString:e=>({content:e})}}({forgiving:!0}),e7=Object.fromEntries(n.i.flatMap(e=>{var t;return(null!=(t=e.aliases)?t:[]).map(t=>[t,e.id])})),te=new Set(Object.keys(n.t)),tt=e=>{let t=e.trim().toLowerCase();return e7[t]||(te.has(t),t)},tr=new Map,tn=new Map,ta=new Map,ts=e=>{var t;return"string"==typeof e?e:null!=(t=e.name)?t:"custom"};function ti(e={}){var t;let r=null!=(t=e.themes)?t:["github-light","github-dark"];return{name:"shiki",type:"code-highlighter",supportsLanguage(e){let t=tt(e);return te.has(t)},getSupportedLanguages:()=>Array.from(te),getThemes:()=>r,highlight({code:e,language:t,themes:r},n){let s,i,o=tt(t),l=[ts(r[0]),ts(r[1])],c=(s=e.slice(0,100),i=e.length>100?e.slice(-100):"",`${o}:${l[0]}:${l[1]}:${e.length}:${s}:${i}`);return tn.has(c)?tn.get(c):(n&&(ta.has(c)||ta.set(c,new Set),ta.get(c).add(n)),((e,t)=>{let r,n,s=(r=e,n=t,`${r}-${ts(n[0])}-${ts(n[1])}`);if(tr.has(s))return tr.get(s);let i=(0,a.O_)({themes:t,langs:[e],engine:e9});return tr.set(s,i),i})(o,r).then(t=>{let r=t.getLoadedLanguages().includes(o)?o:"text",n=t.codeToTokens(e,{lang:r,themes:{light:l[0],dark:l[1]}});tn.set(c,n);let a=ta.get(c);if(a){for(let e of a)e(n);ta.delete(c)}}).catch(e=>{console.error("[Streamdown Code] Failed to highlight code:",e),ta.delete(c)}),null)}}}var to=ti()},23153:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,n=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,l=/^\s+|\s+$/g;function c(e){return e?e.replace(l,""):""}e.exports=function(e,l){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];l=l||{};var u=1,d=1;function h(e){var t=e.match(r);t&&(u+=t.length);var n=e.lastIndexOf("\n");d=~n?e.length-n:d+e.length}function p(){var e={line:u,column:d};return function(t){return t.position=new m(e),E(n),t}}function m(e){this.start=e,this.end={line:u,column:d},this.source=l.source}function f(t){var r=Error(l.source+":"+u+":"+d+": "+t);if(r.reason=t,r.filename=l.source,r.line=u,r.column=d,r.source=e,l.silent);else throw r}function E(t){var r=t.exec(e);if(r){var n=r[0];return h(n),e=e.slice(n.length),r}}function T(e){var t;for(e=e||[];t=g();)!1!==t&&e.push(t);return e}function g(){var t=p();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var r=2;""!=e.charAt(r)&&("*"!=e.charAt(r)||"/"!=e.charAt(r+1));)++r;if(r+=2,""===e.charAt(r-1))return f("End of comment missing");var n=e.slice(2,r-2);return d+=2,h(n),e=e.slice(r),d+=2,t({type:"comment",comment:n})}}m.prototype.content=e,E(n);var A,_=[];for(T(_);A=function(){var e=p(),r=E(a);if(r){if(g(),!E(s))return f("property missing ':'");var n=E(i),l=e({type:"declaration",property:c(r[0].replace(t,"")),value:n?c(n[0].replace(t,"")):""});return E(o),l}}();)!1!==A&&(_.push(A),T(_));return _}},25167:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(66206).A)("book-text",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["path",{d:"M8 11h8",key:"vwpz6n"}],["path",{d:"M8 7h6",key:"1f0q6e"}]])},26190:(e,t,r)=>{r.d(t,{a:()=>s});var n=r(71352),a={startOnLoad:!1,theme:"default",securityLevel:"strict",fontFamily:"monospace",suppressErrorRendering:!0},s=function(e={}){let t=!1,r={...a,...e.config},s={initialize(s){r={...a,...e.config,...s},n.default.initialize(r),t=!0},render:async(e,a)=>(t||(n.default.initialize(r),t=!0),await n.default.render(e,a))};return{name:"mermaid",type:"diagram",language:"mermaid",getMermaid:e=>(e&&s.initialize(e),s)}}()},27472:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(66206).A)("git-pull-request",[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["line",{x1:"6",x2:"6",y1:"9",y2:"21",key:"rroup"}]])},65700:(e,t,r)=>{r.d(t,{Lv:()=>n.v,XX:()=>n.y,eB:()=>n.B,jH:()=>n.C});var n=r(85793)},81235:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(66206).A)("github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]])},83426:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let r=null;if(!e||"string"!=typeof e)return r;let n=(0,a.default)(e),s="function"==typeof t;return n.forEach(e=>{if("declaration"!==e.type)return;let{property:n,value:a}=e;s?t(n,a,e):a&&((r=r||{})[n]=a)}),r};let a=n(r(23153))},85793:(e,t,r)=>{r.d(t,{A:()=>iQ,B:()=>iX,C:()=>iK,c:()=>aj,f:()=>sn,l:()=>iJ,v:()=>iC,y:()=>ij});var n=r(1856),a=r(26885),s=r(18662);let i={indicator:"indicator",textOnly:"text-only",remove:"remove"};function o(e,t){if("string"!=typeof e)return null;try{return new URL(e)}catch{if(t)try{return new URL(e,t)}catch{return null}if(e.startsWith("/")||e.startsWith("./")||e.startsWith("../"))try{return new URL(e,"http://example.com")}catch{}return null}}let l=new Set(["https:","http:","irc:","ircs:","mailto:","xmpp:","blob:"]),c=new Set(["javascript:","data:","file:","vbscript:"]);function u(e,t,r,n=!1,a=!1,s=[]){if(!e)return null;if("string"==typeof e&&e.startsWith("#")&&!a)try{if(new URL(e,"http://example.com").hash===e)return e}catch{}if("string"==typeof e&&e.startsWith("data:"))return a&&n&&e.startsWith("data:image/")?e:null;if("string"==typeof e&&e.startsWith("blob:")){try{let t=new URL(e);if("blob:"===t.protocol&&e.length>5){let t=e.substring(5);if(t&&t.length>0&&"invalid"!==t)return e}}catch{}return null}let i=o(e,r);if(!i||c.has(i.protocol)||!(l.has(i.protocol)||s.includes(i.protocol)||s.includes("*")))return null;if("mailto:"===i.protocol||!i.protocol.match(/^https?:$/))return i.href;let d="string"==typeof e&&(e.startsWith("/")||e.startsWith("./")||e.startsWith("../"));return i&&t.some(e=>{let t=o(e,r);return!!t&&t.origin===i.origin&&i.href.startsWith(t.href)})?d?i.pathname+i.search+i.hash:i.href:t.includes("*")?"https:"!==i.protocol&&"http:"!==i.protocol?null:d?i.pathname+i.search+i.hash:i.href:null}let d=Symbol("node-seen"),h="object"==typeof self?self:globalThis,p=e=>((e,t)=>{let r=(t,r)=>(e.set(r,t),t),n=a=>{if(e.has(a))return e.get(a);let[s,i]=t[a];switch(s){case 0:case -1:return r(i,a);case 1:{let e=r([],a);for(let t of i)e.push(n(t));return e}case 2:{let e=r({},a);for(let[t,r]of i)e[n(t)]=n(r);return e}case 3:return r(new Date(i),a);case 4:{let{source:e,flags:t}=i;return r(new RegExp(e,t),a)}case 5:{let e=r(new Map,a);for(let[t,r]of i)e.set(n(t),n(r));return e}case 6:{let e=r(new Set,a);for(let t of i)e.add(n(t));return e}case 7:{let{name:e,message:t}=i;return r(new h[e](t),a)}case 8:return r(BigInt(i),a);case"BigInt":return r(Object(BigInt(i)),a);case"ArrayBuffer":return r(new Uint8Array(i).buffer,i);case"DataView":{let{buffer:e}=new Uint8Array(i);return r(new DataView(e),i)}}return r(new h[s](i),a)};return n})(new Map,e)(0),{toString:m}={},{keys:f}=Object,E=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let r=m.call(e).slice(8,-1);switch(r){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,r]}return r.includes("Array")?[1,r]:r.includes("Error")?[7,r]:[2,r]},T=([e,t])=>0===e&&("function"===t||"symbol"===t),g=(e,{json:t,lossy:r}={})=>{let n=[];return((e,t,r,n)=>{let a=(e,t)=>{let a=n.push(e)-1;return r.set(t,a),a},s=n=>{if(r.has(n))return r.get(n);let[i,o]=E(n);switch(i){case 0:{let t=n;switch(o){case"bigint":i=8,t=n.toString();break;case"function":case"symbol":if(e)throw TypeError("unable to serialize "+o);t=null;break;case"undefined":return a([-1],n)}return a([i,t],n)}case 1:{if(o){let e=n;return"DataView"===o?e=new Uint8Array(n.buffer):"ArrayBuffer"===o&&(e=new Uint8Array(n)),a([o,[...e]],n)}let e=[],t=a([i,e],n);for(let t of n)e.push(s(t));return t}case 2:{if(o)switch(o){case"BigInt":return a([o,n.toString()],n);case"Boolean":case"Number":case"String":return a([o,n.valueOf()],n)}if(t&&"toJSON"in n)return s(n.toJSON());let r=[],l=a([i,r],n);for(let t of f(n))(e||!T(E(n[t])))&&r.push([s(t),s(n[t])]);return l}case 3:return a([i,n.toISOString()],n);case 4:{let{source:e,flags:t}=n;return a([i,{source:e,flags:t}],n)}case 5:{let t=[],r=a([i,t],n);for(let[r,a]of n)(e||!(T(E(r))||T(E(a))))&&t.push([s(r),s(a)]);return r}case 6:{let t=[],r=a([i,t],n);for(let r of n)(e||!T(E(r)))&&t.push(s(r));return r}}let{message:l}=n;return a([i,{name:o,message:l}],n)};return s})(!(t||r),!!t,new Map,n)(e),n},A="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?p(g(e,t)):structuredClone(e):(e,t)=>p(g(e,t));var _=r(14824),b=r(78444),k=r(43918);let C=/[#.]/g;var N=r(54802),I=r(62196),S=r(49009);function y(e,t,r){let n=r?function(e){let t=new Map;for(let r of e)t.set(r.toLowerCase(),r);return t}(r):void 0;return function(r,a,...s){let i;if(null==r)i={type:"root",children:[]},s.unshift(a);else{let o=(i=function(e,t){let r,n,a=e||"",s={},i=0;for(;i<a.length;){C.lastIndex=i;let e=C.exec(a),t=a.slice(i,e?e.index:a.length);t&&(r?"#"===r?s.id=t:Array.isArray(s.className)?s.className.push(t):s.className=[t]:n=t,i+=t.length),e&&(r=e[0],i++)}return{type:"element",tagName:n||t||"div",properties:s,children:[]}}(r,t)).tagName.toLowerCase(),l=n?n.get(o):void 0;if(i.tagName=l||o,function(e){if(null===e||"object"!=typeof e||Array.isArray(e))return!0;if("string"!=typeof e.type)return!1;for(let t of Object.keys(e)){let r=e[t];if(r&&"object"==typeof r){if(!Array.isArray(r))return!0;for(let e of r)if("number"!=typeof e&&"string"!=typeof e)return!0}}return!!("children"in e&&Array.isArray(e.children))}(a))s.unshift(a);else for(let[t,r]of Object.entries(a))!function(e,t,r,n){let a,s=(0,N.I)(e,r);if(null!=n){if("number"==typeof n){if(Number.isNaN(n))return;a=n}else a="boolean"==typeof n?n:"string"==typeof n?s.spaceSeparated?(0,S.q)(n):s.commaSeparated?(0,k.q)(n):s.commaOrSpaceSeparated?(0,S.q)((0,k.q)(n).join(" ")):D(s,s.property,n):Array.isArray(n)?[...n]:"style"===s.property?function(e){let t=[];for(let[r,n]of Object.entries(e))t.push([r,n].join(": "));return t.join("; ")}(n):String(n);if(Array.isArray(a)){let e=[];for(let t of a)e.push(D(s,s.property,t));a=e}"className"===s.property&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[s.property]=a}}(e,i.properties,t,r)}for(let e of s)!function e(t,r){if(null==r);else if("number"==typeof r||"string"==typeof r)t.push({type:"text",value:String(r)});else if(Array.isArray(r))for(let n of r)e(t,n);else if("object"==typeof r&&"type"in r)"root"===r.type?e(t,r.children):t.push(r);else throw Error("Expected node, nodes, or string, got `"+r+"`")}(i.children,e);return"element"===i.type&&"template"===i.tagName&&(i.content={type:"root",children:i.children},i.children=[]),i}}function D(e,t,r){if("string"==typeof r){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(""===r||(0,I.S)(r)===(0,I.S)(t)))return!0}return r}let x=y(b.qy,"div"),R=y(b.JW,"g",["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"]);function L(e,t){let r=e.indexOf("\r",t),n=e.indexOf("\n",t);return -1===n?r:-1===r||r+1===n?n:r<n?r:n}let O={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/"},w={}.hasOwnProperty,M=Object.prototype;function P(e,t){let r;switch(t.nodeName){case"#comment":return r={type:"comment",value:t.data},B(e,t,r),r;case"#document":case"#document-fragment":{let n="mode"in t&&("quirks"===t.mode||"limited-quirks"===t.mode);if(r={type:"root",children:v(e,t.childNodes),data:{quirksMode:n}},e.file&&e.location){let t=String(e.file),n=function(e){let t=String(e),r=[];return{toOffset:function(e){if(e&&"number"==typeof e.line&&"number"==typeof e.column&&!Number.isNaN(e.line)&&!Number.isNaN(e.column)){for(;r.length<e.line;){let e=r[r.length-1],n=L(t,e),a=-1===n?t.length+1:n+1;if(e===a)break;r.push(a)}let n=(e.line>1?r[e.line-2]:0)+e.column-1;if(n<r[e.line-1])return n}},toPoint:function(e){if("number"==typeof e&&e>-1&&e<=t.length){let n=0;for(;;){let a=r[n];if(void 0===a){let e=L(t,r[n-1]);a=-1===e?t.length+1:e+1,r[n]=a}if(a>e)return{line:n+1,column:e-(n>0?r[n-1]:0)+1,offset:e};n++}}}}}(t),a=n.toPoint(0),s=n.toPoint(t.length);(0,_.ok)(a,"expected `start`"),(0,_.ok)(s,"expected `end`"),r.position={start:a,end:s}}return r}case"#documentType":return B(e,t,r={type:"doctype"}),r;case"#text":return r={type:"text",value:t.value},B(e,t,r),r;default:return function(e,t){let r=e.schema;e.schema=t.namespaceURI===O.svg?b.JW:b.qy;let n=-1,a={};for(;++n<t.attrs.length;){let e=t.attrs[n],r=(e.prefix?e.prefix+":":"")+e.name;w.call(M,r)||(a[r]=e.value)}let s=("svg"===e.schema.space?R:x)(t.tagName,a,v(e,t.childNodes));if(B(e,t,s),"template"===s.tagName){let r=t.sourceCodeLocation,n=r&&r.startTag&&F(r.startTag),a=r&&r.endTag&&F(r.endTag),i=P(e,t.content);n&&a&&e.file&&(i.position={start:n.end,end:a.start}),s.content=i}return e.schema=r,s}(e,t)}}function v(e,t){let r=-1,n=[];for(;++r<t.length;){let a=P(e,t[r]);n.push(a)}return n}function B(e,t,r){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){let n=function(e,t,r){let n=F(r);if("element"===t.type){let a=t.children[t.children.length-1];if(n&&!r.endTag&&a&&a.position&&a.position.end&&(n.end=Object.assign({},a.position.end)),e.verbose){let n,a={};if(r.attrs)for(n in r.attrs)w.call(r.attrs,n)&&(a[(0,N.I)(e.schema,n).property]=F(r.attrs[n]));(0,_.ok)(r.startTag,"a start tag should exist");let s=F(r.startTag),i=r.endTag?F(r.endTag):void 0,o={opening:s};i&&(o.closing=i),o.properties=a,t.data={position:o}}}return n}(e,r,t.sourceCodeLocation);n&&(e.location=!0,r.position=n)}}function F(e){let t=H({line:e.startLine,column:e.startCol,offset:e.startOffset}),r=H({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||r?{start:t,end:r}:void 0}function H(e){return e.line&&e.column?e:void 0}var U=r(8959);let G={}.hasOwnProperty,j=(0,U.A)("type",{handlers:{root:function(e,t){let r={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return r.childNodes=$(e.children,r,t),Y(e,r),r},element:function(e,t){let r,n=t;"element"===e.type&&"svg"===e.tagName.toLowerCase()&&"html"===t.space&&(n=b.JW);let a=[];if(e.properties){for(r in e.properties)if("children"!==r&&G.call(e.properties,r)){let t=function(e,t,r){let n=(0,N.I)(e,t);if(!1===r||null==r||"number"==typeof r&&Number.isNaN(r)||!r&&n.boolean)return;Array.isArray(r)&&(r=n.commaSeparated?(0,k.A)(r):(0,S.A)(r));let a={name:n.attribute,value:!0===r?"":String(r)};if(n.space&&"html"!==n.space&&"svg"!==n.space){let e=a.name.indexOf(":");e<0?a.prefix="":(a.name=a.name.slice(e+1),a.prefix=n.attribute.slice(0,e)),a.namespace=O[n.space]}return a}(n,r,e.properties[r]);t&&a.push(t)}}let s=n.space;(0,_.ok)(s);let i={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:O[s],childNodes:[],parentNode:null};return i.childNodes=$(e.children,i,n),Y(e,i),"template"===e.tagName&&e.content&&(i.content=function(e,t){let r={nodeName:"#document-fragment",childNodes:[]};return r.childNodes=$(e.children,r,t),Y(e,r),r}(e.content,n)),i},text:function(e){let t={nodeName:"#text",value:e.value,parentNode:null};return Y(e,t),t},comment:function(e){let t={nodeName:"#comment",data:e.value,parentNode:null};return Y(e,t),t},doctype:function(e){let t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Y(e,t),t}}});function $(e,t,r){let n=-1,a=[];if(e)for(;++n<e.length;){let s=j(e[n],r);s.parentNode=t,a.push(s)}return a}function Y(e,t){let r=e.position;r&&r.start&&r.end&&((0,_.ok)("number"==typeof r.start.offset),(0,_.ok)("number"==typeof 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})}var z=r(30736);let q=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]);!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"}(s1||(s1={}));let V={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function W(e){return e>=55296&&e<=57343}function Q(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159}function X(e){return e>=64976&&e<=65007||q.has(e)}!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"}(s5||(s5={}));class K{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,t){let{line:r,col:n,offset:a}=this,s=n+t,i=a+t;return{code:e,startLine:r,endLine:r,startCol:s,endCol:s,startOffset:i,endOffset:i}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){let t=this.html.charCodeAt(this.pos+1);if(t>=56320&&t<=57343)return this.pos++,this._addGap(),(e-55296)*1024+9216+t}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,s1.EOF;return this._err(s5.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let t=0;t<e.length;t++)if((32|this.html.charCodeAt(this.pos+t))!==e.charCodeAt(t))return!1;return!0}peek(e){let t=this.pos+e;if(t>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,s1.EOF;let r=this.html.charCodeAt(t);return r===s1.CARRIAGE_RETURN?s1.LINE_FEED:r}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,s1.EOF;let e=this.html.charCodeAt(this.pos);return e===s1.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,s1.LINE_FEED):e===s1.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,W(e)&&(e=this._processSurrogate(e)),null===this.handler.onParseError||e>31&&e<127||e===s1.LINE_FEED||e===s1.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){Q(e)?this._err(s5.controlCharacterInInputStream):X(e)&&this._err(s5.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}function Z(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}!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"}(s2||(s2={}));let J=new Uint16Array('ᵁ<\xd5ıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms\x7f\x84\x8b\x90\x95\x98\xa6\xb3\xb9\xc8\xcflig耻\xc6䃆P耻&䀦cute耻\xc1䃁reve;䄂Āiyx}rc耻\xc2䃂;䐐r;쀀\ud835\udd04rave耻\xc0䃀pha;䎑acr;䄀d;橓Āgp\x9d\xa1on;䄄f;쀀\ud835\udd38plyFunction;恡ing耻\xc5䃅Ācs\xbe\xc3r;쀀\ud835\udc9cign;扔ilde耻\xc3䃃ml耻\xc4䃄Ѐaceforsu\xe5\xfb\xfeėĜĢħĪĀcr\xea\xf2kslash;或Ŷ\xf6\xf8;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀\ud835\udd05pf;쀀\ud835\udd39eve;䋘c\xf2ēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻\xa9䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻\xc7䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷\xf2ſ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;쀀\ud835\udc9epĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀\ud835\udd07Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀\ud835\udd3bƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegra\xecȹoɴ\0\0ͻ\xbb͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔e\xe5ˊ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;쀀\ud835\udc9frok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻\xd0䃐cute耻\xc9䃉ƀaiyӒӗӜron;䄚rc耻\xca䃊;䐭ot;䄖r;쀀\ud835\udd08rave耻\xc8䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀\ud835\udd3csilon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻\xcb䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀\ud835\udd09lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀\ud835\udd3dAll;戀riertrf;愱c\xf2JTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀\ud835\udd0a;拙pf;쀀\ud835\udd3eeater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀\ud835\udca2;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅ\xf2کrok;䄦mpńېۘownHum\xf0įqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻\xcd䃍Āiyܓܘrc耻\xce䃎;䐘ot;䄰r;愑rave耻\xcc䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lie\xf3ϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀\ud835\udd40a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻\xcf䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀\ud835\udd0dpf;쀀\ud835\udd41ǣ߇\0ߌr;쀀\ud835\udca5rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀\ud835\udd0epf;쀀\ud835\udd42cr;쀀\ud835\udca6ր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\xe1Μs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀\ud835\udd0fĀ;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊight\xe1οight\xe1ϊf;쀀\ud835\udd43erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂ\xf2ࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀\ud835\udd10nusPlus;戓pf;쀀\ud835\udd44c\xf2੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦\xeberyThi\xeetedĀGLଆreaterGreate\xf2ٳessLes\xf3ੈLine;䀊r;쀀\ud835\udd11Ȁ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;쀀\ud835\udca9ilde耻\xd1䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻\xd3䃓Āiyීrc耻\xd4䃔;䐞blac;䅐r;쀀\ud835\udd12rave耻\xd2䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀\ud835\udd46enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀\ud835\udcaaash耻\xd8䃘iŬืde耻\xd5䃕es;樷ml耻\xd6䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀\ud835\udd13i;䎦;䎠usMinus;䂱Āipຢອncareplan\xe5ڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀\ud835\udcab;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀\ud835\udd14pf;愚cr;쀀\ud835\udcacBEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻\xae䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r\xbbཹ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;쀀\ud835\udd16ortȀDLRUᄪᄴᄾᅉownArrow\xbbОeftArrow\xbb࢚ightArrow\xbbpArrow;憑gma;䎣allCircle;战pf;쀀\ud835\udd4aɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀\ud835\udcaear;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Th\xe1ྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et\xbbሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻\xde䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀\ud835\udd17ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀\ud835\udd4bipleDot;惛Āctዖዛr;쀀\ud835\udcafrok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻\xda䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻\xdb䃛;䐣blac;䅰r;쀀\ud835\udd18rave耻\xd9䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀\ud835\udd4cЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥own\xe1ϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀\ud835\udcb0ilde;䅨ml耻\xdc䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀\ud835\udd19pf;쀀\ud835\udd4dcr;쀀\ud835\udcb1dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀\ud835\udd1apf;쀀\ud835\udd4ecr;쀀\ud835\udcb2Ȁfiosᓋᓐᓒᓘr;쀀\ud835\udd1b;䎞pf;쀀\ud835\udd4fcr;쀀\ud835\udcb3ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻\xdd䃝Āiyᔉᔍrc;䅶;䐫r;쀀\ud835\udd1cpf;쀀\ud835\udd50cr;쀀\ud835\udcb4ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidt\xe8a;䎖r;愨pf;愤cr;쀀\ud835\udcb5ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻\xe1䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻\xe2䃢te肻\xb4̆;䐰lig耻\xe6䃦Ā;r\xb2ᖺ;쀀\ud835\udd1erave耻\xe0䃠ĀepᗊᗖĀfpᗏᗔsym;愵\xe8ᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e\xbbᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢\xbb\xb9arr;捼Āgpᙣᙧon;䄅f;쀀\ud835\udd52;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒ\xf1ᚃing耻\xe5䃥ƀctyᚡᚦᚨr;쀀\ud835\udcb6;䀪mpĀ;eᚯ\xf1ʈilde耻\xe3䃣ml耻\xe4䃤Āciᛂᛈonin\xf4ɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e\xbbᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰s\xe9ᜌno\xf5ēƀahwᝯᝳ;䎲;愶een;扬r;쀀\ud835\udd1fgcostuvwឍឝឳេ៕៛ƀaiuបពរ\xf0ݠrc;旯p\xbb፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄e\xe5ᑄ\xe5ᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀\ud835\udd53Ā;tᏋᡣom\xbbᏌtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻\xa6䂦Ȁceioᥑᥖᥚᥠr;쀀\ud835\udcb7mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t\xbbpƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁\xeeړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻\xe7䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻\xb8ƭptyv;榲t脀\xa2;eᨭᨮ䂢r\xe4Ʋr;쀀\ud835\udd20ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark\xbbᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖\xbbཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it\xbb᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;q\xc7\xc6ɭ\0\0aĀ;t䀬;䁀ƀ;fl戁\xeeᅠeĀmxent\xbbe\xf3ɍǧ\0ᬇĀ;dኻᬂot;橭n\xf4Ɇƀfryᬐᬔᬗ;쀀\ud835\udd54o\xe4ɔ脀\xa9;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀\ud835\udcb8Ā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\xe3᭳u\xe3᭵ee;拎edge;拏en耻\xa4䂤earrowĀlrᯮ᯳eft\xbbᮀight\xbbᮽe\xe4ᯝĀciᰁᰇonin\xf4Ƿnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍r\xf2ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸\xf2ᄳhĀ;vᱚᱛ怐\xbbऊūᱡᱧarow;椏a\xe3̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻\xb0䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀\ud835\udd21arĀlrᲳᲵ\xbbࣜ\xbbသʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀\xf7;o᳧ᳰntimes;拇n\xf8᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀\ud835\udd55ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedg\xe5\xfanƀadhᄮᵝᵧownarrow\xf3ᲃarpoonĀlrᵲᵶef\xf4Ჴigh\xf4ᲶŢᵿᶅkaro\xf7གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀\ud835\udcb9;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃r\xf2Щa\xf2ྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴo\xf4ĀcsḎḔute耻\xe9䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻\xea䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀\ud835\udd22ƀ;rsṐṑṗ檚ave耻\xe8䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et\xbbẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀\ud835\udd56ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on\xbbớ;䏵ȀcsuvỪỳἋἣĀioữḱrc\xbbḮɩỹ\0\0ỻ\xedՈantĀglἂἆtr\xbbṝess\xbbṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯o\xf4͒ĀahὉὋ;䎷耻\xf0䃰Āmrὓὗl耻\xeb䃫o;悬ƀcipὡὤὧl;䀡s\xf4ծĀeoὬὴctatio\xeeՙnential\xe5չৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotse\xf1Ṅy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀\ud835\udd23lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀\ud835\udd57ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻\xbd䂽;慓耻\xbc䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻\xbe䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀\ud835\udcbbࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlan\xf4٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀\ud835\udd24Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox\xbbℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀\ud835\udd58Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0pro\xf8r;楸qĀlqؿ↖les\xf3₈i\xed٫Āen↣↭rtneqq;쀀≩︀\xc5↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽r\xf2ΠȀilmr⇐⇔⇗⇛rs\xf0ᒄf\xbb․il\xf4کĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it\xbb∊lip;怦con;抹r;쀀\ud835\udd25sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀\ud835\udd59bar;怕ƀclt≯≴≸r;쀀\ud835\udcbdas\xe8⇴rok;䄧Ābp⊂⊇ull;恃hen\xbbᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻\xed䃭ƀ;iyݱ⊰⊵rc耻\xee䃮;䐸Ācx⊼⊿y;䐵cl耻\xa1䂡ĀfrΟ⋉;쀀\ud835\udd26rave耻\xec䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓in\xe5ގar\xf4ܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝do\xf4⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙er\xf3ᕣ\xe3⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀\ud835\udd5aa;䎹uest耻\xbf䂿Āci⎊⎏r;쀀\ud835\udcbenʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻\xef䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀\ud835\udd27ath;䈷pf;쀀\ud835\udd5bǣ⏬\0⏱r;쀀\ud835\udcbfrcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀\ud835\udd28reen;䄸cy;䑅cy;䑜pf;쀀\ud835\udd5ccr;쀀\ud835\udcc0ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼r\xf2\xf2Εail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴ra\xeeࡌbda;䎻gƀ;dlࢎⓁⓃ;榑\xe5ࢎ;檅uo耻\xab䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝\xeb≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼\xecࢰ\xe2┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□a\xe9⓶arpoonĀdu▯▴own\xbbњp\xbb०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoon\xf3quigarro\xf7⇰hreetimes;拋ƀ;qs▋ও◺lan\xf4বʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋ppro\xf8Ⓠot;拖qĀgq♃♅\xf4উgt\xf2⒌\xf4ছi\xedলƀilr♕࣡♚sht;楼;쀀\ud835\udd29Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖r\xf2◁orne\xf2ᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che\xbb⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox\xbb⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽r\xebࣁgƀlmr⛿✍✔eftĀar০✇ight\xe1৲apsto;柼ight\xe1৽parrowĀlr✥✩ef\xf4⓭ight;憬ƀafl✶✹✽r;榅;쀀\ud835\udd5dus;樭imes;樴š❋❏st;戗\xe1ፎƀ;ef❗❘᠀旊nge\xbb❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇r\xf2ࢨorne\xf2ᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀\ud835\udcc1mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹re\xe5◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀\xc5⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻\xaf䂯Āet⡗⡙;時Ā;e⡞⡟朠se\xbb⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻ow\xeeҌef\xf4ए\xf0Ꮡker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle\xbbᘦr;쀀\ud835\udd2ao;愧ƀcdn⢯⢴⣉ro耻\xb5䂵Ȁ;acdᑤ⢽⣀⣄s\xf4ᚧir;櫰ot肻\xb7Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛\xf2−\xf0ઁĀdp⣩⣮els;抧f;쀀\ud835\udd5eĀct⣸⣽r;쀀\ud835\udcc2pos\xbbᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la\xbb˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉ro\xf8urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻\xa0ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸ui\xf6ୣĀei⩊⩎ar;椨\xedistĀ;sடr;쀀\ud835\udd2bȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lan\xf4i\xed௪Ā;rஶ⪁\xbbஷƀAap⪊⪍⪑r\xf2⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹r\xf2⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro\xf7⫁ightarro\xf7⪐ƀ;qs⪺⫪lan\xf4ౕĀ;sౕ⫴\xbbశi\xedౝĀ;rవ⫾iĀ;eచథi\xe4ඐĀpt⬌⬑f;쀀\ud835\udd5f膀\xac;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lle\xecl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳u\xe5ಥĀ;cಘ⭸Ā;eಒ⭽\xf1ಘȀAait⮈⮋⮝⮧r\xf2⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow\xbb⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉u\xe5;쀀\ud835\udcc3ortɭ⬅\0\0⯖ar\xe1⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭\xe5\xe5ഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗ\xf1സȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇ\xecௗlde耻\xf1䃱\xe7ృiangleĀlrⱒⱜeftĀ;eచⱚ\xf1దightĀ;eೋⱥ\xf1Ā;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耻\xf3䃳ĀiyⴼⵅrĀ;cⵂ耻\xf4䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀\ud835\udd2cͯ\0\0\0ⶂn;䋛ave耻\xf2䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨr\xf2᪀Āirⶠr;榾oss;榻n\xe5๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀\ud835\udd60ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨r\xf2᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f\xbbⷿ耻\xaa䂪耻\xba䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧\xf2⸁ash耻\xf8䃸l;折iŬⸯ⸴de耻\xf5䃵esĀ;aǛ⸺s;樶ml耻\xf6䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀\xb6;l䂶le\xecЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀\ud835\udd2dƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕ma\xf4੶ne;明ƀ;tv⺿⻀⻈䏀chfork\xbb´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎\xf6⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻\xb1ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀\ud835\udd61nd耻\xa3䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷u\xe5໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾ppro\xf8⽃urlye\xf1໙\xf1໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨i\xedໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺\xf0⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴\xefrel;抰Āci⿀⿅r;쀀\ud835\udcc5;䏈ncsp;怈̀fiopsu⋢⿱r;쀀\ud835\udd2epf;쀀\ud835\udd62rime;恗cr;쀀\ud835\udcc6ƀaeo⿸〉〓tĀei々rnion\xf3ڰnt;樖stĀ;e【】䀿\xf1Ἑ\xf4༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがr\xf2Ⴓ\xf2ϝail;検ar\xf2ᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕i\xe3ᅮmptyv;榳gȀ;del࿑らるろ;榒;榥\xe5࿑uo耻\xbb䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞\xeb≝\xf0✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶al\xf3༞ƀabrョリヮr\xf2៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗\xec\xe2ヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜn\xe5Ⴛar\xf4ྩt;断ƀilrㅩဣㅮsht;楽;쀀\ud835\udd2fĀaoㅷㆆrĀduㅽㅿ\xbbѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭa\xe9トarpoonĀduㆻㆿow\xeeㅾp\xbb႒eftĀah㇊㇐rrow\xf3arpoon\xf3Ցightarrows;應quigarro\xf7ニhreetimes;拌g;䋚ingdotse\xf1ἲƀahm㈍㈐㈓r\xf2a\xf2Ց;怏oustĀ;a㈞掱che\xbbmid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾r\xebဃƀafl㉇㉊㉎r;榆;쀀\ud835\udd63us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒ar\xf2㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀\ud835\udcc7Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠re\xe5ㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛qu\xef➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡u\xe5ᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓i\xedሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒\xeb∨Ā;oਸ਼t耻\xa7䂧i;䀻war;椩mĀin㍩\xf0nu\xf3\xf1t;朶rĀ;o㍶⁕쀀\ud835\udd30Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜i\xe4ᑤara\xec耻\xad䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲ar\xf2ᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetm\xe9㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀\ud835\udd64aĀdr㑍ЂesĀ;u㑔㑕晠it\xbb㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍\xf1ᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝\xf1ᆮƀ;afᅻ㒦ְrť㒫ֱ\xbbᅼar\xf2ᅈȀcemt㒹㒾㓂㓅r;쀀\ud835\udcc8tm\xee\xf1i\xec㐕ar\xe6ᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psilo\xeeỠh\xe9⺯s\xbb⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦ppro\xf8㋺urlye\xf1ᇾ\xf1ᇳƀaes㖂㖈㌛ppro\xf8㌚q\xf1㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻\xb9䂹耻\xb2䂲耻\xb3䂳;櫆Ā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㘦㘨\xeb∮Ā;oਫwar;椪lig耻\xdf䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄r\xebƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀\ud835\udd31Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮ppro\xf8im\xbbኬs\xf0ኞĀas㚺㚮\xf0rn耻\xfe䃾Ǭ̟㛆⋧es膀\xd7;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀\xe1⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀\ud835\udd65rk;櫚\xe1㍢rime;怴ƀaip㜏㜒㝤d\xe5ቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own\xbbᶻeftĀ;e⠀㜾\xf1म;扜ightĀ;e㊪㝋\xf1ၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀\ud835\udcc9;䑆cy;䑛rok;䅧Āio㞋㞎x\xf4headĀlr㞗㞠eftarro\xf7ࡏightarrow\xbbཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶r\xf2ϭar;楣Ācr㟜㟢ute耻\xfa䃺\xf2ᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻\xfb䃻;䑃ƀabh㠃㠆㠋r\xf2Ꭽlac;䅱a\xf2ᏃĀir㠓㠘sht;楾;쀀\ud835\udd32rave耻\xf9䃹š㠧㠱rĀlr㠬㠮\xbbॗ\xbbႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r\xbb㡆op;挏ri;旸Āal㡖㡚cr;䅫肻\xa8͉Āgp㡢㡦on;䅳f;쀀\ud835\udd66̀adhlsuᅋ㡸㡽፲㢑㢠own\xe1ᎳarpoonĀlr㢈㢌ef\xf4㠭igh\xf4㠯iƀ;hl㢙㢚㢜䏅\xbbᏺon\xbb㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r\xbb㢽op;挎ng;䅯ri;旹cr;쀀\ud835\udccaƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨\xbb᠓Āam㣯㣲r\xf2㢨l耻\xfc䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠r\xf2ϷarĀ;v㤦㤧櫨;櫩as\xe8ϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖app\xe1␕othin\xe7ẖƀhir㓫⻈㥙op\xf4⾵Ā;hᎷ㥢\xefㆍĀiu㥩㥭gm\xe1㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟et\xe1㚜iangleĀlr㦪㦯eft\xbbथight\xbbၑy;䐲ash\xbbံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨa\xf2ᑩr;쀀\ud835\udd33tr\xe9㦮suĀbp㧯㧱\xbbജ\xbb൙pf;쀀\ud835\udd67ro\xf0tr\xe9㦴Ācu㨆㨋r;쀀\ud835\udccbĀbp㨐㨘nĀEe㦀㨖\xbb㥾nĀEe㦒㨞\xbb㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀\ud835\udd34pf;쀀\ud835\udd68Ā;eᑹ㩦at\xe8ᑹcr;쀀\ud835\udcccૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtr\xe9៑r;쀀\ud835\udd35ĀAa㪔㪗r\xf2σr\xf2৶;䎾ĀAa㪡㪤r\xf2θr\xf2৫a\xf0✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀\ud835\udd69im\xe5ឲĀAa㫇㫊r\xf2ώr\xf2ਁĀcq㫒ីr;쀀\ud835\udccdĀpt៖㫜r\xe9។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻\xfd䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻\xa5䂥r;쀀\ud835\udd36cy;䑗pf;쀀\ud835\udd6acr;쀀\ud835\udcceĀcm㬦㬩y;䑎l耻\xff䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡tr\xe6ᕟa;䎶r;쀀\ud835\udd37cy;䐶grarr;懝pf;쀀\ud835\udd6bcr;쀀\ud835\udccfĀjn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),ee=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 et(e){return e>=s3.ZERO&&e<=s3.NINE}String.fromCodePoint,!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"}(s3||(s3={})),!function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(s6||(s6={})),!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"}(s8||(s8={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(s4||(s4={}));class er{constructor(e,t,r){this.decodeTree=e,this.emitCodePoint=t,this.errors=r,this.state=s8.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=s4.Strict}startEntity(e){this.decodeMode=e,this.state=s8.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case s8.EntityStart:if(e.charCodeAt(t)===s3.NUM)return this.state=s8.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1);return this.state=s8.NamedEntity,this.stateNamedEntity(e,t);case s8.NumericStart:return this.stateNumericStart(e,t);case s8.NumericDecimal:return this.stateNumericDecimal(e,t);case s8.NumericHex:return this.stateNumericHex(e,t);case s8.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===s3.LOWER_X?(this.state=s8.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=s8.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,r,n){if(t!==r){let a=r-t;this.result=this.result*Math.pow(n,a)+Number.parseInt(e.substr(t,a),n),this.consumed+=a}}stateNumericHex(e,t){let r=t;for(;t<e.length;){var n;let a=e.charCodeAt(t);if(!et(a)&&(!((n=a)>=s3.UPPER_A)||!(n<=s3.UPPER_F))&&(!(n>=s3.LOWER_A)||!(n<=s3.LOWER_F)))return this.addToNumericResult(e,r,t,16),this.emitNumericEntity(a,3);t+=1}return this.addToNumericResult(e,r,t,16),-1}stateNumericDecimal(e,t){let r=t;for(;t<e.length;){let n=e.charCodeAt(t);if(!et(n))return this.addToNumericResult(e,r,t,10),this.emitNumericEntity(n,2);t+=1}return this.addToNumericResult(e,r,t,10),-1}emitNumericEntity(e,t){var r,n,a;if(this.consumed<=t)return null==(r=this.errors)||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===s3.SEMI)this.consumed+=1;else if(this.decodeMode===s4.Strict)return 0;return this.emitCodePoint((n=this.result)>=55296&&n<=57343||n>1114111?65533:null!=(a=ee.get(n))?a:n,this.consumed),this.errors&&(e!==s3.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:r}=this,n=r[this.treeIndex],a=(n&s6.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){let s=e.charCodeAt(t);if(this.treeIndex=function(e,t,r,n){let a=(t&s6.BRANCH_LENGTH)>>7,s=t&s6.JUMP_TABLE;if(0===a)return 0!==s&&n===s?r:-1;if(s){let t=n-s;return t<0||t>=a?-1:e[r+t]-1}let i=r,o=i+a-1;for(;i<=o;){let t=i+o>>>1,r=e[t];if(r<n)i=t+1;else{if(!(r>n))return e[t+a];o=t-1}}return -1}(r,n,this.treeIndex+Math.max(1,a),s),this.treeIndex<0)return 0===this.result||this.decodeMode===s4.Attribute&&(0===a||function(e){var t;return e===s3.EQUALS||(t=e)>=s3.UPPER_A&&t<=s3.UPPER_Z||t>=s3.LOWER_A&&t<=s3.LOWER_Z||et(t)}(s))?0:this.emitNotTerminatedNamedEntity();if(0!=(a=((n=r[this.treeIndex])&s6.VALUE_LENGTH)>>14)){if(s===s3.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==s4.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return -1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:r}=this,n=(r[t]&s6.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,n,this.consumed),null==(e=this.errors)||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,r){let{decodeTree:n}=this;return this.emitCodePoint(1===t?n[e]&~s6.VALUE_LENGTH:n[e+1],r),3===t&&this.emitCodePoint(n[e+2],r),r}end(){var e;switch(this.state){case s8.NamedEntity:return 0!==this.result&&(this.decodeMode!==s4.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case s8.NumericDecimal:return this.emitNumericEntity(0,2);case s8.NumericHex:return this.emitNumericEntity(0,3);case s8.NumericStart:return null==(e=this.errors)||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case s8.EntityStart:return 0}}}!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/"}(s9||(s9={})),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"}(s7||(s7={})),function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"}(ie||(ie={})),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"}(it||(it={})),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"}(ir||(ir={}));let en=new Map([[it.A,ir.A],[it.ADDRESS,ir.ADDRESS],[it.ANNOTATION_XML,ir.ANNOTATION_XML],[it.APPLET,ir.APPLET],[it.AREA,ir.AREA],[it.ARTICLE,ir.ARTICLE],[it.ASIDE,ir.ASIDE],[it.B,ir.B],[it.BASE,ir.BASE],[it.BASEFONT,ir.BASEFONT],[it.BGSOUND,ir.BGSOUND],[it.BIG,ir.BIG],[it.BLOCKQUOTE,ir.BLOCKQUOTE],[it.BODY,ir.BODY],[it.BR,ir.BR],[it.BUTTON,ir.BUTTON],[it.CAPTION,ir.CAPTION],[it.CENTER,ir.CENTER],[it.CODE,ir.CODE],[it.COL,ir.COL],[it.COLGROUP,ir.COLGROUP],[it.DD,ir.DD],[it.DESC,ir.DESC],[it.DETAILS,ir.DETAILS],[it.DIALOG,ir.DIALOG],[it.DIR,ir.DIR],[it.DIV,ir.DIV],[it.DL,ir.DL],[it.DT,ir.DT],[it.EM,ir.EM],[it.EMBED,ir.EMBED],[it.FIELDSET,ir.FIELDSET],[it.FIGCAPTION,ir.FIGCAPTION],[it.FIGURE,ir.FIGURE],[it.FONT,ir.FONT],[it.FOOTER,ir.FOOTER],[it.FOREIGN_OBJECT,ir.FOREIGN_OBJECT],[it.FORM,ir.FORM],[it.FRAME,ir.FRAME],[it.FRAMESET,ir.FRAMESET],[it.H1,ir.H1],[it.H2,ir.H2],[it.H3,ir.H3],[it.H4,ir.H4],[it.H5,ir.H5],[it.H6,ir.H6],[it.HEAD,ir.HEAD],[it.HEADER,ir.HEADER],[it.HGROUP,ir.HGROUP],[it.HR,ir.HR],[it.HTML,ir.HTML],[it.I,ir.I],[it.IMG,ir.IMG],[it.IMAGE,ir.IMAGE],[it.INPUT,ir.INPUT],[it.IFRAME,ir.IFRAME],[it.KEYGEN,ir.KEYGEN],[it.LABEL,ir.LABEL],[it.LI,ir.LI],[it.LINK,ir.LINK],[it.LISTING,ir.LISTING],[it.MAIN,ir.MAIN],[it.MALIGNMARK,ir.MALIGNMARK],[it.MARQUEE,ir.MARQUEE],[it.MATH,ir.MATH],[it.MENU,ir.MENU],[it.META,ir.META],[it.MGLYPH,ir.MGLYPH],[it.MI,ir.MI],[it.MO,ir.MO],[it.MN,ir.MN],[it.MS,ir.MS],[it.MTEXT,ir.MTEXT],[it.NAV,ir.NAV],[it.NOBR,ir.NOBR],[it.NOFRAMES,ir.NOFRAMES],[it.NOEMBED,ir.NOEMBED],[it.NOSCRIPT,ir.NOSCRIPT],[it.OBJECT,ir.OBJECT],[it.OL,ir.OL],[it.OPTGROUP,ir.OPTGROUP],[it.OPTION,ir.OPTION],[it.P,ir.P],[it.PARAM,ir.PARAM],[it.PLAINTEXT,ir.PLAINTEXT],[it.PRE,ir.PRE],[it.RB,ir.RB],[it.RP,ir.RP],[it.RT,ir.RT],[it.RTC,ir.RTC],[it.RUBY,ir.RUBY],[it.S,ir.S],[it.SCRIPT,ir.SCRIPT],[it.SEARCH,ir.SEARCH],[it.SECTION,ir.SECTION],[it.SELECT,ir.SELECT],[it.SOURCE,ir.SOURCE],[it.SMALL,ir.SMALL],[it.SPAN,ir.SPAN],[it.STRIKE,ir.STRIKE],[it.STRONG,ir.STRONG],[it.STYLE,ir.STYLE],[it.SUB,ir.SUB],[it.SUMMARY,ir.SUMMARY],[it.SUP,ir.SUP],[it.TABLE,ir.TABLE],[it.TBODY,ir.TBODY],[it.TEMPLATE,ir.TEMPLATE],[it.TEXTAREA,ir.TEXTAREA],[it.TFOOT,ir.TFOOT],[it.TD,ir.TD],[it.TH,ir.TH],[it.THEAD,ir.THEAD],[it.TITLE,ir.TITLE],[it.TR,ir.TR],[it.TRACK,ir.TRACK],[it.TT,ir.TT],[it.U,ir.U],[it.UL,ir.UL],[it.SVG,ir.SVG],[it.VAR,ir.VAR],[it.WBR,ir.WBR],[it.XMP,ir.XMP]]);function ea(e){var t;return null!=(t=en.get(e))?t:ir.UNKNOWN}let es=ir,ei={[s9.HTML]:new Set([es.ADDRESS,es.APPLET,es.AREA,es.ARTICLE,es.ASIDE,es.BASE,es.BASEFONT,es.BGSOUND,es.BLOCKQUOTE,es.BODY,es.BR,es.BUTTON,es.CAPTION,es.CENTER,es.COL,es.COLGROUP,es.DD,es.DETAILS,es.DIR,es.DIV,es.DL,es.DT,es.EMBED,es.FIELDSET,es.FIGCAPTION,es.FIGURE,es.FOOTER,es.FORM,es.FRAME,es.FRAMESET,es.H1,es.H2,es.H3,es.H4,es.H5,es.H6,es.HEAD,es.HEADER,es.HGROUP,es.HR,es.HTML,es.IFRAME,es.IMG,es.INPUT,es.LI,es.LINK,es.LISTING,es.MAIN,es.MARQUEE,es.MENU,es.META,es.NAV,es.NOEMBED,es.NOFRAMES,es.NOSCRIPT,es.OBJECT,es.OL,es.P,es.PARAM,es.PLAINTEXT,es.PRE,es.SCRIPT,es.SECTION,es.SELECT,es.SOURCE,es.STYLE,es.SUMMARY,es.TABLE,es.TBODY,es.TD,es.TEMPLATE,es.TEXTAREA,es.TFOOT,es.TH,es.THEAD,es.TITLE,es.TR,es.TRACK,es.UL,es.WBR,es.XMP]),[s9.MATHML]:new Set([es.MI,es.MO,es.MN,es.MS,es.MTEXT,es.ANNOTATION_XML]),[s9.SVG]:new Set([es.TITLE,es.FOREIGN_OBJECT,es.DESC]),[s9.XLINK]:new Set,[s9.XML]:new Set,[s9.XMLNS]:new Set},eo=new Set([es.H1,es.H2,es.H3,es.H4,es.H5,es.H6]);it.STYLE,it.SCRIPT,it.XMP,it.IFRAME,it.NOEMBED,it.NOFRAMES,it.PLAINTEXT,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"}(ia||(ia={}));let el={DATA:ia.DATA,RCDATA:ia.RCDATA,RAWTEXT:ia.RAWTEXT,SCRIPT_DATA:ia.SCRIPT_DATA,PLAINTEXT:ia.PLAINTEXT,CDATA_SECTION:ia.CDATA_SECTION};function ec(e){return e>=s1.LATIN_CAPITAL_A&&e<=s1.LATIN_CAPITAL_Z}function eu(e){return e>=s1.LATIN_SMALL_A&&e<=s1.LATIN_SMALL_Z||ec(e)}function ed(e){return eu(e)||e>=s1.DIGIT_0&&e<=s1.DIGIT_9}function eh(e){return e===s1.SPACE||e===s1.LINE_FEED||e===s1.TABULATION||e===s1.FORM_FEED}function ep(e){return eh(e)||e===s1.SOLIDUS||e===s1.GREATER_THAN_SIGN}class em{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=ia.DATA,this.returnState=ia.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new K(t),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new er(J,(e,t)=>{this.preprocessor.pos=this.entityStartPos+t-1,this._flushCodePointConsumedAsCharacterReference(e)},t.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(s5.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:e=>{this._err(s5.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+e)},validateNumericCharacterReference:e=>{let t=function(e){if(e===s1.NULL)return s5.nullCharacterReference;if(e>1114111)return s5.characterReferenceOutsideUnicodeRange;if(W(e))return s5.surrogateCharacterReference;if(X(e))return s5.noncharacterCharacterReference;if(Q(e)||e===s1.CARRIAGE_RETURN)return s5.controlCharacterReference;return null}(e);t&&this._err(t,1)}}:void 0)}_err(e,t=0){var r,n;null==(n=(r=this.handler).onParseError)||n.call(r,this.preprocessor.getError(e,t))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;let e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||null==e||e())}write(e,t,r){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||null==r||r()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return!!this.preprocessor.endOfChunkHit&&(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0)}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t<e;t++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,t){return!!this.preprocessor.startsWith(e,t)&&(this._advanceBy(e.length-1),!0)}_createStartTagToken(){this.currentToken={type:s2.START_TAG,tagName:"",tagID:ir.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:s2.END_TAG,tagName:"",tagID:ir.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:s2.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:s2.DOCTYPE,name:e,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e,t;let r=this.currentToken;null===Z(r,this.currentAttr.name)?(r.attrs.push(this.currentAttr),r.location&&this.currentLocation&&((null!=(e=(t=r.location).attrs)?e:t.attrs=Object.create(null))[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue())):this._err(s5.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(e){this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location&&(e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){let e=this.currentToken;this.prepareToken(e),e.tagID=ea(e.tagName),e.type===s2.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(s5.endTagWithAttributes),e.selfClosing&&this._err(s5.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case s2.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case s2.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case s2.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){let e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:s2.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken)if(this.currentCharacterToken.type===e){this.currentCharacterToken.chars+=t;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(e,t)}_emitCodePoint(e){let t=eh(e)?s2.WHITESPACE_CHARACTER:e===s1.NULL?s2.NULL_CHARACTER:s2.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(s2.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=ia.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?s4.Attribute:s4.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===ia.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===ia.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===ia.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case ia.DATA:this._stateData(e);break;case ia.RCDATA:this._stateRcdata(e);break;case ia.RAWTEXT:this._stateRawtext(e);break;case ia.SCRIPT_DATA:this._stateScriptData(e);break;case ia.PLAINTEXT:this._statePlaintext(e);break;case ia.TAG_OPEN:this._stateTagOpen(e);break;case ia.END_TAG_OPEN:this._stateEndTagOpen(e);break;case ia.TAG_NAME:this._stateTagName(e);break;case ia.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case ia.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case ia.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case ia.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case ia.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case ia.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case ia.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case ia.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case ia.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case ia.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case ia.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case ia.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case ia.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case ia.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case ia.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case ia.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case ia.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case ia.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case ia.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case ia.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case ia.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case ia.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case ia.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case ia.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case ia.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case ia.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case ia.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case ia.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case ia.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case ia.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case ia.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case ia.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case ia.BOGUS_COMMENT:this._stateBogusComment(e);break;case ia.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case ia.COMMENT_START:this._stateCommentStart(e);break;case ia.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case ia.COMMENT:this._stateComment(e);break;case ia.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case ia.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case ia.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case ia.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case ia.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case ia.COMMENT_END:this._stateCommentEnd(e);break;case ia.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case ia.DOCTYPE:this._stateDoctype(e);break;case ia.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case ia.DOCTYPE_NAME:this._stateDoctypeName(e);break;case ia.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case ia.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case ia.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case ia.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case ia.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case ia.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case ia.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case ia.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case ia.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case ia.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case ia.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case ia.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case ia.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case ia.CDATA_SECTION:this._stateCdataSection(e);break;case ia.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case ia.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case ia.CHARACTER_REFERENCE:this._stateCharacterReference();break;case ia.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;default:throw Error("Unknown state")}}_stateData(e){switch(e){case s1.LESS_THAN_SIGN:this.state=ia.TAG_OPEN;break;case s1.AMPERSAND:this._startCharacterReference();break;case s1.NULL:this._err(s5.unexpectedNullCharacter),this._emitCodePoint(e);break;case s1.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case s1.AMPERSAND:this._startCharacterReference();break;case s1.LESS_THAN_SIGN:this.state=ia.RCDATA_LESS_THAN_SIGN;break;case s1.NULL:this._err(s5.unexpectedNullCharacter),this._emitChars("�");break;case s1.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case s1.LESS_THAN_SIGN:this.state=ia.RAWTEXT_LESS_THAN_SIGN;break;case s1.NULL:this._err(s5.unexpectedNullCharacter),this._emitChars("�");break;case s1.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case s1.LESS_THAN_SIGN:this.state=ia.SCRIPT_DATA_LESS_THAN_SIGN;break;case s1.NULL:this._err(s5.unexpectedNullCharacter),this._emitChars("�");break;case s1.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case s1.NULL:this._err(s5.unexpectedNullCharacter),this._emitChars("�");break;case s1.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(eu(e))this._createStartTagToken(),this.state=ia.TAG_NAME,this._stateTagName(e);else switch(e){case s1.EXCLAMATION_MARK:this.state=ia.MARKUP_DECLARATION_OPEN;break;case s1.SOLIDUS:this.state=ia.END_TAG_OPEN;break;case s1.QUESTION_MARK:this._err(s5.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=ia.BOGUS_COMMENT,this._stateBogusComment(e);break;case s1.EOF:this._err(s5.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(s5.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=ia.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(eu(e))this._createEndTagToken(),this.state=ia.TAG_NAME,this._stateTagName(e);else switch(e){case s1.GREATER_THAN_SIGN:this._err(s5.missingEndTagName),this.state=ia.DATA;break;case s1.EOF:this._err(s5.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break;default:this._err(s5.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=ia.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){let t=this.currentToken;switch(e){case s1.SPACE:case s1.LINE_FEED:case s1.TABULATION:case s1.FORM_FEED:this.state=ia.BEFORE_ATTRIBUTE_NAME;break;case s1.SOLIDUS:this.state=ia.SELF_CLOSING_START_TAG;break;case s1.GREATER_THAN_SIGN:this.state=ia.DATA,this.emitCurrentTagToken();break;case s1.NULL:this._err(s5.unexpectedNullCharacter),t.tagName+="�";break;case s1.EOF:this._err(s5.eofInTag),this._emitEOFToken();break;default:t.tagName+=String.fromCodePoint(ec(e)?e+32:e)}}_stateRcdataLessThanSign(e){e===s1.SOLIDUS?this.state=ia.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=ia.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){eu(e)?(this.state=ia.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars("</"),this.state=ia.RCDATA,this._stateRcdata(e))}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();switch(this._createEndTagToken(),this.currentToken.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case s1.SPACE:case s1.LINE_FEED:case s1.TABULATION:case s1.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=ia.BEFORE_ATTRIBUTE_NAME,!1;case s1.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=ia.SELF_CLOSING_START_TAG,!1;case s1.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=ia.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=ia.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===s1.SOLIDUS?this.state=ia.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=ia.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){eu(e)?(this.state=ia.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars("</"),this.state=ia.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=ia.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case s1.SOLIDUS:this.state=ia.SCRIPT_DATA_END_TAG_OPEN;break;case s1.EXCLAMATION_MARK:this.state=ia.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break;default:this._emitChars("<"),this.state=ia.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){eu(e)?(this.state=ia.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars("</"),this.state=ia.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=ia.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===s1.HYPHEN_MINUS?(this.state=ia.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=ia.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===s1.HYPHEN_MINUS?(this.state=ia.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=ia.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case s1.HYPHEN_MINUS:this.state=ia.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break;case s1.LESS_THAN_SIGN:this.state=ia.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case s1.NULL:this._err(s5.unexpectedNullCharacter),this._emitChars("�");break;case s1.EOF:this._err(s5.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case s1.HYPHEN_MINUS:this.state=ia.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break;case s1.LESS_THAN_SIGN:this.state=ia.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case s1.NULL:this._err(s5.unexpectedNullCharacter),this.state=ia.SCRIPT_DATA_ESCAPED,this._emitChars("�");break;case s1.EOF:this._err(s5.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=ia.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case s1.HYPHEN_MINUS:this._emitChars("-");break;case s1.LESS_THAN_SIGN:this.state=ia.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case s1.GREATER_THAN_SIGN:this.state=ia.SCRIPT_DATA,this._emitChars(">");break;case s1.NULL:this._err(s5.unexpectedNullCharacter),this.state=ia.SCRIPT_DATA_ESCAPED,this._emitChars("�");break;case s1.EOF:this._err(s5.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=ia.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===s1.SOLIDUS?this.state=ia.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:eu(e)?(this._emitChars("<"),this.state=ia.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=ia.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){eu(e)?(this.state=ia.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("</"),this.state=ia.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=ia.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(V.SCRIPT,!1)&&ep(this.preprocessor.peek(V.SCRIPT.length))){this._emitCodePoint(e);for(let e=0;e<V.SCRIPT.length;e++)this._emitCodePoint(this._consume());this.state=ia.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=ia.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case s1.HYPHEN_MINUS:this.state=ia.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break;case s1.LESS_THAN_SIGN:this.state=ia.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case s1.NULL:this._err(s5.unexpectedNullCharacter),this._emitChars("�");break;case s1.EOF:this._err(s5.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case s1.HYPHEN_MINUS:this.state=ia.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break;case s1.LESS_THAN_SIGN:this.state=ia.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case s1.NULL:this._err(s5.unexpectedNullCharacter),this.state=ia.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars("�");break;case s1.EOF:this._err(s5.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=ia.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case s1.HYPHEN_MINUS:this._emitChars("-");break;case s1.LESS_THAN_SIGN:this.state=ia.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case s1.GREATER_THAN_SIGN:this.state=ia.SCRIPT_DATA,this._emitChars(">");break;case s1.NULL:this._err(s5.unexpectedNullCharacter),this.state=ia.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars("�");break;case s1.EOF:this._err(s5.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=ia.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===s1.SOLIDUS?(this.state=ia.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=ia.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(V.SCRIPT,!1)&&ep(this.preprocessor.peek(V.SCRIPT.length))){this._emitCodePoint(e);for(let e=0;e<V.SCRIPT.length;e++)this._emitCodePoint(this._consume());this.state=ia.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=ia.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case s1.SPACE:case s1.LINE_FEED:case s1.TABULATION:case s1.FORM_FEED:break;case s1.SOLIDUS:case s1.GREATER_THAN_SIGN:case s1.EOF:this.state=ia.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case s1.EQUALS_SIGN:this._err(s5.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=ia.ATTRIBUTE_NAME;break;default:this._createAttr(""),this.state=ia.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case s1.SPACE:case s1.LINE_FEED:case s1.TABULATION:case s1.FORM_FEED:case s1.SOLIDUS:case s1.GREATER_THAN_SIGN:case s1.EOF:this._leaveAttrName(),this.state=ia.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case s1.EQUALS_SIGN:this._leaveAttrName(),this.state=ia.BEFORE_ATTRIBUTE_VALUE;break;case s1.QUOTATION_MARK:case s1.APOSTROPHE:case s1.LESS_THAN_SIGN:this._err(s5.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break;case s1.NULL:this._err(s5.unexpectedNullCharacter),this.currentAttr.name+="�";break;default:this.currentAttr.name+=String.fromCodePoint(ec(e)?e+32:e)}}_stateAfterAttributeName(e){switch(e){case s1.SPACE:case s1.LINE_FEED:case s1.TABULATION:case s1.FORM_FEED:break;case s1.SOLIDUS:this.state=ia.SELF_CLOSING_START_TAG;break;case s1.EQUALS_SIGN:this.state=ia.BEFORE_ATTRIBUTE_VALUE;break;case s1.GREATER_THAN_SIGN:this.state=ia.DATA,this.emitCurrentTagToken();break;case s1.EOF:this._err(s5.eofInTag),this._emitEOFToken();break;default:this._createAttr(""),this.state=ia.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case s1.SPACE:case s1.LINE_FEED:case s1.TABULATION:case s1.FORM_FEED:break;case s1.QUOTATION_MARK:this.state=ia.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case s1.APOSTROPHE:this.state=ia.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case s1.GREATER_THAN_SIGN:this._err(s5.missingAttributeValue),this.state=ia.DATA,this.emitCurrentTagToken();break;default:this.state=ia.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case s1.QUOTATION_MARK:this.state=ia.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case s1.AMPERSAND:this._startCharacterReference();break;case s1.NULL:this._err(s5.unexpectedNullCharacter),this.currentAttr.value+="�";break;case s1.EOF:this._err(s5.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case s1.APOSTROPHE:this.state=ia.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case s1.AMPERSAND:this._startCharacterReference();break;case s1.NULL:this._err(s5.unexpectedNullCharacter),this.currentAttr.value+="�";break;case s1.EOF:this._err(s5.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case s1.SPACE:case s1.LINE_FEED:case s1.TABULATION:case s1.FORM_FEED:this._leaveAttrValue(),this.state=ia.BEFORE_ATTRIBUTE_NAME;break;case s1.AMPERSAND:this._startCharacterReference();break;case s1.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=ia.DATA,this.emitCurrentTagToken();break;case s1.NULL:this._err(s5.unexpectedNullCharacter),this.currentAttr.value+="�";break;case s1.QUOTATION_MARK:case s1.APOSTROPHE:case s1.LESS_THAN_SIGN:case s1.EQUALS_SIGN:case s1.GRAVE_ACCENT:this._err(s5.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break;case s1.EOF:this._err(s5.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case s1.SPACE:case s1.LINE_FEED:case s1.TABULATION:case s1.FORM_FEED:this._leaveAttrValue(),this.state=ia.BEFORE_ATTRIBUTE_NAME;break;case s1.SOLIDUS:this._leaveAttrValue(),this.state=ia.SELF_CLOSING_START_TAG;break;case s1.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=ia.DATA,this.emitCurrentTagToken();break;case s1.EOF:this._err(s5.eofInTag),this._emitEOFToken();break;default:this._err(s5.missingWhitespaceBetweenAttributes),this.state=ia.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case s1.GREATER_THAN_SIGN:this.currentToken.selfClosing=!0,this.state=ia.DATA,this.emitCurrentTagToken();break;case s1.EOF:this._err(s5.eofInTag),this._emitEOFToken();break;default:this._err(s5.unexpectedSolidusInTag),this.state=ia.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){let t=this.currentToken;switch(e){case s1.GREATER_THAN_SIGN:this.state=ia.DATA,this.emitCurrentComment(t);break;case s1.EOF:this.emitCurrentComment(t),this._emitEOFToken();break;case s1.NULL:this._err(s5.unexpectedNullCharacter),t.data+="�";break;default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch(V.DASH_DASH,!0)?(this._createCommentToken(V.DASH_DASH.length+1),this.state=ia.COMMENT_START):this._consumeSequenceIfMatch(V.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(V.DOCTYPE.length+1),this.state=ia.DOCTYPE):this._consumeSequenceIfMatch(V.CDATA_START,!0)?this.inForeignNode?this.state=ia.CDATA_SECTION:(this._err(s5.cdataInHtmlContent),this._createCommentToken(V.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=ia.BOGUS_COMMENT):this._ensureHibernation()||(this._err(s5.incorrectlyOpenedComment),this._createCommentToken(2),this.state=ia.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case s1.HYPHEN_MINUS:this.state=ia.COMMENT_START_DASH;break;case s1.GREATER_THAN_SIGN:{this._err(s5.abruptClosingOfEmptyComment),this.state=ia.DATA;let e=this.currentToken;this.emitCurrentComment(e);break}default:this.state=ia.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){let t=this.currentToken;switch(e){case s1.HYPHEN_MINUS:this.state=ia.COMMENT_END;break;case s1.GREATER_THAN_SIGN:this._err(s5.abruptClosingOfEmptyComment),this.state=ia.DATA,this.emitCurrentComment(t);break;case s1.EOF:this._err(s5.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=ia.COMMENT,this._stateComment(e)}}_stateComment(e){let t=this.currentToken;switch(e){case s1.HYPHEN_MINUS:this.state=ia.COMMENT_END_DASH;break;case s1.LESS_THAN_SIGN:t.data+="<",this.state=ia.COMMENT_LESS_THAN_SIGN;break;case s1.NULL:this._err(s5.unexpectedNullCharacter),t.data+="�";break;case s1.EOF:this._err(s5.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){let t=this.currentToken;switch(e){case s1.EXCLAMATION_MARK:t.data+="!",this.state=ia.COMMENT_LESS_THAN_SIGN_BANG;break;case s1.LESS_THAN_SIGN:t.data+="<";break;default:this.state=ia.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===s1.HYPHEN_MINUS?this.state=ia.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=ia.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===s1.HYPHEN_MINUS?this.state=ia.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=ia.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==s1.GREATER_THAN_SIGN&&e!==s1.EOF&&this._err(s5.nestedComment),this.state=ia.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){let t=this.currentToken;switch(e){case s1.HYPHEN_MINUS:this.state=ia.COMMENT_END;break;case s1.EOF:this._err(s5.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=ia.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){let t=this.currentToken;switch(e){case s1.GREATER_THAN_SIGN:this.state=ia.DATA,this.emitCurrentComment(t);break;case s1.EXCLAMATION_MARK:this.state=ia.COMMENT_END_BANG;break;case s1.HYPHEN_MINUS:t.data+="-";break;case s1.EOF:this._err(s5.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--",this.state=ia.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){let t=this.currentToken;switch(e){case s1.HYPHEN_MINUS:t.data+="--!",this.state=ia.COMMENT_END_DASH;break;case s1.GREATER_THAN_SIGN:this._err(s5.incorrectlyClosedComment),this.state=ia.DATA,this.emitCurrentComment(t);break;case s1.EOF:this._err(s5.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--!",this.state=ia.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case s1.SPACE:case s1.LINE_FEED:case s1.TABULATION:case s1.FORM_FEED:this.state=ia.BEFORE_DOCTYPE_NAME;break;case s1.GREATER_THAN_SIGN:this.state=ia.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break;case s1.EOF:{this._err(s5.eofInDoctype),this._createDoctypeToken(null);let e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._err(s5.missingWhitespaceBeforeDoctypeName),this.state=ia.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(ec(e))this._createDoctypeToken(String.fromCharCode(e+32)),this.state=ia.DOCTYPE_NAME;else switch(e){case s1.SPACE:case s1.LINE_FEED:case s1.TABULATION:case s1.FORM_FEED:break;case s1.NULL:this._err(s5.unexpectedNullCharacter),this._createDoctypeToken("�"),this.state=ia.DOCTYPE_NAME;break;case s1.GREATER_THAN_SIGN:{this._err(s5.missingDoctypeName),this._createDoctypeToken(null);let e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=ia.DATA;break}case s1.EOF:{this._err(s5.eofInDoctype),this._createDoctypeToken(null);let e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=ia.DOCTYPE_NAME}}_stateDoctypeName(e){let t=this.currentToken;switch(e){case s1.SPACE:case s1.LINE_FEED:case s1.TABULATION:case s1.FORM_FEED:this.state=ia.AFTER_DOCTYPE_NAME;break;case s1.GREATER_THAN_SIGN:this.state=ia.DATA,this.emitCurrentDoctype(t);break;case s1.NULL:this._err(s5.unexpectedNullCharacter),t.name+="�";break;case s1.EOF:this._err(s5.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.name+=String.fromCodePoint(ec(e)?e+32:e)}}_stateAfterDoctypeName(e){let t=this.currentToken;switch(e){case s1.SPACE:case s1.LINE_FEED:case s1.TABULATION:case s1.FORM_FEED:break;case s1.GREATER_THAN_SIGN:this.state=ia.DATA,this.emitCurrentDoctype(t);break;case s1.EOF:this._err(s5.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._consumeSequenceIfMatch(V.PUBLIC,!1)?this.state=ia.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(V.SYSTEM,!1)?this.state=ia.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(s5.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=ia.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){let t=this.currentToken;switch(e){case s1.SPACE:case s1.LINE_FEED:case s1.TABULATION:case s1.FORM_FEED:this.state=ia.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case s1.QUOTATION_MARK:this._err(s5.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=ia.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case s1.APOSTROPHE:this._err(s5.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=ia.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case s1.GREATER_THAN_SIGN:this._err(s5.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=ia.DATA,this.emitCurrentDoctype(t);break;case s1.EOF:this._err(s5.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(s5.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=ia.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){let t=this.currentToken;switch(e){case s1.SPACE:case s1.LINE_FEED:case s1.TABULATION:case s1.FORM_FEED:break;case s1.QUOTATION_MARK:t.publicId="",this.state=ia.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case s1.APOSTROPHE:t.publicId="",this.state=ia.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case s1.GREATER_THAN_SIGN:this._err(s5.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=ia.DATA,this.emitCurrentDoctype(t);break;case s1.EOF:this._err(s5.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(s5.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=ia.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){let t=this.currentToken;switch(e){case s1.QUOTATION_MARK:this.state=ia.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case s1.NULL:this._err(s5.unexpectedNullCharacter),t.publicId+="�";break;case s1.GREATER_THAN_SIGN:this._err(s5.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=ia.DATA;break;case s1.EOF:this._err(s5.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){let t=this.currentToken;switch(e){case s1.APOSTROPHE:this.state=ia.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case s1.NULL:this._err(s5.unexpectedNullCharacter),t.publicId+="�";break;case s1.GREATER_THAN_SIGN:this._err(s5.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=ia.DATA;break;case s1.EOF:this._err(s5.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){let t=this.currentToken;switch(e){case s1.SPACE:case s1.LINE_FEED:case s1.TABULATION:case s1.FORM_FEED:this.state=ia.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case s1.GREATER_THAN_SIGN:this.state=ia.DATA,this.emitCurrentDoctype(t);break;case s1.QUOTATION_MARK:this._err(s5.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=ia.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case s1.APOSTROPHE:this._err(s5.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=ia.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case s1.EOF:this._err(s5.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(s5.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=ia.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){let t=this.currentToken;switch(e){case s1.SPACE:case s1.LINE_FEED:case s1.TABULATION:case s1.FORM_FEED:break;case s1.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=ia.DATA;break;case s1.QUOTATION_MARK:t.systemId="",this.state=ia.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case s1.APOSTROPHE:t.systemId="",this.state=ia.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case s1.EOF:this._err(s5.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(s5.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=ia.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){let t=this.currentToken;switch(e){case s1.SPACE:case s1.LINE_FEED:case s1.TABULATION:case s1.FORM_FEED:this.state=ia.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case s1.QUOTATION_MARK:this._err(s5.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=ia.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case s1.APOSTROPHE:this._err(s5.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=ia.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case s1.GREATER_THAN_SIGN:this._err(s5.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=ia.DATA,this.emitCurrentDoctype(t);break;case s1.EOF:this._err(s5.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(s5.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=ia.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){let t=this.currentToken;switch(e){case s1.SPACE:case s1.LINE_FEED:case s1.TABULATION:case s1.FORM_FEED:break;case s1.QUOTATION_MARK:t.systemId="",this.state=ia.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case s1.APOSTROPHE:t.systemId="",this.state=ia.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case s1.GREATER_THAN_SIGN:this._err(s5.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=ia.DATA,this.emitCurrentDoctype(t);break;case s1.EOF:this._err(s5.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(s5.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=ia.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){let t=this.currentToken;switch(e){case s1.QUOTATION_MARK:this.state=ia.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case s1.NULL:this._err(s5.unexpectedNullCharacter),t.systemId+="�";break;case s1.GREATER_THAN_SIGN:this._err(s5.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=ia.DATA;break;case s1.EOF:this._err(s5.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){let t=this.currentToken;switch(e){case s1.APOSTROPHE:this.state=ia.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case s1.NULL:this._err(s5.unexpectedNullCharacter),t.systemId+="�";break;case s1.GREATER_THAN_SIGN:this._err(s5.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=ia.DATA;break;case s1.EOF:this._err(s5.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){let t=this.currentToken;switch(e){case s1.SPACE:case s1.LINE_FEED:case s1.TABULATION:case s1.FORM_FEED:break;case s1.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=ia.DATA;break;case s1.EOF:this._err(s5.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(s5.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=ia.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){let t=this.currentToken;switch(e){case s1.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=ia.DATA;break;case s1.NULL:this._err(s5.unexpectedNullCharacter);break;case s1.EOF:this.emitCurrentDoctype(t),this._emitEOFToken()}}_stateCdataSection(e){switch(e){case s1.RIGHT_SQUARE_BRACKET:this.state=ia.CDATA_SECTION_BRACKET;break;case s1.EOF:this._err(s5.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===s1.RIGHT_SQUARE_BRACKET?this.state=ia.CDATA_SECTION_END:(this._emitChars("]"),this.state=ia.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case s1.GREATER_THAN_SIGN:this.state=ia.DATA;break;case s1.RIGHT_SQUARE_BRACKET:this._emitChars("]");break;default:this._emitChars("]]"),this.state=ia.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(){let e=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(e<0)if(this.preprocessor.lastChunkWritten)e=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}0===e?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(s1.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&ed(this.preprocessor.peek(1))?ia.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(e){ed(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===s1.SEMICOLON&&this._err(s5.unknownNamedCharacterReference),this.state=this.returnState,this._callState(e))}}let ef=new Set([ir.DD,ir.DT,ir.LI,ir.OPTGROUP,ir.OPTION,ir.P,ir.RB,ir.RP,ir.RT,ir.RTC]),eE=new Set([...ef,ir.CAPTION,ir.COLGROUP,ir.TBODY,ir.TD,ir.TFOOT,ir.TH,ir.THEAD,ir.TR]),eT=new Set([ir.APPLET,ir.CAPTION,ir.HTML,ir.MARQUEE,ir.OBJECT,ir.TABLE,ir.TD,ir.TEMPLATE,ir.TH]),eg=new Set([...eT,ir.OL,ir.UL]),eA=new Set([...eT,ir.BUTTON]),e_=new Set([ir.ANNOTATION_XML,ir.MI,ir.MN,ir.MO,ir.MS,ir.MTEXT]),eb=new Set([ir.DESC,ir.FOREIGN_OBJECT,ir.TITLE]),ek=new Set([ir.TR,ir.TEMPLATE,ir.HTML]),eC=new Set([ir.TBODY,ir.TFOOT,ir.THEAD,ir.TEMPLATE,ir.HTML]),eN=new Set([ir.TABLE,ir.TEMPLATE,ir.HTML]),eI=new Set([ir.TD,ir.TH]);class eS{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,r){this.treeAdapter=t,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=ir.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===ir.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===s9.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){let e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){let r=this._indexOf(e);this.items[r]=t,r===this.stackTop&&(this.current=t)}insertAfter(e,t,r){let n=this._indexOf(e)+1;this.items.splice(n,0,t),this.tagIDs.splice(n,0,r),this.stackTop++,n===this.stackTop&&this._updateCurrentElement(),this.current&&void 0!==this.currentTagId&&this.handler.onItemPush(this.current,this.currentTagId,n===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do t=this.tagIDs.lastIndexOf(e,t-1);while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==s9.HTML);this.shortenToLength(Math.max(t,0))}shortenToLength(e){for(;this.stackTop>=e;){let t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop<e)}}popUntilElementPopped(e){let t=this._indexOf(e);this.shortenToLength(Math.max(t,0))}popUntilPopped(e,t){let r=this._indexOfTagNames(e,t);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(eo,s9.HTML)}popUntilTableCellPopped(){this.popUntilPopped(eI,s9.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,t){for(let r=this.stackTop;r>=0;r--)if(e.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===t)return r;return -1}clearBackTo(e,t){let r=this._indexOfTagNames(e,t);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(eN,s9.HTML)}clearBackToTableBodyContext(){this.clearBackTo(eC,s9.HTML)}clearBackToTableRowContext(){this.clearBackTo(ek,s9.HTML)}remove(e){let t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===ir.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.tagIDs[0]===ir.HTML}hasInDynamicScope(e,t){for(let r=this.stackTop;r>=0;r--){let n=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case s9.HTML:if(n===e)return!0;if(t.has(n))return!1;break;case s9.SVG:if(eb.has(n))return!1;break;case s9.MATHML:if(e_.has(n))return!1}}return!0}hasInScope(e){return this.hasInDynamicScope(e,eT)}hasInListItemScope(e){return this.hasInDynamicScope(e,eg)}hasInButtonScope(e){return this.hasInDynamicScope(e,eA)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){let t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case s9.HTML:if(eo.has(t))return!0;if(eT.has(t))return!1;break;case s9.SVG:if(eb.has(t))return!1;break;case s9.MATHML:if(e_.has(t))return!1}}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===s9.HTML)switch(this.tagIDs[t]){case e:return!0;case ir.TABLE:case ir.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===s9.HTML)switch(this.tagIDs[e]){case ir.TBODY:case ir.THEAD:case ir.TFOOT:return!0;case ir.TABLE:case ir.HTML:return!1}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===s9.HTML)switch(this.tagIDs[t]){case e:return!0;case ir.OPTION:case ir.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;void 0!==this.currentTagId&&ef.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;void 0!==this.currentTagId&&eE.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;void 0!==this.currentTagId&&this.currentTagId!==e&&eE.has(this.currentTagId);)this.pop()}}!function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"}(is||(is={}));let ey={type:is.Marker};class eD{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){let r=[],n=t.length,a=this.treeAdapter.getTagName(e),s=this.treeAdapter.getNamespaceURI(e);for(let e=0;e<this.entries.length;e++){let t=this.entries[e];if(t.type===is.Marker)break;let{element:i}=t;if(this.treeAdapter.getTagName(i)===a&&this.treeAdapter.getNamespaceURI(i)===s){let t=this.treeAdapter.getAttrList(i);t.length===n&&r.push({idx:e,attrs:t})}}return r}_ensureNoahArkCondition(e){if(this.entries.length<3)return;let t=this.treeAdapter.getAttrList(e),r=this._getNoahArkConditionCandidates(e,t);if(r.length<3)return;let n=new Map(t.map(e=>[e.name,e.value])),a=0;for(let e=0;e<r.length;e++){let t=r[e];t.attrs.every(e=>n.get(e.name)===e.value)&&(a+=1)>=3&&this.entries.splice(t.idx,1)}}insertMarker(){this.entries.unshift(ey)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:is.Element,element:e,token:t})}insertElementAfterBookmark(e,t){let r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:is.Element,element:e,token:t})}removeEntry(e){let t=this.entries.indexOf(e);-1!==t&&this.entries.splice(t,1)}clearToLastMarker(){let e=this.entries.indexOf(ey);-1===e?this.entries.length=0:this.entries.splice(0,e+1)}getElementEntryInScopeWithTagName(e){let t=this.entries.find(t=>t.type===is.Marker||this.treeAdapter.getTagName(t.element)===e);return t&&t.type===is.Element?t:null}getElementEntry(e){return this.entries.find(t=>t.type===is.Element&&t.element===e)}}let ex={createDocument:()=>({nodeName:"#document",mode:ie.NO_QUIRKS,childNodes:[]}),createDocumentFragment:()=>({nodeName:"#document-fragment",childNodes:[]}),createElement:(e,t,r)=>({nodeName:e,tagName:e,attrs:r,namespaceURI:t,childNodes:[],parentNode:null}),createCommentNode:e=>({nodeName:"#comment",data:e,parentNode:null}),createTextNode:e=>({nodeName:"#text",value:e,parentNode:null}),appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,r){let n=e.childNodes.indexOf(r);e.childNodes.splice(n,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent:e=>e.content,setDocumentType(e,t,r,n){let a=e.childNodes.find(e=>"#documentType"===e.nodeName);a?(a.name=t,a.publicId=r,a.systemId=n):ex.appendChild(e,{nodeName:"#documentType",name:t,publicId:r,systemId:n,parentNode:null})},setDocumentMode(e,t){e.mode=t},getDocumentMode:e=>e.mode,detachNode(e){if(e.parentNode){let t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){let r=e.childNodes[e.childNodes.length-1];if(ex.isTextNode(r)){r.value+=t;return}}ex.appendChild(e,ex.createTextNode(t))},insertTextBefore(e,t,r){let n=e.childNodes[e.childNodes.indexOf(r)-1];n&&ex.isTextNode(n)?n.value+=t:ex.insertBefore(e,ex.createTextNode(t),r)},adoptAttributes(e,t){let r=new Set(e.attrs.map(e=>e.name));for(let n=0;n<t.length;n++)r.has(t[n].name)||e.attrs.push(t[n])},getFirstChild:e=>e.childNodes[0],getChildNodes:e=>e.childNodes,getParentNode:e=>e.parentNode,getAttrList:e=>e.attrs,getTagName:e=>e.tagName,getNamespaceURI:e=>e.namespaceURI,getTextNodeContent:e=>e.value,getCommentNodeContent:e=>e.data,getDocumentTypeNodeName:e=>e.name,getDocumentTypeNodePublicId:e=>e.publicId,getDocumentTypeNodeSystemId:e=>e.systemId,isTextNode:e=>"#text"===e.nodeName,isCommentNode:e=>"#comment"===e.nodeName,isDocumentTypeNode:e=>"#documentType"===e.nodeName,isElementNode:e=>Object.prototype.hasOwnProperty.call(e,"tagName"),setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation:e=>e.sourceCodeLocation,updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},eR="html",eL=["+//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//"],eO=[...eL,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],ew=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),eM=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],eP=[...eM,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function ev(e,t){return t.some(t=>e.startsWith(t))}let eB={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},eF=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])),eH=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:s9.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:s9.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:s9.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:s9.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:s9.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:s9.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:s9.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:s9.XML}],["xml:space",{prefix:"xml",name:"space",namespace:s9.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:s9.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:s9.XMLNS}]]),eU=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])),eG=new Set([ir.B,ir.BIG,ir.BLOCKQUOTE,ir.BODY,ir.BR,ir.CENTER,ir.CODE,ir.DD,ir.DIV,ir.DL,ir.DT,ir.EM,ir.EMBED,ir.H1,ir.H2,ir.H3,ir.H4,ir.H5,ir.H6,ir.HEAD,ir.HR,ir.I,ir.IMG,ir.LI,ir.LISTING,ir.MENU,ir.META,ir.NOBR,ir.OL,ir.P,ir.PRE,ir.RUBY,ir.S,ir.SMALL,ir.SPAN,ir.STRONG,ir.STRIKE,ir.SUB,ir.SUP,ir.TABLE,ir.TT,ir.U,ir.UL,ir.VAR]);function ej(e){for(let t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name){e.attrs[t].name="definitionURL";break}}function e$(e){for(let t=0;t<e.attrs.length;t++){let r=eF.get(e.attrs[t].name);null!=r&&(e.attrs[t].name=r)}}function eY(e){for(let t=0;t<e.attrs.length;t++){let r=eH.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(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"}(ii||(ii={}));let ez={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},eq=new Set([ir.TABLE,ir.TBODY,ir.TFOOT,ir.THEAD,ir.TR]),eV={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:ex,onParseError:null};class eW{constructor(e,t,r=null,n=null){this.fragmentContext=r,this.scriptHandler=n,this.currentToken=null,this.stopped=!1,this.insertionMode=ii.INITIAL,this.originalInsertionMode=ii.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={...eV,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=null!=t?t:this.treeAdapter.createDocument(),this.tokenizer=new em(this.options,this),this.activeFormattingElements=new eD(this.treeAdapter),this.fragmentContextID=r?ea(this.treeAdapter.getTagName(r)):ir.UNKNOWN,this._setContextModes(null!=r?r:this.document,this.fragmentContextID),this.openElements=new eS(this.document,this.treeAdapter,this)}static parse(e,t){let r=new this(t);return r.tokenizer.write(e,!0),r.document}static getFragmentParser(e,t){let r={...eV,...t};null!=e||(e=r.treeAdapter.createElement(it.TEMPLATE,s9.HTML,[]));let n=r.treeAdapter.createElement("documentmock",s9.HTML,[]),a=new this(r,n,e);return a.fragmentContextID===ir.TEMPLATE&&a.tmplInsertionModeStack.unshift(ii.IN_TEMPLATE),a._initTokenizerForFragmentParsing(),a._insertFakeRootElement(),a._resetInsertionMode(),a._findFormInFragmentContext(),a}getFragment(){let e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}_err(e,t,r){var n;if(!this.onParseError)return;let a=null!=(n=e.location)?n:ez,s={code:t,startLine:a.startLine,startCol:a.startCol,startOffset:a.startOffset,endLine:r?a.startLine:a.endLine,endCol:r?a.startCol:a.endCol,endOffset:r?a.startOffset:a.endOffset};this.onParseError(s)}onItemPush(e,t,r){var n,a;null==(a=(n=this.treeAdapter).onItemPush)||a.call(n,e),r&&this.openElements.stackTop>0&&this._setContextModes(e,t)}onItemPop(e,t){var r,n;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),null==(n=(r=this.treeAdapter).onItemPop)||n.call(r,e,this.openElements.current),t){let e,t;0===this.openElements.stackTop&&this.fragmentContext?(e=this.fragmentContext,t=this.fragmentContextID):{current:e,currentTagId:t}=this.openElements,this._setContextModes(e,t)}}_setContextModes(e,t){let r=e===this.document||e&&this.treeAdapter.getNamespaceURI(e)===s9.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&void 0!==e&&void 0!==t&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,s9.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=ii.TEXT}switchToPlaintextParsing(){this.insertionMode=ii.TEXT,this.originalInsertionMode=ii.IN_BODY,this.tokenizer.state=el.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===it.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===s9.HTML)switch(this.fragmentContextID){case ir.TITLE:case ir.TEXTAREA:this.tokenizer.state=el.RCDATA;break;case ir.STYLE:case ir.XMP:case ir.IFRAME:case ir.NOEMBED:case ir.NOFRAMES:case ir.NOSCRIPT:this.tokenizer.state=el.RAWTEXT;break;case ir.SCRIPT:this.tokenizer.state=el.SCRIPT_DATA;break;case ir.PLAINTEXT:this.tokenizer.state=el.PLAINTEXT}}_setDocumentType(e){let t=e.name||"",r=e.publicId||"",n=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,r,n),e.location){let t=this.treeAdapter.getChildNodes(this.document).find(e=>this.treeAdapter.isDocumentTypeNode(e));t&&this.treeAdapter.setNodeSourceCodeLocation(t,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){let r=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{let t=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(null!=t?t:this.document,e)}}_appendElement(e,t){let r=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(r,e.location)}_insertElement(e,t){let r=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(r,e.location),this.openElements.push(r,e.tagID)}_insertFakeElement(e,t){let r=this.treeAdapter.createElement(e,s9.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,t)}_insertTemplate(e){let t=this.treeAdapter.createElement(e.tagName,s9.HTML,e.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,r),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){let e=this.treeAdapter.createElement(it.HTML,s9.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,ir.HTML)}_appendCommentNode(e,t){let r=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,e.location)}_insertCharacters(e){let t,r;if(this._shouldFosterParentOnInsertion()?({parent:t,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(t,e.chars,r):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;let n=this.treeAdapter.getChildNodes(t),a=r?n.lastIndexOf(r):n.length,s=n[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){let{endLine:t,endCol:r,endOffset:n}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:t,endCol:r,endOffset:n})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,e.location)}_adoptNodes(e,t){for(let r=this.treeAdapter.getFirstChild(e);r;r=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(t,r)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){let r=t.location,n=this.treeAdapter.getTagName(e),a=t.type===s2.END_TAG&&n===t.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,a)}}shouldProcessStartTagTokenInForeignContent(e){let t,r;return!!this.currentNotInHTML&&(0===this.openElements.stackTop&&this.fragmentContext?(t=this.fragmentContext,r=this.fragmentContextID):{current:t,currentTagId:r}=this.openElements,(e.tagID!==ir.SVG||this.treeAdapter.getTagName(t)!==it.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==s9.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===ir.MGLYPH||e.tagID===ir.MALIGNMARK)&&void 0!==r&&!this._isIntegrationPoint(r,t,s9.HTML)))}_processToken(e){switch(e.type){case s2.CHARACTER:this.onCharacter(e);break;case s2.NULL_CHARACTER:this.onNullCharacter(e);break;case s2.COMMENT:this.onComment(e);break;case s2.DOCTYPE:this.onDoctype(e);break;case s2.START_TAG:this._processStartTag(e);break;case s2.END_TAG:this.onEndTag(e);break;case s2.EOF:this.onEof(e);break;case s2.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,r){let n=this.treeAdapter.getNamespaceURI(t),a=this.treeAdapter.getAttrList(t);return(!r||r===s9.HTML)&&function(e,t,r){if(t===s9.MATHML&&e===ir.ANNOTATION_XML){for(let e=0;e<r.length;e++)if(r[e].name===s7.ENCODING){let t=r[e].value.toLowerCase();return t===eB.TEXT_HTML||t===eB.APPLICATION_XML}}return t===s9.SVG&&(e===ir.FOREIGN_OBJECT||e===ir.DESC||e===ir.TITLE)}(e,n,a)||(!r||r===s9.MATHML)&&n===s9.MATHML&&(e===ir.MI||e===ir.MO||e===ir.MN||e===ir.MS||e===ir.MTEXT)}_reconstructActiveFormattingElements(){let e=this.activeFormattingElements.entries.length;if(e){let t=this.activeFormattingElements.entries.findIndex(e=>e.type===is.Marker||this.openElements.contains(e.element)),r=-1===t?e-1:t-1;for(let e=r;e>=0;e--){let t=this.activeFormattingElements.entries[e];this._insertElement(t.token,this.treeAdapter.getNamespaceURI(t.element)),t.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=ii.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(ir.P),this.openElements.popUntilTagNamePopped(ir.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case ir.TR:this.insertionMode=ii.IN_ROW;return;case ir.TBODY:case ir.THEAD:case ir.TFOOT:this.insertionMode=ii.IN_TABLE_BODY;return;case ir.CAPTION:this.insertionMode=ii.IN_CAPTION;return;case ir.COLGROUP:this.insertionMode=ii.IN_COLUMN_GROUP;return;case ir.TABLE:this.insertionMode=ii.IN_TABLE;return;case ir.BODY:this.insertionMode=ii.IN_BODY;return;case ir.FRAMESET:this.insertionMode=ii.IN_FRAMESET;return;case ir.SELECT:return void this._resetInsertionModeForSelect(e);case ir.TEMPLATE:this.insertionMode=this.tmplInsertionModeStack[0];return;case ir.HTML:this.insertionMode=this.headElement?ii.AFTER_HEAD:ii.BEFORE_HEAD;return;case ir.TD:case ir.TH:if(e>0){this.insertionMode=ii.IN_CELL;return}break;case ir.HEAD:if(e>0){this.insertionMode=ii.IN_HEAD;return}}this.insertionMode=ii.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){let e=this.openElements.tagIDs[t];if(e===ir.TEMPLATE)break;if(e===ir.TABLE){this.insertionMode=ii.IN_SELECT_IN_TABLE;return}}this.insertionMode=ii.IN_SELECT}_isElementCausesFosterParenting(e){return eq.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&void 0!==this.openElements.currentTagId&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){let t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case ir.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===s9.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case ir.TABLE:{let r=this.treeAdapter.getParentNode(t);if(r)return{parent:r,beforeElement:t};return{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){let t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){return ei[this.treeAdapter.getNamespaceURI(e)].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){var t,r;return void(t=this,r=e,t._insertCharacters(r),t.framesetOk=!1)}switch(this.insertionMode){case ii.INITIAL:eZ(this,e);break;case ii.BEFORE_HTML:eJ(this,e);break;case ii.BEFORE_HEAD:e0(this,e);break;case ii.IN_HEAD:e2(this,e);break;case ii.IN_HEAD_NO_SCRIPT:e3(this,e);break;case ii.AFTER_HEAD:e6(this,e);break;case ii.IN_BODY:case ii.IN_CAPTION:case ii.IN_CELL:case ii.IN_TEMPLATE:e9(this,e);break;case ii.TEXT:case ii.IN_SELECT:case ii.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case ii.IN_TABLE:case ii.IN_TABLE_BODY:case ii.IN_ROW:to(this,e);break;case ii.IN_TABLE_TEXT:th(this,e);break;case ii.IN_COLUMN_GROUP:tE(this,e);break;case ii.AFTER_BODY:tI(this,e);break;case ii.AFTER_AFTER_BODY:tS(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){var t,r;return void(t=this,(r=e).chars="�",t._insertCharacters(r))}switch(this.insertionMode){case ii.INITIAL:eZ(this,e);break;case ii.BEFORE_HTML:eJ(this,e);break;case ii.BEFORE_HEAD:e0(this,e);break;case ii.IN_HEAD:e2(this,e);break;case ii.IN_HEAD_NO_SCRIPT:e3(this,e);break;case ii.AFTER_HEAD:e6(this,e);break;case ii.TEXT:this._insertCharacters(e);break;case ii.IN_TABLE:case ii.IN_TABLE_BODY:case ii.IN_ROW:to(this,e);break;case ii.IN_COLUMN_GROUP:tE(this,e);break;case ii.AFTER_BODY:tI(this,e);break;case ii.AFTER_AFTER_BODY:tS(this,e)}}onComment(e){var t,r,n,a;if(this.skipNextNewLine=!1,this.currentNotInHTML)return void eX(this,e);switch(this.insertionMode){case ii.INITIAL:case ii.BEFORE_HTML:case ii.BEFORE_HEAD:case ii.IN_HEAD:case ii.IN_HEAD_NO_SCRIPT:case ii.AFTER_HEAD:case ii.IN_BODY:case ii.IN_TABLE:case ii.IN_CAPTION:case ii.IN_COLUMN_GROUP:case ii.IN_TABLE_BODY:case ii.IN_ROW:case ii.IN_CELL:case ii.IN_SELECT:case ii.IN_SELECT_IN_TABLE:case ii.IN_TEMPLATE:case ii.IN_FRAMESET:case ii.AFTER_FRAMESET:eX(this,e);break;case ii.IN_TABLE_TEXT:tp(this,e);break;case ii.AFTER_BODY:t=this,r=e,t._appendCommentNode(r,t.openElements.items[0]);break;case ii.AFTER_AFTER_BODY:case ii.AFTER_AFTER_FRAMESET:n=this,a=e,n._appendCommentNode(a,n.document)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case ii.INITIAL:!function(e,t){e._setDocumentType(t);let r=t.forceQuirks?ie.QUIRKS:function(e){if(e.name!==eR)return ie.QUIRKS;let{systemId:t}=e;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return ie.QUIRKS;let{publicId:r}=e;if(null!==r){if(r=r.toLowerCase(),ew.has(r))return ie.QUIRKS;let e=null===t?eO:eL;if(ev(r,e))return ie.QUIRKS;if(ev(r,e=null===t?eM:eP))return ie.LIMITED_QUIRKS}return ie.NO_QUIRKS}(t);(t.name!==eR||null!==t.publicId||null!==t.systemId&&"about:legacy-compat"!==t.systemId)&&e._err(t,s5.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,r),e.insertionMode=ii.BEFORE_HTML}(this,e);break;case ii.BEFORE_HEAD:case ii.IN_HEAD:case ii.IN_HEAD_NO_SCRIPT:case ii.AFTER_HEAD:this._err(e,s5.misplacedDoctype);break;case ii.IN_TABLE_TEXT:tp(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,s5.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?function(e,t){if(function(e){let t=e.tagID;return t===ir.FONT&&e.attrs.some(({name:e})=>e===s7.COLOR||e===s7.SIZE||e===s7.FACE)||eG.has(t)}(t))ty(e),e._startTagOutsideForeignContent(t);else{let r=e._getAdjustedCurrentElement(),n=e.treeAdapter.getNamespaceURI(r);if(n===s9.MATHML)ej(t);else if(n===s9.SVG){let e=eU.get(t.tagName);null!=e&&(t.tagName=e,t.tagID=ea(t.tagName)),e$(t)}eY(t),t.selfClosing?e._appendElement(t,n):e._insertElement(t,n),t.ackSelfClosing=!0}}(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case ii.INITIAL:eZ(this,e);break;case ii.BEFORE_HTML:t=this,(r=e).tagID===ir.HTML?(t._insertElement(r,s9.HTML),t.insertionMode=ii.BEFORE_HEAD):eJ(t,r);break;case ii.BEFORE_HEAD:var t,r,n,a,s,i,o=this,l=e;switch(l.tagID){case ir.HTML:tn(o,l);break;case ir.HEAD:o._insertElement(l,s9.HTML),o.headElement=o.openElements.current,o.insertionMode=ii.IN_HEAD;break;default:e0(o,l)}break;case ii.IN_HEAD:e1(this,e);break;case ii.IN_HEAD_NO_SCRIPT:var c=this,u=e;switch(u.tagID){case ir.HTML:tn(c,u);break;case ir.BASEFONT:case ir.BGSOUND:case ir.HEAD:case ir.LINK:case ir.META:case ir.NOFRAMES:case ir.STYLE:e1(c,u);break;case ir.NOSCRIPT:c._err(u,s5.nestedNoscriptInHead);break;default:e3(c,u)}break;case ii.AFTER_HEAD:var d=this,h=e;switch(h.tagID){case ir.HTML:tn(d,h);break;case ir.BODY:d._insertElement(h,s9.HTML),d.framesetOk=!1,d.insertionMode=ii.IN_BODY;break;case ir.FRAMESET:d._insertElement(h,s9.HTML),d.insertionMode=ii.IN_FRAMESET;break;case ir.BASE:case ir.BASEFONT:case ir.BGSOUND:case ir.LINK:case ir.META:case ir.NOFRAMES:case ir.SCRIPT:case ir.STYLE:case ir.TEMPLATE:case ir.TITLE:d._err(h,s5.abandonedHeadElementChild),d.openElements.push(d.headElement,ir.HEAD),e1(d,h),d.openElements.remove(d.headElement);break;case ir.HEAD:d._err(h,s5.misplacedStartTagForHeadElement);break;default:e6(d,h)}break;case ii.IN_BODY:tn(this,e);break;case ii.IN_TABLE:tl(this,e);break;case ii.IN_TABLE_TEXT:tp(this,e);break;case ii.IN_CAPTION:var p=this,m=e;let f=m.tagID;tm.has(f)?p.openElements.hasInTableScope(ir.CAPTION)&&(p.openElements.generateImpliedEndTags(),p.openElements.popUntilTagNamePopped(ir.CAPTION),p.activeFormattingElements.clearToLastMarker(),p.insertionMode=ii.IN_TABLE,tl(p,m)):tn(p,m);break;case ii.IN_COLUMN_GROUP:tf(this,e);break;case ii.IN_TABLE_BODY:tT(this,e);break;case ii.IN_ROW:tA(this,e);break;case ii.IN_CELL:var E=this,T=e;let g=T.tagID;tm.has(g)?(E.openElements.hasInTableScope(ir.TD)||E.openElements.hasInTableScope(ir.TH))&&(E._closeTableCell(),tA(E,T)):tn(E,T);break;case ii.IN_SELECT:tb(this,e);break;case ii.IN_SELECT_IN_TABLE:var A=this,_=e;let b=_.tagID;b===ir.CAPTION||b===ir.TABLE||b===ir.TBODY||b===ir.TFOOT||b===ir.THEAD||b===ir.TR||b===ir.TD||b===ir.TH?(A.openElements.popUntilTagNamePopped(ir.SELECT),A._resetInsertionMode(),A._processStartTag(_)):tb(A,_);break;case ii.IN_TEMPLATE:var k=this,C=e;switch(C.tagID){case ir.BASE:case ir.BASEFONT:case ir.BGSOUND:case ir.LINK:case ir.META:case ir.NOFRAMES:case ir.SCRIPT:case ir.STYLE:case ir.TEMPLATE:case ir.TITLE:e1(k,C);break;case ir.CAPTION:case ir.COLGROUP:case ir.TBODY:case ir.TFOOT:case ir.THEAD:k.tmplInsertionModeStack[0]=ii.IN_TABLE,k.insertionMode=ii.IN_TABLE,tl(k,C);break;case ir.COL:k.tmplInsertionModeStack[0]=ii.IN_COLUMN_GROUP,k.insertionMode=ii.IN_COLUMN_GROUP,tf(k,C);break;case ir.TR:k.tmplInsertionModeStack[0]=ii.IN_TABLE_BODY,k.insertionMode=ii.IN_TABLE_BODY,tT(k,C);break;case ir.TD:case ir.TH:k.tmplInsertionModeStack[0]=ii.IN_ROW,k.insertionMode=ii.IN_ROW,tA(k,C);break;default:k.tmplInsertionModeStack[0]=ii.IN_BODY,k.insertionMode=ii.IN_BODY,tn(k,C)}break;case ii.AFTER_BODY:n=this,(a=e).tagID===ir.HTML?tn(n,a):tI(n,a);break;case ii.IN_FRAMESET:var N=this,I=e;switch(I.tagID){case ir.HTML:tn(N,I);break;case ir.FRAMESET:N._insertElement(I,s9.HTML);break;case ir.FRAME:N._appendElement(I,s9.HTML),I.ackSelfClosing=!0;break;case ir.NOFRAMES:e1(N,I)}break;case ii.AFTER_FRAMESET:var S=this,y=e;switch(y.tagID){case ir.HTML:tn(S,y);break;case ir.NOFRAMES:e1(S,y)}break;case ii.AFTER_AFTER_BODY:s=this,(i=e).tagID===ir.HTML?tn(s,i):tS(s,i);break;case ii.AFTER_AFTER_FRAMESET:var D=this,x=e;switch(x.tagID){case ir.HTML:tn(D,x);break;case ir.NOFRAMES:e1(D,x)}}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?function(e,t){if(t.tagID===ir.P||t.tagID===ir.BR){ty(e),e._endTagOutsideForeignContent(t);return}for(let r=e.openElements.stackTop;r>0;r--){let n=e.openElements.items[r];if(e.treeAdapter.getNamespaceURI(n)===s9.HTML){e._endTagOutsideForeignContent(t);break}let a=e.treeAdapter.getTagName(n);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(r);break}}}(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case ii.INITIAL:eZ(this,e);break;case ii.BEFORE_HTML:var t,r,n,a,s,i,o=this,l=e;let c=l.tagID;(c===ir.HTML||c===ir.HEAD||c===ir.BODY||c===ir.BR)&&eJ(o,l);break;case ii.BEFORE_HEAD:var u=this,d=e;let h=d.tagID;h===ir.HEAD||h===ir.BODY||h===ir.HTML||h===ir.BR?e0(u,d):u._err(d,s5.endTagWithoutMatchingOpenElement);break;case ii.IN_HEAD:var p=this,m=e;switch(m.tagID){case ir.HEAD:p.openElements.pop(),p.insertionMode=ii.AFTER_HEAD;break;case ir.BODY:case ir.BR:case ir.HTML:e2(p,m);break;case ir.TEMPLATE:e5(p,m);break;default:p._err(m,s5.endTagWithoutMatchingOpenElement)}break;case ii.IN_HEAD_NO_SCRIPT:var f=this,E=e;switch(E.tagID){case ir.NOSCRIPT:f.openElements.pop(),f.insertionMode=ii.IN_HEAD;break;case ir.BR:e3(f,E);break;default:f._err(E,s5.endTagWithoutMatchingOpenElement)}break;case ii.AFTER_HEAD:var T=this,g=e;switch(g.tagID){case ir.BODY:case ir.HTML:case ir.BR:e6(T,g);break;case ir.TEMPLATE:e5(T,g);break;default:T._err(g,s5.endTagWithoutMatchingOpenElement)}break;case ii.IN_BODY:ts(this,e);break;case ii.TEXT:t=this,e.tagID===ir.SCRIPT&&(null==(r=t.scriptHandler)||r.call(t,t.openElements.current)),t.openElements.pop(),t.insertionMode=t.originalInsertionMode;break;case ii.IN_TABLE:tc(this,e);break;case ii.IN_TABLE_TEXT:tp(this,e);break;case ii.IN_CAPTION:var A=this,_=e;let b=_.tagID;switch(b){case ir.CAPTION:case ir.TABLE:A.openElements.hasInTableScope(ir.CAPTION)&&(A.openElements.generateImpliedEndTags(),A.openElements.popUntilTagNamePopped(ir.CAPTION),A.activeFormattingElements.clearToLastMarker(),A.insertionMode=ii.IN_TABLE,b===ir.TABLE&&tc(A,_));break;case ir.BODY:case ir.COL:case ir.COLGROUP:case ir.HTML:case ir.TBODY:case ir.TD:case ir.TFOOT:case ir.TH:case ir.THEAD:case ir.TR:break;default:ts(A,_)}break;case ii.IN_COLUMN_GROUP:var k=this,C=e;switch(C.tagID){case ir.COLGROUP:k.openElements.currentTagId===ir.COLGROUP&&(k.openElements.pop(),k.insertionMode=ii.IN_TABLE);break;case ir.TEMPLATE:e5(k,C);break;case ir.COL:break;default:tE(k,C)}break;case ii.IN_TABLE_BODY:tg(this,e);break;case ii.IN_ROW:t_(this,e);break;case ii.IN_CELL:var N=this,I=e;let S=I.tagID;switch(S){case ir.TD:case ir.TH:N.openElements.hasInTableScope(S)&&(N.openElements.generateImpliedEndTags(),N.openElements.popUntilTagNamePopped(S),N.activeFormattingElements.clearToLastMarker(),N.insertionMode=ii.IN_ROW);break;case ir.TABLE:case ir.TBODY:case ir.TFOOT:case ir.THEAD:case ir.TR:N.openElements.hasInTableScope(S)&&(N._closeTableCell(),t_(N,I));break;case ir.BODY:case ir.CAPTION:case ir.COL:case ir.COLGROUP:case ir.HTML:break;default:ts(N,I)}break;case ii.IN_SELECT:tk(this,e);break;case ii.IN_SELECT_IN_TABLE:var y=this,D=e;let x=D.tagID;x===ir.CAPTION||x===ir.TABLE||x===ir.TBODY||x===ir.TFOOT||x===ir.THEAD||x===ir.TR||x===ir.TD||x===ir.TH?y.openElements.hasInTableScope(x)&&(y.openElements.popUntilTagNamePopped(ir.SELECT),y._resetInsertionMode(),y.onEndTag(D)):tk(y,D);break;case ii.IN_TEMPLATE:n=this,(a=e).tagID===ir.TEMPLATE&&e5(n,a);break;case ii.AFTER_BODY:tN(this,e);break;case ii.IN_FRAMESET:s=this,e.tagID===ir.FRAMESET&&!s.openElements.isRootHtmlElementCurrent()&&(s.openElements.pop(),s.fragmentContext||s.openElements.currentTagId===ir.FRAMESET||(s.insertionMode=ii.AFTER_FRAMESET));break;case ii.AFTER_FRAMESET:i=this,e.tagID===ir.HTML&&(i.insertionMode=ii.AFTER_AFTER_FRAMESET);break;case ii.AFTER_AFTER_BODY:tS(this,e)}}onEof(e){switch(this.insertionMode){case ii.INITIAL:eZ(this,e);break;case ii.BEFORE_HTML:eJ(this,e);break;case ii.BEFORE_HEAD:e0(this,e);break;case ii.IN_HEAD:e2(this,e);break;case ii.IN_HEAD_NO_SCRIPT:e3(this,e);break;case ii.AFTER_HEAD:e6(this,e);break;case ii.IN_BODY:case ii.IN_TABLE:case ii.IN_CAPTION:case ii.IN_COLUMN_GROUP:case ii.IN_TABLE_BODY:case ii.IN_ROW:case ii.IN_CELL:case ii.IN_SELECT:case ii.IN_SELECT_IN_TABLE:ti(this,e);break;case ii.TEXT:var t,r;t=this,r=e,t._err(r,s5.eofInElementThatCanContainOnlyText),t.openElements.pop(),t.insertionMode=t.originalInsertionMode,t.onEof(r);break;case ii.IN_TABLE_TEXT:tp(this,e);break;case ii.IN_TEMPLATE:tC(this,e);break;case ii.AFTER_BODY:case ii.IN_FRAMESET:case ii.AFTER_FRAMESET:case ii.AFTER_AFTER_BODY:case ii.AFTER_AFTER_FRAMESET:eK(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===s1.LINE_FEED)){if(1===e.chars.length)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode)return void this._insertCharacters(e);switch(this.insertionMode){case ii.IN_HEAD:case ii.IN_HEAD_NO_SCRIPT:case ii.AFTER_HEAD:case ii.TEXT:case ii.IN_COLUMN_GROUP:case ii.IN_SELECT:case ii.IN_SELECT_IN_TABLE:case ii.IN_FRAMESET:case ii.AFTER_FRAMESET:this._insertCharacters(e);break;case ii.IN_BODY:case ii.IN_CAPTION:case ii.IN_CELL:case ii.IN_TEMPLATE:case ii.AFTER_BODY:case ii.AFTER_AFTER_BODY:case ii.AFTER_AFTER_FRAMESET:e4(this,e);break;case ii.IN_TABLE:case ii.IN_TABLE_BODY:case ii.IN_ROW:to(this,e);break;case ii.IN_TABLE_TEXT:td(this,e)}}}function eQ(e,t){for(let r=0;r<8;r++){let r=function(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):ta(e,t),r}(e,t);if(!r)break;let n=function(e,t){let r=null,n=e.openElements.stackTop;for(;n>=0;n--){let a=e.openElements.items[n];if(a===t.element)break;e._isSpecialElement(a,e.openElements.tagIDs[n])&&(r=a)}return r||(e.openElements.shortenToLength(Math.max(n,0)),e.activeFormattingElements.removeEntry(t)),r}(e,r);if(!n)break;e.activeFormattingElements.bookmark=r;let a=function(e,t,r){let n=t,a=e.openElements.getCommonAncestor(t);for(let s=0,i=a;i!==r;s++,i=a){a=e.openElements.getCommonAncestor(i);let r=e.activeFormattingElements.getElementEntry(i),o=r&&s>=3;!r||o?(o&&e.activeFormattingElements.removeEntry(r),e.openElements.remove(i)):(i=function(e,t){let 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}(e,r),n===t&&(e.activeFormattingElements.bookmark=r),e.treeAdapter.detachNode(n),e.treeAdapter.appendChild(i,n),n=i)}return n}(e,n,r.element),s=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(a),s&&function(e,t,r){let n=ea(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(n))e._fosterParentElement(r);else{let a=e.treeAdapter.getNamespaceURI(t);n===ir.TEMPLATE&&a===s9.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,r)}}(e,s,a);let i=e.treeAdapter.getNamespaceURI(r.element),{token:o}=r,l=e.treeAdapter.createElement(o.tagName,i,o.attrs);e._adoptNodes(n,l),e.treeAdapter.appendChild(n,l),e.activeFormattingElements.insertElementAfterBookmark(l,o),e.activeFormattingElements.removeEntry(r),e.openElements.remove(r.element),e.openElements.insertAfter(n,l,o.tagID)}}function eX(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function eK(e,t){if(e.stopped=!0,t.location){let r=2*!e.fragmentContext;for(let n=e.openElements.stackTop;n>=r;n--)e._setEndLocation(e.openElements.items[n],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){let r=e.openElements.items[0],n=e.treeAdapter.getNodeSourceCodeLocation(r);if(n&&!n.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){let r=e.openElements.items[1],n=e.treeAdapter.getNodeSourceCodeLocation(r);n&&!n.endTag&&e._setEndLocation(r,t)}}}}function eZ(e,t){e._err(t,s5.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,ie.QUIRKS),e.insertionMode=ii.BEFORE_HTML,e._processToken(t)}function eJ(e,t){e._insertFakeRootElement(),e.insertionMode=ii.BEFORE_HEAD,e._processToken(t)}function e0(e,t){e._insertFakeElement(it.HEAD,ir.HEAD),e.headElement=e.openElements.current,e.insertionMode=ii.IN_HEAD,e._processToken(t)}function e1(e,t){switch(t.tagID){case ir.HTML:tn(e,t);break;case ir.BASE:case ir.BASEFONT:case ir.BGSOUND:case ir.LINK:case ir.META:e._appendElement(t,s9.HTML),t.ackSelfClosing=!0;break;case ir.TITLE:e._switchToTextParsing(t,el.RCDATA);break;case ir.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,el.RAWTEXT):(e._insertElement(t,s9.HTML),e.insertionMode=ii.IN_HEAD_NO_SCRIPT);break;case ir.NOFRAMES:case ir.STYLE:e._switchToTextParsing(t,el.RAWTEXT);break;case ir.SCRIPT:e._switchToTextParsing(t,el.SCRIPT_DATA);break;case ir.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=ii.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(ii.IN_TEMPLATE);break;case ir.HEAD:e._err(t,s5.misplacedStartTagForHeadElement);break;default:e2(e,t)}}function e5(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==ir.TEMPLATE&&e._err(t,s5.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(ir.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,s5.endTagWithoutMatchingOpenElement)}function e2(e,t){e.openElements.pop(),e.insertionMode=ii.AFTER_HEAD,e._processToken(t)}function e3(e,t){let r=t.type===s2.EOF?s5.openElementsLeftAfterEof:s5.disallowedContentInNoscriptInHead;e._err(t,r),e.openElements.pop(),e.insertionMode=ii.IN_HEAD,e._processToken(t)}function e6(e,t){e._insertFakeElement(it.BODY,ir.BODY),e.insertionMode=ii.IN_BODY,e8(e,t)}function e8(e,t){switch(t.type){case s2.CHARACTER:e9(e,t);break;case s2.WHITESPACE_CHARACTER:e4(e,t);break;case s2.COMMENT:eX(e,t);break;case s2.START_TAG:tn(e,t);break;case s2.END_TAG:ts(e,t);break;case s2.EOF:ti(e,t)}}function e4(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function e9(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function e7(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,s9.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function te(e){let t=Z(e,s7.TYPE);return null!=t&&"hidden"===t.toLowerCase()}function tt(e,t){e._switchToTextParsing(t,el.RAWTEXT)}function tr(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,s9.HTML)}function tn(e,t){switch(t.tagID){case ir.I:case ir.S:case ir.B:case ir.U:case ir.EM:case ir.TT:case ir.BIG:case ir.CODE:case ir.FONT:case ir.SMALL:case ir.STRIKE:case ir.STRONG:e._reconstructActiveFormattingElements(),e._insertElement(t,s9.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);break;case ir.A:let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(it.A);r&&(eQ(e,t),e.openElements.remove(r.element),e.activeFormattingElements.removeEntry(r)),e._reconstructActiveFormattingElements(),e._insertElement(t,s9.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);break;case ir.H1:case ir.H2:case ir.H3:case ir.H4:case ir.H5:case ir.H6:e.openElements.hasInButtonScope(ir.P)&&e._closePElement(),void 0!==e.openElements.currentTagId&&eo.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,s9.HTML);break;case ir.P:case ir.DL:case ir.OL:case ir.UL:case ir.DIV:case ir.DIR:case ir.NAV:case ir.MAIN:case ir.MENU:case ir.ASIDE:case ir.CENTER:case ir.FIGURE:case ir.FOOTER:case ir.HEADER:case ir.HGROUP:case ir.DIALOG:case ir.DETAILS:case ir.ADDRESS:case ir.ARTICLE:case ir.SEARCH:case ir.SECTION:case ir.SUMMARY:case ir.FIELDSET:case ir.BLOCKQUOTE:case ir.FIGCAPTION:e.openElements.hasInButtonScope(ir.P)&&e._closePElement(),e._insertElement(t,s9.HTML);break;case ir.LI:case ir.DD:case ir.DT:e.framesetOk=!1;let n=t.tagID;for(let t=e.openElements.stackTop;t>=0;t--){let r=e.openElements.tagIDs[t];if(n===ir.LI&&r===ir.LI||(n===ir.DD||n===ir.DT)&&(r===ir.DD||r===ir.DT)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r);break}if(r!==ir.ADDRESS&&r!==ir.DIV&&r!==ir.P&&e._isSpecialElement(e.openElements.items[t],r))break}e.openElements.hasInButtonScope(ir.P)&&e._closePElement(),e._insertElement(t,s9.HTML);break;case ir.BR:case ir.IMG:case ir.WBR:case ir.AREA:case ir.EMBED:case ir.KEYGEN:e7(e,t);break;case ir.HR:e.openElements.hasInButtonScope(ir.P)&&e._closePElement(),e._appendElement(t,s9.HTML),e.framesetOk=!1,t.ackSelfClosing=!0;break;case ir.RB:case ir.RTC:e.openElements.hasInScope(ir.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,s9.HTML);break;case ir.RT:case ir.RP:e.openElements.hasInScope(ir.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(ir.RTC),e._insertElement(t,s9.HTML);break;case ir.PRE:case ir.LISTING:e.openElements.hasInButtonScope(ir.P)&&e._closePElement(),e._insertElement(t,s9.HTML),e.skipNextNewLine=!0,e.framesetOk=!1;break;case ir.XMP:e.openElements.hasInButtonScope(ir.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,el.RAWTEXT);break;case ir.SVG:e._reconstructActiveFormattingElements(),e$(t),eY(t),t.selfClosing?e._appendElement(t,s9.SVG):e._insertElement(t,s9.SVG),t.ackSelfClosing=!0;break;case ir.HTML:0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs);break;case ir.BASE:case ir.LINK:case ir.META:case ir.STYLE:case ir.TITLE:case ir.SCRIPT:case ir.BGSOUND:case ir.BASEFONT:case ir.TEMPLATE:e1(e,t);break;case ir.BODY:let a=e.openElements.tryPeekProperlyNestedBodyElement();a&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(a,t.attrs));break;case ir.FORM:let s=e.openElements.tmplCount>0;(!e.formElement||s)&&(e.openElements.hasInButtonScope(ir.P)&&e._closePElement(),e._insertElement(t,s9.HTML),s||(e.formElement=e.openElements.current));break;case ir.NOBR:e._reconstructActiveFormattingElements(),e.openElements.hasInScope(ir.NOBR)&&(eQ(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,s9.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);break;case ir.MATH:e._reconstructActiveFormattingElements(),ej(t),eY(t),t.selfClosing?e._appendElement(t,s9.MATHML):e._insertElement(t,s9.MATHML),t.ackSelfClosing=!0;break;case ir.TABLE:e.treeAdapter.getDocumentMode(e.document)!==ie.QUIRKS&&e.openElements.hasInButtonScope(ir.P)&&e._closePElement(),e._insertElement(t,s9.HTML),e.framesetOk=!1,e.insertionMode=ii.IN_TABLE;break;case ir.INPUT:e._reconstructActiveFormattingElements(),e._appendElement(t,s9.HTML),te(t)||(e.framesetOk=!1),t.ackSelfClosing=!0;break;case ir.PARAM:case ir.TRACK:case ir.SOURCE:e._appendElement(t,s9.HTML),t.ackSelfClosing=!0;break;case ir.IMAGE:t.tagName=it.IMG,t.tagID=ir.IMG,e7(e,t);break;case ir.BUTTON:e.openElements.hasInScope(ir.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(ir.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,s9.HTML),e.framesetOk=!1;break;case ir.APPLET:case ir.OBJECT:case ir.MARQUEE:e._reconstructActiveFormattingElements(),e._insertElement(t,s9.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1;break;case ir.IFRAME:e.framesetOk=!1,e._switchToTextParsing(t,el.RAWTEXT);break;case ir.SELECT:e._reconstructActiveFormattingElements(),e._insertElement(t,s9.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===ii.IN_TABLE||e.insertionMode===ii.IN_CAPTION||e.insertionMode===ii.IN_TABLE_BODY||e.insertionMode===ii.IN_ROW||e.insertionMode===ii.IN_CELL?ii.IN_SELECT_IN_TABLE:ii.IN_SELECT;break;case ir.OPTION:case ir.OPTGROUP:e.openElements.currentTagId===ir.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,s9.HTML);break;case ir.NOEMBED:case ir.NOFRAMES:tt(e,t);break;case ir.FRAMESET:let i=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&i&&(e.treeAdapter.detachNode(i),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,s9.HTML),e.insertionMode=ii.IN_FRAMESET);break;case ir.TEXTAREA:e._insertElement(t,s9.HTML),e.skipNextNewLine=!0,e.tokenizer.state=el.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=ii.TEXT;break;case ir.NOSCRIPT:e.options.scriptingEnabled?tt(e,t):tr(e,t);break;case ir.PLAINTEXT:e.openElements.hasInButtonScope(ir.P)&&e._closePElement(),e._insertElement(t,s9.HTML),e.tokenizer.state=el.PLAINTEXT;break;case ir.COL:case ir.TH:case ir.TD:case ir.TR:case ir.HEAD:case ir.FRAME:case ir.TBODY:case ir.TFOOT:case ir.THEAD:case ir.CAPTION:case ir.COLGROUP:break;default:tr(e,t)}}function ta(e,t){let r=t.tagName,n=t.tagID;for(let t=e.openElements.stackTop;t>0;t--){let a=e.openElements.items[t],s=e.openElements.tagIDs[t];if(n===s&&(n!==ir.UNKNOWN||e.treeAdapter.getTagName(a)===r)){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.stackTop>=t&&e.openElements.shortenToLength(t);break}if(e._isSpecialElement(a,s))break}}function ts(e,t){switch(t.tagID){case ir.A:case ir.B:case ir.I:case ir.S:case ir.U:case ir.EM:case ir.TT:case ir.BIG:case ir.CODE:case ir.FONT:case ir.NOBR:case ir.SMALL:case ir.STRIKE:case ir.STRONG:eQ(e,t);break;case ir.P:e.openElements.hasInButtonScope(ir.P)||e._insertFakeElement(it.P,ir.P),e._closePElement();break;case ir.DL:case ir.UL:case ir.OL:case ir.DIR:case ir.DIV:case ir.NAV:case ir.PRE:case ir.MAIN:case ir.MENU:case ir.ASIDE:case ir.BUTTON:case ir.CENTER:case ir.FIGURE:case ir.FOOTER:case ir.HEADER:case ir.HGROUP:case ir.DIALOG:case ir.ADDRESS:case ir.ARTICLE:case ir.DETAILS:case ir.SEARCH:case ir.SECTION:case ir.SUMMARY:case ir.LISTING:case ir.FIELDSET:case ir.BLOCKQUOTE:case ir.FIGCAPTION:let r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r));break;case ir.LI:e.openElements.hasInListItemScope(ir.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(ir.LI),e.openElements.popUntilTagNamePopped(ir.LI));break;case ir.DD:case ir.DT:let n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n));break;case ir.H1:case ir.H2:case ir.H3:case ir.H4:case ir.H5:case ir.H6:e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped());break;case ir.BR:e._reconstructActiveFormattingElements(),e._insertFakeElement(it.BR,ir.BR),e.openElements.pop(),e.framesetOk=!1;break;case ir.BODY:if(e.openElements.hasInScope(ir.BODY)&&(e.insertionMode=ii.AFTER_BODY,e.options.sourceCodeLocationInfo)){let r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e._setEndLocation(r,t)}break;case ir.HTML:e.openElements.hasInScope(ir.BODY)&&(e.insertionMode=ii.AFTER_BODY,tN(e,t));break;case ir.FORM:let a=e.openElements.tmplCount>0,{formElement:s}=e;a||(e.formElement=null),(s||a)&&e.openElements.hasInScope(ir.FORM)&&(e.openElements.generateImpliedEndTags(),a?e.openElements.popUntilTagNamePopped(ir.FORM):s&&e.openElements.remove(s));break;case ir.APPLET:case ir.OBJECT:case ir.MARQUEE:let i=t.tagID;e.openElements.hasInScope(i)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(i),e.activeFormattingElements.clearToLastMarker());break;case ir.TEMPLATE:e5(e,t);break;default:ta(e,t)}}function ti(e,t){e.tmplInsertionModeStack.length>0?tC(e,t):eK(e,t)}function to(e,t){if(void 0!==e.openElements.currentTagId&&eq.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=ii.IN_TABLE_TEXT,t.type){case s2.CHARACTER:th(e,t);break;case s2.WHITESPACE_CHARACTER:td(e,t)}else tu(e,t)}function tl(e,t){switch(t.tagID){case ir.TD:case ir.TH:case ir.TR:e.openElements.clearBackToTableContext(),e._insertFakeElement(it.TBODY,ir.TBODY),e.insertionMode=ii.IN_TABLE_BODY,tT(e,t);break;case ir.STYLE:case ir.SCRIPT:case ir.TEMPLATE:e1(e,t);break;case ir.COL:e.openElements.clearBackToTableContext(),e._insertFakeElement(it.COLGROUP,ir.COLGROUP),e.insertionMode=ii.IN_COLUMN_GROUP,tf(e,t);break;case ir.FORM:e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,s9.HTML),e.formElement=e.openElements.current,e.openElements.pop());break;case ir.TABLE:e.openElements.hasInTableScope(ir.TABLE)&&(e.openElements.popUntilTagNamePopped(ir.TABLE),e._resetInsertionMode(),e._processStartTag(t));break;case ir.TBODY:case ir.TFOOT:case ir.THEAD:e.openElements.clearBackToTableContext(),e._insertElement(t,s9.HTML),e.insertionMode=ii.IN_TABLE_BODY;break;case ir.INPUT:te(t)?e._appendElement(t,s9.HTML):tu(e,t),t.ackSelfClosing=!0;break;case ir.CAPTION:e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,s9.HTML),e.insertionMode=ii.IN_CAPTION;break;case ir.COLGROUP:e.openElements.clearBackToTableContext(),e._insertElement(t,s9.HTML),e.insertionMode=ii.IN_COLUMN_GROUP;break;default:tu(e,t)}}function tc(e,t){switch(t.tagID){case ir.TABLE:e.openElements.hasInTableScope(ir.TABLE)&&(e.openElements.popUntilTagNamePopped(ir.TABLE),e._resetInsertionMode());break;case ir.TEMPLATE:e5(e,t);break;case ir.BODY:case ir.CAPTION:case ir.COL:case ir.COLGROUP:case ir.HTML:case ir.TBODY:case ir.TD:case ir.TFOOT:case ir.TH:case ir.THEAD:case ir.TR:break;default:tu(e,t)}}function tu(e,t){let r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e8(e,t),e.fosterParentingEnabled=r}function td(e,t){e.pendingCharacterTokens.push(t)}function th(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function tp(e,t){let r=0;if(e.hasNonWhitespacePendingCharacterToken)for(;r<e.pendingCharacterTokens.length;r++)tu(e,e.pendingCharacterTokens[r]);else for(;r<e.pendingCharacterTokens.length;r++)e._insertCharacters(e.pendingCharacterTokens[r]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}let tm=new Set([ir.CAPTION,ir.COL,ir.COLGROUP,ir.TBODY,ir.TD,ir.TFOOT,ir.TH,ir.THEAD,ir.TR]);function tf(e,t){switch(t.tagID){case ir.HTML:tn(e,t);break;case ir.COL:e._appendElement(t,s9.HTML),t.ackSelfClosing=!0;break;case ir.TEMPLATE:e1(e,t);break;default:tE(e,t)}}function tE(e,t){e.openElements.currentTagId===ir.COLGROUP&&(e.openElements.pop(),e.insertionMode=ii.IN_TABLE,e._processToken(t))}function tT(e,t){switch(t.tagID){case ir.TR:e.openElements.clearBackToTableBodyContext(),e._insertElement(t,s9.HTML),e.insertionMode=ii.IN_ROW;break;case ir.TH:case ir.TD:e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(it.TR,ir.TR),e.insertionMode=ii.IN_ROW,tA(e,t);break;case ir.CAPTION:case ir.COL:case ir.COLGROUP:case ir.TBODY:case ir.TFOOT:case ir.THEAD:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=ii.IN_TABLE,tl(e,t));break;default:tl(e,t)}}function tg(e,t){let r=t.tagID;switch(t.tagID){case ir.TBODY:case ir.TFOOT:case ir.THEAD:e.openElements.hasInTableScope(r)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=ii.IN_TABLE);break;case ir.TABLE:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=ii.IN_TABLE,tc(e,t));break;case ir.BODY:case ir.CAPTION:case ir.COL:case ir.COLGROUP:case ir.HTML:case ir.TD:case ir.TH:case ir.TR:break;default:tc(e,t)}}function tA(e,t){switch(t.tagID){case ir.TH:case ir.TD:e.openElements.clearBackToTableRowContext(),e._insertElement(t,s9.HTML),e.insertionMode=ii.IN_CELL,e.activeFormattingElements.insertMarker();break;case ir.CAPTION:case ir.COL:case ir.COLGROUP:case ir.TBODY:case ir.TFOOT:case ir.THEAD:case ir.TR:e.openElements.hasInTableScope(ir.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=ii.IN_TABLE_BODY,tT(e,t));break;default:tl(e,t)}}function t_(e,t){switch(t.tagID){case ir.TR:e.openElements.hasInTableScope(ir.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=ii.IN_TABLE_BODY);break;case ir.TABLE:e.openElements.hasInTableScope(ir.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=ii.IN_TABLE_BODY,tg(e,t));break;case ir.TBODY:case ir.TFOOT:case ir.THEAD:(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(ir.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=ii.IN_TABLE_BODY,tg(e,t));break;case ir.BODY:case ir.CAPTION:case ir.COL:case ir.COLGROUP:case ir.HTML:case ir.TD:case ir.TH:break;default:tc(e,t)}}function tb(e,t){switch(t.tagID){case ir.HTML:tn(e,t);break;case ir.OPTION:e.openElements.currentTagId===ir.OPTION&&e.openElements.pop(),e._insertElement(t,s9.HTML);break;case ir.OPTGROUP:e.openElements.currentTagId===ir.OPTION&&e.openElements.pop(),e.openElements.currentTagId===ir.OPTGROUP&&e.openElements.pop(),e._insertElement(t,s9.HTML);break;case ir.HR:e.openElements.currentTagId===ir.OPTION&&e.openElements.pop(),e.openElements.currentTagId===ir.OPTGROUP&&e.openElements.pop(),e._appendElement(t,s9.HTML),t.ackSelfClosing=!0;break;case ir.INPUT:case ir.KEYGEN:case ir.TEXTAREA:case ir.SELECT:e.openElements.hasInSelectScope(ir.SELECT)&&(e.openElements.popUntilTagNamePopped(ir.SELECT),e._resetInsertionMode(),t.tagID!==ir.SELECT&&e._processStartTag(t));break;case ir.SCRIPT:case ir.TEMPLATE:e1(e,t)}}function tk(e,t){switch(t.tagID){case ir.OPTGROUP:e.openElements.stackTop>0&&e.openElements.currentTagId===ir.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===ir.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===ir.OPTGROUP&&e.openElements.pop();break;case ir.OPTION:e.openElements.currentTagId===ir.OPTION&&e.openElements.pop();break;case ir.SELECT:e.openElements.hasInSelectScope(ir.SELECT)&&(e.openElements.popUntilTagNamePopped(ir.SELECT),e._resetInsertionMode());break;case ir.TEMPLATE:e5(e,t)}}function tC(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(ir.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):eK(e,t)}function tN(e,t){var r;if(t.tagID===ir.HTML){if(e.fragmentContext||(e.insertionMode=ii.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===ir.HTML){e._setEndLocation(e.openElements.items[0],t);let n=e.openElements.items[1];!n||(null==(r=e.treeAdapter.getNodeSourceCodeLocation(n))?void 0:r.endTag)||e._setEndLocation(n,t)}}else tI(e,t)}function tI(e,t){e.insertionMode=ii.IN_BODY,e8(e,t)}function tS(e,t){e.insertionMode=ii.IN_BODY,e8(e,t)}function ty(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==s9.HTML&&void 0!==e.openElements.currentTagId&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}null==String.prototype.codePointAt||((e,t)=>e.codePointAt(t)),it.AREA,it.BASE,it.BASEFONT,it.BGSOUND,it.BR,it.COL,it.EMBED,it.FRAME,it.HR,it.IMG,it.INPUT,it.KEYGEN,it.LINK,it.META,it.PARAM,it.SOURCE,it.TRACK,it.WBR;let tD=tR("end"),tx=tR("start");function tR(e){return function(t){let r=t&&t.position&&t.position[e]||{};if("number"==typeof r.line&&r.line>0&&"number"==typeof r.column&&r.column>0)return{line:r.line,column:r.column,offset:"number"==typeof r.offset&&r.offset>-1?r.offset:void 0}}}function tL(e){let t=tx(e),r=tD(e);if(t&&r)return{start:t,end:r}}let tO=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,tw=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),tM={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function tP(e,t){let r=function(e){let t="root"===e.type?e.children[0]:e;return!!(t&&("doctype"===t.type||"element"===t.type&&"html"===t.tagName.toLowerCase()))}(e),n=(0,U.A)("type",{handlers:{root:tB,element:tF,text:tH,comment:tG,doctype:tU,raw:tj},unknown:t$}),s={parser:r?new eW(tM):eW.getFragmentParser(void 0,tM),handle(e){n(e,s)},stitches:!1,options:t||{}};n(e,s),tY(s,tx());let i=function(e,t){let r=t||{};return P({file:r.file||void 0,location:!1,schema:"svg"===r.space?b.JW:b.qy,verbose:r.verbose||!1},e)}(r?s.parser.document:s.parser.getFragment(),{file:s.options.file});return(s.stitches&&(0,a.YR)(i,"comment",function(e,t,r){if(e.value.stitch&&r&&void 0!==t)return r.children[t]=e.value.stitch,t}),"root"===i.type&&1===i.children.length&&i.children[0].type===e.type)?i.children[0]:i}function tv(e,t){let r=-1;if(e)for(;++r<e.length;)t.handle(e[r])}function tB(e,t){tv(e.children,t)}function tF(e,t){(function(e,t){let r=e.tagName.toLowerCase();if(t.parser.tokenizer.state===el.PLAINTEXT)return;tY(t,tx(e));let n=t.parser.openElements.current,a="namespaceURI"in n?n.namespaceURI:O.html;a===O.html&&"svg"===r&&(a=O.svg);let s=j({...e,children:[]},"svg"===({space:a===O.svg?"svg":"html"}).space?b.JW:b.qy),i={type:s2.START_TAG,tagName:r,tagID:ea(r),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in s?s.attrs:[],location:tq(e)};t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=r})(e,t),tv(e.children,t),function(e,t){let r=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&z.b.includes(r)||t.parser.tokenizer.state===el.PLAINTEXT)return;tY(t,tD(e));let n={type:s2.END_TAG,tagName:r,tagID:ea(r),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:tq(e)};t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken),r===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===el.RCDATA||t.parser.tokenizer.state===el.RAWTEXT||t.parser.tokenizer.state===el.SCRIPT_DATA)&&(t.parser.tokenizer.state=el.DATA)}(e,t)}function tH(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);let r={type:s2.CHARACTER,chars:e.value,location:tq(e)};tY(t,tx(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function tU(e,t){let r={type:s2.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:tq(e)};tY(t,tx(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function tG(e,t){let r=e.value,n={type:s2.COMMENT,data:r,location:tq(e)};tY(t,tx(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function tj(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,tz(t,tx(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(tO,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),72===t.parser.tokenizer.state||78===t.parser.tokenizer.state){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;let e=t.parser.tokenizer._consume();t.parser.tokenizer._callState(e)}}function t$(e,t){if(t.options.passThrough&&t.options.passThrough.includes(e.type)){var r;t.stitches=!0;let n="children"in(r=e)?A({...r,children:[]}):A(r);"children"in e&&"children"in n&&(n.children=tP({type:"root",children:e.children},t.options).children),tG({type:"comment",value:{stitch:n}},t)}else{let t="";throw tw.has(e.type)&&(t=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),Error("Cannot compile `"+e.type+"` node"+t)}}function tY(e,t){tz(e,t);let 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=el.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 tz(e,t){if(t&&void 0!==t.offset){let 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 tq(e){let t=tx(e)||{line:void 0,column:void 0,offset:void 0},r=tD(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 tV(e){return function(t,r){return tP(t,{...e,file:r})}}let tW=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],tQ={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...tW,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...tW],h2:[["className","sr-only"]],img:[...tW,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...tW,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...tW],table:[...tW],ul:[...tW,["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"]},tX={}.hasOwnProperty;function tK(e,t){if(t&&"object"==typeof t)switch("string"==typeof t.type?t.type:""){case"comment":var r=e,n=t;if(r.schema.allowComments){let e="string"==typeof n.value?n.value:"",t=e.indexOf("--\x3e"),r={type:"comment",value:t<0?e:e.slice(0,t)};return t1(r,n),r}return;case"doctype":var a=e,s=t;if(a.schema.allowDoctypes){let e={type:"doctype"};return t1(e,s),e}return;case"element":return function(e,t){let r="string"==typeof t.tagName?t.tagName:"";e.stack.push(r);let n=tZ(e,t.children),a=function(e,t){let r,n=e.stack[e.stack.length-1],a=e.schema.attributes,s=e.schema.required,i=a&&tX.call(a,n)?a[n]:void 0,o=a&&tX.call(a,"*")?a["*"]:void 0,l=t&&"object"==typeof t?t:{},c={};for(r in l)if(tX.call(l,r)){let t=l[r],n=tJ(e,t5(i,r),r,t);null==n&&(n=tJ(e,t5(o,r),r,t)),null!=n&&(c[r]=n)}if(s&&tX.call(s,n)){let e=s[n];for(r in e)tX.call(e,r)&&!tX.call(c,r)&&(c[r]=e[r])}return c}(e,t.properties);e.stack.pop();let s=!1;if(r&&"*"!==r&&(!e.schema.tagNames||e.schema.tagNames.includes(r))&&(s=!0,e.schema.ancestors&&tX.call(e.schema.ancestors,r))){let t=e.schema.ancestors[r],n=-1;for(s=!1;++n<t.length;)e.stack.includes(t[n])&&(s=!0)}if(!s)return e.schema.strip&&!e.schema.strip.includes(r)?n:void 0;let i={type:"element",tagName:r,properties:a,children:n};return t1(i,t),i}(e,t);case"root":var i=e,o=t;let l={type:"root",children:tZ(i,o.children)};return t1(l,o),l;case"text":var c=t;let u={type:"text",value:"string"==typeof c.value?c.value:""};return t1(u,c),u}}function tZ(e,t){let r=[];if(Array.isArray(t)){let n=-1;for(;++n<t.length;){let a=tK(e,t[n]);a&&(Array.isArray(a)?r.push(...a):r.push(a))}}return r}function tJ(e,t,r,n){return t?Array.isArray(n)?function(e,t,r,n){let a=-1,s=[];for(;++a<n.length;){let i=t0(e,t,r,n[a]);("number"==typeof i||"string"==typeof i)&&s.push(i)}return s}(e,t,r,n):t0(e,t,r,n):void 0}function t0(e,t,r,n){if(("boolean"==typeof n||"number"==typeof n||"string"==typeof n)&&function(e,t,r){let n=e.schema.protocols&&tX.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!n||0===n.length)return!0;let a=String(r),s=a.indexOf(":"),i=a.indexOf("?"),o=a.indexOf("#"),l=a.indexOf("/");if(s<0||l>-1&&s>l||i>-1&&s>i||o>-1&&s>o)return!0;let c=-1;for(;++c<n.length;){let e=n[c];if(s===e.length&&a.slice(0,e.length)===e)return!0}return!1}(e,r,n)){if("object"==typeof t&&t.length>1){let e=!1,r=0;for(;++r<t.length;){let a=t[r];if(a&&"object"==typeof a&&"flags"in a){if(a.test(String(n))){e=!0;break}}else if(a===n){e=!0;break}}if(!e)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(r)?e.schema.clobberPrefix+n:n}}function t1(e,t){let r=tL(t);t.data&&(e.data=A(t.data)),r&&(e.position=r)}function t5(e,t){let r,n=-1;if(e)for(;++n<e.length;){let a=e[n],s="string"==typeof a?a:a[0];if(s===t)return a;"data*"===s&&(r=a)}if(t.length>4&&"data"===t.slice(0,4).toLowerCase())return r}function t2(e){return function(t){var r=t,n=e;let a={type:"root",children:[]},s=tK({schema:n?{...tQ,...n}:tQ,stack:[]},r);return s&&(Array.isArray(s)?1===s.length?a=s[0]:a.children=s:a=s),a}}var t3=r(45532),t6=Object.defineProperty,t8=Object.defineProperties,t4=Object.getOwnPropertyDescriptors,t9=Object.getOwnPropertySymbols,t7=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,rt=(e,t,r)=>t in e?t6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rr=(e,t)=>{for(var r in t||(t={}))t7.call(t,r)&&rt(e,r,t[r]);if(t9)for(var r of t9(t))re.call(t,r)&&rt(e,r,t[r]);return e},rn=(e,t)=>t8(e,t4(t)),ra=(e,t)=>{let r=!1,n=!1;for(let a=0;a<t;a+=1){if("\\"===e[a]&&a+1<e.length&&"`"===e[a+1]){a+=1;continue}if("```"===e.substring(a,a+3)){n=!n,a+=2;continue}n||"`"!==e[a]||(r=!r)}return r||n},rs=(e,t)=>{let r="```"===e.substring(t,t+3),n=t>0&&"```"===e.substring(t-1,t+2),a=t>1&&"```"===e.substring(t-2,t+1);return r||n||a},ri=(e,t)=>{let r=!1,n=!1,a=-1;for(let s=0;s<e.length;s+=1){if("\\"===e[s]&&s+1<e.length&&"`"===e[s+1]){s+=1;continue}if("```"===e.substring(s,s+3)){n=!n,s+=2;continue}if(!n&&"`"===e[s])if(r){if(a<t&&t<s)return!0;r=!1,a=-1}else r=!0,a=s}return!1},ro=/^(\s*(?:[-*+]|\d+[.)]) +)>(=?\s*[$]?\d)/gm,rl=/(\*\*)([^*]*\*?)$/,rc=/(__)([^_]*?)$/,ru=/(\*\*\*)([^*]*?)$/,rd=/(\*)([^*]*?)$/,rh=/(_)([^_]*?)$/,rp=/(`)([^`]*?)$/,rm=/(~~)([^~]*?)$/,rf=/^[\s_~*`]*$/,rE=/^[\s]*[-*+][\s]+$/,rT=/[\p{L}\p{N}_]/u,rg=/^```[^`\n]*```?$/,rA=/^\*{4,}$/,r_=/(__)([^_]+)_$/,rb=/(~~)([^~]+)~$/,rk=/~~/g,rC=e=>{if(!e)return!1;let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||95===t||rT.test(e)},rN=(e,t)=>{let r=1;for(let n=t+1;n<e.length;n+=1)if("["===e[n])r+=1;else if("]"===e[n]&&0==(r-=1))return n;return -1},rI=(e,t)=>{let r=!1,n=!1;for(let a=0;a<e.length&&a<t;a+=1){if("\\"===e[a]&&"$"===e[a+1]){a+=1;continue}"$"===e[a]&&("$"===e[a+1]?(n=!n,a+=1,r=!1):n||(r=!r))}return r||n},rS=(e,t)=>{for(let r=t;r<e.length;r+=1){if(")"===e[r])return!0;if(e[r]===`
|
|
139
139
|
`)break}return!1},ry=(e,t)=>{for(let r=t-1;r>=0&&")"!==e[r];r-=1){if("("===e[r])return r>0&&"]"===e[r-1]&&rS(e,t);if(e[r]===`
|
|
140
140
|
`)break}return!1},rD=(e,t,r)=>{let n=0;for(let r=t-1;r>=0;r-=1)if(e[r]===`
|
|
141
141
|
`){n=r+1;break}let a=e.length;for(let r=t;r<e.length;r+=1)if(e[r]===`
|
|
@@ -156,8 +156,8 @@ XID_Start XIDS`.split(/\s/).map(e=>[q(e),e])),ex=new Map([["s",eE(383)],[eE(383)
|
|
|
156
156
|
`)?null:e.endsWith("``")&&!e.endsWith("```")?`${e}\``:e)(e);if(null!==t)return t;let r=e.match(rp);if(r&&(e.match(/```/g)||[]).length%2!=1){let t=r[2];if(!t||rf.test(t))return e;if((e=>{let t=0;for(let r=0;r<e.length;r+=1){if("\\"===e[r]&&r+1<e.length&&"`"===e[r+1]){r+=1;continue}"`"!==e[r]||rs(e,r)||(t+=1)}return t})(e)%2==1)return`${e}\``}return e},priority:rY.INLINE_CODE},optionKey:"inlineCode"},{handler:{name:"strikethrough",handle:e=>{var t,r;let n=e.match(rm);if(n){let r=n[2];if(!r||rf.test(r))return e;let a=e.lastIndexOf(n[1]);if(ra(e,a)||ri(e,a))return e;if((null==(t=e.match(rk))?void 0:t.length)%2==1)return`${e}~~`}else{let t=e.match(rb);if(t){let n=e.lastIndexOf(t[0].slice(0,2));if(ra(e,n)||ri(e,n))return e;if((null==(r=e.match(rk))?void 0:r.length)%2==1)return`${e}~`}}return e},priority:rY.STRIKETHROUGH},optionKey:"strikethrough"},{handler:{name:"katex",handle:e=>(e=>{let t=0,r=!1;for(let n=0;n<e.length-1;n+=1)"`"!==e[n]||rv(e,n)||(r=!r),r||"$"!==e[n]||"$"!==e[n+1]||(t+=1,n+=1);return t})(e)%2==0?e:(e=>{if(e.endsWith("$")&&!e.endsWith("$$"))return`${e}$`;let t=e.indexOf("$$");return -1===t||-1===e.indexOf(`
|
|
157
157
|
`,t)||e.endsWith(`
|
|
158
158
|
`)?`${e}$$`:`${e}
|
|
159
|
-
$$`})(e),priority:rY.KATEX},optionKey:"katex"},{handler:{name:"inlineKatex",handle:e=>(e=>{let t=0,r=!1;for(let n=0;n<e.length;n+=1){if("\\"===e[n]){n+=1;continue}if("`"===e[n]&&!rv(e,n)){r=!r;continue}r||"$"!==e[n]||(n+1<e.length&&"$"===e[n+1]?n+=1:t+=1)}return t})(e)%2==1?`${e}$`:e,priority:rY.INLINE_KATEX},optionKey:"inlineKatex"}],rq=r(49251),rV=r(58849),rW=r(90508),rQ=r(38129);let rK=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,rX=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,rZ={};function rJ(e,t){return((t||rZ).jsx?rX:rK).test(e)}var r0=r(16468);let r1={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"};var r5=r(87297),r3=r(91446);let r2={}.hasOwnProperty,r8=new Map,r6=/[A-Z]/g,r4=new Set(["table","tbody","thead","tfoot","tr"]),r9=new Set(["td","th"]),r7="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function ne(e,t,r){return"element"===t.type?function(e,t,r){let n=e.schema;"svg"===t.tagName.toLowerCase()&&"html"===n.space&&(e.schema=b.JW),e.ancestors.push(t);let a=na(e,t.tagName,!1),s=function(e,t){let r,n,a={};for(n in t.properties)if("children"!==n&&r2.call(t.properties,n)){let s=function(e,t,r){let n=(0,N.I)(e.schema,t);if(!(null==r||"number"==typeof r&&Number.isNaN(r))){if(Array.isArray(r)&&(r=n.commaSeparated?(0,k.A)(r):(0,S.A)(r)),"style"===n.property){let t="object"==typeof r?r:function(e,t){try{return r5(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};let t=new r3.o("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=r7+"#cannot-parse-style-attribute",t}}(e,String(r));return"css"===e.stylePropertyNameCase&&(t=function(e){let t,r={};for(t in e)r2.call(e,t)&&(r[function(e){let t=e.replace(r6,ni);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return r}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&n.space?r1[n.property]||n.property:n.attribute,r]}}(e,n,t.properties[n]);if(s){let[n,i]=s;e.tableCellAlignToStyle&&"align"===n&&"string"==typeof i&&r9.has(t.tagName)?r=i:a[n]=i}}return r&&((a.style||(a.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r),a}(e,t),i=nn(e,t);return r4.has(t.tagName)&&(i=i.filter(function(e){return"string"!=typeof e||!(0,r0.m)(e)})),nt(e,s,a,t),nr(s,i),e.ancestors.pop(),e.schema=n,e.create(t,a,s,r)}(e,t,r):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let r=t.data.estree.body[0];return(0,_.ok)("ExpressionStatement"===r.type),e.evaluater.evaluateExpression(r.expression)}ns(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,r){let n=e.schema;"svg"===t.name&&"html"===n.space&&(e.schema=b.JW),e.ancestors.push(t);let a=null===t.name?e.Fragment:na(e,t.name,!0),s=function(e,t){let r={};for(let n of t.attributes)if("mdxJsxExpressionAttribute"===n.type)if(n.data&&n.data.estree&&e.evaluater){let t=n.data.estree.body[0];(0,_.ok)("ExpressionStatement"===t.type);let a=t.expression;(0,_.ok)("ObjectExpression"===a.type);let s=a.properties[0];(0,_.ok)("SpreadElement"===s.type),Object.assign(r,e.evaluater.evaluateExpression(s.argument))}else ns(e,t.position);else{let a,s=n.name;if(n.value&&"object"==typeof n.value)if(n.value.data&&n.value.data.estree&&e.evaluater){let t=n.value.data.estree.body[0];(0,_.ok)("ExpressionStatement"===t.type),a=e.evaluater.evaluateExpression(t.expression)}else ns(e,t.position);else a=null===n.value||n.value;r[s]=a}return r}(e,t),i=nn(e,t);return nt(e,s,a,t),nr(s,i),e.ancestors.pop(),e.schema=n,e.create(t,a,s,r)}(e,t,r):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ns(e,t.position)}(e,t):"root"===t.type?function(e,t,r){let n={};return nr(n,nn(e,t)),e.create(t,e.Fragment,n,r)}(e,t,r):"text"===t.type?t.value:void 0}function nt(e,t,r,n){"string"!=typeof r&&r!==e.Fragment&&e.passNode&&(t.node=n)}function nr(e,t){if(t.length>0){let r=t.length>1?t:t[0];r&&(e.children=r)}}function nn(e,t){let r=[],n=-1,a=e.passKeys?new Map:r8;for(;++n<t.children.length;){let s,i=t.children[n];if(e.passKeys){let e="element"===i.type?i.tagName:"mdxJsxFlowElement"===i.type||"mdxJsxTextElement"===i.type?i.name:void 0;if(e){let t=a.get(e)||0;s=e+"-"+t,a.set(e,t+1)}}let o=ne(e,i,s);void 0!==o&&r.push(o)}return r}function na(e,t,r){let n;if(r)if(t.includes(".")){let e,r=t.split("."),a=-1;for(;++a<r.length;){let t=rJ(r[a])?{type:"Identifier",name:r[a]}:{type:"Literal",value:r[a]};e=e?{type:"MemberExpression",object:e,property:t,computed:!!(a&&"Literal"===t.type),optional:!1}:t}(0,_.ok)(e,"always a result"),n=e}else n=rJ(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else n={type:"Literal",value:t};if("Literal"===n.type){let t=n.value;return r2.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(n);ns(e)}function ns(e,t){let r=new r3.o("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=r7+"#cannot-handle-mdx-estrees-without-createevaluater",r}function ni(e){return"-"+e.toLowerCase()}let no={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"]};var nl=r(14753),nc=r(32999);function nu(e){let t=[],r=-1,n=0,a=0;for(;++r<e.length;){let s=e.charCodeAt(r),i="";if(37===s&&(0,nc.lV)(e.charCodeAt(r+1))&&(0,nc.lV)(e.charCodeAt(r+2)))a=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(i=String.fromCharCode(s));else if(s>55295&&s<57344){let t=e.charCodeAt(r+1);s<56320&&t>56319&&t<57344?(i=String.fromCharCode(s,t),a=1):i="�"}else i=String.fromCharCode(s);i&&(t.push(e.slice(n,r),encodeURIComponent(i)),n=r+a+1,i=""),a&&(r+=a,a=0)}return t.join("")+e.slice(n)}function nd(e,t){let r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function nh(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function np(e,t){let r=t.referenceType,n="]";if("collapsed"===r?n+="[]":"full"===r&&(n+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+n}];let a=e.all(t),s=a[0];s&&"text"===s.type?s.value="["+s.value:a.unshift({type:"text",value:"["});let i=a[a.length-1];return i&&"text"===i.type?i.value+=n:a.push({type:"text",value:n}),a}function nm(e){let t=e.spread;return null==t?e.children.length>1:t}function nf(e,t,r){let n=0,a=e.length;if(t){let t=e.codePointAt(n);for(;9===t||32===t;)n++,t=e.codePointAt(n)}if(r){let t=e.codePointAt(a-1);for(;9===t||32===t;)a--,t=e.codePointAt(a-1)}return a>n?e.slice(n,a):""}let nE={blockquote:function(e,t){let r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)},break:function(e,t){let r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:"\n"}]},code:function(e,t){let r=t.value?t.value+"\n":"",n={},a=t.lang?t.lang.split(/\s+/):[];a.length>0&&(n.className=["language-"+a[0]]);let s={type:"element",tagName:"code",properties:n,children:[{type:"text",value:r}]};return t.meta&&(s.data={meta:t.meta}),e.patch(t,s),s={type:"element",tagName:"pre",properties:{},children:[s=e.applyData(t,s)]},e.patch(t,s),s},delete:function(e,t){let r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},emphasis:function(e,t){let r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},footnoteReference:function(e,t){let r,n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",a=String(t.identifier).toUpperCase(),s=nu(a.toLowerCase()),i=e.footnoteOrder.indexOf(a),o=e.footnoteCounts.get(a);void 0===o?(o=0,e.footnoteOrder.push(a),r=e.footnoteOrder.length):r=i+1,o+=1,e.footnoteCounts.set(a,o);let l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+s,id:n+"fnref-"+s+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(r)}]};e.patch(t,l);let c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){let r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},html:function(e,t){if(e.options.allowDangerousHtml){let r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}},imageReference:function(e,t){let r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return np(e,t);let a={src:nu(n.url||""),alt:t.alt};null!==n.title&&void 0!==n.title&&(a.title=n.title);let s={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,s),e.applyData(t,s)},image:function(e,t){let r={src:nu(t.url)};null!==t.alt&&void 0!==t.alt&&(r.alt=t.alt),null!==t.title&&void 0!==t.title&&(r.title=t.title);let n={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,n),e.applyData(t,n)},inlineCode:function(e,t){let r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);let n={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,n),e.applyData(t,n)},linkReference:function(e,t){let r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return np(e,t);let a={href:nu(n.url||"")};null!==n.title&&void 0!==n.title&&(a.title=n.title);let s={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)},link:function(e,t){let r={href:nu(t.url)};null!==t.title&&void 0!==t.title&&(r.title=t.title);let n={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},listItem:function(e,t,r){let n=e.all(t),a=r?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let r=e.children,n=-1;for(;!t&&++n<r.length;)t=nm(r[n])}return t}(r):nm(t),s={},i=[];if("boolean"==typeof t.checked){let e,r=n[0];r&&"element"===r.type&&"p"===r.tagName?e=r:(e={type:"element",tagName:"p",properties:{},children:[]},n.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let o=-1;for(;++o<n.length;){let e=n[o];(a||0!==o||"element"!==e.type||"p"!==e.tagName)&&i.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||a?i.push(e):i.push(...e.children)}let l=n[n.length-1];l&&(a||"element"!==l.type||"p"!==l.tagName)&&i.push({type:"text",value:"\n"});let c={type:"element",tagName:"li",properties:s,children:i};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){let r={},n=e.all(t),a=-1;for("number"==typeof t.start&&1!==t.start&&(r.start=t.start);++a<n.length;){let e=n[a];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}let s={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(n,!0)};return e.patch(t,s),e.applyData(t,s)},paragraph:function(e,t){let r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},root:function(e,t){let r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)},strong:function(e,t){let r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},table:function(e,t){let r=e.all(t),n=r.shift(),a=[];if(n){let r={type:"element",tagName:"thead",properties:{},children:e.wrap([n],!0)};e.patch(t.children[0],r),a.push(r)}if(r.length>0){let n={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},s=tx(t.children[1]),i=tD(t.children[t.children.length-1]);s&&i&&(n.position={start:s,end:i}),a.push(n)}let s={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,s),e.applyData(t,s)},tableCell:function(e,t){let r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},tableRow:function(e,t,r){let n=r?r.children:void 0,a=0===(n?n.indexOf(t):1)?"th":"td",s=r&&"table"===r.type?r.align:void 0,i=s?s.length:t.children.length,o=-1,l=[];for(;++o<i;){let r=t.children[o],n={},i=s?s[o]:void 0;i&&(n.align=i);let c={type:"element",tagName:a,properties:n,children:[]};r&&(c.children=e.all(r),e.patch(r,c),c=e.applyData(r,c)),l.push(c)}let c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){let r={type:"text",value:function(e){let t=String(e),r=/\r?\n|\r/g,n=r.exec(t),a=0,s=[];for(;n;)s.push(nf(t.slice(a,n.index),a>0,!0),n[0]),a=n.index+n[0].length,n=r.exec(t);return s.push(nf(t.slice(a),a>0,!1)),s.join("")}(String(t.value))};return e.patch(t,r),e.applyData(t,r)},thematicBreak:function(e,t){let r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)},toml:nT,yaml:nT,definition:nT,footnoteDefinition:nT};function nT(){}let ng={}.hasOwnProperty,nA={};function n_(e,t){e.position&&(t.position=tL(e))}function nb(e,t){let r=t;if(e&&e.data){let t=e.data.hName,n=e.data.hChildren,a=e.data.hProperties;"string"==typeof t&&("element"===r.type?r.tagName=t:r={type:"element",tagName:t,properties:{},children:"children"in r?r.children:[r]}),"element"===r.type&&a&&Object.assign(r.properties,A(a)),"children"in r&&r.children&&null!=n&&(r.children=n)}return r}function nk(e,t){let r=[],n=-1;for(t&&r.push({type:"text",value:"\n"});++n<e.length;)n&&r.push({type:"text",value:"\n"}),r.push(e[n]);return t&&e.length>0&&r.push({type:"text",value:"\n"}),r}function nC(e){let t=0,r=e.charCodeAt(t);for(;9===r||32===r;)t++,r=e.charCodeAt(t);return e.slice(t)}function nN(e,t){let r=function(e,t){let r=t||nA,n=new Map,s=new Map,i={all:function(e){let t=[];if("children"in e){let r=e.children,n=-1;for(;++n<r.length;){let a=i.one(r[n],e);if(a){if(n&&"break"===r[n-1].type&&(Array.isArray(a)||"text"!==a.type||(a.value=nC(a.value)),!Array.isArray(a)&&"element"===a.type)){let e=a.children[0];e&&"text"===e.type&&(e.value=nC(e.value))}Array.isArray(a)?t.push(...a):t.push(a)}}}return t},applyData:nb,definitionById:n,footnoteById:s,footnoteCounts:new Map,footnoteOrder:[],handlers:{...nE,...r.handlers},one:function(e,t){let r=e.type,n=i.handlers[r];if(ng.call(i.handlers,r)&&n)return n(i,e,t);if(i.options.passThrough&&i.options.passThrough.includes(r)){if("children"in e){let{children:t,...r}=e,n=A(r);return n.children=i.all(e),n}return A(e)}return(i.options.unknownHandler||function(e,t){let r=t.data||{},n="value"in t&&!(ng.call(r,"hProperties")||ng.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)})(i,e,t)},options:r,patch:n_,wrap:nk};return(0,a.YR)(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){let t="definition"===e.type?n:s,r=String(e.identifier).toUpperCase();t.has(r)||t.set(r,e)}}),i}(e,t),n=r.one(e,void 0),s=function(e){let t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||nd,n=e.options.footnoteBackLabel||nh,a=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",i=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[],l=-1;for(;++l<e.footnoteOrder.length;){let a=e.footnoteById.get(e.footnoteOrder[l]);if(!a)continue;let s=e.all(a),i=String(a.identifier).toUpperCase(),c=nu(i.toLowerCase()),u=0,d=[],h=e.footnoteCounts.get(i);for(;void 0!==h&&++u<=h;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof r?r:r(l,u);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof n?n:n(l,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let p=s[s.length-1];if(p&&"element"===p.type&&"p"===p.tagName){let e=p.children[p.children.length-1];e&&"text"===e.type?e.value+=" ":p.children.push({type:"text",value:" "}),p.children.push(...d)}else s.push(...d);let m={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(s,!0)};e.patch(a,m),o.push(m)}if(0!==o.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...A(i),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:"\n"}]}}(r),i=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return s&&((0,_.ok)("children"in i),i.children.push({type:"text",value:"\n"},s)),i}function nI(e,t){return e&&"run"in e?async function(r,n){let a=nN(r,{file:n,...t});await e.run(a,n)}:function(r,n){return nN(r,{file:n,...e||t})}}var nS=r(70552);function ny(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var nD=ny(),nx={exec:()=>null};function nR(e,t=""){let r="string"==typeof e?e:e.source,n={replace:(e,t)=>{let a="string"==typeof t?t:t.source;return a=a.replace(nO.caret,"$1"),r=r.replace(e,a),n},getRegex:()=>new RegExp(r,t)};return n}var nL=(()=>{try{return!!RegExp("(?<=1)(?<!1)")}catch{return!1}})(),nO={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},nw=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,nM=/(?:[*+-]|\d{1,9}[.)])/,nP=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,nv=nR(nP).replace(/bull/g,nM).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),nB=nR(nP).replace(/bull/g,nM).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),nF=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,nH=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,nU=nR(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",nH).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),nG=nR(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,nM).getRegex(),nj="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",n$=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,nY=nR("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",n$).replace("tag",nj).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),nz=nR(nF).replace("hr",nw).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",nj).getRegex(),nq={blockquote:nR(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",nz).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:nU,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:nw,html:nY,lheading:nv,list:nG,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:nz,table:nx,text:/^[^\n]+/},nV=nR("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",nw).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",nj).getRegex(),nW={...nq,lheading:nB,table:nV,paragraph:nR(nF).replace("hr",nw).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",nV).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",nj).getRegex()},nQ={...nq,html:nR(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",n$).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:nx,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:nR(nF).replace("hr",nw).replace("heading",` *#{1,6} *[^
|
|
160
|
-
]`).replace("lheading",nv).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},
|
|
159
|
+
$$`})(e),priority:rY.KATEX},optionKey:"katex"},{handler:{name:"inlineKatex",handle:e=>(e=>{let t=0,r=!1;for(let n=0;n<e.length;n+=1){if("\\"===e[n]){n+=1;continue}if("`"===e[n]&&!rv(e,n)){r=!r;continue}r||"$"!==e[n]||(n+1<e.length&&"$"===e[n+1]?n+=1:t+=1)}return t})(e)%2==1?`${e}$`:e,priority:rY.INLINE_KATEX},optionKey:"inlineKatex"}],rq=r(49251),rV=r(58849),rW=r(90508),rQ=r(38129);let rX=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,rK=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,rZ={};function rJ(e,t){return((t||rZ).jsx?rK:rX).test(e)}var r0=r(16468);let r1={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"};var r5=r(87297),r2=r(91446);let r3={}.hasOwnProperty,r6=new Map,r8=/[A-Z]/g,r4=new Set(["table","tbody","thead","tfoot","tr"]),r9=new Set(["td","th"]),r7="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function ne(e,t,r){return"element"===t.type?function(e,t,r){let n=e.schema;"svg"===t.tagName.toLowerCase()&&"html"===n.space&&(e.schema=b.JW),e.ancestors.push(t);let a=na(e,t.tagName,!1),s=function(e,t){let r,n,a={};for(n in t.properties)if("children"!==n&&r3.call(t.properties,n)){let s=function(e,t,r){let n=(0,N.I)(e.schema,t);if(!(null==r||"number"==typeof r&&Number.isNaN(r))){if(Array.isArray(r)&&(r=n.commaSeparated?(0,k.A)(r):(0,S.A)(r)),"style"===n.property){let t="object"==typeof r?r:function(e,t){try{return r5(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};let t=new r2.o("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=r7+"#cannot-parse-style-attribute",t}}(e,String(r));return"css"===e.stylePropertyNameCase&&(t=function(e){let t,r={};for(t in e)r3.call(e,t)&&(r[function(e){let t=e.replace(r8,ni);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return r}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&n.space?r1[n.property]||n.property:n.attribute,r]}}(e,n,t.properties[n]);if(s){let[n,i]=s;e.tableCellAlignToStyle&&"align"===n&&"string"==typeof i&&r9.has(t.tagName)?r=i:a[n]=i}}return r&&((a.style||(a.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r),a}(e,t),i=nn(e,t);return r4.has(t.tagName)&&(i=i.filter(function(e){return"string"!=typeof e||!(0,r0.m)(e)})),nt(e,s,a,t),nr(s,i),e.ancestors.pop(),e.schema=n,e.create(t,a,s,r)}(e,t,r):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let r=t.data.estree.body[0];return(0,_.ok)("ExpressionStatement"===r.type),e.evaluater.evaluateExpression(r.expression)}ns(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,r){let n=e.schema;"svg"===t.name&&"html"===n.space&&(e.schema=b.JW),e.ancestors.push(t);let a=null===t.name?e.Fragment:na(e,t.name,!0),s=function(e,t){let r={};for(let n of t.attributes)if("mdxJsxExpressionAttribute"===n.type)if(n.data&&n.data.estree&&e.evaluater){let t=n.data.estree.body[0];(0,_.ok)("ExpressionStatement"===t.type);let a=t.expression;(0,_.ok)("ObjectExpression"===a.type);let s=a.properties[0];(0,_.ok)("SpreadElement"===s.type),Object.assign(r,e.evaluater.evaluateExpression(s.argument))}else ns(e,t.position);else{let a,s=n.name;if(n.value&&"object"==typeof n.value)if(n.value.data&&n.value.data.estree&&e.evaluater){let t=n.value.data.estree.body[0];(0,_.ok)("ExpressionStatement"===t.type),a=e.evaluater.evaluateExpression(t.expression)}else ns(e,t.position);else a=null===n.value||n.value;r[s]=a}return r}(e,t),i=nn(e,t);return nt(e,s,a,t),nr(s,i),e.ancestors.pop(),e.schema=n,e.create(t,a,s,r)}(e,t,r):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ns(e,t.position)}(e,t):"root"===t.type?function(e,t,r){let n={};return nr(n,nn(e,t)),e.create(t,e.Fragment,n,r)}(e,t,r):"text"===t.type?t.value:void 0}function nt(e,t,r,n){"string"!=typeof r&&r!==e.Fragment&&e.passNode&&(t.node=n)}function nr(e,t){if(t.length>0){let r=t.length>1?t:t[0];r&&(e.children=r)}}function nn(e,t){let r=[],n=-1,a=e.passKeys?new Map:r6;for(;++n<t.children.length;){let s,i=t.children[n];if(e.passKeys){let e="element"===i.type?i.tagName:"mdxJsxFlowElement"===i.type||"mdxJsxTextElement"===i.type?i.name:void 0;if(e){let t=a.get(e)||0;s=e+"-"+t,a.set(e,t+1)}}let o=ne(e,i,s);void 0!==o&&r.push(o)}return r}function na(e,t,r){let n;if(r)if(t.includes(".")){let e,r=t.split("."),a=-1;for(;++a<r.length;){let t=rJ(r[a])?{type:"Identifier",name:r[a]}:{type:"Literal",value:r[a]};e=e?{type:"MemberExpression",object:e,property:t,computed:!!(a&&"Literal"===t.type),optional:!1}:t}(0,_.ok)(e,"always a result"),n=e}else n=rJ(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else n={type:"Literal",value:t};if("Literal"===n.type){let t=n.value;return r3.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(n);ns(e)}function ns(e,t){let r=new r2.o("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=r7+"#cannot-handle-mdx-estrees-without-createevaluater",r}function ni(e){return"-"+e.toLowerCase()}let no={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"]};var nl=r(14753),nc=r(32999);function nu(e){let t=[],r=-1,n=0,a=0;for(;++r<e.length;){let s=e.charCodeAt(r),i="";if(37===s&&(0,nc.lV)(e.charCodeAt(r+1))&&(0,nc.lV)(e.charCodeAt(r+2)))a=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(i=String.fromCharCode(s));else if(s>55295&&s<57344){let t=e.charCodeAt(r+1);s<56320&&t>56319&&t<57344?(i=String.fromCharCode(s,t),a=1):i="�"}else i=String.fromCharCode(s);i&&(t.push(e.slice(n,r),encodeURIComponent(i)),n=r+a+1,i=""),a&&(r+=a,a=0)}return t.join("")+e.slice(n)}function nd(e,t){let r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function nh(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function np(e,t){let r=t.referenceType,n="]";if("collapsed"===r?n+="[]":"full"===r&&(n+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+n}];let a=e.all(t),s=a[0];s&&"text"===s.type?s.value="["+s.value:a.unshift({type:"text",value:"["});let i=a[a.length-1];return i&&"text"===i.type?i.value+=n:a.push({type:"text",value:n}),a}function nm(e){let t=e.spread;return null==t?e.children.length>1:t}function nf(e,t,r){let n=0,a=e.length;if(t){let t=e.codePointAt(n);for(;9===t||32===t;)n++,t=e.codePointAt(n)}if(r){let t=e.codePointAt(a-1);for(;9===t||32===t;)a--,t=e.codePointAt(a-1)}return a>n?e.slice(n,a):""}let nE={blockquote:function(e,t){let r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)},break:function(e,t){let r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:"\n"}]},code:function(e,t){let r=t.value?t.value+"\n":"",n={},a=t.lang?t.lang.split(/\s+/):[];a.length>0&&(n.className=["language-"+a[0]]);let s={type:"element",tagName:"code",properties:n,children:[{type:"text",value:r}]};return t.meta&&(s.data={meta:t.meta}),e.patch(t,s),s={type:"element",tagName:"pre",properties:{},children:[s=e.applyData(t,s)]},e.patch(t,s),s},delete:function(e,t){let r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},emphasis:function(e,t){let r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},footnoteReference:function(e,t){let r,n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",a=String(t.identifier).toUpperCase(),s=nu(a.toLowerCase()),i=e.footnoteOrder.indexOf(a),o=e.footnoteCounts.get(a);void 0===o?(o=0,e.footnoteOrder.push(a),r=e.footnoteOrder.length):r=i+1,o+=1,e.footnoteCounts.set(a,o);let l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+s,id:n+"fnref-"+s+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(r)}]};e.patch(t,l);let c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){let r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},html:function(e,t){if(e.options.allowDangerousHtml){let r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}},imageReference:function(e,t){let r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return np(e,t);let a={src:nu(n.url||""),alt:t.alt};null!==n.title&&void 0!==n.title&&(a.title=n.title);let s={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,s),e.applyData(t,s)},image:function(e,t){let r={src:nu(t.url)};null!==t.alt&&void 0!==t.alt&&(r.alt=t.alt),null!==t.title&&void 0!==t.title&&(r.title=t.title);let n={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,n),e.applyData(t,n)},inlineCode:function(e,t){let r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);let n={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,n),e.applyData(t,n)},linkReference:function(e,t){let r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return np(e,t);let a={href:nu(n.url||"")};null!==n.title&&void 0!==n.title&&(a.title=n.title);let s={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)},link:function(e,t){let r={href:nu(t.url)};null!==t.title&&void 0!==t.title&&(r.title=t.title);let n={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},listItem:function(e,t,r){let n=e.all(t),a=r?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let r=e.children,n=-1;for(;!t&&++n<r.length;)t=nm(r[n])}return t}(r):nm(t),s={},i=[];if("boolean"==typeof t.checked){let e,r=n[0];r&&"element"===r.type&&"p"===r.tagName?e=r:(e={type:"element",tagName:"p",properties:{},children:[]},n.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let o=-1;for(;++o<n.length;){let e=n[o];(a||0!==o||"element"!==e.type||"p"!==e.tagName)&&i.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||a?i.push(e):i.push(...e.children)}let l=n[n.length-1];l&&(a||"element"!==l.type||"p"!==l.tagName)&&i.push({type:"text",value:"\n"});let c={type:"element",tagName:"li",properties:s,children:i};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){let r={},n=e.all(t),a=-1;for("number"==typeof t.start&&1!==t.start&&(r.start=t.start);++a<n.length;){let e=n[a];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}let s={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(n,!0)};return e.patch(t,s),e.applyData(t,s)},paragraph:function(e,t){let r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},root:function(e,t){let r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)},strong:function(e,t){let r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},table:function(e,t){let r=e.all(t),n=r.shift(),a=[];if(n){let r={type:"element",tagName:"thead",properties:{},children:e.wrap([n],!0)};e.patch(t.children[0],r),a.push(r)}if(r.length>0){let n={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},s=tx(t.children[1]),i=tD(t.children[t.children.length-1]);s&&i&&(n.position={start:s,end:i}),a.push(n)}let s={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,s),e.applyData(t,s)},tableCell:function(e,t){let r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},tableRow:function(e,t,r){let n=r?r.children:void 0,a=0===(n?n.indexOf(t):1)?"th":"td",s=r&&"table"===r.type?r.align:void 0,i=s?s.length:t.children.length,o=-1,l=[];for(;++o<i;){let r=t.children[o],n={},i=s?s[o]:void 0;i&&(n.align=i);let c={type:"element",tagName:a,properties:n,children:[]};r&&(c.children=e.all(r),e.patch(r,c),c=e.applyData(r,c)),l.push(c)}let c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){let r={type:"text",value:function(e){let t=String(e),r=/\r?\n|\r/g,n=r.exec(t),a=0,s=[];for(;n;)s.push(nf(t.slice(a,n.index),a>0,!0),n[0]),a=n.index+n[0].length,n=r.exec(t);return s.push(nf(t.slice(a),a>0,!1)),s.join("")}(String(t.value))};return e.patch(t,r),e.applyData(t,r)},thematicBreak:function(e,t){let r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)},toml:nT,yaml:nT,definition:nT,footnoteDefinition:nT};function nT(){}let ng={}.hasOwnProperty,nA={};function n_(e,t){e.position&&(t.position=tL(e))}function nb(e,t){let r=t;if(e&&e.data){let t=e.data.hName,n=e.data.hChildren,a=e.data.hProperties;"string"==typeof t&&("element"===r.type?r.tagName=t:r={type:"element",tagName:t,properties:{},children:"children"in r?r.children:[r]}),"element"===r.type&&a&&Object.assign(r.properties,A(a)),"children"in r&&r.children&&null!=n&&(r.children=n)}return r}function nk(e,t){let r=[],n=-1;for(t&&r.push({type:"text",value:"\n"});++n<e.length;)n&&r.push({type:"text",value:"\n"}),r.push(e[n]);return t&&e.length>0&&r.push({type:"text",value:"\n"}),r}function nC(e){let t=0,r=e.charCodeAt(t);for(;9===r||32===r;)t++,r=e.charCodeAt(t);return e.slice(t)}function nN(e,t){let r=function(e,t){let r=t||nA,n=new Map,s=new Map,i={all:function(e){let t=[];if("children"in e){let r=e.children,n=-1;for(;++n<r.length;){let a=i.one(r[n],e);if(a){if(n&&"break"===r[n-1].type&&(Array.isArray(a)||"text"!==a.type||(a.value=nC(a.value)),!Array.isArray(a)&&"element"===a.type)){let e=a.children[0];e&&"text"===e.type&&(e.value=nC(e.value))}Array.isArray(a)?t.push(...a):t.push(a)}}}return t},applyData:nb,definitionById:n,footnoteById:s,footnoteCounts:new Map,footnoteOrder:[],handlers:{...nE,...r.handlers},one:function(e,t){let r=e.type,n=i.handlers[r];if(ng.call(i.handlers,r)&&n)return n(i,e,t);if(i.options.passThrough&&i.options.passThrough.includes(r)){if("children"in e){let{children:t,...r}=e,n=A(r);return n.children=i.all(e),n}return A(e)}return(i.options.unknownHandler||function(e,t){let r=t.data||{},n="value"in t&&!(ng.call(r,"hProperties")||ng.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)})(i,e,t)},options:r,patch:n_,wrap:nk};return(0,a.YR)(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){let t="definition"===e.type?n:s,r=String(e.identifier).toUpperCase();t.has(r)||t.set(r,e)}}),i}(e,t),n=r.one(e,void 0),s=function(e){let t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||nd,n=e.options.footnoteBackLabel||nh,a=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",i=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[],l=-1;for(;++l<e.footnoteOrder.length;){let a=e.footnoteById.get(e.footnoteOrder[l]);if(!a)continue;let s=e.all(a),i=String(a.identifier).toUpperCase(),c=nu(i.toLowerCase()),u=0,d=[],h=e.footnoteCounts.get(i);for(;void 0!==h&&++u<=h;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof r?r:r(l,u);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof n?n:n(l,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let p=s[s.length-1];if(p&&"element"===p.type&&"p"===p.tagName){let e=p.children[p.children.length-1];e&&"text"===e.type?e.value+=" ":p.children.push({type:"text",value:" "}),p.children.push(...d)}else s.push(...d);let m={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(s,!0)};e.patch(a,m),o.push(m)}if(0!==o.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...A(i),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:"\n"}]}}(r),i=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return s&&((0,_.ok)("children"in i),i.children.push({type:"text",value:"\n"},s)),i}function nI(e,t){return e&&"run"in e?async function(r,n){let a=nN(r,{file:n,...t});await e.run(a,n)}:function(r,n){return nN(r,{file:n,...e||t})}}var nS=r(70552);function ny(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var nD=ny(),nx={exec:()=>null};function nR(e,t=""){let r="string"==typeof e?e:e.source,n={replace:(e,t)=>{let a="string"==typeof t?t:t.source;return a=a.replace(nO.caret,"$1"),r=r.replace(e,a),n},getRegex:()=>new RegExp(r,t)};return n}var nL=(()=>{try{return!!RegExp("(?<=1)(?<!1)")}catch{return!1}})(),nO={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},nw=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,nM=/(?:[*+-]|\d{1,9}[.)])/,nP=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,nv=nR(nP).replace(/bull/g,nM).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),nB=nR(nP).replace(/bull/g,nM).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),nF=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,nH=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,nU=nR(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",nH).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),nG=nR(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,nM).getRegex(),nj="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",n$=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,nY=nR("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",n$).replace("tag",nj).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),nz=nR(nF).replace("hr",nw).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",nj).getRegex(),nq={blockquote:nR(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",nz).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:nU,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:nw,html:nY,lheading:nv,list:nG,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:nz,table:nx,text:/^[^\n]+/},nV=nR("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",nw).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",nj).getRegex(),nW={...nq,lheading:nB,table:nV,paragraph:nR(nF).replace("hr",nw).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",nV).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",nj).getRegex()},nQ={...nq,html:nR(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",n$).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:nx,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:nR(nF).replace("hr",nw).replace("heading",` *#{1,6} *[^
|
|
160
|
+
]`).replace("lheading",nv).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},nX=/^( {2,}|\\)\n(?!\s*$)/,nK=/[\p{P}\p{S}]/u,nZ=/[\s\p{P}\p{S}]/u,nJ=/[^\s\p{P}\p{S}]/u,n0=nR(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,nZ).getRegex(),n1=/(?!~)[\p{P}\p{S}]/u,n5=nR(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",nL?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),n2=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,n3=nR(n2,"u").replace(/punct/g,nK).getRegex(),n6=nR(n2,"u").replace(/punct/g,n1).getRegex(),n8="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",n4=nR(n8,"gu").replace(/notPunctSpace/g,nJ).replace(/punctSpace/g,nZ).replace(/punct/g,nK).getRegex(),n9=nR(n8,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,n1).getRegex(),n7=nR("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,nJ).replace(/punctSpace/g,nZ).replace(/punct/g,nK).getRegex(),ae=nR(/\\(punct)/,"gu").replace(/punct/g,nK).getRegex(),at=nR(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),ar=nR(n$).replace("(?:--\x3e|$)","--\x3e").getRegex(),an=nR("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",ar).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),aa=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,as=nR(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",aa).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ai=nR(/^!?\[(label)\]\[(ref)\]/).replace("label",aa).replace("ref",nH).getRegex(),ao=nR(/^!?\[(ref)\](?:\[\])?/).replace("ref",nH).getRegex(),al=nR("reflink|nolink(?!\\()","g").replace("reflink",ai).replace("nolink",ao).getRegex(),ac=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,au={_backpedal:nx,anyPunctuation:ae,autolink:at,blockSkip:n5,br:nX,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:nx,emStrongLDelim:n3,emStrongRDelimAst:n4,emStrongRDelimUnd:n7,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:as,nolink:ao,punctuation:n0,reflink:ai,reflinkSearch:al,tag:an,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:nx},ad={...au,link:nR(/^!?\[(label)\]\((.*?)\)/).replace("label",aa).getRegex(),reflink:nR(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",aa).getRegex()},ah={...au,emStrongRDelimAst:n9,emStrongLDelim:n6,url:nR(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",ac).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:nR(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",ac).getRegex()},ap={...ah,br:nR(nX).replace("{2,}","*").getRegex(),text:nR(ah.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},am={normal:nq,gfm:nW,pedantic:nQ},af={normal:au,gfm:ah,breaks:ap,pedantic:ad},aE={"&":"&","<":"<",">":">",'"':""","'":"'"},aT=e=>aE[e];function ag(e,t){if(t){if(nO.escapeTest.test(e))return e.replace(nO.escapeReplace,aT)}else if(nO.escapeTestNoEncode.test(e))return e.replace(nO.escapeReplaceNoEncode,aT);return e}function aA(e){try{e=encodeURI(e).replace(nO.percentDecode,"%")}catch{return null}return e}function a_(e,t){let r=e.replace(nO.findPipe,(e,t,r)=>{let n=!1,a=t;for(;--a>=0&&"\\"===r[a];)n=!n;return n?"|":" |"}).split(nO.splitPipe),n=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;n<r.length;n++)r[n]=r[n].trim().replace(nO.slashPipe,"|");return r}function ab(e,t,r){let n=e.length;if(0===n)return"";let a=0;for(;a<n;){let s=e.charAt(n-a-1);if(s!==t||r)if(s!==t&&r)a++;else break;else a++}return e.slice(0,n-a)}function ak(e,t,r,n,a){let s=t.href,i=t.title||null,o=e[1].replace(a.other.outputLinkReplace,"$1");n.state.inLink=!0;let l={type:"!"===e[0].charAt(0)?"image":"link",raw:r,href:s,title:i,text:o,tokens:n.inlineTokens(o)};return n.state.inLink=!1,l}var aC=class{options;rules;lexer;constructor(e){this.options=e||nD}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:ab(e,`
|
|
161
161
|
`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],r=function(e,t,r){let n=e.match(r.other.indentCodeCompensation);if(null===n)return t;let a=n[1];return t.split(`
|
|
162
162
|
`).map(e=>{let t=e.match(r.other.beginningSpace);if(null===t)return e;let[n]=t;return n.length>=a.length?e.slice(a.length):e}).join(`
|
|
163
163
|
`)}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=ab(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:ab(t[0],`
|
|
@@ -214,4 +214,4 @@ ${this.parser.parse(e)}</blockquote>
|
|
|
214
214
|
${e}</tr>
|
|
215
215
|
`}tablecell(e){let t=this.parser.parseInline(e.tokens),r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+t+`</${r}>
|
|
216
216
|
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${ag(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:r}){let n=this.parser.parseInline(r),a=aA(e);if(null===a)return n;let s='<a href="'+(e=a)+'"';return t&&(s+=' title="'+ag(t)+'"'),s+=">"+n+"</a>"}image({href:e,title:t,text:r,tokens:n}){n&&(r=this.parser.parseInline(n,this.parser.textRenderer));let a=aA(e);if(null===a)return ag(r);e=a;let s=`<img src="${e}" alt="${r}"`;return t&&(s+=` title="${ag(t)}"`),s+=">"}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:ag(e.text)}},aS=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},ay=class e{options;renderer;textRenderer;constructor(e){this.options=e||nD,this.options.renderer=this.options.renderer||new aI,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new aS}static parse(t,r){return new e(r).parse(t)}static parseInline(t,r){return new e(r).parseInline(t)}parse(e){let t="";for(let r=0;r<e.length;r++){let n=e[r];if(this.options.extensions?.renderers?.[n.type]){let e=this.options.extensions.renderers[n.type].call({parser:this},n);if(!1!==e||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(n.type)){t+=e||"";continue}}switch(n.type){case"space":t+=this.renderer.space(n);break;case"hr":t+=this.renderer.hr(n);break;case"heading":t+=this.renderer.heading(n);break;case"code":t+=this.renderer.code(n);break;case"table":t+=this.renderer.table(n);break;case"blockquote":t+=this.renderer.blockquote(n);break;case"list":t+=this.renderer.list(n);break;case"checkbox":t+=this.renderer.checkbox(n);break;case"html":t+=this.renderer.html(n);break;case"def":t+=this.renderer.def(n);break;case"paragraph":t+=this.renderer.paragraph(n);break;case"text":t+=this.renderer.text(n);break;default:{let e='Token with "'+n.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return t}parseInline(e,t=this.renderer){let r="";for(let n=0;n<e.length;n++){let a=e[n];if(this.options.extensions?.renderers?.[a.type]){let e=this.options.extensions.renderers[a.type].call({parser:this},a);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){r+=e||"";continue}}switch(a.type){case"escape":case"text":r+=t.text(a);break;case"html":r+=t.html(a);break;case"link":r+=t.link(a);break;case"image":r+=t.image(a);break;case"checkbox":r+=t.checkbox(a);break;case"strong":r+=t.strong(a);break;case"em":r+=t.em(a);break;case"codespan":r+=t.codespan(a);break;case"br":r+=t.br(a);break;case"del":r+=t.del(a);break;default:{let e='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return r}},aD=class{options;block;constructor(e){this.options=e||nD}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?aN.lex:aN.lexInline}provideParser(){return this.block?ay.parse:ay.parseInline}},ax=new class{defaults=ny();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=ay;Renderer=aI;TextRenderer=aS;Lexer=aN;Tokenizer=aC;Hooks=aD;constructor(...e){this.use(...e)}walkTokens(e,t){let r=[];for(let n of e)switch(r=r.concat(t.call(this,n)),n.type){case"table":for(let e of n.header)r=r.concat(this.walkTokens(e.tokens,t));for(let e of n.rows)for(let n of e)r=r.concat(this.walkTokens(n.tokens,t));break;case"list":r=r.concat(this.walkTokens(n.items,t));break;default:{let e=n;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(n=>{let a=e[n].flat(1/0);r=r.concat(this.walkTokens(a,t))}):e.tokens&&(r=r.concat(this.walkTokens(e.tokens,t)))}}return r}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let r={...e};if(r.async=this.defaults.async||r.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error("extension name required");if("renderer"in e){let r=t.renderers[e.name];r?t.renderers[e.name]=function(...t){let n=e.renderer.apply(this,t);return!1===n&&(n=r.apply(this,t)),n}:t.renderers[e.name]=e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw Error("extension level must be 'block' or 'inline'");let r=t[e.level];r?r.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),r.extensions=t),e.renderer){let t=this.defaults.renderer||new aI(this.defaults);for(let r in e.renderer){if(!(r in t))throw Error(`renderer '${r}' does not exist`);if(["options","parser"].includes(r))continue;let n=e.renderer[r],a=t[r];t[r]=(...e)=>{let r=n.apply(t,e);return!1===r&&(r=a.apply(t,e)),r||""}}r.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new aC(this.defaults);for(let r in e.tokenizer){if(!(r in t))throw Error(`tokenizer '${r}' does not exist`);if(["options","rules","lexer"].includes(r))continue;let n=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let r=n.apply(t,e);return!1===r&&(r=a.apply(t,e)),r}}r.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new aD;for(let r in e.hooks){if(!(r in t))throw Error(`hook '${r}' does not exist`);if(["options","block"].includes(r))continue;let n=e.hooks[r],a=t[r];aD.passThroughHooks.has(r)?t[r]=e=>{if(this.defaults.async&&aD.passThroughHooksRespectAsync.has(r))return(async()=>{let r=await n.call(t,e);return a.call(t,r)})();let s=n.call(t,e);return a.call(t,s)}:t[r]=(...e)=>{if(this.defaults.async)return(async()=>{let r=await n.apply(t,e);return!1===r&&(r=await a.apply(t,e)),r})();let r=n.apply(t,e);return!1===r&&(r=a.apply(t,e)),r}}r.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,n=e.walkTokens;r.walkTokens=function(e){let r=[];return r.push(n.call(this,e)),t&&(r=r.concat(t.call(this,e))),r}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return aN.lex(e,t??this.defaults)}parser(e,t){return ay.parse(e,t??this.defaults)}parseMarkdown(e){return(t,r)=>{let n={...r},a={...this.defaults,...n},s=this.onError(!!a.silent,!!a.async);if(!0===this.defaults.async&&!1===n.async)return s(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||null===t)return s(Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return s(Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(a.hooks&&(a.hooks.options=a,a.hooks.block=e),a.async)return(async()=>{let r=a.hooks?await a.hooks.preprocess(t):t,n=await (a.hooks?await a.hooks.provideLexer():e?aN.lex:aN.lexInline)(r,a),s=a.hooks?await a.hooks.processAllTokens(n):n;a.walkTokens&&await Promise.all(this.walkTokens(s,a.walkTokens));let i=await (a.hooks?await a.hooks.provideParser():e?ay.parse:ay.parseInline)(s,a);return a.hooks?await a.hooks.postprocess(i):i})().catch(s);try{a.hooks&&(t=a.hooks.preprocess(t));let r=(a.hooks?a.hooks.provideLexer():e?aN.lex:aN.lexInline)(t,a);a.hooks&&(r=a.hooks.processAllTokens(r)),a.walkTokens&&this.walkTokens(r,a.walkTokens);let n=(a.hooks?a.hooks.provideParser():e?ay.parse:ay.parseInline)(r,a);return a.hooks&&(n=a.hooks.postprocess(n)),n}catch(e){return s(e)}}}onError(e,t){return r=>{if(r.message+=`
|
|
217
|
-
Please report this to https://github.com/markedjs/marked.`,e){let e="<p>An error occurred:</p><pre>"+ag(r.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(r);throw r}}};function aR(e,t){return ax.parse(e,t)}aR.options=aR.setOptions=function(e){return ax.setOptions(e),aR.defaults=ax.defaults,nD=aR.defaults,aR},aR.getDefaults=ny,aR.defaults=nD,aR.use=function(...e){return ax.use(...e),aR.defaults=ax.defaults,nD=aR.defaults,aR},aR.walkTokens=function(e,t){return ax.walkTokens(e,t)},aR.parseInline=ax.parseInline,aR.Parser=ay,aR.parser=ay.parse,aR.Renderer=aI,aR.TextRenderer=aS,aR.Lexer=aN,aR.lexer=aN.lex,aR.Tokenizer=aC,aR.Hooks=aD,aR.parse=aR,aR.options,aR.setOptions,aR.use,aR.walkTokens,aR.parseInline,ay.parse,aN.lex;var aL=/\s/,aO=/^\s+$/,aw=new Set(["code","pre","svg","math","annotation"]),aM=0;function aP(e){var t,r,n,a,i;let o={animation:null!=(t=null==e?void 0:e.animation)?t:"fadeIn",duration:null!=(r=null==e?void 0:e.duration)?r:150,easing:null!=(n=null==e?void 0:e.easing)?n:"ease",sep:null!=(a=null==e?void 0:e.sep)?a:"word",stagger:null!=(i=null==e?void 0:e.stagger)?i:40},l={prevContentLength:0,lastRenderCharCount:0},c=aM++,u=()=>e=>{let t={count:0,newIndex:0};(0,s.VG)(e,"text",(e,r)=>((e,t,r,n,a)=>{let i=t.at(-1);if(!(i&&"children"in i))return;if(t.some(e=>{let t;return"object"==typeof(t=e)&&null!==t&&"type"in t&&"element"===t.type&&aw.has(e.tagName)}))return s._Z;let o=i.children.indexOf(e);if(-1===o)return;let l=e.value;if(!l.trim()){a.count+=l.length;return}let c="char"===r.sep?(e=>{let t=[],r="";for(let n of e)aL.test(n)?r+=n:(r&&(t.push(r),r=""),t.push(n));return r&&t.push(r),t})(l):(e=>{let t=[],r="",n=!1;for(let a of e){let e=aL.test(a);e!==n&&r&&(t.push(r),r=""),r+=a,n=e}return r&&t.push(r),t})(l),u=n.prevContentLength,d=c.map(e=>{var t,n,s,i,o,l;let c,d=a.count;if(a.count+=e.length,aO.test(e))return{type:"text",value:e};let h=u>0&&d<u,p=h?0:a.newIndex++*r.stagger;return t=e,n=r.animation,s=r.duration,i=r.easing,o=h,l=p,c="--sd-animation:sd-".concat(n,";--sd-duration:").concat(o?0:s,"ms;--sd-easing:").concat(i),l&&(c+=";--sd-delay:".concat(l,"ms")),{type:"element",tagName:"span",properties:{"data-sd-animate":!0,style:c},children:[{type:"text",value:t}]}});return i.children.splice(o,1,...d),o+d.length})(e,r,o,l,t)),l.lastRenderCharCount=t.count,l.prevContentLength=0};return Object.defineProperty(u,"name",{value:"rehypeAnimate$".concat(c)}),{name:"animate",type:"animate",rehypePlugin:u,setPrevContentLength(e){l.prevContentLength=e},getLastRenderCharCount(){let e=l.lastRenderCharCount;return l.lastRenderCharCount=0,e}}}aP();var av=(0,n.createContext)(!1),aB=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,rV.QP)((0,rq.$)(t))},aF=(e,t,r)=>{let n="string"==typeof t&&r.startsWith("text/csv")?"\uFEFF":"",a="string"==typeof t?new Blob([n+t],{type:r}):t,s=URL.createObjectURL(a),i=document.createElement("a");i.href=s,i.download=e,document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(s)},aH=(0,n.createContext)(aB),aU=()=>(0,n.useContext)(aH),aG=aB("block","before:content-[counter(line)]","before:inline-block","before:[counter-increment:line]","before:w-6","before:mr-4","before:text-[13px]","before:text-right","before:text-muted-foreground/50","before:font-mono","before:select-none"),aj=(0,n.memo)(e=>{let{children:t,result:r,language:a,className:s,startLine:i,lineNumbers:o=!0,...l}=e,c=aU(),u=(0,n.useMemo)(()=>c(aG),[c]),d=(0,n.useMemo)(()=>{let e={};return r.bg&&(e["--sdm-bg"]=r.bg),r.fg&&(e["--sdm-fg"]=r.fg),r.rootStyle&&Object.assign(e,(e=>{let t={};for(let r of e.split(";")){let e=r.indexOf(":");if(e>0){let n=r.slice(0,e).trim(),a=r.slice(e+1).trim();n&&a&&(t[n]=a)}}return t})(r.rootStyle)),e},[r.bg,r.fg,r.rootStyle]);return(0,rW.jsx)("div",{className:c(s,"overflow-x-auto rounded-md border border-border bg-background p-4 text-sm"),"data-language":a,"data-streamdown":"code-block-body",...l,children:(0,rW.jsx)("pre",{className:c(s,"bg-[var(--sdm-bg,inherit]","dark:bg-[var(--shiki-dark-bg,var(--sdm-bg,inherit)]"),style:d,children:(0,rW.jsx)("code",{className:o?c("[counter-increment:line_0] [counter-reset:line]"):void 0,style:o&&i&&i>1?{counterReset:"line ".concat(i-1)}:void 0,children:r.tokens.map((e,t)=>(0,rW.jsx)("span",{className:o?u:void 0,children:0===e.length||1===e.length&&""===e[0].content?"\n":e.map((e,t)=>{let r={},n=!!e.bgColor;if(e.color&&(r["--sdm-c"]=e.color),e.bgColor&&(r["--sdm-tbg"]=e.bgColor),e.htmlStyle)for(let[t,a]of Object.entries(e.htmlStyle))"color"===t?r["--sdm-c"]=a:"background-color"===t?(r["--sdm-tbg"]=a,n=!0):r[t]=a;return(0,rW.jsx)("span",{className:c("text-[var(--sdm-c,inherit)]","dark:text-[var(--shiki-dark,var(--sdm-c,inherit))]",n&&"bg-[var(--sdm-tbg)]",n&&"dark:bg-[var(--shiki-dark-bg,var(--sdm-tbg))]"),style:r,...e.htmlAttrs,children:e.content},t)})},t))})})})},(e,t)=>e.result===t.result&&e.language===t.language&&e.className===t.className&&e.startLine===t.startLine&&e.lineNumbers===t.lineNumbers),a$=e=>{let{className:t,language:r,style:n,isIncomplete:a,...s}=e,i=aU();return(0,rW.jsx)("div",{className:i("my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2",t),"data-incomplete":a||void 0,"data-language":r,"data-streamdown":"code-block",style:{contentVisibility:"auto",containIntrinsicSize:"auto 200px",...n},...s})},aY=(0,n.createContext)({code:""}),az=()=>(0,n.useContext)(aY),aq=e=>{let{language:t}=e,r=aU();return(0,rW.jsx)("div",{className:r("flex h-8 items-center text-muted-foreground text-xs"),"data-language":t,"data-streamdown":"code-block-header",children:(0,rW.jsx)("span",{className:r("ml-1 font-mono lowercase"),children:t})})},aV=(0,n.lazy)(()=>r.e(16564).then(r.bind(r,16564)).then(e=>({default:e.HighlightedCodeBlockBody}))),aW=e=>{let{code:t,language:r,className:a,children:s,isIncomplete:i=!1,startLine:o,lineNumbers:l,...c}=e,u=aU(),d=(0,n.useMemo)(()=>(e=>{let t=e.length;for(;t>0&&"\n"===e[t-1];)t--;return e.slice(0,t)})(t),[t]),h=(0,n.useMemo)(()=>({bg:"transparent",fg:"inherit",tokens:d.split("\n").map(e=>[{content:e,color:"inherit",bgColor:"transparent",htmlStyle:{},offset:0}])}),[d]);return(0,rW.jsx)(aY.Provider,{value:{code:t},children:(0,rW.jsxs)(a$,{isIncomplete:i,language:r,children:[(0,rW.jsx)(aq,{language:r}),s?(0,rW.jsx)("div",{className:u("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end"),children:(0,rW.jsx)("div",{className:u("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"),"data-streamdown":"code-block-actions",children:s})}):null,(0,rW.jsx)(n.Suspense,{fallback:(0,rW.jsx)(aj,{className:a,language:r,lineNumbers:l,result:h,startLine:o,...c}),children:(0,rW.jsx)(aV,{className:a,code:d,language:r,lineNumbers:l,raw:h,startLine:o,...c})})]})})},aQ={CheckIcon:e=>(0,rW.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,rW.jsx)("path",{clipRule:"evenodd",d:"M15.5607 3.99999L15.0303 4.53032L6.23744 13.3232C5.55403 14.0066 4.44599 14.0066 3.76257 13.3232L4.2929 12.7929L3.76257 13.3232L0.969676 10.5303L0.439346 9.99999L1.50001 8.93933L2.03034 9.46966L4.82323 12.2626C4.92086 12.3602 5.07915 12.3602 5.17678 12.2626L13.9697 3.46966L14.5 2.93933L15.5607 3.99999Z",fill:"currentColor",fillRule:"evenodd"})}),CopyIcon:e=>(0,rW.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,rW.jsx)("path",{clipRule:"evenodd",d:"M2.75 0.5C1.7835 0.5 1 1.2835 1 2.25V9.75C1 10.7165 1.7835 11.5 2.75 11.5H3.75H4.5V10H3.75H2.75C2.61193 10 2.5 9.88807 2.5 9.75V2.25C2.5 2.11193 2.61193 2 2.75 2H8.25C8.38807 2 8.5 2.11193 8.5 2.25V3H10V2.25C10 1.2835 9.2165 0.5 8.25 0.5H2.75ZM7.75 4.5C6.7835 4.5 6 5.2835 6 6.25V13.75C6 14.7165 6.7835 15.5 7.75 15.5H13.25C14.2165 15.5 15 14.7165 15 13.75V6.25C15 5.2835 14.2165 4.5 13.25 4.5H7.75ZM7.5 6.25C7.5 6.11193 7.61193 6 7.75 6H13.25C13.3881 6 13.5 6.11193 13.5 6.25V13.75C13.5 13.8881 13.3881 14 13.25 14H7.75C7.61193 14 7.5 13.8881 7.5 13.75V6.25Z",fill:"currentColor",fillRule:"evenodd"})}),DownloadIcon:e=>(0,rW.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,rW.jsx)("path",{clipRule:"evenodd",d:"M8.75 1V1.75V8.68934L10.7197 6.71967L11.25 6.18934L12.3107 7.25L11.7803 7.78033L8.70711 10.8536C8.31658 11.2441 7.68342 11.2441 7.29289 10.8536L4.21967 7.78033L3.68934 7.25L4.75 6.18934L5.28033 6.71967L7.25 8.68934V1.75V1H8.75ZM13.5 9.25V13.5H2.5V9.25V8.5H1V9.25V14C1 14.5523 1.44771 15 2 15H14C14.5523 15 15 14.5523 15 14V9.25V8.5H13.5V9.25Z",fill:"currentColor",fillRule:"evenodd"})}),ExternalLinkIcon:e=>(0,rW.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,rW.jsx)("path",{clipRule:"evenodd",d:"M13.5 10.25V13.25C13.5 13.3881 13.3881 13.5 13.25 13.5H2.75C2.61193 13.5 2.5 13.3881 2.5 13.25L2.5 2.75C2.5 2.61193 2.61193 2.5 2.75 2.5H5.75H6.5V1H5.75H2.75C1.7835 1 1 1.7835 1 2.75V13.25C1 14.2165 1.7835 15 2.75 15H13.25C14.2165 15 15 14.2165 15 13.25V10.25V9.5H13.5V10.25ZM9 1H9.75H14.2495C14.6637 1 14.9995 1.33579 14.9995 1.75V6.25V7H13.4995V6.25V3.56066L8.53033 8.52978L8 9.06011L6.93934 7.99945L7.46967 7.46912L12.4388 2.5H9.75H9V1Z",fill:"currentColor",fillRule:"evenodd"})}),Loader2Icon:e=>(0,rW.jsxs)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:[(0,rW.jsx)("path",{d:"M8 0V4",stroke:"currentColor",strokeWidth:"1.5"}),(0,rW.jsx)("path",{d:"M8 16V12",opacity:"0.5",stroke:"currentColor",strokeWidth:"1.5"}),(0,rW.jsx)("path",{d:"M3.29773 1.52783L5.64887 4.7639",opacity:"0.9",stroke:"currentColor",strokeWidth:"1.5"}),(0,rW.jsx)("path",{d:"M12.7023 1.52783L10.3511 4.7639",opacity:"0.1",stroke:"currentColor",strokeWidth:"1.5"}),(0,rW.jsx)("path",{d:"M12.7023 14.472L10.3511 11.236",opacity:"0.4",stroke:"currentColor",strokeWidth:"1.5"}),(0,rW.jsx)("path",{d:"M3.29773 14.472L5.64887 11.236",opacity:"0.6",stroke:"currentColor",strokeWidth:"1.5"}),(0,rW.jsx)("path",{d:"M15.6085 5.52783L11.8043 6.7639",opacity:"0.2",stroke:"currentColor",strokeWidth:"1.5"}),(0,rW.jsx)("path",{d:"M0.391602 10.472L4.19583 9.23598",opacity:"0.7",stroke:"currentColor",strokeWidth:"1.5"}),(0,rW.jsx)("path",{d:"M15.6085 10.4722L11.8043 9.2361",opacity:"0.3",stroke:"currentColor",strokeWidth:"1.5"}),(0,rW.jsx)("path",{d:"M0.391602 5.52783L4.19583 6.7639",opacity:"0.8",stroke:"currentColor",strokeWidth:"1.5"})]}),Maximize2Icon:e=>(0,rW.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,rW.jsx)("path",{clipRule:"evenodd",d:"M1 5.25V6H2.5V5.25V2.5H5.25H6V1H5.25H2C1.44772 1 1 1.44772 1 2V5.25ZM5.25 14.9994H6V13.4994H5.25H2.5V10.7494V9.99939H1V10.7494V13.9994C1 14.5517 1.44772 14.9994 2 14.9994H5.25ZM15 10V10.75V14C15 14.5523 14.5523 15 14 15H10.75H10V13.5H10.75H13.5V10.75V10H15ZM10.75 1H10V2.5H10.75H13.5V5.25V6H15V5.25V2C15 1.44772 14.5523 1 14 1H10.75Z",fill:"currentColor",fillRule:"evenodd"})}),RotateCcwIcon:e=>(0,rW.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,rW.jsx)("path",{clipRule:"evenodd",d:"M13.5 8C13.5 4.96643 11.0257 2.5 7.96452 2.5C5.42843 2.5 3.29365 4.19393 2.63724 6.5H5.25H6V8H5.25H0.75C0.335787 8 0 7.66421 0 7.25V2.75V2H1.5V2.75V5.23347C2.57851 2.74164 5.06835 1 7.96452 1C11.8461 1 15 4.13001 15 8C15 11.87 11.8461 15 7.96452 15C5.62368 15 3.54872 13.8617 2.27046 12.1122L1.828 11.5066L3.03915 10.6217L3.48161 11.2273C4.48831 12.6051 6.12055 13.5 7.96452 13.5C11.0257 13.5 13.5 11.0336 13.5 8Z",fill:"currentColor",fillRule:"evenodd"})}),XIcon:e=>(0,rW.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,rW.jsx)("path",{clipRule:"evenodd",d:"M12.4697 13.5303L13 14.0607L14.0607 13L13.5303 12.4697L9.06065 7.99999L13.5303 3.53032L14.0607 2.99999L13 1.93933L12.4697 2.46966L7.99999 6.93933L3.53032 2.46966L2.99999 1.93933L1.93933 2.99999L2.46966 3.53032L6.93933 7.99999L2.46966 12.4697L1.93933 13L2.99999 14.0607L3.53032 13.5303L7.99999 9.06065L12.4697 13.5303Z",fill:"currentColor",fillRule:"evenodd"})}),ZoomInIcon:e=>(0,rW.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,rW.jsx)("path",{clipRule:"evenodd",d:"M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H5.875V4.75V4.125H7.125V4.75V5.875H8.25H8.875V7.125H8.25H7.125V8.25V8.875H5.875V8.25V7.125H4.75H4.125V5.875Z",fill:"currentColor",fillRule:"evenodd"})}),ZoomOutIcon:e=>(0,rW.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,rW.jsx)("path",{clipRule:"evenodd",d:"M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H8.25H8.875V7.125H8.25H4.75H4.125V5.875Z",fill:"currentColor",fillRule:"evenodd"})})},aK=(0,n.createContext)(aQ),aX=e=>{let{icons:t,children:r}=e,a=(0,n.useRef)(t),s=(0,n.useRef)(t?{...aQ,...t}:aQ);((e,t)=>{if(e===t)return!0;if(!(e&&t))return e===t;let r=Object.keys(e),n=Object.keys(t);return r.length===n.length&&r.every(r=>e[r]===t[r])})(a.current,t)||(a.current=t,s.current=t?{...aQ,...t}:aQ);let i=s.current;return(0,rW.jsx)(aK.Provider,{value:i,children:r})},aZ=()=>(0,n.useContext)(aK),aJ={copyCode:"Copy Code",downloadFile:"Download file",downloadDiagram:"Download diagram",downloadDiagramAsSvg:"Download diagram as SVG",downloadDiagramAsPng:"Download diagram as PNG",downloadDiagramAsMmd:"Download diagram as MMD",viewFullscreen:"View fullscreen",exitFullscreen:"Exit fullscreen",mermaidFormatSvg:"SVG",mermaidFormatPng:"PNG",mermaidFormatMmd:"MMD",copyTable:"Copy table",copyTableAsMarkdown:"Copy table as Markdown",copyTableAsCsv:"Copy table as CSV",copyTableAsTsv:"Copy table as TSV",downloadTable:"Download table",downloadTableAsCsv:"Download table as CSV",downloadTableAsMarkdown:"Download table as Markdown",tableFormatMarkdown:"Markdown",tableFormatCsv:"CSV",tableFormatTsv:"TSV",imageNotAvailable:"Image not available",downloadImage:"Download image",openExternalLink:"Open external link?",externalLinkWarning:"You're about to visit an external website.",close:"Close",copyLink:"Copy link",copied:"Copied",openLink:"Open link"},a0=(0,n.createContext)(aJ),a1=()=>(0,n.useContext)(a0),a5=e=>{let{onCopy:t,onError:r,timeout:a=2e3,children:s,className:i,code:o,...l}=e,c=aU(),[u,d]=(0,n.useState)(!1),h=(0,n.useRef)(0),{code:p}=az(),{isAnimating:m}=(0,n.useContext)(iQ),f=a1(),E=null!=o?o:p,T=async()=>{var e;if("undefined"==typeof window||!(null!=(e=null==navigator?void 0:navigator.clipboard)&&e.writeText)){null==r||r(Error("Clipboard API not available"));return}try{u||(await navigator.clipboard.writeText(E),d(!0),null==t||t(),h.current=window.setTimeout(()=>d(!1),a))}catch(e){null==r||r(e)}};(0,n.useEffect)(()=>()=>{window.clearTimeout(h.current)},[]);let g=aZ(),A=u?g.CheckIcon:g.CopyIcon;return(0,rW.jsx)("button",{className:c("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",i),"data-streamdown":"code-block-copy-button",disabled:m,onClick:T,title:f.copyCode,type:"button",...l,children:null!=s?s:(0,rW.jsx)(A,{size:14})})},a3={"1c":"1c","1c-query":"1cq",abap:"abap","actionscript-3":"as",ada:"ada",adoc:"adoc","angular-html":"html","angular-ts":"ts",apache:"conf",apex:"cls",apl:"apl",applescript:"applescript",ara:"ara",asciidoc:"adoc",asm:"asm",astro:"astro",awk:"awk",ballerina:"bal",bash:"sh",bat:"bat",batch:"bat",be:"be",beancount:"beancount",berry:"berry",bibtex:"bib",bicep:"bicep",blade:"blade.php",bsl:"bsl",c:"c","c#":"cs","c++":"cpp",cadence:"cdc",cairo:"cairo",cdc:"cdc",clarity:"clar",clj:"clj",clojure:"clj","closure-templates":"soy",cmake:"cmake",cmd:"cmd",cobol:"cob",codeowners:"CODEOWNERS",codeql:"ql",coffee:"coffee",coffeescript:"coffee","common-lisp":"lisp",console:"sh",coq:"v",cpp:"cpp",cql:"cql",crystal:"cr",cs:"cs",csharp:"cs",css:"css",csv:"csv",cue:"cue",cypher:"cql",d:"d",dart:"dart",dax:"dax",desktop:"desktop",diff:"diff",docker:"dockerfile",dockerfile:"dockerfile",dotenv:"env","dream-maker":"dm",edge:"edge",elisp:"el",elixir:"ex",elm:"elm","emacs-lisp":"el",erb:"erb",erl:"erl",erlang:"erl",f:"f","f#":"fs",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"f90",f95:"f95",fennel:"fnl",fish:"fish",fluent:"ftl",for:"for","fortran-fixed-form":"f","fortran-free-form":"f90",fs:"fs",fsharp:"fs",fsl:"fsl",ftl:"ftl",gdresource:"tres",gdscript:"gd",gdshader:"gdshader",genie:"gs",gherkin:"feature","git-commit":"gitcommit","git-rebase":"gitrebase",gjs:"js",gleam:"gleam","glimmer-js":"js","glimmer-ts":"ts",glsl:"glsl",gnuplot:"plt",go:"go",gql:"gql",graphql:"graphql",groovy:"groovy",gts:"gts",hack:"hack",haml:"haml",handlebars:"hbs",haskell:"hs",haxe:"hx",hbs:"hbs",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",hs:"hs",html:"html","html-derivative":"html",http:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",jade:"jade",java:"java",javascript:"js",jinja:"jinja",jison:"jison",jl:"jl",js:"js",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",julia:"jl",kotlin:"kt",kql:"kql",kt:"kt",kts:"kts",kusto:"kql",latex:"tex",lean:"lean",lean4:"lean",less:"less",liquid:"liquid",lisp:"lisp",lit:"lit",llvm:"ll",log:"log",logo:"logo",lua:"lua",luau:"luau",make:"mak",makefile:"mak",markdown:"md",marko:"marko",matlab:"m",md:"md",mdc:"mdc",mdx:"mdx",mediawiki:"wiki",mermaid:"mmd",mips:"s",mipsasm:"s",mmd:"mmd",mojo:"mojo",move:"move",nar:"nar",narrat:"narrat",nextflow:"nf",nf:"nf",nginx:"conf",nim:"nim",nix:"nix",nu:"nu",nushell:"nu",objc:"m","objective-c":"m","objective-cpp":"mm",ocaml:"ml",pascal:"pas",perl:"pl",perl6:"p6",php:"php",plsql:"pls",po:"po",polar:"polar",postcss:"pcss",pot:"pot",potx:"potx",powerquery:"pq",powershell:"ps1",prisma:"prisma",prolog:"pl",properties:"properties",proto:"proto",protobuf:"proto",ps:"ps",ps1:"ps1",pug:"pug",puppet:"pp",purescript:"purs",py:"py",python:"py",ql:"ql",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",racket:"rkt",raku:"raku",razor:"cshtml",rb:"rb",reg:"reg",regex:"regex",regexp:"regexp",rel:"rel",riscv:"s",rs:"rs",rst:"rst",ruby:"rb",rust:"rs",sas:"sas",sass:"sass",scala:"scala",scheme:"scm",scss:"scss",sdbl:"sdbl",sh:"sh",shader:"shader",shaderlab:"shader",shell:"sh",shellscript:"sh",shellsession:"sh",smalltalk:"st",solidity:"sol",soy:"soy",sparql:"rq",spl:"spl",splunk:"spl",sql:"sql","ssh-config":"config",stata:"do",styl:"styl",stylus:"styl",svelte:"svelte",swift:"swift","system-verilog":"sv",systemd:"service",talon:"talon",talonscript:"talon",tasl:"tasl",tcl:"tcl",templ:"templ",terraform:"tf",tex:"tex",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"ts","ts-tags":"ts",tsp:"tsp",tsv:"tsv",tsx:"tsx",turtle:"ttl",twig:"twig",typ:"typ",typescript:"ts",typespec:"tsp",typst:"typ",v:"v",vala:"vala",vb:"vb",verilog:"v",vhdl:"vhdl",vim:"vim",viml:"vim",vimscript:"vim",vue:"vue","vue-html":"html","vue-vine":"vine",vy:"vy",vyper:"vy",wasm:"wasm",wenyan:"wy",wgsl:"wgsl",wiki:"wiki",wikitext:"wiki",wit:"wit",wl:"wl",wolfram:"wl",xml:"xml",xsl:"xsl",yaml:"yaml",yml:"yml",zenscript:"zs",zig:"zig",zsh:"zsh",文言:"wy"},a2=e=>{let{onDownload:t,onError:r,language:a,children:s,className:i,code:o,...l}=e,c=aU(),{code:u}=az(),{isAnimating:d}=(0,n.useContext)(iQ),h=a1(),p=aZ(),m=null!=o?o:u,f="file.".concat(a&&a in a3?a3[a]:"txt");return(0,rW.jsx)("button",{className:c("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",i),"data-streamdown":"code-block-download-button",disabled:d,onClick:()=>{try{aF(f,m,"text/plain"),null==t||t()}catch(e){null==r||r(e)}},title:h.downloadFile,type:"button",...l,children:null!=s?s:(0,rW.jsx)(p.DownloadIcon,{size:14})})},a8=()=>{let{Loader2Icon:e}=aZ(),t=aU();return(0,rW.jsxs)("div",{className:t("w-full divide-y divide-border overflow-hidden rounded-xl border border-border"),children:[(0,rW.jsx)("div",{className:t("h-[46px] w-full bg-muted/80")}),(0,rW.jsx)("div",{className:t("flex w-full items-center justify-center p-4"),children:(0,rW.jsx)(e,{className:t("size-4 animate-spin")})})]})},a6=/\.[^/.]+$/,a4=0,a9=()=>{1===(a4+=1)&&(document.body.style.overflow="hidden")},a7=()=>{0===(a4=Math.max(0,a4-1))&&(document.body.style.overflow="")},se=e=>{let{url:t,isOpen:r,onClose:a,onConfirm:s}=e,{CheckIcon:i,CopyIcon:o,ExternalLinkIcon:l,XIcon:c}=aZ(),u=aU(),[d,h]=(0,n.useState)(!1),p=a1(),m=(0,n.useCallback)(async()=>{try{await navigator.clipboard.writeText(t),h(!0),setTimeout(()=>h(!1),2e3)}catch(e){}},[t]),f=(0,n.useCallback)(()=>{s(),a()},[s,a]);return(0,n.useEffect)(()=>{if(r){a9();let e=e=>{"Escape"===e.key&&a()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e),a7()}}},[r,a]),r?(0,rW.jsx)("div",{className:u("fixed inset-0 z-50 flex items-center justify-center bg-background/50 backdrop-blur-sm"),"data-streamdown":"link-safety-modal",onClick:a,onKeyDown:e=>{"Escape"===e.key&&a()},role:"button",tabIndex:0,children:(0,rW.jsxs)("div",{className:u("relative mx-4 flex w-full max-w-md flex-col gap-4 rounded-xl border bg-background p-6 shadow-lg"),onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),role:"presentation",children:[(0,rW.jsx)("button",{className:u("absolute top-4 right-4 rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:a,title:p.close,type:"button",children:(0,rW.jsx)(c,{size:16})}),(0,rW.jsxs)("div",{className:u("flex flex-col gap-2"),children:[(0,rW.jsxs)("div",{className:u("flex items-center gap-2 font-semibold text-lg"),children:[(0,rW.jsx)(l,{size:20}),(0,rW.jsx)("span",{children:p.openExternalLink})]}),(0,rW.jsx)("p",{className:u("text-muted-foreground text-sm"),children:p.externalLinkWarning})]}),(0,rW.jsx)("div",{className:u("break-all rounded-md bg-muted p-3 font-mono text-sm",t.length>100&&"max-h-32 overflow-y-auto"),children:t}),(0,rW.jsxs)("div",{className:u("flex gap-2"),children:[(0,rW.jsx)("button",{className:u("flex flex-1 items-center justify-center gap-2 rounded-md border bg-background px-4 py-2 font-medium text-sm transition-all hover:bg-muted"),onClick:m,type:"button",children:d?(0,rW.jsxs)(rW.Fragment,{children:[(0,rW.jsx)(i,{size:14}),(0,rW.jsx)("span",{children:p.copied})]}):(0,rW.jsxs)(rW.Fragment,{children:[(0,rW.jsx)(o,{size:14}),(0,rW.jsx)("span",{children:p.copyLink})]})}),(0,rW.jsxs)("button",{className:u("flex flex-1 items-center justify-center gap-2 rounded-md bg-primary px-4 py-2 font-medium text-primary-foreground text-sm transition-all hover:bg-primary/90"),onClick:f,type:"button",children:[(0,rW.jsx)(l,{size:14}),(0,rW.jsx)("span",{children:p.openLink})]})]})]})}):null},st=(0,n.createContext)(null),sr=()=>(0,n.useContext)(st),sn=()=>{var e;let t=sr();return null!=(e=null==t?void 0:t.code)?e:null},sa=()=>{var e;let t=sr();return null!=(e=null==t?void 0:t.mermaid)?e:null},ss=e=>{let{chart:t,children:r,className:a,onDownload:s,config:i,onError:o}=e,l=aU(),[c,u]=(0,n.useState)(!1),d=(0,n.useRef)(null),{isAnimating:h}=(0,n.useContext)(iQ),p=aZ(),m=sa(),f=a1(),E=async e=>{try{if("mmd"===e){aF("diagram.mmd",t,"text/plain"),u(!1),null==s||s(e);return}if(!m){null==o||o(Error("Mermaid plugin not available"));return}let n=m.getMermaid(i),a=t.split("").reduce((e,t)=>(e<<5)-e+t.charCodeAt(0)|0,0),l="mermaid-".concat(Math.abs(a),"-").concat(Date.now(),"-").concat(Math.random().toString(36).substring(2,9)),{svg:c}=await n.render(l,t);if(!c){null==o||o(Error("SVG not found. Please wait for the diagram to render."));return}if("svg"===e){aF("diagram.svg",c,"image/svg+xml"),u(!1),null==s||s(e);return}if("png"===e){var r;let t=await (r=c,new Promise((e,t)=>{let n="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(r))),a=new Image;a.crossOrigin="anonymous",a.onload=()=>{let r=document.createElement("canvas"),n=5*a.width,s=5*a.height;r.width=n,r.height=s;let i=r.getContext("2d");if(!i)return void t(Error("Failed to create 2D canvas context for PNG export"));i.drawImage(a,0,0,n,s),r.toBlob(r=>{if(!r)return void t(Error("Failed to create PNG blob"));e(r)},"image/png")},a.onerror=()=>t(Error("Failed to load SVG image")),a.src=n}));aF("diagram.png",t,"image/png"),null==s||s(e),u(!1);return}}catch(e){null==o||o(e)}};return(0,n.useEffect)(()=>{let e=e=>{let t=e.composedPath();d.current&&!t.includes(d.current)&&u(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]),(0,rW.jsxs)("div",{className:l("relative"),ref:d,children:[(0,rW.jsx)("button",{className:l("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",a),disabled:h,onClick:()=>u(!c),title:f.downloadDiagram,type:"button",children:null!=r?r:(0,rW.jsx)(p.DownloadIcon,{size:14})}),c?(0,rW.jsxs)("div",{className:l("absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[(0,rW.jsx)("button",{className:l("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>E("svg"),title:f.downloadDiagramAsSvg,type:"button",children:f.mermaidFormatSvg}),(0,rW.jsx)("button",{className:l("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>E("png"),title:f.downloadDiagramAsPng,type:"button",children:f.mermaidFormatPng}),(0,rW.jsx)("button",{className:l("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>E("mmd"),title:f.downloadDiagramAsMmd,type:"button",children:f.mermaidFormatMmd})]}):null]})},si=e=>{let{chart:t,config:r,onFullscreen:a,onExit:s,className:i,...o}=e,{Maximize2Icon:l,XIcon:c}=aZ(),u=aU(),[d,h]=(0,n.useState)(!1),{isAnimating:p,controls:m}=(0,n.useContext)(iQ),f=a1(),E=(()=>{if("boolean"==typeof m)return m;let e=m.mermaid;return!1!==e&&(!0===e||void 0===e||!1!==e.panZoom)})(),T=()=>{h(!d)};return(0,n.useEffect)(()=>{if(d){a9();let e=e=>{"Escape"===e.key&&h(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e),a7()}}},[d]),(0,n.useEffect)(()=>{d?null==a||a():s&&s()},[d,a,s]),(0,rW.jsxs)(rW.Fragment,{children:[(0,rW.jsx)("button",{className:u("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",i),disabled:p,onClick:T,title:f.viewFullscreen,type:"button",...o,children:(0,rW.jsx)(l,{size:14})}),d?(0,rQ.createPortal)((0,rW.jsxs)("div",{className:u("fixed inset-0 z-50 flex items-center justify-center bg-background/95 backdrop-blur-sm"),onClick:T,onKeyDown:e=>{"Escape"===e.key&&T()},role:"button",tabIndex:0,children:[(0,rW.jsx)("button",{className:u("absolute top-4 right-4 z-10 rounded-md p-2 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:T,title:f.exitFullscreen,type:"button",children:(0,rW.jsx)(c,{size:20})}),(0,rW.jsx)("div",{className:u("flex size-full items-center justify-center p-4"),onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),role:"presentation",children:(0,rW.jsx)(iJ,{chart:t,className:u("size-full [&_svg]:h-auto [&_svg]:w-auto"),config:r,fullscreen:!0,showControls:E})})]}),document.body):null]})},so=e=>{var t,r;let n=[],a=[];for(let r of e.querySelectorAll("thead th"))n.push((null==(t=r.textContent)?void 0:t.trim())||"");for(let t of e.querySelectorAll("tbody tr")){let e=[];for(let n of t.querySelectorAll("td"))e.push((null==(r=n.textContent)?void 0:r.trim())||"");a.push(e)}return{headers:n,rows:a}},sl=e=>{let{headers:t,rows:r}=e,n=e=>{let t=!1,r=!1;for(let n of e){if('"'===n){t=!0,r=!0;break}(","===n||"\n"===n)&&(t=!0)}return t?r?'"'.concat(e.replace(/"/g,'""'),'"'):'"'.concat(e,'"'):e},a=Array(t.length>0?r.length+1:r.length),s=0;for(let e of(t.length>0&&(a[s]=t.map(n).join(","),s+=1),r))a[s]=e.map(n).join(","),s+=1;return a.join("\n")},sc=e=>{let{headers:t,rows:r}=e,n=e=>{let t=!1;for(let r of e)if(" "===r||"\n"===r||"\r"===r){t=!0;break}if(!t)return e;let r=[];for(let t of e)" "===t?r.push("\\t"):"\n"===t?r.push("\\n"):"\r"===t?r.push("\\r"):r.push(t);return r.join("")},a=Array(t.length>0?r.length+1:r.length),s=0;for(let e of(t.length>0&&(a[s]=t.map(n).join(" "),s+=1),r))a[s]=e.map(n).join(" "),s+=1;return a.join("\n")},su=e=>{let t=!1;for(let r of e)if("\\"===r||"|"===r){t=!0;break}if(!t)return e;let r=[];for(let t of e)"\\"===t?r.push("\\\\"):"|"===t?r.push("\\|"):r.push(t);return r.join("")},sd=e=>{let{headers:t,rows:r}=e;if(0===t.length)return"";let n=Array(r.length+2),a=0,s=t.map(e=>su(e));n[a]="| ".concat(s.join(" | ")," |"),a+=1;let i=Array(t.length);for(let e=0;e<t.length;e+=1)i[e]="---";for(let e of(n[a]="| ".concat(i.join(" | ")," |"),a+=1,r))if(e.length<t.length){let r=Array(t.length);for(let n=0;n<t.length;n+=1)r[n]=n<e.length?su(e[n]):"";n[a]="| ".concat(r.join(" | ")," |"),a+=1}else{let t=e.map(e=>su(e));n[a]="| ".concat(t.join(" | ")," |"),a+=1}return n.join("\n")},sh=e=>{let{children:t,className:r,onCopy:a,onError:s,timeout:i=2e3}=e,o=aU(),[l,c]=(0,n.useState)(!1),[u,d]=(0,n.useState)(!1),h=(0,n.useRef)(null),p=(0,n.useRef)(0),{isAnimating:m}=(0,n.useContext)(iQ),f=a1(),E=async e=>{var t,r;if("undefined"==typeof window||!(null!=(t=null==navigator?void 0:navigator.clipboard)&&t.write)){null==s||s(Error("Clipboard API not available"));return}try{let t=null==(r=h.current)?void 0:r.closest('[data-streamdown="table-wrapper"]'),n=null==t?void 0:t.querySelector("table");if(!n){null==s||s(Error("Table not found"));return}let o=so(n),l=(({csv:sl,tsv:sc,md:sd})[e]||sd)(o),u=new ClipboardItem({"text/plain":new Blob([l],{type:"text/plain"}),"text/html":new Blob([n.outerHTML],{type:"text/html"})});await navigator.clipboard.write([u]),d(!0),c(!1),null==a||a(e),p.current=window.setTimeout(()=>d(!1),i)}catch(e){null==s||s(e)}};(0,n.useEffect)(()=>{let e=e=>{let t=e.composedPath();h.current&&!t.includes(h.current)&&c(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e),window.clearTimeout(p.current)}},[]);let T=aZ(),g=u?T.CheckIcon:T.CopyIcon;return(0,rW.jsxs)("div",{className:o("relative"),ref:h,children:[(0,rW.jsx)("button",{className:o("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",r),disabled:m,onClick:()=>c(!l),title:f.copyTable,type:"button",children:null!=t?t:(0,rW.jsx)(g,{height:14,width:14})}),l?(0,rW.jsxs)("div",{className:o("absolute top-full right-0 z-20 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[(0,rW.jsx)("button",{className:o("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>E("md"),title:f.copyTableAsMarkdown,type:"button",children:f.tableFormatMarkdown}),(0,rW.jsx)("button",{className:o("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>E("csv"),title:f.copyTableAsCsv,type:"button",children:f.tableFormatCsv}),(0,rW.jsx)("button",{className:o("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>E("tsv"),title:f.copyTableAsTsv,type:"button",children:f.tableFormatTsv})]}):null]})},sp=e=>{let{children:t,className:r,onDownload:a,onError:s}=e,i=aU(),[o,l]=(0,n.useState)(!1),c=(0,n.useRef)(null),{isAnimating:u}=(0,n.useContext)(iQ),d=a1(),h=aZ(),p=e=>{var t;try{let r=null==(t=c.current)?void 0:t.closest('[data-streamdown="table-wrapper"]'),n=null==r?void 0:r.querySelector("table");if(!n){null==s||s(Error("Table not found"));return}let i=so(n),o="csv"===e?sl(i):sd(i);aF("table.".concat("csv"===e?"csv":"md"),o,"csv"===e?"text/csv":"text/markdown"),l(!1),null==a||a(e)}catch(e){null==s||s(e)}};return(0,n.useEffect)(()=>{let e=e=>{let t=e.composedPath();c.current&&!t.includes(c.current)&&l(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]),(0,rW.jsxs)("div",{className:i("relative"),ref:c,children:[(0,rW.jsx)("button",{className:i("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",r),disabled:u,onClick:()=>l(!o),title:d.downloadTable,type:"button",children:null!=t?t:(0,rW.jsx)(h.DownloadIcon,{size:14})}),o?(0,rW.jsxs)("div",{className:i("absolute top-full right-0 z-20 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[(0,rW.jsx)("button",{className:i("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>p("csv"),title:d.downloadTableAsCsv,type:"button",children:d.tableFormatCsv}),(0,rW.jsx)("button",{className:i("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>p("markdown"),title:d.downloadTableAsMarkdown,type:"button",children:d.tableFormatMarkdown})]}):null]})},sm=e=>{let{children:t,className:r,showCopy:a=!0,showDownload:s=!0}=e,{Maximize2Icon:i,XIcon:o}=aZ(),l=aU(),[c,u]=(0,n.useState)(!1),{isAnimating:d}=(0,n.useContext)(iQ),h=a1(),p=()=>{u(!1)};return(0,n.useEffect)(()=>{if(c){a9();let e=e=>{"Escape"===e.key&&u(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e),a7()}}},[c]),(0,rW.jsxs)(rW.Fragment,{children:[(0,rW.jsx)("button",{className:l("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",r),disabled:d,onClick:()=>{u(!0)},title:h.viewFullscreen,type:"button",children:(0,rW.jsx)(i,{size:14})}),c?(0,rQ.createPortal)((0,rW.jsx)("div",{"aria-label":h.viewFullscreen,"aria-modal":"true",className:l("fixed inset-0 z-50 flex flex-col bg-background"),"data-streamdown":"table-fullscreen",onClick:p,onKeyDown:e=>{"Escape"===e.key&&p()},role:"dialog",children:(0,rW.jsxs)("div",{className:l("flex h-full flex-col"),onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),role:"presentation",children:[(0,rW.jsxs)("div",{className:l("flex items-center justify-end gap-1 p-4"),children:[a?(0,rW.jsx)(sh,{}):null,s?(0,rW.jsx)(sp,{}):null,(0,rW.jsx)("button",{className:l("rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:p,title:h.exitFullscreen,type:"button",children:(0,rW.jsx)(o,{size:20})})]}),(0,rW.jsx)("div",{className:l("flex-1 overflow-auto p-4 pt-0 [&_thead]:sticky [&_thead]:top-0 [&_thead]:z-10"),children:(0,rW.jsx)("table",{className:l("w-full border-collapse border border-border"),"data-streamdown":"table",children:t})})]})}),document.body):null]})},sf=e=>{let{children:t,className:r,showControls:n,showCopy:a=!0,showDownload:s=!0,showFullscreen:i=!0,...o}=e,l=aU(),c=n&&a,u=n&&s,d=n&&i,h=c||u||d;return(0,rW.jsxs)("div",{className:l("my-4 flex flex-col gap-2 rounded-lg border border-border bg-sidebar p-2"),"data-streamdown":"table-wrapper",children:[h?(0,rW.jsxs)("div",{className:l("flex items-center justify-end gap-1"),children:[c?(0,rW.jsx)(sh,{}):null,u?(0,rW.jsx)(sp,{}):null,d?(0,rW.jsx)(sm,{showCopy:c,showDownload:u,children:t}):null]}):null,(0,rW.jsx)("div",{className:l("border-collapse overflow-x-auto overflow-y-auto rounded-md border border-border bg-background"),children:(0,rW.jsx)("table",{className:l("w-full divide-y divide-border",r),"data-streamdown":"table",...o,children:t})})]})},sE=/startLine=(\d+)/,sT=/\bnoLineNumbers\b/,sg=(0,n.lazy)(()=>r.e(21285).then(r.bind(r,21285)).then(e=>({default:e.Mermaid}))),sA=/language-([^\s]+)/;function s_(e,t){if(!(null!=e&&e.position||null!=t&&t.position))return!0;if(!(null!=e&&e.position&&null!=t&&t.position))return!1;let r=e.position.start,n=t.position.start,a=e.position.end,s=t.position.end;return(null==r?void 0:r.line)===(null==n?void 0:n.line)&&(null==r?void 0:r.column)===(null==n?void 0:n.column)&&(null==a?void 0:a.line)===(null==s?void 0:s.line)&&(null==a?void 0:a.column)===(null==s?void 0:s.column)}function sb(e,t){return e.className===t.className&&s_(e.node,t.node)}var sk=(e,t)=>"boolean"==typeof e?e:!1!==e[t],sC=(e,t)=>{if("boolean"==typeof e)return e;let r=e.table;return!1!==r&&(!0===r||void 0===r||!1!==r[t])},sN=(e,t)=>{if("boolean"==typeof e)return e;let r=e.code;return!1!==r&&(!0===r||void 0===r||!1!==r[t])},sI=(e,t)=>{if("boolean"==typeof e)return e;let r=e.mermaid;return!1!==r&&(!0===r||void 0===r||!1!==r[t])},sS=(0,n.memo)(e=>{let{children:t,className:r,node:n,...a}=e,s=aU();return(0,rW.jsx)("ol",{className:s("list-inside list-decimal whitespace-normal [li_&]:pl-6",r),"data-streamdown":"ordered-list",...a,children:t})},(e,t)=>sb(e,t));sS.displayName="MarkdownOl";var sy=(0,n.memo)(e=>{let{children:t,className:r,node:n,...a}=e,s=aU();return(0,rW.jsx)("li",{className:s("py-1 [&>p]:inline",r),"data-streamdown":"list-item",...a,children:t})},(e,t)=>e.className===t.className&&s_(e.node,t.node));sy.displayName="MarkdownLi";var sD=(0,n.memo)(e=>{let{children:t,className:r,node:n,...a}=e,s=aU();return(0,rW.jsx)("ul",{className:s("list-inside list-disc whitespace-normal [li_&]:pl-6",r),"data-streamdown":"unordered-list",...a,children:t})},(e,t)=>sb(e,t));sD.displayName="MarkdownUl";var sx=(0,n.memo)(e=>{let{className:t,node:r,...n}=e,a=aU();return(0,rW.jsx)("hr",{className:a("my-6 border-border",t),"data-streamdown":"horizontal-rule",...n})},(e,t)=>sb(e,t));sx.displayName="MarkdownHr";var sR=(0,n.memo)(e=>{let{children:t,className:r,node:n,...a}=e,s=aU();return(0,rW.jsx)("span",{className:s("font-semibold",r),"data-streamdown":"strong",...a,children:t})},(e,t)=>sb(e,t));sR.displayName="MarkdownStrong";var sL=(0,n.memo)(e=>{let{children:t,className:r,href:a,node:s,...i}=e,o=aU(),{linkSafety:l}=(0,n.useContext)(iQ),[c,u]=(0,n.useState)(!1),d="streamdown:incomplete-link"===a,h=(0,n.useCallback)(async e=>{if(!(!(null!=l&&l.enabled&&a)||d)){if(e.preventDefault(),l.onLinkCheck&&await l.onLinkCheck(a))return void window.open(a,"_blank","noreferrer");u(!0)}},[l,a,d]),p=(0,n.useCallback)(()=>{a&&window.open(a,"_blank","noreferrer")},[a]),m={url:null!=a?a:"",isOpen:c,onClose:(0,n.useCallback)(()=>{u(!1)},[]),onConfirm:p};return null!=l&&l.enabled&&a?(0,rW.jsxs)(rW.Fragment,{children:[(0,rW.jsx)("button",{className:o("wrap-anywhere appearance-none text-left font-medium text-primary underline",r),"data-incomplete":d,"data-streamdown":"link",onClick:h,type:"button",children:t}),l.renderModal?l.renderModal(m):(0,rW.jsx)(se,{...m})]}):(0,rW.jsx)("a",{className:o("wrap-anywhere font-medium text-primary underline",r),"data-incomplete":d,"data-streamdown":"link",href:a,rel:"noreferrer",target:"_blank",...i,children:t})},(e,t)=>sb(e,t)&&e.href===t.href);sL.displayName="MarkdownA";var sO=(0,n.memo)(e=>{let{children:t,className:r,node:n,...a}=e,s=aU();return(0,rW.jsx)("h1",{className:s("mt-6 mb-2 font-semibold text-3xl",r),"data-streamdown":"heading-1",...a,children:t})},(e,t)=>sb(e,t));sO.displayName="MarkdownH1";var sw=(0,n.memo)(e=>{let{children:t,className:r,node:n,...a}=e,s=aU();return(0,rW.jsx)("h2",{className:s("mt-6 mb-2 font-semibold text-2xl",r),"data-streamdown":"heading-2",...a,children:t})},(e,t)=>sb(e,t));sw.displayName="MarkdownH2";var sM=(0,n.memo)(e=>{let{children:t,className:r,node:n,...a}=e,s=aU();return(0,rW.jsx)("h3",{className:s("mt-6 mb-2 font-semibold text-xl",r),"data-streamdown":"heading-3",...a,children:t})},(e,t)=>sb(e,t));sM.displayName="MarkdownH3";var sP=(0,n.memo)(e=>{let{children:t,className:r,node:n,...a}=e,s=aU();return(0,rW.jsx)("h4",{className:s("mt-6 mb-2 font-semibold text-lg",r),"data-streamdown":"heading-4",...a,children:t})},(e,t)=>sb(e,t));sP.displayName="MarkdownH4";var sv=(0,n.memo)(e=>{let{children:t,className:r,node:n,...a}=e,s=aU();return(0,rW.jsx)("h5",{className:s("mt-6 mb-2 font-semibold text-base",r),"data-streamdown":"heading-5",...a,children:t})},(e,t)=>sb(e,t));sv.displayName="MarkdownH5";var sB=(0,n.memo)(e=>{let{children:t,className:r,node:n,...a}=e,s=aU();return(0,rW.jsx)("h6",{className:s("mt-6 mb-2 font-semibold text-sm",r),"data-streamdown":"heading-6",...a,children:t})},(e,t)=>sb(e,t));sB.displayName="MarkdownH6";var sF=(0,n.memo)(e=>{let{children:t,className:r,node:a,...s}=e,{controls:i}=(0,n.useContext)(iQ),o=sk(i,"table"),l=sC(i,"copy"),c=sC(i,"download"),u=sC(i,"fullscreen");return(0,rW.jsx)(sf,{className:r,showControls:o,showCopy:l,showDownload:c,showFullscreen:u,...s,children:t})},(e,t)=>sb(e,t));sF.displayName="MarkdownTable";var sH=(0,n.memo)(e=>{let{children:t,className:r,node:n,...a}=e,s=aU();return(0,rW.jsx)("thead",{className:s("bg-muted/80",r),"data-streamdown":"table-header",...a,children:t})},(e,t)=>sb(e,t));sH.displayName="MarkdownThead";var sU=(0,n.memo)(e=>{let{children:t,className:r,node:n,...a}=e,s=aU();return(0,rW.jsx)("tbody",{className:s("divide-y divide-border",r),"data-streamdown":"table-body",...a,children:t})},(e,t)=>sb(e,t));sU.displayName="MarkdownTbody";var sG=(0,n.memo)(e=>{let{children:t,className:r,node:n,...a}=e,s=aU();return(0,rW.jsx)("tr",{className:s("border-border",r),"data-streamdown":"table-row",...a,children:t})},(e,t)=>sb(e,t));sG.displayName="MarkdownTr";var sj=(0,n.memo)(e=>{let{children:t,className:r,node:n,...a}=e,s=aU();return(0,rW.jsx)("th",{className:s("whitespace-nowrap px-4 py-2 text-left font-semibold text-sm",r),"data-streamdown":"table-header-cell",...a,children:t})},(e,t)=>sb(e,t));sj.displayName="MarkdownTh";var s$=(0,n.memo)(e=>{let{children:t,className:r,node:n,...a}=e,s=aU();return(0,rW.jsx)("td",{className:s("px-4 py-2 text-sm",r),"data-streamdown":"table-cell",...a,children:t})},(e,t)=>sb(e,t));s$.displayName="MarkdownTd";var sY=(0,n.memo)(e=>{let{children:t,className:r,node:n,...a}=e,s=aU();return(0,rW.jsx)("blockquote",{className:s("my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic",r),"data-streamdown":"blockquote",...a,children:t})},(e,t)=>sb(e,t));sY.displayName="MarkdownBlockquote";var sz=(0,n.memo)(e=>{let{children:t,className:r,node:n,...a}=e,s=aU();return(0,rW.jsx)("sup",{className:s("text-sm",r),"data-streamdown":"superscript",...a,children:t})},(e,t)=>sb(e,t));sz.displayName="MarkdownSup";var sq=(0,n.memo)(e=>{let{children:t,className:r,node:n,...a}=e,s=aU();return(0,rW.jsx)("sub",{className:s("text-sm",r),"data-streamdown":"subscript",...a,children:t})},(e,t)=>sb(e,t));sq.displayName="MarkdownSub";var sV=(0,n.memo)(e=>{let{children:t,className:r,node:a,...s}=e;if("data-footnotes"in s){let e=Array.isArray(t)?t.map(e=>{if(!(0,n.isValidElement)(e))return e;if(e.type===sS){let t=(Array.isArray(e.props.children)?e.props.children:[e.props.children]).filter(e=>!(e=>{var t,r;if(!(0,n.isValidElement)(e))return!1;let a=Array.isArray(e.props.children)?e.props.children:[e.props.children],s=!1,i=!1;for(let e of a)if(e){if("string"==typeof e)""!==e.trim()&&(s=!0);else if((0,n.isValidElement)(e)){if((null==(t=e.props)?void 0:t["data-footnote-backref"])!==void 0)i=!0;else for(let t of Array.isArray(e.props.children)?e.props.children:[e.props.children])if("string"==typeof t&&""!==t.trim()||(0,n.isValidElement)(t)&&(null==(r=t.props)?void 0:r["data-footnote-backref"])===void 0){s=!0;break}}}return i&&!s})(e));return 0===t.length?null:{...e,props:{...e.props,children:t}}}return e}):t;return(Array.isArray(e)?e.some(e=>null!==e):null!==e)?(0,rW.jsx)("section",{className:r,...s,children:e}):null}return(0,rW.jsx)("section",{className:r,...s,children:t})},(e,t)=>sb(e,t));sV.displayName="MarkdownSection";var sW=(0,n.memo)(e=>{var t,r;let{node:a,className:s,children:i,...o}=e,l=aU(),c=!("data-block"in o),{mermaid:u,controls:d,lineNumbers:h}=(0,n.useContext)(iQ),p=sa(),m=(0,n.useContext)(av),f=null==s?void 0:s.match(sA),E=null!=(t=null==f?void 0:f.at(1))?t:"",T=(e=>{var t;let r=sr();return null!=r&&r.renderers&&e&&null!=(t=r.renderers.find(t=>Array.isArray(t.language)?t.language.includes(e):t.language===e))?t:null})(E);if(c)return(0,rW.jsx)("code",{className:l("rounded bg-muted px-1.5 py-0.5 font-mono text-sm",s),"data-streamdown":"inline-code",...o,children:i});let g=null==(r=null==a?void 0:a.properties)?void 0:r.metastring,A=null==g?void 0:g.match(sE),_=A?Number.parseInt(A[1],10):void 0,b=!(g&&sT.test(g))&&!1!==h,k="";if((0,n.isValidElement)(i)&&i.props&&"object"==typeof i.props&&"children"in i.props&&"string"==typeof i.props.children?k=i.props.children:"string"==typeof i&&(k=i),T){let e=T.component;return(0,rW.jsx)(n.Suspense,{fallback:(0,rW.jsx)(a8,{}),children:(0,rW.jsx)(e,{code:k,isIncomplete:m,language:E,meta:g})})}if("mermaid"===E&&p){let e=sk(d,"mermaid"),t=sI(d,"download"),r=sI(d,"copy"),a=sI(d,"fullscreen"),i=sI(d,"panZoom");return(0,rW.jsx)(n.Suspense,{fallback:(0,rW.jsx)(a8,{}),children:(0,rW.jsxs)("div",{className:l("group relative my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2",s),"data-streamdown":"mermaid-block",children:[(0,rW.jsx)("div",{className:l("flex h-8 items-center text-muted-foreground text-xs"),children:(0,rW.jsx)("span",{className:l("ml-1 font-mono lowercase"),children:"mermaid"})}),e&&(t||r||a)?(0,rW.jsx)("div",{className:l("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end"),children:(0,rW.jsxs)("div",{className:l("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"),"data-streamdown":"mermaid-block-actions",children:[t?(0,rW.jsx)(ss,{chart:k,config:null==u?void 0:u.config}):null,r?(0,rW.jsx)(a5,{code:k}):null,a?(0,rW.jsx)(si,{chart:k,config:null==u?void 0:u.config}):null]})}):null,(0,rW.jsx)("div",{className:l("rounded-md border border-border bg-background"),children:(0,rW.jsx)(sg,{chart:k,config:null==u?void 0:u.config,showControls:i})})]})})}let C=sk(d,"code"),N=sN(d,"download"),I=sN(d,"copy");return(0,rW.jsx)(aW,{className:s,code:k,isIncomplete:m,language:E,lineNumbers:b,startLine:void 0!==_&&_>=1?_:void 0,children:C?(0,rW.jsxs)(rW.Fragment,{children:[N?(0,rW.jsx)(a2,{code:k,language:E}):null,I?(0,rW.jsx)(a5,{}):null]}):null})},(e,t)=>e.className===t.className&&s_(e.node,t.node));sW.displayName="MarkdownCode";var sQ=(0,n.memo)(e=>{let{node:t,className:r,src:a,alt:s,onLoad:i,onError:o,...l}=e,{DownloadIcon:c}=aZ(),u=aU(),d=(0,n.useRef)(null),[h,p]=(0,n.useState)(!1),[m,f]=(0,n.useState)(!1),E=a1(),T=null!=l.width||null!=l.height,g=(h||T)&&!m,A=m&&!T;(0,n.useEffect)(()=>{let e=d.current;if(null!=e&&e.complete){let t=e.naturalWidth>0;p(t),f(!t)}},[]);let _=(0,n.useCallback)(e=>{p(!0),f(!1),null==i||i(e)},[i]),b=(0,n.useCallback)(e=>{p(!1),f(!0),null==o||o(e)},[o]),k=async()=>{if(a)try{let e=await (await fetch(a)).blob(),t=new URL(a,window.location.origin).pathname.split("/").pop()||"",r=t.split(".").pop(),n=t.includes(".")&&void 0!==r&&r.length<=4,i="";if(n)i=t;else{let r=e.type,n="png";r.includes("jpeg")||r.includes("jpg")?n="jpg":r.includes("png")?n="png":r.includes("svg")?n="svg":r.includes("gif")?n="gif":r.includes("webp")&&(n="webp"),i="".concat((s||t||"image").replace(a6,""),".").concat(n)}aF(i,e,e.type)}catch(e){window.open(a,"_blank")}};return a?(0,rW.jsxs)("div",{className:u("group relative my-4 inline-block"),"data-streamdown":"image-wrapper",children:[(0,rW.jsx)("img",{alt:s,className:u("max-w-full rounded-lg",A&&"hidden",r),"data-streamdown":"image",onError:b,onLoad:_,ref:d,src:a,...l}),A&&(0,rW.jsx)("span",{className:u("text-muted-foreground text-xs italic"),"data-streamdown":"image-fallback",children:E.imageNotAvailable}),(0,rW.jsx)("div",{className:u("pointer-events-none absolute inset-0 hidden rounded-lg bg-black/10 group-hover:block")}),g&&(0,rW.jsx)("button",{className:u("absolute right-2 bottom-2 flex h-8 w-8 cursor-pointer items-center justify-center rounded-md border border-border bg-background/90 shadow-sm backdrop-blur-sm transition-all duration-200 hover:bg-background","opacity-0 group-hover:opacity-100"),onClick:k,title:E.downloadImage,type:"button",children:(0,rW.jsx)(c,{size:14})})]}):null},(e,t)=>e.className===t.className&&s_(e.node,t.node));sQ.displayName="MarkdownImg";var sK=(0,n.memo)(e=>{let{children:t,node:r,...a}=e,s=(Array.isArray(t)?t:[t]).filter(e=>null!=e&&""!==e);if(1===s.length&&(0,n.isValidElement)(s[0])){let e=s[0].props.node,r=null==e?void 0:e.tagName;if("img"===r||"code"===r&&"data-block"in s[0].props)return(0,rW.jsx)(rW.Fragment,{children:t})}return(0,rW.jsx)("p",{...a,children:t})},(e,t)=>sb(e,t));sK.displayName="MarkdownParagraph";var sX={ol:sS,li:sy,ul:sD,hr:sx,strong:sR,a:sL,h1:sO,h2:sw,h3:sM,h4:sP,h5:sv,h6:sB,table:sF,thead:sH,tbody:sU,tr:sG,th:sj,td:s$,blockquote:sY,code:sW,img:sQ,pre:e=>{let{children:t}=e;return(0,n.isValidElement)(t)?(0,n.cloneElement)(t,{"data-block":"true"}):t},sup:sz,sub:sq,p:sK,section:sV},sZ=/[\u0590-\u08FF\uFB1D-\uFDFF\uFE70-\uFEFF]/,sJ=RegExp("\\p{L}","u");function s0(e){for(let t of e.replace(/^#{1,6}\s+/gm,"").replace(/(\*{1,3}|_{1,3})/g,"").replace(/`[^`]*`/g,"").replace(/\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/^[\s>*\-+\d.]+/gm,"")){if(sZ.test(t))return"rtl";if(sJ.test(t))break}return"ltr"}var s1,s5,s3,s2,s8,s6,s4,s9,s7,ie,it,ir,ia,is,ii,io,il,ic,iu,id=/^[ \t]{0,3}(`{3,}|~{3,})/,ih=/^\|?[ \t]*:?-{1,}:?[ \t]*(\|[ \t]*:?-{1,}:?[ \t]*)*\|?$/,ip=e=>{let t=e.split("\n"),r=null,n=0;for(let e of t){let t=id.exec(e);if(null===r){if(t){let e=t[1];r=e[0],n=e.length}}else if(t){let e=t[1],a=e[0],s=e.length;a===r&&s>=n&&(r=null,n=0)}}return null!==r},im=()=>e=>{(0,a.YR)(e,"html",(e,t,r)=>{r&&"number"==typeof t&&(r.children[t]={type:"text",value:e.value})})},iE=[],iT={allowDangerousHtml:!0},ig=new WeakMap,iA=new class{generateCacheKey(e){let t=this.keyCache.get(e);if(t)return t;let r=e.rehypePlugins,n=e.remarkPlugins,a=e.remarkRehypeOptions;if(!(r||n||a)){let t="default";return this.keyCache.set(e,t),t}let s=e=>{if(!e||0===e.length)return"";let t="";for(let r=0;r<e.length;r+=1){let n=e[r];if(r>0&&(t+=","),Array.isArray(n)){let[e,r]=n;if("function"==typeof e){let r=ig.get(e);r||(r=e.name,ig.set(e,r)),t+=r}else t+=String(e);t+=":",t+=JSON.stringify(r)}else if("function"==typeof n){let e=ig.get(n);e||(e=n.name,ig.set(n,e)),t+=e}else t+=String(n)}return t},i=s(r),o=s(n),l=a?JSON.stringify(a):"",c="".concat(o,"::").concat(i,"::").concat(l);return this.keyCache.set(e,c),c}get(e){let t=this.generateCacheKey(e),r=this.cache.get(t);return r&&(this.cache.delete(t),this.cache.set(t,r)),r}set(e,t){let r=this.generateCacheKey(e);if(this.cache.size>=this.maxSize){let e=this.cache.keys().next().value;e&&this.cache.delete(e)}this.cache.set(r,t)}clear(){this.cache.clear()}constructor(){this.cache=new Map,this.keyCache=new WeakMap,this.maxSize=100}},i_=e=>{let t=ib(e),r=e.children||"";return iN(t.runSync(t.parse(r),r),e)},ib=e=>{let t=iA.get(e);if(t)return t;let r=ik(e);return iA.set(e,r),r},ik=e=>{let t=e.rehypePlugins||iE,r=e.remarkPlugins||iE,n=t.some(e=>Array.isArray(e)?e[0]===tV:e===tV)?r:[...r,im],a=e.remarkRehypeOptions?{...iT,...e.remarkRehypeOptions}:iT;return(0,nS.l)().use(nl.A).use(n).use(nI,a).use(t)},iC=e=>e,iN=(e,t)=>{let{allowElement:r,allowedElements:n,disallowedElements:s,skipHtml:i,unwrapDisallowed:o,urlTransform:l}=t;if(r||n||s||i||l){let t=l||iC;(0,a.YR)(e,(e,a,l)=>"raw"===e.type&&l&&"number"==typeof a?(((e,t,r,n)=>{r?e.children.splice(t,1):e.children[t]={type:"text",value:n}})(l,a,i,e.value),a):"element"===e.type&&(((e,t)=>{var r;for(let n in no)if(Object.hasOwn(no,n)&&Object.hasOwn(e.properties,n)){let a=e.properties[n],s=no[n];(null===s||s.includes(e.tagName))&&(e.properties[n]=null!=(r=t(String(a||""),n,e))?r:void 0)}})(e,t),((e,t,r,n,a,s)=>{let i=!1;return n?i=!n.includes(e.tagName):a&&(i=a.includes(e.tagName)),!i&&s&&"number"==typeof t&&(i=!s(e,t,r)),i})(e,a,l,n,s,r)&&l&&"number"==typeof a)?(o&&e.children?l.children.splice(a,1,...e.children):l.children.splice(a,1),a):void 0)}return function(e,t){var r,n,a,s,i;let o;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let l=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=l,n=t.jsxDEV,o=function(e,t,a,s){let i=Array.isArray(a.children),o=tx(e);return n(t,a,s,i,{columnNumber:o?o.column-1:void 0,fileName:r,lineNumber:o?o.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");a=0,s=t.jsx,i=t.jsxs,o=function(e,t,r,n){let a=Array.isArray(r.children)?i:s;return n?a(t,r,n):a(t,r)}}let c={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:o,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:l,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?b.JW:b.qy,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},u=ne(c,e,void 0);return u&&"string"!=typeof u?u:c.create(e,c.Fragment,{children:u||void 0},void 0)}(e,{Fragment:rW.Fragment,components:t.components,ignoreInvalidStyle:!0,jsx:rW.jsx,jsxs:rW.jsxs,passKeys:!0,passNode:!0})},iI=/\[\^[\w-]{1,200}\](?!:)/,iS=/\[\^[\w-]{1,200}\]:/,iy=/<(\w+)[\s>]/,iD=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),ix=new Map,iR=new Map,iL=(e,t)=>{if(iD.has(t.toLowerCase()))return 0;let r=e.match((e=>{let t=e.toLowerCase(),r=ix.get(t);if(r)return r;let n=RegExp("<".concat(t,"(?=[\\s>/])[^>]*>"),"gi");return ix.set(t,n),n})(t));if(!r)return 0;let n=0;for(let e of r)e.trimEnd().endsWith("/>")||(n+=1);return n},iO=(e,t)=>{let r=e.match((e=>{let t=e.toLowerCase(),r=iR.get(t);if(r)return r;let n=RegExp("</".concat(t,"(?=[\\s>])[^>]*>"),"gi");return iR.set(t,n),n})(t));return r?r.length:0},iw=e=>{let t=0;for(let r=0;r<e.length-1;r+=1)"$"===e[r]&&"$"===e[r+1]&&(t+=1,r+=1);return t},iM=e=>{let t=iI.test(e),r=iS.test(e);if(t||r)return[e];let n=aN.lex(e,{gfm:!0}),a=[],s=[],i=!1;for(let e of n){let t=e.raw,r=a.length;if(s.length>0){a[r-1]+=t;let e=s.at(-1),n=iL(t,e),i=iO(t,e);for(let t=0;t<n;t+=1)s.push(e);for(let t=0;t<i;t+=1)s.length>0&&s.at(-1)===e&&s.pop();continue}if("html"===e.type&&e.block){let e=t.match(iy);if(e){let r=e[1];iL(t,r)>iO(t,r)&&s.push(r)}}if(r>0&&!i){let e=a[r-1];if(iw(e)%2==1){a[r-1]=e+t;continue}}a.push(t),"space"!==e.type&&(i="code"===e.type)}return a},iP=/([\\`*_~[\]|])/g,iv=e=>e.replace(iP,"\\$1"),iB=e=>"text"===e.type?e.value:"children"in e&&Array.isArray(e.children)?e.children.map(iB).join(""):"",iF=e=>t=>{if(!e||0===e.length)return;let r=new Set(e.map(e=>e.toLowerCase()));(0,a.YR)(t,"element",e=>{if(r.has(e.tagName.toLowerCase())){let t=iB(e);e.children=t?[{type:"text",value:t}]:[]}})},iH=/^[ \t]*<[\w!/?-]/,iU=/(^|\n)[ \t]{4,}(?=<[\w!/?-])/g,iG={...tQ,protocols:{...tQ.protocols,href:[...null!=(il=null==(io=tQ.protocols)?void 0:io.href)?il:[],"tel"]},attributes:{...tQ.attributes,code:[...null!=(iu=null==(ic=tQ.attributes)?void 0:ic.code)?iu:[],"metastring"]}},ij={raw:tV,sanitize:[t3,iG],harden:[function({defaultOrigin:e="",allowedLinkPrefixes:t=[],allowedImagePrefixes:r=[],allowDataImages:n=!1,allowedProtocols:o=[],blockedImageClass:l="inline-block bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-400 px-3 py-1 rounded text-sm",blockedLinkClass:c="text-gray-500",linkBlockPolicy:h=i.indicator,imageBlockPolicy:p=i.indicator}){let m=t.length&&!t.every(e=>"*"===e),f=r.length&&!r.every(e=>"*"===e);if(!e&&(m||f))throw Error("defaultOrigin is required when allowedLinkPrefixes or allowedImagePrefixes are provided");return m=>{let f=((e,t,r,n,o,l,c,h,p)=>{let m=(f,E,T)=>{if("element"!==f.type||f[d])return s.IN;if("a"===f.tagName){let r=u(f.properties.href,t,e,!1,!1,o);if(null!==r)return f.properties.href=r,f.properties.target="_blank",f.properties.rel="noopener noreferrer",s.IN;if(f[d]=!0,(0,a.YR)(f,m),T&&"number"==typeof E){let e=function(e,t,r){return t===i.remove?{type:"remove"}:t===i.textOnly?{type:"replace",element:{type:"element",tagName:"span",properties:{},children:[...e.children]}}:{type:"replace",element:{type:"element",tagName:"span",properties:{title:"Blocked URL: "+String(e.properties.href),class:r},children:[...e.children,{type:"text",value:" [blocked]"}]}}}(f,h,c);if("remove"===e.type)return T.children.splice(E,1),[s._Z,E];T.children[E]=e.element}return s._Z}if("img"===f.tagName){let t=u(f.properties.src,r,e,n,!0,o);if(null===t){if(f[d]=!0,(0,a.YR)(f,m),T&&"number"==typeof E){let e=function(e,t,r){if(t===i.remove)return{type:"remove"};if(t===i.textOnly){let t=String(e.properties.alt||"");return t?{type:"replace",element:{type:"element",tagName:"span",properties:{},children:[{type:"text",value:t}]}}:{type:"remove"}}return{type:"replace",element:{type:"element",tagName:"span",properties:{class:r},children:[{type:"text",value:"[Image blocked: "+String(e.properties.alt||"No description")+"]"}]}}}(f,p,l);if("remove"===e.type)return T.children.splice(E,1),[s._Z,E];T.children[E]=e.element}return s._Z}f.properties.src=t}return s.IN};return m})(e,t,r,n,o,l,c,h,p);(function e(t){if("children"in t&&Array.isArray(t.children))for(let r of(t.children=t.children.filter(e=>null!=e),t.children))e(r)})(m),(0,a.YR)(m,f)}},{allowedImagePrefixes:["*"],allowedLinkPrefixes:["*"],allowedProtocols:["*"],defaultOrigin:void 0,allowDataImages:!0}]},i$={gfm:[t2.A,{}],codeMeta:()=>e=>{(0,a.YR)(e,"code",e=>{var t,r;e.meta&&(e.data=null!=(t=e.data)?t:{},e.data.hProperties={...null!=(r=e.data.hProperties)?r:{},metastring:e.meta})})}},iY=Object.values(ij),iz=Object.values(i$),iq={block:" ▋",circle:" ●"},iV=["github-light","github-dark"],iW={enabled:!0},iQ=(0,n.createContext)({shikiTheme:iV,controls:!0,isAnimating:!1,lineNumbers:!0,mode:"streaming",mermaid:void 0,linkSafety:iW}),iK=(0,n.memo)(e=>{let{content:t,shouldParseIncompleteMarkdown:r,shouldNormalizeHtmlIndentation:n,index:a,isIncomplete:s,dir:i,animatePlugin:o,...l}=e;if(o){let e=o.getLastRenderCharCount();o.setPrevContentLength(e)}let c="string"==typeof t&&n?(e=>"string"==typeof e&&0!==e.length&&iH.test(e)?e.replace(iU,"$1"):e)(t):t,u=(0,rW.jsx)(i_,{...l,children:c});return(0,rW.jsx)(av.Provider,{value:s,children:i?(0,rW.jsx)("div",{dir:i,style:{display:"contents"},children:u}):u})},(e,t)=>{if(e.content!==t.content||e.shouldNormalizeHtmlIndentation!==t.shouldNormalizeHtmlIndentation||e.index!==t.index||e.isIncomplete!==t.isIncomplete||e.dir!==t.dir)return!1;if(e.components!==t.components){let r=Object.keys(e.components||{}),n=Object.keys(t.components||{});if(r.length!==n.length||r.some(r=>{var n,a;return(null==(n=e.components)?void 0:n[r])!==(null==(a=t.components)?void 0:a[r])}))return!1}return e.rehypePlugins===t.rehypePlugins&&e.remarkPlugins===t.remarkPlugins});iK.displayName="Block";var iX=(0,n.memo)(e=>{let{children:t,mode:r="streaming",dir:a,parseIncompleteMarkdown:s=!0,normalizeHtmlIndentation:i=!1,components:o,rehypePlugins:l=iY,remarkPlugins:c=iz,className:u,shikiTheme:d=iV,mermaid:h,controls:p=!0,isAnimating:m=!1,animated:f,BlockComponent:E=iK,parseMarkdownIntoBlocksFn:T=iM,caret:g,plugins:A,remend:_,linkSafety:b=iW,lineNumbers:k=!0,allowedTags:C,literalTagContent:N,translations:I,icons:S,prefix:y,onAnimationStart:D,onAnimationEnd:x,...R}=e,L=(0,n.useId)(),[O,w]=(0,n.useTransition)(),M=(0,n.useMemo)(()=>(e=>e?function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var a=(0,rV.QP)((0,rq.$)(r));if(!e||!a)return a;let s="".concat(e,":");return a.split(/\s+/).filter(Boolean).map(t=>t.startsWith(s)?t:"".concat(e,":").concat(t)).join(" ")}:aB)(y),[y]),P=(0,n.useRef)(null),v=(0,n.useRef)(D),B=(0,n.useRef)(x);v.current=D,B.current=x,(0,n.useEffect)(()=>{var e,t,n;if("static"===r)return;let a=P.current;if(P.current=m,null===a){m&&(null==(e=v.current)||e.call(v));return}m&&!a?null==(t=v.current)||t.call(v):!m&&a&&(null==(n=B.current)||n.call(B))},[m,r]);let F=(0,n.useMemo)(()=>C?Object.keys(C):[],[C]),H=(0,n.useMemo)(()=>{if("string"!=typeof t)return"";let e="streaming"===r&&s?((e,t)=>{var r;if(!e||"string"!=typeof e)return e;let n=e.endsWith(" ")&&!e.endsWith(" ")?e.slice(0,-1):e;for(let{handler:e,earlyReturn:a}of[...(e=>{var t;let r=null!=(t=null==e?void 0:e.linkMode)?t:"protocol";return rz.filter(({handler:t,optionKey:r})=>"links"===t.name?!1!==(null==e?void 0:e.links)||!1!==(null==e?void 0:e.images):"inlineKatex"===t.name?!0===(null==e?void 0:e.inlineKatex):!1!==(null==e?void 0:e[r])).map(({handler:e,earlyReturn:t})=>"links"===e.name?{handler:rn(rr({},e),{handle:e=>rF(e,r)}),earlyReturn:"protocol"===r?t:void 0}:{handler:e,earlyReturn:t})})(t),...(null!=(r=null==t?void 0:t.handlers)?r:[]).map(e=>{var t;return{handler:rn(rr({},e),{priority:null!=(t=e.priority)?t:rY.DEFAULT}),earlyReturn:void 0}})].sort((e,t)=>{var r,n;return(null!=(r=e.handler.priority)?r:0)-(null!=(n=t.handler.priority)?n:0)}))if(n=e.handle(n),null!=a&&a(n))break;return n})(t,_):t;return N&&N.length>0&&(e=((e,t)=>{if(!t.length)return e;let r=e;for(let e of t){let t=RegExp("(<".concat(e,"(?=[\\s>/])[^>]*>)([\\s\\S]*?)(</").concat(e,"\\s*>)"),"gi");r=r.replace(t,(e,t,r,n)=>t+iv(r).replace(/\n\n/g," ")+n)}return r})(e,N)),F.length>0&&(e=((e,t)=>{if(!t.length)return e;let r=e;for(let e of t){let t=RegExp("(<".concat(e,"(?=[\\s>/])[^>]*>)([\\s\\S]*?)(</").concat(e,"\\s*>)"),"gi");r=r.replace(t,(e,t,r,n)=>{if(!r.includes("\n\n"))return t+r+n;let a=r.replace(/\n\n/g,"\n\x3c!----\x3e\n"),s=(a.startsWith("\n")?"":"\n")+a+(a.endsWith("\n")?"":"\n");return"".concat(t).concat(s).concat(n,"\n\n")})}return r})(e,F)),e},[t,r,s,_,F,N]),U=(0,n.useMemo)(()=>T(H),[H,T]),[G,j]=(0,n.useState)(U);(0,n.useEffect)(()=>{"streaming"!==r||V?j(U):w(()=>{j(U)})},[U,r]);let $="streaming"===r?G:U,Y=(0,n.useMemo)(()=>"auto"===a?$.map(s0):void 0,[$,a]),z=(0,n.useMemo)(()=>$.map((e,t)=>"".concat(L,"-").concat(t)),[$.length,L]),q=(0,n.useMemo)(()=>!0===f?"true":f?JSON.stringify(f):"",[f]),V=(0,n.useMemo)(()=>q?"true"===q?aP():aP(f):null,[q]),W=(0,n.useMemo)(()=>{var e,t;return{shikiTheme:null!=(t=null==(e=null==A?void 0:A.code)?void 0:e.getThemes())?t:d,controls:p,isAnimating:m,lineNumbers:k,mode:r,mermaid:h,linkSafety:b}},[d,p,m,k,r,h,b,null==A?void 0:A.code]),Q=(0,n.useMemo)(()=>I?JSON.stringify(I):"",[I]),K=(0,n.useMemo)(()=>({...aJ,...I}),[Q]),X=(0,n.useMemo)(()=>{let{inlineCode:e,...t}=null!=o?o:{},r={...sX,...t};if(e){let t=r.code;r.code=r=>"data-block"in r?t?(0,n.createElement)(t,r):null:(0,n.createElement)(e,r)}return r},[o]),Z=(0,n.useMemo)(()=>{let e=[];return null!=A&&A.cjk&&(e=[...e,...A.cjk.remarkPluginsBefore]),e=[...e,...c],null!=A&&A.cjk&&(e=[...e,...A.cjk.remarkPluginsAfter]),null!=A&&A.math&&(e=[...e,A.math.remarkPlugin]),e},[c,null==A?void 0:A.math,null==A?void 0:A.cjk]),J=(0,n.useMemo)(()=>{var e;let t=l;if(C&&Object.keys(C).length>0&&l===iY){let r={...iG,tagNames:[...null!=(e=iG.tagNames)?e:[],...Object.keys(C)],attributes:{...iG.attributes,...C}};t=[ij.raw,[t3,r],ij.harden]}return N&&N.length>0&&(t=[...t,[iF,N]]),null!=A&&A.math&&(t=[...t,A.math.rehypePlugin]),V&&m&&(t=[...t,V.rehypePlugin]),t},[l,null==A?void 0:A.math,V,m,C,N]),ee=(0,n.useMemo)(()=>{if(!m||0===$.length)return!1;let e=$.at(-1);return ip(e)||(e=>{for(let t of e.split("\n")){let e=t.trim();if(e.length>0&&e.includes("|")&&ih.test(e))return!0}return!1})(e)},[m,$]),et=(0,n.useMemo)(()=>g&&m&&!ee?{"--streamdown-caret":'"'.concat(iq[g],'"')}:void 0,[g,m,ee]);return"static"===r?(0,rW.jsx)(a0.Provider,{value:K,children:(0,rW.jsx)(st.Provider,{value:null!=A?A:null,children:(0,rW.jsx)(iQ.Provider,{value:W,children:(0,rW.jsx)(aX,{icons:S,children:(0,rW.jsx)(aH.Provider,{value:M,children:(0,rW.jsx)("div",{className:M("space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",u),dir:"auto"===a?s0(H):a,children:(0,rW.jsx)(i_,{components:X,rehypePlugins:J,remarkPlugins:Z,...R,children:H})})})})})})}):(0,rW.jsx)(a0.Provider,{value:K,children:(0,rW.jsx)(st.Provider,{value:null!=A?A:null,children:(0,rW.jsx)(iQ.Provider,{value:W,children:(0,rW.jsx)(aX,{icons:S,children:(0,rW.jsx)(aH.Provider,{value:M,children:(0,rW.jsxs)("div",{className:M("space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",g&&!ee?"[&>*:last-child]:after:inline [&>*:last-child]:after:align-baseline [&>*:last-child]:after:content-[var(--streamdown-caret)]":null,u),style:et,children:[0===$.length&&g&&m&&(0,rW.jsx)("span",{}),$.map((e,t)=>{var r;let n=t===$.length-1,o=m&&n&&ip(e);return(0,rW.jsx)(E,{animatePlugin:V,components:X,content:e,dir:null!=(r=null==Y?void 0:Y[t])?r:"auto"!==a?a:void 0,index:t,isIncomplete:o,rehypePlugins:J,remarkPlugins:Z,shouldNormalizeHtmlIndentation:i,shouldParseIncompleteMarkdown:s,...R},z[t])})]})})})})})})},(e,t)=>e.children===t.children&&e.shikiTheme===t.shikiTheme&&e.isAnimating===t.isAnimating&&e.animated===t.animated&&e.mode===t.mode&&e.plugins===t.plugins&&e.className===t.className&&e.linkSafety===t.linkSafety&&e.lineNumbers===t.lineNumbers&&e.normalizeHtmlIndentation===t.normalizeHtmlIndentation&&e.literalTagContent===t.literalTagContent&&JSON.stringify(e.translations)===JSON.stringify(t.translations)&&e.prefix===t.prefix&&e.dir===t.dir);iX.displayName="Streamdown";var iZ=e=>{let{children:t,className:r,minZoom:a=.5,maxZoom:s=3,zoomStep:i=.1,showControls:o=!0,initialZoom:l=1,fullscreen:c=!1}=e,{RotateCcwIcon:u,ZoomInIcon:d,ZoomOutIcon:h}=aZ(),p=aU(),m=(0,n.useRef)(null),f=(0,n.useRef)(null),[E,T]=(0,n.useState)(l),[g,A]=(0,n.useState)({x:0,y:0}),[_,b]=(0,n.useState)(!1),[k,C]=(0,n.useState)({x:0,y:0}),[N,I]=(0,n.useState)({x:0,y:0}),S=(0,n.useCallback)(e=>{T(t=>Math.max(a,Math.min(s,t+e)))},[a,s]),y=(0,n.useCallback)(()=>{S(i)},[S,i]),D=(0,n.useCallback)(()=>{S(-i)},[S,i]),x=(0,n.useCallback)(()=>{T(l),A({x:0,y:0})},[l]),R=(0,n.useCallback)(e=>{e.preventDefault(),S(e.deltaY>0?-i:i)},[S,i]),L=(0,n.useCallback)(e=>{if(0!==e.button||!1===e.isPrimary)return;b(!0),C({x:e.clientX,y:e.clientY}),I(g);let t=e.currentTarget;t instanceof HTMLElement&&t.setPointerCapture(e.pointerId)},[g]),O=(0,n.useCallback)(e=>{if(!_)return;e.preventDefault();let t=e.clientX-k.x,r=e.clientY-k.y;A({x:N.x+t,y:N.y+r})},[_,k,N]),w=(0,n.useCallback)(e=>{b(!1);let t=e.currentTarget;t instanceof HTMLElement&&t.releasePointerCapture(e.pointerId)},[]);return(0,n.useEffect)(()=>{let e=m.current;if(e)return e.addEventListener("wheel",R,{passive:!1}),()=>{e.removeEventListener("wheel",R)}},[R]),(0,n.useEffect)(()=>{let e=f.current;if(e&&_)return document.body.style.userSelect="none",e.addEventListener("pointermove",O,{passive:!1}),e.addEventListener("pointerup",w),e.addEventListener("pointercancel",w),()=>{document.body.style.userSelect="",e.removeEventListener("pointermove",O),e.removeEventListener("pointerup",w),e.removeEventListener("pointercancel",w)}},[_,O,w]),(0,rW.jsxs)("div",{className:p("relative flex flex-col",c?"h-full w-full":"min-h-28 w-full",r),ref:m,style:{cursor:_?"grabbing":"grab"},children:[o?(0,rW.jsxs)("div",{className:p("absolute z-10 flex flex-col gap-1 rounded-md border border-border bg-background/80 p-1 supports-[backdrop-filter]:bg-background/70 supports-[backdrop-filter]:backdrop-blur-sm",c?"bottom-4 left-4":"bottom-2 left-2"),children:[(0,rW.jsx)("button",{className:p("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50"),disabled:E>=s,onClick:y,title:"Zoom in",type:"button",children:(0,rW.jsx)(d,{size:16})}),(0,rW.jsx)("button",{className:p("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50"),disabled:E<=a,onClick:D,title:"Zoom out",type:"button",children:(0,rW.jsx)(h,{size:16})}),(0,rW.jsx)("button",{className:p("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"),onClick:x,title:"Reset zoom and pan",type:"button",children:(0,rW.jsx)(u,{size:16})})]}):null,(0,rW.jsx)("div",{className:p("flex-1 origin-center transition-transform duration-150 ease-out",c?"flex h-full w-full items-center justify-center":"flex w-full items-center justify-center"),onPointerDown:L,ref:f,role:"application",style:{transform:"translate(".concat(g.x,"px, ").concat(g.y,"px) scale(").concat(E,")"),transformOrigin:"center center",touchAction:"none",willChange:"transform"},children:t})]})},iJ=e=>{let{chart:t,className:r,config:a,fullscreen:s=!1,showControls:i=!0}=e,o=aU(),[l,c]=(0,n.useState)(null),[u,d]=(0,n.useState)(!1),[h,p]=(0,n.useState)(""),[m,f]=(0,n.useState)(""),[E,T]=(0,n.useState)(0),{mermaid:g}=(0,n.useContext)(iQ),A=sa(),_=null==g?void 0:g.errorComponent,{shouldRender:b,containerRef:k}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{immediate:t=!1,debounceDelay:r=300,rootMargin:a="300px",idleTimeout:s=500}=e,[i,o]=(0,n.useState)(!1),l=(0,n.useRef)(null),c=(0,n.useRef)(null),u=(0,n.useRef)(null),d=(0,n.useMemo)(()=>e=>{let t=Date.now();return window.setTimeout(()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))})},1)},[]),h=(0,n.useMemo)(()=>"undefined"!=typeof window&&window.requestIdleCallback?(e,t)=>window.requestIdleCallback(e,t):d,[d]),p=(0,n.useMemo)(()=>"undefined"!=typeof window&&window.cancelIdleCallback?e=>window.cancelIdleCallback(e):e=>{clearTimeout(e)},[]);return(0,n.useEffect)(()=>{if(t)return void o(!0);let e=l.current;if(!e)return;c.current&&(clearTimeout(c.current),c.current=null),u.current&&(p(u.current),u.current=null);let n=()=>{c.current&&(clearTimeout(c.current),c.current=null),u.current&&(p(u.current),u.current=null)},i=(e,t)=>{e.isIntersecting?(n(),c.current=window.setTimeout(()=>{var e,r;let n=t.takeRecords();(0===n.length||null!=(r=null==(e=n.at(-1))?void 0:e.isIntersecting)&&r)&&(u.current=h(e=>{e.timeRemaining()>0||e.didTimeout?(o(!0),t.disconnect()):u.current=h(()=>{o(!0),t.disconnect()},{timeout:s/2})},{timeout:s}))},r)):n()},d=new IntersectionObserver(e=>{for(let t of e)i(t,d)},{rootMargin:a,threshold:0});return d.observe(e),()=>{c.current&&clearTimeout(c.current),u.current&&p(u.current),d.disconnect()}},[t,r,a,s,p,h]),{shouldRender:i,containerRef:l}}({immediate:s});return((0,n.useEffect)(()=>{if(b){if(!A)return void c("Mermaid plugin not available. Please add the mermaid plugin to enable diagram rendering.");(async()=>{try{c(null),d(!0);let e=A.getMermaid(a),r=t.split("").reduce((e,t)=>(e<<5)-e+t.charCodeAt(0)|0,0),n="mermaid-".concat(Math.abs(r),"-").concat(Date.now(),"-").concat(Math.random().toString(36).substring(2,9)),{svg:s}=await e.render(n,t);p(s),f(s)}catch(e){m||h||c(e instanceof Error?e.message:"Failed to render Mermaid chart")}finally{d(!1)}})()}},[t,a,E,b,A]),b||h||m)?!u||h||m?!l||h||m?(0,rW.jsx)("div",{className:o("size-full",r),"data-streamdown":"mermaid",ref:k,children:(0,rW.jsx)(iZ,{className:o(s?"size-full overflow-hidden":"overflow-hidden",r),fullscreen:s,maxZoom:3,minZoom:.5,showControls:i,zoomStep:.1,children:(0,rW.jsx)("div",{"aria-label":"Mermaid chart",className:o("flex justify-center",s?"size-full items-center":null),dangerouslySetInnerHTML:{__html:h||m},role:"img"})})}):_?(0,rW.jsx)("div",{ref:k,children:(0,rW.jsx)(_,{chart:t,error:l,retry:()=>T(e=>e+1)})}):(0,rW.jsxs)("div",{className:o("rounded-md bg-red-50 p-4",r),ref:k,children:[(0,rW.jsxs)("p",{className:o("font-mono text-red-700 text-sm"),children:["Mermaid Error: ",l]}),(0,rW.jsxs)("details",{className:o("mt-2"),children:[(0,rW.jsx)("summary",{className:o("cursor-pointer text-red-600 text-xs"),children:"Show Code"}),(0,rW.jsx)("pre",{className:o("mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs"),children:t})]})]}):(0,rW.jsx)("div",{className:o("my-4 flex justify-center p-4",r),ref:k,children:(0,rW.jsxs)("div",{className:o("flex items-center space-x-2 text-muted-foreground"),children:[(0,rW.jsx)("div",{className:o("h-4 w-4 animate-spin rounded-full border-current border-b-2")}),(0,rW.jsx)("span",{className:o("text-sm"),children:"Loading diagram..."})]})}):(0,rW.jsx)("div",{className:o("my-4 min-h-[200px]",r),ref:k})}},87297:function(e,t,r){var n=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(r(83426)),a=r(94709);function s(e,t){var r={};return e&&"string"==typeof e&&(0,n.default)(e,function(e,n){e&&n&&(r[(0,a.camelCase)(e,t)]=n)}),r}s.default=s,e.exports=s},94709:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var r=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,a=/^[^-]+$/,s=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,o=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){var c;return(void 0===t&&(t={}),!(c=e)||a.test(c)||r.test(c))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(i,l):e.replace(s,l)).replace(n,o))}}}]);
|
|
217
|
+
Please report this to https://github.com/markedjs/marked.`,e){let e="<p>An error occurred:</p><pre>"+ag(r.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(r);throw r}}};function aR(e,t){return ax.parse(e,t)}aR.options=aR.setOptions=function(e){return ax.setOptions(e),aR.defaults=ax.defaults,nD=aR.defaults,aR},aR.getDefaults=ny,aR.defaults=nD,aR.use=function(...e){return ax.use(...e),aR.defaults=ax.defaults,nD=aR.defaults,aR},aR.walkTokens=function(e,t){return ax.walkTokens(e,t)},aR.parseInline=ax.parseInline,aR.Parser=ay,aR.parser=ay.parse,aR.Renderer=aI,aR.TextRenderer=aS,aR.Lexer=aN,aR.lexer=aN.lex,aR.Tokenizer=aC,aR.Hooks=aD,aR.parse=aR,aR.options,aR.setOptions,aR.use,aR.walkTokens,aR.parseInline,ay.parse,aN.lex;var aL=/\s/,aO=/^\s+$/,aw=new Set(["code","pre","svg","math","annotation"]),aM=0;function aP(e){var t,r,n,a,i;let o={animation:null!=(t=null==e?void 0:e.animation)?t:"fadeIn",duration:null!=(r=null==e?void 0:e.duration)?r:150,easing:null!=(n=null==e?void 0:e.easing)?n:"ease",sep:null!=(a=null==e?void 0:e.sep)?a:"word",stagger:null!=(i=null==e?void 0:e.stagger)?i:40},l={prevContentLength:0,lastRenderCharCount:0},c=aM++,u=()=>e=>{let t={count:0,newIndex:0};(0,s.VG)(e,"text",(e,r)=>((e,t,r,n,a)=>{let i=t.at(-1);if(!(i&&"children"in i))return;if(t.some(e=>{let t;return"object"==typeof(t=e)&&null!==t&&"type"in t&&"element"===t.type&&aw.has(e.tagName)}))return s._Z;let o=i.children.indexOf(e);if(-1===o)return;let l=e.value;if(!l.trim()){a.count+=l.length;return}let c="char"===r.sep?(e=>{let t=[],r="";for(let n of e)aL.test(n)?r+=n:(r&&(t.push(r),r=""),t.push(n));return r&&t.push(r),t})(l):(e=>{let t=[],r="",n=!1;for(let a of e){let e=aL.test(a);e!==n&&r&&(t.push(r),r=""),r+=a,n=e}return r&&t.push(r),t})(l),u=n.prevContentLength,d=c.map(e=>{var t,n,s,i,o,l;let c,d=a.count;if(a.count+=e.length,aO.test(e))return{type:"text",value:e};let h=u>0&&d<u,p=h?0:a.newIndex++*r.stagger;return t=e,n=r.animation,s=r.duration,i=r.easing,o=h,l=p,c="--sd-animation:sd-".concat(n,";--sd-duration:").concat(o?0:s,"ms;--sd-easing:").concat(i),l&&(c+=";--sd-delay:".concat(l,"ms")),{type:"element",tagName:"span",properties:{"data-sd-animate":!0,style:c},children:[{type:"text",value:t}]}});return i.children.splice(o,1,...d),o+d.length})(e,r,o,l,t)),l.lastRenderCharCount=t.count,l.prevContentLength=0};return Object.defineProperty(u,"name",{value:"rehypeAnimate$".concat(c)}),{name:"animate",type:"animate",rehypePlugin:u,setPrevContentLength(e){l.prevContentLength=e},getLastRenderCharCount(){let e=l.lastRenderCharCount;return l.lastRenderCharCount=0,e}}}aP();var av=(0,n.createContext)(!1),aB=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,rV.QP)((0,rq.$)(t))},aF=(e,t,r)=>{let n="string"==typeof t&&r.startsWith("text/csv")?"\uFEFF":"",a="string"==typeof t?new Blob([n+t],{type:r}):t,s=URL.createObjectURL(a),i=document.createElement("a");i.href=s,i.download=e,document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(s)},aH=(0,n.createContext)(aB),aU=()=>(0,n.useContext)(aH),aG=aB("block","before:content-[counter(line)]","before:inline-block","before:[counter-increment:line]","before:w-6","before:mr-4","before:text-[13px]","before:text-right","before:text-muted-foreground/50","before:font-mono","before:select-none"),aj=(0,n.memo)(e=>{let{children:t,result:r,language:a,className:s,startLine:i,lineNumbers:o=!0,...l}=e,c=aU(),u=(0,n.useMemo)(()=>c(aG),[c]),d=(0,n.useMemo)(()=>{let e={};return r.bg&&(e["--sdm-bg"]=r.bg),r.fg&&(e["--sdm-fg"]=r.fg),r.rootStyle&&Object.assign(e,(e=>{let t={};for(let r of e.split(";")){let e=r.indexOf(":");if(e>0){let n=r.slice(0,e).trim(),a=r.slice(e+1).trim();n&&a&&(t[n]=a)}}return t})(r.rootStyle)),e},[r.bg,r.fg,r.rootStyle]);return(0,rW.jsx)("div",{className:c(s,"overflow-x-auto rounded-md border border-border bg-background p-4 text-sm"),"data-language":a,"data-streamdown":"code-block-body",...l,children:(0,rW.jsx)("pre",{className:c(s,"bg-[var(--sdm-bg,inherit]","dark:bg-[var(--shiki-dark-bg,var(--sdm-bg,inherit)]"),style:d,children:(0,rW.jsx)("code",{className:o?c("[counter-increment:line_0] [counter-reset:line]"):void 0,style:o&&i&&i>1?{counterReset:"line ".concat(i-1)}:void 0,children:r.tokens.map((e,t)=>(0,rW.jsx)("span",{className:o?u:void 0,children:0===e.length||1===e.length&&""===e[0].content?"\n":e.map((e,t)=>{let r={},n=!!e.bgColor;if(e.color&&(r["--sdm-c"]=e.color),e.bgColor&&(r["--sdm-tbg"]=e.bgColor),e.htmlStyle)for(let[t,a]of Object.entries(e.htmlStyle))"color"===t?r["--sdm-c"]=a:"background-color"===t?(r["--sdm-tbg"]=a,n=!0):r[t]=a;return(0,rW.jsx)("span",{className:c("text-[var(--sdm-c,inherit)]","dark:text-[var(--shiki-dark,var(--sdm-c,inherit))]",n&&"bg-[var(--sdm-tbg)]",n&&"dark:bg-[var(--shiki-dark-bg,var(--sdm-tbg))]"),style:r,...e.htmlAttrs,children:e.content},t)})},t))})})})},(e,t)=>e.result===t.result&&e.language===t.language&&e.className===t.className&&e.startLine===t.startLine&&e.lineNumbers===t.lineNumbers),a$=e=>{let{className:t,language:r,style:n,isIncomplete:a,...s}=e,i=aU();return(0,rW.jsx)("div",{className:i("my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2",t),"data-incomplete":a||void 0,"data-language":r,"data-streamdown":"code-block",style:{contentVisibility:"auto",containIntrinsicSize:"auto 200px",...n},...s})},aY=(0,n.createContext)({code:""}),az=()=>(0,n.useContext)(aY),aq=e=>{let{language:t}=e,r=aU();return(0,rW.jsx)("div",{className:r("flex h-8 items-center text-muted-foreground text-xs"),"data-language":t,"data-streamdown":"code-block-header",children:(0,rW.jsx)("span",{className:r("ml-1 font-mono lowercase"),children:t})})},aV=(0,n.lazy)(()=>r.e(16564).then(r.bind(r,16564)).then(e=>({default:e.HighlightedCodeBlockBody}))),aW=e=>{let{code:t,language:r,className:a,children:s,isIncomplete:i=!1,startLine:o,lineNumbers:l,...c}=e,u=aU(),d=(0,n.useMemo)(()=>(e=>{let t=e.length;for(;t>0&&"\n"===e[t-1];)t--;return e.slice(0,t)})(t),[t]),h=(0,n.useMemo)(()=>({bg:"transparent",fg:"inherit",tokens:d.split("\n").map(e=>[{content:e,color:"inherit",bgColor:"transparent",htmlStyle:{},offset:0}])}),[d]);return(0,rW.jsx)(aY.Provider,{value:{code:t},children:(0,rW.jsxs)(a$,{isIncomplete:i,language:r,children:[(0,rW.jsx)(aq,{language:r}),s?(0,rW.jsx)("div",{className:u("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end"),children:(0,rW.jsx)("div",{className:u("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"),"data-streamdown":"code-block-actions",children:s})}):null,(0,rW.jsx)(n.Suspense,{fallback:(0,rW.jsx)(aj,{className:a,language:r,lineNumbers:l,result:h,startLine:o,...c}),children:(0,rW.jsx)(aV,{className:a,code:d,language:r,lineNumbers:l,raw:h,startLine:o,...c})})]})})},aQ={CheckIcon:e=>(0,rW.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,rW.jsx)("path",{clipRule:"evenodd",d:"M15.5607 3.99999L15.0303 4.53032L6.23744 13.3232C5.55403 14.0066 4.44599 14.0066 3.76257 13.3232L4.2929 12.7929L3.76257 13.3232L0.969676 10.5303L0.439346 9.99999L1.50001 8.93933L2.03034 9.46966L4.82323 12.2626C4.92086 12.3602 5.07915 12.3602 5.17678 12.2626L13.9697 3.46966L14.5 2.93933L15.5607 3.99999Z",fill:"currentColor",fillRule:"evenodd"})}),CopyIcon:e=>(0,rW.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,rW.jsx)("path",{clipRule:"evenodd",d:"M2.75 0.5C1.7835 0.5 1 1.2835 1 2.25V9.75C1 10.7165 1.7835 11.5 2.75 11.5H3.75H4.5V10H3.75H2.75C2.61193 10 2.5 9.88807 2.5 9.75V2.25C2.5 2.11193 2.61193 2 2.75 2H8.25C8.38807 2 8.5 2.11193 8.5 2.25V3H10V2.25C10 1.2835 9.2165 0.5 8.25 0.5H2.75ZM7.75 4.5C6.7835 4.5 6 5.2835 6 6.25V13.75C6 14.7165 6.7835 15.5 7.75 15.5H13.25C14.2165 15.5 15 14.7165 15 13.75V6.25C15 5.2835 14.2165 4.5 13.25 4.5H7.75ZM7.5 6.25C7.5 6.11193 7.61193 6 7.75 6H13.25C13.3881 6 13.5 6.11193 13.5 6.25V13.75C13.5 13.8881 13.3881 14 13.25 14H7.75C7.61193 14 7.5 13.8881 7.5 13.75V6.25Z",fill:"currentColor",fillRule:"evenodd"})}),DownloadIcon:e=>(0,rW.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,rW.jsx)("path",{clipRule:"evenodd",d:"M8.75 1V1.75V8.68934L10.7197 6.71967L11.25 6.18934L12.3107 7.25L11.7803 7.78033L8.70711 10.8536C8.31658 11.2441 7.68342 11.2441 7.29289 10.8536L4.21967 7.78033L3.68934 7.25L4.75 6.18934L5.28033 6.71967L7.25 8.68934V1.75V1H8.75ZM13.5 9.25V13.5H2.5V9.25V8.5H1V9.25V14C1 14.5523 1.44771 15 2 15H14C14.5523 15 15 14.5523 15 14V9.25V8.5H13.5V9.25Z",fill:"currentColor",fillRule:"evenodd"})}),ExternalLinkIcon:e=>(0,rW.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,rW.jsx)("path",{clipRule:"evenodd",d:"M13.5 10.25V13.25C13.5 13.3881 13.3881 13.5 13.25 13.5H2.75C2.61193 13.5 2.5 13.3881 2.5 13.25L2.5 2.75C2.5 2.61193 2.61193 2.5 2.75 2.5H5.75H6.5V1H5.75H2.75C1.7835 1 1 1.7835 1 2.75V13.25C1 14.2165 1.7835 15 2.75 15H13.25C14.2165 15 15 14.2165 15 13.25V10.25V9.5H13.5V10.25ZM9 1H9.75H14.2495C14.6637 1 14.9995 1.33579 14.9995 1.75V6.25V7H13.4995V6.25V3.56066L8.53033 8.52978L8 9.06011L6.93934 7.99945L7.46967 7.46912L12.4388 2.5H9.75H9V1Z",fill:"currentColor",fillRule:"evenodd"})}),Loader2Icon:e=>(0,rW.jsxs)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:[(0,rW.jsx)("path",{d:"M8 0V4",stroke:"currentColor",strokeWidth:"1.5"}),(0,rW.jsx)("path",{d:"M8 16V12",opacity:"0.5",stroke:"currentColor",strokeWidth:"1.5"}),(0,rW.jsx)("path",{d:"M3.29773 1.52783L5.64887 4.7639",opacity:"0.9",stroke:"currentColor",strokeWidth:"1.5"}),(0,rW.jsx)("path",{d:"M12.7023 1.52783L10.3511 4.7639",opacity:"0.1",stroke:"currentColor",strokeWidth:"1.5"}),(0,rW.jsx)("path",{d:"M12.7023 14.472L10.3511 11.236",opacity:"0.4",stroke:"currentColor",strokeWidth:"1.5"}),(0,rW.jsx)("path",{d:"M3.29773 14.472L5.64887 11.236",opacity:"0.6",stroke:"currentColor",strokeWidth:"1.5"}),(0,rW.jsx)("path",{d:"M15.6085 5.52783L11.8043 6.7639",opacity:"0.2",stroke:"currentColor",strokeWidth:"1.5"}),(0,rW.jsx)("path",{d:"M0.391602 10.472L4.19583 9.23598",opacity:"0.7",stroke:"currentColor",strokeWidth:"1.5"}),(0,rW.jsx)("path",{d:"M15.6085 10.4722L11.8043 9.2361",opacity:"0.3",stroke:"currentColor",strokeWidth:"1.5"}),(0,rW.jsx)("path",{d:"M0.391602 5.52783L4.19583 6.7639",opacity:"0.8",stroke:"currentColor",strokeWidth:"1.5"})]}),Maximize2Icon:e=>(0,rW.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,rW.jsx)("path",{clipRule:"evenodd",d:"M1 5.25V6H2.5V5.25V2.5H5.25H6V1H5.25H2C1.44772 1 1 1.44772 1 2V5.25ZM5.25 14.9994H6V13.4994H5.25H2.5V10.7494V9.99939H1V10.7494V13.9994C1 14.5517 1.44772 14.9994 2 14.9994H5.25ZM15 10V10.75V14C15 14.5523 14.5523 15 14 15H10.75H10V13.5H10.75H13.5V10.75V10H15ZM10.75 1H10V2.5H10.75H13.5V5.25V6H15V5.25V2C15 1.44772 14.5523 1 14 1H10.75Z",fill:"currentColor",fillRule:"evenodd"})}),RotateCcwIcon:e=>(0,rW.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,rW.jsx)("path",{clipRule:"evenodd",d:"M13.5 8C13.5 4.96643 11.0257 2.5 7.96452 2.5C5.42843 2.5 3.29365 4.19393 2.63724 6.5H5.25H6V8H5.25H0.75C0.335787 8 0 7.66421 0 7.25V2.75V2H1.5V2.75V5.23347C2.57851 2.74164 5.06835 1 7.96452 1C11.8461 1 15 4.13001 15 8C15 11.87 11.8461 15 7.96452 15C5.62368 15 3.54872 13.8617 2.27046 12.1122L1.828 11.5066L3.03915 10.6217L3.48161 11.2273C4.48831 12.6051 6.12055 13.5 7.96452 13.5C11.0257 13.5 13.5 11.0336 13.5 8Z",fill:"currentColor",fillRule:"evenodd"})}),XIcon:e=>(0,rW.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,rW.jsx)("path",{clipRule:"evenodd",d:"M12.4697 13.5303L13 14.0607L14.0607 13L13.5303 12.4697L9.06065 7.99999L13.5303 3.53032L14.0607 2.99999L13 1.93933L12.4697 2.46966L7.99999 6.93933L3.53032 2.46966L2.99999 1.93933L1.93933 2.99999L2.46966 3.53032L6.93933 7.99999L2.46966 12.4697L1.93933 13L2.99999 14.0607L3.53032 13.5303L7.99999 9.06065L12.4697 13.5303Z",fill:"currentColor",fillRule:"evenodd"})}),ZoomInIcon:e=>(0,rW.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,rW.jsx)("path",{clipRule:"evenodd",d:"M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H5.875V4.75V4.125H7.125V4.75V5.875H8.25H8.875V7.125H8.25H7.125V8.25V8.875H5.875V8.25V7.125H4.75H4.125V5.875Z",fill:"currentColor",fillRule:"evenodd"})}),ZoomOutIcon:e=>(0,rW.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,rW.jsx)("path",{clipRule:"evenodd",d:"M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H8.25H8.875V7.125H8.25H4.75H4.125V5.875Z",fill:"currentColor",fillRule:"evenodd"})})},aX=(0,n.createContext)(aQ),aK=e=>{let{icons:t,children:r}=e,a=(0,n.useRef)(t),s=(0,n.useRef)(t?{...aQ,...t}:aQ);((e,t)=>{if(e===t)return!0;if(!(e&&t))return e===t;let r=Object.keys(e),n=Object.keys(t);return r.length===n.length&&r.every(r=>e[r]===t[r])})(a.current,t)||(a.current=t,s.current=t?{...aQ,...t}:aQ);let i=s.current;return(0,rW.jsx)(aX.Provider,{value:i,children:r})},aZ=()=>(0,n.useContext)(aX),aJ={copyCode:"Copy Code",downloadFile:"Download file",downloadDiagram:"Download diagram",downloadDiagramAsSvg:"Download diagram as SVG",downloadDiagramAsPng:"Download diagram as PNG",downloadDiagramAsMmd:"Download diagram as MMD",viewFullscreen:"View fullscreen",exitFullscreen:"Exit fullscreen",mermaidFormatSvg:"SVG",mermaidFormatPng:"PNG",mermaidFormatMmd:"MMD",copyTable:"Copy table",copyTableAsMarkdown:"Copy table as Markdown",copyTableAsCsv:"Copy table as CSV",copyTableAsTsv:"Copy table as TSV",downloadTable:"Download table",downloadTableAsCsv:"Download table as CSV",downloadTableAsMarkdown:"Download table as Markdown",tableFormatMarkdown:"Markdown",tableFormatCsv:"CSV",tableFormatTsv:"TSV",imageNotAvailable:"Image not available",downloadImage:"Download image",openExternalLink:"Open external link?",externalLinkWarning:"You're about to visit an external website.",close:"Close",copyLink:"Copy link",copied:"Copied",openLink:"Open link"},a0=(0,n.createContext)(aJ),a1=()=>(0,n.useContext)(a0),a5=e=>{let{onCopy:t,onError:r,timeout:a=2e3,children:s,className:i,code:o,...l}=e,c=aU(),[u,d]=(0,n.useState)(!1),h=(0,n.useRef)(0),{code:p}=az(),{isAnimating:m}=(0,n.useContext)(iQ),f=a1(),E=null!=o?o:p,T=async()=>{var e;if("undefined"==typeof window||!(null!=(e=null==navigator?void 0:navigator.clipboard)&&e.writeText)){null==r||r(Error("Clipboard API not available"));return}try{u||(await navigator.clipboard.writeText(E),d(!0),null==t||t(),h.current=window.setTimeout(()=>d(!1),a))}catch(e){null==r||r(e)}};(0,n.useEffect)(()=>()=>{window.clearTimeout(h.current)},[]);let g=aZ(),A=u?g.CheckIcon:g.CopyIcon;return(0,rW.jsx)("button",{className:c("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",i),"data-streamdown":"code-block-copy-button",disabled:m,onClick:T,title:f.copyCode,type:"button",...l,children:null!=s?s:(0,rW.jsx)(A,{size:14})})},a2={"1c":"1c","1c-query":"1cq",abap:"abap","actionscript-3":"as",ada:"ada",adoc:"adoc","angular-html":"html","angular-ts":"ts",apache:"conf",apex:"cls",apl:"apl",applescript:"applescript",ara:"ara",asciidoc:"adoc",asm:"asm",astro:"astro",awk:"awk",ballerina:"bal",bash:"sh",bat:"bat",batch:"bat",be:"be",beancount:"beancount",berry:"berry",bibtex:"bib",bicep:"bicep",blade:"blade.php",bsl:"bsl",c:"c","c#":"cs","c++":"cpp",cadence:"cdc",cairo:"cairo",cdc:"cdc",clarity:"clar",clj:"clj",clojure:"clj","closure-templates":"soy",cmake:"cmake",cmd:"cmd",cobol:"cob",codeowners:"CODEOWNERS",codeql:"ql",coffee:"coffee",coffeescript:"coffee","common-lisp":"lisp",console:"sh",coq:"v",cpp:"cpp",cql:"cql",crystal:"cr",cs:"cs",csharp:"cs",css:"css",csv:"csv",cue:"cue",cypher:"cql",d:"d",dart:"dart",dax:"dax",desktop:"desktop",diff:"diff",docker:"dockerfile",dockerfile:"dockerfile",dotenv:"env","dream-maker":"dm",edge:"edge",elisp:"el",elixir:"ex",elm:"elm","emacs-lisp":"el",erb:"erb",erl:"erl",erlang:"erl",f:"f","f#":"fs",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"f90",f95:"f95",fennel:"fnl",fish:"fish",fluent:"ftl",for:"for","fortran-fixed-form":"f","fortran-free-form":"f90",fs:"fs",fsharp:"fs",fsl:"fsl",ftl:"ftl",gdresource:"tres",gdscript:"gd",gdshader:"gdshader",genie:"gs",gherkin:"feature","git-commit":"gitcommit","git-rebase":"gitrebase",gjs:"js",gleam:"gleam","glimmer-js":"js","glimmer-ts":"ts",glsl:"glsl",gnuplot:"plt",go:"go",gql:"gql",graphql:"graphql",groovy:"groovy",gts:"gts",hack:"hack",haml:"haml",handlebars:"hbs",haskell:"hs",haxe:"hx",hbs:"hbs",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",hs:"hs",html:"html","html-derivative":"html",http:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",jade:"jade",java:"java",javascript:"js",jinja:"jinja",jison:"jison",jl:"jl",js:"js",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",julia:"jl",kotlin:"kt",kql:"kql",kt:"kt",kts:"kts",kusto:"kql",latex:"tex",lean:"lean",lean4:"lean",less:"less",liquid:"liquid",lisp:"lisp",lit:"lit",llvm:"ll",log:"log",logo:"logo",lua:"lua",luau:"luau",make:"mak",makefile:"mak",markdown:"md",marko:"marko",matlab:"m",md:"md",mdc:"mdc",mdx:"mdx",mediawiki:"wiki",mermaid:"mmd",mips:"s",mipsasm:"s",mmd:"mmd",mojo:"mojo",move:"move",nar:"nar",narrat:"narrat",nextflow:"nf",nf:"nf",nginx:"conf",nim:"nim",nix:"nix",nu:"nu",nushell:"nu",objc:"m","objective-c":"m","objective-cpp":"mm",ocaml:"ml",pascal:"pas",perl:"pl",perl6:"p6",php:"php",plsql:"pls",po:"po",polar:"polar",postcss:"pcss",pot:"pot",potx:"potx",powerquery:"pq",powershell:"ps1",prisma:"prisma",prolog:"pl",properties:"properties",proto:"proto",protobuf:"proto",ps:"ps",ps1:"ps1",pug:"pug",puppet:"pp",purescript:"purs",py:"py",python:"py",ql:"ql",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",racket:"rkt",raku:"raku",razor:"cshtml",rb:"rb",reg:"reg",regex:"regex",regexp:"regexp",rel:"rel",riscv:"s",rs:"rs",rst:"rst",ruby:"rb",rust:"rs",sas:"sas",sass:"sass",scala:"scala",scheme:"scm",scss:"scss",sdbl:"sdbl",sh:"sh",shader:"shader",shaderlab:"shader",shell:"sh",shellscript:"sh",shellsession:"sh",smalltalk:"st",solidity:"sol",soy:"soy",sparql:"rq",spl:"spl",splunk:"spl",sql:"sql","ssh-config":"config",stata:"do",styl:"styl",stylus:"styl",svelte:"svelte",swift:"swift","system-verilog":"sv",systemd:"service",talon:"talon",talonscript:"talon",tasl:"tasl",tcl:"tcl",templ:"templ",terraform:"tf",tex:"tex",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"ts","ts-tags":"ts",tsp:"tsp",tsv:"tsv",tsx:"tsx",turtle:"ttl",twig:"twig",typ:"typ",typescript:"ts",typespec:"tsp",typst:"typ",v:"v",vala:"vala",vb:"vb",verilog:"v",vhdl:"vhdl",vim:"vim",viml:"vim",vimscript:"vim",vue:"vue","vue-html":"html","vue-vine":"vine",vy:"vy",vyper:"vy",wasm:"wasm",wenyan:"wy",wgsl:"wgsl",wiki:"wiki",wikitext:"wiki",wit:"wit",wl:"wl",wolfram:"wl",xml:"xml",xsl:"xsl",yaml:"yaml",yml:"yml",zenscript:"zs",zig:"zig",zsh:"zsh",文言:"wy"},a3=e=>{let{onDownload:t,onError:r,language:a,children:s,className:i,code:o,...l}=e,c=aU(),{code:u}=az(),{isAnimating:d}=(0,n.useContext)(iQ),h=a1(),p=aZ(),m=null!=o?o:u,f="file.".concat(a&&a in a2?a2[a]:"txt");return(0,rW.jsx)("button",{className:c("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",i),"data-streamdown":"code-block-download-button",disabled:d,onClick:()=>{try{aF(f,m,"text/plain"),null==t||t()}catch(e){null==r||r(e)}},title:h.downloadFile,type:"button",...l,children:null!=s?s:(0,rW.jsx)(p.DownloadIcon,{size:14})})},a6=()=>{let{Loader2Icon:e}=aZ(),t=aU();return(0,rW.jsxs)("div",{className:t("w-full divide-y divide-border overflow-hidden rounded-xl border border-border"),children:[(0,rW.jsx)("div",{className:t("h-[46px] w-full bg-muted/80")}),(0,rW.jsx)("div",{className:t("flex w-full items-center justify-center p-4"),children:(0,rW.jsx)(e,{className:t("size-4 animate-spin")})})]})},a8=/\.[^/.]+$/,a4=0,a9=()=>{1===(a4+=1)&&(document.body.style.overflow="hidden")},a7=()=>{0===(a4=Math.max(0,a4-1))&&(document.body.style.overflow="")},se=e=>{let{url:t,isOpen:r,onClose:a,onConfirm:s}=e,{CheckIcon:i,CopyIcon:o,ExternalLinkIcon:l,XIcon:c}=aZ(),u=aU(),[d,h]=(0,n.useState)(!1),p=a1(),m=(0,n.useCallback)(async()=>{try{await navigator.clipboard.writeText(t),h(!0),setTimeout(()=>h(!1),2e3)}catch(e){}},[t]),f=(0,n.useCallback)(()=>{s(),a()},[s,a]);return(0,n.useEffect)(()=>{if(r){a9();let e=e=>{"Escape"===e.key&&a()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e),a7()}}},[r,a]),r?(0,rW.jsx)("div",{className:u("fixed inset-0 z-50 flex items-center justify-center bg-background/50 backdrop-blur-sm"),"data-streamdown":"link-safety-modal",onClick:a,onKeyDown:e=>{"Escape"===e.key&&a()},role:"button",tabIndex:0,children:(0,rW.jsxs)("div",{className:u("relative mx-4 flex w-full max-w-md flex-col gap-4 rounded-xl border bg-background p-6 shadow-lg"),onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),role:"presentation",children:[(0,rW.jsx)("button",{className:u("absolute top-4 right-4 rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:a,title:p.close,type:"button",children:(0,rW.jsx)(c,{size:16})}),(0,rW.jsxs)("div",{className:u("flex flex-col gap-2"),children:[(0,rW.jsxs)("div",{className:u("flex items-center gap-2 font-semibold text-lg"),children:[(0,rW.jsx)(l,{size:20}),(0,rW.jsx)("span",{children:p.openExternalLink})]}),(0,rW.jsx)("p",{className:u("text-muted-foreground text-sm"),children:p.externalLinkWarning})]}),(0,rW.jsx)("div",{className:u("break-all rounded-md bg-muted p-3 font-mono text-sm",t.length>100&&"max-h-32 overflow-y-auto"),children:t}),(0,rW.jsxs)("div",{className:u("flex gap-2"),children:[(0,rW.jsx)("button",{className:u("flex flex-1 items-center justify-center gap-2 rounded-md border bg-background px-4 py-2 font-medium text-sm transition-all hover:bg-muted"),onClick:m,type:"button",children:d?(0,rW.jsxs)(rW.Fragment,{children:[(0,rW.jsx)(i,{size:14}),(0,rW.jsx)("span",{children:p.copied})]}):(0,rW.jsxs)(rW.Fragment,{children:[(0,rW.jsx)(o,{size:14}),(0,rW.jsx)("span",{children:p.copyLink})]})}),(0,rW.jsxs)("button",{className:u("flex flex-1 items-center justify-center gap-2 rounded-md bg-primary px-4 py-2 font-medium text-primary-foreground text-sm transition-all hover:bg-primary/90"),onClick:f,type:"button",children:[(0,rW.jsx)(l,{size:14}),(0,rW.jsx)("span",{children:p.openLink})]})]})]})}):null},st=(0,n.createContext)(null),sr=()=>(0,n.useContext)(st),sn=()=>{var e;let t=sr();return null!=(e=null==t?void 0:t.code)?e:null},sa=()=>{var e;let t=sr();return null!=(e=null==t?void 0:t.mermaid)?e:null},ss=e=>{let{chart:t,children:r,className:a,onDownload:s,config:i,onError:o}=e,l=aU(),[c,u]=(0,n.useState)(!1),d=(0,n.useRef)(null),{isAnimating:h}=(0,n.useContext)(iQ),p=aZ(),m=sa(),f=a1(),E=async e=>{try{if("mmd"===e){aF("diagram.mmd",t,"text/plain"),u(!1),null==s||s(e);return}if(!m){null==o||o(Error("Mermaid plugin not available"));return}let n=m.getMermaid(i),a=t.split("").reduce((e,t)=>(e<<5)-e+t.charCodeAt(0)|0,0),l="mermaid-".concat(Math.abs(a),"-").concat(Date.now(),"-").concat(Math.random().toString(36).substring(2,9)),{svg:c}=await n.render(l,t);if(!c){null==o||o(Error("SVG not found. Please wait for the diagram to render."));return}if("svg"===e){aF("diagram.svg",c,"image/svg+xml"),u(!1),null==s||s(e);return}if("png"===e){var r;let t=await (r=c,new Promise((e,t)=>{let n="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(r))),a=new Image;a.crossOrigin="anonymous",a.onload=()=>{let r=document.createElement("canvas"),n=5*a.width,s=5*a.height;r.width=n,r.height=s;let i=r.getContext("2d");if(!i)return void t(Error("Failed to create 2D canvas context for PNG export"));i.drawImage(a,0,0,n,s),r.toBlob(r=>{if(!r)return void t(Error("Failed to create PNG blob"));e(r)},"image/png")},a.onerror=()=>t(Error("Failed to load SVG image")),a.src=n}));aF("diagram.png",t,"image/png"),null==s||s(e),u(!1);return}}catch(e){null==o||o(e)}};return(0,n.useEffect)(()=>{let e=e=>{let t=e.composedPath();d.current&&!t.includes(d.current)&&u(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]),(0,rW.jsxs)("div",{className:l("relative"),ref:d,children:[(0,rW.jsx)("button",{className:l("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",a),disabled:h,onClick:()=>u(!c),title:f.downloadDiagram,type:"button",children:null!=r?r:(0,rW.jsx)(p.DownloadIcon,{size:14})}),c?(0,rW.jsxs)("div",{className:l("absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[(0,rW.jsx)("button",{className:l("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>E("svg"),title:f.downloadDiagramAsSvg,type:"button",children:f.mermaidFormatSvg}),(0,rW.jsx)("button",{className:l("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>E("png"),title:f.downloadDiagramAsPng,type:"button",children:f.mermaidFormatPng}),(0,rW.jsx)("button",{className:l("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>E("mmd"),title:f.downloadDiagramAsMmd,type:"button",children:f.mermaidFormatMmd})]}):null]})},si=e=>{let{chart:t,config:r,onFullscreen:a,onExit:s,className:i,...o}=e,{Maximize2Icon:l,XIcon:c}=aZ(),u=aU(),[d,h]=(0,n.useState)(!1),{isAnimating:p,controls:m}=(0,n.useContext)(iQ),f=a1(),E=(()=>{if("boolean"==typeof m)return m;let e=m.mermaid;return!1!==e&&(!0===e||void 0===e||!1!==e.panZoom)})(),T=()=>{h(!d)};return(0,n.useEffect)(()=>{if(d){a9();let e=e=>{"Escape"===e.key&&h(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e),a7()}}},[d]),(0,n.useEffect)(()=>{d?null==a||a():s&&s()},[d,a,s]),(0,rW.jsxs)(rW.Fragment,{children:[(0,rW.jsx)("button",{className:u("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",i),disabled:p,onClick:T,title:f.viewFullscreen,type:"button",...o,children:(0,rW.jsx)(l,{size:14})}),d?(0,rQ.createPortal)((0,rW.jsxs)("div",{className:u("fixed inset-0 z-50 flex items-center justify-center bg-background/95 backdrop-blur-sm"),onClick:T,onKeyDown:e=>{"Escape"===e.key&&T()},role:"button",tabIndex:0,children:[(0,rW.jsx)("button",{className:u("absolute top-4 right-4 z-10 rounded-md p-2 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:T,title:f.exitFullscreen,type:"button",children:(0,rW.jsx)(c,{size:20})}),(0,rW.jsx)("div",{className:u("flex size-full items-center justify-center p-4"),onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),role:"presentation",children:(0,rW.jsx)(iJ,{chart:t,className:u("size-full [&_svg]:h-auto [&_svg]:w-auto"),config:r,fullscreen:!0,showControls:E})})]}),document.body):null]})},so=e=>{var t,r;let n=[],a=[];for(let r of e.querySelectorAll("thead th"))n.push((null==(t=r.textContent)?void 0:t.trim())||"");for(let t of e.querySelectorAll("tbody tr")){let e=[];for(let n of t.querySelectorAll("td"))e.push((null==(r=n.textContent)?void 0:r.trim())||"");a.push(e)}return{headers:n,rows:a}},sl=e=>{let{headers:t,rows:r}=e,n=e=>{let t=!1,r=!1;for(let n of e){if('"'===n){t=!0,r=!0;break}(","===n||"\n"===n)&&(t=!0)}return t?r?'"'.concat(e.replace(/"/g,'""'),'"'):'"'.concat(e,'"'):e},a=Array(t.length>0?r.length+1:r.length),s=0;for(let e of(t.length>0&&(a[s]=t.map(n).join(","),s+=1),r))a[s]=e.map(n).join(","),s+=1;return a.join("\n")},sc=e=>{let{headers:t,rows:r}=e,n=e=>{let t=!1;for(let r of e)if(" "===r||"\n"===r||"\r"===r){t=!0;break}if(!t)return e;let r=[];for(let t of e)" "===t?r.push("\\t"):"\n"===t?r.push("\\n"):"\r"===t?r.push("\\r"):r.push(t);return r.join("")},a=Array(t.length>0?r.length+1:r.length),s=0;for(let e of(t.length>0&&(a[s]=t.map(n).join(" "),s+=1),r))a[s]=e.map(n).join(" "),s+=1;return a.join("\n")},su=e=>{let t=!1;for(let r of e)if("\\"===r||"|"===r){t=!0;break}if(!t)return e;let r=[];for(let t of e)"\\"===t?r.push("\\\\"):"|"===t?r.push("\\|"):r.push(t);return r.join("")},sd=e=>{let{headers:t,rows:r}=e;if(0===t.length)return"";let n=Array(r.length+2),a=0,s=t.map(e=>su(e));n[a]="| ".concat(s.join(" | ")," |"),a+=1;let i=Array(t.length);for(let e=0;e<t.length;e+=1)i[e]="---";for(let e of(n[a]="| ".concat(i.join(" | ")," |"),a+=1,r))if(e.length<t.length){let r=Array(t.length);for(let n=0;n<t.length;n+=1)r[n]=n<e.length?su(e[n]):"";n[a]="| ".concat(r.join(" | ")," |"),a+=1}else{let t=e.map(e=>su(e));n[a]="| ".concat(t.join(" | ")," |"),a+=1}return n.join("\n")},sh=e=>{let{children:t,className:r,onCopy:a,onError:s,timeout:i=2e3}=e,o=aU(),[l,c]=(0,n.useState)(!1),[u,d]=(0,n.useState)(!1),h=(0,n.useRef)(null),p=(0,n.useRef)(0),{isAnimating:m}=(0,n.useContext)(iQ),f=a1(),E=async e=>{var t,r;if("undefined"==typeof window||!(null!=(t=null==navigator?void 0:navigator.clipboard)&&t.write)){null==s||s(Error("Clipboard API not available"));return}try{let t=null==(r=h.current)?void 0:r.closest('[data-streamdown="table-wrapper"]'),n=null==t?void 0:t.querySelector("table");if(!n){null==s||s(Error("Table not found"));return}let o=so(n),l=(({csv:sl,tsv:sc,md:sd})[e]||sd)(o),u=new ClipboardItem({"text/plain":new Blob([l],{type:"text/plain"}),"text/html":new Blob([n.outerHTML],{type:"text/html"})});await navigator.clipboard.write([u]),d(!0),c(!1),null==a||a(e),p.current=window.setTimeout(()=>d(!1),i)}catch(e){null==s||s(e)}};(0,n.useEffect)(()=>{let e=e=>{let t=e.composedPath();h.current&&!t.includes(h.current)&&c(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e),window.clearTimeout(p.current)}},[]);let T=aZ(),g=u?T.CheckIcon:T.CopyIcon;return(0,rW.jsxs)("div",{className:o("relative"),ref:h,children:[(0,rW.jsx)("button",{className:o("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",r),disabled:m,onClick:()=>c(!l),title:f.copyTable,type:"button",children:null!=t?t:(0,rW.jsx)(g,{height:14,width:14})}),l?(0,rW.jsxs)("div",{className:o("absolute top-full right-0 z-20 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[(0,rW.jsx)("button",{className:o("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>E("md"),title:f.copyTableAsMarkdown,type:"button",children:f.tableFormatMarkdown}),(0,rW.jsx)("button",{className:o("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>E("csv"),title:f.copyTableAsCsv,type:"button",children:f.tableFormatCsv}),(0,rW.jsx)("button",{className:o("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>E("tsv"),title:f.copyTableAsTsv,type:"button",children:f.tableFormatTsv})]}):null]})},sp=e=>{let{children:t,className:r,onDownload:a,onError:s}=e,i=aU(),[o,l]=(0,n.useState)(!1),c=(0,n.useRef)(null),{isAnimating:u}=(0,n.useContext)(iQ),d=a1(),h=aZ(),p=e=>{var t;try{let r=null==(t=c.current)?void 0:t.closest('[data-streamdown="table-wrapper"]'),n=null==r?void 0:r.querySelector("table");if(!n){null==s||s(Error("Table not found"));return}let i=so(n),o="csv"===e?sl(i):sd(i);aF("table.".concat("csv"===e?"csv":"md"),o,"csv"===e?"text/csv":"text/markdown"),l(!1),null==a||a(e)}catch(e){null==s||s(e)}};return(0,n.useEffect)(()=>{let e=e=>{let t=e.composedPath();c.current&&!t.includes(c.current)&&l(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]),(0,rW.jsxs)("div",{className:i("relative"),ref:c,children:[(0,rW.jsx)("button",{className:i("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",r),disabled:u,onClick:()=>l(!o),title:d.downloadTable,type:"button",children:null!=t?t:(0,rW.jsx)(h.DownloadIcon,{size:14})}),o?(0,rW.jsxs)("div",{className:i("absolute top-full right-0 z-20 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[(0,rW.jsx)("button",{className:i("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>p("csv"),title:d.downloadTableAsCsv,type:"button",children:d.tableFormatCsv}),(0,rW.jsx)("button",{className:i("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>p("markdown"),title:d.downloadTableAsMarkdown,type:"button",children:d.tableFormatMarkdown})]}):null]})},sm=e=>{let{children:t,className:r,showCopy:a=!0,showDownload:s=!0}=e,{Maximize2Icon:i,XIcon:o}=aZ(),l=aU(),[c,u]=(0,n.useState)(!1),{isAnimating:d}=(0,n.useContext)(iQ),h=a1(),p=()=>{u(!1)};return(0,n.useEffect)(()=>{if(c){a9();let e=e=>{"Escape"===e.key&&u(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e),a7()}}},[c]),(0,rW.jsxs)(rW.Fragment,{children:[(0,rW.jsx)("button",{className:l("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",r),disabled:d,onClick:()=>{u(!0)},title:h.viewFullscreen,type:"button",children:(0,rW.jsx)(i,{size:14})}),c?(0,rQ.createPortal)((0,rW.jsx)("div",{"aria-label":h.viewFullscreen,"aria-modal":"true",className:l("fixed inset-0 z-50 flex flex-col bg-background"),"data-streamdown":"table-fullscreen",onClick:p,onKeyDown:e=>{"Escape"===e.key&&p()},role:"dialog",children:(0,rW.jsxs)("div",{className:l("flex h-full flex-col"),onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),role:"presentation",children:[(0,rW.jsxs)("div",{className:l("flex items-center justify-end gap-1 p-4"),children:[a?(0,rW.jsx)(sh,{}):null,s?(0,rW.jsx)(sp,{}):null,(0,rW.jsx)("button",{className:l("rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:p,title:h.exitFullscreen,type:"button",children:(0,rW.jsx)(o,{size:20})})]}),(0,rW.jsx)("div",{className:l("flex-1 overflow-auto p-4 pt-0 [&_thead]:sticky [&_thead]:top-0 [&_thead]:z-10"),children:(0,rW.jsx)("table",{className:l("w-full border-collapse border border-border"),"data-streamdown":"table",children:t})})]})}),document.body):null]})},sf=e=>{let{children:t,className:r,showControls:n,showCopy:a=!0,showDownload:s=!0,showFullscreen:i=!0,...o}=e,l=aU(),c=n&&a,u=n&&s,d=n&&i,h=c||u||d;return(0,rW.jsxs)("div",{className:l("my-4 flex flex-col gap-2 rounded-lg border border-border bg-sidebar p-2"),"data-streamdown":"table-wrapper",children:[h?(0,rW.jsxs)("div",{className:l("flex items-center justify-end gap-1"),children:[c?(0,rW.jsx)(sh,{}):null,u?(0,rW.jsx)(sp,{}):null,d?(0,rW.jsx)(sm,{showCopy:c,showDownload:u,children:t}):null]}):null,(0,rW.jsx)("div",{className:l("border-collapse overflow-x-auto overflow-y-auto rounded-md border border-border bg-background"),children:(0,rW.jsx)("table",{className:l("w-full divide-y divide-border",r),"data-streamdown":"table",...o,children:t})})]})},sE=/startLine=(\d+)/,sT=/\bnoLineNumbers\b/,sg=(0,n.lazy)(()=>r.e(21285).then(r.bind(r,21285)).then(e=>({default:e.Mermaid}))),sA=/language-([^\s]+)/;function s_(e,t){if(!(null!=e&&e.position||null!=t&&t.position))return!0;if(!(null!=e&&e.position&&null!=t&&t.position))return!1;let r=e.position.start,n=t.position.start,a=e.position.end,s=t.position.end;return(null==r?void 0:r.line)===(null==n?void 0:n.line)&&(null==r?void 0:r.column)===(null==n?void 0:n.column)&&(null==a?void 0:a.line)===(null==s?void 0:s.line)&&(null==a?void 0:a.column)===(null==s?void 0:s.column)}function sb(e,t){return e.className===t.className&&s_(e.node,t.node)}var sk=(e,t)=>"boolean"==typeof e?e:!1!==e[t],sC=(e,t)=>{if("boolean"==typeof e)return e;let r=e.table;return!1!==r&&(!0===r||void 0===r||!1!==r[t])},sN=(e,t)=>{if("boolean"==typeof e)return e;let r=e.code;return!1!==r&&(!0===r||void 0===r||!1!==r[t])},sI=(e,t)=>{if("boolean"==typeof e)return e;let r=e.mermaid;return!1!==r&&(!0===r||void 0===r||!1!==r[t])},sS=(0,n.memo)(e=>{let{children:t,className:r,node:n,...a}=e,s=aU();return(0,rW.jsx)("ol",{className:s("list-inside list-decimal whitespace-normal [li_&]:pl-6",r),"data-streamdown":"ordered-list",...a,children:t})},(e,t)=>sb(e,t));sS.displayName="MarkdownOl";var sy=(0,n.memo)(e=>{let{children:t,className:r,node:n,...a}=e,s=aU();return(0,rW.jsx)("li",{className:s("py-1 [&>p]:inline",r),"data-streamdown":"list-item",...a,children:t})},(e,t)=>e.className===t.className&&s_(e.node,t.node));sy.displayName="MarkdownLi";var sD=(0,n.memo)(e=>{let{children:t,className:r,node:n,...a}=e,s=aU();return(0,rW.jsx)("ul",{className:s("list-inside list-disc whitespace-normal [li_&]:pl-6",r),"data-streamdown":"unordered-list",...a,children:t})},(e,t)=>sb(e,t));sD.displayName="MarkdownUl";var sx=(0,n.memo)(e=>{let{className:t,node:r,...n}=e,a=aU();return(0,rW.jsx)("hr",{className:a("my-6 border-border",t),"data-streamdown":"horizontal-rule",...n})},(e,t)=>sb(e,t));sx.displayName="MarkdownHr";var sR=(0,n.memo)(e=>{let{children:t,className:r,node:n,...a}=e,s=aU();return(0,rW.jsx)("span",{className:s("font-semibold",r),"data-streamdown":"strong",...a,children:t})},(e,t)=>sb(e,t));sR.displayName="MarkdownStrong";var sL=(0,n.memo)(e=>{let{children:t,className:r,href:a,node:s,...i}=e,o=aU(),{linkSafety:l}=(0,n.useContext)(iQ),[c,u]=(0,n.useState)(!1),d="streamdown:incomplete-link"===a,h=(0,n.useCallback)(async e=>{if(!(!(null!=l&&l.enabled&&a)||d)){if(e.preventDefault(),l.onLinkCheck&&await l.onLinkCheck(a))return void window.open(a,"_blank","noreferrer");u(!0)}},[l,a,d]),p=(0,n.useCallback)(()=>{a&&window.open(a,"_blank","noreferrer")},[a]),m={url:null!=a?a:"",isOpen:c,onClose:(0,n.useCallback)(()=>{u(!1)},[]),onConfirm:p};return null!=l&&l.enabled&&a?(0,rW.jsxs)(rW.Fragment,{children:[(0,rW.jsx)("button",{className:o("wrap-anywhere appearance-none text-left font-medium text-primary underline",r),"data-incomplete":d,"data-streamdown":"link",onClick:h,type:"button",children:t}),l.renderModal?l.renderModal(m):(0,rW.jsx)(se,{...m})]}):(0,rW.jsx)("a",{className:o("wrap-anywhere font-medium text-primary underline",r),"data-incomplete":d,"data-streamdown":"link",href:a,rel:"noreferrer",target:"_blank",...i,children:t})},(e,t)=>sb(e,t)&&e.href===t.href);sL.displayName="MarkdownA";var sO=(0,n.memo)(e=>{let{children:t,className:r,node:n,...a}=e,s=aU();return(0,rW.jsx)("h1",{className:s("mt-6 mb-2 font-semibold text-3xl",r),"data-streamdown":"heading-1",...a,children:t})},(e,t)=>sb(e,t));sO.displayName="MarkdownH1";var sw=(0,n.memo)(e=>{let{children:t,className:r,node:n,...a}=e,s=aU();return(0,rW.jsx)("h2",{className:s("mt-6 mb-2 font-semibold text-2xl",r),"data-streamdown":"heading-2",...a,children:t})},(e,t)=>sb(e,t));sw.displayName="MarkdownH2";var sM=(0,n.memo)(e=>{let{children:t,className:r,node:n,...a}=e,s=aU();return(0,rW.jsx)("h3",{className:s("mt-6 mb-2 font-semibold text-xl",r),"data-streamdown":"heading-3",...a,children:t})},(e,t)=>sb(e,t));sM.displayName="MarkdownH3";var sP=(0,n.memo)(e=>{let{children:t,className:r,node:n,...a}=e,s=aU();return(0,rW.jsx)("h4",{className:s("mt-6 mb-2 font-semibold text-lg",r),"data-streamdown":"heading-4",...a,children:t})},(e,t)=>sb(e,t));sP.displayName="MarkdownH4";var sv=(0,n.memo)(e=>{let{children:t,className:r,node:n,...a}=e,s=aU();return(0,rW.jsx)("h5",{className:s("mt-6 mb-2 font-semibold text-base",r),"data-streamdown":"heading-5",...a,children:t})},(e,t)=>sb(e,t));sv.displayName="MarkdownH5";var sB=(0,n.memo)(e=>{let{children:t,className:r,node:n,...a}=e,s=aU();return(0,rW.jsx)("h6",{className:s("mt-6 mb-2 font-semibold text-sm",r),"data-streamdown":"heading-6",...a,children:t})},(e,t)=>sb(e,t));sB.displayName="MarkdownH6";var sF=(0,n.memo)(e=>{let{children:t,className:r,node:a,...s}=e,{controls:i}=(0,n.useContext)(iQ),o=sk(i,"table"),l=sC(i,"copy"),c=sC(i,"download"),u=sC(i,"fullscreen");return(0,rW.jsx)(sf,{className:r,showControls:o,showCopy:l,showDownload:c,showFullscreen:u,...s,children:t})},(e,t)=>sb(e,t));sF.displayName="MarkdownTable";var sH=(0,n.memo)(e=>{let{children:t,className:r,node:n,...a}=e,s=aU();return(0,rW.jsx)("thead",{className:s("bg-muted/80",r),"data-streamdown":"table-header",...a,children:t})},(e,t)=>sb(e,t));sH.displayName="MarkdownThead";var sU=(0,n.memo)(e=>{let{children:t,className:r,node:n,...a}=e,s=aU();return(0,rW.jsx)("tbody",{className:s("divide-y divide-border",r),"data-streamdown":"table-body",...a,children:t})},(e,t)=>sb(e,t));sU.displayName="MarkdownTbody";var sG=(0,n.memo)(e=>{let{children:t,className:r,node:n,...a}=e,s=aU();return(0,rW.jsx)("tr",{className:s("border-border",r),"data-streamdown":"table-row",...a,children:t})},(e,t)=>sb(e,t));sG.displayName="MarkdownTr";var sj=(0,n.memo)(e=>{let{children:t,className:r,node:n,...a}=e,s=aU();return(0,rW.jsx)("th",{className:s("whitespace-nowrap px-4 py-2 text-left font-semibold text-sm",r),"data-streamdown":"table-header-cell",...a,children:t})},(e,t)=>sb(e,t));sj.displayName="MarkdownTh";var s$=(0,n.memo)(e=>{let{children:t,className:r,node:n,...a}=e,s=aU();return(0,rW.jsx)("td",{className:s("px-4 py-2 text-sm",r),"data-streamdown":"table-cell",...a,children:t})},(e,t)=>sb(e,t));s$.displayName="MarkdownTd";var sY=(0,n.memo)(e=>{let{children:t,className:r,node:n,...a}=e,s=aU();return(0,rW.jsx)("blockquote",{className:s("my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic",r),"data-streamdown":"blockquote",...a,children:t})},(e,t)=>sb(e,t));sY.displayName="MarkdownBlockquote";var sz=(0,n.memo)(e=>{let{children:t,className:r,node:n,...a}=e,s=aU();return(0,rW.jsx)("sup",{className:s("text-sm",r),"data-streamdown":"superscript",...a,children:t})},(e,t)=>sb(e,t));sz.displayName="MarkdownSup";var sq=(0,n.memo)(e=>{let{children:t,className:r,node:n,...a}=e,s=aU();return(0,rW.jsx)("sub",{className:s("text-sm",r),"data-streamdown":"subscript",...a,children:t})},(e,t)=>sb(e,t));sq.displayName="MarkdownSub";var sV=(0,n.memo)(e=>{let{children:t,className:r,node:a,...s}=e;if("data-footnotes"in s){let e=Array.isArray(t)?t.map(e=>{if(!(0,n.isValidElement)(e))return e;if(e.type===sS){let t=(Array.isArray(e.props.children)?e.props.children:[e.props.children]).filter(e=>!(e=>{var t,r;if(!(0,n.isValidElement)(e))return!1;let a=Array.isArray(e.props.children)?e.props.children:[e.props.children],s=!1,i=!1;for(let e of a)if(e){if("string"==typeof e)""!==e.trim()&&(s=!0);else if((0,n.isValidElement)(e)){if((null==(t=e.props)?void 0:t["data-footnote-backref"])!==void 0)i=!0;else for(let t of Array.isArray(e.props.children)?e.props.children:[e.props.children])if("string"==typeof t&&""!==t.trim()||(0,n.isValidElement)(t)&&(null==(r=t.props)?void 0:r["data-footnote-backref"])===void 0){s=!0;break}}}return i&&!s})(e));return 0===t.length?null:{...e,props:{...e.props,children:t}}}return e}):t;return(Array.isArray(e)?e.some(e=>null!==e):null!==e)?(0,rW.jsx)("section",{className:r,...s,children:e}):null}return(0,rW.jsx)("section",{className:r,...s,children:t})},(e,t)=>sb(e,t));sV.displayName="MarkdownSection";var sW=(0,n.memo)(e=>{var t,r;let{node:a,className:s,children:i,...o}=e,l=aU(),c=!("data-block"in o),{mermaid:u,controls:d,lineNumbers:h}=(0,n.useContext)(iQ),p=sa(),m=(0,n.useContext)(av),f=null==s?void 0:s.match(sA),E=null!=(t=null==f?void 0:f.at(1))?t:"",T=(e=>{var t;let r=sr();return null!=r&&r.renderers&&e&&null!=(t=r.renderers.find(t=>Array.isArray(t.language)?t.language.includes(e):t.language===e))?t:null})(E);if(c)return(0,rW.jsx)("code",{className:l("rounded bg-muted px-1.5 py-0.5 font-mono text-sm",s),"data-streamdown":"inline-code",...o,children:i});let g=null==(r=null==a?void 0:a.properties)?void 0:r.metastring,A=null==g?void 0:g.match(sE),_=A?Number.parseInt(A[1],10):void 0,b=!(g&&sT.test(g))&&!1!==h,k="";if((0,n.isValidElement)(i)&&i.props&&"object"==typeof i.props&&"children"in i.props&&"string"==typeof i.props.children?k=i.props.children:"string"==typeof i&&(k=i),T){let e=T.component;return(0,rW.jsx)(n.Suspense,{fallback:(0,rW.jsx)(a6,{}),children:(0,rW.jsx)(e,{code:k,isIncomplete:m,language:E,meta:g})})}if("mermaid"===E&&p){let e=sk(d,"mermaid"),t=sI(d,"download"),r=sI(d,"copy"),a=sI(d,"fullscreen"),i=sI(d,"panZoom");return(0,rW.jsx)(n.Suspense,{fallback:(0,rW.jsx)(a6,{}),children:(0,rW.jsxs)("div",{className:l("group relative my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2",s),"data-streamdown":"mermaid-block",children:[(0,rW.jsx)("div",{className:l("flex h-8 items-center text-muted-foreground text-xs"),children:(0,rW.jsx)("span",{className:l("ml-1 font-mono lowercase"),children:"mermaid"})}),e&&(t||r||a)?(0,rW.jsx)("div",{className:l("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end"),children:(0,rW.jsxs)("div",{className:l("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"),"data-streamdown":"mermaid-block-actions",children:[t?(0,rW.jsx)(ss,{chart:k,config:null==u?void 0:u.config}):null,r?(0,rW.jsx)(a5,{code:k}):null,a?(0,rW.jsx)(si,{chart:k,config:null==u?void 0:u.config}):null]})}):null,(0,rW.jsx)("div",{className:l("rounded-md border border-border bg-background"),children:(0,rW.jsx)(sg,{chart:k,config:null==u?void 0:u.config,showControls:i})})]})})}let C=sk(d,"code"),N=sN(d,"download"),I=sN(d,"copy");return(0,rW.jsx)(aW,{className:s,code:k,isIncomplete:m,language:E,lineNumbers:b,startLine:void 0!==_&&_>=1?_:void 0,children:C?(0,rW.jsxs)(rW.Fragment,{children:[N?(0,rW.jsx)(a3,{code:k,language:E}):null,I?(0,rW.jsx)(a5,{}):null]}):null})},(e,t)=>e.className===t.className&&s_(e.node,t.node));sW.displayName="MarkdownCode";var sQ=(0,n.memo)(e=>{let{node:t,className:r,src:a,alt:s,onLoad:i,onError:o,...l}=e,{DownloadIcon:c}=aZ(),u=aU(),d=(0,n.useRef)(null),[h,p]=(0,n.useState)(!1),[m,f]=(0,n.useState)(!1),E=a1(),T=null!=l.width||null!=l.height,g=(h||T)&&!m,A=m&&!T;(0,n.useEffect)(()=>{let e=d.current;if(null!=e&&e.complete){let t=e.naturalWidth>0;p(t),f(!t)}},[]);let _=(0,n.useCallback)(e=>{p(!0),f(!1),null==i||i(e)},[i]),b=(0,n.useCallback)(e=>{p(!1),f(!0),null==o||o(e)},[o]),k=async()=>{if(a)try{let e=await (await fetch(a)).blob(),t=new URL(a,window.location.origin).pathname.split("/").pop()||"",r=t.split(".").pop(),n=t.includes(".")&&void 0!==r&&r.length<=4,i="";if(n)i=t;else{let r=e.type,n="png";r.includes("jpeg")||r.includes("jpg")?n="jpg":r.includes("png")?n="png":r.includes("svg")?n="svg":r.includes("gif")?n="gif":r.includes("webp")&&(n="webp"),i="".concat((s||t||"image").replace(a8,""),".").concat(n)}aF(i,e,e.type)}catch(e){window.open(a,"_blank")}};return a?(0,rW.jsxs)("div",{className:u("group relative my-4 inline-block"),"data-streamdown":"image-wrapper",children:[(0,rW.jsx)("img",{alt:s,className:u("max-w-full rounded-lg",A&&"hidden",r),"data-streamdown":"image",onError:b,onLoad:_,ref:d,src:a,...l}),A&&(0,rW.jsx)("span",{className:u("text-muted-foreground text-xs italic"),"data-streamdown":"image-fallback",children:E.imageNotAvailable}),(0,rW.jsx)("div",{className:u("pointer-events-none absolute inset-0 hidden rounded-lg bg-black/10 group-hover:block")}),g&&(0,rW.jsx)("button",{className:u("absolute right-2 bottom-2 flex h-8 w-8 cursor-pointer items-center justify-center rounded-md border border-border bg-background/90 shadow-sm backdrop-blur-sm transition-all duration-200 hover:bg-background","opacity-0 group-hover:opacity-100"),onClick:k,title:E.downloadImage,type:"button",children:(0,rW.jsx)(c,{size:14})})]}):null},(e,t)=>e.className===t.className&&s_(e.node,t.node));sQ.displayName="MarkdownImg";var sX=(0,n.memo)(e=>{let{children:t,node:r,...a}=e,s=(Array.isArray(t)?t:[t]).filter(e=>null!=e&&""!==e);if(1===s.length&&(0,n.isValidElement)(s[0])){let e=s[0].props.node,r=null==e?void 0:e.tagName;if("img"===r||"code"===r&&"data-block"in s[0].props)return(0,rW.jsx)(rW.Fragment,{children:t})}return(0,rW.jsx)("p",{...a,children:t})},(e,t)=>sb(e,t));sX.displayName="MarkdownParagraph";var sK={ol:sS,li:sy,ul:sD,hr:sx,strong:sR,a:sL,h1:sO,h2:sw,h3:sM,h4:sP,h5:sv,h6:sB,table:sF,thead:sH,tbody:sU,tr:sG,th:sj,td:s$,blockquote:sY,code:sW,img:sQ,pre:e=>{let{children:t}=e;return(0,n.isValidElement)(t)?(0,n.cloneElement)(t,{"data-block":"true"}):t},sup:sz,sub:sq,p:sX,section:sV},sZ=/[\u0590-\u08FF\uFB1D-\uFDFF\uFE70-\uFEFF]/,sJ=RegExp("\\p{L}","u");function s0(e){for(let t of e.replace(/^#{1,6}\s+/gm,"").replace(/(\*{1,3}|_{1,3})/g,"").replace(/`[^`]*`/g,"").replace(/\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/^[\s>*\-+\d.]+/gm,"")){if(sZ.test(t))return"rtl";if(sJ.test(t))break}return"ltr"}var s1,s5,s2,s3,s6,s8,s4,s9,s7,ie,it,ir,ia,is,ii,io,il,ic,iu,id=/^[ \t]{0,3}(`{3,}|~{3,})/,ih=/^\|?[ \t]*:?-{1,}:?[ \t]*(\|[ \t]*:?-{1,}:?[ \t]*)*\|?$/,ip=e=>{let t=e.split("\n"),r=null,n=0;for(let e of t){let t=id.exec(e);if(null===r){if(t){let e=t[1];r=e[0],n=e.length}}else if(t){let e=t[1],a=e[0],s=e.length;a===r&&s>=n&&(r=null,n=0)}}return null!==r},im=()=>e=>{(0,a.YR)(e,"html",(e,t,r)=>{r&&"number"==typeof t&&(r.children[t]={type:"text",value:e.value})})},iE=[],iT={allowDangerousHtml:!0},ig=new WeakMap,iA=new class{generateCacheKey(e){let t=this.keyCache.get(e);if(t)return t;let r=e.rehypePlugins,n=e.remarkPlugins,a=e.remarkRehypeOptions;if(!(r||n||a)){let t="default";return this.keyCache.set(e,t),t}let s=e=>{if(!e||0===e.length)return"";let t="";for(let r=0;r<e.length;r+=1){let n=e[r];if(r>0&&(t+=","),Array.isArray(n)){let[e,r]=n;if("function"==typeof e){let r=ig.get(e);r||(r=e.name,ig.set(e,r)),t+=r}else t+=String(e);t+=":",t+=JSON.stringify(r)}else if("function"==typeof n){let e=ig.get(n);e||(e=n.name,ig.set(n,e)),t+=e}else t+=String(n)}return t},i=s(r),o=s(n),l=a?JSON.stringify(a):"",c="".concat(o,"::").concat(i,"::").concat(l);return this.keyCache.set(e,c),c}get(e){let t=this.generateCacheKey(e),r=this.cache.get(t);return r&&(this.cache.delete(t),this.cache.set(t,r)),r}set(e,t){let r=this.generateCacheKey(e);if(this.cache.size>=this.maxSize){let e=this.cache.keys().next().value;e&&this.cache.delete(e)}this.cache.set(r,t)}clear(){this.cache.clear()}constructor(){this.cache=new Map,this.keyCache=new WeakMap,this.maxSize=100}},i_=e=>{let t=ib(e),r=e.children||"";return iN(t.runSync(t.parse(r),r),e)},ib=e=>{let t=iA.get(e);if(t)return t;let r=ik(e);return iA.set(e,r),r},ik=e=>{let t=e.rehypePlugins||iE,r=e.remarkPlugins||iE,n=t.some(e=>Array.isArray(e)?e[0]===tV:e===tV)?r:[...r,im],a=e.remarkRehypeOptions?{...iT,...e.remarkRehypeOptions}:iT;return(0,nS.l)().use(nl.A).use(n).use(nI,a).use(t)},iC=e=>e,iN=(e,t)=>{let{allowElement:r,allowedElements:n,disallowedElements:s,skipHtml:i,unwrapDisallowed:o,urlTransform:l}=t;if(r||n||s||i||l){let t=l||iC;(0,a.YR)(e,(e,a,l)=>"raw"===e.type&&l&&"number"==typeof a?(((e,t,r,n)=>{r?e.children.splice(t,1):e.children[t]={type:"text",value:n}})(l,a,i,e.value),a):"element"===e.type&&(((e,t)=>{var r;for(let n in no)if(Object.hasOwn(no,n)&&Object.hasOwn(e.properties,n)){let a=e.properties[n],s=no[n];(null===s||s.includes(e.tagName))&&(e.properties[n]=null!=(r=t(String(a||""),n,e))?r:void 0)}})(e,t),((e,t,r,n,a,s)=>{let i=!1;return n?i=!n.includes(e.tagName):a&&(i=a.includes(e.tagName)),!i&&s&&"number"==typeof t&&(i=!s(e,t,r)),i})(e,a,l,n,s,r)&&l&&"number"==typeof a)?(o&&e.children?l.children.splice(a,1,...e.children):l.children.splice(a,1),a):void 0)}return function(e,t){var r,n,a,s,i;let o;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let l=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=l,n=t.jsxDEV,o=function(e,t,a,s){let i=Array.isArray(a.children),o=tx(e);return n(t,a,s,i,{columnNumber:o?o.column-1:void 0,fileName:r,lineNumber:o?o.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");a=0,s=t.jsx,i=t.jsxs,o=function(e,t,r,n){let a=Array.isArray(r.children)?i:s;return n?a(t,r,n):a(t,r)}}let c={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:o,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:l,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?b.JW:b.qy,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},u=ne(c,e,void 0);return u&&"string"!=typeof u?u:c.create(e,c.Fragment,{children:u||void 0},void 0)}(e,{Fragment:rW.Fragment,components:t.components,ignoreInvalidStyle:!0,jsx:rW.jsx,jsxs:rW.jsxs,passKeys:!0,passNode:!0})},iI=/\[\^[\w-]{1,200}\](?!:)/,iS=/\[\^[\w-]{1,200}\]:/,iy=/<(\w+)[\s>]/,iD=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),ix=new Map,iR=new Map,iL=(e,t)=>{if(iD.has(t.toLowerCase()))return 0;let r=e.match((e=>{let t=e.toLowerCase(),r=ix.get(t);if(r)return r;let n=RegExp("<".concat(t,"(?=[\\s>/])[^>]*>"),"gi");return ix.set(t,n),n})(t));if(!r)return 0;let n=0;for(let e of r)e.trimEnd().endsWith("/>")||(n+=1);return n},iO=(e,t)=>{let r=e.match((e=>{let t=e.toLowerCase(),r=iR.get(t);if(r)return r;let n=RegExp("</".concat(t,"(?=[\\s>])[^>]*>"),"gi");return iR.set(t,n),n})(t));return r?r.length:0},iw=e=>{let t=0;for(let r=0;r<e.length-1;r+=1)"$"===e[r]&&"$"===e[r+1]&&(t+=1,r+=1);return t},iM=e=>{let t=iI.test(e),r=iS.test(e);if(t||r)return[e];let n=aN.lex(e,{gfm:!0}),a=[],s=[],i=!1;for(let e of n){let t=e.raw,r=a.length;if(s.length>0){a[r-1]+=t;let e=s.at(-1),n=iL(t,e),i=iO(t,e);for(let t=0;t<n;t+=1)s.push(e);for(let t=0;t<i;t+=1)s.length>0&&s.at(-1)===e&&s.pop();continue}if("html"===e.type&&e.block){let e=t.match(iy);if(e){let r=e[1];iL(t,r)>iO(t,r)&&s.push(r)}}if(r>0&&!i){let e=a[r-1];if(iw(e)%2==1){a[r-1]=e+t;continue}}a.push(t),"space"!==e.type&&(i="code"===e.type)}return a},iP=/([\\`*_~[\]|])/g,iv=e=>e.replace(iP,"\\$1"),iB=e=>"text"===e.type?e.value:"children"in e&&Array.isArray(e.children)?e.children.map(iB).join(""):"",iF=e=>t=>{if(!e||0===e.length)return;let r=new Set(e.map(e=>e.toLowerCase()));(0,a.YR)(t,"element",e=>{if(r.has(e.tagName.toLowerCase())){let t=iB(e);e.children=t?[{type:"text",value:t}]:[]}})},iH=/^[ \t]*<[\w!/?-]/,iU=/(^|\n)[ \t]{4,}(?=<[\w!/?-])/g,iG={...tQ,protocols:{...tQ.protocols,href:[...null!=(il=null==(io=tQ.protocols)?void 0:io.href)?il:[],"tel"]},attributes:{...tQ.attributes,code:[...null!=(iu=null==(ic=tQ.attributes)?void 0:ic.code)?iu:[],"metastring"]}},ij={raw:tV,sanitize:[t2,iG],harden:[function({defaultOrigin:e="",allowedLinkPrefixes:t=[],allowedImagePrefixes:r=[],allowDataImages:n=!1,allowedProtocols:o=[],blockedImageClass:l="inline-block bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-400 px-3 py-1 rounded text-sm",blockedLinkClass:c="text-gray-500",linkBlockPolicy:h=i.indicator,imageBlockPolicy:p=i.indicator}){let m=t.length&&!t.every(e=>"*"===e),f=r.length&&!r.every(e=>"*"===e);if(!e&&(m||f))throw Error("defaultOrigin is required when allowedLinkPrefixes or allowedImagePrefixes are provided");return m=>{let f=((e,t,r,n,o,l,c,h,p)=>{let m=(f,E,T)=>{if("element"!==f.type||f[d])return s.IN;if("a"===f.tagName){let r=u(f.properties.href,t,e,!1,!1,o);if(null!==r)return f.properties.href=r,f.properties.target="_blank",f.properties.rel="noopener noreferrer",s.IN;if(f[d]=!0,(0,a.YR)(f,m),T&&"number"==typeof E){let e=function(e,t,r){return t===i.remove?{type:"remove"}:t===i.textOnly?{type:"replace",element:{type:"element",tagName:"span",properties:{},children:[...e.children]}}:{type:"replace",element:{type:"element",tagName:"span",properties:{title:"Blocked URL: "+String(e.properties.href),class:r},children:[...e.children,{type:"text",value:" [blocked]"}]}}}(f,h,c);if("remove"===e.type)return T.children.splice(E,1),[s._Z,E];T.children[E]=e.element}return s._Z}if("img"===f.tagName){let t=u(f.properties.src,r,e,n,!0,o);if(null===t){if(f[d]=!0,(0,a.YR)(f,m),T&&"number"==typeof E){let e=function(e,t,r){if(t===i.remove)return{type:"remove"};if(t===i.textOnly){let t=String(e.properties.alt||"");return t?{type:"replace",element:{type:"element",tagName:"span",properties:{},children:[{type:"text",value:t}]}}:{type:"remove"}}return{type:"replace",element:{type:"element",tagName:"span",properties:{class:r},children:[{type:"text",value:"[Image blocked: "+String(e.properties.alt||"No description")+"]"}]}}}(f,p,l);if("remove"===e.type)return T.children.splice(E,1),[s._Z,E];T.children[E]=e.element}return s._Z}f.properties.src=t}return s.IN};return m})(e,t,r,n,o,l,c,h,p);(function e(t){if("children"in t&&Array.isArray(t.children))for(let r of(t.children=t.children.filter(e=>null!=e),t.children))e(r)})(m),(0,a.YR)(m,f)}},{allowedImagePrefixes:["*"],allowedLinkPrefixes:["*"],allowedProtocols:["*"],defaultOrigin:void 0,allowDataImages:!0}]},i$={gfm:[t3.A,{}],codeMeta:()=>e=>{(0,a.YR)(e,"code",e=>{var t,r;e.meta&&(e.data=null!=(t=e.data)?t:{},e.data.hProperties={...null!=(r=e.data.hProperties)?r:{},metastring:e.meta})})}},iY=Object.values(ij),iz=Object.values(i$),iq={block:" ▋",circle:" ●"},iV=["github-light","github-dark"],iW={enabled:!0},iQ=(0,n.createContext)({shikiTheme:iV,controls:!0,isAnimating:!1,lineNumbers:!0,mode:"streaming",mermaid:void 0,linkSafety:iW}),iX=(0,n.memo)(e=>{let{content:t,shouldParseIncompleteMarkdown:r,shouldNormalizeHtmlIndentation:n,index:a,isIncomplete:s,dir:i,animatePlugin:o,...l}=e;if(o){let e=o.getLastRenderCharCount();o.setPrevContentLength(e)}let c="string"==typeof t&&n?(e=>"string"==typeof e&&0!==e.length&&iH.test(e)?e.replace(iU,"$1"):e)(t):t,u=(0,rW.jsx)(i_,{...l,children:c});return(0,rW.jsx)(av.Provider,{value:s,children:i?(0,rW.jsx)("div",{dir:i,style:{display:"contents"},children:u}):u})},(e,t)=>{if(e.content!==t.content||e.shouldNormalizeHtmlIndentation!==t.shouldNormalizeHtmlIndentation||e.index!==t.index||e.isIncomplete!==t.isIncomplete||e.dir!==t.dir)return!1;if(e.components!==t.components){let r=Object.keys(e.components||{}),n=Object.keys(t.components||{});if(r.length!==n.length||r.some(r=>{var n,a;return(null==(n=e.components)?void 0:n[r])!==(null==(a=t.components)?void 0:a[r])}))return!1}return e.rehypePlugins===t.rehypePlugins&&e.remarkPlugins===t.remarkPlugins});iX.displayName="Block";var iK=(0,n.memo)(e=>{let{children:t,mode:r="streaming",dir:a,parseIncompleteMarkdown:s=!0,normalizeHtmlIndentation:i=!1,components:o,rehypePlugins:l=iY,remarkPlugins:c=iz,className:u,shikiTheme:d=iV,mermaid:h,controls:p=!0,isAnimating:m=!1,animated:f,BlockComponent:E=iX,parseMarkdownIntoBlocksFn:T=iM,caret:g,plugins:A,remend:_,linkSafety:b=iW,lineNumbers:k=!0,allowedTags:C,literalTagContent:N,translations:I,icons:S,prefix:y,onAnimationStart:D,onAnimationEnd:x,...R}=e,L=(0,n.useId)(),[O,w]=(0,n.useTransition)(),M=(0,n.useMemo)(()=>(e=>e?function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var a=(0,rV.QP)((0,rq.$)(r));if(!e||!a)return a;let s="".concat(e,":");return a.split(/\s+/).filter(Boolean).map(t=>t.startsWith(s)?t:"".concat(e,":").concat(t)).join(" ")}:aB)(y),[y]),P=(0,n.useRef)(null),v=(0,n.useRef)(D),B=(0,n.useRef)(x);v.current=D,B.current=x,(0,n.useEffect)(()=>{var e,t,n;if("static"===r)return;let a=P.current;if(P.current=m,null===a){m&&(null==(e=v.current)||e.call(v));return}m&&!a?null==(t=v.current)||t.call(v):!m&&a&&(null==(n=B.current)||n.call(B))},[m,r]);let F=(0,n.useMemo)(()=>C?Object.keys(C):[],[C]),H=(0,n.useMemo)(()=>{if("string"!=typeof t)return"";let e="streaming"===r&&s?((e,t)=>{var r;if(!e||"string"!=typeof e)return e;let n=e.endsWith(" ")&&!e.endsWith(" ")?e.slice(0,-1):e;for(let{handler:e,earlyReturn:a}of[...(e=>{var t;let r=null!=(t=null==e?void 0:e.linkMode)?t:"protocol";return rz.filter(({handler:t,optionKey:r})=>"links"===t.name?!1!==(null==e?void 0:e.links)||!1!==(null==e?void 0:e.images):"inlineKatex"===t.name?!0===(null==e?void 0:e.inlineKatex):!1!==(null==e?void 0:e[r])).map(({handler:e,earlyReturn:t})=>"links"===e.name?{handler:rn(rr({},e),{handle:e=>rF(e,r)}),earlyReturn:"protocol"===r?t:void 0}:{handler:e,earlyReturn:t})})(t),...(null!=(r=null==t?void 0:t.handlers)?r:[]).map(e=>{var t;return{handler:rn(rr({},e),{priority:null!=(t=e.priority)?t:rY.DEFAULT}),earlyReturn:void 0}})].sort((e,t)=>{var r,n;return(null!=(r=e.handler.priority)?r:0)-(null!=(n=t.handler.priority)?n:0)}))if(n=e.handle(n),null!=a&&a(n))break;return n})(t,_):t;return N&&N.length>0&&(e=((e,t)=>{if(!t.length)return e;let r=e;for(let e of t){let t=RegExp("(<".concat(e,"(?=[\\s>/])[^>]*>)([\\s\\S]*?)(</").concat(e,"\\s*>)"),"gi");r=r.replace(t,(e,t,r,n)=>t+iv(r).replace(/\n\n/g," ")+n)}return r})(e,N)),F.length>0&&(e=((e,t)=>{if(!t.length)return e;let r=e;for(let e of t){let t=RegExp("(<".concat(e,"(?=[\\s>/])[^>]*>)([\\s\\S]*?)(</").concat(e,"\\s*>)"),"gi");r=r.replace(t,(e,t,r,n)=>{if(!r.includes("\n\n"))return t+r+n;let a=r.replace(/\n\n/g,"\n\x3c!----\x3e\n"),s=(a.startsWith("\n")?"":"\n")+a+(a.endsWith("\n")?"":"\n");return"".concat(t).concat(s).concat(n,"\n\n")})}return r})(e,F)),e},[t,r,s,_,F,N]),U=(0,n.useMemo)(()=>T(H),[H,T]),[G,j]=(0,n.useState)(U);(0,n.useEffect)(()=>{"streaming"!==r||V?j(U):w(()=>{j(U)})},[U,r]);let $="streaming"===r?G:U,Y=(0,n.useMemo)(()=>"auto"===a?$.map(s0):void 0,[$,a]),z=(0,n.useMemo)(()=>$.map((e,t)=>"".concat(L,"-").concat(t)),[$.length,L]),q=(0,n.useMemo)(()=>!0===f?"true":f?JSON.stringify(f):"",[f]),V=(0,n.useMemo)(()=>q?"true"===q?aP():aP(f):null,[q]),W=(0,n.useMemo)(()=>{var e,t;return{shikiTheme:null!=(t=null==(e=null==A?void 0:A.code)?void 0:e.getThemes())?t:d,controls:p,isAnimating:m,lineNumbers:k,mode:r,mermaid:h,linkSafety:b}},[d,p,m,k,r,h,b,null==A?void 0:A.code]),Q=(0,n.useMemo)(()=>I?JSON.stringify(I):"",[I]),X=(0,n.useMemo)(()=>({...aJ,...I}),[Q]),K=(0,n.useMemo)(()=>{let{inlineCode:e,...t}=null!=o?o:{},r={...sK,...t};if(e){let t=r.code;r.code=r=>"data-block"in r?t?(0,n.createElement)(t,r):null:(0,n.createElement)(e,r)}return r},[o]),Z=(0,n.useMemo)(()=>{let e=[];return null!=A&&A.cjk&&(e=[...e,...A.cjk.remarkPluginsBefore]),e=[...e,...c],null!=A&&A.cjk&&(e=[...e,...A.cjk.remarkPluginsAfter]),null!=A&&A.math&&(e=[...e,A.math.remarkPlugin]),e},[c,null==A?void 0:A.math,null==A?void 0:A.cjk]),J=(0,n.useMemo)(()=>{var e;let t=l;if(C&&Object.keys(C).length>0&&l===iY){let r={...iG,tagNames:[...null!=(e=iG.tagNames)?e:[],...Object.keys(C)],attributes:{...iG.attributes,...C}};t=[ij.raw,[t2,r],ij.harden]}return N&&N.length>0&&(t=[...t,[iF,N]]),null!=A&&A.math&&(t=[...t,A.math.rehypePlugin]),V&&m&&(t=[...t,V.rehypePlugin]),t},[l,null==A?void 0:A.math,V,m,C,N]),ee=(0,n.useMemo)(()=>{if(!m||0===$.length)return!1;let e=$.at(-1);return ip(e)||(e=>{for(let t of e.split("\n")){let e=t.trim();if(e.length>0&&e.includes("|")&&ih.test(e))return!0}return!1})(e)},[m,$]),et=(0,n.useMemo)(()=>g&&m&&!ee?{"--streamdown-caret":'"'.concat(iq[g],'"')}:void 0,[g,m,ee]);return"static"===r?(0,rW.jsx)(a0.Provider,{value:X,children:(0,rW.jsx)(st.Provider,{value:null!=A?A:null,children:(0,rW.jsx)(iQ.Provider,{value:W,children:(0,rW.jsx)(aK,{icons:S,children:(0,rW.jsx)(aH.Provider,{value:M,children:(0,rW.jsx)("div",{className:M("space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",u),dir:"auto"===a?s0(H):a,children:(0,rW.jsx)(i_,{components:K,rehypePlugins:J,remarkPlugins:Z,...R,children:H})})})})})})}):(0,rW.jsx)(a0.Provider,{value:X,children:(0,rW.jsx)(st.Provider,{value:null!=A?A:null,children:(0,rW.jsx)(iQ.Provider,{value:W,children:(0,rW.jsx)(aK,{icons:S,children:(0,rW.jsx)(aH.Provider,{value:M,children:(0,rW.jsxs)("div",{className:M("space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",g&&!ee?"[&>*:last-child]:after:inline [&>*:last-child]:after:align-baseline [&>*:last-child]:after:content-[var(--streamdown-caret)]":null,u),style:et,children:[0===$.length&&g&&m&&(0,rW.jsx)("span",{}),$.map((e,t)=>{var r;let n=t===$.length-1,o=m&&n&&ip(e);return(0,rW.jsx)(E,{animatePlugin:V,components:K,content:e,dir:null!=(r=null==Y?void 0:Y[t])?r:"auto"!==a?a:void 0,index:t,isIncomplete:o,rehypePlugins:J,remarkPlugins:Z,shouldNormalizeHtmlIndentation:i,shouldParseIncompleteMarkdown:s,...R},z[t])})]})})})})})})},(e,t)=>e.children===t.children&&e.shikiTheme===t.shikiTheme&&e.isAnimating===t.isAnimating&&e.animated===t.animated&&e.mode===t.mode&&e.plugins===t.plugins&&e.className===t.className&&e.linkSafety===t.linkSafety&&e.lineNumbers===t.lineNumbers&&e.normalizeHtmlIndentation===t.normalizeHtmlIndentation&&e.literalTagContent===t.literalTagContent&&JSON.stringify(e.translations)===JSON.stringify(t.translations)&&e.prefix===t.prefix&&e.dir===t.dir);iK.displayName="Streamdown";var iZ=e=>{let{children:t,className:r,minZoom:a=.5,maxZoom:s=3,zoomStep:i=.1,showControls:o=!0,initialZoom:l=1,fullscreen:c=!1}=e,{RotateCcwIcon:u,ZoomInIcon:d,ZoomOutIcon:h}=aZ(),p=aU(),m=(0,n.useRef)(null),f=(0,n.useRef)(null),[E,T]=(0,n.useState)(l),[g,A]=(0,n.useState)({x:0,y:0}),[_,b]=(0,n.useState)(!1),[k,C]=(0,n.useState)({x:0,y:0}),[N,I]=(0,n.useState)({x:0,y:0}),S=(0,n.useCallback)(e=>{T(t=>Math.max(a,Math.min(s,t+e)))},[a,s]),y=(0,n.useCallback)(()=>{S(i)},[S,i]),D=(0,n.useCallback)(()=>{S(-i)},[S,i]),x=(0,n.useCallback)(()=>{T(l),A({x:0,y:0})},[l]),R=(0,n.useCallback)(e=>{e.preventDefault(),S(e.deltaY>0?-i:i)},[S,i]),L=(0,n.useCallback)(e=>{if(0!==e.button||!1===e.isPrimary)return;b(!0),C({x:e.clientX,y:e.clientY}),I(g);let t=e.currentTarget;t instanceof HTMLElement&&t.setPointerCapture(e.pointerId)},[g]),O=(0,n.useCallback)(e=>{if(!_)return;e.preventDefault();let t=e.clientX-k.x,r=e.clientY-k.y;A({x:N.x+t,y:N.y+r})},[_,k,N]),w=(0,n.useCallback)(e=>{b(!1);let t=e.currentTarget;t instanceof HTMLElement&&t.releasePointerCapture(e.pointerId)},[]);return(0,n.useEffect)(()=>{let e=m.current;if(e)return e.addEventListener("wheel",R,{passive:!1}),()=>{e.removeEventListener("wheel",R)}},[R]),(0,n.useEffect)(()=>{let e=f.current;if(e&&_)return document.body.style.userSelect="none",e.addEventListener("pointermove",O,{passive:!1}),e.addEventListener("pointerup",w),e.addEventListener("pointercancel",w),()=>{document.body.style.userSelect="",e.removeEventListener("pointermove",O),e.removeEventListener("pointerup",w),e.removeEventListener("pointercancel",w)}},[_,O,w]),(0,rW.jsxs)("div",{className:p("relative flex flex-col",c?"h-full w-full":"min-h-28 w-full",r),ref:m,style:{cursor:_?"grabbing":"grab"},children:[o?(0,rW.jsxs)("div",{className:p("absolute z-10 flex flex-col gap-1 rounded-md border border-border bg-background/80 p-1 supports-[backdrop-filter]:bg-background/70 supports-[backdrop-filter]:backdrop-blur-sm",c?"bottom-4 left-4":"bottom-2 left-2"),children:[(0,rW.jsx)("button",{className:p("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50"),disabled:E>=s,onClick:y,title:"Zoom in",type:"button",children:(0,rW.jsx)(d,{size:16})}),(0,rW.jsx)("button",{className:p("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50"),disabled:E<=a,onClick:D,title:"Zoom out",type:"button",children:(0,rW.jsx)(h,{size:16})}),(0,rW.jsx)("button",{className:p("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"),onClick:x,title:"Reset zoom and pan",type:"button",children:(0,rW.jsx)(u,{size:16})})]}):null,(0,rW.jsx)("div",{className:p("flex-1 origin-center transition-transform duration-150 ease-out",c?"flex h-full w-full items-center justify-center":"flex w-full items-center justify-center"),onPointerDown:L,ref:f,role:"application",style:{transform:"translate(".concat(g.x,"px, ").concat(g.y,"px) scale(").concat(E,")"),transformOrigin:"center center",touchAction:"none",willChange:"transform"},children:t})]})},iJ=e=>{let{chart:t,className:r,config:a,fullscreen:s=!1,showControls:i=!0}=e,o=aU(),[l,c]=(0,n.useState)(null),[u,d]=(0,n.useState)(!1),[h,p]=(0,n.useState)(""),[m,f]=(0,n.useState)(""),[E,T]=(0,n.useState)(0),{mermaid:g}=(0,n.useContext)(iQ),A=sa(),_=null==g?void 0:g.errorComponent,{shouldRender:b,containerRef:k}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{immediate:t=!1,debounceDelay:r=300,rootMargin:a="300px",idleTimeout:s=500}=e,[i,o]=(0,n.useState)(!1),l=(0,n.useRef)(null),c=(0,n.useRef)(null),u=(0,n.useRef)(null),d=(0,n.useMemo)(()=>e=>{let t=Date.now();return window.setTimeout(()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))})},1)},[]),h=(0,n.useMemo)(()=>"undefined"!=typeof window&&window.requestIdleCallback?(e,t)=>window.requestIdleCallback(e,t):d,[d]),p=(0,n.useMemo)(()=>"undefined"!=typeof window&&window.cancelIdleCallback?e=>window.cancelIdleCallback(e):e=>{clearTimeout(e)},[]);return(0,n.useEffect)(()=>{if(t)return void o(!0);let e=l.current;if(!e)return;c.current&&(clearTimeout(c.current),c.current=null),u.current&&(p(u.current),u.current=null);let n=()=>{c.current&&(clearTimeout(c.current),c.current=null),u.current&&(p(u.current),u.current=null)},i=(e,t)=>{e.isIntersecting?(n(),c.current=window.setTimeout(()=>{var e,r;let n=t.takeRecords();(0===n.length||null!=(r=null==(e=n.at(-1))?void 0:e.isIntersecting)&&r)&&(u.current=h(e=>{e.timeRemaining()>0||e.didTimeout?(o(!0),t.disconnect()):u.current=h(()=>{o(!0),t.disconnect()},{timeout:s/2})},{timeout:s}))},r)):n()},d=new IntersectionObserver(e=>{for(let t of e)i(t,d)},{rootMargin:a,threshold:0});return d.observe(e),()=>{c.current&&clearTimeout(c.current),u.current&&p(u.current),d.disconnect()}},[t,r,a,s,p,h]),{shouldRender:i,containerRef:l}}({immediate:s});return((0,n.useEffect)(()=>{if(b){if(!A)return void c("Mermaid plugin not available. Please add the mermaid plugin to enable diagram rendering.");(async()=>{try{c(null),d(!0);let e=A.getMermaid(a),r=t.split("").reduce((e,t)=>(e<<5)-e+t.charCodeAt(0)|0,0),n="mermaid-".concat(Math.abs(r),"-").concat(Date.now(),"-").concat(Math.random().toString(36).substring(2,9)),{svg:s}=await e.render(n,t);p(s),f(s)}catch(e){m||h||c(e instanceof Error?e.message:"Failed to render Mermaid chart")}finally{d(!1)}})()}},[t,a,E,b,A]),b||h||m)?!u||h||m?!l||h||m?(0,rW.jsx)("div",{className:o("size-full",r),"data-streamdown":"mermaid",ref:k,children:(0,rW.jsx)(iZ,{className:o(s?"size-full overflow-hidden":"overflow-hidden",r),fullscreen:s,maxZoom:3,minZoom:.5,showControls:i,zoomStep:.1,children:(0,rW.jsx)("div",{"aria-label":"Mermaid chart",className:o("flex justify-center",s?"size-full items-center":null),dangerouslySetInnerHTML:{__html:h||m},role:"img"})})}):_?(0,rW.jsx)("div",{ref:k,children:(0,rW.jsx)(_,{chart:t,error:l,retry:()=>T(e=>e+1)})}):(0,rW.jsxs)("div",{className:o("rounded-md bg-red-50 p-4",r),ref:k,children:[(0,rW.jsxs)("p",{className:o("font-mono text-red-700 text-sm"),children:["Mermaid Error: ",l]}),(0,rW.jsxs)("details",{className:o("mt-2"),children:[(0,rW.jsx)("summary",{className:o("cursor-pointer text-red-600 text-xs"),children:"Show Code"}),(0,rW.jsx)("pre",{className:o("mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs"),children:t})]})]}):(0,rW.jsx)("div",{className:o("my-4 flex justify-center p-4",r),ref:k,children:(0,rW.jsxs)("div",{className:o("flex items-center space-x-2 text-muted-foreground"),children:[(0,rW.jsx)("div",{className:o("h-4 w-4 animate-spin rounded-full border-current border-b-2")}),(0,rW.jsx)("span",{className:o("text-sm"),children:"Loading diagram..."})]})}):(0,rW.jsx)("div",{className:o("my-4 min-h-[200px]",r),ref:k})}},87297:function(e,t,r){var n=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(r(83426)),a=r(94709);function s(e,t){var r={};return e&&"string"==typeof e&&(0,n.default)(e,function(e,n){e&&n&&(r[(0,a.camelCase)(e,t)]=n)}),r}s.default=s,e.exports=s},94709:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var r=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,a=/^[^-]+$/,s=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,o=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){var c;return(void 0===t&&(t={}),!(c=e)||a.test(c)||r.test(c))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(i,l):e.replace(s,l)).replace(n,o))}}}]);
|