@loicngr/kobo 2.1.28 → 2.1.30
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/AGENTS.md +60 -11
- package/CHANGELOG.md +20 -1
- package/CONFIGURATION.md +140 -35
- package/CONTRIBUTING.md +2 -2
- package/DESIGN.md +1 -1
- package/README.md +12 -9
- package/SECURITY.md +7 -2
- package/dist/server/db/memory-schema.js +5 -5
- package/dist/server/db/migrations.js +2 -0
- package/dist/server/db/mistral-memory-migration.js +40 -0
- package/dist/server/routes/engines.js +14 -0
- package/dist/server/routes/environment.js +1 -1
- package/dist/server/routes/health.js +14 -3
- package/dist/server/routes/settings.js +7 -1
- package/dist/server/routes/workspaces.js +116 -9
- package/dist/server/services/agent/engines/claude-code/capabilities.js +2 -0
- package/dist/server/services/agent/engines/claude-code/engine.js +3 -0
- package/dist/server/services/agent/engines/claude-code/resolve-binary.js +1 -1
- package/dist/server/services/agent/engines/codex/capabilities.js +2 -0
- package/dist/server/services/agent/engines/codex/engine.js +3 -0
- package/dist/server/services/agent/engines/configuration.js +14 -0
- package/dist/server/services/agent/engines/mistral-vibe/capabilities.js +13 -0
- package/dist/server/services/agent/engines/mistral-vibe/client.js +64 -0
- package/dist/server/services/agent/engines/mistral-vibe/configuration.js +76 -0
- package/dist/server/services/agent/engines/mistral-vibe/engine.js +361 -0
- package/dist/server/services/agent/engines/mistral-vibe/event-mapper.js +297 -0
- package/dist/server/services/agent/engines/mistral-vibe/options-builder.js +35 -0
- package/dist/server/services/agent/engines/mistral-vibe/server-requests.js +278 -0
- package/dist/server/services/agent/engines/mistral-vibe/spawn.js +176 -0
- package/dist/server/services/agent/engines/registry.js +2 -0
- package/dist/server/services/agent/engines/types.js +6 -0
- package/dist/server/services/agent/orchestrator.js +88 -25
- package/dist/server/services/agent/session-controller.js +5 -0
- package/dist/server/services/auto-loop-final-review-service.js +10 -3
- package/dist/server/services/dev-server-service.js +68 -4
- package/dist/server/services/environment-check-service.js +9 -3
- package/dist/server/services/memory-service.js +1 -1
- package/dist/server/services/mistral-options-service.js +145 -0
- package/dist/server/services/pr-watcher-service.js +40 -11
- package/dist/server/services/review-service.js +33 -9
- package/dist/server/services/session-handoff-service.js +28 -2
- package/dist/server/services/settings-defaults.js +1 -0
- package/dist/server/services/settings-service.js +19 -1
- package/dist/server/services/workspace-creation-mcp-service.js +50 -8
- package/dist/server/services/workspace-dialogue-service.js +2 -0
- package/dist/server/services/workspace-message-service.js +19 -1
- package/dist/server/services/workspace-permission-policy-service.js +24 -0
- package/dist/server/utils/bounded-process.js +1 -1
- package/dist/shared/launch-instructions.js +18 -7
- package/dist/shared/memory.js +1 -1
- package/dist/shared/mistral-models.js +9 -0
- package/dist/shared/mistral-options.js +1 -0
- package/dist/shared/question-selections.js +16 -0
- package/dist/shared/workspace-creation-tools.js +8 -2
- package/dist/shared/workspace-dialogue-tools.js +15 -4
- package/docs/deployment-vps.md +10 -3
- package/docs/getting-started.md +4 -3
- package/docs/troubleshooting.md +2 -2
- package/package.json +20 -14
- package/src/client/dist/pwa/assets/ActivityFeed-C5stmHXP.js +2 -0
- package/src/client/dist/pwa/assets/AutoLoopFinalReviewSettings-CIDSX32d.css +1 -0
- package/src/client/dist/pwa/assets/AutoLoopFinalReviewSettings-DG32W_0G.js +1 -0
- package/src/client/dist/pwa/assets/{ChangelogPage-CAAUEn5X.js → ChangelogPage-_vItY8vA.js} +1 -1
- package/src/client/dist/pwa/assets/{ClosePopup-CRV2hxHS.js → ClosePopup-rU8Bm-mC.js} +1 -1
- package/src/client/dist/pwa/assets/{ComparisonPanel-BCb7vB5E.js → ComparisonPanel-B3BMzQH0.js} +2 -2
- package/src/client/dist/pwa/assets/CreatePage-FlGrfmjX.js +2 -0
- package/src/client/dist/pwa/assets/CreatePage-oh8ihVC4.css +1 -0
- package/src/client/dist/pwa/assets/{DashboardPage-XE52EABP.js → DashboardPage-lJGwWQYQ.js} +1 -1
- package/src/client/dist/pwa/assets/DiffViewer-DIaQH3lA.js +8 -0
- package/src/client/dist/pwa/assets/{DocumentsPanel-L4pbQfz1.js → DocumentsPanel-Ct-nm4fX.js} +1 -1
- package/src/client/dist/pwa/assets/{DrawerToggleButton-DiOJm5he.js → DrawerToggleButton-M5qv4Io-.js} +1 -1
- package/src/client/dist/pwa/assets/GitPanel-BaHCgb3p.js +3 -0
- package/src/client/dist/pwa/assets/GitPanel-C8vw2qvW.css +1 -0
- package/src/client/dist/pwa/assets/HealthPage-DR3wa6iD.js +1 -0
- package/src/client/dist/pwa/assets/HealthPage-Dbn4J_DT.css +1 -0
- package/src/client/dist/pwa/assets/{MainLayout-DoAEgANU.css → MainLayout-CHi8qP1D.css} +1 -1
- package/src/client/dist/pwa/assets/MainLayout-WJabICsA.js +2 -0
- package/src/client/dist/pwa/assets/{MemoryPanel-DtEvh_b7.js → MemoryPanel-CRpWdfc0.js} +1 -1
- package/src/client/dist/pwa/assets/MemoryProposalList-DGz3lDbL.js +1 -0
- package/src/client/dist/pwa/assets/{QBadge-CW3Lw-kL.js → QBadge-DiwbRpte.js} +1 -1
- package/src/client/dist/pwa/assets/{QBanner-BT2ZemYu.js → QBanner-Cw89HSjk.js} +1 -1
- package/src/client/dist/pwa/assets/QBtn-kfhHFy7Q.js +1 -0
- package/src/client/dist/pwa/assets/{QBtnDropdown-CWPIugs8.js → QBtnDropdown-tt8rUNNR.js} +1 -1
- package/src/client/dist/pwa/assets/{QBtnGroup-CnM4vSJA.js → QBtnGroup-Bioxjp9q.js} +1 -1
- package/src/client/dist/pwa/assets/{QBtnToggle-DccOOtbh.js → QBtnToggle-Bod-x9im.js} +1 -1
- package/src/client/dist/pwa/assets/{QChip-Be16M4Ig.js → QChip-DvhtPv_L.js} +1 -1
- package/src/client/dist/pwa/assets/{QExpansionItem-D-EGL2b3.js → QExpansionItem-BkrI3UPL.js} +1 -1
- package/src/client/dist/pwa/assets/{QItemSection-MdJ1_ZK7.js → QItemSection-ahqRK4JF.js} +1 -1
- package/src/client/dist/pwa/assets/{QList-Cx1UfaUm.js → QList-CAUl0v66.js} +1 -1
- package/src/client/dist/pwa/assets/{QMarkupTable-UhP7fVUp.js → QMarkupTable-B4LLAly-.js} +1 -1
- package/src/client/dist/pwa/assets/{QPage-CqkGHokx.js → QPage-DIy_mRoT.js} +1 -1
- package/src/client/dist/pwa/assets/{QScrollArea-BMrqK-xd.js → QScrollArea-BvgnY-oA.js} +1 -1
- package/src/client/dist/pwa/assets/QSelect-BtZB1wrB.js +1 -0
- package/src/client/dist/pwa/assets/{QSpinnerDots-xdWyaE1i.js → QSpinnerDots-Bea6hAuJ.js} +1 -1
- package/src/client/dist/pwa/assets/{QTooltip-Bk8dLUtU.js → QTooltip-CDH6p745.js} +1 -1
- package/src/client/dist/pwa/assets/{SchedulePanel-CuxmxCKi.js → SchedulePanel-C2rWlh7l.js} +1 -1
- package/src/client/dist/pwa/assets/{SearchPage-DKnQPUqY.js → SearchPage-BFd4NQwJ.js} +1 -1
- package/src/client/dist/pwa/assets/{SettingsPage-B4rmd2WX.css → SettingsPage-Bm0TcarK.css} +1 -1
- package/src/client/dist/pwa/assets/SettingsPage-DDQCgnjL.js +9 -0
- package/src/client/dist/pwa/assets/{SplitWorkspacePage-WhQyX8fn.js → SplitWorkspacePage-DKCtOZO4.js} +1 -1
- package/src/client/dist/pwa/assets/TerminalPanel-BE_MSZF0.js +16 -0
- package/src/client/dist/pwa/assets/{ToolCallItem-DYubi-J0.js → ToolCallItem-BEYaOtgh.js} +4 -4
- package/src/client/dist/pwa/assets/{TouchPan-DDotyYLN.js → TouchPan-DeYoOjX5.js} +1 -1
- package/src/client/dist/pwa/assets/{TourReplayButton-kAnEMcy2.js → TourReplayButton-D5lMwIKt.js} +1 -1
- package/src/client/dist/pwa/assets/WorkspaceAttentionLabels-BHEAsIoo.js +1 -0
- package/src/client/dist/pwa/assets/WorkspaceAttentionLabels-v7ein__H.css +1 -0
- package/src/client/dist/pwa/assets/WorkspacePage-5_wsJPaJ.js +4 -0
- package/src/client/dist/pwa/assets/WorkspacePage-CtUXz0Cq.css +1 -0
- package/src/client/dist/pwa/assets/{browser-DVYLH8vl.js → browser-ogy_9LVv.js} +2 -2
- package/src/client/dist/pwa/assets/build-path-tree-CRXxaYkA.js +1 -0
- package/src/client/dist/pwa/assets/custom-sounds-iLTkCd_i.js +1 -0
- package/src/client/dist/pwa/assets/de-BqDU7iZH.js +17 -0
- package/src/client/dist/pwa/assets/detached-fullscreen-CHqMxB-8.js +1 -0
- package/src/client/dist/pwa/assets/dom-CRPVbmiy.js +2 -0
- package/src/client/dist/pwa/assets/ecl-94qehhXe.js +1 -0
- package/src/client/dist/pwa/assets/{editor.api-BC38eXAS.js → editor.api-Dx6TbfZG.js} +9 -9
- package/src/client/dist/pwa/assets/editor.worker-xrHNhPSq.js +33 -0
- package/src/client/dist/pwa/assets/efforts-DnJh2fW_.js +9 -0
- package/src/client/dist/pwa/assets/es-D4VMXQRk.js +17 -0
- package/src/client/dist/pwa/assets/expand-template-PUEVWny3.js +1 -0
- package/src/client/dist/pwa/assets/{format-OwxXBnDJ.js → format-yf9XM3dV.js} +48 -48
- package/src/client/dist/pwa/assets/{formatters-YgaCZcwJ.js → formatters-D0sXu9Oe.js} +1 -1
- package/src/client/dist/pwa/assets/fr-DIyaCFB3.js +17 -0
- package/src/client/dist/pwa/assets/{freemarker2-l7R42fI2.js → freemarker2-l_xIHxRf.js} +1 -1
- package/src/client/dist/pwa/assets/{handlebars-DFmPrgjH.js → handlebars-CYgq99yQ.js} +1 -1
- package/src/client/dist/pwa/assets/{html-CERIAlPM.js → html-C28GatN_.js} +1 -1
- package/src/client/dist/pwa/assets/i18n-2AmHIUy0.js +1 -0
- package/src/client/dist/pwa/assets/index-C0MApoXN.css +1 -0
- package/src/client/dist/pwa/assets/index-MMYMztJ_.js +20 -0
- package/src/client/dist/pwa/assets/it-CF6_4OS0.js +17 -0
- package/src/client/dist/pwa/assets/{javascript-BBYncplF.js → javascript-YCSueyyk.js} +1 -1
- package/src/client/dist/pwa/assets/{liquid-C1HqYyYU.js → liquid-CUBn90Gs.js} +1 -1
- package/src/client/dist/pwa/assets/{mdx-E74dsP22.js → mdx-C5WOHShJ.js} +1 -1
- package/src/client/dist/pwa/assets/monaco-contributions-DYwqbh7m.js +53 -0
- package/src/client/dist/pwa/assets/{monaco.contribution-DYdn9CwR.js → monaco.contribution-CoFzrPQl.js} +2 -2
- package/src/client/dist/pwa/assets/network-auth-BpJ6Noax.js +1 -0
- package/src/client/dist/pwa/assets/notify-theme-NPq4-Tup.js +1 -0
- package/src/client/dist/pwa/assets/permissionModes-Bbl901Hx.js +36 -0
- package/src/client/dist/pwa/assets/{private.use-form-DY1BkePL.js → private.use-form-BcspuzM9.js} +1 -1
- package/src/client/dist/pwa/assets/{project-color-_snXWYUp.js → project-color-gNyhKJlV.js} +1 -1
- package/src/client/dist/pwa/assets/{python-DNAAGBcX.js → python-lhKUZdPj.js} +1 -1
- package/src/client/dist/pwa/assets/{razor-CB3g5p_T.js → razor-Chi44rEL.js} +1 -1
- package/src/client/dist/pwa/assets/reactivity.esm-bundler-Dplx1ILy.js +1 -0
- package/src/client/dist/pwa/assets/render-chat-markdown-C9ihAYBt.js +67 -0
- package/src/client/dist/pwa/assets/runtime-core.esm-bundler-BAUgNzMK.js +1 -0
- package/src/client/dist/pwa/assets/{typescript-0kpz8bqP.js → typescript-CU2TXVm6.js} +1 -1
- package/src/client/dist/pwa/assets/{use-checkbox-v4aAbE6K.js → use-checkbox-DUxgXR4e.js} +1 -1
- package/src/client/dist/pwa/assets/{use-id-BrdYXce0.js → use-id-B7ieAx2m.js} +1 -1
- package/src/client/dist/pwa/assets/use-is-mobile-CHmaewI1.js +1 -0
- package/src/client/dist/pwa/assets/{use-search-index-status-D38yFOD_.js → use-search-index-status-CQ9S05G7.js} +1 -1
- package/src/client/dist/pwa/assets/use-slide-transition-BJh9xGMa.js +1 -0
- package/src/client/dist/pwa/assets/use-tours-BmrZbHjz.js +2 -0
- package/src/client/dist/pwa/assets/use-tours-CU5oA7cz.css +1 -0
- package/src/client/dist/pwa/assets/use-worktree-restore-DcucRlLh.js +1 -0
- package/src/client/dist/pwa/assets/{workspace-templates-D-lPJQ4G.js → workspace-templates-DaG42EEt.js} +1 -1
- package/src/client/dist/pwa/assets/{xml-BbOuqdUe.js → xml-CPO5LI6F.js} +1 -1
- package/src/client/dist/pwa/assets/{yaml-gasFQtfk.js → yaml-CoYs82jI.js} +1 -1
- package/src/client/dist/pwa/index.html +10 -10
- package/src/client/dist/pwa/sw.js +1 -1
- package/src/mcp-server/README.md +18 -6
- package/src/client/dist/pwa/assets/ActivityFeed-D58VS9o2.js +0 -2
- package/src/client/dist/pwa/assets/AutoLoopFinalReviewSettings-CK3r_fVB.js +0 -1
- package/src/client/dist/pwa/assets/AutoLoopFinalReviewSettings-Q-OlSQ1c.css +0 -1
- package/src/client/dist/pwa/assets/CreatePage-DasH1Uk4.js +0 -2
- package/src/client/dist/pwa/assets/CreatePage-DxOes_cF.css +0 -1
- package/src/client/dist/pwa/assets/DiffViewer-CncKlXne.js +0 -8
- package/src/client/dist/pwa/assets/GitPanel-WJlzy2VJ.js +0 -3
- package/src/client/dist/pwa/assets/GitPanel-yHvU38dp.css +0 -1
- package/src/client/dist/pwa/assets/HealthPage-Cnlhrn--.css +0 -1
- package/src/client/dist/pwa/assets/HealthPage-hJY5MurK.js +0 -1
- package/src/client/dist/pwa/assets/MainLayout-DgWElK7w.js +0 -2
- package/src/client/dist/pwa/assets/MemoryProposalList-kgFCm9zz.js +0 -1
- package/src/client/dist/pwa/assets/QBtn-BUSdPaf4.js +0 -1
- package/src/client/dist/pwa/assets/QSelect-DFWyDWCE.js +0 -1
- package/src/client/dist/pwa/assets/SettingsPage-CO3vIpPd.js +0 -9
- package/src/client/dist/pwa/assets/TerminalPanel-BY0lPq6k.js +0 -16
- package/src/client/dist/pwa/assets/WorkspaceAttentionLabels-B9LE8HtU.css +0 -1
- package/src/client/dist/pwa/assets/WorkspaceAttentionLabels-DiYt3rP3.js +0 -1
- package/src/client/dist/pwa/assets/WorkspacePage-BEBwwr81.css +0 -1
- package/src/client/dist/pwa/assets/WorkspacePage-K-1ce50d.js +0 -4
- package/src/client/dist/pwa/assets/build-path-tree-DEuOdIIk.js +0 -1
- package/src/client/dist/pwa/assets/custom-sounds-Ggw6V9iF.js +0 -1
- package/src/client/dist/pwa/assets/de-Bk3zQrin.js +0 -17
- package/src/client/dist/pwa/assets/detached-fullscreen-Du3TcYdX.js +0 -1
- package/src/client/dist/pwa/assets/dom-BtYTvLeN.js +0 -2
- package/src/client/dist/pwa/assets/ecl-D05T4iGw.js +0 -1
- package/src/client/dist/pwa/assets/editor.worker-BLJF_oQx.js +0 -33
- package/src/client/dist/pwa/assets/efforts-TGacUPcJ.js +0 -9
- package/src/client/dist/pwa/assets/es-f3xuAWA9.js +0 -17
- package/src/client/dist/pwa/assets/expand-template-DM8gq3Mo.js +0 -1
- package/src/client/dist/pwa/assets/fr-B6c21SG3.js +0 -17
- package/src/client/dist/pwa/assets/i18n-WaE4cZK9.js +0 -1
- package/src/client/dist/pwa/assets/index-C8zAZ-k-.css +0 -1
- package/src/client/dist/pwa/assets/index-CpWBGKdM.js +0 -20
- package/src/client/dist/pwa/assets/it-DUstDpC2.js +0 -17
- package/src/client/dist/pwa/assets/monaco-contributions-DHvm-kp5.js +0 -53
- package/src/client/dist/pwa/assets/network-auth-DTZUKbny.js +0 -1
- package/src/client/dist/pwa/assets/notify-theme-FuTL7HuS.js +0 -1
- package/src/client/dist/pwa/assets/permissionModes-D-Nexnoo.js +0 -36
- package/src/client/dist/pwa/assets/reactivity.esm-bundler-DY1JkAEA.js +0 -1
- package/src/client/dist/pwa/assets/render-chat-markdown-CafzCcmu.js +0 -69
- package/src/client/dist/pwa/assets/runtime-core.esm-bundler-Bqg71Vll.js +0 -1
- package/src/client/dist/pwa/assets/use-is-mobile-CDB_rzM9.js +0 -1
- package/src/client/dist/pwa/assets/use-slide-transition-B_Nu6u-t.js +0 -1
- package/src/client/dist/pwa/assets/use-tours-BWkHp34X.js +0 -2
- package/src/client/dist/pwa/assets/use-tours-CTZuBZOi.css +0 -1
- package/src/client/dist/pwa/assets/use-worktree-restore-DUjZr44N.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{At as e,Et as t,Ot as n,jt as r,kt as i,p as a}from"./index-CpWBGKdM.js";var o=a(async()=>{let a=n(),o=window.fetch.bind(window);if(window.fetch=async(t,n)=>{let a=i(),s=typeof t==`string`?t:t instanceof URL?t.href:t.url,c=await o(t,n);return c.status===401&&e(s)&&r(a),c},a){let e=i();try{(await t(a)).ok||r(e)}catch{r(e)}}});export{o as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Ct as e,D as t,p as n}from"./index-CpWBGKdM.js";var r=n(()=>{e.registerType(`negative`,{...t,color:`kobo-danger`,textColor:`kobo-ink`,icon:`error`,position:`top`}),e.registerType(`positive`,{color:`kobo-success`,textColor:`kobo-ink`,icon:`check_circle`,position:`top`}),e.registerType(`warning`,{color:`kobo-warning`,textColor:`kobo-ink`,icon:`warning`,position:`top`}),e.registerType(`info`,{color:`kobo-surface`,textColor:`kobo-1`,icon:`info`,position:`top`})});export{r as default};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
var e=`You are reviewing code changes on workspace "{{workspace_name}}" in project {{project_name}}.
|
|
2
|
-
|
|
3
|
-
Branch: {{branch_name}} (base: {{source_branch}})
|
|
4
|
-
Base commit: {{base_commit}}
|
|
5
|
-
|
|
6
|
-
If a code-review skill is available in this environment, invoke it to drive this audit. Otherwise follow the manual checklist below.
|
|
7
|
-
|
|
8
|
-
## Scope
|
|
9
|
-
|
|
10
|
-
Review ALL changes — both committed and uncommitted in the working tree:
|
|
11
|
-
- \`git diff {{base_commit}}..HEAD\` — committed changes on this branch
|
|
12
|
-
- \`git status\` and \`git diff\` / \`git diff --cached\` — unstaged / staged changes; inspect untracked files too
|
|
13
|
-
|
|
14
|
-
## Diff summary
|
|
15
|
-
{{diff_stats}}
|
|
16
|
-
|
|
17
|
-
## Commits
|
|
18
|
-
{{commits}}
|
|
19
|
-
|
|
20
|
-
## Additional instructions
|
|
21
|
-
{{additional_instructions}}
|
|
22
|
-
|
|
23
|
-
## Output
|
|
24
|
-
|
|
25
|
-
If no review skill is available, structure your reply as:
|
|
26
|
-
1. Summary — what changed and why
|
|
27
|
-
2. Issues — bugs, regressions, security or perf concerns (with file:line)
|
|
28
|
-
3. Suggestions — refactor / improvement opportunities
|
|
29
|
-
4. Tests — coverage gaps
|
|
30
|
-
5. Verdict — ship / fix-then-ship / blocked
|
|
31
|
-
`,t="Code review gate — BEFORE marking the task done, run whichever code-review skill is configured in this environment. Brief it with: what you just implemented, the task title, and the commit SHA (via `git rev-parse HEAD`). Ask specifically whether the change matches the task scope, whether edge cases are handled, and whether all committed and uncommitted changes are correct. Include staged, unstaged and untracked files. If no review skill is available, do a manual self-review against the same criteria.",n=`You are preparing this workspace for Kōbō auto-loop mode. This is a GROOMING session only — DO NOT implement anything, DO NOT write or edit code, DO NOT run tests or builds, DO NOT invoke any implementation, planning, or release skill (your environment may have several). Your ONLY job is to curate the Kōbō task list via MCP tools.`,r=`QA pass for workspace "{{workspace_name}}" in project {{project_name}}.
|
|
32
|
-
|
|
33
|
-
Branch: {{branch_name}}
|
|
34
|
-
Staging URL: {{staging_url}}
|
|
35
|
-
|
|
36
|
-
If a QA skill is configured in this environment, invoke it on {{staging_url}}. Otherwise, manually exercise the staging URL against the workspace's acceptance criteria and report findings.`,i=`Brainstorm the implementation approach. Explore the codebase to understand the existing structure. Ask clarifying questions if needed. When you have a clear, user-approved plan, save it as a plan file in the project.`;function a(e,t){return e===`standard`?n:e===`custom`?(t??``).trim()||`You are preparing this workspace for Kōbō auto-loop mode. This is a GROOMING session only — DO NOT implement anything, DO NOT write or edit code, DO NOT run tests or builds, DO NOT invoke any implementation, planning, or release skill (your environment may have several). Your ONLY job is to curate the Kōbō task list via MCP tools.`:e===`superpowers+gstack+ecc`?"You are preparing this workspace for Kōbō auto-loop mode. This is a GROOMING session only — DO NOT implement anything, DO NOT write or edit code, DO NOT run tests or builds, DO NOT invoke `superpowers:executing-plans`, `/ship`, `/autoplan`, `/land-and-deploy`, `ecc:feature-dev`, `ecc:tdd-workflow`, `ecc:plan`, or any other implementation, planning, or release skill. Your ONLY job is to curate the Kōbō task list via MCP tools.":e===`superpowers+gstack`?"You are preparing this workspace for Kōbō auto-loop mode. This is a GROOMING session only — DO NOT implement anything, DO NOT write or edit code, DO NOT run tests or builds, DO NOT invoke `superpowers:executing-plans`, `/ship`, `/autoplan`, `/land-and-deploy`, or any other implementation, planning, or release skill. Your ONLY job is to curate the Kōbō task list via MCP tools.":e===`ecc`?"You are preparing this workspace for Kōbō auto-loop mode. This is a GROOMING session only — DO NOT implement anything, DO NOT write or edit code, DO NOT run tests or builds, DO NOT invoke `ecc:feature-dev`, `ecc:tdd-workflow`, `ecc:plan`, or any other implementation, planning, or release skill. Your ONLY job is to curate the Kōbō task list via MCP tools.":e===`gstack`?"You are preparing this workspace for Kōbō auto-loop mode. This is a GROOMING session only — DO NOT implement anything, DO NOT write or edit code, DO NOT run tests or builds, DO NOT invoke `/ship`, `/autoplan`, `/land-and-deploy`, or any implementation skill. Your ONLY job is to curate the Kōbō task list via MCP tools.":"You are preparing this workspace for Kōbō auto-loop mode. This is a GROOMING session only — DO NOT implement anything, DO NOT write or edit code, DO NOT run tests or builds, DO NOT invoke `superpowers:executing-plans` or any implementation skill. Your ONLY job is to curate the Kōbō task list via MCP tools."}var o=[{id:`auto`,label:`Auto`,i18nLabelKey:`model.auto`,i18nDescriptionKey:`model.autoDescription`},{id:`gpt-6.1-sol`,label:`GPT-6.1 Sol`,i18nLabelKey:`model.gpt61sol`,i18nDescriptionKey:`model.gpt61solDescription`},{id:`gpt-6-astra`,label:`GPT-6 Astra`,i18nLabelKey:`model.gpt6astra`,i18nDescriptionKey:`model.gpt6astraDescription`},{id:`gpt-6-sol`,label:`GPT-6 Sol`,i18nLabelKey:`model.gpt6sol`,i18nDescriptionKey:`model.gpt6solDescription`},{id:`gpt-6-luna`,label:`GPT-6 Luna`,i18nLabelKey:`model.gpt6luna`,i18nDescriptionKey:`model.gpt6lunaDescription`},{id:`gpt-5.6-sol`,label:`GPT-5.6 Sol`,i18nLabelKey:`model.gpt56sol`,i18nDescriptionKey:`model.gpt56solDescription`},{id:`gpt-5.6-terra`,label:`GPT-5.6 Terra`,i18nLabelKey:`model.gpt56terra`,i18nDescriptionKey:`model.gpt56terraDescription`},{id:`gpt-5.6-luna`,label:`GPT-5.6 Luna`,i18nLabelKey:`model.gpt56luna`,i18nDescriptionKey:`model.gpt56lunaDescription`},{id:`gpt-5.5`,label:`GPT-5.5`,i18nLabelKey:`model.gpt55`,i18nDescriptionKey:`model.gpt55Description`}],s=[{id:`auto`,label:`Auto`,i18nLabelKey:`model.auto`,i18nDescriptionKey:`model.autoDescription`},{id:`claude-fable-5-1`,label:`Fable 5.1`,i18nLabelKey:`model.fable51`,i18nDescriptionKey:`model.fable51Description`},{id:`claude-mythos-5-1`,label:`Mythos 5.1 (Glasswing)`,i18nLabelKey:`model.mythos51`,i18nDescriptionKey:`model.mythos51Description`},{id:`claude-mythos-5`,label:`Mythos 5 (Glasswing)`,i18nLabelKey:`model.mythos5`,i18nDescriptionKey:`model.mythos5Description`},{id:`claude-opus-5-5`,label:`Opus 5.5`,i18nLabelKey:`model.opus55`,i18nDescriptionKey:`model.opus55Description`},{id:`claude-sonnet-5-5`,label:`Sonnet 5.5`,i18nLabelKey:`model.sonnet55`,i18nDescriptionKey:`model.sonnet55Description`},{id:`claude-haiku-5-5`,label:`Haiku 5.5`,i18nLabelKey:`model.haiku55`,i18nDescriptionKey:`model.haiku55Description`},{id:`claude-haiku-4-5-20251001`,label:`Haiku 4.5`,i18nLabelKey:`model.haiku`,i18nDescriptionKey:`model.haikuDescription`},{id:`claude-sonnet-5`,label:`Sonnet 5`,i18nLabelKey:`model.sonnet5`,i18nDescriptionKey:`model.sonnet5Description`},{id:`claude-opus-5`,label:`Opus 5`,i18nLabelKey:`model.opus5`,i18nDescriptionKey:`model.opus5Description`},{id:`claude-fable-5`,label:`Fable 5`,i18nLabelKey:`model.fable5`,i18nDescriptionKey:`model.fable5Description`},{id:`claude-opus-4-8`,label:`Opus 4.8`,i18nLabelKey:`model.opus48`,i18nDescriptionKey:`model.opus48Description`},{id:`claude-opus-4-7`,label:`Opus 4.7`,i18nLabelKey:`model.opus47Classic`,i18nDescriptionKey:`model.opus47ClassicDescription`},{id:`claude-opus-4-6`,label:`Opus 4.6`,i18nLabelKey:`model.opus`,i18nDescriptionKey:`model.opusClassicDescription`},{id:`claude-sonnet-4-6`,label:`Sonnet 4.6`,i18nLabelKey:`model.sonnet`,i18nDescriptionKey:`model.sonnetClassicDescription`}];function c(e){return e.map(e=>({value:e.id,i18nLabelKey:e.i18nLabelKey,i18nDescriptionKey:e.i18nDescriptionKey}))}var l=c(s),u=c(o),d={"claude-code":l,codex:u},f={"claude-code":[`plan`,`bypass`,`strict`,`interactive`],codex:[`plan`,`bypass`,`strict`,`interactive`]};export{n as a,r as c,d as i,e as l,u as n,t as o,l as r,i as s,f as t,a as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function e(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var t={},n=[],r=()=>{},i=()=>!1,a=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),o=e=>e.startsWith(`onUpdate:`),s=Object.assign,c=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},l=Object.prototype.hasOwnProperty,u=(e,t)=>l.call(e,t),d=Array.isArray,f=e=>S(e)===`[object Map]`,p=e=>S(e)===`[object Set]`,m=e=>S(e)===`[object Date]`,h=e=>S(e)===`[object RegExp]`,g=e=>typeof e==`function`,_=e=>typeof e==`string`,v=e=>typeof e==`symbol`,y=e=>typeof e==`object`&&!!e,b=e=>(y(e)||g(e))&&g(e.then)&&g(e.catch),x=Object.prototype.toString,S=e=>x.call(e),C=e=>S(e).slice(8,-1),w=e=>S(e)===`[object Object]`,ee=e=>_(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,te=e(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),T=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},ne=/-\w/g,re=T(e=>e.replace(ne,e=>e.slice(1).toUpperCase())),ie=/\B([A-Z])/g,ae=T(e=>e.replace(ie,`-$1`).toLowerCase()),oe=T(e=>e.charAt(0).toUpperCase()+e.slice(1)),se=T(e=>e?`on${oe(e)}`:``),E=(e,t)=>!Object.is(e,t),ce=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},le=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},ue=e=>{let t=parseFloat(e);return isNaN(t)?e:t},de=e=>{let t=_(e)?Number(e):NaN;return isNaN(t)?e:t},fe,pe=()=>fe||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{};function me(e){if(d(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=_(r)?ve(r):me(r);if(i)for(let e in i)t[e]=i[e]}return t}if(_(e)||y(e))return e}var he=/;(?![^(]*\))/g,ge=/:([^]+)/,_e=/"(?:[^"\\]|\\[^])*"|'(?:[^'\\]|\\[^])*'|\\[^]|\/\*[^]*?\*\//g;function ve(e){let t={};return e.replace(_e,e=>e.startsWith(`/*`)?``:e).split(he).forEach(e=>{if(e){let n=e.split(ge);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function ye(e){let t=``;if(_(e))t=e;else if(d(e))for(let n=0;n<e.length;n++){let r=ye(e[n]);r&&(t+=r+` `)}else if(y(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}function be(e){if(!e)return null;let{class:t,style:n}=e;return t&&!_(t)&&(e.class=ye(t)),n&&(e.style=me(n)),e}var xe=`itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`,Se=e(xe);xe+``;function Ce(e){return!!e||e===``}function we(e,t,n){if(e.length!==t.length)return!1;let r=!0;for(let i=0;r&&i<e.length;i++)r=D(e[i],t[i],n);return r}function Te(e,t,n){if(e.size!==t.size)return!1;let r=Array.from(t),i=new Uint8Array(r.length);for(let t of e){let e=-1;for(let a=0;a<r.length;a++)if(!i[a]&&D(t,r[a],n)){e=a;break}if(e<0)return!1;i[e]=1}return!0}function Ee(e,t,n){let r=f(e),i=f(t);if(r||i||(r=p(e),i=p(t),r||i))return r&&i?Te(e,t,n):!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e){let i=e.hasOwnProperty(r),a=t.hasOwnProperty(r);if(i&&!a||!i&&a||!D(e[r],t[r],n))return!1}return String(e)===String(t)}function De(e,t,n,r){n||=[new Map,new Map];let[i,a]=n;if(i.has(e)||a.has(t))return i.get(e)===t&&a.get(t)===e;i.set(e,t),a.set(t,e);let o=r(e,t,n);return i.delete(e),a.delete(t),o}function D(e,t,n){if(e===t)return!0;let r=m(e),i=m(t);return r||i?r&&i?e.getTime()===t.getTime():!1:(r=v(e),i=v(t),r||i?e===t:(r=d(e),i=d(t),r||i?r&&i?De(e,t,n,we):!1:(r=y(e),i=y(t),r||i?!r||!i?!1:De(e,t,n,Ee):String(e)===String(t))))}function Oe(e,t){return e.findIndex(e=>D(e,t))}var ke=e=>!!(e&&e.__v_isRef===!0),Ae=e=>_(e)?e:e==null?``:d(e)||y(e)&&(e.toString===x||!g(e.toString))?ke(e)?Ae(e.value):JSON.stringify(e,je,2):String(e),je=(e,t)=>ke(t)?je(e,t.value):f(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[Me(t,r)+` =>`]=n,e),{})}:p(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Me(e))}:v(t)?Me(t):y(t)&&!d(t)&&!w(t)?String(t):t,Me=(e,t=``)=>v(e)?`Symbol(${e.description??t})`:e,O,Ne=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&O&&(O.active?(this.parent=O,this.index=(O.scopes||(O.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes){let n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].pause()}for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes){let n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}let n=this.effects.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}}run(e){if(this._active){let t=O;try{return O=this,e()}finally{O=t}}}on(){++this._on===1&&(this.prevScope=O,O=this)}off(){if(this._on>0&&--this._on===0){if(O===this)O=this.prevScope;else{let e=O;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){let e=this.scopes.slice();for(t=0,n=e.length;t<n;t++)e[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){let e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}};function Pe(e){return new Ne(e)}function Fe(){return O}function Ie(e,t=!1){O&&O.cleanups.push(e)}var k,Le=new WeakSet,Re=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,O&&(O.active?O.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Le.has(this)&&(Le.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Be(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Qe(this),Ue(this);let e=k,t=M;k=this,M=!0;try{return this.fn()}finally{We(this),k=e,M=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)qe(e);this.deps=this.depsTail=void 0,Qe(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Le.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ge(this)&&this.run()}get dirty(){return Ge(this)}},ze=0,A,j;function Be(e,t=!1){if(e.flags|=8,t){e.next=j,j=e;return}e.next=A,A=e}function Ve(){ze++}function He(){if(--ze>0)return;if(j){let e=j;for(j=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;A;){let t=A;for(A=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function Ue(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function We(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),qe(r),Je(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function Ge(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ke(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ke(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===N)||(e.globalVersion=N,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ge(e))))return;e.flags|=2;let t=e.dep,n=k,r=M;k=e,M=!0;try{Ue(e);let n=e.fn(e._value);(t.version===0||E(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{k=n,M=r,We(e),e.flags&=-3}}function qe(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)qe(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Je(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}var M=!0,Ye=[];function Xe(){Ye.push(M),M=!1}function Ze(){let e=Ye.pop();M=e===void 0||e}function Qe(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=k;k=void 0;try{t()}finally{k=e}}}var N=0,$e=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},P=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!k||!M||k===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==k)t=this.activeLink=new $e(k,this),k.deps?(t.prevDep=k.depsTail,k.depsTail.nextDep=t,k.depsTail=t):k.deps=k.depsTail=t,et(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=k.depsTail,t.nextDep=void 0,k.depsTail.nextDep=t,k.depsTail=t,k.deps===t&&(k.deps=e)}return t}trigger(e){this.version++,N++,this.notify(e)}notify(e){Ve();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{He()}}};function et(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)et(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var F=new WeakMap,I=Symbol(``),tt=Symbol(``),L=Symbol(``);function R(e,t,n){if(M&&k){let t=F.get(e);t||F.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new P),r.map=t,r.key=n),r.track()}}function z(e,t,n,r,i,a){let o=F.get(e);if(!o){N++;return}let s=e=>{e&&e.trigger()};if(Ve(),t===`clear`)o.forEach(s);else{let i=d(e),a=i&&ee(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===L||!v(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(L)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(I)),f(e)&&s(o.get(tt)));break;case`delete`:i||(s(o.get(I)),f(e)&&s(o.get(tt)));break;case`set`:f(e)&&s(o.get(I))}}He()}function nt(e,t){let n=F.get(e);return n&&n.get(t)}function B(e){let t=q(e);return t===e||(R(t,`iterate`,L),K(e))?t:G(e)?W(e)?t.map(e=>Y(J(e))):t.map(Y):t.map(J)}function rt(e){return R(e=q(e),`iterate`,L),e}function V(e,t){return G(e)?Y(W(e)?J(t):t):J(t)}var it={__proto__:null,[Symbol.iterator](){return at(this,Symbol.iterator,e=>V(this,e))},concat(...e){return B(this).concat(...e.map(e=>d(e)?B(e):e))},entries(){return at(this,`entries`,e=>(e[1]=V(this,e[1]),e))},every(e,t){return H(this,`every`,e,t,void 0,arguments)},filter(e,t){return H(this,`filter`,e,t,e=>e.map(e=>V(this,e)),arguments)},find(e,t){return H(this,`find`,e,t,e=>V(this,e),arguments)},findIndex(e,t){return H(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return H(this,`findLast`,e,t,e=>V(this,e),arguments)},findLastIndex(e,t){return H(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return H(this,`forEach`,e,t,void 0,arguments)},includes(...e){return ct(this,`includes`,e)},indexOf(...e){return ct(this,`indexOf`,e)},join(e){return B(this).join(e)},lastIndexOf(...e){return ct(this,`lastIndexOf`,e)},map(e,t){return H(this,`map`,e,t,void 0,arguments)},pop(){return U(this,`pop`)},push(...e){return U(this,`push`,e)},reduce(e,...t){return st(this,`reduce`,e,t)},reduceRight(e,...t){return st(this,`reduceRight`,e,t)},shift(){return U(this,`shift`)},some(e,t){return H(this,`some`,e,t,void 0,arguments)},splice(...e){return U(this,`splice`,e)},toReversed(){return B(this).toReversed()},toSorted(e){return B(this).toSorted(e)},toSpliced(...e){return B(this).toSpliced(...e)},unshift(...e){return U(this,`unshift`,e)},values(){return at(this,`values`,e=>V(this,e))}};function at(e,t,n){let r=rt(e),i=r[t]();return r!==e&&!K(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}var ot=Array.prototype;function H(e,t,n,r,i,a){let o=rt(e),s=o!==e&&!K(e),c=o[t];if(c!==ot[t]){let t=c.apply(e,a);return s?J(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,V(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function st(e,t,n,r){let i=rt(e),a=i!==e&&!K(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=V(e,t)),n.call(this,t,V(e,r),i,e)}):n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}));let c=i[t](o,...r);return s?V(e,c):c}function ct(e,t,n){let r=q(e);R(r,`iterate`,L);let i=r[t](...n);return(i===-1||i===!1)&&It(n[0])?(n[0]=q(n[0]),r[t](...n)):i}function U(e,t,n=[]){Xe(),Ve();let r=q(e)[t].apply(e,n);return He(),Ze(),r}var lt=e(`__proto__,__v_isRef,__isVue`),ut=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(v));function dt(e){v(e)||(e=String(e));let t=q(this);return R(t,`has`,e),t.hasOwnProperty(e)}var ft=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?At:kt:i?Ot:Dt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=d(e);if(!r){let e;if(a&&(e=it[t]))return e;if(t===`hasOwnProperty`)return dt}let o=Reflect.get(e,t,X(e)?e:n);if((v(t)?ut.has(t):lt(t))||(r||R(e,`get`,t),i))return o;if(X(o)){let e=a&&ee(t)?o:o.value;return r&&y(e)?Pt(e):e}return y(o)?r?Pt(o):Mt(o):o}},pt=class extends ft{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=d(e)&&ee(t);if(!this._isShallow){let e=G(i);if(!K(n)&&!G(n)&&(i=q(i),n=q(n)),!a&&X(i)&&!X(n))return e||(i.value=n),!0}let o=a?Number(t)<e.length:u(e,t),s=Reflect.set(e,t,n,X(e)?e:r);return e===q(r)&&s&&(o?E(n,i)&&z(e,`set`,t,n,i):z(e,`add`,t,n)),s}deleteProperty(e,t){let n=u(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&z(e,`delete`,t,void 0,r),i}has(e,t){let n=Reflect.has(e,t);return(!v(t)||!ut.has(t))&&R(e,`has`,t),n}ownKeys(e){return R(e,`iterate`,d(e)?`length`:I),Reflect.ownKeys(e)}},mt=class extends ft{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},ht=new pt,gt=new mt,_t=new pt(!0),vt=e=>e,yt=e=>Reflect.getPrototypeOf(e);function bt(e,t,n){return function(...r){let i=this.__v_raw,a=q(i),o=f(a),c=e===`entries`||e===Symbol.iterator&&o,l=e===`keys`&&o,u=i[e](...r),d=n?vt:t?Y:J;return!t&&R(a,`iterate`,l?tt:I),s(Object.create(u),{next(){let{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:c?[d(e[0]),d(e[1])]:d(e),done:t}}})}}function xt(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function St(e,t){let n={get(n){let r=this.__v_raw,i=q(r),a=q(n);e||(E(n,a)&&R(i,`get`,n),R(i,`get`,a));let{has:o}=yt(i),s=t?vt:e?Y:J;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&R(q(t),`iterate`,I),t.size},has(t){let n=this.__v_raw,r=q(n),i=q(t);return e||(E(t,i)&&R(r,`has`,t),R(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=q(a),s=t?vt:e?Y:J;return!e&&R(o,`iterate`,I),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return s(n,e?{add:xt(`add`),set:xt(`set`),delete:xt(`delete`),clear:xt(`clear`)}:{add(e){let n=q(this),r=yt(n),i=q(e),a=!t&&!K(e)&&!G(e)?i:e;return r.has.call(n,a)||E(e,a)&&r.has.call(n,e)||E(i,a)&&r.has.call(n,i)||(n.add(a),z(n,`add`,a,a)),this},set(e,n){!t&&!K(n)&&!G(n)&&(n=q(n));let r=q(this),{has:i,get:a}=yt(r),o=i.call(r,e);o||=(e=q(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?E(n,s)&&z(r,`set`,e,n,s):z(r,`add`,e,n),this},delete(e){let t=q(this),{has:n,get:r}=yt(t),i=n.call(t,e);i||=(e=q(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&z(t,`delete`,e,void 0,a),o},clear(){let e=q(this),t=e.size!==0,n=e.clear();return t&&z(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=bt(r,e,t)}),n}function Ct(e,t){let n=St(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(u(n,r)&&r in t?n:t,r,i)}var wt={get:Ct(!1,!1)},Tt={get:Ct(!1,!0)},Et={get:Ct(!0,!1)},Dt=new WeakMap,Ot=new WeakMap,kt=new WeakMap,At=new WeakMap;function jt(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function Mt(e){return G(e)?e:Ft(e,!1,ht,wt,Dt)}function Nt(e){return Ft(e,!1,_t,Tt,Ot)}function Pt(e){return Ft(e,!0,gt,Et,kt)}function Ft(e,t,n,r,i){if(!y(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let a=i.get(e);if(a)return a;let o=jt(C(e));if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function W(e){return G(e)?W(e.__v_raw):!!(e&&e.__v_isReactive)}function G(e){return!!(e&&e.__v_isReadonly)}function K(e){return!!(e&&e.__v_isShallow)}function It(e){return e?!!e.__v_raw:!1}function q(e){let t=e&&e.__v_raw;return t?q(t):e}function Lt(e){return!u(e,`__v_skip`)&&Object.isExtensible(e)&&le(e,`__v_skip`,!0),e}var J=e=>y(e)?Mt(e):e,Y=e=>y(e)?Pt(e):e;function X(e){return e?e.__v_isRef===!0:!1}function Rt(e){return Bt(e,!1)}function zt(e){return Bt(e,!0)}function Bt(e,t){return X(e)?e:new Vt(e,t)}var Vt=class{constructor(e,t){this.dep=new P,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:q(e),this._value=t?e:J(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||K(e)||G(e);e=n?e:q(e),E(e,t)&&(this._rawValue=e,this._value=n?e:J(e),this.dep.trigger())}};function Ht(e){return X(e)?e.value:e}function Ut(e){return g(e)?e():Ht(e)}var Wt={get:(e,t,n)=>t===`__v_raw`?e:Ht(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return X(i)&&!X(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Gt(e){return W(e)?e:new Proxy(e,Wt)}var Kt=class{constructor(e){this.__v_isRef=!0,this._value=void 0;let t=this.dep=new P,{get:n,set:r}=e(t.track.bind(t),t.trigger.bind(t));this._get=n,this._set=r}get value(){return this._value=this._get()}set value(e){this._set(e)}};function qt(e){return new Kt(e)}function Jt(e){let t=d(e)?Array(e.length):{};for(let n in e)t[n]=Qt(e,n);return t}var Yt=class{constructor(e,t,n){this._object=e,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=v(t)?t:String(t),this._raw=q(e);let r=!0,i=e;if(!d(e)||v(this._key)||!ee(this._key))do r=!It(i)||K(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let e=this._object[this._key];return this._shallow&&(e=Ht(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&X(this._raw[this._key])){let t=this._object[this._key];if(X(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return nt(this._raw,this._key)}},Xt=class{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}};function Zt(e,t,n){return X(e)?e:g(e)?new Xt(e):y(e)&&arguments.length>1?Qt(e,t,n):Rt(e)}function Qt(e,t,n){return new Yt(e,t,n)}var $t=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new P(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=N-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&k!==this)return Be(this,!0),!0}get value(){let e=this.dep.track();return Ke(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function en(e,t,n=!1){let r,i;return g(e)?r=e:(r=e.get,i=e.set),new $t(r,i,n)}var Z={},tn=new WeakMap,Q=void 0;function nn(e,t=!1,n=Q){if(n){let t=tn.get(n);t||tn.set(n,t=[]),t.push(e)}}function rn(e,n,i=t){let{immediate:a,deep:o,once:s,scheduler:l,augmentJob:u,call:f}=i,p=e=>o?e:K(e)||o===!1||o===0?$(e,1):$(e),m,h,_,v,y=!1,b=!1;if(X(e)?(h=()=>e.value,y=K(e)):W(e)?(h=()=>p(e),y=!0):d(e)?(b=!0,y=e.some(e=>W(e)||K(e)),h=()=>e.map(e=>{if(X(e))return e.value;if(W(e))return p(e);if(g(e))return f?f(e,2):e()})):h=g(e)?n?f?()=>f(e,2):e:()=>{if(_){Xe();try{_()}finally{Ze()}}let t=Q;Q=m;try{return f?f(e,3,[v]):e(v)}finally{Q=t}}:r,n&&o){let e=h,t=o===!0?1/0:o;h=()=>$(e(),t)}let x=Fe(),S=()=>{m.stop(),x&&x.active&&c(x.effects,m)};if(s&&n){let e=n;n=(...t)=>{let n=e(...t);return S(),n}}let C=b?Array(e.length).fill(Z):Z,w=e=>{if(m.flags&1&&(m.dirty||e)){if(n){let t=m.run();if(e||o||y||(b?t.some((e,t)=>E(e,C[t])):E(t,C))){_&&_();let e=Q;Q=m;try{let e=[t,C===Z?void 0:b&&C[0]===Z?[]:C,v];C=t,f?f(n,3,e):n(...e)}finally{Q=e}}}else m.run()}};return u&&u(w),m=new Re(h),m.scheduler=l?()=>l(w,!1):w,v=e=>nn(e,!1,m),_=m.onStop=()=>{let e=tn.get(m);if(e){if(f)f(e,4);else for(let t of e)t();tn.delete(m)}},n?a?w(!0):C=m.run():l?l(w.bind(null,!0),!0):m.run(),S.pause=m.pause.bind(m),S.resume=m.resume.bind(m),S.stop=S,S}function $(e,t=1/0,n){if(t<=0||!y(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,X(e))$(e.value,t,n);else if(d(e))for(let r=0;r<e.length;r++)$(e[r],t,n);else if(p(e)||f(e))e.forEach(e=>{$(e,t,n)});else if(w(e)){for(let r in e)$(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&$(e[r],t,n)}return e}export{b as $,$ as A,le as B,q as C,Jt as D,Zt as E,t as F,ae as G,pe as H,i as I,d as J,Ce as K,r as L,Ht as M,rn as N,Ut as O,n as P,a as Q,re as R,zt as S,Y as T,E as U,s as V,u as W,o as X,g as Y,y as Z,Pt as _,Pe as a,v as at,Nt as b,W as c,ue as ct,K as d,me as dt,h as et,Lt as f,c as ft,Mt as g,Gt as h,de as ht,qt as i,_ as it,z as j,R as k,G as l,ye as lt,Xe as m,se as mt,Re as n,p as nt,Fe as o,D as ot,Ie as p,Ae as pt,ce as q,en as r,Se as rt,It as s,Oe as st,Ne as t,te as tt,X as u,be as ut,Rt as v,J as w,rt as x,Ze as y,oe as z};
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./defineProperty-BbfpZ9Tg.js";var t;function n(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var r=n();function i(e){r=e}var a={exec:()=>null};function o(e){let t=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),i=t[r];return i||(i=e(r),t[r]=i),i}}function s(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(l.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var c=((e=``)=>{try{return!!RegExp(`(?<=1)(?<!1)`+e)}catch{return!1}})(),l={codeRemoveIndent:/^(?: {0,3}\t| {1,4})/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,endingSpaceTabChar:/[ \t]$/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,leadingSpaceTab:/^[ \t]+/,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,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,numericCharacterReference:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));/g,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,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:o(e=>RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:o(e=>RegExp(`^ {0,${e}}((?:-[ ]*){3,}|(?:_[ ]*){3,}|(?:\\*[ ]*){3,})(?:\\n+|$)`)),fencesBeginRegex:o(e=>RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:o(e=>RegExp(`^ {0,${e}}#`)),htmlBeginRegex:o(e=>RegExp(`^ {0,${e}}(?:</?(?:${g})(?: +|$|/?>)|<(?:script|pre|style|textarea|!--))`,`i`)),blockquoteBeginRegex:o(e=>RegExp(`^ {0,${e}}>`))},u=/^(?:[ \t]*(?:\n|$))+/,d=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,f=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,p=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,m=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,ee=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,te=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |fences|blockquote|heading|hr|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,ne=s(te).replace(/bull/g,ee).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}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),re=s(te).replace(/bull/g,ee).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}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),ie=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,ae=/^[^\n]+/,h=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,oe=s(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,h).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),se=s(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,ee).getRegex(),g=`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`,_=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,v=s(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][a-z0-9-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][a-z0-9-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,_).replace(`tag`,g).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ce=e=>s(ie).replace(`hr`,p).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace(`list`,e).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,g).getRegex(),le=ce(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),ue=ce(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),de={blockquote:s(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,ue).getRegex(),code:d,def:oe,fences:f,heading:m,hr:p,html:v,lheading:ne,list:se,newline:u,paragraph:le,table:a,text:ae},y=s(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,p).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,g).getRegex(),fe={...de,lheading:re,table:y,paragraph:s(ie).replace(`hr`,p).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,y).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,g).getRegex()},pe={...de,html:s(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,_).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:a,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:s(ie).replace(`hr`,p).replace(`heading`,` *#{1,6} *[^
|
|
2
|
-
]`).replace(`lheading`,ne).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},me=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,he=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ge=/^( {2,}|\\)\n(?!\s*$)[ \t]*/,_e=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,b=/[\p{P}\p{S}]/u,ve=/[\s\p{P}\p{S}]/u,x=/[^\s\p{P}\p{S}]/u,ye=s(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,ve).getRegex(),be=/[\p{Pi}\p{Ps}"']/u,xe=/(?!~)[\p{P}\p{S}]/u,Se=/(?!~)[\s\p{P}\p{S}]/u,Ce=/(?:[^\s\p{P}\p{S}]|~)/u,we=s(/link|precode-code|html/,`g`).replace(`link`,/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace(`precode-`,c?"(?<!`)()":"(^^|[^`])").replace(`code`,/(?<b>`+)[^`]+\k<b>(?!`)/).replace(`html`,/<(?! )[^<>]*?>/).getRegex(),Te=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Ee=s(Te,`u`).replace(/punct/g,b).getRegex(),De=s(Te,`u`).replace(/punct/g,xe).getRegex(),S=s(/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,`u`).replace(/openQuote/g,be).replace(/punct/g,b).getRegex(),Oe=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,C=s(Oe,`gu`).replace(/notPunctSpace/g,x).replace(/punctSpace/g,ve).replace(/punct/g,b).getRegex(),ke=s(Oe,`gu`).replace(/notPunctSpace/g,Ce).replace(/punctSpace/g,Se).replace(/punct/g,xe).getRegex(),w=s(`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,x).replace(/punctSpace/g,ve).replace(/punct/g,b).getRegex(),Ae=s(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,x).replace(/punctSpace/g,ve).replace(/punct/g,b).getRegex(),je=s(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,x).replace(/punctSpace/g,ve).replace(/punct/g,b).getRegex(),T=s(/^~~?(?:((?!~)punct)|[^\s~])/,`u`).replace(/punct/g,b).getRegex(),Me=s(`^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,x).replace(/punctSpace/g,ve).replace(/punct/g,b).getRegex(),Ne=s(/\\(punct)/,`gu`).replace(/punct/g,b).getRegex(),Pe=s(/^<(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(),Fe=s(_).replace(`(?:-->|$)`,`-->`).getRegex(),E=s(`^comment|^</[a-zA-Z][a-zA-Z0-9-]*\\s*>|^<[a-zA-Z][a-zA-Z0-9-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>`).replace(`comment`,Fe).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),D=/\[(?:\\[\s\S]|[^\[\]\\])*\]/,O=s(/(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/).replace(`brackets`,D).getRegex(),Ie=s(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace(`label`,O).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Le=s(/^!?\[(label)\]\[(ref)\]/).replace(`label`,O).replace(`ref`,h).getRegex(),Re=s(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,h).getRegex(),ze=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\]){1,999}/,Be=s(/(?:[^\[\]\\`]*(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\]))){0,999}?[^\[\]\\`]*?/).replace(`brackets`,D).getRegex(),Ve=s(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,s(/^!?\[(label)\]\[(ref)\]/).replace(`label`,Be).replace(`ref`,ze).getRegex()).replace(`nolink`,s(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,ze).getRegex()).getRegex(),He=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Ue=s(/(?:mailto:email|xmpp:email(?:\/[A-Za-z0-9@.]+)?)/).replace(/email/g,/[A-Za-z0-9._+-]+@[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(),We={_backpedal:a,anyPunctuation:Ne,autolink:Pe,blockSkip:we,br:ge,code:he,del:a,delLDelim:a,delRDelim:a,emStrongLDelim:Ee,emStrongRDelimAst:C,emStrongRDelimUnd:Ae,escape:me,link:Ie,nolink:Re,punctuation:ye,reflink:Le,reflinkSearch:Ve,tag:E,text:_e,url:a},Ge={...We,emStrongLDelim:S,emStrongRDelimAst:w,emStrongRDelimUnd:je,link:s(/^!?\[(label)\]\((.*?)\)/).replace(`label`,O).getRegex(),reflink:s(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,O).getRegex()},Ke={...We,emStrongRDelimAst:ke,emStrongLDelim:De,delLDelim:T,delRDelim:Me,url:s(/^emailProtocol|^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace(`emailProtocol`,Ue).replace(`protocol`,He).replace(`email`,/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:s(/^(?:[^a-zA-Z0-9](?=emailProtocol)|(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9](?=emailProtocol)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))))/).replace(`protocol`,He).replace(/emailProtocol/g,/(?:mailto|xmpp):/).getRegex()},qe={...Ke,br:s(ge).replace(`{2,}`,`*`).getRegex(),text:s(Ke.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},k={normal:de,gfm:fe,pedantic:pe},A={normal:We,gfm:Ke,breaks:qe,pedantic:Ge},Je={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`},Ye=e=>Je[e];function j(e,t){if(t){if(l.escapeTest.test(e))return e.replace(l.escapeReplace,Ye)}else if(l.escapeTestNoEncode.test(e))return e.replace(l.escapeReplaceNoEncode,Ye);return e}function Xe(e){return e.replace(l.numericCharacterReference,(e,t,n)=>{let r=t===void 0?Number.parseInt(n,16):Number.parseInt(t,10);return r===0||r>1114111||r>=55296&&r<=57343?`�`:String.fromCodePoint(r)})}function Ze(e){try{e=encodeURI(e).replace(l.percentDecode,`%`)}catch{return null}return e}function Qe(e,t){let n=e.replace(l.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(l.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t){if(n.length>t)n.splice(t);else for(;n.length<t;)n.push(``)}for(;r<n.length;r++)n[r]=n[r].trim().replace(l.slashPipe,`|`);return n}function M(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function N(e){let t=e.split(`
|
|
3
|
-
`),n=t.length-1;for(;n>=0&&l.blankLine.test(t[n]);)n--;return t.length-n<=2?e:t.slice(0,n+1).join(`
|
|
4
|
-
`)}function P(e){return e.trim().toLowerCase().toUpperCase().toLowerCase()}function $e(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]===`\\`)r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function et(e,t=0){let n=t,r=``;for(let t of e)if(t===` `){let e=4-n%4;r+=` `.repeat(e),n+=e}else r+=t,n++;return r}function tt(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`),c=e[0].charAt(0)===`!`;r.state.inLink=!0;let l=r.state.linkEmitted,u=r.state.inRawBlock;r.state.linkEmitted=!1;let d=r.inlineTokens(s),f=r.state.linkEmitted;if(r.state.linkEmitted=l,r.state.inLink=!1,!c){if(f){r.state.inRawBlock=u;return}r.state.linkEmitted=!0}return{type:c?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:d}}function nt(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
|
|
5
|
-
`).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return e.slice(Math.min(r.length,i.length))}).join(`
|
|
6
|
-
`)}function rt(e,t,n,r){if(!t.includes(`<`))return!1;for(let i=0;i<t.length;i++){if(t[i]===`\\`){i++;continue}if(t[i]==="`"){let e=r.inline.code.exec(t.slice(i));if(e){i+=e[0].length-1;continue}}if(t[i]!==`<`)continue;let a=e.slice(n+i),o=r.inline.tag.exec(a)||r.inline.autolink.exec(a);if(o){if(o[0].length>t.length-i)return!0;i+=o[0].length-1}}return!1}var it=class{constructor(t){e(this,`options`,void 0),e(this,`rules`,void 0),e(this,`lexer`,void 0),this.options=t||r}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=this.options.pedantic?t[0]:N(t[0]);return{type:`code`,raw:e,codeBlockStyle:`indented`,text:e.replace(this.rules.other.codeRemoveIndent,``)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=nt(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:n}}}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=M(e,`#`);(this.options.pedantic||!t||this.rules.other.endingSpaceTabChar.test(t))&&(e=t.trim())}return{type:`heading`,raw:M(t[0],`
|
|
7
|
-
`),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:M(t[0],`
|
|
8
|
-
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=M(t[0],`
|
|
9
|
-
`).split(`
|
|
10
|
-
`),n=``,r=``,i=[];for(;e.length>0;){let t=!1,a=[],o=0;for(;o<e.length;o++)if(this.rules.other.blockquoteStart.test(e[o]))a.push(e[o]),t=!0;else if(!t)a.push(e[o]);else break;e=e.slice(o);let s=a.join(`
|
|
11
|
-
`),c=s.replace(this.rules.other.blockquoteSetextReplace,`
|
|
12
|
-
$1`).replace(this.rules.other.blockquoteSetextReplace2,``);n=n?`${n}
|
|
13
|
-
${s}`:s,r=r?`${r}
|
|
14
|
-
${c}`:c;let l=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,i,!0),this.lexer.state.top=l,e.length===0)break;let u=i.at(-1);if(u?.type===`code`)break;if(u?.type===`blockquote`){let t=u,a=e.join(`
|
|
15
|
-
`),o=t.raw+`
|
|
16
|
-
`+a.replace(this.rules.other.blockquoteSetextReplace2,``),s=this.blockquote(o);i[i.length-1]=s;let c=o.substring(s.raw.length).replace(/^\n/,``),l=c?c.split(`
|
|
17
|
-
`).length:0,d=l?e.slice(0,-l):e;d.length>0&&(n=`${n}
|
|
18
|
-
${d.join(`
|
|
19
|
-
`)}`),r=r.substring(0,r.length-t.text.length)+s.text;break}if(u?.type===`list`){let t=u,a=t.raw+`
|
|
20
|
-
`+e.join(`
|
|
21
|
-
`),o=this.list(a);i[i.length-1]=o,n=n.substring(0,n.length-u.raw.length)+o.raw,r=r.substring(0,r.length-t.raw.length)+o.raw,e=a.substring(i.at(-1).raw.length).split(`
|
|
22
|
-
`);continue}}return{type:`blockquote`,raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={type:`list`,raw:``,ordered:r,start:r?+n.slice(0,-1):``,loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:`[*+-]`);let a=this.rules.other.listItemRegex(n),o=!1;for(;e;){let n=!1,r=``,s=``;if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let c=t[2].split(`
|
|
23
|
-
`,1)[0],l=t[1].length,u=this.options.pedantic?et(c,l):c.replace(this.rules.other.leadingSpaceTab,e=>et(e,l)),d=e.split(`
|
|
24
|
-
`,1)[0],f=!u.trim(),p=0;if(this.options.pedantic?(p=2,s=u.trimStart()):f?p=l+1:(p=u.search(this.rules.other.nonSpaceChar),p=p>4?1:p,s=u.slice(p),p+=l),f&&this.rules.other.blankLine.test(d)&&(r+=d+`
|
|
25
|
-
`,e=e.substring(d.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(p),n=this.rules.other.hrRegex(p),i=this.rules.other.fencesBeginRegex(p),a=this.rules.other.headingBeginRegex(p),o=this.rules.other.htmlBeginRegex(p),c=this.rules.other.blockquoteBeginRegex(p);for(;e;){let l=e.split(`
|
|
26
|
-
`,1)[0],m;if(d=l,this.options.pedantic?(d=d.replace(this.rules.other.listReplaceNesting,` `),m=d):m=d.replace(this.rules.other.leadingSpaceTab,e=>e.replace(this.rules.other.tabCharGlobal,` `)),i.test(d)||a.test(d)||o.test(d)||c.test(d)||t.test(d)||n.test(d))break;if(m.search(this.rules.other.nonSpaceChar)>=p||!d.trim())s+=`
|
|
27
|
-
`+m.slice(p);else{if(f||u.replace(this.rules.other.tabCharGlobal,` `).search(this.rules.other.nonSpaceChar)>=4||i.test(u)||a.test(u)||n.test(u))break;s+=`
|
|
28
|
-
`+d}f=!d.trim(),r+=l+`
|
|
29
|
-
`,e=e.substring(l.length+1),u=m.slice(p)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0)),i.items.push({type:`list_item`,raw:r,task:!!this.options.gfm&&this.rules.other.listIsTask.test(s),loose:!1,text:s,tokens:[]}),i.raw+=r}let s=i.items.at(-1);if(s)s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let e of i.items)if(this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]),!i.loose){let t=e.tokens.filter(e=>e.type===`space`);i.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}for(let e of i.items){let t=e.tokens[0];if(e.task&&(t?.type===`text`||t?.type===`paragraph`)){e.text=e.text.replace(this.rules.other.listReplaceTask,``),t.raw=t.raw.replace(this.rules.other.listReplaceTask,``),t.text=t.text.replace(this.rules.other.listReplaceTask,``);for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,``);break}let n=this.rules.other.listTaskCheckbox.exec(e.raw);if(n){let t={type:`checkbox`,raw:n[0]+` `,checked:n[0]!==`[ ]`};e.checked=t.checked,i.loose?e.tokens[0]&&[`paragraph`,`text`].includes(e.tokens[0].type)&&`tokens`in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=t.raw+e.tokens[0].raw,e.tokens[0].text=t.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(t)):e.tokens.unshift({type:`paragraph`,raw:t.raw,text:t.raw,tokens:[t]}):e.tokens.unshift(t)}}else e.task&&=!1}if(i.loose)for(let e of i.items){e.loose=!0;for(let t of e.tokens)t.type===`text`&&(t.type=`paragraph`)}return i}}html(e){let t=this.rules.block.html.exec(e);if(t){let e=N(t[0]);return{type:`html`,block:!0,raw:e,pre:t[1]===`pre`||t[1]===`script`||t[1]===`style`,text:e}}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=P(t[1]).replace(this.rules.other.multipleSpaceGlobal,` `),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,`$1`).replace(this.rules.inline.anyPunctuation,`$1`):``,r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,`$1`):t[3];return{type:`def`,tag:e,raw:M(t[0],`
|
|
30
|
-
`),href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=Qe(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,``).split(`|`),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,``).split(`
|
|
31
|
-
`):[],a={type:`table`,raw:M(t[0],`
|
|
32
|
-
`),header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?a.align.push(`right`):this.rules.other.tableAlignCenter.test(e)?a.align.push(`center`):this.rules.other.tableAlignLeft.test(e)?a.align.push(`left`):a.align.push(null);for(let e=0;e<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push(Qe(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let e=t[1].trim();return{type:`heading`,raw:M(t[0],`
|
|
33
|
-
`),depth:t[2].charAt(0)===`=`?1:2,text:e,tokens:this.lexer.inline(e)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
|
|
34
|
-
`?t[1].slice(0,-1):t[1];return{type:`paragraph`,raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:`text`,raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:`escape`,raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:`html`,raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[0].charAt(0)===`!`?2:1;if(!this.options.pedantic&&rt(e,t[1],n,this.rules))return;let r=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let e=M(r.slice(0,-1),`\\`);if((r.length-e.length)%2==0)return}else{let e=$e(t[2],`()`);if(e===-2)return;if(e>-1){let n=(t[0].indexOf(`!`)===0?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=``}}let i=t[2],a=``;if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(i);e&&(i=e[1],a=e[3])}else a=t[3]?t[3].slice(1,-1):``;return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(i=this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?i.slice(1):i.slice(1,-1)),tt(t,{href:i&&i.replace(this.rules.inline.anyPunctuation,`$1`),title:a&&a.replace(this.rules.inline.anyPunctuation,`$1`)},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let r=n[0].charAt(0)===`!`?2:1;if(!this.options.pedantic&&rt(e,n[1],r,this.rules))return;let i=t[P((n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal,` `))];if(!i){let e=n[0].charAt(0);return{type:`text`,raw:e,text:e}}return tt(n,i,n[0],this.lexer,this.rules)}}emStrong(e,t,n=``){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let i=[...r[0]].length-1,a,o,s=i,c=0,l=r[0][0],u=n===l,d=l===`*`?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,t=t.slice(-1*e.length+i);(r=d.exec(t))!==null;){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a)continue;if(o=[...a].length,r[3]||r[4]){s+=o;continue}if(r[5]||r[6]){if(i%3&&!((i+o)%3)){c+=o;continue}if(u)break}if(s-=o,s>0)continue;o=Math.min(o,o+s+c);let t=[...r[0]][0].length,n=e.slice(0,i+r.index+t+o);if(Math.min(i,o)%2){let e=n.slice(1,-1);return{type:`em`,raw:n,text:e,tokens:this.lexer.inlineTokens(e)}}let l=n.slice(2,-2);return{type:`strong`,raw:n,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal,` `),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:`codespan`,raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:`br`,raw:t[0]}}del(e,t,n=``){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=this.rules.inline.delRDelim;for(s.lastIndex=0,t=t.slice(-1*e.length+n);(r=s.exec(t))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i||(a=[...i].length,a!==n))continue;if(r[3]||r[4]){o+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o);let t=[...r[0]][0].length,s=e.slice(0,n+r.index+t+a),c=s.slice(n,-n);return{type:`del`,raw:s,text:c,tokens:this.lexer.inlineTokens(c)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return t[2]===`@`?(e=t[1],n=`mailto:`+e):(e=t[1],n=e),{type:`link`,raw:t[0],text:e,href:n,autolink:!0,tokens:[{type:`text`,raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if(t[2]===`@`)e=t[0],n=`mailto:`+e;else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??``;while(r!==t[0]);e=t[0],n=t[1]===`www.`?`http://`+t[0]:t[0]}return{type:`link`,raw:t[0],text:e,href:n,autolink:!0,tokens:[{type:`text`,raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:`text`,raw:t[0],text:e?t[0]:Xe(t[0]),escaped:e}}}},F=class t{constructor(t){e(this,`tokens`,void 0),e(this,`options`,void 0),e(this,`state`,void 0),e(this,`inlineQueue`,void 0),e(this,`tokenizer`,void 0),this.tokens=[],this.tokens.links=Object.create(null),this.options=t||r,this.options.tokenizer=this.options.tokenizer||new it,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,linkEmitted:!1,top:!0};let n={other:l,block:k.normal,inline:A.normal};this.options.pedantic?(n.block=k.pedantic,n.inline=A.pedantic):this.options.gfm&&(n.block=k.gfm,n.inline=this.options.breaks?A.breaks:A.gfm),this.tokenizer.rules=n}static get rules(){return{block:k,inline:A}}static lex(e,n){return new t(n).lex(e)}static lexInline(e,n){return new t(n).inlineTokens(e)}lex(e){e=e.replace(l.carriageReturn,`
|
|
35
|
-
`),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(l.tabCharGlobal,` `).replace(l.spaceLine,``));let r=1/0;for(;e;){if(e.length<r)r=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}let i;if(this.options.extensions?.block?.some(n=>(i=n.call({lexer:this},e,t))?(e=e.substring(i.raw.length),t.push(i),!0):!1))continue;if(i=this.tokenizer.space(e)){e=e.substring(i.raw.length);let n=t.at(-1);i.raw.length===1&&n!==void 0?n.raw+=`
|
|
36
|
-
`:t.push(i);continue}if(i=this.tokenizer.code(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
|
|
37
|
-
`)?``:`
|
|
38
|
-
`)+i.raw,n.text+=`
|
|
39
|
-
`+i.text,this.inlineQueue.at(-1).src=n.text):t.push(i);continue}if(i=this.tokenizer.fences(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.heading(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.hr(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.blockquote(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.list(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.html(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.def(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
|
|
40
|
-
`)?``:`
|
|
41
|
-
`)+i.raw,n.text+=`
|
|
42
|
-
`+i.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title},t.push(i));continue}if(i=this.tokenizer.table(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.lheading(e)){e=e.substring(i.raw.length),t.push(i);continue}let a=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(a=e.substring(0,t+1))}if(this.state.top&&(i=this.tokenizer.paragraph(a))){let r=t.at(-1);n&&r?.type===`paragraph`?(r.raw+=(r.raw.endsWith(`
|
|
43
|
-
`)?``:`
|
|
44
|
-
`)+i.raw,r.text+=`
|
|
45
|
-
`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(i),n=a.length!==e.length,e=e.substring(i.raw.length);continue}if(i=this.tokenizer.text(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`text`?(n.raw+=(n.raw.endsWith(`
|
|
46
|
-
`)?``:`
|
|
47
|
-
`)+i.raw,n.text+=`
|
|
48
|
-
`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(i);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}linkInText(e){if(!e.includes(`[`))return!1;let t=this.tokenizer.rules.inline.link;for(let n of e.matchAll(this.tokenizer.rules.inline.blockSkip))if(t.test(n[0])&&e.charAt(n.index-1)!==`!`)return!0;for(let t of e.matchAll(this.tokenizer.rules.inline.reflinkSearch)){let e=t[0],n=e.lastIndexOf(`[`);if(e.charAt(0)!==`!`&&Object.hasOwn(this.tokens.links,P(e.slice(n+1,-1)))&&!(n>1&&this.linkInText(e.slice(1,n-1))))return!0}return!1}inlineTokens(e,t=[]){this.tokenizer.lexer=this;let n=e;if(this.tokens.links&&e.includes(`[`)){let e=this.tokenizer.rules.inline.reflinkSearch,t=n=>{let r=n.lastIndexOf(`[`);if(!Object.hasOwn(this.tokens.links,P(n.slice(r+1,-1))))return n;if(r>1&&n.charAt(0)!==`!`){let i=n.slice(1,r-1);if(this.linkInText(i))return`[`+i.replace(e,t)+`][`+`a`.repeat(n.length-r-2)+`]`}return`[`+`a`.repeat(n.length-2)+`]`};n=n.replace(e,t)}n=n.replace(this.tokenizer.rules.inline.anyPunctuation,e=>`+`.repeat(e.length)),n=n.replace(this.tokenizer.rules.inline.blockSkip,(e,t,n)=>{let r=n?n.length:0;return e.slice(0,r)+`[`+`a`.repeat(e.length-r-2)+`]`}),n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let r=!1,i=``,a=1/0;for(;e;){if(e.length<a)a=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}r||(i=``),r=!1;let o;if(this.options.extensions?.inline?.some(n=>(o=n.call({lexer:this},e,t))?(e=e.substring(o.raw.length),t.push(o),!0):!1))continue;if(o=this.tokenizer.escape(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.tag(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.link(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(o.raw.length);let n=t.at(-1);o.type===`text`&&n?.type===`text`?(n.raw+=o.raw,n.text+=o.text):t.push(o);continue}if(o=this.tokenizer.emStrong(e,n,i)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.codespan(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.br(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.del(e,n,i)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.autolink(e)){e=e.substring(o.raw.length),t.push(o);continue}if(!this.state.inLink&&(o=this.tokenizer.url(e))){e=e.substring(o.raw.length),t.push(o);continue}let s=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(s=e.substring(0,t+1))}if(o=this.tokenizer.inlineText(s)){e=e.substring(o.raw.length),o.raw.slice(-1)!==`_`&&(i=o.raw.slice(-1)),r=!0;let n=t.at(-1);n?.type===`text`?(n.raw+=o.raw,n.text+=o.text):t.push(o);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return t}infiniteLoopError(e){let t=`Infinite loop on byte: `+e;if(this.options.silent)console.error(t);else throw Error(t)}},at=class{constructor(t){e(this,`options`,void 0),e(this,`parser`,void 0),this.options=t||r}space(e){return``}code({text:e,lang:t,escaped:n}){let r=(t||``).match(l.notSpaceStart)?.[0],i=e?e.replace(l.endingNewline,``)+`
|
|
49
|
-
`:``;return r?`<pre><code class="language-`+j(r)+`">`+(n?i:j(i,!0))+`</code></pre>
|
|
50
|
-
`:`<pre><code>`+(n?i:j(i,!0))+`</code></pre>
|
|
51
|
-
`}blockquote({tokens:e}){return`<blockquote>
|
|
52
|
-
${this.parser.parse(e)}</blockquote>
|
|
53
|
-
`}html({text:e}){return e}def(e){return``}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
|
|
54
|
-
`}hr(e){return`<hr>
|
|
55
|
-
`}list(e){let t=e.ordered,n=e.start,r=``;for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?`ol`:`ul`,a=t&&n!==1?` start="`+n+`"`:``;return`<`+i+a+`>
|
|
56
|
-
`+r+`</`+i+`>
|
|
57
|
-
`}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
|
|
58
|
-
`}checkbox({checked:e}){return`<input `+(e?`checked="" `:``)+`disabled="" type="checkbox"> `}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
|
|
59
|
-
`}table(e){let t=``,n=``;for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r=``;for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n=``;for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&=`<tbody>${r}</tbody>`,`<table>
|
|
60
|
-
<thead>
|
|
61
|
-
`+t+`</thead>
|
|
62
|
-
`+r+`</table>
|
|
63
|
-
`}tablerow({text:e}){return`<tr>
|
|
64
|
-
${e}</tr>
|
|
65
|
-
`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`;return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
|
|
66
|
-
`}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>${j(e,!0)}</code>`}br(e){return`<br>`}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,text:n,tokens:r,autolink:i}){let a=i?j(n,!0):this.parser.parseInline(r),o=Ze(e);if(o===null)return a;e=j(o,i);let s=`<a href="`+e+`"`;return t&&(s+=` title="`+j(t)+`"`),s+=`>`+a+`</a>`,s}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=Ze(e);if(i===null)return j(n);e=i;let a=`<img src="${j(e)}" alt="${j(n)}"`;return t&&(a+=` title="${j(t)}"`),a+=`>`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:j(e.text)}},I=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}},L=class t{constructor(t){e(this,`options`,void 0),e(this,`renderer`,void 0),e(this,`textRenderer`,void 0),this.options=t||r,this.options.renderer=this.options.renderer||new at,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new I}static parse(e,n){return new t(n).parse(e)}static parseInline(e,n){return new t(n).parseInline(e)}parse(e){this.renderer.parser=this;let t=``;for(let n=0;n<e.length;n++){let r=e[n];if(this.options.extensions?.renderers?.[r.type]){let e=r,n=this.options.extensions.renderers[e.type].call({parser:this},e);if(n!==!1||![`space`,`hr`,`heading`,`code`,`table`,`blockquote`,`list`,`checkbox`,`html`,`def`,`paragraph`,`text`].includes(e.type)){t+=n||``;continue}}let i=r;switch(i.type){case`space`:t+=this.renderer.space(i);break;case`hr`:t+=this.renderer.hr(i);break;case`heading`:t+=this.renderer.heading(i);break;case`code`:t+=this.renderer.code(i);break;case`table`:t+=this.renderer.table(i);break;case`blockquote`:t+=this.renderer.blockquote(i);break;case`list`:t+=this.renderer.list(i);break;case`checkbox`:t+=this.renderer.checkbox(i);break;case`html`:t+=this.renderer.html(i);break;case`def`:t+=this.renderer.def(i);break;case`paragraph`:t+=this.renderer.paragraph(i);break;case`text`:t+=this.renderer.text(i);break;default:{let e=`Token with "`+i.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return t}parseInline(e,t=this.renderer){this.renderer.parser=this;let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(e!==!1||![`escape`,`html`,`link`,`image`,`checkbox`,`strong`,`em`,`codespan`,`br`,`del`,`text`].includes(i.type)){n+=e||``;continue}}let a=i;switch(a.type){case`escape`:n+=t.text(a);break;case`html`:n+=t.html(a);break;case`link`:n+=t.link(a);break;case`image`:n+=t.image(a);break;case`checkbox`:n+=t.checkbox(a);break;case`strong`:n+=t.strong(a);break;case`em`:n+=t.em(a);break;case`codespan`:n+=t.codespan(a);break;case`br`:n+=t.br(a);break;case`del`:n+=t.del(a);break;case`text`:n+=t.text(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 n}},R=(t=class{constructor(t){e(this,`options`,void 0),e(this,`block`,void 0),this.options=t||r}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?F.lex:F.lexInline}provideParser(e=this.block){return e?L.parse:L.parseInline}},e(t,`passThroughHooks`,new Set([`preprocess`,`postprocess`,`processAllTokens`,`emStrongMask`])),e(t,`passThroughHooksRespectAsync`,new Set([`preprocess`,`postprocess`,`processAllTokens`])),t),z=new class{constructor(...t){e(this,`defaults`,n()),e(this,`options`,this.setOptions),e(this,`parse`,this.parseMarkdown(!0)),e(this,`parseInline`,this.parseMarkdown(!1)),e(this,`Parser`,L),e(this,`Renderer`,at),e(this,`TextRenderer`,I),e(this,`Lexer`,F),e(this,`Tokenizer`,it),e(this,`Hooks`,R),this.use(...t)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case`table`:{let e=r;for(let r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case`list`:{let e=r;n=n.concat(this.walkTokens(e.items,t));break}default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error(`extension name required`);if(`renderer`in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return r===!1&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if(`tokenizer`in e){if(!e.level||e.level!==`block`&&e.level!==`inline`)throw Error(`extension level must be 'block' or 'inline'`);let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&(e.level===`block`?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level===`inline`&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}`childTokens`in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new at(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if([`options`,`parser`].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n||``}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new it(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if([`options`,`rules`,`lexer`].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new R;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if([`options`,`block`].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];t[r]=R.passThroughHooks.has(n)?e=>{if(this.defaults.async&&R.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await i.call(t,e);return a.call(t,n)})();let r=i.call(t,e);return a.call(t,r)}:(...e)=>{if(this.defaults.async)return(async()=>{let n=await i.apply(t,e);return n===!1&&(n=await a.apply(t,e)),n})();let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return F.lex(e,t??this.defaults)}parser(e,t){return L.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(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`||t===null)return a(Error(`marked(): input parameter is undefined or null`));if(typeof t!=`string`)return a(Error(`marked(): input parameter is of type `+Object.prototype.toString.call(t)+`, string expected`));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await(i.hooks?await i.hooks.provideLexer(e):e?F.lex:F.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await(i.hooks?await i.hooks.provideParser(e):e?L.parse:L.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer(e):e?F.lex:F.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser(e):e?L.parse:L.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=`
|
|
67
|
-
Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+j(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function B(e,t){return z.parse(e,t)}B.options=B.setOptions=function(e){return z.setOptions(e),B.defaults=z.defaults,i(B.defaults),B},B.getDefaults=n,B.defaults=r;function ot(...e){return z.use(...e),B.defaults=z.defaults,i(B.defaults),B}B.use=ot,B.walkTokens=function(e,t){return z.walkTokens(e,t)},B.parseInline=z.parseInline,B.Parser=L,B.parser=L.parse,B.Renderer=at,B.TextRenderer=I,B.Lexer=F,B.lexer=F.lex,B.Tokenizer=it,B.Hooks=R,B.parse=B,B.options,B.setOptions,B.walkTokens,B.parseInline,L.parse,F.lex;function st(e,t){this.v=e,this.k=t}function ct(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function lt(e){if(Array.isArray(e))return e}function ut(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function dt(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
68
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ft(e,t){return lt(e)||ut(e,t)||pt(e,t)||dt()}function pt(e,t){if(e){if(typeof e==`string`)return ct(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ct(e,t):void 0}}function V(e){var t,n;function r(t,n){try{var a=e[t](n),o=a.value,s=o instanceof st;Promise.resolve(s?o.v:o).then(function(n){if(s){var c=t===`return`&&o.k?t:`next`;if(!o.k||n.done)return r(c,n);n=e[c](n).value}i(!!a.done,n)},function(e){r(`throw`,e)})}catch(e){i(2,e)}}function i(e,i){e===2?t.reject(i):t.resolve({value:i,done:e}),(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,i){return new Promise(function(a,o){var s={key:e,arg:i,resolve:a,reject:o,next:null};n?n=n.next=s:(t=n=s,r(e,i))})},typeof e.return!=`function`&&(this.return=void 0)}V.prototype[typeof Symbol==`function`&&Symbol.asyncIterator||`@@asyncIterator`]=function(){return this},V.prototype.next=function(e){return this._invoke(`next`,e)},V.prototype.throw=function(e){return this._invoke(`throw`,e)},V.prototype.return=function(e){return this._invoke(`return`,e)};var mt=Object.entries,ht=Object.setPrototypeOf,gt=Object.isFrozen,H=Object.getPrototypeOf,_t=Object.getOwnPropertyDescriptor,U=Object.freeze,W=Object.seal,vt=Object.create,yt=typeof Reflect<`u`&&Reflect,bt=yt.apply,xt=yt.construct;U||=function(e){return e},W||=function(e){return e},bt||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},xt||=function(e){return new e(...[...arguments].slice(1))};var St=J(Array.prototype.forEach);Array.prototype.indexOf;var Ct=J(Array.prototype.lastIndexOf),wt=J(Array.prototype.pop),Tt=J(Array.prototype.push);Array.prototype.slice;var Et=J(Array.prototype.splice),Dt=Array.isArray,Ot=J(String.prototype.toLowerCase),kt=J(String.prototype.toString),At=J(String.prototype.match),jt=J(String.prototype.replace),Mt=J(String.prototype.indexOf),Nt=J(String.prototype.trim),Pt=J(Number.prototype.toString),Ft=J(Boolean.prototype.toString),It=typeof BigInt>`u`?null:J(BigInt.prototype.toString),Lt=typeof Symbol>`u`?null:J(Symbol.prototype.toString),G=J(Object.prototype.hasOwnProperty),K=J(Object.prototype.toString),q=J(RegExp.prototype.test),Rt=zt(TypeError);function J(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return bt(e,t,n)}}function zt(e){return function(){return xt(e,[...arguments])}}function Y(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ot;if(ht&&ht(e,null),!Dt(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(gt(t)||(t[r]=e),i=e)}e[i]=!0}return e}function X(e){for(let t=0;t<e.length;t++)G(e,t)||(e[t]=null);return e}function Z(e){let t=vt(null);for(let r of mt(e)){var n=ft(r,2);let i=n[0],a=n[1];G(e,i)&&(t[i]=Dt(a)?X(a):a&&typeof a==`object`&&a.constructor===Object?Z(a):a)}return t}function Bt(e){switch(typeof e){case`string`:return e;case`number`:return Pt(e);case`boolean`:return Ft(e);case`bigint`:return It?It(e):`0`;case`symbol`:return Lt?Lt(e):`Symbol()`;case`undefined`:return K(e);case`function`:case`object`:{if(e===null)return K(e);let t=e,n=Q(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:K(e)}return K(e)}default:return K(e)}}function Q(e,t){for(;e!==null;){let n=_t(e,t);if(n){if(n.get)return J(n.get);if(typeof n.value==`function`)return J(n.value)}e=H(e)}function n(){return null}return n}function Vt(e){try{return q(e,``),!0}catch{return!1}}var Ht=U(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),Ut=U(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),Wt=U([`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`]),Gt=U([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),Kt=U(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),qt=U([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),Jt=U([`#text`]),Yt=U(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),Xt=U(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),Zt=U(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),Qt=U([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),$t=W(/{{[\w\W]*|^[\w\W]*}}/g),en=W(/<%[\w\W]*|^[\w\W]*%>/g),tn=W(/\${[\w\W]*/g),nn=W(/^data-[\-\w.\u00B7-\uFFFF]+$/),rn=W(/^aria-[\-\w]+$/),an=W(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),on=W(/^(?:\w+script|data):/i),sn=W(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),cn=W(/^html$/i),ln=W(/^[a-z][.\w]*(-[.\w]+)+$/i),un=W(/<[/\w!]/g),dn=W(/<[/\w]/g),fn=W(/<\/no(script|embed|frames)/i),pn=W(/\/>/i),$={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},mn=[`style`,`script`,`xmp`,`iframe`,`noembed`,`noframes`,`plaintext`,`noscript`],hn=U(Y({},mn)),gn=function(){let e={};return St(mn,t=>{e[t]=W(RegExp(`</`+t+`(?=[\\t\\n\\f\\r />])`,`i`))}),U(e)}(),_n=function(){return typeof window>`u`?null:window},vn=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},yn=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},bn=function(e,t,n,r){return G(e,t)&&Dt(e[t])?Y(r.base?Z(r.base):{},e[t],r.transform):n},xn=function(e,t,n){let r=G(e,t)?e[t]:void 0;return r&&typeof r==`object`?Z(r):n()};function Sn(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_n(),t=e=>Sn(e);if(t.version=`3.4.16`,t.removed=[],!e||!e.document||e.document.nodeType!==$.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let l=e.DOMParser,u=e.trustedTypes,d=s.prototype,f=Q(d,`cloneNode`),p=Q(d,`remove`),m=Q(d,`removeAttributeNode`),ee=Q(d,`nextSibling`),te=Q(d,`childNodes`),ne=Q(d,`parentNode`),re=Q(d,`shadowRoot`),ie=Q(d,`attributes`),ae=o&&o.prototype?Q(o.prototype,`nodeType`):null,h=o&&o.prototype?Q(o.prototype,`nodeName`):null,oe=o&&o.prototype?Q(o.prototype,`ownerDocument`):null,se=function(e){return ae?ae(e):e.nodeType},g=function(e){return h?h(e):e.nodeName};if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let _,v=``,ce,le=!1,ue=0,de=function(){if(ue>0)throw Rt(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},y=function(e){de(),ue++;try{return _.createHTML(e)}finally{ue--}},fe=function(e){de(),ue++;try{return _.createScriptURL(e)}finally{ue--}},pe=function(){return le||=(ce=vn(u,i),!0),ce},me=n,he=me.implementation,ge=me.createNodeIterator,_e=me.createDocumentFragment,b=me.getElementsByTagName,ve=r.importNode,x=yn();t.isSupported=typeof mt==`function`&&typeof ne==`function`&&he&&he.createHTMLDocument!==void 0;let ye=$t,be=en,xe=tn,Se=nn,Ce=rn,we=on,Te=sn,Ee=ln,De=an,S=null,Oe=Y({},[...Ht,...Ut,...Wt,...Kt,...Jt]),C=null,ke=Y({},[...Yt,...Xt,...Zt,...Qt]),w=Object.seal(vt(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ae=null,je=null,T=Object.seal(vt(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Me=!0,Ne=!0,Pe=!1,Fe=!0,E=!1,D=!0,O=!1,Ie=!1,Le=null,Re=null,ze=!1,Be=!1,Ve=!1,He=!1,Ue=!0,We=!1,Ge=`user-content-`,Ke=!0,qe=!1,k={},A=null,Je=Y({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),Ye=null,j=Y({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Xe=null,Ze=Y({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),Qe=`http://www.w3.org/1998/Math/MathML`,M=`http://www.w3.org/2000/svg`,N=`http://www.w3.org/1999/xhtml`,P=N,$e=!1,et=null,tt=Y({},[Qe,M,N],kt),nt=U([`mi`,`mo`,`mn`,`ms`,`mtext`]),rt=Y({},nt),it=U([`annotation-xml`]),F=Y({},it),at=Y({},[`title`,`style`,`font`,`a`,`script`]),I=null,L=[`application/xhtml+xml`,`text/html`],R=null,z=null,B=n.createElement(`form`),ot=function(e){return e instanceof RegExp||e instanceof Function},st=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(z&&z===e)return;(!e||typeof e!=`object`)&&(e={}),e=Z(e),I=L.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,R=I===`application/xhtml+xml`?kt:Ot,S=bn(e,`ALLOWED_TAGS`,Oe,{transform:R}),C=bn(e,`ALLOWED_ATTR`,ke,{transform:R}),et=bn(e,`ALLOWED_NAMESPACES`,tt,{transform:kt}),Xe=bn(e,`ADD_URI_SAFE_ATTR`,Ze,{transform:R,base:Ze}),Ye=bn(e,`ADD_DATA_URI_TAGS`,j,{transform:R,base:j}),A=bn(e,`FORBID_CONTENTS`,Je,{transform:R}),Ae=bn(e,`FORBID_TAGS`,Z({}),{transform:R}),je=bn(e,`FORBID_ATTR`,Z({}),{transform:R}),k=G(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?Z(e.USE_PROFILES):e.USE_PROFILES:!1,Me=e.ALLOW_ARIA_ATTR!==!1,Ne=e.ALLOW_DATA_ATTR!==!1,Pe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Fe=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,E=e.SAFE_FOR_TEMPLATES||!1,D=e.SAFE_FOR_XML!==!1,O=e.WHOLE_DOCUMENT||!1,Be=e.RETURN_DOM||!1,Ve=e.RETURN_DOM_FRAGMENT||!1,He=e.RETURN_TRUSTED_TYPE||!1,ze=e.FORCE_BODY||!1,Ue=e.SANITIZE_DOM!==!1,We=e.SANITIZE_NAMED_PROPS||!1,Ke=e.KEEP_CONTENT!==!1,qe=e.IN_PLACE||!1,De=Vt(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:an,P=typeof e.NAMESPACE==`string`?e.NAMESPACE:N,rt=xn(e,`MATHML_TEXT_INTEGRATION_POINTS`,()=>Y({},nt)),F=xn(e,`HTML_INTEGRATION_POINTS`,()=>Y({},it));let t=xn(e,`CUSTOM_ELEMENT_HANDLING`,()=>vt(null));if(w=vt(null),G(t,`tagNameCheck`)&&ot(t.tagNameCheck)&&(w.tagNameCheck=t.tagNameCheck),G(t,`attributeNameCheck`)&&ot(t.attributeNameCheck)&&(w.attributeNameCheck=t.attributeNameCheck),G(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(w.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),W(w),E&&(Ne=!1),Ve&&(Be=!0),k&&(S=Y({},Jt),C=vt(null),k.html===!0&&(Y(S,Ht),Y(C,Yt)),k.svg===!0&&(Y(S,Ut),Y(C,Xt),Y(C,Qt)),k.svgFilters===!0&&(Y(S,Wt),Y(C,Xt),Y(C,Qt)),k.mathMl===!0&&(Y(S,Kt),Y(C,Zt),Y(C,Qt))),T.tagCheck=null,T.attributeCheck=null,G(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?T.tagCheck=e.ADD_TAGS:Dt(e.ADD_TAGS)&&(S===Oe&&(S=Z(S)),Y(S,e.ADD_TAGS,R))),G(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?T.attributeCheck=e.ADD_ATTR:Dt(e.ADD_ATTR)&&(C===ke&&(C=Z(C)),Y(C,e.ADD_ATTR,R))),G(e,`ADD_FORBID_CONTENTS`)&&Dt(e.ADD_FORBID_CONTENTS)&&(A===Je&&(A=Z(A)),Y(A,e.ADD_FORBID_CONTENTS,R)),Ke&&(S[`#text`]=!0),O&&Y(S,[`html`,`head`,`body`]),S.table&&(Y(S,[`tbody`]),delete Ae.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw Rt(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw Rt(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=_;_=e.TRUSTED_TYPES_POLICY;try{v=y(``)}catch(e){throw _=t,e}}else e.TRUSTED_TYPES_POLICY===null?(_=void 0,v=``):(_===void 0&&(_=pe()),_&&typeof v==`string`&&(v=y(``)));U&&U(e),z=e},ct=Y({},[...Ut,...Wt,...Gt]),lt=Y({},[...Kt,...qt]),ut=function(e,t,n){return t.namespaceURI===N?e===`svg`:t.namespaceURI===Qe?e===`svg`&&(n===`annotation-xml`||rt[n]):!!ct[e]},dt=function(e,t,n){return t.namespaceURI===N?e===`math`:t.namespaceURI===M?e===`math`&&F[n]:!!lt[e]},ft=function(e,t,n){return t.namespaceURI===M&&!F[n]||t.namespaceURI===Qe&&!rt[n]?!1:!lt[e]&&(at[e]||!ct[e])},pt=function(e){let t=ne(e);(!t||!t.tagName)&&(t={namespaceURI:P,tagName:`template`});let n=Ot(e.tagName),r=Ot(t.tagName);return et[e.namespaceURI]?e.namespaceURI===M?ut(n,t,r):e.namespaceURI===Qe?dt(n,t,r):e.namespaceURI===N?ft(n,t,r):!!(I===`application/xhtml+xml`&&et[e.namespaceURI]):!1},V=function(e){Tt(t.removed,{element:e});try{ne(e).removeChild(e)}catch{if(p(e),!ne(e))throw Rt(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},ht=function(e,t,n){try{m(e,t)}catch{try{e.removeAttribute(n)}catch{}}},gt=function(e){yt(e);let t=te(e);if(t){let e=[];St(t,t=>{Tt(e,t)}),St(e,e=>{try{p(e)}catch{}})}let n=ie(e);if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;typeof i==`string`&&ht(e,r,i)}},H=function(e,n,r){if(!r)try{r=n.getAttributeNode(e)}catch{r=null}Tt(t.removed,{attribute:r||null,from:n});try{r?m(n,r):n.removeAttribute(e)}catch{try{n.removeAttribute(e)}catch{}}if(e===`is`){if(Be||Ve)try{V(n)}catch{}else try{n.setAttribute(e,``)}catch{}}},_t=function(e){let t=ie(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;typeof i!=`string`||C[R(i)]||ht(e,r,i)}},yt=function(e){let t=[e];for(;t.length>0;){let e=t.pop();se(e)===$.element&&_t(e);let n=te(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},bt=function(e,t){return D?e===`patchsrc`||e===`for`&&t!==`label`&&t!==`output`:!1},xt=function(e){if(!D)return;let t=[e];for(;t.length>0;){let e=t.pop(),n=se(e);if(n===$.processingInstruction||n===$.comment&&q(dn,e.data)){try{p(e)}catch{}continue}if(n===$.element){let t=e,n=R(g(e));try{t.hasAttribute&&t.hasAttribute(`patchsrc`)&&t.removeAttribute(`patchsrc`),t.hasAttribute&&t.hasAttribute(`for`)&&bt(`for`,n)&&t.removeAttribute(`for`)}catch{}}let r=te(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},Pt=function(e){let t=null,r=null;if(ze)e=`<remove></remove>`+e;else{let t=At(e,/^[\r\n\t ]+/);r=t&&t[0]}I===`application/xhtml+xml`&&P===N&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=_?y(e):e;if(P===N)try{t=new l().parseFromString(i,I)}catch{}if(!t||!t.documentElement){t=he.createDocument(P,`template`,null);try{t.documentElement.innerHTML=$e?v:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),P===N?b.call(t,O?`html`:`body`)[0]:O?t.documentElement:a},Ft=function(e){let t=oe?oe(e):e.ownerDocument;return ge.call(t||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},It=function(e){return e=jt(e,ye,` `),e=jt(e,be,` `),e=jt(e,xe,` `),e},Lt=function(e){e.normalize();let t=oe?oe(e):e.ownerDocument,n=ge.call(t||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=It(r.data),r=n.nextNode();let i=e.querySelectorAll?.call(e,`template`);i&&St(i,e=>{J(e.content)&&Lt(e.content)})},K=function(e){let t=h?h(e):null;return typeof t!=`string`||R(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==ie(e)||typeof e.removeAttribute!=`function`||typeof e.removeAttributeNode!=`function`||typeof e.getAttributeNode!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==ae(e)||e.childNodes!==te(e)},J=function(e){if(!ae||typeof e!=`object`||!e)return!1;try{return ae(e)===$.documentFragment}catch{return!1}},zt=function(e){if(!ae||typeof e!=`object`||!e)return!1;try{return typeof ae(e)==`number`}catch{return!1}};function X(e,n,r){e.length!==0&&St(e,e=>{e.call(t,n,r,z)})}let mn=function(e,t){return!!(D&&e.hasChildNodes()&&!zt(e.firstElementChild)&&q(un,e.textContent)&&q(un,e.innerHTML)||D&&e.namespaceURI===N&&hn[t]&&(zt(e.firstElementChild)||typeof e.textContent==`string`&&q(gn[t],e.textContent))||e.nodeType===$.processingInstruction||D&&e.nodeType===$.comment&&q(dn,e.data))},Cn=function(e,t){return e instanceof RegExp?q(e,t):e instanceof Function&&!!e(t,...[...arguments].slice(2))},wn=function(e,t,n){if(!Ae[t]&&An(t)&&Cn(w.tagNameCheck,t))return!1;if(Ke&&!A[t]){let t=ne(e),r=te(e);if(r&&t){let i=r.length;for(let a=i-1;a>=0;--a){let i=e===n?f(r[a],!0):r[a];t.insertBefore(i,ee(e))}}}return V(e),!0},Tn=function(e,t,n,r){return e.length===0?t:t===n||t===r?Z(t):t},En=function(e,t){return e===t||ne(e)!==null?!1:(qe&&yt(e),!0)},Dn=function(e,n){if(X(x.beforeSanitizeElements,e,null),En(e,n))return!0;if(K(e))return V(e),!0;let r=R(g(e));if(S=Tn(x.uponSanitizeElement,S,Oe,Le),X(x.uponSanitizeElement,e,{tagName:r,allowedTags:S}),En(e,n))return!0;if(mn(e,r))return V(e),!0;if(Ae[r]||!(T.tagCheck instanceof Function&&T.tagCheck(r))&&!S[r]){let t=wn(e,r,n);return t===!1&&(X(x.afterSanitizeElements,e,null),En(e,n))?!0:t}if(se(e)===$.element&&!pt(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&q(fn,e.innerHTML))return V(e),!0;if(E&&e.nodeType===$.text){let n=It(e.textContent);e.textContent!==n&&(Tt(t.removed,{element:e.cloneNode()}),e.textContent=n)}return X(x.afterSanitizeElements,e,null),En(e,n)},On=function(e,t,r){if(je[t]||bt(t,e)||Ue&&(t===`id`||t===`name`)&&(r in n||r in B))return!1;let i=C[t]||T.attributeCheck instanceof Function&&T.attributeCheck(t,e);return Ne&&q(Se,t)||Me&&q(Ce,t)?!0:i?Xe[t]||q(De,jt(r,Te,``))||(t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&Mt(r,`data:`)===0&&Ye[e]||Pe&&!q(we,jt(r,Te,``))?!0:!r:An(e)&&Cn(w.tagNameCheck,e)&&Cn(w.attributeNameCheck,t,e)||t===`is`&&w.allowCustomizedBuiltInElements&&Cn(w.tagNameCheck,r)},kn=Y({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),An=function(e){return!kn[Ot(e)]&&q(Ee,e)},jn=function(e,t,n,r){if(_&&typeof u==`object`&&typeof u.getAttributeType==`function`&&!n)switch(u.getAttributeType(e,t)){case`TrustedHTML`:return y(r);case`TrustedScriptURL`:return fe(r)}return r},Mn=function(e,t,n,r){try{return n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),!K(e)||(V(e),!1)}catch{return H(t,e),!1}},Nn=function(e,n){if(X(x.beforeSanitizeAttributes,e,null),En(e,n))return;let r=e.attributes;if(!r||K(e))return;C=Tn(x.uponSanitizeAttribute,C,ke,Re);let i={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:C,forceKeepAttr:void 0},a=r.length,o=R(e.nodeName);for(;a--;){let n=r[a],s=n.name,c=n.namespaceURI,l=n.value,u=R(s),d=l,f=s===`value`?d:Nt(d),p=!1;if(i.attrName=u,i.attrValue=f,i.keepAttr=!0,i.forceKeepAttr=void 0,X(x.uponSanitizeAttribute,e,i),f=i.attrValue,We&&(u===`id`||u===`name`)&&Mt(f,Ge)!==0&&(H(s,e,n),f=Ge+f,p=!0),D&&q(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)){H(s,e,n);continue}if(u===`attributename`&&At(f,`href`)){H(s,e,n);continue}if(!i.forceKeepAttr){if(!i.keepAttr){H(s,e,n);continue}if(!Fe&&q(pn,f)){H(s,e,n);continue}if(E&&(f=It(f)),!On(o,u,f)){H(s,e,n);continue}f=jn(o,u,c,f),f!==d&&Mn(e,s,c,f)&&p&&wt(t.removed)}}X(x.afterSanitizeAttributes,e,null),En(e,n)},Pn=function(e){let t=null,n=Ft(e);for(X(x.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(X(x.uponSanitizeShadowNode,t,null),Dn(t,e),Nn(t,e),J(t.content)&&Pn(t.content),se(t)===$.element){let e=re(t);J(e)&&(Fn(e),Pn(e))}X(x.afterSanitizeShadowDOM,e,null)},Fn=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){Pn(e.shadow);continue}let n=e.node,r=se(n)===$.element,i=te(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=h?h(n):null;if(typeof e==`string`&&R(e)===`template`){let e=n.content;J(e)&&t.push({node:e,shadow:null})}}if(r){let e=re(n);J(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if($e=!e,$e&&(e=`<!-->`),typeof e!=`string`&&!zt(e)&&(e=Bt(e),typeof e!=`string`))throw Rt(`dirty is not a string, aborting`);if(!t.isSupported)return e;Ie?(S=Le,C=Re):st(n),(x.uponSanitizeElement.length>0||x.uponSanitizeAttribute.length>0)&&(S=Z(S)),x.uponSanitizeAttribute.length>0&&(C=Z(C)),t.removed=[];let c=qe&&typeof e!=`string`&&zt(e);if(c){xt(e);let t=g(e);if(typeof t==`string`){let n=R(t);if(!S[n]||Ae[n])throw gt(e),Rt(`root node is forbidden and cannot be sanitized in-place`)}if(K(e))throw gt(e),Rt(`root node is clobbered and cannot be sanitized in-place`);try{Fn(e)}catch(t){throw gt(e),t}}else if(zt(e))i=Pt(`<!---->`),a=i.ownerDocument.importNode(e,!0),a.nodeType===$.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),Fn(i);else{if(!Be&&!E&&!O&&e.indexOf(`<`)===-1)return _&&He?y(e):e;if(i=Pt(e),!i)return Be?null:He?v:``}i&&ze&&V(i.firstChild);let l=c?e:i;try{let e=Ft(l);for(;o=e.nextNode();)Dn(o,l),Nn(o,l),J(o.content)&&Pn(o.content)}catch(n){throw c&&(gt(e),St(t.removed,e=>{e.element&&yt(e.element)})),n}if(c){let n=!1;if(St(t.removed,t=>{t.element&&(t.element===e&&(n=!0),yt(t.element))}),n)throw Rt(`a node selected for removal could not be safely returned; refusing to sanitize in place`);return E&&Lt(e),e}if(Be){if(E&&Lt(i),Ve)for(s=_e.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(C.shadowroot||C.shadowrootmode)&&(s=ve.call(r,s,!0)),s}let u=O?i.outerHTML:i.innerHTML;return O&&S[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&q(cn,i.ownerDocument.doctype.name)&&(u=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
|
|
69
|
-
`+u),E&&(u=It(u)),_&&He?y(u):u},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};st(e),Ie=!0,Le=S,Re=C},t.clearConfig=function(){z=null,Ie=!1,Le=null,Re=null,_=ce,v=``},t.isValidAttribute=function(e,t,n){z||st({});let r=R(e),i=R(t);return On(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&G(x,e)&&Tt(x[e],t)},t.removeHook=function(e,t){if(G(x,e)){if(t!==void 0){let n=Ct(x[e],t);return n===-1?void 0:Et(x[e],n,1)[0]}return wt(x[e])}},t.removeHooks=function(e){G(x,e)&&(x[e]=[])},t.removeAllHooks=function(){x=yn()},t}var Cn=Sn(),wn=!1;function Tn(){wn||=(Cn.addHook(`afterSanitizeAttributes`,e=>{if(e.nodeName===`A`){let t=e.getAttribute(`href`)??``;/^https?:\/\//i.test(t)&&(e.setAttribute(`target`,`_blank`),e.setAttribute(`rel`,`noopener noreferrer nofollow`))}}),!0)}Tn();function En(e,t={}){Tn();let n=B.parse(e,{async:!1,breaks:!0,gfm:!0});return Cn.sanitize(n,t.addAttr?{ADD_ATTR:t.addAttr}:void 0)}function Dn(e,t={}){return Tn(),Cn.sanitize(e,t.addAttr?{ADD_ATTR:t.addAttr}:void 0)}var On=new Map;function kn(e,t,n=e=>En(e)){let r=`${e}::${t.length}`,i=On.get(r);if(i!==void 0)return i;let a=n(t);if(On.set(r,a),On.size>400){let e=On.keys().next().value;e!==void 0&&On.delete(e)}return a}function An(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/\n/g,`<br>`)}export{Cn as a,Dn as i,En as n,B as o,kn as r,An as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$ as e,A as t,B as n,C as r,F as i,G as a,H as o,I as s,J as c,L as l,N as u,P as d,Q as f,R as p,T as m,U as h,V as g,W as _,X as v,Y as y,Z as b,at as x,b as S,c as C,ct as ee,d as te,dt as ne,et as re,f as ie,ft as ae,h as oe,ht as se,i as ce,it as w,j as le,k as ue,l as de,lt as fe,m as pe,mt as me,n as he,ot as ge,q as _e,r as ve,s as ye,t as T,tt as be,u as xe,v as Se,w as Ce,x as we,y as Te,z as Ee}from"./reactivity.esm-bundler-DY1JkAEA.js";function E(e,t,n,r){try{return r?e(...r):e()}catch(e){O(e,t,n)}}function D(t,n,r,i){if(y(t)){let a=E(t,n,r,i);return a&&e(a)&&a.catch(e=>{O(e,n,r)}),a}if(c(t)){let e=[];for(let a=0;a<t.length;a++)e.push(D(t[a],n,r,i));return e}}function O(e,t,n,r=!0){let a=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:s}=t&&t.appContext.config||i;if(t){let r=t.parent,i=t.proxy,a=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){let t=r.ec;if(t){for(let n=0;n<t.length;n++)if(t[n](e,i,a)===!1)return}r=r.parent}if(o){pe(),E(o,null,10,[e,i,a]),Te();return}}De(e,n,a,r,s)}function De(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}var k=[],A=-1,Oe=[],j=null,ke=0,Ae=Promise.resolve(),je=null;function Me(e){let t=je||Ae;return e?t.then(this?e.bind(this):e):t}function Ne(e){let t=A+1,n=k.length;for(;t<n;){let r=t+n>>>1,i=k[r],a=ze(i);a<e||a===e&&i.flags&2?t=r+1:n=r}return t}function Pe(e){if(!(e.flags&1)){let t=ze(e),n=k[k.length-1];!n||!(e.flags&2)&&t>=ze(n)?k.push(e):k.splice(Ne(t),0,e),e.flags|=1,Fe()}}function Fe(){je||=Ae.then(Be)}function Ie(e){if(!c(e))j&&e.id===-1?j.splice(ke+1,0,e):e.flags&1||(Oe.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)Oe.push(e[t]);Fe()}function Le(e,t,n=A+1){for(;n<k.length;n++){let t=k[n];if(t&&t.flags&2){if(e&&t.id!==e.uid)continue;k.splice(n,1),n--,t.flags&4&&(t.flags&=-2),t(),t.flags&4||(t.flags&=-2)}}}function Re(e){if(Oe.length){let e=[...new Set(Oe)].sort((e,t)=>ze(e)-ze(t));if(Oe.length=0,j){for(let t=0;t<e.length;t++)j.push(e[t]);return}for(j=e,ke=0;ke<j.length;ke++){let e=j[ke];e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2}j=null,ke=0}}var ze=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Be(e){try{for(A=0;A<k.length;A++){let e=k[A];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),E(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;A<k.length;A++){let e=k[A];e&&(e.flags&=-2)}A=-1,k.length=0,Re(e),je=null,(k.length||Oe.length)&&Be(e)}}var M=null,Ve=null;function He(e){let t=M;return M=e,Ve=e&&e.type.__scopeId||null,t}function Ue(e,t=M,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&br(-1);let i=He(t),a=G.length,o;try{o=e(...n)}finally{for(let e=G.length;e>a;e--)vr();He(i),r._d&&br(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function We(e,n){if(M===null)return e;let r=Xr(M),a=e.dirs||=[];for(let e=0;e<n.length;e++){let[o,s,c,l=i]=n[e];o&&(y(o)&&(o={mounted:o,updated:o}),o.deep&&t(s),a.push({dir:o,instance:r,value:s,oldValue:void 0,arg:c,modifiers:l}))}return e}function N(e,t,n,r){let i=e.dirs,a=t&&t.dirs;for(let o=0;o<i.length;o++){let s=i[o];a&&(s.oldValue=a[o].value);let c=s.dir[r];c&&(pe(),D(c,n,8,[e.el,s,e,t]),Te())}}function Ge(e,t){if($){let n=$.provides,r=$.parent&&$.parent.provides;r===n&&(n=$.provides=Object.create(r)),n[e]=t}}function Ke(e,t,n=!1){let r=Lr();if(r||B){let i=B?B._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&y(t)?t.call(r&&r.proxy):t}}function qe(){return!!(Lr()||B)}var Je=Symbol.for(`v-scx`),Ye=()=>Ke(Je);function Xe(e,t){return Qe(e,null,{flush:`sync`})}function Ze(e,t,n){return Qe(e,t,n)}function Qe(e,t,n=i){let{immediate:r,deep:a,flush:o,once:s}=n,c=g({},n),d=t&&r||!t&&o!==`post`,f;if(Ur){if(o===`sync`){let e=Ye();f=e.__watcherHandles||=[]}else if(!d){let e=()=>{};return e.stop=l,e.resume=l,e.pause=l,e}}let p=$;c.call=(e,t,n)=>D(e,p,t,n);let m=!1;o===`post`?c.scheduler=e=>{V(e,p&&p.suspense)}:o!==`sync`&&(m=!0,c.scheduler=(e,t)=>{t?e():Pe(e)}),c.augmentJob=e=>{t&&(e.flags|=4),m&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};let h=u(e,t,c);return Ur&&(f?f.push(h):d&&h()),h}var P=new WeakMap,$e=Symbol(`_vte`),et=e=>e.__isTeleport,F=e=>e&&(e.disabled||e.disabled===``),tt=e=>e&&(e.defer||e.defer===``),nt=e=>typeof SVGElement<`u`&&e instanceof SVGElement,rt=e=>typeof MathMLElement==`function`&&e instanceof MathMLElement,it=(e,t)=>{let n=e&&e.to;return w(n)?t?t(n):null:n},at={name:`Teleport`,__isTeleport:!0,process(e,t,n,r,i,a,o,s,c,l){let{mc:u,pc:d,pbc:f,o:{insert:p,querySelector:m,createText:h,createComment:g,parentNode:_}}=l,v=F(t.props),{dynamicChildren:y}=t,b=(e,t,n)=>{e.shapeFlag&16&&u(e.children,t,n,i,a,o,s,c)},x=(e=t)=>{let n=F(e.props),r=e.target=it(e.props,m),a=ut(r,e,h,p);r&&(o!==`svg`&&nt(r)?o=`svg`:o!==`mathml`&&rt(r)&&(o=`mathml`),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(r),n||(b(e,r,a),lt(e,!1)))},S=e=>{let t=()=>{if(P.get(e)===t){if(P.delete(e),F(e.props)){let t=_(e.el)||n;b(e,t,e.anchor),lt(e,!0)}x(e)}};P.set(e,t),V(t,a)};if(e==null){let e=t.el=h(``),i=t.anchor=h(``);if(p(e,n,r),p(i,n,r),tt(t.props)||a&&a.pendingBranch){S(t);return}v&&(b(t,n,i),lt(t,!0)),x()}else{t.el=e.el;let r=t.anchor=e.anchor,u=P.get(e);if(u){u.flags|=8,P.delete(e),S(t);return}t.targetStart=e.targetStart;let p=t.target=e.target,h=t.targetAnchor=e.targetAnchor,g=F(e.props),_=g?n:p,b=g?r:h;if(o===`svg`||nt(p)?o=`svg`:(o===`mathml`||rt(p))&&(o=`mathml`),y?(f(e.dynamicChildren,y,_,i,a,o,s),Zn(e,t,!0)):c||d(e,t,_,b,i,a,o,s,!1),v)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):ot(t,n,r,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){let e=it(t.props,m);e&&(t.target=e,ot(t,e,null,l,0))}else g&&ot(t,p,h,l,1);lt(t,v)}},remove(e,t,n,{um:r,o:{remove:i}},a){let{shapeFlag:o,children:s,anchor:c,targetStart:l,targetAnchor:u,target:d,props:f}=e,p=F(f),m=a||!p,h=P.get(e);if(h&&(h.flags|=8,P.delete(e)),d&&(i(l),i(u)),a&&i(c),!h&&(p||d)&&o&16)for(let e=0;e<s.length;e++){let i=s[e];r(i,t,n,m,!!i.dynamicChildren)}},move:ot,hydrate:st};function ot(e,t,n,{o:{insert:r},m:i},a=2){a===0&&r(e.targetAnchor,t,n);let{el:o,anchor:s,shapeFlag:c,children:l,props:u}=e,d=a===2;if(d&&r(o,t,n),!P.has(e)&&(!d||F(u))&&c&16)for(let e=0;e<l.length;e++)i(l[e],t,n,2);d&&r(s,t,n)}function st(e,t,n,r,i,a,{o:{nextSibling:o,parentNode:s,querySelector:c,insert:l,createText:u}},d){function f(e,n){let r=n;for(;r;){if(r&&r.nodeType===8){if(r.data===`teleport start anchor`)t.targetStart=r;else if(r.data===`teleport anchor`){t.targetAnchor=r,e._lpa=t.targetAnchor&&o(t.targetAnchor);break}}r=o(r)}}function p(e,t){t.anchor=d(o(e),t,s(e),n,r,i,a)}let m=t.target=it(t.props,c),h=F(t.props);if(m){let c=m._lpa||m.firstChild;t.shapeFlag&16&&(h?(p(e,t),f(m,c),t.targetAnchor||ut(m,t,u,l,s(e)===m?e:null)):(t.anchor=o(e),f(m,c),t.targetAnchor||ut(m,t,u,l),d(c&&o(c),t,m,n,r,i,a))),lt(t,h)}else h&&t.shapeFlag&16&&(p(e,t),t.targetStart=e,t.targetAnchor=o(e));return t.anchor&&o(t.anchor)}var ct=at;function lt(e,t){let n=e.ctx;if(n&&n.ut){let r,i;for(t?(r=e.el,i=e.anchor):(r=e.targetStart,i=e.targetAnchor);r&&r!==i;)r.nodeType===1&&r.setAttribute(`data-v-owner`,n.uid),r=r.nextSibling;n.ut()}}function ut(e,t,n,r,i=null){let a=t.targetStart=n(``),o=t.targetAnchor=n(``);return a[$e]=o,e&&(r(a,e,i),r(o,e,i)),o}var I=Symbol(`_leaveCb`),dt=Symbol(`_enterCb`);function ft(){let e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Kt(()=>{e.isMounted=!0}),Yt(()=>{e.isUnmounting=!0}),e}var L=[Function,Array],pt={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:L,onEnter:L,onAfterEnter:L,onEnterCancelled:L,onBeforeLeave:L,onLeave:L,onAfterLeave:L,onLeaveCancelled:L,onBeforeAppear:L,onAppear:L,onAfterAppear:L,onAppearCancelled:L},mt=e=>{let t=e.subTree;return t.component?mt(t.component):t},ht={name:`BaseTransition`,props:pt,setup(e,{slots:t}){let n=Lr(),i=ft();return()=>{let a=t.default&&St(t.default(),!0),o=a&&a.length?gt(a):n.subTree?jr():void 0;if(!o)return;let s=r(e),{mode:c}=s;if(i.isLeaving)return bt(o);let l=xt(o);if(!l)return bt(o);let u=yt(l,s,i,n,e=>u=e);l.type!==W&&R(l,u);let d=n.subTree&&xt(n.subTree);if(d&&d.type!==W&&!q(d,l)&&mt(n).type!==W){let e=yt(d,s,i,n);if(R(d,e),c===`out-in`&&l.type!==W)return i.isLeaving=!0,e.afterLeave=()=>{i.isLeaving=!1,n.job.flags&8||n.update(),delete e.afterLeave,d=void 0},bt(o);c===`in-out`&&l.type!==W?e.delayLeave=(e,t,n)=>{let r=vt(i,d);r[String(d.key)]=d,e[I]=()=>{t(),e[I]=void 0,delete u.delayedLeave,d=void 0},u.delayedLeave=()=>{n(),delete u.delayedLeave,d=void 0}}:d=void 0}else d&&=void 0;return o}}};function gt(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==W){t=n;break}}return t}var _t=ht;function vt(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function yt(e,t,n,r,i){let{appear:a,mode:o,persisted:s=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:d,onEnterCancelled:f,onBeforeLeave:p,onLeave:m,onAfterLeave:h,onLeaveCancelled:g,onBeforeAppear:_,onAppear:v,onAfterAppear:y,onAppearCancelled:b}=t,x=String(e.key),S=vt(n,e),C=(e,t)=>{e&&D(e,r,9,t)},ee=(e,t)=>{let n=t[1];C(e,t),c(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},te={mode:o,persisted:s,beforeEnter(t){let r=l;if(!n.isMounted){if(a)r=_||l;else return}t[I]&&t[I](!0);let i=S[x];i&&q(e,i)&&i.el[I]&&i.el[I](),C(r,[t])},enter(t){if(S[x]===e)return;let r=u,i=d,o=f;if(!n.isMounted){if(a)r=v||u,i=y||d,o=b||f;else return}let s=!1;t[dt]=e=>{s||(s=!0,C(e?o:i,[t]),te.delayedLeave&&te.delayedLeave(),t[dt]=void 0)};let c=t[dt].bind(null,!1);r?ee(r,[t,c]):c()},leave(t,r){let i=String(e.key);if(t[dt]&&t[dt](!0),n.isUnmounting)return r();C(p,[t]);let a=!1;t[I]=n=>{a||(a=!0,r(),C(n?g:h,[t]),t[I]=void 0,S[i]===e&&delete S[i])};let o=t[I].bind(null,!1);S[i]=e,m?ee(m,[t,o]):o()},clone(e){let a=yt(e,t,n,r,i);return i&&i(a),a}};return te}function bt(e){if(Pt(e))return e=Y(e),e.children=null,e}function xt(e){if(!Pt(e))return et(e.type)&&e.children?gt(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&y(n.default))return n.default()}}function R(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;let n=e.component.subTree;R(et(n.type)&&xt(n)||n,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function St(e,t=!1,n){let r=[],i=0;for(let a=0;a<e.length;a++){let o=e[a],s=n==null?o.key:String(n)+String(o.key==null?a:o.key);o.type===U?(o.patchFlag&128&&i++,r=r.concat(St(o.children,t,s))):(t||o.type!==W)&&r.push(s==null?o:Y(o,{key:s}))}if(i>1)for(let e=0;e<r.length;e++)r[e].patchFlag=-2;return r}function Ct(e,t){return y(e)?g({name:e.name},t,{setup:e}):e}function wt(){let e=Lr();return e?(e.appContext.config.idPrefix||`v`)+`-`+e.ids[0]+e.ids[1]++:``}function Tt(e){e.ids=[e.ids[0]+e.ids[2]+++`-`,0,0]}function Et(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}var Dt=new WeakMap;function Ot(e,t,n,a,o=!1){if(c(e)){e.forEach((e,r)=>Ot(e,t&&(c(t)?t[r]:t),n,a,o));return}if(z(a)&&!o){a.shapeFlag&512&&a.type.__asyncResolved&&a.component.subTree.component&&Ot(e,t,n,a.component.subTree);return}let l=a.shapeFlag&4?Xr(a.component):a.el,u=o?null:l,{i:d,r:f}=e,p=t&&t.r,m=d.refs===i?d.refs={}:d.refs,h=d.setupState,g=r(h),v=h===i?s:e=>!Et(m,e)&&_(g,e),b=(e,t)=>!(t&&Et(m,t));if(p!=null&&p!==f){if(kt(t),w(p))m[p]=null,v(p)&&(h[p]=null);else if(xe(p)){let e=t;b(p,e.k)&&(p.value=null),e.k&&(m[e.k]=null)}}if(y(f))E(f,d,12,[u,m]);else{let t=w(f),r=xe(f);if(t||r){let i=()=>{if(e.f){let n=t?v(f)?h[f]:m[f]:b(f)||!e.k?f.value:m[e.k];if(o)c(n)&&ae(n,l);else if(c(n))n.includes(l)||n.push(l);else if(t)m[f]=[l],v(f)&&(h[f]=m[f]);else{let t=[l];b(f,e.k)&&(f.value=t),e.k&&(m[e.k]=t)}}else t?(m[f]=u,v(f)&&(h[f]=u)):r&&(b(f,e.k)&&(f.value=u),e.k&&(m[e.k]=u))};if(u){let t=()=>{i(),Dt.delete(e)};t.id=-1,Dt.set(e,t),V(t,n)}else kt(e),i()}}}function kt(e){let t=Dt.get(e);t&&(t.flags|=8,Dt.delete(e))}var At=e=>e.nodeType===8;o().requestIdleCallback,o().cancelIdleCallback;function jt(e,t){if(At(e)&&e.data===`[`){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(At(r)){if(r.data===`]`){if(--n===0)break}else r.data===`[`&&n++}r=r.nextSibling}}else t(e)}var z=e=>!!e.type.__asyncLoader;function Mt(e){y(e)&&(e={loader:e});let{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,hydrate:a,timeout:o,suspensible:s=!0,onError:c}=e,l=null,u,d=0,f=()=>(d++,l=null,p()),p=()=>{let e;return l||(e=l=t().catch(e=>{if(e=e instanceof Error?e:Error(String(e)),c)return new Promise((t,n)=>{c(e,()=>t(f()),()=>n(e),d+1)});throw e}).then(t=>e!==l&&l?l:(t&&(t.__esModule||t[Symbol.toStringTag]===`Module`)&&(t=t.default),u=t,t)))};return Ct({name:`AsyncComponentWrapper`,__asyncLoader:p,__asyncHydrate(e,t,n){let r=e.isConnected,i=!1;(t.bu||=[]).push(()=>i=!0);let o=()=>{i||!e.parentNode||r&&!e.isConnected||n()},s=a?()=>{let n=a(o,t=>jt(e,t));n&&(t.bum||=[]).push(n)}:o;u?s():p().then(()=>!t.isUnmounted&&s())},get __asyncResolved(){return u},setup(){let e=$;if(Tt(e),u)return()=>Nt(u,e);let t=t=>{l=null,O(t,e,13,!r)};if(s&&e.suspense||Ur)return p().then(t=>()=>Nt(t,e)).catch(e=>(t(e),()=>r?J(r,{error:e}):null));let a=Se(!1),c=Se(),d=Se(!!i),f,m;return Xt(()=>{f!=null&&clearTimeout(f),m!=null&&clearTimeout(m)}),i&&(m=setTimeout(()=>{e.isUnmounted||(d.value=!1)},i)),o!=null&&(f=setTimeout(()=>{if(!e.isUnmounted&&!a.value&&!c.value){let e=Error(`Async component timed out after ${o}ms.`);t(e),c.value=e}},o)),p().then(()=>{e.isUnmounted||(a.value=!0,e.parent&&Pt(e.parent.vnode)&&e.parent.update())}).catch(n=>{if(e.isUnmounted){l=null;return}t(n),c.value=n}),()=>{if(a.value&&u)return Nt(u,e);if(c.value&&r)return J(r,{error:c.value});if(n&&!d.value)return Nt(n,e)}}})}function Nt(e,t){let{ref:n,props:r,children:i,ce:a}=t.vnode,o=J(e,r,i);return o.ref=n,o.ce=a,delete t.vnode.ce,o}var Pt=e=>e.type.__isKeepAlive,Ft={name:`KeepAlive`,__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){let n=Lr(),r=n.ctx;if(!r.renderer)return()=>{let e=t.default&&t.default();return e&&e.length===1?e[0]:e};let i=new Map,a=new Set,o=null,s=n.suspense,{renderer:{p:c,m:l,um:u,o:{createElement:d}}}=r,f=d(`div`);r.activate=(e,t,n,r,i)=>{let a=e.component;l(e,t,n,0,s),c(a.vnode,e,t,n,a,s,r,e.slotScopeIds,i),V(()=>{a.isDeactivated=!1,a.a&&_e(a.a);let t=e.props&&e.props.onVnodeMounted;t&&Q(t,a.parent,e)},s)},r.deactivate=e=>{let t=e.component;er(t.m),er(t.a),l(e,f,null,1,s),V(()=>{t.da&&_e(t.da);let n=e.props&&e.props.onVnodeUnmounted;n&&Q(n,t.parent,e),t.isDeactivated=!0},s)};function p(e){Vt(e),u(e,n,s,!0)}function m(e){i.forEach((t,n)=>{let r=Zr(z(t)?t.type.__asyncResolved||{}:t.type);r&&!e(r)&&h(n)})}function h(e){let t=i.get(e);t&&(!o||!q(t,o))?p(t):o&&Vt(o),i.delete(e),a.delete(e)}Ze(()=>[e.include,e.exclude],([e,t])=>{e&&m(t=>It(e,t)),t&&m(e=>!It(t,e))},{flush:`post`,deep:!0});let g=null,_=()=>{g!=null&&(nr(n.subTree.type)?V(()=>{let e=Ht(n.subTree);e.component&&i.set(g,e)},n.subTree.suspense):i.set(g,Ht(n.subTree)))};return Kt(_),Jt(_),Yt(()=>{i.forEach(e=>{let{subTree:t,suspense:r}=n,i=Ht(t);if(e.type===i.type&&e.key===i.key){Vt(i);let e=i.component.da;e&&V(e,r);return}p(e)})}),()=>{if(g=null,!t.default)return o=null;let n=t.default(),r=n[0];if(n.length>1)return o=null,n;if(!wr(r)||!(r.shapeFlag&4)&&!(r.shapeFlag&128))return o=null,r;let s=Ht(r);if(s.type===W)return o=null,s;let c=s.type,l=Zr(z(s)?s.type.__asyncResolved||{}:c),{include:u,exclude:d,max:f}=e;if(u&&(!l||!It(u,l))||d&&l&&It(d,l))return s.shapeFlag&=-257,o=s,r;let p=s.key==null?c:s.key,m=i.get(p);return s.el&&(s=Y(s),r.shapeFlag&128&&(r.ssContent=s)),g=p,m?(s.el=m.el,s.component=m.component,s.transition&&R(s,s.transition),s.shapeFlag|=512,a.delete(p),a.add(p)):(a.add(p),f&&a.size>parseInt(f,10)&&h(a.values().next().value)),s.shapeFlag|=256,o=s,nr(r.type)?r:s}}};function It(e,t){return c(e)?e.some(e=>It(e,t)):w(e)?e.split(`,`).includes(t):re(e)?(e.lastIndex=0,e.test(t)):!1}function Lt(e,t){zt(e,`a`,t)}function Rt(e,t){zt(e,`da`,t)}function zt(e,t,n=$){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(Ut(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Pt(e.parent.vnode)&&Bt(r,t,n,e),e=e.parent}}function Bt(e,t,n,r){let i=Ut(t,e,r,!0);Xt(()=>{ae(r[t],i)},n)}function Vt(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Ht(e){return e.shapeFlag&128?e.ssContent:e}function Ut(e,t,n=$,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{pe();let i=Br(n),a=D(t,n,e,r);return i(),Te(),a};return r?i.unshift(a):i.push(a),a}}var Wt=e=>(t,n=$)=>{(!Ur||e===`sp`)&&Ut(e,(...e)=>t(...e),n)},Gt=Wt(`bm`),Kt=Wt(`m`),qt=Wt(`bu`),Jt=Wt(`u`),Yt=Wt(`bum`),Xt=Wt(`um`),Zt=`components`;function Qt(e,t){return tn(Zt,e,!0,t)||e}var $t=Symbol.for(`v-ndc`);function en(e){return w(e)?tn(Zt,e,!1)||e:e||$t}function tn(e,t,n=!0,r=!1){let i=M||$;if(i){let n=i.type;if(e===Zt){let e=Zr(n,!1);if(e&&(e===t||e===p(t)||e===Ee(p(t))))return n}let a=nn(i[e]||n[e],t)||nn(i.appContext[e],t);return!a&&r?n:a}}function nn(e,t){return e&&(e[t]||e[p(t)]||e[Ee(p(t))])}function rn(e,t,n,r){let i,a=n&&n[r],o=c(e);if(o||w(e)){let n=o&&C(e),r=!1,s=!1;n&&(r=!te(e),s=de(e),e=we(e)),i=Array(e.length);for(let n=0,o=e.length;n<o;n++)i[n]=t(r?s?m(Ce(e[n])):Ce(e[n]):e[n],n,void 0,a&&a[n])}else if(typeof e==`number`){i=Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,a&&a[n])}else if(b(e)){if(e[Symbol.iterator])i=Array.from(e,(e,n)=>t(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,o=n.length;r<o;r++){let o=n[r];i[r]=t(e[o],o,r,a&&a[r])}}}else i=[];return n&&(n[r]=i),i}function an(e,t){for(let n=0;n<t.length;n++){let r=t[n];if(c(r))for(let t=0;t<r.length;t++)e[r[t].name]=r[t].fn;else r&&(e[r.name]=r.key?(...e)=>{let t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}function on(e,t,n,r,i,a){if(n??={},M.ce||M.parent&&z(M.parent)&&M.parent.ce){let e=a!=null&&n.key==null?g({},n,{key:a}):n,i=Object.keys(e).length>0;return t!=="default"&&(e.name=t),_r(),Cr(U,null,[J(`slot`,e,r&&r())],i?-2:64)}let o=e[t];o&&o._c&&(o._d=!1);let s=G.length;_r();let c;try{let i=o&&sn(o(n)),s=n.key||a||i&&i.key;c=Cr(U,{key:(s&&!x(s)?s:`_${t}`)+(!i&&r?`_fb`:``)},i||(r?r():[]),i&&e._===1?64:-2)}catch(e){for(let e=G.length;e>s;e--)vr();throw e}finally{o&&o._c&&(o._d=!0)}return!i&&c.scopeId&&(c.slotScopeIds=[c.scopeId+`-s`]),c}function sn(e){return e.some(e=>!wr(e)||!(e.type===W||e.type===U&&!sn(e.children)))?e:null}var cn=e=>e?Hr(e)?Xr(e):cn(e.parent):null,ln=g(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>cn(e.parent),$root:e=>cn(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||=()=>{Pe(e.update)},$nextTick:e=>e.n||=Me.bind(e.proxy),$watch:e=>l}),un=(e,t)=>e!==i&&!e.__isScriptSetup&&_(e,t),dn={get({_:e},t){if(t===`__v_skip`)return!0;let{ctx:n,setupState:r,data:a,props:o,accessCache:s,type:c,appContext:l}=e;if(t[0]!==`$`){let e=s[t];if(e!==void 0)switch(e){case 1:return r[t];case 2:return a[t];case 4:return n[t];case 3:return o[t]}else if(un(r,t))return s[t]=1,r[t];else if(_(o,t))return s[t]=3,o[t];else if(n!==i&&_(n,t))return s[t]=4,n[t];else s[t]=0}let u=ln[t],d,f;if(u)return t===`$attrs`&&ue(e.attrs,`get`,``),u(e);if((d=c.__cssModules)&&(d=d[t]))return d;if(n!==i&&_(n,t))return s[t]=4,n[t];if(f=l.config.globalProperties,_(f,t))return f[t]},set({_:e},t,n){let{data:r,setupState:i,ctx:a}=e;return un(i,t)?(i[t]=n,!0):_(e.props,t)||t[0]===`$`&&t.slice(1)in e?!1:(a[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,props:a,type:o}},s){let c;return!!(n[s]||un(t,s)||_(a,s)||_(r,s)||_(ln,s)||_(i.config.globalProperties,s)||(c=o.__cssModules)&&c[s])},defineProperty(e,t,n){return n.get==null?_(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}};function fn(e){return c(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function pn(e,t){return!e||!t?e||t:c(e)&&c(t)?e.concat(t):g({},fn(e),fn(t))}function mn(){return{app:null,config:{isNativeTag:s,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}var hn=0;function gn(e,t){return function(n,r=null){y(n)||(n=g({},n)),r!=null&&!b(r)&&(r=null);let i=mn(),a=new WeakSet,o=[],s=!1,c=i.app={_uid:hn++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:ti,get config(){return i.config},set config(e){},use(e,...t){return a.has(e)||(e&&y(e.install)?(a.add(e),e.install(c,...t)):y(e)&&(a.add(e),e(c,...t))),c},mixin(e){return c},component(e,t){return t?(i.components[e]=t,c):i.components[e]},directive(e,t){return t?(i.directives[e]=t,c):i.directives[e]},mount(a,o,l){if(!s){let u=c._ceVNode||J(n,r);return u.appContext=i,l===!0?l=`svg`:l===!1&&(l=void 0),o&&t?t(u,a):e(u,a,l),s=!0,c._container=a,a.__vue_app__=c,Xr(u.component)}},onUnmount(e){o.push(e)},unmount(){s&&(D(o,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(e,t){return i.provides[e]=t,c},runWithContext(e){let t=B;B=c;try{return e()}finally{B=t}}};return c}}var B=null;function _n(e,t,n=i){let r=Lr(),o=p(t),s=a(t),c=vn(e,o),l=ce((a,c)=>{let l,u=i,d;return Xe(()=>{let t=e[o];h(l,t)&&(l=t,c())}),{get(){return a(),n.get?n.get(l):l},set(e){let a=n.set?n.set(e):e;if(!h(a,l)&&!(u!==i&&h(e,u)))return;let f=r.vnode.props,p=!!(f&&(t in f||o in f||s in f)&&(`onUpdate:${t}`in f||`onUpdate:${o}`in f||`onUpdate:${s}`in f));p||(l=e,c()),r.emit(`update:${t}`,a),h(e,u)&&(h(e,a)&&!h(a,d)||p&&u!==i&&!h(a,l))&&c(),u=e,d=a}}});return l[Symbol.iterator]=()=>{let e=0;return{next(){return e<2?{value:e++?c||i:l,done:!1}:{done:!0}}}},l}var vn=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${p(t)}Modifiers`]||e[`${a(t)}Modifiers`];function yn(e,t,...n){if(e.isUnmounted)return;let r=e.vnode.props||i,o=n,s=t.startsWith(`update:`),c=s&&vn(r,t.slice(7));c&&(c.trim&&(o=n.map(e=>w(e)?e.trim():e)),c.number&&(o=o.map(ee)));let l,u=r[l=me(t)]||r[l=me(p(t))];!u&&s&&(u=r[l=me(a(t))]),u&&D(u,e,6,o);let d=r[l+`Once`];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,D(d,e,6,o)}}function bn(e,t,n=!1){let r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={};return a?(c(a)?a.forEach(e=>o[e]=null):g(o,a),b(e)&&r.set(e,o),o):(b(e)&&r.set(e,null),null)}function xn(e,t){return!e||!f(t)?!1:(t=t.slice(2),t=t===`Once`?t:t.replace(/Once$/,``),_(e,t[0].toLowerCase()+t.slice(1))||_(e,a(t))||_(e,t))}function Sn(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:o,attrs:s,emit:c,render:l,renderCache:u,props:d,data:f,setupState:p,ctx:m,inheritAttrs:h}=e,g=He(e),_,y;try{if(n.shapeFlag&4){let e=i||r,t=e;_=X(l.call(t,e,u,d,p,f,m)),y=s}else{let e=t;_=X(e.length>1?e(d,{attrs:s,slots:o,emit:c}):e(d,null)),y=t.props?s:wn(s)}}catch(t){G.length=0,O(t,e,1),_=J(W)}let b=_;if(y&&h!==!1){let e=Object.keys(y),{shapeFlag:t}=b;e.length&&t&7&&(a&&e.some(v)&&(y=Tn(y,a)),b=Y(b,y,!1,!0))}return n.dirs&&(b=Y(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&R(et(b.type)&&xt(b)||b,n.transition),_=b,He(g),_}function Cn(e,t=!0){let n;for(let t=0;t<e.length;t++){let r=e[t];if(wr(r)){if(r.type!==W||r.children===`v-if`){if(n)return;n=r}}else return}return n}var wn=e=>{let t;for(let n in e)(n===`class`||n===`style`||f(n))&&((t||={})[n]=e[n]);return t},Tn=(e,t)=>{let n={};for(let r in e)(!v(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function En(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?Dn(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t];if(On(o,r,n)&&!xn(l,n))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===o?!1:r?!o||Dn(r,o,l):!!o;return!1}function Dn(e,t,n){let r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){let a=r[i];if(On(t,e,a)&&!xn(n,a))return!0}return!1}function On(e,t,n){let r=e[n],i=t[n];return n===`style`&&b(r)&&b(i)?!ge(r,i):r!==i}function kn({vnode:e,parent:t,suspense:n},r){for(;t;){let n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.suspense.vnode.el=n.el=r,e=n),n===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}var An={},jn=()=>Object.create(An),Mn=e=>Object.getPrototypeOf(e)===An;function Nn(e,t,n,r=!1){let i={},a=jn();e.propsDefaults=Object.create(null),Fn(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);e.props=n?r?i:S(i):e.type.props?i:a,e.attrs=a}function Pn(e,t,n,i){let{props:o,attrs:s,vnode:{patchFlag:c}}=e,l=r(o),[u]=e.propsOptions,d=!1;if((i||c>0)&&!(c&16)){if(c&8){let n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let i=n[r];if(xn(e.emitsOptions,i))continue;let a=t[i];if(u){if(_(s,i))a!==s[i]&&(s[i]=a,d=!0);else{let t=p(i);o[t]=In(u,l,t,a,e,!1)}}else a!==s[i]&&(s[i]=a,d=!0)}}}else{Fn(e,t,o,s)&&(d=!0);let r;for(let i in l)(!t||!_(t,i)&&((r=a(i))===i||!_(t,r)))&&(u?n&&(n[i]!==void 0||n[r]!==void 0)&&(o[i]=In(u,l,i,void 0,e,!0)):delete o[i]);if(s!==l)for(let e in s)(!t||!_(t,e))&&(delete s[e],d=!0)}d&&le(e.attrs,`set`,``)}function Fn(e,t,n,a){let[o,s]=e.propsOptions,c=!1,l;if(t)for(let r in t){if(be(r))continue;let i=t[r],u;o&&_(o,u=p(r))?!s||!s.includes(u)?n[u]=i:(l||={})[u]=i:xn(e.emitsOptions,r)||(!(r in a)||i!==a[r])&&(a[r]=i,c=!0)}if(s){let t=r(n),a=l||i;for(let r=0;r<s.length;r++){let i=s[r];n[i]=In(o,t,i,a[i],e,!_(a,i))}}return c}function In(e,t,n,r,i,o){let s=e[n];if(s!=null){let e=_(s,`default`);if(e&&r===void 0){let e=s.default;if(s.type!==Function&&!s.skipFactory&&y(e)){let{propsDefaults:a}=i;if(n in a)r=a[n];else{let o=Br(i);r=a[n]=e.call(null,t),o()}}else r=e;i.ce&&i.ce._setProp(n,r)}s[0]&&(o&&!e?r=!1:s[1]&&(r===``||r===a(n))&&(r=!0))}return r}function Ln(e,t,n=!1){let r=t.propsCache,a=r.get(e);if(a)return a;let o=e.props,s={},l=[];if(!o)return b(e)&&r.set(e,d),d;if(c(o))for(let e=0;e<o.length;e++){let t=p(o[e]);Rn(t)&&(s[t]=i)}else if(o)for(let e in o){let t=p(e);if(Rn(t)){let n=o[e],r=s[t]=c(n)||y(n)?{type:n}:g({},n),i=r.type,a=!1,u=!0;if(c(i))for(let e=0;e<i.length;++e){let t=i[e],n=y(t)&&t.name;if(n===`Boolean`){a=!0;break}n===`String`&&(u=!1)}else a=y(i)&&i.name===`Boolean`;r[0]=a,r[1]=u,(a||_(r,`default`))&&l.push(t)}}let u=[s,l];return b(e)&&r.set(e,u),u}function Rn(e){return e[0]!==`$`&&!be(e)}var zn=e=>e===`_`||e===`_ctx`||e===`$stable`,Bn=e=>c(e)?e.map(X):[X(e)],Vn=(e,t,n)=>{if(t._n)return t;let r=Ue((...e)=>Bn(t(...e)),n);return r._c=!1,r},Hn=(e,t,n)=>{let r=e._ctx;for(let n in e){if(zn(n))continue;let i=e[n];if(y(i))t[n]=Vn(n,i,r);else if(i!=null){let e=Bn(i);t[n]=()=>e}}},Un=(e,t)=>{let n=Bn(t);e.slots.default=()=>n},Wn=(e,t,n)=>{for(let r in t)(n||!zn(r))&&(e[r]=t[r])},Gn=(e,t,r)=>{let i=e.slots=jn();if(e.vnode.shapeFlag&32){let e=t._;e?(Wn(i,t,r),r&&n(i,`_`,e,!0)):Hn(t,i)}else t&&Un(e,t)},Kn=(e,t,n)=>{let{vnode:r,slots:a}=e,o=!0,s=i;if(r.shapeFlag&32){let e=t._;e?n&&e===1?o=!1:Wn(a,t,n):(o=!t.$stable,Hn(t,a)),s=t}else t&&(Un(e,t),s={default:1});if(o)for(let e in a)!zn(e)&&s[e]==null&&delete a[e]},V=fr;function qn(e){return Jn(e)}function Jn(e,t){let n=o();n.__VUE__=!0;let{insert:r,remove:a,patchProp:s,createElement:c,createText:u,createComment:f,setText:p,setElementText:m,parentNode:h,nextSibling:g,setScopeId:_=l,insertStaticContent:v}=e,y=(e,t,n,r=null,i=null,a=null,o=void 0,s=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!q(e,t)&&(r=Ee(e),T(e,i,a,!0),e=null),t.patchFlag===-2&&(c=!1,t.dynamicChildren=null),t.dynamicChildren&&e&&e.dynamicChildren&&e.dynamicChildren.hasOnce&&(t.dynamicChildren===d&&(t.dynamicChildren=[]),t.dynamicChildren.hasOnce=!0);let{type:l,ref:u,shapeFlag:f}=t;switch(l){case hr:b(e,t,n,r);break;case W:x(e,t,n,r);break;case gr:e??S(t,n,r,o);break;case U:ce(e,t,n,r,i,a,o,s,c);break;default:f&1?te(e,t,n,r,i,a,o,s,c):f&6?w(e,t,n,r,i,a,o,s,c):(f&64||f&128)&&l.process(e,t,n,r,i,a,o,s,c,O)}u!=null&&i?Ot(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&Ot(e.ref,null,a,e,!0)},b=(e,t,n,i)=>{if(e==null)r(t.el=u(t.children),n,i);else{let n=t.el=e.el;t.children!==e.children&&p(n,t.children)}},x=(e,t,n,i)=>{e==null?r(t.el=f(t.children||``),n,i):t.el=e.el},S=(e,t,n,r)=>{[e.el,e.anchor]=v(e.children,t,n,r,e.el,e.anchor)},C=({el:e,anchor:t},n,i)=>{let a;for(;e&&e!==t;)a=g(e),r(e,n,i),e=a;r(t,n,i)},ee=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=g(e),a(e),e=n;a(t)},te=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)ne(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),ae(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},ne=(e,t,n,i,a,o,l,u)=>{let d,f,{props:p,shapeFlag:h,transition:g,dirs:_}=e;if(d=e.el=c(e.type,o,p&&p.is,p),h&8?m(d,e.children):h&16&&ie(e.children,d,null,i,a,Yn(e,o),l,u),_&&N(e,null,i,`created`),re(d,e,e.scopeId,l,i),p){for(let e in p)e!==`value`&&!be(e)&&s(d,e,null,p[e],o,i);`value`in p&&s(d,`value`,null,p.value,o),(f=p.onVnodeBeforeMount)&&Q(f,i,e)}_&&N(e,null,i,`beforeMount`);let v=Xn(a,g);v&&g.beforeEnter(d),r(d,t,n),((f=p&&p.onVnodeMounted)||v||_)&&V(()=>{try{f&&Q(f,i,e),v&&g.enter(d),_&&N(e,null,i,`mounted`)}finally{}},a)},re=(e,t,n,r,i)=>{if(n&&_(e,n),r)for(let t=0;t<r.length;t++)_(e,r[t]);if(i){let n=i.subTree;if(t===n||nr(n.type)&&(n.ssContent===t||n.ssFallback===t)){let t=i.vnode;re(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},ie=(e,t,n,r,i,a,o,s,c=0)=>{for(let l=c;l<e.length;l++){let c=e[l]=s?Z(e[l]):X(e[l]);y(null,c,t,n,r,i,a,o,s)}},ae=(e,t,n,r,a,o,c)=>{let l=t.el=e.el,{patchFlag:u,dynamicChildren:d,dirs:f}=t;u|=e.patchFlag&16;let p=e.props||i,h=t.props||i,g;if(n&&H(n,!1),(g=h.onVnodeBeforeUpdate)&&Q(g,n,t,e),f&&N(t,e,n,`beforeUpdate`),n&&H(n,!0),d&&(!e.dynamicChildren||e.dynamicChildren.length!==d.length)&&(u=0,c=!1,d=null),(p.innerHTML&&h.innerHTML==null||p.textContent&&h.textContent==null)&&m(l,``),d?oe(e.dynamicChildren,d,l,n,r,Yn(t,a),o):c||me(e,t,l,null,n,r,Yn(t,a),o,!1),u>0){if(u&16)se(l,p,h,n,a);else if(u&2&&p.class!==h.class&&s(l,`class`,null,h.class,a),u&4&&s(l,`style`,p.style,h.style,a),u&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let r=e[t],i=p[r],o=h[r];(o!==i||r===`value`)&&s(l,r,i,o,a,n)}}u&1&&e.children!==t.children&&m(l,t.children)}else!c&&d==null&&se(l,p,h,n,a);((g=h.onVnodeUpdated)||f)&&V(()=>{g&&Q(g,n,t,e),f&&N(t,e,n,`updated`)},r)},oe=(e,t,n,r,i,a,o)=>{for(let s=0;s<t.length;s++){let c=e[s],l=t[s],u=c.el&&(c.type===U||!q(c,l)||c.shapeFlag&198)?h(c.el):n;y(c,l,u,null,r,i,a,o,!0)}},se=(e,t,n,r,a)=>{if(t!==n){if(t!==i)for(let i in t)!be(i)&&!(i in n)&&s(e,i,t[i],null,a,r);for(let i in n){if(be(i))continue;let o=n[i],c=t[i];o!==c&&i!==`value`&&s(e,i,c,o,a,r)}`value`in n&&s(e,`value`,t.value,n.value,a)}},ce=(e,t,n,i,a,o,s,c,l)=>{let d=t.el=e?e.el:u(``),f=t.anchor=e?e.anchor:u(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(c=c?c.concat(h):h),e==null?(r(d,n,i),r(f,n,i),ie(t.children||[],n,f,a,o,s,c,l)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(oe(e.dynamicChildren,m,n,a,o,s,c),(t.key!=null||a&&t===a.subTree)&&Zn(e,t,!0)):me(e,t,n,f,a,o,s,c,l)},w=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):le(t,n,r,i,a,o,c):ue(e,t,c)},le=(e,t,n,r,i,a,o)=>{let s=e.component=Ir(e,r,i);if(Pt(e)&&(s.ctx.renderer=O),Wr(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,de,o),!e.el){let r=s.subTree=J(W);x(null,r,t,n),e.placeholder=r.el}}else de(s,e,t,n,i,a,o)},ue=(e,t,n)=>{let r=t.component=e.component;if(En(e,t,n)){if(r.asyncDep&&!r.asyncResolved){t.el=e.el,fe(r,t,n);return}r.next=t,r.update()}else t.el=e.el,r.vnode=t},de=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:s,vnode:c}=e;{let n=$n(e);if(n){t&&(t.el=c.el,fe(e,t,o)),n.asyncDep.then(()=>{V(()=>{e.isUnmounted||l()},i)});return}}let u=t,d;H(e,!1),t?(t.el=c.el,fe(e,t,o)):t=c,n&&_e(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&Q(d,s,t,c),H(e,!0);let f=Sn(e),p=e.subTree;e.subTree=f,y(p,f,h(p.el),Ee(p),e,i,a),t.el=f.el,u===null&&kn(e,f.el),r&&V(r,i),(d=t.props&&t.props.onVnodeUpdated)&&V(()=>Q(d,s,t,c),i)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=z(t);if(H(e,!1),l&&_e(l),!m&&(o=c&&c.onVnodeBeforeMount)&&Q(o,d,t),H(e,!0),s&&k){let t=()=>{e.subTree=Sn(e),k(s,e.subTree,e,i,null)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);let o=e.subTree=Sn(e);y(null,o,n,r,e,i,a),t.el=o.el}if(u&&V(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;V(()=>Q(o,d,e),i)}(t.shapeFlag&256||d&&z(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&V(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new he(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>Pe(u),H(e,!0),l()},fe=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,Pn(e,t.props,r,n),Kn(e,t.children,n),pe(),Le(e),Te()},me=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:f,shapeFlag:p}=t;if(f>0){if(f&128){ve(l,d,n,r,i,a,o,s,c);return}if(f&256){ge(l,d,n,r,i,a,o,s,c);return}}p&8?(u&16&&we(l,i,a),d!==l&&m(n,d)):u&16?p&16?ve(l,d,n,r,i,a,o,s,c):we(l,i,a,!0):(u&8&&m(n,``),p&16&&ie(d,n,r,i,a,o,s,c))},ge=(e,t,n,r,i,a,o,s,c)=>{e||=d,t||=d;let l=e.length,u=t.length,f=Math.min(l,u),p=0;for(;p<f;p++){let r=t[p]=c?Z(t[p]):X(t[p]);y(e[p],r,n,null,i,a,o,s,c)}l>u?we(e,i,a,!0,!1,f):ie(t,n,r,i,a,o,s,c,f)},ve=(e,t,n,r,i,a,o,s,c)=>{let l=0,u=t.length,f=e.length-1,p=u-1;for(;l<=f&&l<=p;){let r=e[l],u=t[l]=c?Z(t[l]):X(t[l]);if(q(r,u))y(r,u,n,null,i,a,o,s,c);else break;l++}for(;l<=f&&l<=p;){let r=e[f],l=t[p]=c?Z(t[p]):X(t[p]);if(q(r,l))y(r,l,n,null,i,a,o,s,c);else break;f--,p--}if(l>f){if(l<=p){let e=p+1,d=e<u?t[e].el:r;for(;l<=p;)y(null,t[l]=c?Z(t[l]):X(t[l]),n,d,i,a,o,s,c),l++}}else if(l>p)for(;l<=f;)T(e[l],i,a,!0),l++;else{let m=l,h=l,g=new Map;for(l=h;l<=p;l++){let e=t[l]=c?Z(t[l]):X(t[l]);e.key!=null&&g.set(e.key,l)}let _,v=0,b=p-h+1,x=!1,S=0,C=Array(b);for(l=0;l<b;l++)C[l]=0;for(l=m;l<=f;l++){let r=e[l];if(v>=b){T(r,i,a,!0);continue}let u;if(r.key!=null)u=g.get(r.key);else for(_=h;_<=p;_++)if(C[_-h]===0&&q(r,t[_])){u=_;break}u===void 0?T(r,i,a,!0):(C[u-h]=l+1,u>=S?S=u:x=!0,y(r,t[u],n,null,i,a,o,s,c),v++)}let ee=x?Qn(C):d;for(_=ee.length-1,l=b-1;l>=0;l--){let e=h+l,d=t[e],f=t[e+1],p=e+1<u?f.el||tr(f):r;C[l]===0?y(null,d,n,p,i,a,o,s,c):x&&(_<0||l!==ee[_]?ye(d,n,p,2):_--)}}},ye=(e,t,n,i,o=null)=>{let{el:s,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){ye(e.component.subTree,t,n,i);return}if(d&128){e.suspense.move(t,n,i);return}if(d&64){c.move(e,t,n,O);return}if(c===U){r(s,t,n);for(let e=0;e<u.length;e++)ye(u[e],t,n,i);r(e.anchor,t,n);return}if(c===gr){C(e,t,n);return}if(i!==2&&d&1&&l){if(i===0)l.persisted&&!s[I]?r(s,t,n):(l.beforeEnter(s),r(s,t,n),V(()=>l.enter(s),o));else{let{leave:i,delayLeave:o,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?a(s):r(s,t,n)},d=()=>{let e=s._isLeaving||!!s[I];s._isLeaving&&s[I](!0),l.persisted&&!e?u():i(s,()=>{u(),c&&c()})};o?o(s,u,d):d()}}else r(s,t,n)},T=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p,memo:m}=e;if((d===-2||l&&l.hasOnce)&&(i=!1),s!=null&&(pe(),Ot(s,null,n,e,!0),Te()),p!=null&&(!e.ctx||e.ctx===t)&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let h=u&1&&f,g=!z(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&Q(_,t,e),u&6)Ce(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&N(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,O,r):l&&!l.hasOnce&&(a!==U||d>0&&d&64)?we(l,t,n,!1,!0):(a===U&&d&384||!i&&u&16)&&we(c,t,n),r&&xe(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&V(()=>{_&&Q(_,t,e),h&&N(e,null,t,`unmounted`),v&&(e.el=null)},n)},xe=e=>{let{type:t,el:n,anchor:r,transition:i}=e;if(t===U){Se(n,r);return}if(t===gr){ee(e),i&&!i.persisted&&i.afterLeave&&i.afterLeave();return}let o=()=>{a(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(e.shapeFlag&1&&i&&!i.persisted){let{leave:t,delayLeave:r}=i,a=()=>t(n,o);r?r(e.el,o,a):a()}else o()},Se=(e,t)=>{let n;for(;e!==t;)n=g(e),a(e),e=n;a(t)},Ce=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;er(c),er(l),r&&_e(r),i.stop(),a?(a.flags|=8,T(o,e,t,n)):e.vnode.el&&o&&(o.transition=e.vnode.transition,T(o,e,t,n)),s&&V(s,t),V(()=>{e.isUnmounted=!0},t)},we=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o<e.length;o++)T(e[o],t,n,r,i)},Ee=e=>{if(e.shapeFlag&6)return Ee(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=g(e.anchor||e.el),n=t&&t[$e];return n?g(n):t},E=!1,D=(e,t,n)=>{let r;e==null?t._vnode&&(T(t._vnode,null,null,!0),r=t._vnode.component):y(t._vnode||null,e,t,null,null,null,n),t._vnode=e,E||=(E=!0,Le(r),Re(),!1)},O={p:y,um:T,m:ye,r:xe,mt:le,mc:ie,pc:me,pbc:oe,n:Ee,o:e},De,k;return t&&([De,k]=t(O)),{render:D,hydrate:De,createApp:gn(D,De)}}function Yn({type:e,props:t},n){return n===`svg`&&e===`foreignObject`||n===`mathml`&&e===`annotation-xml`&&t&&t.encoding&&t.encoding.includes(`html`)?void 0:n}function H({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Xn(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Zn(e,t,n=!1){let r=e.children,i=t.children;if(c(r)&&c(i))for(let e=0;e<r.length;e++){let t=r[e],a=i[e];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[e]=Z(i[e]),a.el=t.el),!n&&a.patchFlag!==-2&&Zn(t,a)),a.type===hr&&(a.patchFlag===-1&&(a=i[e]=Z(a)),a.el=t.el),a.type===W&&!a.el&&(a.el=t.el)}}function Qn(e){let t=e.slice(),n=[0],r,i,a,o,s,c=e.length;for(r=0;r<c;r++){let c=e[r];if(c!==0){if(i=n[n.length-1],e[i]<c){t[r]=i,n.push(r);continue}for(a=0,o=n.length-1;a<o;)s=a+o>>1,e[n[s]]<c?a=s+1:o=s;c<e[n[a]]&&(a>0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-->0;)n[a]=o,o=t[o];return n}function $n(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:$n(t)}function er(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function tr(e){if(e.placeholder)return e.placeholder;let t=e.component;return t?tr(t.subTree):null}var nr=e=>e.__isSuspense,rr=0,ir={name:`Suspense`,__isSuspense:!0,process(e,t,n,r,i,a,o,s,c,l){if(e==null)or(t,n,r,i,a,o,s,c,l);else{if(a&&a.deps>0&&!e.suspense.isInFallback&&!a.isHydrating){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}sr(e,t,n,r,i,o,s,c,l)}},hydrate:lr,normalize:ur};function ar(e,t){let n=e.props&&e.props[t];y(n)&&n()}function or(e,t,n,r,i,a,o,s,c){let{p:l,o:{createElement:u}}=c,d=u(`div`),f=e.suspense=cr(e,i,r,t,d,n,a,o,s,c);l(null,f.pendingBranch=e.ssContent,d,null,r,f,a,o),f.deps>0?(ar(e,`onPending`),ar(e,`onFallback`),l(null,e.ssFallback,t,n,r,null,a,o),pr(f,e.ssFallback)):f.resolve(!1,!0)}function sr(e,t,n,r,i,a,o,s,{p:c,um:l,o:{createElement:u}}){let d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;let f=t.ssContent,p=t.ssFallback,{activeBranch:m,pendingBranch:h,isInFallback:g,isHydrating:_}=d;if(h)d.pendingBranch=f,q(h,f)?(d.deps++,c(h,f,_?n:d.hiddenContainer,null,i,d,a,o,s),d.deps--,d.deps<=0?d.resolve():g&&!_&&!d.isFallbackMountPending&&(c(m,p,n,r,i,null,a,o,s),pr(d,p))):(d.pendingId=rr++,_?(d.isHydrating=!1,d.activeBranch=h):l(h,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u(`div`),g?(c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0?d.resolve():d.isFallbackMountPending||(c(m,p,n,r,i,null,a,o,s),pr(d,p))):m&&q(m,f)?(c(m,f,n,r,i,d,a,o,s),d.resolve(!0)):(c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0&&d.resolve()));else if(m&&q(m,f))c(m,f,n,r,i,d,a,o,s),pr(d,f);else if(ar(t,`onPending`),d.pendingBranch=f,d.pendingId=f.shapeFlag&512?f.component.suspenseId:rr++,c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0)d.resolve();else{let{timeout:e,pendingId:t}=d;e>0?setTimeout(()=>{d.pendingId===t&&d.fallback(p)},e):e===0&&d.fallback(p)}}function cr(e,t,n,r,i,a,o,s,c,l,u=!1){let{p:d,m:f,um:p,n:m,o:{parentNode:h,remove:g}}=l,_,v=mr(e);v&&t&&t.pendingBranch&&(_=t.pendingId,t.deps++);let y=e.props?se(e.props.timeout):void 0,b=a,x={vnode:e,parent:t,parentComponent:n,namespace:o,container:r,hiddenContainer:i,deps:0,pendingId:rr++,timeout:typeof y==`number`?y:-1,activeBranch:null,isFallbackMountPending:!1,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){let{vnode:r,activeBranch:i,pendingBranch:o,pendingId:s,effects:c,parentComponent:l,container:u,isInFallback:d}=x,g=!1;if(x.isHydrating)x.isHydrating=!1;else if(!e){g=i&&o.transition&&o.transition.mode===`out-in`;let e=!1;g&&(i.transition.afterLeave=()=>{s===x.pendingId&&(f(o,u,a===b&&!e?m(i):a,0),Ie(c),d&&r.ssFallback&&(r.ssFallback.el=null))}),i&&!x.isFallbackMountPending&&(h(i.el)===u&&(a=m(i),e=!0),p(i,l,x,!0),!g&&d&&r.ssFallback&&V(()=>r.ssFallback.el=null,x)),g||f(o,u,a,0)}x.isFallbackMountPending=!1,pr(x,o),x.pendingBranch=null,x.isInFallback=!1;let y=x.parent,S=!1;for(;y;){if(y.pendingBranch){for(let e=0;e<c.length;e++)y.effects.push(c[e]);S=!0;break}y=y.parent}!S&&!g&&Ie(c),x.effects=[],v&&t&&t.pendingBranch&&_===t.pendingId&&(_=void 0,t.deps--,t.deps===0&&!n&&t.resolve()),ar(r,`onResolve`)},fallback(e){if(!x.pendingBranch)return;let{vnode:t,activeBranch:n,parentComponent:r,container:i,namespace:a}=x;ar(t,`onFallback`);let o=m(n),l=()=>{if(x.isFallbackMountPending=!1,!x.isInFallback)return;let e=x.vnode.ssFallback;d(null,e,i,o,r,null,a,s,c),pr(x,e)},u=e.transition&&e.transition.mode===`out-in`;u&&(x.isFallbackMountPending=!0,n.transition.afterLeave=l),x.isInFallback=!0,p(n,r,null,!0),u||l()},move(e,t,n){x.activeBranch&&f(x.activeBranch,e,t,n),x.container=e},next(){return x.activeBranch&&m(x.activeBranch)},registerDep(e,t,n){let r=!!x.pendingBranch;r&&x.deps++;let i=e.vnode.el;e.asyncDep.catch(t=>{O(t,e,0)}).then(a=>{if(e.isUnmounted||x.isUnmounted||x.pendingId!==e.suspenseId)return;if(Vr(),i&&!e.scope.active){r&&--x.deps===0&&x.resolve();return}e.asyncResolved=!0;let{vnode:s}=e;Kr(e,a,!1),i&&(s.el=i);let c=!i&&e.subTree.el;t(e,s,h(i||e.subTree.el),i?null:m(e.subTree),x,o,n),c&&(s.placeholder=null,g(c)),kn(e,s.el),r&&--x.deps===0&&x.resolve()})},unmount(e,t){x.isUnmounted=!0,x.activeBranch&&p(x.activeBranch,n,e,t),x.pendingBranch&&p(x.pendingBranch,n,e,t)}};return x}function lr(e,t,n,r,i,a,o,s,c){let l=t.suspense=cr(t,r,n,e.parentNode,document.createElement(`div`),null,i,a,o,s,!0),u=c(e,l.pendingBranch=t.ssContent,n,l,a,o);return l.deps===0&&l.resolve(!1,!0),u}function ur(e){let{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=dr(r?n.default:n),e.ssFallback=r?dr(n.fallback):J(W)}function dr(e){let t;if(y(e)){let n=yr&&e._c;n&&(e._d=!1,_r()),e=e(),n&&(e._d=!0,t=K,vr())}return c(e)&&(e=Cn(e)),e=X(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(t=>t!==e)),e}function fr(e,t){t&&t.pendingBranch?c(e)?t.effects.push(...e):t.effects.push(e):Ie(e)}function pr(e,t){e.activeBranch=t;let{vnode:n,parentComponent:r}=e,i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,kn(r,i))}function mr(e){let t=e.props&&e.props.suspensible;return t!=null&&t!==!1}var U=Symbol.for(`v-fgt`),hr=Symbol.for(`v-txt`),W=Symbol.for(`v-cmt`),gr=Symbol.for(`v-stc`),G=[],K=null;function _r(e=!1){G.push(K=e?null:[])}function vr(){G.pop(),K=G[G.length-1]||null}var yr=1;function br(e,t=!1){yr+=e,e<0&&K&&t&&(K.hasOnce=!0)}function xr(e){return e.dynamicChildren=yr>0?K||d:null,vr(),yr>0&&K&&K.push(e),e}function Sr(e,t,n,r,i,a){return xr(Dr(e,t,n,r,i,a,!0))}function Cr(e,t,n,r,i){return xr(J(e,t,n,r,i,!0))}function wr(e){return e?e.__v_isVNode===!0:!1}function q(e,t){return e.type===t.type&&e.key===t.key}var Tr=({key:e})=>e??null,Er=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:w(e)||xe(e)||y(e)?{i:M,r:e,k:t,f:!!n}:e);function Dr(e,t=null,n=null,r=0,i=null,a=e===U?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Tr(t),ref:t&&Er(t),scopeId:Ve,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:M};return s?(Mr(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=w(n)?8:16),yr>0&&!o&&K&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&K.push(c),c}var J=Or;function Or(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===$t)&&(e=W),wr(e)){let r=Y(e,t,!0);return n&&Mr(r,n),yr>0&&!a&&K&&(r.shapeFlag&6?K[K.indexOf(e)]=r:K.push(r)),r.patchFlag=-2,r}if(Qr(e)&&(e=e.__vccOpts),t){t=kr(t);let{class:e,style:n}=t;e&&!w(e)&&(t.class=fe(e)),b(n)&&(ye(n)&&!c(n)&&(n=g({},n)),t.style=ne(n))}let o=w(e)?1:nr(e)?128:et(e)?64:b(e)?4:y(e)?2:0;return Dr(e,t,n,r,i,o,a,!0)}function kr(e){return e?ye(e)||Mn(e)?g({},e):e:null}function Y(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:l}=e,u=t?Nr(i||{},t):i,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Tr(u),ref:t&&t.ref?n&&a?c(a)?a.concat(Er(t)):[a,Er(t)]:Er(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==U?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Y(e.ssContent),ssFallback:e.ssFallback&&Y(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return l&&r&&R(d,l.clone(d)),d}function Ar(e=` `,t=0){return J(hr,null,e,t)}function jr(e=``,t=!1){return t?(_r(),Cr(W,null,e)):J(W,null,e)}function X(e){return e==null||typeof e==`boolean`?J(W):c(e)?J(U,null,e.slice()):wr(e)?Z(e):J(hr,null,String(e))}function Z(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Y(e)}function Mr(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(c(t))n=16;else if(typeof t==`object`){if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),Mr(e,n()),n._c&&(n._d=!0));return}{n=32;let r=t._;!r&&!Mn(t)?t._ctx=M:r===3&&M&&(M.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}}else if(y(t)){if(r&65){Mr(e,{default:t});return}t={default:t,_ctx:M},n=32}else t=String(t),r&64?(n=16,t=[Ar(t)]):n=8;e.children=t,e.shapeFlag|=n}function Nr(...e){let t={};for(let n=0;n<e.length;n++){let r=e[n];for(let e in r)if(e===`class`)t.class!==r.class&&(t.class=fe([t.class,r.class]));else if(e===`style`)t.style=ne([t.style,r.style]);else if(f(e)){let n=t[e],i=r[e];i&&n!==i&&!(c(n)&&n.includes(i))?t[e]=n?[].concat(n,i):i:i==null&&n==null&&!v(e)&&(t[e]=i)}else e!==``&&(t[e]=r[e])}return t}function Q(e,t,n,r=null){D(e,t,7,[n,r])}var Pr=mn(),Fr=0;function Ir(e,t,n){let r=e.type,a=(t?t.appContext:e.appContext)||Pr,o={uid:Fr++,vnode:e,type:r,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new T(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),ids:t?t.ids:[``,0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ln(r,a),emitsOptions:bn(r,a),emit:null,emitted:null,propsDefaults:i,inheritAttrs:r.inheritAttrs,ctx:i,data:i,props:i,attrs:i,slots:i,refs:i,setupState:i,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=yn.bind(null,o),e.ce&&e.ce(o),o}var $=null,Lr=()=>$||M,Rr,zr;{let e=o(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};Rr=t(`__VUE_INSTANCE_SETTERS__`,e=>$=e),zr=t(`__VUE_SSR_SETTERS__`,e=>Ur=e)}var Br=e=>{let t=$;return Rr(e),e.scope.on(),()=>{e.scope.off(),Rr(t)}},Vr=()=>{$&&$.scope.off(),Rr(null)};function Hr(e){return e.vnode.shapeFlag&4}var Ur=!1;function Wr(e,t=!1,n=!1){t&&zr(t);let{props:r,children:i}=e.vnode,a=Hr(e);Nn(e,r,a,t),Gn(e,i,n||t);let o=a?Gr(e,t):void 0;return t&&zr(!1),o}function Gr(t,n){let r=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,dn);let{setup:i}=r;if(i){pe();let r=t.setupContext=i.length>1?Yr(t):null,a=Br(t),o=E(i,t,0,[t.props,r]),s=e(o);if(Te(),a(),(s||t.sp)&&!z(t)&&Tt(t),s){if(o.then(Vr,Vr),n)return o.then(e=>{zr(!0);try{Kr(t,e,n)}finally{zr(!1)}}).catch(e=>{O(e,t,0)});t.asyncDep=o}else Kr(t,o,n)}else qr(t,n)}function Kr(e,t,n){y(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:b(t)&&(e.setupState=oe(t)),qr(e,n)}function qr(e,t,n){let r=e.type;e.render||=r.render||l}var Jr={get(e,t){return ue(e,`get`,``),e[t]}};function Yr(e){return{attrs:new Proxy(e.attrs,Jr),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function Xr(e){return e.exposed?e.exposeProxy||=new Proxy(oe(ie(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ln)return ln[n](e)},has(e,t){return t in e||t in ln}}):e.proxy}function Zr(e,t=!0){return y(e)?e.displayName||e.name:e.name||t&&e.__name}function Qr(e){return y(e)&&`__vccOpts`in e}var $r=(e,t)=>ve(e,t,Ur);function ei(e,t,n){try{br(-1);let r=arguments.length;return r===2?b(t)&&!c(t)?wr(t)?J(e,null,[t]):J(e,t):J(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&wr(n)&&(n=[n]),J(e,t,n))}finally{br(1)}}var ti=`3.5.43`;export{Gt as A,on as B,ei as C,Nr as D,pn as E,Xt as F,wt as G,en as H,Jt as I,Ze as J,_n as K,_r as L,qt as M,Rt as N,Me as O,Kt as P,Ge as R,kr as S,Ke as T,yt as U,Qt as V,R as W,We as X,Ue as Y,J as _,ir as a,Lr as b,D as c,Cr as d,jr as f,Ar as g,an as h,Ft as i,Yt as j,Lt as k,$r as l,qn as m,pt as n,ct as o,Sr as p,ft as q,U as r,hr as s,_t as t,Dr as u,Mt as v,qe as w,St as x,Ct as y,rn as z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{l as e}from"./runtime-core.esm-bundler-Bqg71Vll.js";import{d as t}from"./dom-BtYTvLeN.js";function n(){let n=t();return{isMobile:e(()=>n.screen.lt.sm),isDrawerCollapsed:e(()=>n.screen.lt.md)}}export{n as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./runtime-core.esm-bundler-Bqg71Vll.js";var t=()=>{},n=`cubic-bezier(.25, .8, .50, 1)`,r=`calc-size(auto, size)`,i=[{height:`0px`},{height:r}],a=[{height:r},{height:`0px`}],o=typeof CSS<`u`&&CSS.supports(`height`,r)?s:c;function s(r,o=t){let s=null,c,l,u=null;function d(){u!==null&&(clearTimeout(u),u=null),s?.cancel(),s=null}function f(){d(),c?.(),c=null}function p(e,t){e.style.overflowY=null,f(),t!==l&&o(t)}function m(e,t,i,a){let o=r(),d=s!==null&&s.effect.target===e;if(s===null?l=i===`show`?`hide`:`show`:(d||c?.(),clearTimeout(u)),c=t,o<=0){p(e,i);return}d?s.reverse():(s?.cancel(),e.style.overflowY=`hidden`,s=e.animate(a,{duration:o,easing:n,fill:`forwards`})),s.onfinish=()=>{p(e,i)},u=setTimeout(s.onfinish,o*1.1)}function h(e,t){m(e,t,`show`,i)}function g(e,t){m(e,t,`hide`,a)}return e(()=>{s!==null&&f()}),{onEnter:h,onLeave:g}}function c(r,i=t){let a=!1,o,s,c=null,l,u;function d(){a=!1,c!==null&&(clearTimeout(c),c=null),s?.removeEventListener(`transitionend`,l),l=null}function f(){d(),o?.(),o=null}function p(e){s!==e&&o?.(),o=null,d()}function m(e,t,i){return t!==void 0&&(e.style.height=`${t}px`),e.style.transition=`height ${r()}ms ${n}`,a=!0,o=i,e.scrollHeight}function h(e,t){e.style.overflowY=null,e.style.height=null,e.style.transition=null,f(),t!==u&&i(t)}function g(e,t){let n=0,i=a,d=r();if(i?p(e):u=`hide`,s=e,d<=0){o=t,h(e,`show`);return}i?n=e.offsetHeight===e.scrollHeight?0:void 0:e.style.overflowY=`hidden`;let f=m(e,n,t);e.style.height=`${f}px`,l=t=>{(Object(t)!==t||t.target===e)&&h(e,`show`)},e.addEventListener(`transitionend`,l),c=setTimeout(l,d*1.1)}function _(e,t){let n,i=a,d=r();if(i?p(e):u=`show`,s=e,d<=0){o=t,h(e,`hide`);return}i===!1&&(e.style.overflowY=`hidden`,n=e.scrollHeight),m(e,n,t),e.style.height=0,l=t=>{(Object(t)!==t||t.target===e)&&h(e,`hide`)},e.addEventListener(`transitionend`,l),c=setTimeout(l,d*1.1)}return e(()=>{a&&f()}),{onEnter:g,onLeave:_}}export{o as t};
|