upfynai-code 3.0.4 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +69 -92
- package/bin/cli.js +191 -0
- package/dist/client/assets/AppContent-M14Au3SB.js +542 -0
- package/{client/dist/assets/BrowserPanel-0TLEl-IC.js → dist/client/assets/BrowserPanel-TFKm2NDJ.js} +2 -2
- package/dist/client/assets/DashboardPanel-C88HjsCh.js +1 -0
- package/dist/client/assets/FileTree-DvO1xnDE.js +1 -0
- package/{client/dist/assets/GitPanel-C_xFM-N2.js → dist/client/assets/GitPanel-D-slVlyy.js} +2 -2
- package/dist/client/assets/LoginModal-Chi4SYcr.js +21 -0
- package/{client/dist/assets/MarkdownPreview-CESjI261.js → dist/client/assets/MarkdownPreview-CuIix2u9.js} +1 -1
- package/dist/client/assets/MermaidBlock-Dq9uFv82.js +2 -0
- package/dist/client/assets/Onboarding-QYXx24dX.js +1 -0
- package/{client/dist/assets/PreviewPanel-CqCa92Tf.js → dist/client/assets/PreviewPanel-Dd8q-jo0.js} +1 -1
- package/dist/client/assets/SetupForm-CrspaUva.js +1 -0
- package/dist/client/assets/WorkflowsPanel-DIlYAdhB.js +1 -0
- package/dist/client/assets/index-CnNNzw9A.css +1 -0
- package/{client/dist/assets/index-HaY-3pK1.js → dist/client/assets/index-rUkK9FDP.js} +26 -26
- package/{client/dist/assets/vendor-codemirror-D2ALgpaX.js → dist/client/assets/vendor-codemirror-jc6nyJQg.js} +1 -1
- package/{client/dist/assets/vendor-diff-DNQpbhrT.js → dist/client/assets/vendor-diff-THJmAcEI.js} +1 -1
- package/{client/dist/assets/vendor-icons-GyYE35HP.js → dist/client/assets/vendor-icons-CfjIpdrD.js} +145 -155
- package/{client/dist/assets/vendor-markdown-CimbIo6Y.js → dist/client/assets/vendor-markdown-Cdm6NEGf.js} +1 -1
- package/dist/client/assets/vendor-mermaid-DTPaBx-U.js +2559 -0
- package/{client/dist/assets/vendor-react-96lCPsRK.js → dist/client/assets/vendor-react-wFkb6mSf.js} +1 -1
- package/{client/dist/assets/vendor-syntax-LS_Nt30I.js → dist/client/assets/vendor-syntax-C_UZR7tc.js} +1 -1
- package/dist/client/favicon.png +0 -0
- package/dist/client/icons/icon-128x128.png +0 -0
- package/dist/client/icons/icon-144x144.png +0 -0
- package/dist/client/icons/icon-152x152.png +0 -0
- package/dist/client/icons/icon-192x192.png +0 -0
- package/dist/client/icons/icon-384x384.png +0 -0
- package/dist/client/icons/icon-512x512.png +0 -0
- package/dist/client/icons/icon-72x72.png +0 -0
- package/dist/client/icons/icon-96x96.png +0 -0
- package/{client/dist → dist/client}/index.html +37 -36
- package/dist/client/logo-128.png +0 -0
- package/dist/client/logo-256.png +0 -0
- package/dist/client/logo-32.png +0 -0
- package/dist/client/logo-512.png +0 -0
- package/dist/client/logo-64.png +0 -0
- package/dist/client/logo.png +0 -0
- package/{client/dist → dist/client}/manifest.json +12 -12
- package/{client/dist → dist/client}/mcp-docs.html +1 -1
- package/{client/dist → dist/client}/sw.js +2 -2
- package/package.json +56 -105
- package/scripts/postinstall.js +9 -0
- package/scripts/prepublish.js +77 -0
- package/src/animation.js +228 -0
- package/src/auth.js +142 -0
- package/src/config.js +40 -0
- package/src/connect.js +416 -0
- package/src/launch.js +81 -0
- package/src/mcp.js +57 -0
- package/src/permissions.js +140 -0
- package/src/persistent-shell.js +261 -0
- package/src/server.js +54 -0
- package/client/dist/assets/AppContent-CwrTP6TW.js +0 -545
- package/client/dist/assets/CanvasFullScreen-D1GWQsGL.js +0 -1
- package/client/dist/assets/CanvasWorkspace-D7ORj358.js +0 -163
- package/client/dist/assets/DashboardPanel-BV7ybUDe.js +0 -1
- package/client/dist/assets/FileTree-5qfhBqdE.js +0 -1
- package/client/dist/assets/LoginModal-CImJHRjX.js +0 -13
- package/client/dist/assets/MermaidBlock-BFM21cwe.js +0 -2
- package/client/dist/assets/Onboarding-B3cteLu2.js +0 -1
- package/client/dist/assets/SetupForm-P6dsYgHO.js +0 -1
- package/client/dist/assets/WorkflowsPanel-CBoN80kc.js +0 -1
- package/client/dist/assets/index-46kkVu2i.css +0 -1
- package/client/dist/assets/pdf-CE_K4jFx.js +0 -12
- package/client/dist/assets/vendor-canvas-BZV40eAE.css +0 -1
- package/client/dist/assets/vendor-canvas-DvHJ_Pn2.js +0 -49
- package/client/dist/assets/vendor-mermaid-DucWyDEe.js +0 -2556
- package/client/dist/favicon.png +0 -0
- package/client/dist/icons/icon-128x128.png +0 -0
- package/client/dist/icons/icon-144x144.png +0 -0
- package/client/dist/icons/icon-152x152.png +0 -0
- package/client/dist/icons/icon-192x192.png +0 -0
- package/client/dist/icons/icon-384x384.png +0 -0
- package/client/dist/icons/icon-512x512.png +0 -0
- package/client/dist/icons/icon-72x72.png +0 -0
- package/client/dist/icons/icon-96x96.png +0 -0
- package/client/dist/logo-128.png +0 -0
- package/client/dist/logo-256.png +0 -0
- package/client/dist/logo-32.png +0 -0
- package/client/dist/logo-512.png +0 -0
- package/client/dist/logo-64.png +0 -0
- package/commands/upfynai-connect.md +0 -59
- package/commands/upfynai-disconnect.md +0 -31
- package/commands/upfynai-doctor.md +0 -99
- package/commands/upfynai-export.md +0 -49
- package/commands/upfynai-local.md +0 -82
- package/commands/upfynai-status.md +0 -75
- package/commands/upfynai-stop.md +0 -49
- package/commands/upfynai-uninstall.md +0 -58
- package/commands/upfynai.md +0 -69
- package/scripts/build-client.js +0 -17
- package/scripts/fix-node-pty.js +0 -67
- package/scripts/install-commands.js +0 -78
- package/server/agent-loop.js +0 -242
- package/server/auto-compact.js +0 -99
- package/server/browser.js +0 -131
- package/server/claude-sdk.js +0 -797
- package/server/cli-ui.js +0 -798
- package/server/cli.js +0 -751
- package/server/constants/config.js +0 -31
- package/server/cursor-cli.js +0 -270
- package/server/database/auth.db +0 -0
- package/server/database/db.js +0 -1547
- package/server/database/init.sql +0 -70
- package/server/index.js +0 -3813
- package/server/load-env.js +0 -26
- package/server/mcp-server.js +0 -621
- package/server/middleware/auth.js +0 -184
- package/server/middleware/relayHelpers.js +0 -44
- package/server/middleware/sandboxRouter.js +0 -174
- package/server/openai-codex.js +0 -403
- package/server/openrouter.js +0 -137
- package/server/projects.js +0 -1807
- package/server/provider-factory.js +0 -174
- package/server/relay-client.js +0 -390
- package/server/routes/agent.js +0 -1234
- package/server/routes/auth.js +0 -559
- package/server/routes/browser.js +0 -419
- package/server/routes/canvas.js +0 -53
- package/server/routes/cli-auth.js +0 -263
- package/server/routes/codex.js +0 -396
- package/server/routes/commands.js +0 -707
- package/server/routes/composio.js +0 -176
- package/server/routes/cursor.js +0 -770
- package/server/routes/dashboard.js +0 -295
- package/server/routes/git.js +0 -1208
- package/server/routes/keys.js +0 -34
- package/server/routes/mcp-utils.js +0 -48
- package/server/routes/mcp.js +0 -661
- package/server/routes/payments.js +0 -227
- package/server/routes/projects.js +0 -754
- package/server/routes/sessions.js +0 -146
- package/server/routes/settings.js +0 -261
- package/server/routes/taskmaster.js +0 -1928
- package/server/routes/user.js +0 -106
- package/server/routes/vapi-chat.js +0 -624
- package/server/routes/voice.js +0 -235
- package/server/routes/webhooks.js +0 -166
- package/server/routes/workflows.js +0 -312
- package/server/sandbox.js +0 -120
- package/server/services/browser-ai.js +0 -154
- package/server/services/composio.js +0 -204
- package/server/services/sessionRegistry.js +0 -139
- package/server/services/whisperService.js +0 -84
- package/server/services/workflowScheduler.js +0 -211
- package/server/tests/relay-flow.test.js +0 -570
- package/server/tests/sessions.test.js +0 -259
- package/server/utils/commandParser.js +0 -303
- package/server/utils/email.js +0 -66
- package/server/utils/gitConfig.js +0 -24
- package/server/utils/mcp-detector.js +0 -198
- package/server/utils/taskmaster-websocket.js +0 -129
- package/shared/integrationCatalog.d.ts +0 -12
- package/shared/integrationCatalog.js +0 -172
- package/shared/modelConstants.js +0 -96
- /package/{shared → dist}/agents/claude.js +0 -0
- /package/{shared → dist}/agents/codex.js +0 -0
- /package/{shared → dist}/agents/cursor.js +0 -0
- /package/{shared → dist}/agents/detect.js +0 -0
- /package/{shared → dist}/agents/exec.js +0 -0
- /package/{shared → dist}/agents/files.js +0 -0
- /package/{shared → dist}/agents/git.js +0 -0
- /package/{shared → dist}/agents/gitagent.js +0 -0
- /package/{shared → dist}/agents/index.js +0 -0
- /package/{shared → dist}/agents/shell.js +0 -0
- /package/{shared → dist}/agents/utils.js +0 -0
- /package/{client/dist → dist/client}/api-docs.html +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- /package/{client/dist → dist/client}/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- /package/{client/dist → dist/client}/assets/vendor-i18n-DCFGyhQR.js +0 -0
- /package/{client/dist → dist/client}/assets/vendor-xterm-CZq1hqo1.js +0 -0
- /package/{client/dist → dist/client}/assets/vendor-xterm-qxJ8_QYu.css +0 -0
- /package/{client/dist → dist/client}/clear-cache.html +0 -0
- /package/{client/dist → dist/client}/convert-icons.md +0 -0
- /package/{client/dist → dist/client}/favicon.svg +0 -0
- /package/{client/dist → dist/client}/generate-icons.js +0 -0
- /package/{client/dist → dist/client}/icons/claude-ai-icon.svg +0 -0
- /package/{client/dist → dist/client}/icons/codex-white.svg +0 -0
- /package/{client/dist → dist/client}/icons/codex.svg +0 -0
- /package/{client/dist → dist/client}/icons/cursor-white.svg +0 -0
- /package/{client/dist → dist/client}/icons/cursor.svg +0 -0
- /package/{client/dist → dist/client}/icons/icon-128x128.svg +0 -0
- /package/{client/dist → dist/client}/icons/icon-144x144.svg +0 -0
- /package/{client/dist → dist/client}/icons/icon-152x152.svg +0 -0
- /package/{client/dist → dist/client}/icons/icon-192x192.svg +0 -0
- /package/{client/dist → dist/client}/icons/icon-384x384.svg +0 -0
- /package/{client/dist → dist/client}/icons/icon-512x512.svg +0 -0
- /package/{client/dist → dist/client}/icons/icon-72x72.svg +0 -0
- /package/{client/dist → dist/client}/icons/icon-96x96.svg +0 -0
- /package/{client/dist → dist/client}/icons/icon-template.svg +0 -0
- /package/{client/dist → dist/client}/logo.svg +0 -0
- /package/{client/dist → dist/client}/offline.html +0 -0
- /package/{client/dist → dist/client}/screenshots/cli-selection.png +0 -0
- /package/{client/dist → dist/client}/screenshots/desktop-main.png +0 -0
- /package/{client/dist → dist/client}/screenshots/mobile-chat.png +0 -0
- /package/{client/dist → dist/client}/screenshots/tools-modal.png +0 -0
- /package/{shared → dist}/gitagent/index.js +0 -0
- /package/{shared → dist}/gitagent/parser.js +0 -0
- /package/{shared → dist}/gitagent/prompt-builder.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as Ul,j as P0}from"./vendor-react-96lCPsRK.js";function t0(e){const t=[],r=String(e||"");let n=r.indexOf(","),a=0,i=!1;for(;!i;){n===-1&&(n=r.length,i=!0);const u=r.slice(a,n).trim();(u||!i)&&t.push(u),a=n+1,n=r.indexOf(",",a)}return t}function ql(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const eh=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,th=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,rh={};function fu(e,t){return(rh.jsx?th:eh).test(e)}const nh=/[ \t\n\f\r]/g;function ah(e){return typeof e=="object"?e.type==="text"?du(e.value):!1:du(e)}function du(e){return e.replace(nh,"")===""}class Tn{constructor(t,r,n){this.normal=r,this.property=t,n&&(this.space=n)}}Tn.prototype.normal={};Tn.prototype.property={};Tn.prototype.space=void 0;function Yl(e,t){const r={},n={};for(const a of e)Object.assign(r,a.property),Object.assign(n,a.normal);return new Tn(r,n,t)}function fr(e){return e.toLowerCase()}class et{constructor(t,r){this.attribute=r,this.property=t}}et.prototype.attribute="";et.prototype.booleanish=!1;et.prototype.boolean=!1;et.prototype.commaOrSpaceSeparated=!1;et.prototype.commaSeparated=!1;et.prototype.defined=!1;et.prototype.mustUseProperty=!1;et.prototype.number=!1;et.prototype.overloadedBoolean=!1;et.prototype.property="";et.prototype.spaceSeparated=!1;et.prototype.space=void 0;let ih=0;const oe=dr(),Re=dr(),Ha=dr(),$=dr(),xe=dr(),wr=dr(),it=dr();function dr(){return 2**++ih}const za=Object.freeze(Object.defineProperty({__proto__:null,boolean:oe,booleanish:Re,commaOrSpaceSeparated:it,commaSeparated:wr,number:$,overloadedBoolean:Ha,spaceSeparated:xe},Symbol.toStringTag,{value:"Module"})),B0=Object.keys(za);class Ei extends et{constructor(t,r,n,a){let i=-1;if(super(t,r),mu(this,"space",a),typeof n=="number")for(;++i<B0.length;){const u=B0[i];mu(this,B0[i],(n&za[u])===za[u])}}}Ei.prototype.defined=!0;function mu(e,t,r){r&&(e[t]=r)}function Mr(e){const t={},r={};for(const[n,a]of Object.entries(e.properties)){const i=new Ei(n,e.transform(e.attributes||{},n),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(i.mustUseProperty=!0),t[n]=i,r[fr(n)]=n,r[fr(i.attribute)]=n}return new Tn(t,r,e.space)}const Vl=Mr({properties:{ariaActiveDescendant:null,ariaAtomic:Re,ariaAutoComplete:null,ariaBusy:Re,ariaChecked:Re,ariaColCount:$,ariaColIndex:$,ariaColSpan:$,ariaControls:xe,ariaCurrent:null,ariaDescribedBy:xe,ariaDetails:null,ariaDisabled:Re,ariaDropEffect:xe,ariaErrorMessage:null,ariaExpanded:Re,ariaFlowTo:xe,ariaGrabbed:Re,ariaHasPopup:null,ariaHidden:Re,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:xe,ariaLevel:$,ariaLive:null,ariaModal:Re,ariaMultiLine:Re,ariaMultiSelectable:Re,ariaOrientation:null,ariaOwns:xe,ariaPlaceholder:null,ariaPosInSet:$,ariaPressed:Re,ariaReadOnly:Re,ariaRelevant:null,ariaRequired:Re,ariaRoleDescription:xe,ariaRowCount:$,ariaRowIndex:$,ariaRowSpan:$,ariaSelected:Re,ariaSetSize:$,ariaSort:null,ariaValueMax:$,ariaValueMin:$,ariaValueNow:$,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Gl(e,t){return t in e?e[t]:t}function $l(e,t){return Gl(e,t.toLowerCase())}const uh=Mr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:wr,acceptCharset:xe,accessKey:xe,action:null,allow:null,allowFullScreen:oe,allowPaymentRequest:oe,allowUserMedia:oe,alt:null,as:null,async:oe,autoCapitalize:null,autoComplete:xe,autoFocus:oe,autoPlay:oe,blocking:xe,capture:null,charSet:null,checked:oe,cite:null,className:xe,cols:$,colSpan:null,content:null,contentEditable:Re,controls:oe,controlsList:xe,coords:$|wr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:oe,defer:oe,dir:null,dirName:null,disabled:oe,download:Ha,draggable:Re,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:oe,formTarget:null,headers:xe,height:$,hidden:Ha,high:$,href:null,hrefLang:null,htmlFor:xe,httpEquiv:xe,id:null,imageSizes:null,imageSrcSet:null,inert:oe,inputMode:null,integrity:null,is:null,isMap:oe,itemId:null,itemProp:xe,itemRef:xe,itemScope:oe,itemType:xe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:oe,low:$,manifest:null,max:null,maxLength:$,media:null,method:null,min:null,minLength:$,multiple:oe,muted:oe,name:null,nonce:null,noModule:oe,noValidate:oe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:oe,optimum:$,pattern:null,ping:xe,placeholder:null,playsInline:oe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:oe,referrerPolicy:null,rel:xe,required:oe,reversed:oe,rows:$,rowSpan:$,sandbox:xe,scope:null,scoped:oe,seamless:oe,selected:oe,shadowRootClonable:oe,shadowRootDelegatesFocus:oe,shadowRootMode:null,shape:null,size:$,sizes:null,slot:null,span:$,spellCheck:Re,src:null,srcDoc:null,srcLang:null,srcSet:null,start:$,step:null,style:null,tabIndex:$,target:null,title:null,translate:null,type:null,typeMustMatch:oe,useMap:null,value:Re,width:$,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:xe,axis:null,background:null,bgColor:null,border:$,borderColor:null,bottomMargin:$,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:oe,declare:oe,event:null,face:null,frame:null,frameBorder:null,hSpace:$,leftMargin:$,link:null,longDesc:null,lowSrc:null,marginHeight:$,marginWidth:$,noResize:oe,noHref:oe,noShade:oe,noWrap:oe,object:null,profile:null,prompt:null,rev:null,rightMargin:$,rules:null,scheme:null,scrolling:Re,standby:null,summary:null,text:null,topMargin:$,valueType:null,version:null,vAlign:null,vLink:null,vSpace:$,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:oe,disableRemotePlayback:oe,prefix:null,property:null,results:$,security:null,unselectable:null},space:"html",transform:$l}),sh=Mr({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:it,accentHeight:$,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:$,amplitude:$,arabicForm:null,ascent:$,attributeName:null,attributeType:null,azimuth:$,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:$,by:null,calcMode:null,capHeight:$,className:xe,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:$,diffuseConstant:$,direction:null,display:null,dur:null,divisor:$,dominantBaseline:null,download:oe,dx:null,dy:null,edgeMode:null,editable:null,elevation:$,enableBackground:null,end:null,event:null,exponent:$,externalResourcesRequired:null,fill:null,fillOpacity:$,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:wr,g2:wr,glyphName:wr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:$,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:$,horizOriginX:$,horizOriginY:$,id:null,ideographic:$,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:$,k:$,k1:$,k2:$,k3:$,k4:$,kernelMatrix:it,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:$,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:$,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:$,overlineThickness:$,paintOrder:null,panose1:null,path:null,pathLength:$,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:xe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:$,pointsAtY:$,pointsAtZ:$,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:it,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:it,rev:it,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:it,requiredFeatures:it,requiredFonts:it,requiredFormats:it,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:$,specularExponent:$,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:$,strikethroughThickness:$,string:null,stroke:null,strokeDashArray:it,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:$,strokeOpacity:$,strokeWidth:null,style:null,surfaceScale:$,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:it,tabIndex:$,tableValues:null,target:null,targetX:$,targetY:$,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:it,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:$,underlineThickness:$,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:$,values:null,vAlphabetic:$,vMathematical:$,vectorEffect:null,vHanging:$,vIdeographic:$,version:null,vertAdvY:$,vertOriginX:$,vertOriginY:$,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:$,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Gl}),Wl=Mr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),jl=Mr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:$l}),Xl=Mr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),lh={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},oh=/[A-Z]/g,pu=/-[a-z]/g,ch=/^data[-\w.:]+$/i;function yn(e,t){const r=fr(t);let n=t,a=et;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&ch.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(pu,fh);n="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!pu.test(i)){let u=i.replace(oh,hh);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}a=Ei}return new a(n,t)}function hh(e){return"-"+e.toLowerCase()}function fh(e){return e.charAt(1).toUpperCase()}const Pr=Yl([Vl,uh,Wl,jl,Xl],"html"),zt=Yl([Vl,sh,Wl,jl,Xl],"svg");function r0(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Ql(e){return e.join(" ").trim()}var xr={},F0,gu;function dh(){if(gu)return F0;gu=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,s=/^\s+|\s+$/g,l=`
|
|
1
|
+
import{g as Ul,j as P0}from"./vendor-react-wFkb6mSf.js";function t0(e){const t=[],r=String(e||"");let n=r.indexOf(","),a=0,i=!1;for(;!i;){n===-1&&(n=r.length,i=!0);const u=r.slice(a,n).trim();(u||!i)&&t.push(u),a=n+1,n=r.indexOf(",",a)}return t}function ql(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const eh=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,th=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,rh={};function fu(e,t){return(rh.jsx?th:eh).test(e)}const nh=/[ \t\n\f\r]/g;function ah(e){return typeof e=="object"?e.type==="text"?du(e.value):!1:du(e)}function du(e){return e.replace(nh,"")===""}class Tn{constructor(t,r,n){this.normal=r,this.property=t,n&&(this.space=n)}}Tn.prototype.normal={};Tn.prototype.property={};Tn.prototype.space=void 0;function Yl(e,t){const r={},n={};for(const a of e)Object.assign(r,a.property),Object.assign(n,a.normal);return new Tn(r,n,t)}function fr(e){return e.toLowerCase()}class et{constructor(t,r){this.attribute=r,this.property=t}}et.prototype.attribute="";et.prototype.booleanish=!1;et.prototype.boolean=!1;et.prototype.commaOrSpaceSeparated=!1;et.prototype.commaSeparated=!1;et.prototype.defined=!1;et.prototype.mustUseProperty=!1;et.prototype.number=!1;et.prototype.overloadedBoolean=!1;et.prototype.property="";et.prototype.spaceSeparated=!1;et.prototype.space=void 0;let ih=0;const oe=dr(),Re=dr(),Ha=dr(),$=dr(),xe=dr(),wr=dr(),it=dr();function dr(){return 2**++ih}const za=Object.freeze(Object.defineProperty({__proto__:null,boolean:oe,booleanish:Re,commaOrSpaceSeparated:it,commaSeparated:wr,number:$,overloadedBoolean:Ha,spaceSeparated:xe},Symbol.toStringTag,{value:"Module"})),B0=Object.keys(za);class Ei extends et{constructor(t,r,n,a){let i=-1;if(super(t,r),mu(this,"space",a),typeof n=="number")for(;++i<B0.length;){const u=B0[i];mu(this,B0[i],(n&za[u])===za[u])}}}Ei.prototype.defined=!0;function mu(e,t,r){r&&(e[t]=r)}function Mr(e){const t={},r={};for(const[n,a]of Object.entries(e.properties)){const i=new Ei(n,e.transform(e.attributes||{},n),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(i.mustUseProperty=!0),t[n]=i,r[fr(n)]=n,r[fr(i.attribute)]=n}return new Tn(t,r,e.space)}const Vl=Mr({properties:{ariaActiveDescendant:null,ariaAtomic:Re,ariaAutoComplete:null,ariaBusy:Re,ariaChecked:Re,ariaColCount:$,ariaColIndex:$,ariaColSpan:$,ariaControls:xe,ariaCurrent:null,ariaDescribedBy:xe,ariaDetails:null,ariaDisabled:Re,ariaDropEffect:xe,ariaErrorMessage:null,ariaExpanded:Re,ariaFlowTo:xe,ariaGrabbed:Re,ariaHasPopup:null,ariaHidden:Re,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:xe,ariaLevel:$,ariaLive:null,ariaModal:Re,ariaMultiLine:Re,ariaMultiSelectable:Re,ariaOrientation:null,ariaOwns:xe,ariaPlaceholder:null,ariaPosInSet:$,ariaPressed:Re,ariaReadOnly:Re,ariaRelevant:null,ariaRequired:Re,ariaRoleDescription:xe,ariaRowCount:$,ariaRowIndex:$,ariaRowSpan:$,ariaSelected:Re,ariaSetSize:$,ariaSort:null,ariaValueMax:$,ariaValueMin:$,ariaValueNow:$,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Gl(e,t){return t in e?e[t]:t}function $l(e,t){return Gl(e,t.toLowerCase())}const uh=Mr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:wr,acceptCharset:xe,accessKey:xe,action:null,allow:null,allowFullScreen:oe,allowPaymentRequest:oe,allowUserMedia:oe,alt:null,as:null,async:oe,autoCapitalize:null,autoComplete:xe,autoFocus:oe,autoPlay:oe,blocking:xe,capture:null,charSet:null,checked:oe,cite:null,className:xe,cols:$,colSpan:null,content:null,contentEditable:Re,controls:oe,controlsList:xe,coords:$|wr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:oe,defer:oe,dir:null,dirName:null,disabled:oe,download:Ha,draggable:Re,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:oe,formTarget:null,headers:xe,height:$,hidden:Ha,high:$,href:null,hrefLang:null,htmlFor:xe,httpEquiv:xe,id:null,imageSizes:null,imageSrcSet:null,inert:oe,inputMode:null,integrity:null,is:null,isMap:oe,itemId:null,itemProp:xe,itemRef:xe,itemScope:oe,itemType:xe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:oe,low:$,manifest:null,max:null,maxLength:$,media:null,method:null,min:null,minLength:$,multiple:oe,muted:oe,name:null,nonce:null,noModule:oe,noValidate:oe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:oe,optimum:$,pattern:null,ping:xe,placeholder:null,playsInline:oe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:oe,referrerPolicy:null,rel:xe,required:oe,reversed:oe,rows:$,rowSpan:$,sandbox:xe,scope:null,scoped:oe,seamless:oe,selected:oe,shadowRootClonable:oe,shadowRootDelegatesFocus:oe,shadowRootMode:null,shape:null,size:$,sizes:null,slot:null,span:$,spellCheck:Re,src:null,srcDoc:null,srcLang:null,srcSet:null,start:$,step:null,style:null,tabIndex:$,target:null,title:null,translate:null,type:null,typeMustMatch:oe,useMap:null,value:Re,width:$,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:xe,axis:null,background:null,bgColor:null,border:$,borderColor:null,bottomMargin:$,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:oe,declare:oe,event:null,face:null,frame:null,frameBorder:null,hSpace:$,leftMargin:$,link:null,longDesc:null,lowSrc:null,marginHeight:$,marginWidth:$,noResize:oe,noHref:oe,noShade:oe,noWrap:oe,object:null,profile:null,prompt:null,rev:null,rightMargin:$,rules:null,scheme:null,scrolling:Re,standby:null,summary:null,text:null,topMargin:$,valueType:null,version:null,vAlign:null,vLink:null,vSpace:$,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:oe,disableRemotePlayback:oe,prefix:null,property:null,results:$,security:null,unselectable:null},space:"html",transform:$l}),sh=Mr({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:it,accentHeight:$,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:$,amplitude:$,arabicForm:null,ascent:$,attributeName:null,attributeType:null,azimuth:$,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:$,by:null,calcMode:null,capHeight:$,className:xe,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:$,diffuseConstant:$,direction:null,display:null,dur:null,divisor:$,dominantBaseline:null,download:oe,dx:null,dy:null,edgeMode:null,editable:null,elevation:$,enableBackground:null,end:null,event:null,exponent:$,externalResourcesRequired:null,fill:null,fillOpacity:$,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:wr,g2:wr,glyphName:wr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:$,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:$,horizOriginX:$,horizOriginY:$,id:null,ideographic:$,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:$,k:$,k1:$,k2:$,k3:$,k4:$,kernelMatrix:it,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:$,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:$,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:$,overlineThickness:$,paintOrder:null,panose1:null,path:null,pathLength:$,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:xe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:$,pointsAtY:$,pointsAtZ:$,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:it,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:it,rev:it,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:it,requiredFeatures:it,requiredFonts:it,requiredFormats:it,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:$,specularExponent:$,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:$,strikethroughThickness:$,string:null,stroke:null,strokeDashArray:it,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:$,strokeOpacity:$,strokeWidth:null,style:null,surfaceScale:$,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:it,tabIndex:$,tableValues:null,target:null,targetX:$,targetY:$,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:it,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:$,underlineThickness:$,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:$,values:null,vAlphabetic:$,vMathematical:$,vectorEffect:null,vHanging:$,vIdeographic:$,version:null,vertAdvY:$,vertOriginX:$,vertOriginY:$,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:$,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Gl}),Wl=Mr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),jl=Mr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:$l}),Xl=Mr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),lh={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},oh=/[A-Z]/g,pu=/-[a-z]/g,ch=/^data[-\w.:]+$/i;function yn(e,t){const r=fr(t);let n=t,a=et;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&ch.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(pu,fh);n="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!pu.test(i)){let u=i.replace(oh,hh);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}a=Ei}return new a(n,t)}function hh(e){return"-"+e.toLowerCase()}function fh(e){return e.charAt(1).toUpperCase()}const Pr=Yl([Vl,uh,Wl,jl,Xl],"html"),zt=Yl([Vl,sh,Wl,jl,Xl],"svg");function r0(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Ql(e){return e.join(" ").trim()}var xr={},F0,gu;function dh(){if(gu)return F0;gu=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,s=/^\s+|\s+$/g,l=`
|
|
2
2
|
`,o="/",f="*",d="",g="comment",p="declaration";function T(I,w){if(typeof I!="string")throw new TypeError("First argument must be a string");if(!I)return[];w=w||{};var D=1,R=1;function j(ne){var Q=ne.match(t);Q&&(D+=Q.length);var de=ne.lastIndexOf(l);R=~de?ne.length-de:R+ne.length}function V(){var ne={line:D,column:R};return function(Q){return Q.position=new O(ne),G(),Q}}function O(ne){this.start=ne,this.end={line:D,column:R},this.source=w.source}O.prototype.content=I;function X(ne){var Q=new Error(w.source+":"+D+":"+R+": "+ne);if(Q.reason=ne,Q.filename=w.source,Q.line=D,Q.column=R,Q.source=I,!w.silent)throw Q}function re(ne){var Q=ne.exec(I);if(Q){var de=Q[0];return j(de),I=I.slice(de.length),Q}}function G(){re(r)}function M(ne){var Q;for(ne=ne||[];Q=Z();)Q!==!1&&ne.push(Q);return ne}function Z(){var ne=V();if(!(o!=I.charAt(0)||f!=I.charAt(1))){for(var Q=2;d!=I.charAt(Q)&&(f!=I.charAt(Q)||o!=I.charAt(Q+1));)++Q;if(Q+=2,d===I.charAt(Q-1))return X("End of comment missing");var de=I.slice(2,Q-2);return R+=2,j(de),I=I.slice(Q),R+=2,ne({type:g,comment:de})}}function J(){var ne=V(),Q=re(n);if(Q){if(Z(),!re(a))return X("property missing ':'");var de=re(i),ye=ne({type:p,property:v(Q[0].replace(e,d)),value:de?v(de[0].replace(e,d)):d});return re(u),ye}}function fe(){var ne=[];M(ne);for(var Q;Q=J();)Q!==!1&&(ne.push(Q),M(ne));return ne}return G(),fe()}function v(I){return I?I.replace(s,d):d}return F0=T,F0}var bu;function mh(){if(bu)return xr;bu=1;var e=xr&&xr.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(xr,"__esModule",{value:!0}),xr.default=r;const t=e(dh());function r(n,a){let i=null;if(!n||typeof n!="string")return i;const u=(0,t.default)(n),s=typeof a=="function";return u.forEach(l=>{if(l.type!=="declaration")return;const{property:o,value:f}=l;s?a(o,f,l):f&&(i=i||{},i[o]=f)}),i}return xr}var $r={},Eu;function ph(){if(Eu)return $r;Eu=1,Object.defineProperty($r,"__esModule",{value:!0}),$r.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,n=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,i=function(o){return!o||r.test(o)||e.test(o)},u=function(o,f){return f.toUpperCase()},s=function(o,f){return"".concat(f,"-")},l=function(o,f){return f===void 0&&(f={}),i(o)?o:(o=o.toLowerCase(),f.reactCompat?o=o.replace(a,s):o=o.replace(n,s),o.replace(t,u))};return $r.camelCase=l,$r}var Wr,Tu;function gh(){if(Tu)return Wr;Tu=1;var e=Wr&&Wr.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e(mh()),r=ph();function n(a,i){var u={};return!a||typeof a!="string"||(0,t.default)(a,function(s,l){s&&l&&(u[(0,r.camelCase)(s,i)]=l)}),u}return n.default=n,Wr=n,Wr}var bh=gh();const Eh=Ul(bh),m0=Kl("end"),wt=Kl("start");function Kl(e){return t;function t(r){const n=r&&r.position&&r.position[e]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function Th(e){const t=wt(e),r=m0(e);if(t&&r)return{start:t,end:r}}function yh(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?yu(e.position):"start"in e||"end"in e?yu(e):"line"in e||"column"in e?Ua(e):""}function Ua(e){return xu(e&&e.line)+":"+xu(e&&e.column)}function yu(e){return Ua(e&&e.start)+"-"+Ua(e&&e.end)}function xu(e){return e&&typeof e=="number"?e:1}class qe extends Error{constructor(t,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let a="",i={},u=!1;if(r&&("line"in r&&"column"in r?i={place:r}:"start"in r&&"end"in r?i={place:r}:"type"in r?i={ancestors:[r],place:r.position}:i={...r}),typeof t=="string"?a=t:!i.cause&&t&&(u=!0,a=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof n=="string"){const l=n.indexOf(":");l===-1?i.ruleId=n:(i.source=n.slice(0,l),i.ruleId=n.slice(l+1))}if(!i.place&&i.ancestors&&i.ancestors){const l=i.ancestors[i.ancestors.length-1];l&&(i.place=l.position)}const s=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=a,this.line=s?s.line:void 0,this.name=yh(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=u&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}qe.prototype.file="";qe.prototype.name="";qe.prototype.reason="";qe.prototype.message="";qe.prototype.stack="";qe.prototype.column=void 0;qe.prototype.line=void 0;qe.prototype.ancestors=void 0;qe.prototype.cause=void 0;qe.prototype.fatal=void 0;qe.prototype.place=void 0;qe.prototype.ruleId=void 0;qe.prototype.source=void 0;const Ti={}.hasOwnProperty,xh=new Map,vh=/[A-Z]/g,Ah=new Set(["table","tbody","thead","tfoot","tr"]),Sh=new Set(["td","th"]),Jl="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function kh(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let n;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");n=Lh(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");n=Oh(r,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:n,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?zt:Pr,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=Zl(a,e,void 0);return i&&typeof i!="string"?i:a.create(e,a.Fragment,{children:i||void 0},void 0)}function Zl(e,t,r){if(t.type==="element")return wh(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Ch(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return _h(e,t,r);if(t.type==="mdxjsEsm")return Ih(e,t);if(t.type==="root")return Nh(e,t,r);if(t.type==="text")return Dh(e,t)}function wh(e,t,r){const n=e.schema;let a=n;t.tagName.toLowerCase()==="svg"&&n.space==="html"&&(a=zt,e.schema=a),e.ancestors.push(t);const i=to(e,t.tagName,!1),u=Rh(e,t);let s=xi(e,t);return Ah.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!ah(l):!0})),eo(e,u,i,t),yi(u,s),e.ancestors.pop(),e.schema=n,e.create(t,i,u,r)}function Ch(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}fn(e,t.position)}function Ih(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);fn(e,t.position)}function _h(e,t,r){const n=e.schema;let a=n;t.name==="svg"&&n.space==="html"&&(a=zt,e.schema=a),e.ancestors.push(t);const i=t.name===null?e.Fragment:to(e,t.name,!0),u=Mh(e,t),s=xi(e,t);return eo(e,u,i,t),yi(u,s),e.ancestors.pop(),e.schema=n,e.create(t,i,u,r)}function Nh(e,t,r){const n={};return yi(n,xi(e,t)),e.create(t,e.Fragment,n,r)}function Dh(e,t){return t.value}function eo(e,t,r,n){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=n)}function yi(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function Oh(e,t,r){return n;function n(a,i,u,s){const o=Array.isArray(u.children)?r:t;return s?o(i,u,s):o(i,u)}}function Lh(e,t){return r;function r(n,a,i,u){const s=Array.isArray(i.children),l=wt(n);return t(a,i,u,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function Rh(e,t){const r={};let n,a;for(a in t.properties)if(a!=="children"&&Ti.call(t.properties,a)){const i=Ph(e,a,t.properties[a]);if(i){const[u,s]=i;e.tableCellAlignToStyle&&u==="align"&&typeof s=="string"&&Sh.has(t.tagName)?n=s:r[u]=s}}if(n){const i=r.style||(r.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=n}return r}function Mh(e,t){const r={};for(const n of t.attributes)if(n.type==="mdxJsxExpressionAttribute")if(n.data&&n.data.estree&&e.evaluater){const i=n.data.estree.body[0];i.type;const u=i.expression;u.type;const s=u.properties[0];s.type,Object.assign(r,e.evaluater.evaluateExpression(s.argument))}else fn(e,t.position);else{const a=n.name;let i;if(n.value&&typeof n.value=="object")if(n.value.data&&n.value.data.estree&&e.evaluater){const s=n.value.data.estree.body[0];s.type,i=e.evaluater.evaluateExpression(s.expression)}else fn(e,t.position);else i=n.value===null?!0:n.value;r[a]=i}return r}function xi(e,t){const r=[];let n=-1;const a=e.passKeys?new Map:xh;for(;++n<t.children.length;){const i=t.children[n];let u;if(e.passKeys){const l=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(l){const o=a.get(l)||0;u=l+"-"+o,a.set(l,o+1)}}const s=Zl(e,i,u);s!==void 0&&r.push(s)}return r}function Ph(e,t,r){const n=yn(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=n.commaSeparated?ql(r):Ql(r)),n.property==="style"){let a=typeof r=="object"?r:Bh(e,String(r));return e.stylePropertyNameCase==="css"&&(a=Fh(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&n.space?lh[n.property]||n.property:n.attribute,r]}}function Bh(e,t){try{return Eh(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const n=r,a=new qe("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=Jl+"#cannot-parse-style-attribute",a}}function to(e,t,r){let n;if(!r)n={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let i=-1,u;for(;++i<a.length;){const s=fu(a[i])?{type:"Identifier",name:a[i]}:{type:"Literal",value:a[i]};u=u?{type:"MemberExpression",object:u,property:s,computed:!!(i&&s.type==="Literal"),optional:!1}:s}n=u}else n=fu(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(n.type==="Literal"){const a=n.value;return Ti.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(n);fn(e)}function fn(e,t){const r=new qe("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=Jl+"#cannot-handle-mdx-estrees-without-createevaluater",r}function Fh(e){const t={};let r;for(r in e)Ti.call(e,r)&&(t[Hh(r)]=e[r]);return t}function Hh(e){let t=e.replace(vh,zh);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function zh(e){return"-"+e.toLowerCase()}const H0={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Uh={};function qh(e,t){const r=Uh,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,a=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return ro(e,n,a)}function ro(e,t,r){if(Yh(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return vu(e.children,t,r)}return Array.isArray(e)?vu(e,t,r):""}function vu(e,t,r){const n=[];let a=-1;for(;++a<e.length;)n[a]=ro(e[a],t,r);return n.join("")}function Yh(e){return!!(e&&typeof e=="object")}const Au=document.createElement("i");function vi(e){const t="&"+e+";";Au.innerHTML=t;const r=Au.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function kt(e,t,r,n){const a=e.length;let i=0,u;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,r=r>0?r:0,n.length<1e4)u=Array.from(n),u.unshift(t,r),e.splice(...u);else for(r&&e.splice(t,r);i<n.length;)u=n.slice(i,i+1e4),u.unshift(t,0),e.splice(...u),i+=1e4,t+=1e4}function ot(e,t){return e.length>0?(kt(e,e.length,0,t),e):t}const Su={}.hasOwnProperty;function Vh(e){const t={};let r=-1;for(;++r<e.length;)Gh(t,e[r]);return t}function Gh(e,t){let r;for(r in t){const a=(Su.call(e,r)?e[r]:void 0)||(e[r]={}),i=t[r];let u;if(i)for(u in i){Su.call(a,u)||(a[u]=[]);const s=i[u];$h(a[u],Array.isArray(s)?s:s?[s]:[])}}}function $h(e,t){let r=-1;const n=[];for(;++r<t.length;)(t[r].add==="after"?e:n).push(t[r]);kt(e,0,0,n)}function no(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function Cr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const vt=rr(/[A-Za-z]/),bt=rr(/[\dA-Za-z]/),Wh=rr(/[#-'*+\--9=?A-Z^-~]/);function qa(e){return e!==null&&(e<32||e===127)}const Ya=rr(/\d/),jh=rr(/[\dA-Fa-f]/),Xh=rr(/[!-/:-@[-`{-~]/);function ue(e){return e!==null&&e<-2}function Ze(e){return e!==null&&(e<0||e===32)}function be(e){return e===-2||e===-1||e===32}const Qh=rr(new RegExp("\\p{P}|\\p{S}","u")),Kh=rr(/\s/);function rr(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function ve(e,t,r,n){const a=n?n-1:Number.POSITIVE_INFINITY;let i=0;return u;function u(l){return be(l)?(e.enter(r),s(l)):t(l)}function s(l){return be(l)&&i++<a?(e.consume(l),s):(e.exit(r),t(l))}}const Jh={tokenize:Zh};function Zh(e){const t=e.attempt(this.parser.constructs.contentInitial,n,a);let r;return t;function n(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),ve(e,t,"linePrefix")}function a(s){return e.enter("paragraph"),i(s)}function i(s){const l=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=l),r=l,u(s)}function u(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return ue(s)?(e.consume(s),e.exit("chunkText"),i):(e.consume(s),u)}}const ef={tokenize:tf},ku={tokenize:rf};function tf(e){const t=this,r=[];let n=0,a,i,u;return s;function s(R){if(n<r.length){const j=r[n];return t.containerState=j[1],e.attempt(j[0].continuation,l,o)(R)}return o(R)}function l(R){if(n++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&D();const j=t.events.length;let V=j,O;for(;V--;)if(t.events[V][0]==="exit"&&t.events[V][1].type==="chunkFlow"){O=t.events[V][1].end;break}w(n);let X=j;for(;X<t.events.length;)t.events[X][1].end={...O},X++;return kt(t.events,V+1,0,t.events.slice(j)),t.events.length=X,o(R)}return s(R)}function o(R){if(n===r.length){if(!a)return g(R);if(a.currentConstruct&&a.currentConstruct.concrete)return T(R);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(ku,f,d)(R)}function f(R){return a&&D(),w(n),g(R)}function d(R){return t.parser.lazy[t.now().line]=n!==r.length,u=t.now().offset,T(R)}function g(R){return t.containerState={},e.attempt(ku,p,T)(R)}function p(R){return n++,r.push([t.currentConstruct,t.containerState]),g(R)}function T(R){if(R===null){a&&D(),w(0),e.consume(R);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:i}),v(R)}function v(R){if(R===null){I(e.exit("chunkFlow"),!0),w(0),e.consume(R);return}return ue(R)?(e.consume(R),I(e.exit("chunkFlow")),n=0,t.interrupt=void 0,s):(e.consume(R),v)}function I(R,j){const V=t.sliceStream(R);if(j&&V.push(null),R.previous=i,i&&(i.next=R),i=R,a.defineSkip(R.start),a.write(V),t.parser.lazy[R.start.line]){let O=a.events.length;for(;O--;)if(a.events[O][1].start.offset<u&&(!a.events[O][1].end||a.events[O][1].end.offset>u))return;const X=t.events.length;let re=X,G,M;for(;re--;)if(t.events[re][0]==="exit"&&t.events[re][1].type==="chunkFlow"){if(G){M=t.events[re][1].end;break}G=!0}for(w(n),O=X;O<t.events.length;)t.events[O][1].end={...M},O++;kt(t.events,re+1,0,t.events.slice(X)),t.events.length=O}}function w(R){let j=r.length;for(;j-- >R;){const V=r[j];t.containerState=V[1],V[0].exit.call(t,e)}r.length=R}function D(){a.write([null]),i=void 0,a=void 0,t.containerState._closeFlow=void 0}}function rf(e,t,r){return ve(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function wu(e){if(e===null||Ze(e)||Kh(e))return 1;if(Qh(e))return 2}function Ai(e,t,r){const n=[];let a=-1;for(;++a<e.length;){const i=e[a].resolveAll;i&&!n.includes(i)&&(t=i(t,r),n.push(i))}return t}const Va={name:"attention",resolveAll:nf,tokenize:af};function nf(e,t){let r=-1,n,a,i,u,s,l,o,f;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(n=r;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[n][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;l=e[n][1].end.offset-e[n][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const d={...e[n][1].end},g={...e[r][1].start};Cu(d,-l),Cu(g,l),u={type:l>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},s={type:l>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:g},i={type:l>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[r][1].start}},a={type:l>1?"strong":"emphasis",start:{...u.start},end:{...s.end}},e[n][1].end={...u.start},e[r][1].start={...s.end},o=[],e[n][1].end.offset-e[n][1].start.offset&&(o=ot(o,[["enter",e[n][1],t],["exit",e[n][1],t]])),o=ot(o,[["enter",a,t],["enter",u,t],["exit",u,t],["enter",i,t]]),o=ot(o,Ai(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),o=ot(o,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",a,t]]),e[r][1].end.offset-e[r][1].start.offset?(f=2,o=ot(o,[["enter",e[r][1],t],["exit",e[r][1],t]])):f=0,kt(e,n-1,r-n+3,o),r=n+o.length-f-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function af(e,t){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,a=wu(n);let i;return u;function u(l){return i=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===i)return e.consume(l),s;const o=e.exit("attentionSequence"),f=wu(l),d=!f||f===2&&a||r.includes(l),g=!a||a===2&&f||r.includes(n);return o._open=!!(i===42?d:d&&(a||!g)),o._close=!!(i===42?g:g&&(f||!d)),t(l)}}function Cu(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const uf={name:"autolink",tokenize:sf};function sf(e,t,r){let n=0;return a;function a(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(p){return vt(p)?(e.consume(p),u):p===64?r(p):o(p)}function u(p){return p===43||p===45||p===46||bt(p)?(n=1,s(p)):o(p)}function s(p){return p===58?(e.consume(p),n=0,l):(p===43||p===45||p===46||bt(p))&&n++<32?(e.consume(p),s):(n=0,o(p))}function l(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||qa(p)?r(p):(e.consume(p),l)}function o(p){return p===64?(e.consume(p),f):Wh(p)?(e.consume(p),o):r(p)}function f(p){return bt(p)?d(p):r(p)}function d(p){return p===46?(e.consume(p),n=0,f):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):g(p)}function g(p){if((p===45||bt(p))&&n++<63){const T=p===45?g:d;return e.consume(p),T}return r(p)}}const p0={partial:!0,tokenize:lf};function lf(e,t,r){return n;function n(i){return be(i)?ve(e,a,"linePrefix")(i):a(i)}function a(i){return i===null||ue(i)?t(i):r(i)}}const ao={continuation:{tokenize:cf},exit:hf,name:"blockQuote",tokenize:of};function of(e,t,r){const n=this;return a;function a(u){if(u===62){const s=n.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),i}return r(u)}function i(u){return be(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(u))}}function cf(e,t,r){const n=this;return a;function a(u){return be(u)?ve(e,i,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):i(u)}function i(u){return e.attempt(ao,t,r)(u)}}function hf(e){e.exit("blockQuote")}const io={name:"characterEscape",tokenize:ff};function ff(e,t,r){return n;function n(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),a}function a(i){return Xh(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(i)}}const uo={name:"characterReference",tokenize:df};function df(e,t,r){const n=this;let a=0,i,u;return s;function s(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),l}function l(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),o):(e.enter("characterReferenceValue"),i=31,u=bt,f(d))}function o(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,u=jh,f):(e.enter("characterReferenceValue"),i=7,u=Ya,f(d))}function f(d){if(d===59&&a){const g=e.exit("characterReferenceValue");return u===bt&&!vi(n.sliceSerialize(g))?r(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return u(d)&&a++<i?(e.consume(d),f):r(d)}}const Iu={partial:!0,tokenize:pf},_u={concrete:!0,name:"codeFenced",tokenize:mf};function mf(e,t,r){const n=this,a={partial:!0,tokenize:V};let i=0,u=0,s;return l;function l(O){return o(O)}function o(O){const X=n.events[n.events.length-1];return i=X&&X[1].type==="linePrefix"?X[2].sliceSerialize(X[1],!0).length:0,s=O,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(O)}function f(O){return O===s?(u++,e.consume(O),f):u<3?r(O):(e.exit("codeFencedFenceSequence"),be(O)?ve(e,d,"whitespace")(O):d(O))}function d(O){return O===null||ue(O)?(e.exit("codeFencedFence"),n.interrupt?t(O):e.check(Iu,v,j)(O)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),g(O))}function g(O){return O===null||ue(O)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(O)):be(O)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ve(e,p,"whitespace")(O)):O===96&&O===s?r(O):(e.consume(O),g)}function p(O){return O===null||ue(O)?d(O):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),T(O))}function T(O){return O===null||ue(O)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(O)):O===96&&O===s?r(O):(e.consume(O),T)}function v(O){return e.attempt(a,j,I)(O)}function I(O){return e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),w}function w(O){return i>0&&be(O)?ve(e,D,"linePrefix",i+1)(O):D(O)}function D(O){return O===null||ue(O)?e.check(Iu,v,j)(O):(e.enter("codeFlowValue"),R(O))}function R(O){return O===null||ue(O)?(e.exit("codeFlowValue"),D(O)):(e.consume(O),R)}function j(O){return e.exit("codeFenced"),t(O)}function V(O,X,re){let G=0;return M;function M(Q){return O.enter("lineEnding"),O.consume(Q),O.exit("lineEnding"),Z}function Z(Q){return O.enter("codeFencedFence"),be(Q)?ve(O,J,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Q):J(Q)}function J(Q){return Q===s?(O.enter("codeFencedFenceSequence"),fe(Q)):re(Q)}function fe(Q){return Q===s?(G++,O.consume(Q),fe):G>=u?(O.exit("codeFencedFenceSequence"),be(Q)?ve(O,ne,"whitespace")(Q):ne(Q)):re(Q)}function ne(Q){return Q===null||ue(Q)?(O.exit("codeFencedFence"),X(Q)):re(Q)}}}function pf(e,t,r){const n=this;return a;function a(u){return u===null?r(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),i)}function i(u){return n.parser.lazy[n.now().line]?r(u):t(u)}}const z0={name:"codeIndented",tokenize:bf},gf={partial:!0,tokenize:Ef};function bf(e,t,r){const n=this;return a;function a(o){return e.enter("codeIndented"),ve(e,i,"linePrefix",5)(o)}function i(o){const f=n.events[n.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?u(o):r(o)}function u(o){return o===null?l(o):ue(o)?e.attempt(gf,u,l)(o):(e.enter("codeFlowValue"),s(o))}function s(o){return o===null||ue(o)?(e.exit("codeFlowValue"),u(o)):(e.consume(o),s)}function l(o){return e.exit("codeIndented"),t(o)}}function Ef(e,t,r){const n=this;return a;function a(u){return n.parser.lazy[n.now().line]?r(u):ue(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),a):ve(e,i,"linePrefix",5)(u)}function i(u){const s=n.events[n.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(u):ue(u)?a(u):r(u)}}const Tf={name:"codeText",previous:xf,resolve:yf,tokenize:vf};function yf(e){let t=e.length-4,r=3,n,a;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)a===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(a=n):(n===t||e[n][1].type==="lineEnding")&&(e[a][1].type="codeTextData",n!==a+2&&(e[a][1].end=e[n-1][1].end,e.splice(a+2,n-a-2),t-=n-a-2,n=a+2),a=void 0);return e}function xf(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function vf(e,t,r){let n=0,a,i;return u;function u(d){return e.enter("codeText"),e.enter("codeTextSequence"),s(d)}function s(d){return d===96?(e.consume(d),n++,s):(e.exit("codeTextSequence"),l(d))}function l(d){return d===null?r(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),l):d===96?(i=e.enter("codeTextSequence"),a=0,f(d)):ue(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),l):(e.enter("codeTextData"),o(d))}function o(d){return d===null||d===32||d===96||ue(d)?(e.exit("codeTextData"),l(d)):(e.consume(d),o)}function f(d){return d===96?(e.consume(d),a++,f):a===n?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(i.type="codeTextData",o(d))}}class Af{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){const n=r??Number.POSITIVE_INFINITY;return n<this.left.length?this.left.slice(t,n):t>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(t,r,n){const a=r||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return n&&jr(this.left,n),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),jr(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),jr(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const r=this.left.splice(t,Number.POSITIVE_INFINITY);jr(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);jr(this.left,r.reverse())}}}function jr(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function so(e){const t={};let r=-1,n,a,i,u,s,l,o;const f=new Af(e);for(;++r<f.length;){for(;r in t;)r=t[r];if(n=f.get(r),r&&n[1].type==="chunkFlow"&&f.get(r-1)[1].type==="listItemPrefix"&&(l=n[1]._tokenizer.events,i=0,i<l.length&&l[i][1].type==="lineEndingBlank"&&(i+=2),i<l.length&&l[i][1].type==="content"))for(;++i<l.length&&l[i][1].type!=="content";)l[i][1].type==="chunkText"&&(l[i][1]._isInFirstContentOfListItem=!0,i++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,Sf(f,r)),r=t[r],o=!0);else if(n[1]._container){for(i=r,a=void 0;i--;)if(u=f.get(i),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(a&&(f.get(a)[1].type="lineEndingBlank"),u[1].type="lineEnding",a=i);else if(!(u[1].type==="linePrefix"||u[1].type==="listItemIndent"))break;a&&(n[1].end={...f.get(a)[1].start},s=f.slice(a,r),s.unshift(n),f.splice(a,r-a+1,s))}}return kt(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!o}function Sf(e,t){const r=e.get(t)[1],n=e.get(t)[2];let a=t-1;const i=[];let u=r._tokenizer;u||(u=n.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));const s=u.events,l=[],o={};let f,d,g=-1,p=r,T=0,v=0;const I=[v];for(;p;){for(;e.get(++a)[1]!==p;);i.push(a),p._tokenizer||(f=n.sliceStream(p),p.next||f.push(null),d&&u.defineSkip(p.start),p._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(f),p._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=r;++g<s.length;)s[g][0]==="exit"&&s[g-1][0]==="enter"&&s[g][1].type===s[g-1][1].type&&s[g][1].start.line!==s[g][1].end.line&&(v=g+1,I.push(v),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(u.events=[],p?(p._tokenizer=void 0,p.previous=void 0):I.pop(),g=I.length;g--;){const w=s.slice(I[g],I[g+1]),D=i.pop();l.push([D,D+w.length-1]),e.splice(D,2,w)}for(l.reverse(),g=-1;++g<l.length;)o[T+l[g][0]]=T+l[g][1],T+=l[g][1]-l[g][0]-1;return o}const kf={resolve:Cf,tokenize:If},wf={partial:!0,tokenize:_f};function Cf(e){return so(e),e}function If(e,t){let r;return n;function n(s){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),a(s)}function a(s){return s===null?i(s):ue(s)?e.check(wf,u,i)(s):(e.consume(s),a)}function i(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function u(s){return e.consume(s),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,a}}function _f(e,t,r){const n=this;return a;function a(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),ve(e,i,"linePrefix")}function i(u){if(u===null||ue(u))return r(u);const s=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(u):e.interrupt(n.parser.constructs.flow,r,t)(u)}}function lo(e,t,r,n,a,i,u,s,l){const o=l||Number.POSITIVE_INFINITY;let f=0;return d;function d(w){return w===60?(e.enter(n),e.enter(a),e.enter(i),e.consume(w),e.exit(i),g):w===null||w===32||w===41||qa(w)?r(w):(e.enter(n),e.enter(u),e.enter(s),e.enter("chunkString",{contentType:"string"}),v(w))}function g(w){return w===62?(e.enter(i),e.consume(w),e.exit(i),e.exit(a),e.exit(n),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(w))}function p(w){return w===62?(e.exit("chunkString"),e.exit(s),g(w)):w===null||w===60||ue(w)?r(w):(e.consume(w),w===92?T:p)}function T(w){return w===60||w===62||w===92?(e.consume(w),p):p(w)}function v(w){return!f&&(w===null||w===41||Ze(w))?(e.exit("chunkString"),e.exit(s),e.exit(u),e.exit(n),t(w)):f<o&&w===40?(e.consume(w),f++,v):w===41?(e.consume(w),f--,v):w===null||w===32||w===40||qa(w)?r(w):(e.consume(w),w===92?I:v)}function I(w){return w===40||w===41||w===92?(e.consume(w),v):v(w)}}function oo(e,t,r,n,a,i){const u=this;let s=0,l;return o;function o(p){return e.enter(n),e.enter(a),e.consume(p),e.exit(a),e.enter(i),f}function f(p){return s>999||p===null||p===91||p===93&&!l||p===94&&!s&&"_hiddenFootnoteSupport"in u.parser.constructs?r(p):p===93?(e.exit(i),e.enter(a),e.consume(p),e.exit(a),e.exit(n),t):ue(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||ue(p)||s++>999?(e.exit("chunkString"),f(p)):(e.consume(p),l||(l=!be(p)),p===92?g:d)}function g(p){return p===91||p===92||p===93?(e.consume(p),s++,d):d(p)}}function co(e,t,r,n,a,i){let u;return s;function s(g){return g===34||g===39||g===40?(e.enter(n),e.enter(a),e.consume(g),e.exit(a),u=g===40?41:g,l):r(g)}function l(g){return g===u?(e.enter(a),e.consume(g),e.exit(a),e.exit(n),t):(e.enter(i),o(g))}function o(g){return g===u?(e.exit(i),l(u)):g===null?r(g):ue(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),ve(e,o,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(g))}function f(g){return g===u||g===null||ue(g)?(e.exit("chunkString"),o(g)):(e.consume(g),g===92?d:f)}function d(g){return g===u||g===92?(e.consume(g),f):f(g)}}function tn(e,t){let r;return n;function n(a){return ue(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),r=!0,n):be(a)?ve(e,n,r?"linePrefix":"lineSuffix")(a):t(a)}}const Nf={name:"definition",tokenize:Of},Df={partial:!0,tokenize:Lf};function Of(e,t,r){const n=this;let a;return i;function i(p){return e.enter("definition"),u(p)}function u(p){return oo.call(n,e,s,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function s(p){return a=Cr(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),l):r(p)}function l(p){return Ze(p)?tn(e,o)(p):o(p)}function o(p){return lo(e,f,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function f(p){return e.attempt(Df,d,d)(p)}function d(p){return be(p)?ve(e,g,"whitespace")(p):g(p)}function g(p){return p===null||ue(p)?(e.exit("definition"),n.parser.defined.push(a),t(p)):r(p)}}function Lf(e,t,r){return n;function n(s){return Ze(s)?tn(e,a)(s):r(s)}function a(s){return co(e,i,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function i(s){return be(s)?ve(e,u,"whitespace")(s):u(s)}function u(s){return s===null||ue(s)?t(s):r(s)}}const Rf={name:"hardBreakEscape",tokenize:Mf};function Mf(e,t,r){return n;function n(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return ue(i)?(e.exit("hardBreakEscape"),t(i)):r(i)}}const Pf={name:"headingAtx",resolve:Bf,tokenize:Ff};function Bf(e,t){let r=e.length-2,n=3,a,i;return e[n][1].type==="whitespace"&&(n+=2),r-2>n&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&e[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(a={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},i={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},kt(e,n,r-n+1,[["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t]])),e}function Ff(e,t,r){let n=0;return a;function a(f){return e.enter("atxHeading"),i(f)}function i(f){return e.enter("atxHeadingSequence"),u(f)}function u(f){return f===35&&n++<6?(e.consume(f),u):f===null||Ze(f)?(e.exit("atxHeadingSequence"),s(f)):r(f)}function s(f){return f===35?(e.enter("atxHeadingSequence"),l(f)):f===null||ue(f)?(e.exit("atxHeading"),t(f)):be(f)?ve(e,s,"whitespace")(f):(e.enter("atxHeadingText"),o(f))}function l(f){return f===35?(e.consume(f),l):(e.exit("atxHeadingSequence"),s(f))}function o(f){return f===null||f===35||Ze(f)?(e.exit("atxHeadingText"),s(f)):(e.consume(f),o)}}const Hf=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Nu=["pre","script","style","textarea"],zf={concrete:!0,name:"htmlFlow",resolveTo:Yf,tokenize:Vf},Uf={partial:!0,tokenize:$f},qf={partial:!0,tokenize:Gf};function Yf(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Vf(e,t,r){const n=this;let a,i,u,s,l;return o;function o(_){return f(_)}function f(_){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(_),d}function d(_){return _===33?(e.consume(_),g):_===47?(e.consume(_),i=!0,v):_===63?(e.consume(_),a=3,n.interrupt?t:C):vt(_)?(e.consume(_),u=String.fromCharCode(_),I):r(_)}function g(_){return _===45?(e.consume(_),a=2,p):_===91?(e.consume(_),a=5,s=0,T):vt(_)?(e.consume(_),a=4,n.interrupt?t:C):r(_)}function p(_){return _===45?(e.consume(_),n.interrupt?t:C):r(_)}function T(_){const Ve="CDATA[";return _===Ve.charCodeAt(s++)?(e.consume(_),s===Ve.length?n.interrupt?t:J:T):r(_)}function v(_){return vt(_)?(e.consume(_),u=String.fromCharCode(_),I):r(_)}function I(_){if(_===null||_===47||_===62||Ze(_)){const Ve=_===47,Xe=u.toLowerCase();return!Ve&&!i&&Nu.includes(Xe)?(a=1,n.interrupt?t(_):J(_)):Hf.includes(u.toLowerCase())?(a=6,Ve?(e.consume(_),w):n.interrupt?t(_):J(_)):(a=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(_):i?D(_):R(_))}return _===45||bt(_)?(e.consume(_),u+=String.fromCharCode(_),I):r(_)}function w(_){return _===62?(e.consume(_),n.interrupt?t:J):r(_)}function D(_){return be(_)?(e.consume(_),D):M(_)}function R(_){return _===47?(e.consume(_),M):_===58||_===95||vt(_)?(e.consume(_),j):be(_)?(e.consume(_),R):M(_)}function j(_){return _===45||_===46||_===58||_===95||bt(_)?(e.consume(_),j):V(_)}function V(_){return _===61?(e.consume(_),O):be(_)?(e.consume(_),V):R(_)}function O(_){return _===null||_===60||_===61||_===62||_===96?r(_):_===34||_===39?(e.consume(_),l=_,X):be(_)?(e.consume(_),O):re(_)}function X(_){return _===l?(e.consume(_),l=null,G):_===null||ue(_)?r(_):(e.consume(_),X)}function re(_){return _===null||_===34||_===39||_===47||_===60||_===61||_===62||_===96||Ze(_)?V(_):(e.consume(_),re)}function G(_){return _===47||_===62||be(_)?R(_):r(_)}function M(_){return _===62?(e.consume(_),Z):r(_)}function Z(_){return _===null||ue(_)?J(_):be(_)?(e.consume(_),Z):r(_)}function J(_){return _===45&&a===2?(e.consume(_),de):_===60&&a===1?(e.consume(_),ye):_===62&&a===4?(e.consume(_),Oe):_===63&&a===3?(e.consume(_),C):_===93&&a===5?(e.consume(_),rt):ue(_)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(Uf,Ie,fe)(_)):_===null||ue(_)?(e.exit("htmlFlowData"),fe(_)):(e.consume(_),J)}function fe(_){return e.check(qf,ne,Ie)(_)}function ne(_){return e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),Q}function Q(_){return _===null||ue(_)?fe(_):(e.enter("htmlFlowData"),J(_))}function de(_){return _===45?(e.consume(_),C):J(_)}function ye(_){return _===47?(e.consume(_),u="",Fe):J(_)}function Fe(_){if(_===62){const Ve=u.toLowerCase();return Nu.includes(Ve)?(e.consume(_),Oe):J(_)}return vt(_)&&u.length<8?(e.consume(_),u+=String.fromCharCode(_),Fe):J(_)}function rt(_){return _===93?(e.consume(_),C):J(_)}function C(_){return _===62?(e.consume(_),Oe):_===45&&a===2?(e.consume(_),C):J(_)}function Oe(_){return _===null||ue(_)?(e.exit("htmlFlowData"),Ie(_)):(e.consume(_),Oe)}function Ie(_){return e.exit("htmlFlow"),t(_)}}function Gf(e,t,r){const n=this;return a;function a(u){return ue(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),i):r(u)}function i(u){return n.parser.lazy[n.now().line]?r(u):t(u)}}function $f(e,t,r){return n;function n(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(p0,t,r)}}const Wf={name:"htmlText",tokenize:jf};function jf(e,t,r){const n=this;let a,i,u;return s;function s(C){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(C),l}function l(C){return C===33?(e.consume(C),o):C===47?(e.consume(C),V):C===63?(e.consume(C),R):vt(C)?(e.consume(C),re):r(C)}function o(C){return C===45?(e.consume(C),f):C===91?(e.consume(C),i=0,T):vt(C)?(e.consume(C),D):r(C)}function f(C){return C===45?(e.consume(C),p):r(C)}function d(C){return C===null?r(C):C===45?(e.consume(C),g):ue(C)?(u=d,ye(C)):(e.consume(C),d)}function g(C){return C===45?(e.consume(C),p):d(C)}function p(C){return C===62?de(C):C===45?g(C):d(C)}function T(C){const Oe="CDATA[";return C===Oe.charCodeAt(i++)?(e.consume(C),i===Oe.length?v:T):r(C)}function v(C){return C===null?r(C):C===93?(e.consume(C),I):ue(C)?(u=v,ye(C)):(e.consume(C),v)}function I(C){return C===93?(e.consume(C),w):v(C)}function w(C){return C===62?de(C):C===93?(e.consume(C),w):v(C)}function D(C){return C===null||C===62?de(C):ue(C)?(u=D,ye(C)):(e.consume(C),D)}function R(C){return C===null?r(C):C===63?(e.consume(C),j):ue(C)?(u=R,ye(C)):(e.consume(C),R)}function j(C){return C===62?de(C):R(C)}function V(C){return vt(C)?(e.consume(C),O):r(C)}function O(C){return C===45||bt(C)?(e.consume(C),O):X(C)}function X(C){return ue(C)?(u=X,ye(C)):be(C)?(e.consume(C),X):de(C)}function re(C){return C===45||bt(C)?(e.consume(C),re):C===47||C===62||Ze(C)?G(C):r(C)}function G(C){return C===47?(e.consume(C),de):C===58||C===95||vt(C)?(e.consume(C),M):ue(C)?(u=G,ye(C)):be(C)?(e.consume(C),G):de(C)}function M(C){return C===45||C===46||C===58||C===95||bt(C)?(e.consume(C),M):Z(C)}function Z(C){return C===61?(e.consume(C),J):ue(C)?(u=Z,ye(C)):be(C)?(e.consume(C),Z):G(C)}function J(C){return C===null||C===60||C===61||C===62||C===96?r(C):C===34||C===39?(e.consume(C),a=C,fe):ue(C)?(u=J,ye(C)):be(C)?(e.consume(C),J):(e.consume(C),ne)}function fe(C){return C===a?(e.consume(C),a=void 0,Q):C===null?r(C):ue(C)?(u=fe,ye(C)):(e.consume(C),fe)}function ne(C){return C===null||C===34||C===39||C===60||C===61||C===96?r(C):C===47||C===62||Ze(C)?G(C):(e.consume(C),ne)}function Q(C){return C===47||C===62||Ze(C)?G(C):r(C)}function de(C){return C===62?(e.consume(C),e.exit("htmlTextData"),e.exit("htmlText"),t):r(C)}function ye(C){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),Fe}function Fe(C){return be(C)?ve(e,rt,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):rt(C)}function rt(C){return e.enter("htmlTextData"),u(C)}}const Si={name:"labelEnd",resolveAll:Jf,resolveTo:Zf,tokenize:ed},Xf={tokenize:td},Qf={tokenize:rd},Kf={tokenize:nd};function Jf(e){let t=-1;const r=[];for(;++t<e.length;){const n=e[t][1];if(r.push(e[t]),n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd"){const a=n.type==="labelImage"?4:2;n.type="data",t+=a}}return e.length!==r.length&&kt(e,0,e.length,r),e}function Zf(e,t){let r=e.length,n=0,a,i,u,s;for(;r--;)if(a=e[r][1],i){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[r][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(u){if(e[r][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(i=r,a.type!=="labelLink")){n=2;break}}else a.type==="labelEnd"&&(u=r);const l={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},o={type:"label",start:{...e[i][1].start},end:{...e[u][1].end}},f={type:"labelText",start:{...e[i+n+2][1].end},end:{...e[u-2][1].start}};return s=[["enter",l,t],["enter",o,t]],s=ot(s,e.slice(i+1,i+n+3)),s=ot(s,[["enter",f,t]]),s=ot(s,Ai(t.parser.constructs.insideSpan.null,e.slice(i+n+4,u-3),t)),s=ot(s,[["exit",f,t],e[u-2],e[u-1],["exit",o,t]]),s=ot(s,e.slice(u+1)),s=ot(s,[["exit",l,t]]),kt(e,i,e.length,s),e}function ed(e,t,r){const n=this;let a=n.events.length,i,u;for(;a--;)if((n.events[a][1].type==="labelImage"||n.events[a][1].type==="labelLink")&&!n.events[a][1]._balanced){i=n.events[a][1];break}return s;function s(g){return i?i._inactive?d(g):(u=n.parser.defined.includes(Cr(n.sliceSerialize({start:i.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(g),e.exit("labelMarker"),e.exit("labelEnd"),l):r(g)}function l(g){return g===40?e.attempt(Xf,f,u?f:d)(g):g===91?e.attempt(Qf,f,u?o:d)(g):u?f(g):d(g)}function o(g){return e.attempt(Kf,f,d)(g)}function f(g){return t(g)}function d(g){return i._balanced=!0,r(g)}}function td(e,t,r){return n;function n(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),a}function a(d){return Ze(d)?tn(e,i)(d):i(d)}function i(d){return d===41?f(d):lo(e,u,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function u(d){return Ze(d)?tn(e,l)(d):f(d)}function s(d){return r(d)}function l(d){return d===34||d===39||d===40?co(e,o,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):f(d)}function o(d){return Ze(d)?tn(e,f)(d):f(d)}function f(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):r(d)}}function rd(e,t,r){const n=this;return a;function a(s){return oo.call(n,e,i,u,"reference","referenceMarker","referenceString")(s)}function i(s){return n.parser.defined.includes(Cr(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(s):r(s)}function u(s){return r(s)}}function nd(e,t,r){return n;function n(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),a}function a(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):r(i)}}const ad={name:"labelStartImage",resolveAll:Si.resolveAll,tokenize:id};function id(e,t,r){const n=this;return a;function a(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),i}function i(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),u):r(s)}function u(s){return s===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(s):t(s)}}const ud={name:"labelStartLink",resolveAll:Si.resolveAll,tokenize:sd};function sd(e,t,r){const n=this;return a;function a(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelLink"),i}function i(u){return u===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(u):t(u)}}const U0={name:"lineEnding",tokenize:ld};function ld(e,t){return r;function r(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ve(e,t,"linePrefix")}}const Qn={name:"thematicBreak",tokenize:od};function od(e,t,r){let n=0,a;return i;function i(o){return e.enter("thematicBreak"),u(o)}function u(o){return a=o,s(o)}function s(o){return o===a?(e.enter("thematicBreakSequence"),l(o)):n>=3&&(o===null||ue(o))?(e.exit("thematicBreak"),t(o)):r(o)}function l(o){return o===a?(e.consume(o),n++,l):(e.exit("thematicBreakSequence"),be(o)?ve(e,s,"whitespace")(o):s(o))}}const Ke={continuation:{tokenize:dd},exit:pd,name:"list",tokenize:fd},cd={partial:!0,tokenize:gd},hd={partial:!0,tokenize:md};function fd(e,t,r){const n=this,a=n.events[n.events.length-1];let i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,u=0;return s;function s(p){const T=n.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(T==="listUnordered"?!n.containerState.marker||p===n.containerState.marker:Ya(p)){if(n.containerState.type||(n.containerState.type=T,e.enter(T,{_container:!0})),T==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(Qn,r,o)(p):o(p);if(!n.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(p)}return r(p)}function l(p){return Ya(p)&&++u<10?(e.consume(p),l):(!n.interrupt||u<2)&&(n.containerState.marker?p===n.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),o(p)):r(p)}function o(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||p,e.check(p0,n.interrupt?r:f,e.attempt(cd,g,d))}function f(p){return n.containerState.initialBlankLine=!0,i++,g(p)}function d(p){return be(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),g):r(p)}function g(p){return n.containerState.size=i+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function dd(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(p0,a,i);function a(s){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,ve(e,t,"listItemIndent",n.containerState.size+1)(s)}function i(s){return n.containerState.furtherBlankLines||!be(s)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,u(s)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(hd,t,u)(s))}function u(s){return n.containerState._closeFlow=!0,n.interrupt=void 0,ve(e,e.attempt(Ke,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function md(e,t,r){const n=this;return ve(e,a,"listItemIndent",n.containerState.size+1);function a(i){const u=n.events[n.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===n.containerState.size?t(i):r(i)}}function pd(e){e.exit(this.containerState.type)}function gd(e,t,r){const n=this;return ve(e,a,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(i){const u=n.events[n.events.length-1];return!be(i)&&u&&u[1].type==="listItemPrefixWhitespace"?t(i):r(i)}}const Du={name:"setextUnderline",resolveTo:bd,tokenize:Ed};function bd(e,t){let r=e.length,n,a,i;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){n=r;break}e[r][1].type==="paragraph"&&(a=r)}else e[r][1].type==="content"&&e.splice(r,1),!i&&e[r][1].type==="definition"&&(i=r);const u={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",i?(e.splice(a,0,["enter",u,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=u,e.push(["exit",u,t]),e}function Ed(e,t,r){const n=this;let a;return i;function i(o){let f=n.events.length,d;for(;f--;)if(n.events[f][1].type!=="lineEnding"&&n.events[f][1].type!=="linePrefix"&&n.events[f][1].type!=="content"){d=n.events[f][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||d)?(e.enter("setextHeadingLine"),a=o,u(o)):r(o)}function u(o){return e.enter("setextHeadingLineSequence"),s(o)}function s(o){return o===a?(e.consume(o),s):(e.exit("setextHeadingLineSequence"),be(o)?ve(e,l,"lineSuffix")(o):l(o))}function l(o){return o===null||ue(o)?(e.exit("setextHeadingLine"),t(o)):r(o)}}const Td={tokenize:yd};function yd(e){const t=this,r=e.attempt(p0,n,e.attempt(this.parser.constructs.flowInitial,a,ve(e,e.attempt(this.parser.constructs.flow,a,e.attempt(kf,a)),"linePrefix")));return r;function n(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function a(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const xd={resolveAll:fo()},vd=ho("string"),Ad=ho("text");function ho(e){return{resolveAll:fo(e==="text"?Sd:void 0),tokenize:t};function t(r){const n=this,a=this.parser.constructs[e],i=r.attempt(a,u,s);return u;function u(f){return o(f)?i(f):s(f)}function s(f){if(f===null){r.consume(f);return}return r.enter("data"),r.consume(f),l}function l(f){return o(f)?(r.exit("data"),i(f)):(r.consume(f),l)}function o(f){if(f===null)return!0;const d=a[f];let g=-1;if(d)for(;++g<d.length;){const p=d[g];if(!p.previous||p.previous.call(n,n.previous))return!0}return!1}}}function fo(e){return t;function t(r,n){let a=-1,i;for(;++a<=r.length;)i===void 0?r[a]&&r[a][1].type==="data"&&(i=a,a++):(!r[a]||r[a][1].type!=="data")&&(a!==i+2&&(r[i][1].end=r[a-1][1].end,r.splice(i+2,a-i-2),a=i+2),i=void 0);return e?e(r,n):r}}function Sd(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const n=e[r-1][1],a=t.sliceStream(n);let i=a.length,u=-1,s=0,l;for(;i--;){const o=a[i];if(typeof o=="string"){for(u=o.length;o.charCodeAt(u-1)===32;)s++,u--;if(u)break;u=-1}else if(o===-2)l=!0,s++;else if(o!==-1){i++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(s=0),s){const o={type:r===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?u:n.start._bufferIndex+u,_index:n.start._index+i,line:n.end.line,column:n.end.column-s,offset:n.end.offset-s},end:{...n.end}};n.end={...o.start},n.start.offset===n.end.offset?Object.assign(n,o):(e.splice(r,0,["enter",o,t],["exit",o,t]),r+=2)}r++}return e}const kd={42:Ke,43:Ke,45:Ke,48:Ke,49:Ke,50:Ke,51:Ke,52:Ke,53:Ke,54:Ke,55:Ke,56:Ke,57:Ke,62:ao},wd={91:Nf},Cd={[-2]:z0,[-1]:z0,32:z0},Id={35:Pf,42:Qn,45:[Du,Qn],60:zf,61:Du,95:Qn,96:_u,126:_u},_d={38:uo,92:io},Nd={[-5]:U0,[-4]:U0,[-3]:U0,33:ad,38:uo,42:Va,60:[uf,Wf],91:ud,92:[Rf,io],93:Si,95:Va,96:Tf},Dd={null:[Va,xd]},Od={null:[42,95]},Ld={null:[]},Rd=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Od,contentInitial:wd,disable:Ld,document:kd,flow:Id,flowInitial:Cd,insideSpan:Dd,string:_d,text:Nd},Symbol.toStringTag,{value:"Module"}));function Md(e,t,r){let n={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const a={},i=[];let u=[],s=[];const l={attempt:X(V),check:X(O),consume:D,enter:R,exit:j,interrupt:X(O,{interrupt:!0})},o={code:null,containerState:{},defineSkip:v,events:[],now:T,parser:e,previous:null,sliceSerialize:g,sliceStream:p,write:d};let f=t.tokenize.call(o,l);return t.resolveAll&&i.push(t),o;function d(Z){return u=ot(u,Z),I(),u[u.length-1]!==null?[]:(re(t,0),o.events=Ai(i,o.events,o),o.events)}function g(Z,J){return Bd(p(Z),J)}function p(Z){return Pd(u,Z)}function T(){const{_bufferIndex:Z,_index:J,line:fe,column:ne,offset:Q}=n;return{_bufferIndex:Z,_index:J,line:fe,column:ne,offset:Q}}function v(Z){a[Z.line]=Z.column,M()}function I(){let Z;for(;n._index<u.length;){const J=u[n._index];if(typeof J=="string")for(Z=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===Z&&n._bufferIndex<J.length;)w(J.charCodeAt(n._bufferIndex));else w(J)}}function w(Z){f=f(Z)}function D(Z){ue(Z)?(n.line++,n.column=1,n.offset+=Z===-3?2:1,M()):Z!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===u[n._index].length&&(n._bufferIndex=-1,n._index++)),o.previous=Z}function R(Z,J){const fe=J||{};return fe.type=Z,fe.start=T(),o.events.push(["enter",fe,o]),s.push(fe),fe}function j(Z){const J=s.pop();return J.end=T(),o.events.push(["exit",J,o]),J}function V(Z,J){re(Z,J.from)}function O(Z,J){J.restore()}function X(Z,J){return fe;function fe(ne,Q,de){let ye,Fe,rt,C;return Array.isArray(ne)?Ie(ne):"tokenize"in ne?Ie([ne]):Oe(ne);function Oe(Le){return lt;function lt(mt){const nt=mt!==null&&Le[mt],pt=mt!==null&&Le.null,Dt=[...Array.isArray(nt)?nt:nt?[nt]:[],...Array.isArray(pt)?pt:pt?[pt]:[]];return Ie(Dt)(mt)}}function Ie(Le){return ye=Le,Fe=0,Le.length===0?de:_(Le[Fe])}function _(Le){return lt;function lt(mt){return C=G(),rt=Le,Le.partial||(o.currentConstruct=Le),Le.name&&o.parser.constructs.disable.null.includes(Le.name)?Xe():Le.tokenize.call(J?Object.assign(Object.create(o),J):o,l,Ve,Xe)(mt)}}function Ve(Le){return Z(rt,C),Q}function Xe(Le){return C.restore(),++Fe<ye.length?_(ye[Fe]):de}}}function re(Z,J){Z.resolveAll&&!i.includes(Z)&&i.push(Z),Z.resolve&&kt(o.events,J,o.events.length-J,Z.resolve(o.events.slice(J),o)),Z.resolveTo&&(o.events=Z.resolveTo(o.events,o))}function G(){const Z=T(),J=o.previous,fe=o.currentConstruct,ne=o.events.length,Q=Array.from(s);return{from:ne,restore:de};function de(){n=Z,o.previous=J,o.currentConstruct=fe,o.events.length=ne,s=Q,M()}}function M(){n.line in a&&n.column<2&&(n.column=a[n.line],n.offset+=a[n.line]-1)}}function Pd(e,t){const r=t.start._index,n=t.start._bufferIndex,a=t.end._index,i=t.end._bufferIndex;let u;if(r===a)u=[e[r].slice(n,i)];else{if(u=e.slice(r,a),n>-1){const s=u[0];typeof s=="string"?u[0]=s.slice(n):u.shift()}i>0&&u.push(e[a].slice(0,i))}return u}function Bd(e,t){let r=-1;const n=[];let a;for(;++r<e.length;){const i=e[r];let u;if(typeof i=="string")u=i;else switch(i){case-5:{u="\r";break}case-4:{u=`
|
|
3
3
|
`;break}case-3:{u=`\r
|
|
4
4
|
`;break}case-2:{u=t?" ":" ";break}case-1:{if(!t&&a)continue;u=" ";break}default:u=String.fromCharCode(i)}a=i===-2,n.push(u)}return n.join("")}function Fd(e){const n={constructs:Vh([Rd,...(e||{}).extensions||[]]),content:a(Jh),defined:[],document:a(ef),flow:a(Td),lazy:{},string:a(vd),text:a(Ad)};return n;function a(i){return u;function u(s){return Md(n,i,s)}}}function Hd(e){for(;!so(e););return e}const Ou=/[\0\t\n\r]/g;function zd(){let e=1,t="",r=!0,n;return a;function a(i,u,s){const l=[];let o,f,d,g,p;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(u||void 0).decode(i)),d=0,t="",r&&(i.charCodeAt(0)===65279&&d++,r=void 0);d<i.length;){if(Ou.lastIndex=d,o=Ou.exec(i),g=o&&o.index!==void 0?o.index:i.length,p=i.charCodeAt(g),!o){t=i.slice(d);break}if(p===10&&d===g&&n)l.push(-3),n=void 0;else switch(n&&(l.push(-5),n=void 0),d<g&&(l.push(i.slice(d,g)),e+=g-d),p){case 0:{l.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,l.push(-2);e++<f;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:n=!0,e=1}d=g+1}return s&&(n&&l.push(-5),t&&l.push(t),l.push(null)),l}}const Ud=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function qd(e){return e.replace(Ud,Yd)}function Yd(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const a=r.charCodeAt(1),i=a===120||a===88;return no(r.slice(i?2:1),i?16:10)}return vi(r)||e}function Kn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Lu(e.position):"start"in e||"end"in e?Lu(e):"line"in e||"column"in e?Ga(e):""}function Ga(e){return Ru(e&&e.line)+":"+Ru(e&&e.column)}function Lu(e){return Ga(e&&e.start)+"-"+Ga(e&&e.end)}function Ru(e){return e&&typeof e=="number"?e:1}const mo={}.hasOwnProperty;function Vd(e,t,r){return t&&typeof t=="object"&&(r=t,t=void 0),Gd(r)(Hd(Fd(r).document().write(zd()(e,t,!0))))}function Gd(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(Er),autolinkProtocol:G,autolinkEmail:G,atxHeading:i(Nn),blockQuote:i(pt),characterEscape:G,characterReference:G,codeFenced:i(Dt),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:i(Dt,u),codeText:i(R0,u),codeTextData:G,data:G,codeFlowValue:G,definition:i(_n),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:i(M0),hardBreakEscape:i(br),hardBreakTrailing:i(br),htmlFlow:i(Yr,u),htmlFlowData:G,htmlText:i(Yr,u),htmlTextData:G,image:i(Dn),label:u,link:i(Er),listItem:i(Tr),listItemValue:g,listOrdered:i(ar,d),listUnordered:i(ar),paragraph:i(Q1),reference:_,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:i(Nn),strong:i(K1),thematicBreak:i(Z1)},exit:{atxHeading:l(),atxHeadingSequence:V,autolink:l(),autolinkEmail:nt,autolinkProtocol:mt,blockQuote:l(),characterEscapeValue:M,characterReferenceMarkerHexadecimal:Xe,characterReferenceMarkerNumeric:Xe,characterReferenceValue:Le,characterReference:lt,codeFenced:l(I),codeFencedFence:v,codeFencedFenceInfo:p,codeFencedFenceMeta:T,codeFlowValue:M,codeIndented:l(w),codeText:l(Q),codeTextData:M,data:M,definition:l(),definitionDestinationString:j,definitionLabelString:D,definitionTitleString:R,emphasis:l(),hardBreakEscape:l(J),hardBreakTrailing:l(J),htmlFlow:l(fe),htmlFlowData:M,htmlText:l(ne),htmlTextData:M,image:l(ye),label:rt,labelText:Fe,lineEnding:Z,link:l(de),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:Ve,resourceDestinationString:C,resourceTitleString:Oe,resource:Ie,setextHeading:l(re),setextHeadingLineSequence:X,setextHeadingText:O,strong:l(),thematicBreak:l()}};po(t,(e||{}).mdastExtensions||[]);const r={};return n;function n(B){let K={type:"root",children:[]};const le={stack:[K],tokenStack:[],config:t,enter:s,exit:o,buffer:u,resume:f,data:r},me=[];let Ee=-1;for(;++Ee<B.length;)if(B[Ee][1].type==="listOrdered"||B[Ee][1].type==="listUnordered")if(B[Ee][0]==="enter")me.push(Ee);else{const gt=me.pop();Ee=a(B,gt,Ee)}for(Ee=-1;++Ee<B.length;){const gt=t[B[Ee][0]];mo.call(gt,B[Ee][1].type)&>[B[Ee][1].type].call(Object.assign({sliceSerialize:B[Ee][2].sliceSerialize},le),B[Ee][1])}if(le.tokenStack.length>0){const gt=le.tokenStack[le.tokenStack.length-1];(gt[1]||Mu).call(le,void 0,gt[0])}for(K.position={start:Gt(B.length>0?B[0][1].start:{line:1,column:1,offset:0}),end:Gt(B.length>0?B[B.length-2][1].end:{line:1,column:1,offset:0})},Ee=-1;++Ee<t.transforms.length;)K=t.transforms[Ee](K)||K;return K}function a(B,K,le){let me=K-1,Ee=-1,gt=!1,ir,Ot,Vr,Gr;for(;++me<=le;){const at=B[me];switch(at[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{at[0]==="enter"?Ee++:Ee--,Gr=void 0;break}case"lineEndingBlank":{at[0]==="enter"&&(ir&&!Gr&&!Ee&&!Vr&&(Vr=me),Gr=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Gr=void 0}if(!Ee&&at[0]==="enter"&&at[1].type==="listItemPrefix"||Ee===-1&&at[0]==="exit"&&(at[1].type==="listUnordered"||at[1].type==="listOrdered")){if(ir){let yr=me;for(Ot=void 0;yr--;){const Lt=B[yr];if(Lt[1].type==="lineEnding"||Lt[1].type==="lineEndingBlank"){if(Lt[0]==="exit")continue;Ot&&(B[Ot][1].type="lineEndingBlank",gt=!0),Lt[1].type="lineEnding",Ot=yr}else if(!(Lt[1].type==="linePrefix"||Lt[1].type==="blockQuotePrefix"||Lt[1].type==="blockQuotePrefixWhitespace"||Lt[1].type==="blockQuoteMarker"||Lt[1].type==="listItemIndent"))break}Vr&&(!Ot||Vr<Ot)&&(ir._spread=!0),ir.end=Object.assign({},Ot?B[Ot][1].start:at[1].end),B.splice(Ot||me,0,["exit",ir,at[2]]),me++,le++}if(at[1].type==="listItemPrefix"){const yr={type:"listItem",_spread:!1,start:Object.assign({},at[1].start),end:void 0};ir=yr,B.splice(me,0,["enter",yr,at[2]]),me++,le++,Vr=void 0,Gr=!0}}}return B[K][1]._spread=gt,le}function i(B,K){return le;function le(me){s.call(this,B(me),me),K&&K.call(this,me)}}function u(){this.stack.push({type:"fragment",children:[]})}function s(B,K,le){this.stack[this.stack.length-1].children.push(B),this.stack.push(B),this.tokenStack.push([K,le||void 0]),B.position={start:Gt(K.start),end:void 0}}function l(B){return K;function K(le){B&&B.call(this,le),o.call(this,le)}}function o(B,K){const le=this.stack.pop(),me=this.tokenStack.pop();if(me)me[0].type!==B.type&&(K?K.call(this,B,me[0]):(me[1]||Mu).call(this,B,me[0]));else throw new Error("Cannot close `"+B.type+"` ("+Kn({start:B.start,end:B.end})+"): it’s not open");le.position.end=Gt(B.end)}function f(){return qh(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function g(B){if(this.data.expectingFirstListItemValue){const K=this.stack[this.stack.length-2];K.start=Number.parseInt(this.sliceSerialize(B),10),this.data.expectingFirstListItemValue=void 0}}function p(){const B=this.resume(),K=this.stack[this.stack.length-1];K.lang=B}function T(){const B=this.resume(),K=this.stack[this.stack.length-1];K.meta=B}function v(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function I(){const B=this.resume(),K=this.stack[this.stack.length-1];K.value=B.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function w(){const B=this.resume(),K=this.stack[this.stack.length-1];K.value=B.replace(/(\r?\n|\r)$/g,"")}function D(B){const K=this.resume(),le=this.stack[this.stack.length-1];le.label=K,le.identifier=Cr(this.sliceSerialize(B)).toLowerCase()}function R(){const B=this.resume(),K=this.stack[this.stack.length-1];K.title=B}function j(){const B=this.resume(),K=this.stack[this.stack.length-1];K.url=B}function V(B){const K=this.stack[this.stack.length-1];if(!K.depth){const le=this.sliceSerialize(B).length;K.depth=le}}function O(){this.data.setextHeadingSlurpLineEnding=!0}function X(B){const K=this.stack[this.stack.length-1];K.depth=this.sliceSerialize(B).codePointAt(0)===61?1:2}function re(){this.data.setextHeadingSlurpLineEnding=void 0}function G(B){const le=this.stack[this.stack.length-1].children;let me=le[le.length-1];(!me||me.type!=="text")&&(me=J1(),me.position={start:Gt(B.start),end:void 0},le.push(me)),this.stack.push(me)}function M(B){const K=this.stack.pop();K.value+=this.sliceSerialize(B),K.position.end=Gt(B.end)}function Z(B){const K=this.stack[this.stack.length-1];if(this.data.atHardBreak){const le=K.children[K.children.length-1];le.position.end=Gt(B.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(K.type)&&(G.call(this,B),M.call(this,B))}function J(){this.data.atHardBreak=!0}function fe(){const B=this.resume(),K=this.stack[this.stack.length-1];K.value=B}function ne(){const B=this.resume(),K=this.stack[this.stack.length-1];K.value=B}function Q(){const B=this.resume(),K=this.stack[this.stack.length-1];K.value=B}function de(){const B=this.stack[this.stack.length-1];if(this.data.inReference){const K=this.data.referenceType||"shortcut";B.type+="Reference",B.referenceType=K,delete B.url,delete B.title}else delete B.identifier,delete B.label;this.data.referenceType=void 0}function ye(){const B=this.stack[this.stack.length-1];if(this.data.inReference){const K=this.data.referenceType||"shortcut";B.type+="Reference",B.referenceType=K,delete B.url,delete B.title}else delete B.identifier,delete B.label;this.data.referenceType=void 0}function Fe(B){const K=this.sliceSerialize(B),le=this.stack[this.stack.length-2];le.label=qd(K),le.identifier=Cr(K).toLowerCase()}function rt(){const B=this.stack[this.stack.length-1],K=this.resume(),le=this.stack[this.stack.length-1];if(this.data.inReference=!0,le.type==="link"){const me=B.children;le.children=me}else le.alt=K}function C(){const B=this.resume(),K=this.stack[this.stack.length-1];K.url=B}function Oe(){const B=this.resume(),K=this.stack[this.stack.length-1];K.title=B}function Ie(){this.data.inReference=void 0}function _(){this.data.referenceType="collapsed"}function Ve(B){const K=this.resume(),le=this.stack[this.stack.length-1];le.label=K,le.identifier=Cr(this.sliceSerialize(B)).toLowerCase(),this.data.referenceType="full"}function Xe(B){this.data.characterReferenceType=B.type}function Le(B){const K=this.sliceSerialize(B),le=this.data.characterReferenceType;let me;le?(me=no(K,le==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):me=vi(K);const Ee=this.stack[this.stack.length-1];Ee.value+=me}function lt(B){const K=this.stack.pop();K.position.end=Gt(B.end)}function mt(B){M.call(this,B);const K=this.stack[this.stack.length-1];K.url=this.sliceSerialize(B)}function nt(B){M.call(this,B);const K=this.stack[this.stack.length-1];K.url="mailto:"+this.sliceSerialize(B)}function pt(){return{type:"blockquote",children:[]}}function Dt(){return{type:"code",lang:null,meta:null,value:""}}function R0(){return{type:"inlineCode",value:""}}function _n(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function M0(){return{type:"emphasis",children:[]}}function Nn(){return{type:"heading",depth:0,children:[]}}function br(){return{type:"break"}}function Yr(){return{type:"html",value:""}}function Dn(){return{type:"image",title:null,url:"",alt:null}}function Er(){return{type:"link",title:null,url:"",children:[]}}function ar(B){return{type:"list",ordered:B.type==="listOrdered",start:null,spread:B._spread,children:[]}}function Tr(B){return{type:"listItem",spread:B._spread,checked:null,children:[]}}function Q1(){return{type:"paragraph",children:[]}}function K1(){return{type:"strong",children:[]}}function J1(){return{type:"text",value:""}}function Z1(){return{type:"thematicBreak"}}}function Gt(e){return{line:e.line,column:e.column,offset:e.offset}}function po(e,t){let r=-1;for(;++r<t.length;){const n=t[r];Array.isArray(n)?po(e,n):$d(e,n)}}function $d(e,t){let r;for(r in t)if(mo.call(t,r))switch(r){case"canContainEols":{const n=t[r];n&&e[r].push(...n);break}case"transforms":{const n=t[r];n&&e[r].push(...n);break}case"enter":case"exit":{const n=t[r];n&&Object.assign(e[r],n);break}}}function Mu(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Kn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Kn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Kn({start:t.start,end:t.end})+") is still open")}function Wd(e){const t=this;t.parser=r;function r(n){return Vd(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function jd(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function Xd(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
|