@marimo-team/frontend 0.16.1 → 0.16.2
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/dist/assets/{ConnectedDataExplorerComponent-2wVcyvDj.js → ConnectedDataExplorerComponent-B5cPvWoQ.js} +1 -1
- package/dist/assets/{ImageComparisonComponent-D2j6i0hv.js → ImageComparisonComponent-CqR26LSv.js} +1 -1
- package/dist/assets/{VegaLite-BckFaf2D.js → VegaLite-DvQDATwI.js} +1 -1
- package/dist/assets/_baseEach--KDTwKbG.js +1 -0
- package/dist/assets/_baseMap-Cu3o-eyO.js +1 -0
- package/dist/assets/{_baseUniq-BKktIGQ1.js → _baseUniq-y7ZXnMo1.js} +1 -1
- package/dist/assets/{_createAggregator-C5CVY-0t.js → _createAggregator-ZcHkHPNJ.js} +1 -1
- package/dist/assets/{agent-panel-RGLNjkYe.js → agent-panel-B91RoLct.js} +6 -6
- package/dist/assets/{any-language-editor-DjuXwGCA.js → any-language-editor-CxfHcm5h.js} +1 -1
- package/dist/assets/{architectureDiagram-W76B3OCA-Dyj4ds_R.js → architectureDiagram-W76B3OCA-BQsvK8uR.js} +1 -1
- package/dist/assets/{between-horizontal-start-Dt2aKpPf.js → between-horizontal-start-BmYToIaM.js} +1 -1
- package/dist/assets/{blockDiagram-QIGZ2CNN-o-i7DDvN.js → blockDiagram-QIGZ2CNN-r3HgCj4w.js} +1 -1
- package/dist/assets/{c4Diagram-FPNF74CW-DGHEwWrx.js → c4Diagram-FPNF74CW-BJbPNt41.js} +1 -1
- package/dist/assets/channel-DFaEx1fu.js +1 -0
- package/dist/assets/{chat-panel-9alr8FS4.js → chat-panel-IoPMv8e2.js} +3 -3
- package/dist/assets/{chunk-4BX2VUAB-BJecb-Ri.js → chunk-4BX2VUAB-Dv4MZ9Hj.js} +1 -1
- package/dist/assets/{chunk-55IACEB6-CAATkc4w.js → chunk-55IACEB6-CM4AHquB.js} +1 -1
- package/dist/assets/{chunk-FMBD7UC4-DPuNbQ-f.js → chunk-FMBD7UC4-C_Zz0ENB.js} +1 -1
- package/dist/assets/{chunk-K7UQS3LO-C8TWVLiH.js → chunk-K7UQS3LO-DYSmiXYq.js} +1 -1
- package/dist/assets/{chunk-QN33PNHL-DiZZ09q4.js → chunk-QN33PNHL-QM4OPuQP.js} +1 -1
- package/dist/assets/{chunk-QZHKN3VN-BIUM7usu.js → chunk-QZHKN3VN-CfAsGyeB.js} +1 -1
- package/dist/assets/{chunk-TVAH2DTR-vGTArPBG.js → chunk-TVAH2DTR-6j_Cpjsi.js} +1 -1
- package/dist/assets/{chunk-TZMSLE5B-D2KRqp_x.js → chunk-TZMSLE5B-BHslFJQE.js} +1 -1
- package/dist/assets/{circle-play-cjeNez0N.js → circle-play-CK3UZRYQ.js} +1 -1
- package/dist/assets/classDiagram-KNZD7YFC-BsZtvV5O.js +1 -0
- package/dist/assets/classDiagram-v2-RKCZMP56-BsZtvV5O.js +1 -0
- package/dist/assets/{clear-button-C97JtAez.js → clear-button-C4fDVSv8.js} +1 -1
- package/dist/assets/clone-YBEvPE-s.js +1 -0
- package/dist/assets/command-palette-D7hOfvf6.js +1 -0
- package/dist/assets/{common-Du9rSOwD.js → common-D-lbuUwz.js} +1 -1
- package/dist/assets/{compile-CZXqyOxa.js → compile-DVQe1Mzk.js} +1 -1
- package/dist/assets/{cose-bilkent-S5V4N54A-CqUN5Y9b.js → cose-bilkent-S5V4N54A-D-IS7WC8.js} +1 -1
- package/dist/assets/{dagre-5GWH7T2D-RJqTI9DM.js → dagre-5GWH7T2D-lYu-tEWT.js} +1 -1
- package/dist/assets/{data-grid-overlay-editor-DZN0q1LV.js → data-grid-overlay-editor-C5peOCit.js} +1 -1
- package/dist/assets/datasources-panel-D3NA20uZ.js +1 -0
- package/dist/assets/{dependency-graph-panel-CEog_O7V.js → dependency-graph-panel-BGVYOfkV.js} +1 -1
- package/dist/assets/{diagram-N5W7TBWH-D-l4zZ9d.js → diagram-N5W7TBWH-BnvIuYUp.js} +1 -1
- package/dist/assets/{diagram-QEK2KX5R-CCOmBUt-.js → diagram-QEK2KX5R-DemedRK3.js} +1 -1
- package/dist/assets/{diagram-S2PKOQOG-C_I_9jnZ.js → diagram-S2PKOQOG-iiY7AuyH.js} +1 -1
- package/dist/assets/{documentation-panel-C1BtMZ3M.js → documentation-panel-C3dSwOSQ.js} +1 -1
- package/dist/assets/{edit-page-B-oevUZ9.js → edit-page-C5TsEeSo.js} +17 -17
- package/dist/assets/{ellipsis-vertical-BEb-J8z6.js → ellipsis-vertical-CazJl8M7.js} +1 -1
- package/dist/assets/{empty-state-C99UyDE3.js → empty-state-DW308mFO.js} +1 -1
- package/dist/assets/{erDiagram-AWTI2OKA-BePOLi5M.js → erDiagram-AWTI2OKA-6wQ8Ugg0.js} +1 -1
- package/dist/assets/{error-panel-Bs34jXFh.js → error-panel-D1VnJ1yP.js} +1 -1
- package/dist/assets/{file-explorer-panel-Ck6UL861.js → file-explorer-panel-0oVd4t-D.js} +1 -1
- package/dist/assets/{flowDiagram-PVAE7QVJ-BgjFu5l7.js → flowDiagram-PVAE7QVJ-C55IUWjm.js} +1 -1
- package/dist/assets/{ganttDiagram-OWAHRB6G-YOPb3XSV.js → ganttDiagram-OWAHRB6G-DmqCM6ME.js} +1 -1
- package/dist/assets/{gitGraphDiagram-NY62KEGX-CGhqaDTy.js → gitGraphDiagram-NY62KEGX-DBvhAeM_.js} +1 -1
- package/dist/assets/{glide-data-editor-9QUH6iso.js → glide-data-editor-CHNuHidQ.js} +11 -11
- package/dist/assets/{graph-DQQFGrho.js → graph-CG6BgUWQ.js} +1 -1
- package/dist/assets/{home-page-DRKpPCrF.js → home-page-dgivXuSR.js} +3 -3
- package/dist/assets/{index-SGLNXrGP.js → index-BTGpssVX.js} +1 -1
- package/dist/assets/{index-Aeo6WiK7.js → index-BYVZlBF8.js} +1 -1
- package/dist/assets/{index-CUFv_thQ.js → index-BelfnXwL.js} +1 -1
- package/dist/assets/{index-DdnKZNxM.js → index-BneyUujp.js} +1 -1
- package/dist/assets/{index-BJNCMUmG.js → index-C02SqeRj.js} +1 -1
- package/dist/assets/{index-aE43R74q.js → index-C7dtgr9A.js} +1 -1
- package/dist/assets/{index-C2MD0vgD.js → index-CAQvMTzM.js} +1 -1
- package/dist/assets/index-CGDMlQfO.css +1 -0
- package/dist/assets/index-CelXfcd8.js +580 -0
- package/dist/assets/{index-C_tkBKNO.js → index-Csd6QrCV.js} +1 -1
- package/dist/assets/{index-BAbIIxHU.js → index-CtPksxf0.js} +1 -1
- package/dist/assets/{index-2252nrk6.js → index-Cxyk7pt-.js} +1 -1
- package/dist/assets/{index-BW3k9Gss.js → index-DAZ-9ri2.js} +1 -1
- package/dist/assets/{index-ClzeQrN7.js → index-DONRrmA2.js} +1 -1
- package/dist/assets/{index-B8jXZ12t.js → index-Db36XTG_.js} +1 -1
- package/dist/assets/{index-BprjMYH5.js → index-DdIhdEVw.js} +1 -1
- package/dist/assets/{index-CFKO7WXI.js → index-M_pBKDSe.js} +1 -1
- package/dist/assets/{index-CfaDbEdi.js → index-_luCZMLM.js} +1 -1
- package/dist/assets/{index-BjgnbONl.js → index-mkubqy9-.js} +1 -1
- package/dist/assets/{index-C1ez98sk.js → index-sbO9UaUU.js} +1 -1
- package/dist/assets/{index-G5QZppK2.js → index-z4krxQ4j.js} +1 -1
- package/dist/assets/infoDiagram-STP46IZ2-wTALjfPc.js +2 -0
- package/dist/assets/{isEmpty-D-4c7sMv.js → isEmpty-CqX_YTIf.js} +1 -1
- package/dist/assets/{journeyDiagram-BIP6EPQ6-C94u3Mv3.js → journeyDiagram-BIP6EPQ6-Y5w_Tqe_.js} +1 -1
- package/dist/assets/{kanban-definition-6OIFK2YF-BEXYFzz7.js → kanban-definition-6OIFK2YF-DbXs5Rxi.js} +1 -1
- package/dist/assets/{layout-Bz2BJ2ru.js → layout-BCNPDACj.js} +1 -1
- package/dist/assets/{linear-D8s7K76e.js → linear-uO6UVhXt.js} +1 -1
- package/dist/assets/{links-BpXlz1GG.js → links-Drv7cJgN.js} +3 -3
- package/dist/assets/{logs-panel-DC7wpmPz.js → logs-panel-BEQ1eRUp.js} +1 -1
- package/dist/assets/{markdown-renderer-DRdSWR9X.js → markdown-renderer-Dmzbb00W.js} +3 -3
- package/dist/assets/{mermaid-Y3x4hmD0.js → mermaid-qRc4MXIj.js} +1 -1
- package/dist/assets/{mermaid.core-DzthE35Y.js → mermaid.core-CvvJtCRj.js} +4 -4
- package/dist/assets/min-DYUOb1RR.js +1 -0
- package/dist/assets/{mindmap-definition-Q6HEUPPD-DktvuLe1.js → mindmap-definition-Q6HEUPPD-G5NognM-.js} +1 -1
- package/dist/assets/{number-overlay-editor-BEfwI1IT.js → number-overlay-editor-DPr5sHFu.js} +1 -1
- package/dist/assets/{outline-panel-CdsnAy2w.js → outline-panel-gxQXvVi4.js} +1 -1
- package/dist/assets/{packages-panel-DiTA-d_D.js → packages-panel-B1T0VPlg.js} +1 -1
- package/dist/assets/{pieDiagram-ADFJNKIX-DQDNQ-de.js → pieDiagram-ADFJNKIX-DK9SHkfc.js} +1 -1
- package/dist/assets/{quadrantDiagram-LMRXKWRM-0kgIXc2-.js → quadrantDiagram-LMRXKWRM-D1DdWF8C.js} +1 -1
- package/dist/assets/{react-plotly-DJqqfM7c.js → react-plotly-CTwajqCb.js} +1 -1
- package/dist/assets/{requirementDiagram-4UW4RH46-B5rb0ypd.js → requirementDiagram-4UW4RH46-DnjDAypr.js} +1 -1
- package/dist/assets/{run-page-CFmLrv1R.js → run-page-CQY9im22.js} +1 -1
- package/dist/assets/{sankeyDiagram-GR3RE2ED-Dom7IlnF.js → sankeyDiagram-GR3RE2ED-B67Va-ER.js} +1 -1
- package/dist/assets/{scratchpad-panel-CuHWpHO8.js → scratchpad-panel-DlDfcDtW.js} +1 -1
- package/dist/assets/{secrets-panel-CfHc5YD0.js → secrets-panel-BDGyuGZA.js} +1 -1
- package/dist/assets/{sequenceDiagram-C3RYC4MD-PNJWXQbw.js → sequenceDiagram-C3RYC4MD-DiWgZPtN.js} +1 -1
- package/dist/assets/{slides-component-CJgaTRZ0.js → slides-component-DhpPRtQp.js} +1 -1
- package/dist/assets/{snippets-panel-B2EC1txM.js → snippets-panel-CLkBXhJ2.js} +1 -1
- package/dist/assets/{sortBy-DZnlX29-.js → sortBy-D4OG7w4O.js} +1 -1
- package/dist/assets/{state-CWict9RU.js → state-Dz_3JyED.js} +1 -1
- package/dist/assets/{stateDiagram-KXAO66HF-BE58aJnr.js → stateDiagram-KXAO66HF-ByF2AULw.js} +1 -1
- package/dist/assets/stateDiagram-v2-UMBNRL4Z-CtBJqosP.js +1 -0
- package/dist/assets/{storage-DRaR04wR.js → storage-Dr0CC44z.js} +6 -6
- package/dist/assets/{terminal-BX3Su5q7.js → terminal-BtdissBf.js} +1 -1
- package/dist/assets/{time-hUzZfpNE.js → time-DKdOTnQg.js} +1 -1
- package/dist/assets/{timeline-definition-XQNQX7LJ-CqQP9t51.js → timeline-definition-XQNQX7LJ-DzER9bf6.js} +1 -1
- package/dist/assets/{tracing-B10Q1n-L.js → tracing-Dpx5M-u3.js} +2 -2
- package/dist/assets/{tracing-panel-Du8WCnno.js → tracing-panel-hCjBkSER.js} +2 -2
- package/dist/assets/{trash-B81GTiv6.js → trash-C6Ko-g5q.js} +1 -1
- package/dist/assets/{tree-6vW2ogkh.js → tree-BHN2gcCF.js} +6 -6
- package/dist/assets/{treemap-75Q7IDZK-CdwDwwsz.js → treemap-75Q7IDZK-DR79Mhzt.js} +1 -1
- package/dist/assets/{variable-panel-D5qgJI7k.js → variable-panel-PFBCFz36.js} +1 -1
- package/dist/assets/{vega-component-DJaJWMJM.js → vega-component-Db6-uY4C.js} +1 -1
- package/dist/assets/{xychartDiagram-6GGTOJPD-WFtXqaM9.js → xychartDiagram-6GGTOJPD-DWzBP3tZ.js} +1 -1
- package/dist/index.html +2 -2
- package/package.json +3 -3
- package/src/__mocks__/requests.ts +1 -0
- package/src/components/data-table/__tests__/columns.test.tsx +38 -0
- package/src/components/data-table/cell-hover-template/feature.ts +1 -1
- package/src/components/data-table/cell-hover-template/types.ts +1 -1
- package/src/components/data-table/columns.tsx +21 -2
- package/src/components/data-table/renderers.tsx +16 -8
- package/src/components/data-table/schemas.ts +16 -0
- package/src/components/editor/Cell.tsx +2 -0
- package/src/components/editor/errors/sql-validation-errors.tsx +34 -0
- package/src/components/editor/output/ConsoleOutput.tsx +13 -1
- package/src/components/editor/output/MarimoErrorOutput.tsx +60 -1
- package/src/core/ai/context/providers/cell-output.ts +1 -18
- package/src/core/codemirror/language/__tests__/extension.test.ts +24 -0
- package/src/core/codemirror/language/__tests__/sql-validation.test.ts +133 -0
- package/src/core/codemirror/language/languages/sql/sql-mode.ts +20 -0
- package/src/core/codemirror/language/languages/sql/sql.ts +90 -3
- package/src/core/codemirror/language/languages/sql/validation-errors.ts +79 -0
- package/src/core/codemirror/language/panel/panel.tsx +8 -2
- package/src/core/codemirror/language/panel/sql.tsx +81 -4
- package/src/core/config/feature-flag.tsx +3 -1
- package/src/core/datasets/request-registry.ts +17 -1
- package/src/core/islands/bridge.ts +1 -0
- package/src/core/islands/main.ts +1 -0
- package/src/core/kernel/messages.ts +1 -0
- package/src/core/network/requests-network.ts +7 -0
- package/src/core/network/requests-static.ts +1 -0
- package/src/core/network/requests-toasting.ts +1 -0
- package/src/core/network/types.ts +2 -0
- package/src/core/wasm/bridge.ts +5 -0
- package/src/core/websocket/useMarimoWebSocket.tsx +4 -0
- package/src/plugins/core/registerReactComponent.tsx +23 -19
- package/src/plugins/impl/DataTablePlugin.tsx +11 -4
- package/src/plugins/impl/data-frames/DataFramePlugin.tsx +17 -5
- package/src/stories/dataframe.stories.tsx +2 -0
- package/src/utils/__tests__/dom.test.ts +167 -0
- package/src/utils/dom.ts +55 -0
- package/dist/assets/_baseEach-CvTX9w0Y.js +0 -1
- package/dist/assets/_baseMap-CtlwA90f.js +0 -1
- package/dist/assets/channel-Co6iMgWq.js +0 -1
- package/dist/assets/classDiagram-KNZD7YFC-BbJ0rY3y.js +0 -1
- package/dist/assets/classDiagram-v2-RKCZMP56-BbJ0rY3y.js +0 -1
- package/dist/assets/clone-BMP0PsTa.js +0 -1
- package/dist/assets/command-palette-B93Pjcky.js +0 -1
- package/dist/assets/datasources-panel-v7H3cR0p.js +0 -1
- package/dist/assets/index-C7CoaNFb.js +0 -578
- package/dist/assets/index-DadI618h.css +0 -1
- package/dist/assets/infoDiagram-STP46IZ2-CJLOpSAf.js +0 -2
- package/dist/assets/min-BBO3-1Hg.js +0 -1
- package/dist/assets/stateDiagram-v2-UMBNRL4Z-CdThjimL.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./angular-html-BZhSV2-l.js","./html-ReiWYoHo.js","./javascript-CY0YvwoL.js","./css-l46fsARh.js","./angular-ts-DRQ-j7PL.js","./scss-CHxzYwli.js","./apl-BnBkWLuz.js","./xml-BsgRw6d1.js","./java-DtRXFtDl.js","./json-LWN7Ml79.js","./astro-CXYfh229.js","./typescript-C6YI4KwS.js","./postcss-CeUBPB2S.js","./tsx-DYwE5ssU.js","./blade-CkGRa-l8.js","./html-derivative-BEFkAAPd.js","./sql-BhJCBb_s.js","./bsl-DGicdwC0.js","./sdbl-BpucmfEo.js","./cairo-Dz8fl918.js","./python-DlV7vnVD.js","./cobol-Dt3m7Jkx.js","./coffee-DgxxYT5L.js","./cpp-BmKY377x.js","./regexp-CpyjTnFF.js","./glsl-BDbjGBhJ.js","./c-BmJt9k-y.js","./crystal-DB6V90z1.js","./shellscript-B8OHlvmy.js","./edge-Brl-y200.js","./elixir-CGzfkNtR.js","./elm-DmpuOW2E.js","./erb-BNAqOH5i.js","./ruby-DJftxM78.js","./haml-DiuhmbKg.js","./graphql-DMns_A3G.js","./jsx-g2NrEQII.js","./lua-B09NiSMa.js","./yaml-c2-Vhxho.js","./erlang-DAw79KxH.js","./markdown-DY93LJPj.js","./fortran-fixed-form-D_2otJTs.js","./fortran-free-form-Ix_0F1Zz.js","./fsharp-DmSnwM-W.js","./gdresource-BLuZCTp3.js","./gdshader-BC7WJXp9.js","./gdscript-fffAh1pn.js","./git-commit-Bptnmh-c.js","./diff-Beq1YlA8.js","./git-rebase-CqNhyBhE.js","./glimmer-js-CamsSOgS.js","./glimmer-ts-DpQMos9P.js","./hack-CXH7pT2m.js","./handlebars-PuluTGUb.js","./http-BPFbEDC3.js","./hxml-DB3_nACV.js","./haxe-D-PmAGDa.js","./jinja-CXJbPSuL.js","./jison-iRP-Iv-P.js","./julia-BabrhEml.js","./r-C1kzXVmM.js","./latex-CCwiU5tQ.js","./tex-BGsfIjRo.js","./liquid-QTP3a8yd.js","./marko-CgCapwG0.js","./less-DKKxO4Pm.js","./mdc-CVidKc4b.js","./nginx-CtwUG8yW.js","./nim-BCqJOqd2.js","./perl-Da10OPbb.js","./php-hSYFjEJr.js","./pug-DYUvS0f2.js","./qml-DiX3J200.js","./razor-7Qmv-3mF.js","./csharp-yFVQ185C.js","./rst-DU5WA_Li.js","./cmake-BYiqpiH1.js","./sas-BBCK0tAG.js","./shaderlab-DNyPh2Q6.js","./hlsl-B-PjNM4a.js","./shellsession-OATBsyRD.js","./soy-BjzVbqVk.js","./sparql-CLNNOQQI.js","./turtle-BVy4HXn4.js","./stata-G4GYNNPE.js","./svelte-Dg-n8Id4.js","./templ-C0tOEwaA.js","./go-BR7YH85S.js","./ts-tags-DxCDHihD.js","./twig-D8xgA4Ji.js","./vue-ChwqA4lT.js","./vue-html-DP_EF96N.js","./vue-vine-K4R7Z1Ei.js","./stylus-BeJftkpb.js","./xsl-DCNnPbrB.js","./mermaid.core-
|
|
2
|
-
var eA=Object.defineProperty;var tA=Object.getPrototypeOf;var nA=Reflect.get;var wd=_e=>{throw TypeError(_e)};var rA=(_e,be,xe)=>be in _e?eA(_e,be,{enumerable:!0,configurable:!0,writable:!0,value:xe}):_e[be]=xe;var v=(_e,be,xe)=>rA(_e,typeof be!="symbol"?be+"":be,xe),ia=(_e,be,xe)=>be.has(_e)||wd("Cannot "+xe);var We=(_e,be,xe)=>(ia(_e,be,"read from private field"),xe?xe.call(_e):be.get(_e)),hn=(_e,be,xe)=>be.has(_e)?wd("Cannot add the same private member more than once"):be instanceof WeakSet?be.add(_e):be.set(_e,xe),pt=(_e,be,xe,dn)=>(ia(_e,be,"write to private field"),dn?dn.call(_e,xe):be.set(_e,xe),xe),oa=(_e,be,xe)=>(ia(_e,be,"access private method"),xe);var Ld=(_e,be,xe)=>nA(tA(_e),xe,be);import{a as jn,r as K,T as iA,j as U,bn as oA,W as sA,dW as Od,ai as sa,k0 as aA,k1 as lA,cS as cA,a9 as k,j1 as uA,a7 as Rd,a8 as vd,b4 as aa,u as pA,$ as hA,bS as dA,p as mA,a_ as Pd,S as fA,by as gA,K as _A,bx as EA,bD as TA,k2 as bA,hJ as kA,__tla as AA}from"./index-C7CoaNFb.js";import{I as yA,__tla as xA}from"./storage-DRaR04wR.js";import Md from"./katex-LV4FpwlL.js";import{B as CA}from"./between-horizontal-start-Dt2aKpPf.js";let Bd,Fd,la,IA=Promise.all([(()=>{try{return AA}catch{}})(),(()=>{try{return xA}catch{}})()]).then(async()=>{var Nt,ot,jt,wt,un,zt,pn,Or,ua,qt,ta;Bd=e=>{var o;const t=jn.c(6),{attachment:n}=e;if((o=n.mediaType)!=null&&o.startsWith("image/")){let s;return t[0]!==n.filename||t[1]!==n.url?(s=U.jsx("img",{src:n.url,alt:n.filename,className:"max-h-[100px] max-w-[100px] object-contain mb-1.5"}),t[0]=n.filename,t[1]=n.url,t[2]=s):s=t[2],s}let r,i;return t[3]===Symbol.for("react.memo_cache_sentinel")?(r=U.jsx(Od,{className:"h-3 w-3 mt-0.5"}),t[3]=r):r=t[3],t[4]!==n.filename?(i=U.jsxs("div",{className:"flex flex-row gap-1 items-center text-xs",children:[r,n.filename]}),t[4]=n.filename,t[5]=i):i=t[5],i},Fd=e=>{const t=jn.c(12),{file:n,className:r,onRemove:i}=e,[o,s]=K.useState(!1);let a,l,c,u,h;return t[0]!==r?(a=iA("py-1 px-1.5 bg-muted rounded-md cursor-pointer flex flex-row gap-1 items-center text-xs",r),t[0]=r,t[1]=a):a=t[1],t[2]===Symbol.for("react.memo_cache_sentinel")?(l=()=>s(!0),c=()=>s(!1),t[2]=l,t[3]=c):(l=t[2],c=t[3]),t[4]!==n||t[5]!==o||t[6]!==i?(u=o?U.jsx(oA,{className:"h-3 w-3 mt-0.5",onClick:i}):(function(p){const m="h-3 w-3 mt-0.5";return p.type.startsWith("image/")?U.jsx(yA,{className:m}):p.type.startsWith("text/")?U.jsx(sA,{className:m}):U.jsx(Od,{className:m})})(n),t[4]=n,t[5]=o,t[6]=i,t[7]=u):u=t[7],t[8]!==n.name||t[9]!==a||t[10]!==u?(h=U.jsxs("div",{className:a,onMouseEnter:l,onMouseLeave:c,children:[u,n.name]}),t[8]=n.name,t[9]=a,t[10]=u,t[11]=h):h=t[11],h};function _e(){}function be(){}function xe(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,o=!1;for(;!o;){r===-1&&(r=n.length,o=!0);const s=n.slice(i,r).trim();!s&&o||t.push(s),i=r+1,r=n.indexOf(",",i)}return t}function dn(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Gd=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,$d=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Vd={};function da(e,t){return(Vd.jsx?$d:Gd).test(e)}const jd=/[ \t\n\f\r]/g;function Pr(e){return typeof e=="object"?e.type==="text"&&ma(e.value):ma(e)}function ma(e){return e.replace(jd,"")===""}let zn=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};function fa(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new zn(n,r,t)}function qn(e){return e.toLowerCase()}zn.prototype.normal={},zn.prototype.property={},zn.prototype.space=void 0;let Ye=class{constructor(e,t){this.attribute=t,this.property=e}};Ye.prototype.attribute="",Ye.prototype.booleanish=!1,Ye.prototype.boolean=!1,Ye.prototype.commaOrSpaceSeparated=!1,Ye.prototype.commaSeparated=!1,Ye.prototype.defined=!1,Ye.prototype.mustUseProperty=!1,Ye.prototype.number=!1,Ye.prototype.overloadedBoolean=!1,Ye.prototype.property="",Ye.prototype.spaceSeparated=!1,Ye.prototype.space=void 0;let zd=0;const oe=Yt(),Se=Yt(),Qi=Yt(),V=Yt(),Ee=Yt(),mn=Yt(),Xe=Yt();function Yt(){return 2**++zd}const Xi=Object.freeze(Object.defineProperty({__proto__:null,boolean:oe,booleanish:Se,commaOrSpaceSeparated:Xe,commaSeparated:mn,number:V,overloadedBoolean:Qi,spaceSeparated:Ee},Symbol.toStringTag,{value:"Module"})),Ki=Object.keys(Xi);let Zi=class extends Ye{constructor(e,t,n,r){let i=-1;if(super(e,t),ga(this,"space",r),typeof n=="number")for(;++i<Ki.length;){const o=Ki[i];ga(this,Ki[i],(n&Xi[o])===Xi[o])}}};function ga(e,t,n){n&&(e[t]=n)}function fn(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new Zi(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[qn(r)]=r,n[qn(o.attribute)]=r}return new zn(t,n,e.space)}Zi.prototype.defined=!0;const _a=fn({properties:{ariaActiveDescendant:null,ariaAtomic:Se,ariaAutoComplete:null,ariaBusy:Se,ariaChecked:Se,ariaColCount:V,ariaColIndex:V,ariaColSpan:V,ariaControls:Ee,ariaCurrent:null,ariaDescribedBy:Ee,ariaDetails:null,ariaDisabled:Se,ariaDropEffect:Ee,ariaErrorMessage:null,ariaExpanded:Se,ariaFlowTo:Ee,ariaGrabbed:Se,ariaHasPopup:null,ariaHidden:Se,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ee,ariaLevel:V,ariaLive:null,ariaModal:Se,ariaMultiLine:Se,ariaMultiSelectable:Se,ariaOrientation:null,ariaOwns:Ee,ariaPlaceholder:null,ariaPosInSet:V,ariaPressed:Se,ariaReadOnly:Se,ariaRelevant:null,ariaRequired:Se,ariaRoleDescription:Ee,ariaRowCount:V,ariaRowIndex:V,ariaRowSpan:V,ariaSelected:Se,ariaSetSize:V,ariaSort:null,ariaValueMax:V,ariaValueMin:V,ariaValueNow:V,ariaValueText:null,role:null},transform:(e,t)=>t==="role"?t:"aria-"+t.slice(4).toLowerCase()});function Ea(e,t){return t in e?e[t]:t}function Ta(e,t){return Ea(e,t.toLowerCase())}const qd=fn({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:mn,acceptCharset:Ee,accessKey:Ee,action:null,allow:null,allowFullScreen:oe,allowPaymentRequest:oe,allowUserMedia:oe,alt:null,as:null,async:oe,autoCapitalize:null,autoComplete:Ee,autoFocus:oe,autoPlay:oe,blocking:Ee,capture:null,charSet:null,checked:oe,cite:null,className:Ee,cols:V,colSpan:null,content:null,contentEditable:Se,controls:oe,controlsList:Ee,coords:V|mn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:oe,defer:oe,dir:null,dirName:null,disabled:oe,download:Qi,draggable:Se,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:oe,formTarget:null,headers:Ee,height:V,hidden:Qi,high:V,href:null,hrefLang:null,htmlFor:Ee,httpEquiv:Ee,id:null,imageSizes:null,imageSrcSet:null,inert:oe,inputMode:null,integrity:null,is:null,isMap:oe,itemId:null,itemProp:Ee,itemRef:Ee,itemScope:oe,itemType:Ee,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:oe,low:V,manifest:null,max:null,maxLength:V,media:null,method:null,min:null,minLength:V,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:V,pattern:null,ping:Ee,placeholder:null,playsInline:oe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:oe,referrerPolicy:null,rel:Ee,required:oe,reversed:oe,rows:V,rowSpan:V,sandbox:Ee,scope:null,scoped:oe,seamless:oe,selected:oe,shadowRootClonable:oe,shadowRootDelegatesFocus:oe,shadowRootMode:null,shape:null,size:V,sizes:null,slot:null,span:V,spellCheck:Se,src:null,srcDoc:null,srcLang:null,srcSet:null,start:V,step:null,style:null,tabIndex:V,target:null,title:null,translate:null,type:null,typeMustMatch:oe,useMap:null,value:Se,width:V,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ee,axis:null,background:null,bgColor:null,border:V,borderColor:null,bottomMargin:V,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:V,leftMargin:V,link:null,longDesc:null,lowSrc:null,marginHeight:V,marginWidth:V,noResize:oe,noHref:oe,noShade:oe,noWrap:oe,object:null,profile:null,prompt:null,rev:null,rightMargin:V,rules:null,scheme:null,scrolling:Se,standby:null,summary:null,text:null,topMargin:V,valueType:null,version:null,vAlign:null,vLink:null,vSpace:V,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:oe,disableRemotePlayback:oe,prefix:null,property:null,results:V,security:null,unselectable:null},space:"html",transform:Ta}),Wd=fn({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:Xe,accentHeight:V,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:V,amplitude:V,arabicForm:null,ascent:V,attributeName:null,attributeType:null,azimuth:V,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:V,by:null,calcMode:null,capHeight:V,className:Ee,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:V,diffuseConstant:V,direction:null,display:null,dur:null,divisor:V,dominantBaseline:null,download:oe,dx:null,dy:null,edgeMode:null,editable:null,elevation:V,enableBackground:null,end:null,event:null,exponent:V,externalResourcesRequired:null,fill:null,fillOpacity:V,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:mn,g2:mn,glyphName:mn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:V,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:V,horizOriginX:V,horizOriginY:V,id:null,ideographic:V,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:V,k:V,k1:V,k2:V,k3:V,k4:V,kernelMatrix:Xe,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:V,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:V,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:V,overlineThickness:V,paintOrder:null,panose1:null,path:null,pathLength:V,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ee,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:V,pointsAtY:V,pointsAtZ:V,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Xe,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Xe,rev:Xe,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Xe,requiredFeatures:Xe,requiredFonts:Xe,requiredFormats:Xe,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:V,specularExponent:V,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:V,strikethroughThickness:V,string:null,stroke:null,strokeDashArray:Xe,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:V,strokeOpacity:V,strokeWidth:null,style:null,surfaceScale:V,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Xe,tabIndex:V,tableValues:null,target:null,targetX:V,targetY:V,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Xe,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:V,underlineThickness:V,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:V,values:null,vAlphabetic:V,vMathematical:V,vectorEffect:null,vHanging:V,vIdeographic:V,version:null,vertAdvY:V,vertOriginX:V,vertOriginY:V,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:V,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Ea}),ba=fn({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),ka=fn({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Ta}),Aa=fn({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),Yd={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"},Qd=/[A-Z]/g,ya=/-[a-z]/g,Xd=/^data[-\w.:]+$/i;function Mr(e,t){const n=qn(t);let r=t,i=Ye;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Xd.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(ya,Zd);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!ya.test(o)){let s=o.replace(Qd,Kd);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=Zi}return new i(r,t)}function Kd(e){return"-"+e.toLowerCase()}function Zd(e){return e.charAt(1).toUpperCase()}const Wn=fa([_a,qd,ba,ka,Aa],"html"),Rt=fa([_a,Wd,ba,ka,Aa],"svg");function xa(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Ji(e){return e.join(" ").trim()}const Jd=sa(aA()),Br=Ca("end"),ht=Ca("start");function Ca(e){return function(t){const n=t&&t.position&&t.position[e]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function Yn(e){return e&&typeof e=="object"?"position"in e||"type"in e?Ia(e.position):"start"in e||"end"in e?Ia(e):"line"in e||"column"in e?eo(e):"":""}function eo(e){return Sa(e&&e.line)+":"+Sa(e&&e.column)}function Ia(e){return eo(e&&e.start)+"-"+eo(e&&e.end)}function Sa(e){return e&&typeof e=="number"?e:1}class He extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},s=!1;if(n&&(o="line"in n&&"column"in n||"start"in n&&"end"in n?{place:n}:"type"in n?{ancestors:[n],place:n.position}:{...n}),typeof t=="string"?i=t:!o.cause&&t&&(s=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?o.ruleId=r:(o.source=r.slice(0,l),o.ruleId=r.slice(l+1))}if(!o.place&&o.ancestors&&o.ancestors){const l=o.ancestors[o.ancestors.length-1];l&&(o.place=l.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=a?a.line:void 0,this.name=Yn(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=s&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}He.prototype.file="",He.prototype.name="",He.prototype.reason="",He.prototype.message="",He.prototype.stack="",He.prototype.column=void 0,He.prototype.line=void 0,He.prototype.ancestors=void 0,He.prototype.cause=void 0,He.prototype.fatal=void 0,He.prototype.place=void 0,He.prototype.ruleId=void 0,He.prototype.source=void 0;const to={}.hasOwnProperty,em=new Map,tm=/[A-Z]/g,nm=new Set(["table","tbody","thead","tfoot","tr"]),rm=new Set(["td","th"]),Da="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function im(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=(function(s,a){return l;function l(c,u,h,p){const m=Array.isArray(h.children),f=ht(c);return a(u,h,p,m,{columnNumber:f?f.column-1:void 0,fileName:s,lineNumber:f?f.line:void 0},void 0)}})(n,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");r=(function(s,a,l){return c;function c(u,h,p,m){const f=Array.isArray(p.children)?l:a;return m?f(h,p,m):f(h,p)}})(0,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Rt:Wn,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=Na(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function Na(e,t,n){return t.type==="element"?(function(r,i,o){const s=r.schema;let a=s;i.tagName.toLowerCase()==="svg"&&s.space==="html"&&(a=Rt,r.schema=a),r.ancestors.push(i);const l=La(r,i.tagName,!1),c=(function(h,p){const m={};let f,T;for(T in p.properties)if(T!=="children"&&to.call(p.properties,T)){const g=om(h,T,p.properties[T]);if(g){const[_,x]=g;h.tableCellAlignToStyle&&_==="align"&&typeof x=="string"&&rm.has(p.tagName)?f=x:m[_]=x}}return f&&((m.style||(m.style={}))[h.stylePropertyNameCase==="css"?"text-align":"textAlign"]=f),m})(r,i);let u=ro(r,i);return nm.has(i.tagName)&&(u=u.filter(function(h){return typeof h!="string"||!Pr(h)})),wa(r,c,l,i),no(c,u),r.ancestors.pop(),r.schema=s,r.create(i,l,c,o)})(e,t,n):t.type==="mdxFlowExpression"||t.type==="mdxTextExpression"?(function(r,i){if(i.data&&i.data.estree&&r.evaluater){const o=i.data.estree.body[0];return o.type,r.evaluater.evaluateExpression(o.expression)}Qn(r,i.position)})(e,t):t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement"?(function(r,i,o){const s=r.schema;let a=s;i.name==="svg"&&s.space==="html"&&(a=Rt,r.schema=a),r.ancestors.push(i);const l=i.name===null?r.Fragment:La(r,i.name,!0),c=(function(h,p){const m={};for(const f of p.attributes)if(f.type==="mdxJsxExpressionAttribute")if(f.data&&f.data.estree&&h.evaluater){const T=f.data.estree.body[0];T.type;const g=T.expression;g.type;const _=g.properties[0];_.type,Object.assign(m,h.evaluater.evaluateExpression(_.argument))}else Qn(h,p.position);else{const T=f.name;let g;if(f.value&&typeof f.value=="object")if(f.value.data&&f.value.data.estree&&h.evaluater){const _=f.value.data.estree.body[0];_.type,g=h.evaluater.evaluateExpression(_.expression)}else Qn(h,p.position);else g=f.value===null||f.value;m[T]=g}return m})(r,i),u=ro(r,i);return wa(r,c,l,i),no(c,u),r.ancestors.pop(),r.schema=s,r.create(i,l,c,o)})(e,t,n):t.type==="mdxjsEsm"?(function(r,i){if(i.data&&i.data.estree&&r.evaluater)return r.evaluater.evaluateProgram(i.data.estree);Qn(r,i.position)})(e,t):t.type==="root"?(function(r,i,o){const s={};return no(s,ro(r,i)),r.create(i,r.Fragment,s,o)})(e,t,n):t.type==="text"?(function(r,i){return i.value})(0,t):void 0}function wa(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function no(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function ro(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:em;for(;++r<t.children.length;){const o=t.children[r];let s;if(e.passKeys){const l=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(l){const c=i.get(l)||0;s=l+"-"+c,i.set(l,c+1)}}const a=Na(e,o,s);a!==void 0&&n.push(a)}return n}function om(e,t,n){const r=Mr(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?dn(n):Ji(n)),r.property==="style"){let i=typeof n=="object"?n:(function(o,s){try{return Jd(s,{reactCompat:!0})}catch(a){if(o.ignoreInvalidStyle)return{};const l=a,c=new He("Cannot parse `style` attribute",{ancestors:o.ancestors,cause:l,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw c.file=o.filePath||void 0,c.url=Da+"#cannot-parse-style-attribute",c}})(e,String(n));return e.stylePropertyNameCase==="css"&&(i=(function(o){const s={};let a;for(a in o)to.call(o,a)&&(s[sm(a)]=o[a]);return s})(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Yd[r.property]||r.property:r.attribute,n]}}function La(e,t,n){let r;if(n)if(t.includes(".")){const i=t.split(".");let o,s=-1;for(;++s<i.length;){const a=da(i[s])?{type:"Identifier",name:i[s]}:{type:"Literal",value:i[s]};o=o?{type:"MemberExpression",object:o,property:a,computed:!!(s&&a.type==="Literal"),optional:!1}:a}r=o}else r=da(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return to.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Qn(e)}function Qn(e,t){const n=new He("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Da+"#cannot-handle-mdx-estrees-without-createevaluater",n}function sm(e){let t=e.replace(tm,am);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function am(e){return"-"+e.toLowerCase()}const io={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"]},Fr={};function oo(e,t){return Oa(e,typeof Fr.includeImageAlt!="boolean"||Fr.includeImageAlt,typeof Fr.includeHtml!="boolean"||Fr.includeHtml)}function Oa(e,t,n){if((function(r){return!!(r&&typeof r=="object")})(e)){if("value"in e)return e.type!=="html"||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Ra(e.children,t,n)}return Array.isArray(e)?Ra(e,t,n):""}function Ra(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Oa(e[i],t,n);return r.join("")}const va=document.createElement("i");function so(e){const t="&"+e+";";va.innerHTML=t;const n=va.textContent;return(n.charCodeAt(n.length-1)!==59||e==="semi")&&n!==t&&n}function Ke(e,t,n,r){const i=e.length;let o,s=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);s<r.length;)o=r.slice(s,s+1e4),o.unshift(t,0),e.splice(...o),s+=1e4,t+=1e4}function et(e,t){return e.length>0?(Ke(e,e.length,0,t),e):t}const Pa={}.hasOwnProperty;function Ma(e){const t={};let n=-1;for(;++n<e.length;)lm(t,e[n]);return t}function lm(e,t){let n;for(n in t){const r=(Pa.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let o;if(i)for(o in i){Pa.call(r,o)||(r[o]=[]);const s=i[o];cm(r[o],Array.isArray(s)?s:s?[s]:[])}}}function cm(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Ke(e,0,0,r)}function Ba(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||(65535&n)==65534||n>1114111?"\uFFFD":String.fromCodePoint(n)}function at(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ze=vt(/[A-Za-z]/),Ge=vt(/[\dA-Za-z]/),um=vt(/[#-'*+\--9=?A-Z^-~]/);function Ur(e){return e!==null&&(e<32||e===127)}const ao=vt(/\d/),pm=vt(/[\dA-Fa-f]/),hm=vt(/[!-/:-@[-`{-~]/);function ee(e){return e!==null&&e<-2}function me(e){return e!==null&&(e<0||e===32)}function ce(e){return e===-2||e===-1||e===32}const Hr=vt(new RegExp("\\p{P}|\\p{S}","u")),Qt=vt(/\s/);function vt(e){return function(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function gn(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let s="";if(o===37&&Ge(e.charCodeAt(n+1))&&Ge(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(s=String.fromCharCode(o));else if(o>55295&&o<57344){const a=e.charCodeAt(n+1);o<56320&&a>56319&&a<57344?(s=String.fromCharCode(o,a),i=1):s="\uFFFD"}else s=String.fromCharCode(o);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function ae(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(a){return ce(a)?(e.enter(n),s(a)):t(a)};function s(a){return ce(a)&&o++<i?(e.consume(a),s):(e.exit(n),t(a))}}const dm={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,function(o){return o===null?void e.consume(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),ae(e,t,"linePrefix"))},function(o){return e.enter("paragraph"),r(o)});let n;return t;function r(o){const s=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=s),n=s,i(o)}function i(o){return o===null?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(o)):ee(o)?(e.consume(o),e.exit("chunkText"),r):(e.consume(o),i)}}},mm={tokenize:function(e){const t=this,n=[];let r,i,o,s=0;return a;function a(E){if(s<n.length){const y=n[s];return t.containerState=y[1],e.attempt(y[0].continuation,l,c)(E)}return c(E)}function l(E){if(s++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&x();const y=t.events.length;let w,N=y;for(;N--;)if(t.events[N][0]==="exit"&&t.events[N][1].type==="chunkFlow"){w=t.events[N][1].end;break}_(s);let O=y;for(;O<t.events.length;)t.events[O][1].end={...w},O++;return Ke(t.events,N+1,0,t.events.slice(y)),t.events.length=O,c(E)}return a(E)}function c(E){if(s===n.length){if(!r)return p(E);if(r.currentConstruct&&r.currentConstruct.concrete)return f(E);t.interrupt=!!(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Fa,u,h)(E)}function u(E){return r&&x(),_(s),p(E)}function h(E){return t.parser.lazy[t.now().line]=s!==n.length,o=t.now().offset,f(E)}function p(E){return t.containerState={},e.attempt(Fa,m,f)(E)}function m(E){return s++,n.push([t.currentConstruct,t.containerState]),p(E)}function f(E){return E===null?(r&&x(),_(0),void e.consume(E)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:i}),T(E))}function T(E){return E===null?(g(e.exit("chunkFlow"),!0),_(0),void e.consume(E)):ee(E)?(e.consume(E),g(e.exit("chunkFlow")),s=0,t.interrupt=void 0,a):(e.consume(E),T)}function g(E,y){const w=t.sliceStream(E);if(y&&w.push(null),E.previous=i,i&&(i.next=E),i=E,r.defineSkip(E.start),r.write(w),t.parser.lazy[E.start.line]){let N=r.events.length;for(;N--;)if(r.events[N][1].start.offset<o&&(!r.events[N][1].end||r.events[N][1].end.offset>o))return;const O=t.events.length;let S,M,B=O;for(;B--;)if(t.events[B][0]==="exit"&&t.events[B][1].type==="chunkFlow"){if(S){M=t.events[B][1].end;break}S=!0}for(_(s),N=O;N<t.events.length;)t.events[N][1].end={...M},N++;Ke(t.events,B+1,0,t.events.slice(O)),t.events.length=N}}function _(E){let y=n.length;for(;y-- >E;){const w=n[y];t.containerState=w[1],w[0].exit.call(t,e)}n.length=E}function x(){r.write([null]),i=void 0,r=void 0,t.containerState._closeFlow=void 0}}},Fa={tokenize:function(e,t,n){return ae(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function _n(e){return e===null||me(e)||Qt(e)?1:Hr(e)?2:void 0}function Gr(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const lo={name:"attention",resolveAll:function(e,t){let n,r,i,o,s,a,l,c,u=-1;for(;++u<e.length;)if(e[u][0]==="enter"&&e[u][1].type==="attentionSequence"&&e[u][1]._close){for(n=u;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[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;a=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const h={...e[n][1].end},p={...e[u][1].start};Ua(h,-a),Ua(p,a),o={type:a>1?"strongSequence":"emphasisSequence",start:h,end:{...e[n][1].end}},s={type:a>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:p},i={type:a>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:a>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[n][1].end={...o.start},e[u][1].start={...s.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=et(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=et(l,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),l=et(l,Gr(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=et(l,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=et(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,Ke(e,n-1,u-n+3,l),u=n+l.length-c-2;break}}for(u=-1;++u<e.length;)e[u][1].type==="attentionSequence"&&(e[u][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=_n(r);let o;return function(a){return o=a,e.enter("attentionSequence"),s(a)};function s(a){if(a===o)return e.consume(a),s;const l=e.exit("attentionSequence"),c=_n(a),u=!c||c===2&&i||n.includes(a),h=!i||i===2&&c||n.includes(r);return l._open=!!(o===42?u:u&&(i||!h)),l._close=!!(o===42?h:h&&(c||!u)),t(a)}}};function Ua(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const fm={name:"autolink",tokenize:function(e,t,n){let r=0;return function(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(p){return ze(p)?(e.consume(p),o):p===64?n(p):l(p)}function o(p){return p===43||p===45||p===46||Ge(p)?(r=1,s(p)):l(p)}function s(p){return p===58?(e.consume(p),r=0,a):(p===43||p===45||p===46||Ge(p))&&r++<32?(e.consume(p),s):(r=0,l(p))}function a(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||Ur(p)?n(p):(e.consume(p),a)}function l(p){return p===64?(e.consume(p),c):um(p)?(e.consume(p),l):n(p)}function c(p){return Ge(p)?u(p):n(p)}function u(p){return p===46?(e.consume(p),r=0,c):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):h(p)}function h(p){if((p===45||Ge(p))&&r++<63){const m=p===45?h:u;return e.consume(p),m}return n(p)}}},Xn={partial:!0,tokenize:function(e,t,n){return function(i){return ce(i)?ae(e,r,"linePrefix")(i):r(i)};function r(i){return i===null||ee(i)?t(i):n(i)}}},Ha={continuation:{tokenize:function(e,t,n){const r=this;return function(o){return ce(o)?ae(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):i(o)};function i(o){return e.attempt(Ha,t,n)(o)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(o){if(o===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),i}return n(o)};function i(o){return ce(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}},Ga={name:"characterEscape",tokenize:function(e,t,n){return function(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),r};function r(i){return hm(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}},$a={name:"characterReference",tokenize:function(e,t,n){const r=this;let i,o,s=0;return function(u){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(u),e.exit("characterReferenceMarker"),a};function a(u){return u===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(u),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),i=31,o=Ge,c(u))}function l(u){return u===88||u===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(u),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=pm,c):(e.enter("characterReferenceValue"),i=7,o=ao,c(u))}function c(u){if(u===59&&s){const h=e.exit("characterReferenceValue");return o!==Ge||so(r.sliceSerialize(h))?(e.enter("characterReferenceMarker"),e.consume(u),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(u)}return o(u)&&s++<i?(e.consume(u),c):n(u)}}},Va={partial:!0,tokenize:function(e,t,n){const r=this;return function(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i)};function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}},ja={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,i={partial:!0,tokenize:function(E,y,w){let N=0;return O;function O(R){return E.enter("lineEnding"),E.consume(R),E.exit("lineEnding"),S}function S(R){return E.enter("codeFencedFence"),ce(R)?ae(E,M,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):M(R)}function M(R){return R===o?(E.enter("codeFencedFenceSequence"),B(R)):w(R)}function B(R){return R===o?(N++,E.consume(R),B):N>=a?(E.exit("codeFencedFenceSequence"),ce(R)?ae(E,G,"whitespace")(R):G(R)):w(R)}function G(R){return R===null||ee(R)?(E.exit("codeFencedFence"),y(R)):w(R)}}};let o,s=0,a=0;return function(E){return(function(y){const w=r.events[r.events.length-1];return s=w&&w[1].type==="linePrefix"?w[2].sliceSerialize(w[1],!0).length:0,o=y,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(y)})(E)};function l(E){return E===o?(a++,e.consume(E),l):a<3?n(E):(e.exit("codeFencedFenceSequence"),ce(E)?ae(e,c,"whitespace")(E):c(E))}function c(E){return E===null||ee(E)?(e.exit("codeFencedFence"),r.interrupt?t(E):e.check(Va,m,x)(E)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(E))}function u(E){return E===null||ee(E)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(E)):ce(E)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ae(e,h,"whitespace")(E)):E===96&&E===o?n(E):(e.consume(E),u)}function h(E){return E===null||ee(E)?c(E):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(E))}function p(E){return E===null||ee(E)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(E)):E===96&&E===o?n(E):(e.consume(E),p)}function m(E){return e.attempt(i,x,f)(E)}function f(E){return e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),T}function T(E){return s>0&&ce(E)?ae(e,g,"linePrefix",s+1)(E):g(E)}function g(E){return E===null||ee(E)?e.check(Va,m,x)(E):(e.enter("codeFlowValue"),_(E))}function _(E){return E===null||ee(E)?(e.exit("codeFlowValue"),g(E)):(e.consume(E),_)}function x(E){return e.exit("codeFenced"),t(E)}}},co={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(l){return e.enter("codeIndented"),ae(e,i,"linePrefix",5)(l)};function i(l){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(l):n(l)}function o(l){return l===null?a(l):ee(l)?e.attempt(gm,o,a)(l):(e.enter("codeFlowValue"),s(l))}function s(l){return l===null||ee(l)?(e.exit("codeFlowValue"),o(l)):(e.consume(l),s)}function a(l){return e.exit("codeIndented"),t(l)}}},gm={partial:!0,tokenize:function(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):ee(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):ae(e,o,"linePrefix",5)(s)}function o(s){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(s):ee(s)?i(s):n(s)}}},_m={name:"codeText",previous:function(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"},resolve:function(e){let t,n,r=e.length-4,i=3;if(!(e[i][1].type!=="lineEnding"&&e[i][1].type!=="space"||e[r][1].type!=="lineEnding"&&e[r][1].type!=="space")){for(t=i;++t<r;)if(e[t][1].type==="codeTextData"){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(t=i-1,r++;++t<=r;)n===void 0?t!==r&&e[t][1].type!=="lineEnding"&&(n=t):t!==r&&e[t][1].type!=="lineEnding"||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,i,o=0;return function(u){return e.enter("codeText"),e.enter("codeTextSequence"),s(u)};function s(u){return u===96?(e.consume(u),o++,s):(e.exit("codeTextSequence"),a(u))}function a(u){return u===null?n(u):u===32?(e.enter("space"),e.consume(u),e.exit("space"),a):u===96?(i=e.enter("codeTextSequence"),r=0,c(u)):ee(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),a):(e.enter("codeTextData"),l(u))}function l(u){return u===null||u===32||u===96||ee(u)?(e.exit("codeTextData"),a(u)):(e.consume(u),l)}function c(u){return u===96?(e.consume(u),r++,c):r===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(u)):(i.type="codeTextData",l(u))}}};class Em{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,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Kn(this.left,r),o.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),Kn(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Kn(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 n=this.left.splice(t,Number.POSITIVE_INFINITY);Kn(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Kn(this.left,n.reverse())}}}function Kn(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function za(e){const t={};let n,r,i,o,s,a,l,c=-1;const u=new Em(e);for(;++c<u.length;){for(;c in t;)c=t[c];if(n=u.get(c),c&&n[1].type==="chunkFlow"&&u.get(c-1)[1].type==="listItemPrefix"&&(a=n[1]._tokenizer.events,i=0,i<a.length&&a[i][1].type==="lineEndingBlank"&&(i+=2),i<a.length&&a[i][1].type==="content"))for(;++i<a.length&&a[i][1].type!=="content";)a[i][1].type==="chunkText"&&(a[i][1]._isInFirstContentOfListItem=!0,i++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,Tm(u,c)),c=t[c],l=!0);else if(n[1]._container){for(i=c,r=void 0;i--;)if(o=u.get(i),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(r&&(u.get(r)[1].type="lineEndingBlank"),o[1].type="lineEnding",r=i);else if(o[1].type!=="linePrefix"&&o[1].type!=="listItemIndent")break;r&&(n[1].end={...u.get(r)[1].start},s=u.slice(r,c),s.unshift(n),u.splice(r,c-r+1,s))}}return Ke(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!l}function Tm(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const a=s.events,l=[],c={};let u,h,p=-1,m=n,f=0,T=0;const g=[T];for(;m;){for(;e.get(++i)[1]!==m;);o.push(i),m._tokenizer||(u=r.sliceStream(m),m.next||u.push(null),h&&s.defineSkip(m.start),m._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(u),m._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),h=m,m=m.next}for(m=n;++p<a.length;)a[p][0]==="exit"&&a[p-1][0]==="enter"&&a[p][1].type===a[p-1][1].type&&a[p][1].start.line!==a[p][1].end.line&&(T=p+1,g.push(T),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(s.events=[],m?(m._tokenizer=void 0,m.previous=void 0):g.pop(),p=g.length;p--;){const _=a.slice(g[p],g[p+1]),x=o.pop();l.push([x,x+_.length-1]),e.splice(x,2,_)}for(l.reverse(),p=-1;++p<l.length;)c[f+l[p][0]]=f+l[p][1],f+=l[p][1]-l[p][0]-1;return c}const bm={resolve:function(e){return za(e),e},tokenize:function(e,t){let n;return function(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(s)};function r(s){return s===null?i(s):ee(s)?e.check(km,o,i)(s):(e.consume(s),r)}function i(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function o(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},km={partial:!0,tokenize:function(e,t,n){const r=this;return function(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),ae(e,i,"linePrefix")};function i(o){if(o===null||ee(o))return n(o);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}};function qa(e,t,n,r,i,o,s,a,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(g){return g===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(g),e.exit(o),h):g===null||g===32||g===41||Ur(g)?n(g):(e.enter(r),e.enter(s),e.enter(a),e.enter("chunkString",{contentType:"string"}),f(g))};function h(g){return g===62?(e.enter(o),e.consume(g),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(g))}function p(g){return g===62?(e.exit("chunkString"),e.exit(a),h(g)):g===null||g===60||ee(g)?n(g):(e.consume(g),g===92?m:p)}function m(g){return g===60||g===62||g===92?(e.consume(g),p):p(g)}function f(g){return u||g!==null&&g!==41&&!me(g)?u<c&&g===40?(e.consume(g),u++,f):g===41?(e.consume(g),u--,f):g===null||g===32||g===40||Ur(g)?n(g):(e.consume(g),g===92?T:f):(e.exit("chunkString"),e.exit(a),e.exit(s),e.exit(r),t(g))}function T(g){return g===40||g===41||g===92?(e.consume(g),f):f(g)}}function Wa(e,t,n,r,i,o){const s=this;let a,l=0;return function(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(o),c};function c(p){return l>999||p===null||p===91||p===93&&!a||p===94&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs?n(p):p===93?(e.exit(o),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):ee(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(p))}function u(p){return p===null||p===91||p===93||ee(p)||l++>999?(e.exit("chunkString"),c(p)):(e.consume(p),a||(a=!ce(p)),p===92?h:u)}function h(p){return p===91||p===92||p===93?(e.consume(p),l++,u):u(p)}}function Ya(e,t,n,r,i,o){let s;return function(h){return h===34||h===39||h===40?(e.enter(r),e.enter(i),e.consume(h),e.exit(i),s=h===40?41:h,a):n(h)};function a(h){return h===s?(e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):(e.enter(o),l(h))}function l(h){return h===s?(e.exit(o),a(s)):h===null?n(h):ee(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),ae(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===s||h===null||ee(h)?(e.exit("chunkString"),l(h)):(e.consume(h),h===92?u:c)}function u(h){return h===s||h===92?(e.consume(h),c):c(h)}}function Zn(e,t){let n;return function r(i){return ee(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):ce(i)?ae(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const Am={name:"definition",tokenize:function(e,t,n){const r=this;let i;return function(h){return e.enter("definition"),(function(p){return Wa.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)})(h)};function o(h){return i=at(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),s):n(h)}function s(h){return me(h)?Zn(e,a)(h):a(h)}function a(h){return qa(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function l(h){return e.attempt(ym,c,c)(h)}function c(h){return ce(h)?ae(e,u,"whitespace")(h):u(h)}function u(h){return h===null||ee(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}},ym={partial:!0,tokenize:function(e,t,n){return function(s){return me(s)?Zn(e,r)(s):n(s)};function r(s){return Ya(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function i(s){return ce(s)?ae(e,o,"whitespace")(s):o(s)}function o(s){return s===null||ee(s)?t(s):n(s)}}},xm={name:"hardBreakEscape",tokenize:function(e,t,n){return function(i){return e.enter("hardBreakEscape"),e.consume(i),r};function r(i){return ee(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}},Cm={name:"headingAtx",resolve:function(e,t){let n,r,i=e.length-2,o=3;return e[o][1].type==="whitespace"&&(o+=2),i-2>o&&e[i][1].type==="whitespace"&&(i-=2),e[i][1].type==="atxHeadingSequence"&&(o===i-1||i-4>o&&e[i-2][1].type==="whitespace")&&(i-=o+1===i?2:4),i>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},Ke(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(l){return e.enter("atxHeading"),(function(c){return e.enter("atxHeadingSequence"),i(c)})(l)};function i(l){return l===35&&r++<6?(e.consume(l),i):l===null||me(l)?(e.exit("atxHeadingSequence"),o(l)):n(l)}function o(l){return l===35?(e.enter("atxHeadingSequence"),s(l)):l===null||ee(l)?(e.exit("atxHeading"),t(l)):ce(l)?ae(e,o,"whitespace")(l):(e.enter("atxHeadingText"),a(l))}function s(l){return l===35?(e.consume(l),s):(e.exit("atxHeadingSequence"),o(l))}function a(l){return l===null||l===35||me(l)?(e.exit("atxHeadingText"),o(l)):(e.consume(l),a)}}},Im=["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"],Qa=["pre","script","style","textarea"],Sm={concrete:!0,name:"htmlFlow",resolveTo:function(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},tokenize:function(e,t,n){const r=this;let i,o,s,a,l;return function(D){return(function(ye){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(ye),c})(D)};function c(D){return D===33?(e.consume(D),u):D===47?(e.consume(D),o=!0,m):D===63?(e.consume(D),i=3,r.interrupt?t:J):ze(D)?(e.consume(D),s=String.fromCharCode(D),f):n(D)}function u(D){return D===45?(e.consume(D),i=2,h):D===91?(e.consume(D),i=5,a=0,p):ze(D)?(e.consume(D),i=4,r.interrupt?t:J):n(D)}function h(D){return D===45?(e.consume(D),r.interrupt?t:J):n(D)}function p(D){return D==="CDATA[".charCodeAt(a++)?(e.consume(D),a===6?r.interrupt?t:B:p):n(D)}function m(D){return ze(D)?(e.consume(D),s=String.fromCharCode(D),f):n(D)}function f(D){if(D===null||D===47||D===62||me(D)){const ye=D===47,ke=s.toLowerCase();return ye||o||!Qa.includes(ke)?Im.includes(s.toLowerCase())?(i=6,ye?(e.consume(D),T):r.interrupt?t(D):B(D)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(D):o?g(D):_(D)):(i=1,r.interrupt?t(D):B(D))}return D===45||Ge(D)?(e.consume(D),s+=String.fromCharCode(D),f):n(D)}function T(D){return D===62?(e.consume(D),r.interrupt?t:B):n(D)}function g(D){return ce(D)?(e.consume(D),g):S(D)}function _(D){return D===47?(e.consume(D),S):D===58||D===95||ze(D)?(e.consume(D),x):ce(D)?(e.consume(D),_):S(D)}function x(D){return D===45||D===46||D===58||D===95||Ge(D)?(e.consume(D),x):E(D)}function E(D){return D===61?(e.consume(D),y):ce(D)?(e.consume(D),E):_(D)}function y(D){return D===null||D===60||D===61||D===62||D===96?n(D):D===34||D===39?(e.consume(D),l=D,w):ce(D)?(e.consume(D),y):N(D)}function w(D){return D===l?(e.consume(D),l=null,O):D===null||ee(D)?n(D):(e.consume(D),w)}function N(D){return D===null||D===34||D===39||D===47||D===60||D===61||D===62||D===96||me(D)?E(D):(e.consume(D),N)}function O(D){return D===47||D===62||ce(D)?_(D):n(D)}function S(D){return D===62?(e.consume(D),M):n(D)}function M(D){return D===null||ee(D)?B(D):ce(D)?(e.consume(D),M):n(D)}function B(D){return D===45&&i===2?(e.consume(D),W):D===60&&i===1?(e.consume(D),Y):D===62&&i===4?(e.consume(D),I):D===63&&i===3?(e.consume(D),J):D===93&&i===5?(e.consume(D),Z):!ee(D)||i!==6&&i!==7?D===null||ee(D)?(e.exit("htmlFlowData"),G(D)):(e.consume(D),B):(e.exit("htmlFlowData"),e.check(Dm,pe,G)(D))}function G(D){return e.check(Nm,R,pe)(D)}function R(D){return e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),q}function q(D){return D===null||ee(D)?G(D):(e.enter("htmlFlowData"),B(D))}function W(D){return D===45?(e.consume(D),J):B(D)}function Y(D){return D===47?(e.consume(D),s="",z):B(D)}function z(D){if(D===62){const ye=s.toLowerCase();return Qa.includes(ye)?(e.consume(D),I):B(D)}return ze(D)&&s.length<8?(e.consume(D),s+=String.fromCharCode(D),z):B(D)}function Z(D){return D===93?(e.consume(D),J):B(D)}function J(D){return D===62?(e.consume(D),I):D===45&&i===2?(e.consume(D),J):B(D)}function I(D){return D===null||ee(D)?(e.exit("htmlFlowData"),pe(D)):(e.consume(D),I)}function pe(D){return e.exit("htmlFlow"),t(D)}}},Dm={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Xn,t,n)}}},Nm={partial:!0,tokenize:function(e,t,n){const r=this;return function(o){return ee(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):n(o)};function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}},wm={name:"htmlText",tokenize:function(e,t,n){const r=this;let i,o,s;return function(I){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(I),a};function a(I){return I===33?(e.consume(I),l):I===47?(e.consume(I),y):I===63?(e.consume(I),x):ze(I)?(e.consume(I),O):n(I)}function l(I){return I===45?(e.consume(I),c):I===91?(e.consume(I),o=0,m):ze(I)?(e.consume(I),_):n(I)}function c(I){return I===45?(e.consume(I),p):n(I)}function u(I){return I===null?n(I):I===45?(e.consume(I),h):ee(I)?(s=u,z(I)):(e.consume(I),u)}function h(I){return I===45?(e.consume(I),p):u(I)}function p(I){return I===62?Y(I):I===45?h(I):u(I)}function m(I){return I==="CDATA[".charCodeAt(o++)?(e.consume(I),o===6?f:m):n(I)}function f(I){return I===null?n(I):I===93?(e.consume(I),T):ee(I)?(s=f,z(I)):(e.consume(I),f)}function T(I){return I===93?(e.consume(I),g):f(I)}function g(I){return I===62?Y(I):I===93?(e.consume(I),g):f(I)}function _(I){return I===null||I===62?Y(I):ee(I)?(s=_,z(I)):(e.consume(I),_)}function x(I){return I===null?n(I):I===63?(e.consume(I),E):ee(I)?(s=x,z(I)):(e.consume(I),x)}function E(I){return I===62?Y(I):x(I)}function y(I){return ze(I)?(e.consume(I),w):n(I)}function w(I){return I===45||Ge(I)?(e.consume(I),w):N(I)}function N(I){return ee(I)?(s=N,z(I)):ce(I)?(e.consume(I),N):Y(I)}function O(I){return I===45||Ge(I)?(e.consume(I),O):I===47||I===62||me(I)?S(I):n(I)}function S(I){return I===47?(e.consume(I),Y):I===58||I===95||ze(I)?(e.consume(I),M):ee(I)?(s=S,z(I)):ce(I)?(e.consume(I),S):Y(I)}function M(I){return I===45||I===46||I===58||I===95||Ge(I)?(e.consume(I),M):B(I)}function B(I){return I===61?(e.consume(I),G):ee(I)?(s=B,z(I)):ce(I)?(e.consume(I),B):S(I)}function G(I){return I===null||I===60||I===61||I===62||I===96?n(I):I===34||I===39?(e.consume(I),i=I,R):ee(I)?(s=G,z(I)):ce(I)?(e.consume(I),G):(e.consume(I),q)}function R(I){return I===i?(e.consume(I),i=void 0,W):I===null?n(I):ee(I)?(s=R,z(I)):(e.consume(I),R)}function q(I){return I===null||I===34||I===39||I===60||I===61||I===96?n(I):I===47||I===62||me(I)?S(I):(e.consume(I),q)}function W(I){return I===47||I===62||me(I)?S(I):n(I)}function Y(I){return I===62?(e.consume(I),e.exit("htmlTextData"),e.exit("htmlText"),t):n(I)}function z(I){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),Z}function Z(I){return ce(I)?ae(e,J,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):J(I)}function J(I){return e.enter("htmlTextData"),s(I)}}},uo={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&Ke(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,i,o,s=e.length,a=0;for(;s--;)if(n=e[s][1],r){if(n.type==="link"||n.type==="labelLink"&&n._inactive)break;e[s][0]==="enter"&&n.type==="labelLink"&&(n._inactive=!0)}else if(i){if(e[s][0]==="enter"&&(n.type==="labelImage"||n.type==="labelLink")&&!n._balanced&&(r=s,n.type!=="labelLink")){a=2;break}}else n.type==="labelEnd"&&(i=s);const l={type:e[r][1].type==="labelLink"?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[r][1].start},end:{...e[i][1].end}},u={type:"labelText",start:{...e[r+a+2][1].end},end:{...e[i-2][1].start}};return o=[["enter",l,t],["enter",c,t]],o=et(o,e.slice(r+1,r+a+3)),o=et(o,[["enter",u,t]]),o=et(o,Gr(t.parser.constructs.insideSpan.null,e.slice(r+a+4,i-3),t)),o=et(o,[["exit",u,t],e[i-2],e[i-1],["exit",c,t]]),o=et(o,e.slice(i+1)),o=et(o,[["exit",l,t]]),Ke(e,r,e.length,o),e},tokenize:function(e,t,n){const r=this;let i,o,s=r.events.length;for(;s--;)if((r.events[s][1].type==="labelImage"||r.events[s][1].type==="labelLink")&&!r.events[s][1]._balanced){i=r.events[s][1];break}return function(h){return i?i._inactive?u(h):(o=r.parser.defined.includes(at(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),a):n(h)};function a(h){return h===40?e.attempt(Lm,c,o?c:u)(h):h===91?e.attempt(Om,c,o?l:u)(h):o?c(h):u(h)}function l(h){return e.attempt(Rm,c,u)(h)}function c(h){return t(h)}function u(h){return i._balanced=!0,n(h)}}},Lm={tokenize:function(e,t,n){return function(u){return e.enter("resource"),e.enter("resourceMarker"),e.consume(u),e.exit("resourceMarker"),r};function r(u){return me(u)?Zn(e,i)(u):i(u)}function i(u){return u===41?c(u):qa(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(u)}function o(u){return me(u)?Zn(e,a)(u):c(u)}function s(u){return n(u)}function a(u){return u===34||u===39||u===40?Ya(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(u):c(u)}function l(u){return me(u)?Zn(e,c)(u):c(u)}function c(u){return u===41?(e.enter("resourceMarker"),e.consume(u),e.exit("resourceMarker"),e.exit("resource"),t):n(u)}}},Om={tokenize:function(e,t,n){const r=this;return function(s){return Wa.call(r,e,i,o,"reference","referenceMarker","referenceString")(s)};function i(s){return r.parser.defined.includes(at(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function o(s){return n(s)}}},Rm={tokenize:function(e,t,n){return function(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),r};function r(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):n(i)}}},vm={name:"labelStartImage",resolveAll:uo.resolveAll,tokenize:function(e,t,n){const r=this;return function(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"),o):n(s)}function o(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}},Pm={name:"labelStartLink",resolveAll:uo.resolveAll,tokenize:function(e,t,n){const r=this;return function(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),i};function i(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}},po={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ae(e,t,"linePrefix")}}},$r={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(a){return e.enter("thematicBreak"),(function(l){return r=l,o(l)})(a)};function o(a){return a===r?(e.enter("thematicBreakSequence"),s(a)):i>=3&&(a===null||ee(a))?(e.exit("thematicBreak"),t(a)):n(a)}function s(a){return a===r?(e.consume(a),i++,s):(e.exit("thematicBreakSequence"),ce(a)?ae(e,o,"whitespace")(a):o(a))}}},Qe={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Xn,i,o);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ae(e,t,"listItemIndent",r.containerState.size+1)(a)}function o(a){return r.containerState.furtherBlankLines||!ce(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Bm,t,s)(a))}function s(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,ae(e,e.attempt(Qe,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return function(p){const m=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:ao(p)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check($r,n,l)(p):l(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(p)}return n(p)};function a(p){return ao(p)&&++s<10?(e.consume(p),a):(!r.interrupt||s<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),l(p)):n(p)}function l(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Xn,r.interrupt?n:c,e.attempt(Mm,h,u))}function c(p){return r.containerState.initialBlankLine=!0,o++,h(p)}function u(p){return ce(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),h):n(p)}function h(p){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}},Mm={partial:!0,tokenize:function(e,t,n){const r=this;return ae(e,function(i){const o=r.events[r.events.length-1];return!ce(i)&&o&&o[1].type==="listItemPrefixWhitespace"?t(i):n(i)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},Bm={partial:!0,tokenize:function(e,t,n){const r=this;return ae(e,function(i){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(i):n(i)},"listItemIndent",r.containerState.size+1)}},Xa={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,o=e.length;for(;o--;)if(e[o][0]==="enter"){if(e[o][1].type==="content"){n=o;break}e[o][1].type==="paragraph"&&(r=o)}else e[o][1].type==="content"&&e.splice(o,1),i||e[o][1].type!=="definition"||(i=o);const s={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",s,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=s,e.push(["exit",s,t]),e},tokenize:function(e,t,n){const r=this;let i;return function(a){let l,c=r.events.length;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){l=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||l)?(e.enter("setextHeadingLine"),i=a,(function(u){return e.enter("setextHeadingLineSequence"),o(u)})(a)):n(a)};function o(a){return a===i?(e.consume(a),o):(e.exit("setextHeadingLineSequence"),ce(a)?ae(e,s,"lineSuffix")(a):s(a))}function s(a){return a===null||ee(a)?(e.exit("setextHeadingLine"),t(a)):n(a)}}},Fm={tokenize:function(e){const t=this,n=e.attempt(Xn,function(i){return i===null?void e.consume(i):(e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n)},e.attempt(this.parser.constructs.flowInitial,r,ae(e,e.attempt(this.parser.constructs.flow,r,e.attempt(bm,r)),"linePrefix")));return n;function r(i){if(i!==null)return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(i)}}},Um={resolveAll:Za()},Hm=Ka("string"),Gm=Ka("text");function Ka(e){return{resolveAll:Za(e==="text"?$m:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],i=t.attempt(r,o,s);return o;function o(c){return l(c)?i(c):s(c)}function s(c){if(c!==null)return t.enter("data"),t.consume(c),a;t.consume(c)}function a(c){return l(c)?(t.exit("data"),i(c)):(t.consume(c),a)}function l(c){if(c===null)return!0;const u=r[c];let h=-1;if(u)for(;++h<u.length;){const p=u[h];if(!p.previous||p.previous.call(n,n.previous))return!0}return!1}}}}function Za(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)r===void 0?t[i]&&t[i][1].type==="data"&&(r=i,i++):t[i]&&t[i][1].type==="data"||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function $m(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let o,s=i.length,a=-1,l=0;for(;s--;){const c=i[s];if(typeof c=="string"){for(a=c.length;c.charCodeAt(a-1)===32;)l++,a--;if(a)break;a=-1}else if(c===-2)o=!0,l++;else if(c!==-1){s++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const c={type:n===e.length||o||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?a:r.start._bufferIndex+a,_index:r.start._index+s,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}const Vm={42:Qe,43:Qe,45:Qe,48:Qe,49:Qe,50:Qe,51:Qe,52:Qe,53:Qe,54:Qe,55:Qe,56:Qe,57:Qe,62:Ha},jm={91:Am},zm={[-2]:co,[-1]:co,32:co},qm={35:Cm,42:$r,45:[Xa,$r],60:Sm,61:Xa,95:$r,96:ja,126:ja},Wm={38:$a,92:Ga},Ym={[-5]:po,[-4]:po,[-3]:po,33:vm,38:$a,42:lo,60:[fm,wm],91:Pm,92:[xm,Ga],93:uo,95:lo,96:_m},Qm={null:[lo,Um]},Xm=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:jm,disable:{null:[]},document:Vm,flow:qm,flowInitial:zm,insideSpan:Qm,string:Wm,text:Ym},Symbol.toStringTag,{value:"Module"}));function Km(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let s=[],a=[];const l={attempt:g(function(E,y){_(E,y.from)}),check:g(T),consume:function(E){ee(E)?(r.line++,r.column=1,r.offset+=E===-3?2:1,x()):E!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=E},enter:function(E,y){const w=y||{};return w.type=E,w.start=p(),c.events.push(["enter",w,c]),a.push(w),w},exit:function(E){const y=a.pop();return y.end=p(),c.events.push(["exit",y,c]),y},interrupt:g(T,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(E){i[E.line]=E.column,x()},events:[],now:p,parser:e,previous:null,sliceSerialize:function(E,y){return(function(w,N){let O=-1;const S=[];let M;for(;++O<w.length;){const B=w[O];let G;if(typeof B=="string")G=B;else switch(B){case-5:G="\r";break;case-4:G=`
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./angular-html-BZhSV2-l.js","./html-ReiWYoHo.js","./javascript-CY0YvwoL.js","./css-l46fsARh.js","./angular-ts-DRQ-j7PL.js","./scss-CHxzYwli.js","./apl-BnBkWLuz.js","./xml-BsgRw6d1.js","./java-DtRXFtDl.js","./json-LWN7Ml79.js","./astro-CXYfh229.js","./typescript-C6YI4KwS.js","./postcss-CeUBPB2S.js","./tsx-DYwE5ssU.js","./blade-CkGRa-l8.js","./html-derivative-BEFkAAPd.js","./sql-BhJCBb_s.js","./bsl-DGicdwC0.js","./sdbl-BpucmfEo.js","./cairo-Dz8fl918.js","./python-DlV7vnVD.js","./cobol-Dt3m7Jkx.js","./coffee-DgxxYT5L.js","./cpp-BmKY377x.js","./regexp-CpyjTnFF.js","./glsl-BDbjGBhJ.js","./c-BmJt9k-y.js","./crystal-DB6V90z1.js","./shellscript-B8OHlvmy.js","./edge-Brl-y200.js","./elixir-CGzfkNtR.js","./elm-DmpuOW2E.js","./erb-BNAqOH5i.js","./ruby-DJftxM78.js","./haml-DiuhmbKg.js","./graphql-DMns_A3G.js","./jsx-g2NrEQII.js","./lua-B09NiSMa.js","./yaml-c2-Vhxho.js","./erlang-DAw79KxH.js","./markdown-DY93LJPj.js","./fortran-fixed-form-D_2otJTs.js","./fortran-free-form-Ix_0F1Zz.js","./fsharp-DmSnwM-W.js","./gdresource-BLuZCTp3.js","./gdshader-BC7WJXp9.js","./gdscript-fffAh1pn.js","./git-commit-Bptnmh-c.js","./diff-Beq1YlA8.js","./git-rebase-CqNhyBhE.js","./glimmer-js-CamsSOgS.js","./glimmer-ts-DpQMos9P.js","./hack-CXH7pT2m.js","./handlebars-PuluTGUb.js","./http-BPFbEDC3.js","./hxml-DB3_nACV.js","./haxe-D-PmAGDa.js","./jinja-CXJbPSuL.js","./jison-iRP-Iv-P.js","./julia-BabrhEml.js","./r-C1kzXVmM.js","./latex-CCwiU5tQ.js","./tex-BGsfIjRo.js","./liquid-QTP3a8yd.js","./marko-CgCapwG0.js","./less-DKKxO4Pm.js","./mdc-CVidKc4b.js","./nginx-CtwUG8yW.js","./nim-BCqJOqd2.js","./perl-Da10OPbb.js","./php-hSYFjEJr.js","./pug-DYUvS0f2.js","./qml-DiX3J200.js","./razor-7Qmv-3mF.js","./csharp-yFVQ185C.js","./rst-DU5WA_Li.js","./cmake-BYiqpiH1.js","./sas-BBCK0tAG.js","./shaderlab-DNyPh2Q6.js","./hlsl-B-PjNM4a.js","./shellsession-OATBsyRD.js","./soy-BjzVbqVk.js","./sparql-CLNNOQQI.js","./turtle-BVy4HXn4.js","./stata-G4GYNNPE.js","./svelte-Dg-n8Id4.js","./templ-C0tOEwaA.js","./go-BR7YH85S.js","./ts-tags-DxCDHihD.js","./twig-D8xgA4Ji.js","./vue-ChwqA4lT.js","./vue-html-DP_EF96N.js","./vue-vine-K4R7Z1Ei.js","./stylus-BeJftkpb.js","./xsl-DCNnPbrB.js","./mermaid.core-CvvJtCRj.js","./index-CelXfcd8.js","./index-CGDMlQfO.css","./transform-D9VCJYws.js","./timer-Bqd5yn_a.js","./step-BwsUM5iJ.js","./isEmpty-CqX_YTIf.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var eA=Object.defineProperty;var tA=Object.getPrototypeOf;var nA=Reflect.get;var wd=_e=>{throw TypeError(_e)};var rA=(_e,be,xe)=>be in _e?eA(_e,be,{enumerable:!0,configurable:!0,writable:!0,value:xe}):_e[be]=xe;var v=(_e,be,xe)=>rA(_e,typeof be!="symbol"?be+"":be,xe),ia=(_e,be,xe)=>be.has(_e)||wd("Cannot "+xe);var We=(_e,be,xe)=>(ia(_e,be,"read from private field"),xe?xe.call(_e):be.get(_e)),hn=(_e,be,xe)=>be.has(_e)?wd("Cannot add the same private member more than once"):be instanceof WeakSet?be.add(_e):be.set(_e,xe),pt=(_e,be,xe,dn)=>(ia(_e,be,"write to private field"),dn?dn.call(_e,xe):be.set(_e,xe),xe),oa=(_e,be,xe)=>(ia(_e,be,"access private method"),xe);var Ld=(_e,be,xe)=>nA(tA(_e),xe,be);import{a as jn,r as K,T as iA,j as U,bn as oA,W as sA,dY as Od,ai as sa,k5 as aA,k6 as lA,cU as cA,a9 as k,j6 as uA,a7 as Rd,a8 as vd,b4 as aa,u as pA,$ as hA,bU as dA,p as mA,a_ as Pd,S as fA,bz as gA,K as _A,by as EA,bF as TA,k7 as bA,hN as kA,__tla as AA}from"./index-CelXfcd8.js";import{I as yA,__tla as xA}from"./storage-Dr0CC44z.js";import Md from"./katex-LV4FpwlL.js";import{B as CA}from"./between-horizontal-start-BmYToIaM.js";let Bd,Fd,la,IA=Promise.all([(()=>{try{return AA}catch{}})(),(()=>{try{return xA}catch{}})()]).then(async()=>{var Nt,ot,jt,wt,un,zt,pn,Or,ua,qt,ta;Bd=e=>{var o;const t=jn.c(6),{attachment:n}=e;if((o=n.mediaType)!=null&&o.startsWith("image/")){let s;return t[0]!==n.filename||t[1]!==n.url?(s=U.jsx("img",{src:n.url,alt:n.filename,className:"max-h-[100px] max-w-[100px] object-contain mb-1.5"}),t[0]=n.filename,t[1]=n.url,t[2]=s):s=t[2],s}let r,i;return t[3]===Symbol.for("react.memo_cache_sentinel")?(r=U.jsx(Od,{className:"h-3 w-3 mt-0.5"}),t[3]=r):r=t[3],t[4]!==n.filename?(i=U.jsxs("div",{className:"flex flex-row gap-1 items-center text-xs",children:[r,n.filename]}),t[4]=n.filename,t[5]=i):i=t[5],i},Fd=e=>{const t=jn.c(12),{file:n,className:r,onRemove:i}=e,[o,s]=K.useState(!1);let a,l,c,u,h;return t[0]!==r?(a=iA("py-1 px-1.5 bg-muted rounded-md cursor-pointer flex flex-row gap-1 items-center text-xs",r),t[0]=r,t[1]=a):a=t[1],t[2]===Symbol.for("react.memo_cache_sentinel")?(l=()=>s(!0),c=()=>s(!1),t[2]=l,t[3]=c):(l=t[2],c=t[3]),t[4]!==n||t[5]!==o||t[6]!==i?(u=o?U.jsx(oA,{className:"h-3 w-3 mt-0.5",onClick:i}):(function(p){const m="h-3 w-3 mt-0.5";return p.type.startsWith("image/")?U.jsx(yA,{className:m}):p.type.startsWith("text/")?U.jsx(sA,{className:m}):U.jsx(Od,{className:m})})(n),t[4]=n,t[5]=o,t[6]=i,t[7]=u):u=t[7],t[8]!==n.name||t[9]!==a||t[10]!==u?(h=U.jsxs("div",{className:a,onMouseEnter:l,onMouseLeave:c,children:[u,n.name]}),t[8]=n.name,t[9]=a,t[10]=u,t[11]=h):h=t[11],h};function _e(){}function be(){}function xe(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,o=!1;for(;!o;){r===-1&&(r=n.length,o=!0);const s=n.slice(i,r).trim();!s&&o||t.push(s),i=r+1,r=n.indexOf(",",i)}return t}function dn(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Gd=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,$d=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Vd={};function da(e,t){return(Vd.jsx?$d:Gd).test(e)}const jd=/[ \t\n\f\r]/g;function Pr(e){return typeof e=="object"?e.type==="text"&&ma(e.value):ma(e)}function ma(e){return e.replace(jd,"")===""}let zn=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};function fa(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new zn(n,r,t)}function qn(e){return e.toLowerCase()}zn.prototype.normal={},zn.prototype.property={},zn.prototype.space=void 0;let Ye=class{constructor(e,t){this.attribute=t,this.property=e}};Ye.prototype.attribute="",Ye.prototype.booleanish=!1,Ye.prototype.boolean=!1,Ye.prototype.commaOrSpaceSeparated=!1,Ye.prototype.commaSeparated=!1,Ye.prototype.defined=!1,Ye.prototype.mustUseProperty=!1,Ye.prototype.number=!1,Ye.prototype.overloadedBoolean=!1,Ye.prototype.property="",Ye.prototype.spaceSeparated=!1,Ye.prototype.space=void 0;let zd=0;const oe=Yt(),Se=Yt(),Qi=Yt(),V=Yt(),Ee=Yt(),mn=Yt(),Xe=Yt();function Yt(){return 2**++zd}const Xi=Object.freeze(Object.defineProperty({__proto__:null,boolean:oe,booleanish:Se,commaOrSpaceSeparated:Xe,commaSeparated:mn,number:V,overloadedBoolean:Qi,spaceSeparated:Ee},Symbol.toStringTag,{value:"Module"})),Ki=Object.keys(Xi);let Zi=class extends Ye{constructor(e,t,n,r){let i=-1;if(super(e,t),ga(this,"space",r),typeof n=="number")for(;++i<Ki.length;){const o=Ki[i];ga(this,Ki[i],(n&Xi[o])===Xi[o])}}};function ga(e,t,n){n&&(e[t]=n)}function fn(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new Zi(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[qn(r)]=r,n[qn(o.attribute)]=r}return new zn(t,n,e.space)}Zi.prototype.defined=!0;const _a=fn({properties:{ariaActiveDescendant:null,ariaAtomic:Se,ariaAutoComplete:null,ariaBusy:Se,ariaChecked:Se,ariaColCount:V,ariaColIndex:V,ariaColSpan:V,ariaControls:Ee,ariaCurrent:null,ariaDescribedBy:Ee,ariaDetails:null,ariaDisabled:Se,ariaDropEffect:Ee,ariaErrorMessage:null,ariaExpanded:Se,ariaFlowTo:Ee,ariaGrabbed:Se,ariaHasPopup:null,ariaHidden:Se,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ee,ariaLevel:V,ariaLive:null,ariaModal:Se,ariaMultiLine:Se,ariaMultiSelectable:Se,ariaOrientation:null,ariaOwns:Ee,ariaPlaceholder:null,ariaPosInSet:V,ariaPressed:Se,ariaReadOnly:Se,ariaRelevant:null,ariaRequired:Se,ariaRoleDescription:Ee,ariaRowCount:V,ariaRowIndex:V,ariaRowSpan:V,ariaSelected:Se,ariaSetSize:V,ariaSort:null,ariaValueMax:V,ariaValueMin:V,ariaValueNow:V,ariaValueText:null,role:null},transform:(e,t)=>t==="role"?t:"aria-"+t.slice(4).toLowerCase()});function Ea(e,t){return t in e?e[t]:t}function Ta(e,t){return Ea(e,t.toLowerCase())}const qd=fn({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:mn,acceptCharset:Ee,accessKey:Ee,action:null,allow:null,allowFullScreen:oe,allowPaymentRequest:oe,allowUserMedia:oe,alt:null,as:null,async:oe,autoCapitalize:null,autoComplete:Ee,autoFocus:oe,autoPlay:oe,blocking:Ee,capture:null,charSet:null,checked:oe,cite:null,className:Ee,cols:V,colSpan:null,content:null,contentEditable:Se,controls:oe,controlsList:Ee,coords:V|mn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:oe,defer:oe,dir:null,dirName:null,disabled:oe,download:Qi,draggable:Se,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:oe,formTarget:null,headers:Ee,height:V,hidden:Qi,high:V,href:null,hrefLang:null,htmlFor:Ee,httpEquiv:Ee,id:null,imageSizes:null,imageSrcSet:null,inert:oe,inputMode:null,integrity:null,is:null,isMap:oe,itemId:null,itemProp:Ee,itemRef:Ee,itemScope:oe,itemType:Ee,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:oe,low:V,manifest:null,max:null,maxLength:V,media:null,method:null,min:null,minLength:V,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:V,pattern:null,ping:Ee,placeholder:null,playsInline:oe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:oe,referrerPolicy:null,rel:Ee,required:oe,reversed:oe,rows:V,rowSpan:V,sandbox:Ee,scope:null,scoped:oe,seamless:oe,selected:oe,shadowRootClonable:oe,shadowRootDelegatesFocus:oe,shadowRootMode:null,shape:null,size:V,sizes:null,slot:null,span:V,spellCheck:Se,src:null,srcDoc:null,srcLang:null,srcSet:null,start:V,step:null,style:null,tabIndex:V,target:null,title:null,translate:null,type:null,typeMustMatch:oe,useMap:null,value:Se,width:V,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ee,axis:null,background:null,bgColor:null,border:V,borderColor:null,bottomMargin:V,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:V,leftMargin:V,link:null,longDesc:null,lowSrc:null,marginHeight:V,marginWidth:V,noResize:oe,noHref:oe,noShade:oe,noWrap:oe,object:null,profile:null,prompt:null,rev:null,rightMargin:V,rules:null,scheme:null,scrolling:Se,standby:null,summary:null,text:null,topMargin:V,valueType:null,version:null,vAlign:null,vLink:null,vSpace:V,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:oe,disableRemotePlayback:oe,prefix:null,property:null,results:V,security:null,unselectable:null},space:"html",transform:Ta}),Wd=fn({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:Xe,accentHeight:V,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:V,amplitude:V,arabicForm:null,ascent:V,attributeName:null,attributeType:null,azimuth:V,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:V,by:null,calcMode:null,capHeight:V,className:Ee,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:V,diffuseConstant:V,direction:null,display:null,dur:null,divisor:V,dominantBaseline:null,download:oe,dx:null,dy:null,edgeMode:null,editable:null,elevation:V,enableBackground:null,end:null,event:null,exponent:V,externalResourcesRequired:null,fill:null,fillOpacity:V,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:mn,g2:mn,glyphName:mn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:V,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:V,horizOriginX:V,horizOriginY:V,id:null,ideographic:V,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:V,k:V,k1:V,k2:V,k3:V,k4:V,kernelMatrix:Xe,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:V,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:V,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:V,overlineThickness:V,paintOrder:null,panose1:null,path:null,pathLength:V,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ee,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:V,pointsAtY:V,pointsAtZ:V,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Xe,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Xe,rev:Xe,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Xe,requiredFeatures:Xe,requiredFonts:Xe,requiredFormats:Xe,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:V,specularExponent:V,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:V,strikethroughThickness:V,string:null,stroke:null,strokeDashArray:Xe,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:V,strokeOpacity:V,strokeWidth:null,style:null,surfaceScale:V,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Xe,tabIndex:V,tableValues:null,target:null,targetX:V,targetY:V,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Xe,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:V,underlineThickness:V,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:V,values:null,vAlphabetic:V,vMathematical:V,vectorEffect:null,vHanging:V,vIdeographic:V,version:null,vertAdvY:V,vertOriginX:V,vertOriginY:V,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:V,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Ea}),ba=fn({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),ka=fn({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Ta}),Aa=fn({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),Yd={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"},Qd=/[A-Z]/g,ya=/-[a-z]/g,Xd=/^data[-\w.:]+$/i;function Mr(e,t){const n=qn(t);let r=t,i=Ye;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Xd.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(ya,Zd);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!ya.test(o)){let s=o.replace(Qd,Kd);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=Zi}return new i(r,t)}function Kd(e){return"-"+e.toLowerCase()}function Zd(e){return e.charAt(1).toUpperCase()}const Wn=fa([_a,qd,ba,ka,Aa],"html"),Rt=fa([_a,Wd,ba,ka,Aa],"svg");function xa(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Ji(e){return e.join(" ").trim()}const Jd=sa(aA()),Br=Ca("end"),ht=Ca("start");function Ca(e){return function(t){const n=t&&t.position&&t.position[e]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function Yn(e){return e&&typeof e=="object"?"position"in e||"type"in e?Ia(e.position):"start"in e||"end"in e?Ia(e):"line"in e||"column"in e?eo(e):"":""}function eo(e){return Sa(e&&e.line)+":"+Sa(e&&e.column)}function Ia(e){return eo(e&&e.start)+"-"+eo(e&&e.end)}function Sa(e){return e&&typeof e=="number"?e:1}class He extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},s=!1;if(n&&(o="line"in n&&"column"in n||"start"in n&&"end"in n?{place:n}:"type"in n?{ancestors:[n],place:n.position}:{...n}),typeof t=="string"?i=t:!o.cause&&t&&(s=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?o.ruleId=r:(o.source=r.slice(0,l),o.ruleId=r.slice(l+1))}if(!o.place&&o.ancestors&&o.ancestors){const l=o.ancestors[o.ancestors.length-1];l&&(o.place=l.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=a?a.line:void 0,this.name=Yn(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=s&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}He.prototype.file="",He.prototype.name="",He.prototype.reason="",He.prototype.message="",He.prototype.stack="",He.prototype.column=void 0,He.prototype.line=void 0,He.prototype.ancestors=void 0,He.prototype.cause=void 0,He.prototype.fatal=void 0,He.prototype.place=void 0,He.prototype.ruleId=void 0,He.prototype.source=void 0;const to={}.hasOwnProperty,em=new Map,tm=/[A-Z]/g,nm=new Set(["table","tbody","thead","tfoot","tr"]),rm=new Set(["td","th"]),Da="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function im(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=(function(s,a){return l;function l(c,u,h,p){const m=Array.isArray(h.children),f=ht(c);return a(u,h,p,m,{columnNumber:f?f.column-1:void 0,fileName:s,lineNumber:f?f.line:void 0},void 0)}})(n,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");r=(function(s,a,l){return c;function c(u,h,p,m){const f=Array.isArray(p.children)?l:a;return m?f(h,p,m):f(h,p)}})(0,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Rt:Wn,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=Na(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function Na(e,t,n){return t.type==="element"?(function(r,i,o){const s=r.schema;let a=s;i.tagName.toLowerCase()==="svg"&&s.space==="html"&&(a=Rt,r.schema=a),r.ancestors.push(i);const l=La(r,i.tagName,!1),c=(function(h,p){const m={};let f,T;for(T in p.properties)if(T!=="children"&&to.call(p.properties,T)){const g=om(h,T,p.properties[T]);if(g){const[_,x]=g;h.tableCellAlignToStyle&&_==="align"&&typeof x=="string"&&rm.has(p.tagName)?f=x:m[_]=x}}return f&&((m.style||(m.style={}))[h.stylePropertyNameCase==="css"?"text-align":"textAlign"]=f),m})(r,i);let u=ro(r,i);return nm.has(i.tagName)&&(u=u.filter(function(h){return typeof h!="string"||!Pr(h)})),wa(r,c,l,i),no(c,u),r.ancestors.pop(),r.schema=s,r.create(i,l,c,o)})(e,t,n):t.type==="mdxFlowExpression"||t.type==="mdxTextExpression"?(function(r,i){if(i.data&&i.data.estree&&r.evaluater){const o=i.data.estree.body[0];return o.type,r.evaluater.evaluateExpression(o.expression)}Qn(r,i.position)})(e,t):t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement"?(function(r,i,o){const s=r.schema;let a=s;i.name==="svg"&&s.space==="html"&&(a=Rt,r.schema=a),r.ancestors.push(i);const l=i.name===null?r.Fragment:La(r,i.name,!0),c=(function(h,p){const m={};for(const f of p.attributes)if(f.type==="mdxJsxExpressionAttribute")if(f.data&&f.data.estree&&h.evaluater){const T=f.data.estree.body[0];T.type;const g=T.expression;g.type;const _=g.properties[0];_.type,Object.assign(m,h.evaluater.evaluateExpression(_.argument))}else Qn(h,p.position);else{const T=f.name;let g;if(f.value&&typeof f.value=="object")if(f.value.data&&f.value.data.estree&&h.evaluater){const _=f.value.data.estree.body[0];_.type,g=h.evaluater.evaluateExpression(_.expression)}else Qn(h,p.position);else g=f.value===null||f.value;m[T]=g}return m})(r,i),u=ro(r,i);return wa(r,c,l,i),no(c,u),r.ancestors.pop(),r.schema=s,r.create(i,l,c,o)})(e,t,n):t.type==="mdxjsEsm"?(function(r,i){if(i.data&&i.data.estree&&r.evaluater)return r.evaluater.evaluateProgram(i.data.estree);Qn(r,i.position)})(e,t):t.type==="root"?(function(r,i,o){const s={};return no(s,ro(r,i)),r.create(i,r.Fragment,s,o)})(e,t,n):t.type==="text"?(function(r,i){return i.value})(0,t):void 0}function wa(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function no(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function ro(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:em;for(;++r<t.children.length;){const o=t.children[r];let s;if(e.passKeys){const l=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(l){const c=i.get(l)||0;s=l+"-"+c,i.set(l,c+1)}}const a=Na(e,o,s);a!==void 0&&n.push(a)}return n}function om(e,t,n){const r=Mr(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?dn(n):Ji(n)),r.property==="style"){let i=typeof n=="object"?n:(function(o,s){try{return Jd(s,{reactCompat:!0})}catch(a){if(o.ignoreInvalidStyle)return{};const l=a,c=new He("Cannot parse `style` attribute",{ancestors:o.ancestors,cause:l,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw c.file=o.filePath||void 0,c.url=Da+"#cannot-parse-style-attribute",c}})(e,String(n));return e.stylePropertyNameCase==="css"&&(i=(function(o){const s={};let a;for(a in o)to.call(o,a)&&(s[sm(a)]=o[a]);return s})(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Yd[r.property]||r.property:r.attribute,n]}}function La(e,t,n){let r;if(n)if(t.includes(".")){const i=t.split(".");let o,s=-1;for(;++s<i.length;){const a=da(i[s])?{type:"Identifier",name:i[s]}:{type:"Literal",value:i[s]};o=o?{type:"MemberExpression",object:o,property:a,computed:!!(s&&a.type==="Literal"),optional:!1}:a}r=o}else r=da(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return to.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Qn(e)}function Qn(e,t){const n=new He("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Da+"#cannot-handle-mdx-estrees-without-createevaluater",n}function sm(e){let t=e.replace(tm,am);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function am(e){return"-"+e.toLowerCase()}const io={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"]},Fr={};function oo(e,t){return Oa(e,typeof Fr.includeImageAlt!="boolean"||Fr.includeImageAlt,typeof Fr.includeHtml!="boolean"||Fr.includeHtml)}function Oa(e,t,n){if((function(r){return!!(r&&typeof r=="object")})(e)){if("value"in e)return e.type!=="html"||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Ra(e.children,t,n)}return Array.isArray(e)?Ra(e,t,n):""}function Ra(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Oa(e[i],t,n);return r.join("")}const va=document.createElement("i");function so(e){const t="&"+e+";";va.innerHTML=t;const n=va.textContent;return(n.charCodeAt(n.length-1)!==59||e==="semi")&&n!==t&&n}function Ke(e,t,n,r){const i=e.length;let o,s=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);s<r.length;)o=r.slice(s,s+1e4),o.unshift(t,0),e.splice(...o),s+=1e4,t+=1e4}function et(e,t){return e.length>0?(Ke(e,e.length,0,t),e):t}const Pa={}.hasOwnProperty;function Ma(e){const t={};let n=-1;for(;++n<e.length;)lm(t,e[n]);return t}function lm(e,t){let n;for(n in t){const r=(Pa.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let o;if(i)for(o in i){Pa.call(r,o)||(r[o]=[]);const s=i[o];cm(r[o],Array.isArray(s)?s:s?[s]:[])}}}function cm(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Ke(e,0,0,r)}function Ba(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||(65535&n)==65534||n>1114111?"\uFFFD":String.fromCodePoint(n)}function at(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ze=vt(/[A-Za-z]/),Ge=vt(/[\dA-Za-z]/),um=vt(/[#-'*+\--9=?A-Z^-~]/);function Ur(e){return e!==null&&(e<32||e===127)}const ao=vt(/\d/),pm=vt(/[\dA-Fa-f]/),hm=vt(/[!-/:-@[-`{-~]/);function ee(e){return e!==null&&e<-2}function me(e){return e!==null&&(e<0||e===32)}function ce(e){return e===-2||e===-1||e===32}const Hr=vt(new RegExp("\\p{P}|\\p{S}","u")),Qt=vt(/\s/);function vt(e){return function(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function gn(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let s="";if(o===37&&Ge(e.charCodeAt(n+1))&&Ge(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(s=String.fromCharCode(o));else if(o>55295&&o<57344){const a=e.charCodeAt(n+1);o<56320&&a>56319&&a<57344?(s=String.fromCharCode(o,a),i=1):s="\uFFFD"}else s=String.fromCharCode(o);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function ae(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(a){return ce(a)?(e.enter(n),s(a)):t(a)};function s(a){return ce(a)&&o++<i?(e.consume(a),s):(e.exit(n),t(a))}}const dm={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,function(o){return o===null?void e.consume(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),ae(e,t,"linePrefix"))},function(o){return e.enter("paragraph"),r(o)});let n;return t;function r(o){const s=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=s),n=s,i(o)}function i(o){return o===null?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(o)):ee(o)?(e.consume(o),e.exit("chunkText"),r):(e.consume(o),i)}}},mm={tokenize:function(e){const t=this,n=[];let r,i,o,s=0;return a;function a(E){if(s<n.length){const y=n[s];return t.containerState=y[1],e.attempt(y[0].continuation,l,c)(E)}return c(E)}function l(E){if(s++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&x();const y=t.events.length;let w,N=y;for(;N--;)if(t.events[N][0]==="exit"&&t.events[N][1].type==="chunkFlow"){w=t.events[N][1].end;break}_(s);let O=y;for(;O<t.events.length;)t.events[O][1].end={...w},O++;return Ke(t.events,N+1,0,t.events.slice(y)),t.events.length=O,c(E)}return a(E)}function c(E){if(s===n.length){if(!r)return p(E);if(r.currentConstruct&&r.currentConstruct.concrete)return f(E);t.interrupt=!!(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Fa,u,h)(E)}function u(E){return r&&x(),_(s),p(E)}function h(E){return t.parser.lazy[t.now().line]=s!==n.length,o=t.now().offset,f(E)}function p(E){return t.containerState={},e.attempt(Fa,m,f)(E)}function m(E){return s++,n.push([t.currentConstruct,t.containerState]),p(E)}function f(E){return E===null?(r&&x(),_(0),void e.consume(E)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:i}),T(E))}function T(E){return E===null?(g(e.exit("chunkFlow"),!0),_(0),void e.consume(E)):ee(E)?(e.consume(E),g(e.exit("chunkFlow")),s=0,t.interrupt=void 0,a):(e.consume(E),T)}function g(E,y){const w=t.sliceStream(E);if(y&&w.push(null),E.previous=i,i&&(i.next=E),i=E,r.defineSkip(E.start),r.write(w),t.parser.lazy[E.start.line]){let N=r.events.length;for(;N--;)if(r.events[N][1].start.offset<o&&(!r.events[N][1].end||r.events[N][1].end.offset>o))return;const O=t.events.length;let S,M,B=O;for(;B--;)if(t.events[B][0]==="exit"&&t.events[B][1].type==="chunkFlow"){if(S){M=t.events[B][1].end;break}S=!0}for(_(s),N=O;N<t.events.length;)t.events[N][1].end={...M},N++;Ke(t.events,B+1,0,t.events.slice(O)),t.events.length=N}}function _(E){let y=n.length;for(;y-- >E;){const w=n[y];t.containerState=w[1],w[0].exit.call(t,e)}n.length=E}function x(){r.write([null]),i=void 0,r=void 0,t.containerState._closeFlow=void 0}}},Fa={tokenize:function(e,t,n){return ae(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function _n(e){return e===null||me(e)||Qt(e)?1:Hr(e)?2:void 0}function Gr(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const lo={name:"attention",resolveAll:function(e,t){let n,r,i,o,s,a,l,c,u=-1;for(;++u<e.length;)if(e[u][0]==="enter"&&e[u][1].type==="attentionSequence"&&e[u][1]._close){for(n=u;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[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;a=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const h={...e[n][1].end},p={...e[u][1].start};Ua(h,-a),Ua(p,a),o={type:a>1?"strongSequence":"emphasisSequence",start:h,end:{...e[n][1].end}},s={type:a>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:p},i={type:a>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:a>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[n][1].end={...o.start},e[u][1].start={...s.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=et(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=et(l,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),l=et(l,Gr(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=et(l,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=et(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,Ke(e,n-1,u-n+3,l),u=n+l.length-c-2;break}}for(u=-1;++u<e.length;)e[u][1].type==="attentionSequence"&&(e[u][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=_n(r);let o;return function(a){return o=a,e.enter("attentionSequence"),s(a)};function s(a){if(a===o)return e.consume(a),s;const l=e.exit("attentionSequence"),c=_n(a),u=!c||c===2&&i||n.includes(a),h=!i||i===2&&c||n.includes(r);return l._open=!!(o===42?u:u&&(i||!h)),l._close=!!(o===42?h:h&&(c||!u)),t(a)}}};function Ua(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const fm={name:"autolink",tokenize:function(e,t,n){let r=0;return function(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(p){return ze(p)?(e.consume(p),o):p===64?n(p):l(p)}function o(p){return p===43||p===45||p===46||Ge(p)?(r=1,s(p)):l(p)}function s(p){return p===58?(e.consume(p),r=0,a):(p===43||p===45||p===46||Ge(p))&&r++<32?(e.consume(p),s):(r=0,l(p))}function a(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||Ur(p)?n(p):(e.consume(p),a)}function l(p){return p===64?(e.consume(p),c):um(p)?(e.consume(p),l):n(p)}function c(p){return Ge(p)?u(p):n(p)}function u(p){return p===46?(e.consume(p),r=0,c):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):h(p)}function h(p){if((p===45||Ge(p))&&r++<63){const m=p===45?h:u;return e.consume(p),m}return n(p)}}},Xn={partial:!0,tokenize:function(e,t,n){return function(i){return ce(i)?ae(e,r,"linePrefix")(i):r(i)};function r(i){return i===null||ee(i)?t(i):n(i)}}},Ha={continuation:{tokenize:function(e,t,n){const r=this;return function(o){return ce(o)?ae(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):i(o)};function i(o){return e.attempt(Ha,t,n)(o)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(o){if(o===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),i}return n(o)};function i(o){return ce(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}},Ga={name:"characterEscape",tokenize:function(e,t,n){return function(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),r};function r(i){return hm(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}},$a={name:"characterReference",tokenize:function(e,t,n){const r=this;let i,o,s=0;return function(u){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(u),e.exit("characterReferenceMarker"),a};function a(u){return u===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(u),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),i=31,o=Ge,c(u))}function l(u){return u===88||u===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(u),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=pm,c):(e.enter("characterReferenceValue"),i=7,o=ao,c(u))}function c(u){if(u===59&&s){const h=e.exit("characterReferenceValue");return o!==Ge||so(r.sliceSerialize(h))?(e.enter("characterReferenceMarker"),e.consume(u),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(u)}return o(u)&&s++<i?(e.consume(u),c):n(u)}}},Va={partial:!0,tokenize:function(e,t,n){const r=this;return function(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i)};function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}},ja={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,i={partial:!0,tokenize:function(E,y,w){let N=0;return O;function O(R){return E.enter("lineEnding"),E.consume(R),E.exit("lineEnding"),S}function S(R){return E.enter("codeFencedFence"),ce(R)?ae(E,M,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):M(R)}function M(R){return R===o?(E.enter("codeFencedFenceSequence"),B(R)):w(R)}function B(R){return R===o?(N++,E.consume(R),B):N>=a?(E.exit("codeFencedFenceSequence"),ce(R)?ae(E,G,"whitespace")(R):G(R)):w(R)}function G(R){return R===null||ee(R)?(E.exit("codeFencedFence"),y(R)):w(R)}}};let o,s=0,a=0;return function(E){return(function(y){const w=r.events[r.events.length-1];return s=w&&w[1].type==="linePrefix"?w[2].sliceSerialize(w[1],!0).length:0,o=y,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(y)})(E)};function l(E){return E===o?(a++,e.consume(E),l):a<3?n(E):(e.exit("codeFencedFenceSequence"),ce(E)?ae(e,c,"whitespace")(E):c(E))}function c(E){return E===null||ee(E)?(e.exit("codeFencedFence"),r.interrupt?t(E):e.check(Va,m,x)(E)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(E))}function u(E){return E===null||ee(E)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(E)):ce(E)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ae(e,h,"whitespace")(E)):E===96&&E===o?n(E):(e.consume(E),u)}function h(E){return E===null||ee(E)?c(E):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(E))}function p(E){return E===null||ee(E)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(E)):E===96&&E===o?n(E):(e.consume(E),p)}function m(E){return e.attempt(i,x,f)(E)}function f(E){return e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),T}function T(E){return s>0&&ce(E)?ae(e,g,"linePrefix",s+1)(E):g(E)}function g(E){return E===null||ee(E)?e.check(Va,m,x)(E):(e.enter("codeFlowValue"),_(E))}function _(E){return E===null||ee(E)?(e.exit("codeFlowValue"),g(E)):(e.consume(E),_)}function x(E){return e.exit("codeFenced"),t(E)}}},co={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(l){return e.enter("codeIndented"),ae(e,i,"linePrefix",5)(l)};function i(l){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(l):n(l)}function o(l){return l===null?a(l):ee(l)?e.attempt(gm,o,a)(l):(e.enter("codeFlowValue"),s(l))}function s(l){return l===null||ee(l)?(e.exit("codeFlowValue"),o(l)):(e.consume(l),s)}function a(l){return e.exit("codeIndented"),t(l)}}},gm={partial:!0,tokenize:function(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):ee(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):ae(e,o,"linePrefix",5)(s)}function o(s){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(s):ee(s)?i(s):n(s)}}},_m={name:"codeText",previous:function(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"},resolve:function(e){let t,n,r=e.length-4,i=3;if(!(e[i][1].type!=="lineEnding"&&e[i][1].type!=="space"||e[r][1].type!=="lineEnding"&&e[r][1].type!=="space")){for(t=i;++t<r;)if(e[t][1].type==="codeTextData"){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(t=i-1,r++;++t<=r;)n===void 0?t!==r&&e[t][1].type!=="lineEnding"&&(n=t):t!==r&&e[t][1].type!=="lineEnding"||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,i,o=0;return function(u){return e.enter("codeText"),e.enter("codeTextSequence"),s(u)};function s(u){return u===96?(e.consume(u),o++,s):(e.exit("codeTextSequence"),a(u))}function a(u){return u===null?n(u):u===32?(e.enter("space"),e.consume(u),e.exit("space"),a):u===96?(i=e.enter("codeTextSequence"),r=0,c(u)):ee(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),a):(e.enter("codeTextData"),l(u))}function l(u){return u===null||u===32||u===96||ee(u)?(e.exit("codeTextData"),a(u)):(e.consume(u),l)}function c(u){return u===96?(e.consume(u),r++,c):r===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(u)):(i.type="codeTextData",l(u))}}};class Em{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,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Kn(this.left,r),o.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),Kn(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Kn(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 n=this.left.splice(t,Number.POSITIVE_INFINITY);Kn(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Kn(this.left,n.reverse())}}}function Kn(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function za(e){const t={};let n,r,i,o,s,a,l,c=-1;const u=new Em(e);for(;++c<u.length;){for(;c in t;)c=t[c];if(n=u.get(c),c&&n[1].type==="chunkFlow"&&u.get(c-1)[1].type==="listItemPrefix"&&(a=n[1]._tokenizer.events,i=0,i<a.length&&a[i][1].type==="lineEndingBlank"&&(i+=2),i<a.length&&a[i][1].type==="content"))for(;++i<a.length&&a[i][1].type!=="content";)a[i][1].type==="chunkText"&&(a[i][1]._isInFirstContentOfListItem=!0,i++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,Tm(u,c)),c=t[c],l=!0);else if(n[1]._container){for(i=c,r=void 0;i--;)if(o=u.get(i),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(r&&(u.get(r)[1].type="lineEndingBlank"),o[1].type="lineEnding",r=i);else if(o[1].type!=="linePrefix"&&o[1].type!=="listItemIndent")break;r&&(n[1].end={...u.get(r)[1].start},s=u.slice(r,c),s.unshift(n),u.splice(r,c-r+1,s))}}return Ke(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!l}function Tm(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const a=s.events,l=[],c={};let u,h,p=-1,m=n,f=0,T=0;const g=[T];for(;m;){for(;e.get(++i)[1]!==m;);o.push(i),m._tokenizer||(u=r.sliceStream(m),m.next||u.push(null),h&&s.defineSkip(m.start),m._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(u),m._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),h=m,m=m.next}for(m=n;++p<a.length;)a[p][0]==="exit"&&a[p-1][0]==="enter"&&a[p][1].type===a[p-1][1].type&&a[p][1].start.line!==a[p][1].end.line&&(T=p+1,g.push(T),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(s.events=[],m?(m._tokenizer=void 0,m.previous=void 0):g.pop(),p=g.length;p--;){const _=a.slice(g[p],g[p+1]),x=o.pop();l.push([x,x+_.length-1]),e.splice(x,2,_)}for(l.reverse(),p=-1;++p<l.length;)c[f+l[p][0]]=f+l[p][1],f+=l[p][1]-l[p][0]-1;return c}const bm={resolve:function(e){return za(e),e},tokenize:function(e,t){let n;return function(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(s)};function r(s){return s===null?i(s):ee(s)?e.check(km,o,i)(s):(e.consume(s),r)}function i(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function o(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},km={partial:!0,tokenize:function(e,t,n){const r=this;return function(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),ae(e,i,"linePrefix")};function i(o){if(o===null||ee(o))return n(o);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}};function qa(e,t,n,r,i,o,s,a,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(g){return g===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(g),e.exit(o),h):g===null||g===32||g===41||Ur(g)?n(g):(e.enter(r),e.enter(s),e.enter(a),e.enter("chunkString",{contentType:"string"}),f(g))};function h(g){return g===62?(e.enter(o),e.consume(g),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(g))}function p(g){return g===62?(e.exit("chunkString"),e.exit(a),h(g)):g===null||g===60||ee(g)?n(g):(e.consume(g),g===92?m:p)}function m(g){return g===60||g===62||g===92?(e.consume(g),p):p(g)}function f(g){return u||g!==null&&g!==41&&!me(g)?u<c&&g===40?(e.consume(g),u++,f):g===41?(e.consume(g),u--,f):g===null||g===32||g===40||Ur(g)?n(g):(e.consume(g),g===92?T:f):(e.exit("chunkString"),e.exit(a),e.exit(s),e.exit(r),t(g))}function T(g){return g===40||g===41||g===92?(e.consume(g),f):f(g)}}function Wa(e,t,n,r,i,o){const s=this;let a,l=0;return function(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(o),c};function c(p){return l>999||p===null||p===91||p===93&&!a||p===94&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs?n(p):p===93?(e.exit(o),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):ee(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(p))}function u(p){return p===null||p===91||p===93||ee(p)||l++>999?(e.exit("chunkString"),c(p)):(e.consume(p),a||(a=!ce(p)),p===92?h:u)}function h(p){return p===91||p===92||p===93?(e.consume(p),l++,u):u(p)}}function Ya(e,t,n,r,i,o){let s;return function(h){return h===34||h===39||h===40?(e.enter(r),e.enter(i),e.consume(h),e.exit(i),s=h===40?41:h,a):n(h)};function a(h){return h===s?(e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):(e.enter(o),l(h))}function l(h){return h===s?(e.exit(o),a(s)):h===null?n(h):ee(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),ae(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===s||h===null||ee(h)?(e.exit("chunkString"),l(h)):(e.consume(h),h===92?u:c)}function u(h){return h===s||h===92?(e.consume(h),c):c(h)}}function Zn(e,t){let n;return function r(i){return ee(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):ce(i)?ae(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const Am={name:"definition",tokenize:function(e,t,n){const r=this;let i;return function(h){return e.enter("definition"),(function(p){return Wa.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)})(h)};function o(h){return i=at(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),s):n(h)}function s(h){return me(h)?Zn(e,a)(h):a(h)}function a(h){return qa(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function l(h){return e.attempt(ym,c,c)(h)}function c(h){return ce(h)?ae(e,u,"whitespace")(h):u(h)}function u(h){return h===null||ee(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}},ym={partial:!0,tokenize:function(e,t,n){return function(s){return me(s)?Zn(e,r)(s):n(s)};function r(s){return Ya(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function i(s){return ce(s)?ae(e,o,"whitespace")(s):o(s)}function o(s){return s===null||ee(s)?t(s):n(s)}}},xm={name:"hardBreakEscape",tokenize:function(e,t,n){return function(i){return e.enter("hardBreakEscape"),e.consume(i),r};function r(i){return ee(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}},Cm={name:"headingAtx",resolve:function(e,t){let n,r,i=e.length-2,o=3;return e[o][1].type==="whitespace"&&(o+=2),i-2>o&&e[i][1].type==="whitespace"&&(i-=2),e[i][1].type==="atxHeadingSequence"&&(o===i-1||i-4>o&&e[i-2][1].type==="whitespace")&&(i-=o+1===i?2:4),i>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},Ke(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(l){return e.enter("atxHeading"),(function(c){return e.enter("atxHeadingSequence"),i(c)})(l)};function i(l){return l===35&&r++<6?(e.consume(l),i):l===null||me(l)?(e.exit("atxHeadingSequence"),o(l)):n(l)}function o(l){return l===35?(e.enter("atxHeadingSequence"),s(l)):l===null||ee(l)?(e.exit("atxHeading"),t(l)):ce(l)?ae(e,o,"whitespace")(l):(e.enter("atxHeadingText"),a(l))}function s(l){return l===35?(e.consume(l),s):(e.exit("atxHeadingSequence"),o(l))}function a(l){return l===null||l===35||me(l)?(e.exit("atxHeadingText"),o(l)):(e.consume(l),a)}}},Im=["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"],Qa=["pre","script","style","textarea"],Sm={concrete:!0,name:"htmlFlow",resolveTo:function(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},tokenize:function(e,t,n){const r=this;let i,o,s,a,l;return function(D){return(function(ye){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(ye),c})(D)};function c(D){return D===33?(e.consume(D),u):D===47?(e.consume(D),o=!0,m):D===63?(e.consume(D),i=3,r.interrupt?t:J):ze(D)?(e.consume(D),s=String.fromCharCode(D),f):n(D)}function u(D){return D===45?(e.consume(D),i=2,h):D===91?(e.consume(D),i=5,a=0,p):ze(D)?(e.consume(D),i=4,r.interrupt?t:J):n(D)}function h(D){return D===45?(e.consume(D),r.interrupt?t:J):n(D)}function p(D){return D==="CDATA[".charCodeAt(a++)?(e.consume(D),a===6?r.interrupt?t:B:p):n(D)}function m(D){return ze(D)?(e.consume(D),s=String.fromCharCode(D),f):n(D)}function f(D){if(D===null||D===47||D===62||me(D)){const ye=D===47,ke=s.toLowerCase();return ye||o||!Qa.includes(ke)?Im.includes(s.toLowerCase())?(i=6,ye?(e.consume(D),T):r.interrupt?t(D):B(D)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(D):o?g(D):_(D)):(i=1,r.interrupt?t(D):B(D))}return D===45||Ge(D)?(e.consume(D),s+=String.fromCharCode(D),f):n(D)}function T(D){return D===62?(e.consume(D),r.interrupt?t:B):n(D)}function g(D){return ce(D)?(e.consume(D),g):S(D)}function _(D){return D===47?(e.consume(D),S):D===58||D===95||ze(D)?(e.consume(D),x):ce(D)?(e.consume(D),_):S(D)}function x(D){return D===45||D===46||D===58||D===95||Ge(D)?(e.consume(D),x):E(D)}function E(D){return D===61?(e.consume(D),y):ce(D)?(e.consume(D),E):_(D)}function y(D){return D===null||D===60||D===61||D===62||D===96?n(D):D===34||D===39?(e.consume(D),l=D,w):ce(D)?(e.consume(D),y):N(D)}function w(D){return D===l?(e.consume(D),l=null,O):D===null||ee(D)?n(D):(e.consume(D),w)}function N(D){return D===null||D===34||D===39||D===47||D===60||D===61||D===62||D===96||me(D)?E(D):(e.consume(D),N)}function O(D){return D===47||D===62||ce(D)?_(D):n(D)}function S(D){return D===62?(e.consume(D),M):n(D)}function M(D){return D===null||ee(D)?B(D):ce(D)?(e.consume(D),M):n(D)}function B(D){return D===45&&i===2?(e.consume(D),W):D===60&&i===1?(e.consume(D),Y):D===62&&i===4?(e.consume(D),I):D===63&&i===3?(e.consume(D),J):D===93&&i===5?(e.consume(D),Z):!ee(D)||i!==6&&i!==7?D===null||ee(D)?(e.exit("htmlFlowData"),G(D)):(e.consume(D),B):(e.exit("htmlFlowData"),e.check(Dm,pe,G)(D))}function G(D){return e.check(Nm,R,pe)(D)}function R(D){return e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),q}function q(D){return D===null||ee(D)?G(D):(e.enter("htmlFlowData"),B(D))}function W(D){return D===45?(e.consume(D),J):B(D)}function Y(D){return D===47?(e.consume(D),s="",z):B(D)}function z(D){if(D===62){const ye=s.toLowerCase();return Qa.includes(ye)?(e.consume(D),I):B(D)}return ze(D)&&s.length<8?(e.consume(D),s+=String.fromCharCode(D),z):B(D)}function Z(D){return D===93?(e.consume(D),J):B(D)}function J(D){return D===62?(e.consume(D),I):D===45&&i===2?(e.consume(D),J):B(D)}function I(D){return D===null||ee(D)?(e.exit("htmlFlowData"),pe(D)):(e.consume(D),I)}function pe(D){return e.exit("htmlFlow"),t(D)}}},Dm={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Xn,t,n)}}},Nm={partial:!0,tokenize:function(e,t,n){const r=this;return function(o){return ee(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):n(o)};function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}},wm={name:"htmlText",tokenize:function(e,t,n){const r=this;let i,o,s;return function(I){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(I),a};function a(I){return I===33?(e.consume(I),l):I===47?(e.consume(I),y):I===63?(e.consume(I),x):ze(I)?(e.consume(I),O):n(I)}function l(I){return I===45?(e.consume(I),c):I===91?(e.consume(I),o=0,m):ze(I)?(e.consume(I),_):n(I)}function c(I){return I===45?(e.consume(I),p):n(I)}function u(I){return I===null?n(I):I===45?(e.consume(I),h):ee(I)?(s=u,z(I)):(e.consume(I),u)}function h(I){return I===45?(e.consume(I),p):u(I)}function p(I){return I===62?Y(I):I===45?h(I):u(I)}function m(I){return I==="CDATA[".charCodeAt(o++)?(e.consume(I),o===6?f:m):n(I)}function f(I){return I===null?n(I):I===93?(e.consume(I),T):ee(I)?(s=f,z(I)):(e.consume(I),f)}function T(I){return I===93?(e.consume(I),g):f(I)}function g(I){return I===62?Y(I):I===93?(e.consume(I),g):f(I)}function _(I){return I===null||I===62?Y(I):ee(I)?(s=_,z(I)):(e.consume(I),_)}function x(I){return I===null?n(I):I===63?(e.consume(I),E):ee(I)?(s=x,z(I)):(e.consume(I),x)}function E(I){return I===62?Y(I):x(I)}function y(I){return ze(I)?(e.consume(I),w):n(I)}function w(I){return I===45||Ge(I)?(e.consume(I),w):N(I)}function N(I){return ee(I)?(s=N,z(I)):ce(I)?(e.consume(I),N):Y(I)}function O(I){return I===45||Ge(I)?(e.consume(I),O):I===47||I===62||me(I)?S(I):n(I)}function S(I){return I===47?(e.consume(I),Y):I===58||I===95||ze(I)?(e.consume(I),M):ee(I)?(s=S,z(I)):ce(I)?(e.consume(I),S):Y(I)}function M(I){return I===45||I===46||I===58||I===95||Ge(I)?(e.consume(I),M):B(I)}function B(I){return I===61?(e.consume(I),G):ee(I)?(s=B,z(I)):ce(I)?(e.consume(I),B):S(I)}function G(I){return I===null||I===60||I===61||I===62||I===96?n(I):I===34||I===39?(e.consume(I),i=I,R):ee(I)?(s=G,z(I)):ce(I)?(e.consume(I),G):(e.consume(I),q)}function R(I){return I===i?(e.consume(I),i=void 0,W):I===null?n(I):ee(I)?(s=R,z(I)):(e.consume(I),R)}function q(I){return I===null||I===34||I===39||I===60||I===61||I===96?n(I):I===47||I===62||me(I)?S(I):(e.consume(I),q)}function W(I){return I===47||I===62||me(I)?S(I):n(I)}function Y(I){return I===62?(e.consume(I),e.exit("htmlTextData"),e.exit("htmlText"),t):n(I)}function z(I){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),Z}function Z(I){return ce(I)?ae(e,J,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):J(I)}function J(I){return e.enter("htmlTextData"),s(I)}}},uo={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&Ke(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,i,o,s=e.length,a=0;for(;s--;)if(n=e[s][1],r){if(n.type==="link"||n.type==="labelLink"&&n._inactive)break;e[s][0]==="enter"&&n.type==="labelLink"&&(n._inactive=!0)}else if(i){if(e[s][0]==="enter"&&(n.type==="labelImage"||n.type==="labelLink")&&!n._balanced&&(r=s,n.type!=="labelLink")){a=2;break}}else n.type==="labelEnd"&&(i=s);const l={type:e[r][1].type==="labelLink"?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[r][1].start},end:{...e[i][1].end}},u={type:"labelText",start:{...e[r+a+2][1].end},end:{...e[i-2][1].start}};return o=[["enter",l,t],["enter",c,t]],o=et(o,e.slice(r+1,r+a+3)),o=et(o,[["enter",u,t]]),o=et(o,Gr(t.parser.constructs.insideSpan.null,e.slice(r+a+4,i-3),t)),o=et(o,[["exit",u,t],e[i-2],e[i-1],["exit",c,t]]),o=et(o,e.slice(i+1)),o=et(o,[["exit",l,t]]),Ke(e,r,e.length,o),e},tokenize:function(e,t,n){const r=this;let i,o,s=r.events.length;for(;s--;)if((r.events[s][1].type==="labelImage"||r.events[s][1].type==="labelLink")&&!r.events[s][1]._balanced){i=r.events[s][1];break}return function(h){return i?i._inactive?u(h):(o=r.parser.defined.includes(at(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),a):n(h)};function a(h){return h===40?e.attempt(Lm,c,o?c:u)(h):h===91?e.attempt(Om,c,o?l:u)(h):o?c(h):u(h)}function l(h){return e.attempt(Rm,c,u)(h)}function c(h){return t(h)}function u(h){return i._balanced=!0,n(h)}}},Lm={tokenize:function(e,t,n){return function(u){return e.enter("resource"),e.enter("resourceMarker"),e.consume(u),e.exit("resourceMarker"),r};function r(u){return me(u)?Zn(e,i)(u):i(u)}function i(u){return u===41?c(u):qa(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(u)}function o(u){return me(u)?Zn(e,a)(u):c(u)}function s(u){return n(u)}function a(u){return u===34||u===39||u===40?Ya(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(u):c(u)}function l(u){return me(u)?Zn(e,c)(u):c(u)}function c(u){return u===41?(e.enter("resourceMarker"),e.consume(u),e.exit("resourceMarker"),e.exit("resource"),t):n(u)}}},Om={tokenize:function(e,t,n){const r=this;return function(s){return Wa.call(r,e,i,o,"reference","referenceMarker","referenceString")(s)};function i(s){return r.parser.defined.includes(at(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function o(s){return n(s)}}},Rm={tokenize:function(e,t,n){return function(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),r};function r(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):n(i)}}},vm={name:"labelStartImage",resolveAll:uo.resolveAll,tokenize:function(e,t,n){const r=this;return function(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"),o):n(s)}function o(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}},Pm={name:"labelStartLink",resolveAll:uo.resolveAll,tokenize:function(e,t,n){const r=this;return function(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),i};function i(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}},po={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ae(e,t,"linePrefix")}}},$r={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(a){return e.enter("thematicBreak"),(function(l){return r=l,o(l)})(a)};function o(a){return a===r?(e.enter("thematicBreakSequence"),s(a)):i>=3&&(a===null||ee(a))?(e.exit("thematicBreak"),t(a)):n(a)}function s(a){return a===r?(e.consume(a),i++,s):(e.exit("thematicBreakSequence"),ce(a)?ae(e,o,"whitespace")(a):o(a))}}},Qe={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Xn,i,o);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ae(e,t,"listItemIndent",r.containerState.size+1)(a)}function o(a){return r.containerState.furtherBlankLines||!ce(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Bm,t,s)(a))}function s(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,ae(e,e.attempt(Qe,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return function(p){const m=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:ao(p)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check($r,n,l)(p):l(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(p)}return n(p)};function a(p){return ao(p)&&++s<10?(e.consume(p),a):(!r.interrupt||s<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),l(p)):n(p)}function l(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Xn,r.interrupt?n:c,e.attempt(Mm,h,u))}function c(p){return r.containerState.initialBlankLine=!0,o++,h(p)}function u(p){return ce(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),h):n(p)}function h(p){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}},Mm={partial:!0,tokenize:function(e,t,n){const r=this;return ae(e,function(i){const o=r.events[r.events.length-1];return!ce(i)&&o&&o[1].type==="listItemPrefixWhitespace"?t(i):n(i)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},Bm={partial:!0,tokenize:function(e,t,n){const r=this;return ae(e,function(i){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(i):n(i)},"listItemIndent",r.containerState.size+1)}},Xa={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,o=e.length;for(;o--;)if(e[o][0]==="enter"){if(e[o][1].type==="content"){n=o;break}e[o][1].type==="paragraph"&&(r=o)}else e[o][1].type==="content"&&e.splice(o,1),i||e[o][1].type!=="definition"||(i=o);const s={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",s,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=s,e.push(["exit",s,t]),e},tokenize:function(e,t,n){const r=this;let i;return function(a){let l,c=r.events.length;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){l=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||l)?(e.enter("setextHeadingLine"),i=a,(function(u){return e.enter("setextHeadingLineSequence"),o(u)})(a)):n(a)};function o(a){return a===i?(e.consume(a),o):(e.exit("setextHeadingLineSequence"),ce(a)?ae(e,s,"lineSuffix")(a):s(a))}function s(a){return a===null||ee(a)?(e.exit("setextHeadingLine"),t(a)):n(a)}}},Fm={tokenize:function(e){const t=this,n=e.attempt(Xn,function(i){return i===null?void e.consume(i):(e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n)},e.attempt(this.parser.constructs.flowInitial,r,ae(e,e.attempt(this.parser.constructs.flow,r,e.attempt(bm,r)),"linePrefix")));return n;function r(i){if(i!==null)return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(i)}}},Um={resolveAll:Za()},Hm=Ka("string"),Gm=Ka("text");function Ka(e){return{resolveAll:Za(e==="text"?$m:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],i=t.attempt(r,o,s);return o;function o(c){return l(c)?i(c):s(c)}function s(c){if(c!==null)return t.enter("data"),t.consume(c),a;t.consume(c)}function a(c){return l(c)?(t.exit("data"),i(c)):(t.consume(c),a)}function l(c){if(c===null)return!0;const u=r[c];let h=-1;if(u)for(;++h<u.length;){const p=u[h];if(!p.previous||p.previous.call(n,n.previous))return!0}return!1}}}}function Za(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)r===void 0?t[i]&&t[i][1].type==="data"&&(r=i,i++):t[i]&&t[i][1].type==="data"||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function $m(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let o,s=i.length,a=-1,l=0;for(;s--;){const c=i[s];if(typeof c=="string"){for(a=c.length;c.charCodeAt(a-1)===32;)l++,a--;if(a)break;a=-1}else if(c===-2)o=!0,l++;else if(c!==-1){s++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const c={type:n===e.length||o||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?a:r.start._bufferIndex+a,_index:r.start._index+s,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}const Vm={42:Qe,43:Qe,45:Qe,48:Qe,49:Qe,50:Qe,51:Qe,52:Qe,53:Qe,54:Qe,55:Qe,56:Qe,57:Qe,62:Ha},jm={91:Am},zm={[-2]:co,[-1]:co,32:co},qm={35:Cm,42:$r,45:[Xa,$r],60:Sm,61:Xa,95:$r,96:ja,126:ja},Wm={38:$a,92:Ga},Ym={[-5]:po,[-4]:po,[-3]:po,33:vm,38:$a,42:lo,60:[fm,wm],91:Pm,92:[xm,Ga],93:uo,95:lo,96:_m},Qm={null:[lo,Um]},Xm=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:jm,disable:{null:[]},document:Vm,flow:qm,flowInitial:zm,insideSpan:Qm,string:Wm,text:Ym},Symbol.toStringTag,{value:"Module"}));function Km(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let s=[],a=[];const l={attempt:g(function(E,y){_(E,y.from)}),check:g(T),consume:function(E){ee(E)?(r.line++,r.column=1,r.offset+=E===-3?2:1,x()):E!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=E},enter:function(E,y){const w=y||{};return w.type=E,w.start=p(),c.events.push(["enter",w,c]),a.push(w),w},exit:function(E){const y=a.pop();return y.end=p(),c.events.push(["exit",y,c]),y},interrupt:g(T,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(E){i[E.line]=E.column,x()},events:[],now:p,parser:e,previous:null,sliceSerialize:function(E,y){return(function(w,N){let O=-1;const S=[];let M;for(;++O<w.length;){const B=w[O];let G;if(typeof B=="string")G=B;else switch(B){case-5:G="\r";break;case-4:G=`
|
|
3
3
|
`;break;case-3:G=`\r
|
|
4
4
|
`;break;case-2:G=N?" ":" ";break;case-1:if(!N&&M)continue;G=" ";break;default:G=String.fromCharCode(B)}M=B===-2,S.push(G)}return S.join("")})(h(E),y)},sliceStream:h,write:function(E){return s=et(s,E),m(),s[s.length-1]!==null?[]:(_(t,0),c.events=Gr(o,c.events,c),c.events)}};let u=t.tokenize.call(c,l);return t.resolveAll&&o.push(t),c;function h(E){return(function(y,w){const N=w.start._index,O=w.start._bufferIndex,S=w.end._index,M=w.end._bufferIndex;let B;if(N===S)B=[y[N].slice(O,M)];else{if(B=y.slice(N,S),O>-1){const G=B[0];typeof G=="string"?B[0]=G.slice(O):B.shift()}M>0&&B.push(y[S].slice(0,M))}return B})(s,E)}function p(){const{_bufferIndex:E,_index:y,line:w,column:N,offset:O}=r;return{_bufferIndex:E,_index:y,line:w,column:N,offset:O}}function m(){let E;for(;r._index<s.length;){const y=s[r._index];if(typeof y=="string")for(E=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===E&&r._bufferIndex<y.length;)f(y.charCodeAt(r._bufferIndex));else f(y)}}function f(E){u=u(E)}function T(E,y){y.restore()}function g(E,y){return function(w,N,O){let S,M,B,G;return Array.isArray(w)?R(w):"tokenize"in w?R([w]):(function(z){return Z;function Z(J){const I=J!==null&&z[J],pe=J!==null&&z.null;return R([...Array.isArray(I)?I:I?[I]:[],...Array.isArray(pe)?pe:pe?[pe]:[]])(J)}})(w);function R(z){return S=z,M=0,z.length===0?O:q(z[M])}function q(z){return function(Z){return G=(function(){const J=p(),I=c.previous,pe=c.currentConstruct,D=c.events.length,ye=Array.from(a);return{from:D,restore:ke};function ke(){r=J,c.previous=I,c.currentConstruct=pe,c.events.length=D,a=ye,x()}})(),B=z,z.partial||(c.currentConstruct=z),z.name&&c.parser.constructs.disable.null.includes(z.name)?Y():z.tokenize.call(y?Object.assign(Object.create(c),y):c,l,W,Y)(Z)}}function W(z){return E(B,G),N}function Y(z){return G.restore(),++M<S.length?q(S[M]):O}}}function _(E,y){E.resolveAll&&!o.includes(E)&&o.push(E),E.resolve&&Ke(c.events,y,c.events.length-y,E.resolve(c.events.slice(y),c)),E.resolveTo&&(c.events=E.resolveTo(c.events,c))}function x(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}const Ja=/[\0\t\n\r]/g,Zm=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Jm(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),i=r===120||r===88;return Ba(n.slice(i?2:1),i?16:10)}return so(n)||e}const el={}.hasOwnProperty;function ef(e,t,n){return typeof t!="string"&&(n=t,t=void 0),(function(r){const i={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Sd),autolinkProtocol:R,autolinkEmail:R,atxHeading:l(xd),blockQuote:l(jk),characterEscape:R,characterReference:R,codeFenced:l(yd),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:l(yd,c),codeText:l(zk,c),codeTextData:R,data:R,codeFlowValue:R,definition:l(qk),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:l(Wk),hardBreakEscape:l(Cd),hardBreakTrailing:l(Cd),htmlFlow:l(Id,c),htmlFlowData:R,htmlText:l(Id,c),htmlTextData:R,image:l(Yk),label:c,link:l(Sd),listItem:l(Qk),listItemValue:T,listOrdered:l(Dd,f),listUnordered:l(Dd),paragraph:l(Xk),reference:Lt,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:l(xd),strong:l(Kk),thematicBreak:l(Jk)},exit:{atxHeading:h(),atxHeadingSequence:S,autolink:h(),autolinkEmail:Vk,autolinkProtocol:Wi,blockQuote:h(),characterEscapeValue:q,characterReferenceMarkerHexadecimal:qi,characterReferenceMarkerNumeric:qi,characterReferenceValue:ra,characterReference:$n,codeFenced:h(E),codeFencedFence:x,codeFencedFenceInfo:g,codeFencedFenceMeta:_,codeFlowValue:q,codeIndented:h(y),codeText:h(J),codeTextData:q,data:q,definition:h(),definitionDestinationString:O,definitionLabelString:w,definitionTitleString:N,emphasis:h(),hardBreakEscape:h(Y),hardBreakTrailing:h(Y),htmlFlow:h(z),htmlFlowData:q,htmlText:h(Z),htmlTextData:q,image:h(pe),label:ye,labelText:D,lineEnding:W,link:h(I),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:na,resourceDestinationString:ke,resourceTitleString:Ue,resource:Gn,setextHeading:h(G),setextHeadingLineSequence:B,setextHeadingText:M,strong:h(),thematicBreak:h()}};tl(i,(r||{}).mdastExtensions||[]);const o={};return s;function s(F){let te={type:"root",children:[]};const ne={stack:[te],tokenStack:[],config:i,enter:u,exit:p,buffer:c,resume:m,data:o},fe=[];let ge=-1;for(;++ge<F.length;)(F[ge][1].type==="listOrdered"||F[ge][1].type==="listUnordered")&&(F[ge][0]==="enter"?fe.push(ge):ge=a(F,fe.pop(),ge));for(ge=-1;++ge<F.length;){const ut=i[F[ge][0]];el.call(ut,F[ge][1].type)&&ut[F[ge][1].type].call(Object.assign({sliceSerialize:F[ge][2].sliceSerialize},ne),F[ge][1])}if(ne.tokenStack.length>0){const ut=ne.tokenStack[ne.tokenStack.length-1];(ut[1]||nl).call(ne,void 0,ut[0])}for(te.position={start:Pt(F.length>0?F[0][1].start:{line:1,column:1,offset:0}),end:Pt(F.length>0?F[F.length-2][1].end:{line:1,column:1,offset:0})},ge=-1;++ge<i.transforms.length;)te=i.transforms[ge](te)||te;return te}function a(F,te,ne){let fe,ge,ut,Rr,Wt=te-1,vr=-1,Nd=!1;for(;++Wt<=ne;){const Je=F[Wt];switch(Je[1].type){case"listUnordered":case"listOrdered":case"blockQuote":Je[0]==="enter"?vr++:vr--,Rr=void 0;break;case"lineEndingBlank":Je[0]==="enter"&&(!fe||Rr||vr||ut||(ut=Wt),Rr=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Rr=void 0}if(!vr&&Je[0]==="enter"&&Je[1].type==="listItemPrefix"||vr===-1&&Je[0]==="exit"&&(Je[1].type==="listUnordered"||Je[1].type==="listOrdered")){if(fe){let Vn=Wt;for(ge=void 0;Vn--;){const Ot=F[Vn];if(Ot[1].type==="lineEnding"||Ot[1].type==="lineEndingBlank"){if(Ot[0]==="exit")continue;ge&&(F[ge][1].type="lineEndingBlank",Nd=!0),Ot[1].type="lineEnding",ge=Vn}else if(Ot[1].type!=="linePrefix"&&Ot[1].type!=="blockQuotePrefix"&&Ot[1].type!=="blockQuotePrefixWhitespace"&&Ot[1].type!=="blockQuoteMarker"&&Ot[1].type!=="listItemIndent")break}ut&&(!ge||ut<ge)&&(fe._spread=!0),fe.end=Object.assign({},ge?F[ge][1].start:Je[1].end),F.splice(ge||Wt,0,["exit",fe,Je[2]]),Wt++,ne++}if(Je[1].type==="listItemPrefix"){const Vn={type:"listItem",_spread:!1,start:Object.assign({},Je[1].start),end:void 0};fe=Vn,F.splice(Wt,0,["enter",Vn,Je[2]]),Wt++,ne++,ut=void 0,Rr=!0}}}return F[te][1]._spread=Nd,ne}function l(F,te){return ne;function ne(fe){u.call(this,F(fe),fe),te&&te.call(this,fe)}}function c(){this.stack.push({type:"fragment",children:[]})}function u(F,te,ne){this.stack[this.stack.length-1].children.push(F),this.stack.push(F),this.tokenStack.push([te,ne||void 0]),F.position={start:Pt(te.start),end:void 0}}function h(F){return te;function te(ne){F&&F.call(this,ne),p.call(this,ne)}}function p(F,te){const ne=this.stack.pop(),fe=this.tokenStack.pop();if(!fe)throw new Error("Cannot close `"+F.type+"` ("+Yn({start:F.start,end:F.end})+"): it\u2019s not open");fe[0].type!==F.type&&(te?te.call(this,F,fe[0]):(fe[1]||nl).call(this,F,fe[0])),ne.position.end=Pt(F.end)}function m(){return oo(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function T(F){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(F),10),this.data.expectingFirstListItemValue=void 0)}function g(){const F=this.resume();this.stack[this.stack.length-1].lang=F}function _(){const F=this.resume();this.stack[this.stack.length-1].meta=F}function x(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function E(){const F=this.resume();this.stack[this.stack.length-1].value=F.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const F=this.resume();this.stack[this.stack.length-1].value=F.replace(/(\r?\n|\r)$/g,"")}function w(F){const te=this.resume(),ne=this.stack[this.stack.length-1];ne.label=te,ne.identifier=at(this.sliceSerialize(F)).toLowerCase()}function N(){const F=this.resume();this.stack[this.stack.length-1].title=F}function O(){const F=this.resume();this.stack[this.stack.length-1].url=F}function S(F){const te=this.stack[this.stack.length-1];if(!te.depth){const ne=this.sliceSerialize(F).length;te.depth=ne}}function M(){this.data.setextHeadingSlurpLineEnding=!0}function B(F){this.stack[this.stack.length-1].depth=this.sliceSerialize(F).codePointAt(0)===61?1:2}function G(){this.data.setextHeadingSlurpLineEnding=void 0}function R(F){const te=this.stack[this.stack.length-1].children;let ne=te[te.length-1];ne&&ne.type==="text"||(ne=Zk(),ne.position={start:Pt(F.start),end:void 0},te.push(ne)),this.stack.push(ne)}function q(F){const te=this.stack.pop();te.value+=this.sliceSerialize(F),te.position.end=Pt(F.end)}function W(F){const te=this.stack[this.stack.length-1];if(this.data.atHardBreak)return te.children[te.children.length-1].position.end=Pt(F.end),void(this.data.atHardBreak=void 0);!this.data.setextHeadingSlurpLineEnding&&i.canContainEols.includes(te.type)&&(R.call(this,F),q.call(this,F))}function Y(){this.data.atHardBreak=!0}function z(){const F=this.resume();this.stack[this.stack.length-1].value=F}function Z(){const F=this.resume();this.stack[this.stack.length-1].value=F}function J(){const F=this.resume();this.stack[this.stack.length-1].value=F}function I(){const F=this.stack[this.stack.length-1];if(this.data.inReference){const te=this.data.referenceType||"shortcut";F.type+="Reference",F.referenceType=te,delete F.url,delete F.title}else delete F.identifier,delete F.label;this.data.referenceType=void 0}function pe(){const F=this.stack[this.stack.length-1];if(this.data.inReference){const te=this.data.referenceType||"shortcut";F.type+="Reference",F.referenceType=te,delete F.url,delete F.title}else delete F.identifier,delete F.label;this.data.referenceType=void 0}function D(F){const te=this.sliceSerialize(F),ne=this.stack[this.stack.length-2];ne.label=(function(fe){return fe.replace(Zm,Jm)})(te),ne.identifier=at(te).toLowerCase()}function ye(){const F=this.stack[this.stack.length-1],te=this.resume(),ne=this.stack[this.stack.length-1];if(this.data.inReference=!0,ne.type==="link"){const fe=F.children;ne.children=fe}else ne.alt=te}function ke(){const F=this.resume();this.stack[this.stack.length-1].url=F}function Ue(){const F=this.resume();this.stack[this.stack.length-1].title=F}function Gn(){this.data.inReference=void 0}function Lt(){this.data.referenceType="collapsed"}function na(F){const te=this.resume(),ne=this.stack[this.stack.length-1];ne.label=te,ne.identifier=at(this.sliceSerialize(F)).toLowerCase(),this.data.referenceType="full"}function qi(F){this.data.characterReferenceType=F.type}function ra(F){const te=this.sliceSerialize(F),ne=this.data.characterReferenceType;let fe;ne?(fe=Ba(te,ne==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):fe=so(te),this.stack[this.stack.length-1].value+=fe}function $n(F){this.stack.pop().position.end=Pt(F.end)}function Wi(F){q.call(this,F),this.stack[this.stack.length-1].url=this.sliceSerialize(F)}function Vk(F){q.call(this,F),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(F)}function jk(){return{type:"blockquote",children:[]}}function yd(){return{type:"code",lang:null,meta:null,value:""}}function zk(){return{type:"inlineCode",value:""}}function qk(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Wk(){return{type:"emphasis",children:[]}}function xd(){return{type:"heading",depth:0,children:[]}}function Cd(){return{type:"break"}}function Id(){return{type:"html",value:""}}function Yk(){return{type:"image",title:null,url:"",alt:null}}function Sd(){return{type:"link",title:null,url:"",children:[]}}function Dd(F){return{type:"list",ordered:F.type==="listOrdered",start:null,spread:F._spread,children:[]}}function Qk(F){return{type:"listItem",spread:F._spread,checked:null,children:[]}}function Xk(){return{type:"paragraph",children:[]}}function Kk(){return{type:"strong",children:[]}}function Zk(){return{type:"text",value:""}}function Jk(){return{type:"thematicBreak"}}})(n)((function(r){for(;!za(r););return r})((function(r){const i={constructs:Ma([Xm,...(r||{}).extensions||[]]),content:o(dm),defined:[],document:o(mm),flow:o(Fm),lazy:{},string:o(Hm),text:o(Gm)};return i;function o(s){return function(a){return Km(i,s,a)}}})(n).document().write((function(){let r,i=1,o="",s=!0;return function(a,l,c){const u=[];let h,p,m,f,T;for(a=o+(typeof a=="string"?a.toString():new TextDecoder(l||void 0).decode(a)),m=0,o="",s&&(a.charCodeAt(0)===65279&&m++,s=void 0);m<a.length;){if(Ja.lastIndex=m,h=Ja.exec(a),f=h&&h.index!==void 0?h.index:a.length,T=a.charCodeAt(f),!h){o=a.slice(m);break}if(T===10&&m===f&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),m<f&&(u.push(a.slice(m,f)),i+=f-m),T){case 0:u.push(65533),i++;break;case 9:for(p=4*Math.ceil(i/4),u.push(-2);i++<p;)u.push(-1);break;case 10:u.push(-4),i=1;break;default:r=!0,i=1}m=f+1}return c&&(r&&u.push(-5),o&&u.push(o),u.push(null)),u}})()(e,t,!0))))}function Pt(e){return{line:e.line,column:e.column,offset:e.offset}}function tl(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?tl(e,r):tf(e,r)}}function tf(e,t){let n;for(n in t)if(el.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function nl(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Yn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Yn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Yn({start:t.start,end:t.end})+") is still open")}function nf(e){const t=this;t.parser=function(n){return ef(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function rl(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=r:i.push({type:"text",value:r}),i}function il(e){const t=e.spread;return t??e.children.length>1}function rf(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(ol(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(ol(t.slice(i),i>0,!1)),o.join("")}function ol(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===9||o===32;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===9||o===32;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}const of={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
5
5
|
`}]},code:function(e,t){const n=t.value?t.value+`
|
|
@@ -243,7 +243,7 @@ ${e}</tr>
|
|
|
243
243
|
`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
|
|
244
244
|
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${_t(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=Ph(e);if(i===null)return r;let o='<a href="'+(e=i)+'"';return t&&(o+=' title="'+_t(t)+'"'),o+=">"+r+"</a>",o}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=Ph(e);if(i===null)return _t(n);let o=`<img src="${e=i}" alt="${n}"`;return t&&(o+=` title="${_t(t)}"`),o+=">",o}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:_t(e.text)}},Xs=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},Dt=class ha{constructor(t){v(this,"options");v(this,"renderer");v(this,"textRenderer");this.options=t||ln,this.options.renderer=this.options.renderer||new $i,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Xs}static parse(t,n){return new ha(n).parse(t)}static parseInline(t,n){return new ha(n).parseInline(t)}parse(t,n=!0){var i,o;let r="";for(let s=0;s<t.length;s++){let a=t[s];if((o=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&o[a.type]){let c=a,u=this.options.extensions.renderers[c.type].call({parser:this},c);if(u!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(c.type)){r+=u||"";continue}}let l=a;switch(l.type){case"space":r+=this.renderer.space(l);continue;case"hr":r+=this.renderer.hr(l);continue;case"heading":r+=this.renderer.heading(l);continue;case"code":r+=this.renderer.code(l);continue;case"table":r+=this.renderer.table(l);continue;case"blockquote":r+=this.renderer.blockquote(l);continue;case"list":r+=this.renderer.list(l);continue;case"html":r+=this.renderer.html(l);continue;case"def":r+=this.renderer.def(l);continue;case"paragraph":r+=this.renderer.paragraph(l);continue;case"text":{let c=l,u=this.renderer.text(c);for(;s+1<t.length&&t[s+1].type==="text";)c=t[++s],u+=`
|
|
245
245
|
`+this.renderer.text(c);r+=n?this.renderer.paragraph({type:"paragraph",raw:u,text:u,tokens:[{type:"text",raw:u,text:u,escaped:!0}]}):u;continue}default:{let c='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return r}parseInline(t,n=this.renderer){var i,o;let r="";for(let s=0;s<t.length;s++){let a=t[s];if((o=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&o[a.type]){let c=this.options.extensions.renderers[a.type].call({parser:this},a);if(c!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){r+=c||"";continue}}let l=a;switch(l.type){case"escape":case"text":r+=n.text(l);break;case"html":r+=n.html(l);break;case"link":r+=n.link(l);break;case"image":r+=n.image(l);break;case"strong":r+=n.strong(l);break;case"em":r+=n.em(l);break;case"codespan":r+=n.codespan(l);break;case"br":r+=n.br(l);break;case"del":r+=n.del(l);break;default:{let c='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return r}},Vi=(ta=class{constructor(e){v(this,"options");v(this,"block");this.options=e||ln}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?Et.lex:Et.lexInline}provideParser(){return this.block?Dt.parse:Dt.parseInline}},v(ta,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"])),ta),cn=new class{constructor(...e){v(this,"defaults",{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null});v(this,"options",this.setOptions);v(this,"parse",this.parseMarkdown(!0));v(this,"parseInline",this.parseMarkdown(!1));v(this,"Parser",Dt);v(this,"Renderer",$i);v(this,"TextRenderer",Xs);v(this,"Lexer",Et);v(this,"Tokenizer",Gi);v(this,"Hooks",Vi);this.use(...e)}walkTokens(e,t){var r,i;let n=[];for(let o of e)switch(n=n.concat(t.call(this,o)),o.type){case"table":{let s=o;for(let a of s.header)n=n.concat(this.walkTokens(a.tokens,t));for(let a of s.rows)for(let l of a)n=n.concat(this.walkTokens(l.tokens,t));break}case"list":{let s=o;n=n.concat(this.walkTokens(s.items,t));break}default:{let s=o;(i=(r=this.defaults.extensions)==null?void 0:r.childTokens)!=null&&i[s.type]?this.defaults.extensions.childTokens[s.type].forEach(a=>{let l=s[a].flat(1/0);n=n.concat(this.walkTokens(l,t))}):s.tokens&&(n=n.concat(this.walkTokens(s.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let r={...n};if(r.async=this.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){let o=t.renderers[i.name];t.renderers[i.name]=o?function(...s){let a=i.renderer.apply(this,s);return a===!1&&(a=o.apply(this,s)),a}:i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let o=t[i.level];o?o.unshift(i.tokenizer):t[i.level]=[i.tokenizer],i.start&&(i.level==="block"?t.startBlock?t.startBlock.push(i.start):t.startBlock=[i.start]:i.level==="inline"&&(t.startInline?t.startInline.push(i.start):t.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(t.childTokens[i.name]=i.childTokens)}),r.extensions=t),n.renderer){let i=this.defaults.renderer||new $i(this.defaults);for(let o in n.renderer){if(!(o in i))throw new Error(`renderer '${o}' does not exist`);if(["options","parser"].includes(o))continue;let s=o,a=n.renderer[s],l=i[s];i[s]=(...c)=>{let u=a.apply(i,c);return u===!1&&(u=l.apply(i,c)),u||""}}r.renderer=i}if(n.tokenizer){let i=this.defaults.tokenizer||new Gi(this.defaults);for(let o in n.tokenizer){if(!(o in i))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;let s=o,a=n.tokenizer[s],l=i[s];i[s]=(...c)=>{let u=a.apply(i,c);return u===!1&&(u=l.apply(i,c)),u}}r.tokenizer=i}if(n.hooks){let i=this.defaults.hooks||new Vi;for(let o in n.hooks){if(!(o in i))throw new Error(`hook '${o}' does not exist`);if(["options","block"].includes(o))continue;let s=o,a=n.hooks[s],l=i[s];Vi.passThroughHooks.has(o)?i[s]=c=>{if(this.defaults.async)return Promise.resolve(a.call(i,c)).then(h=>l.call(i,h));let u=a.call(i,c);return l.call(i,u)}:i[s]=(...c)=>{let u=a.apply(i,c);return u===!1&&(u=l.apply(i,c)),u}}r.hooks=i}if(n.walkTokens){let i=this.defaults.walkTokens,o=n.walkTokens;r.walkTokens=function(s){let a=[];return a.push(o.call(this,s)),i&&(a=a.concat(i.call(this,s))),a}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Et.lex(e,t??this.defaults)}parser(e,t){return Dt.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},o=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return o(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));i.hooks&&(i.hooks.options=i,i.hooks.block=e);let s=i.hooks?i.hooks.provideLexer():e?Et.lex:Et.lexInline,a=i.hooks?i.hooks.provideParser():e?Dt.parse:Dt.parseInline;if(i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(t):t).then(l=>s(l,i)).then(l=>i.hooks?i.hooks.processAllTokens(l):l).then(l=>i.walkTokens?Promise.all(this.walkTokens(l,i.walkTokens)).then(()=>l):l).then(l=>a(l,i)).then(l=>i.hooks?i.hooks.postprocess(l):l).catch(o);try{i.hooks&&(t=i.hooks.preprocess(t));let l=s(t,i);i.hooks&&(l=i.hooks.processAllTokens(l)),i.walkTokens&&this.walkTokens(l,i.walkTokens);let c=a(l,i);return i.hooks&&(c=i.hooks.postprocess(c)),c}catch(l){return o(l)}}}onError(e,t){return n=>{if(n.message+=`
|
|
246
|
-
Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error occurred:</p><pre>"+_t(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}};function de(e,t){return cn.parse(e,t)}de.options=de.setOptions=function(e){return cn.setOptions(e),de.defaults=cn.defaults,Ah(de.defaults),de},de.getDefaults=Xb,de.defaults=ln,de.use=function(...e){return cn.use(...e),de.defaults=cn.defaults,Ah(de.defaults),de},de.walkTokens=function(e,t){return cn.walkTokens(e,t)},de.parseInline=cn.parseInline,de.Parser=Dt,de.parser=Dt.parse,de.Renderer=$i,de.TextRenderer=Xs,de.Lexer=Et,de.lexer=Et.lex,de.Tokenizer=Gi,de.Hooks=Vi,de.parse=de,de.options,de.setOptions,de.use,de.walkTokens,de.parseInline,Dt.parse,Et.lex;var ue=(...e)=>Qb(uA(e)),Ks=(e,t,n)=>{let r=typeof t=="string"?new Blob([t],{type:n}):t,i=URL.createObjectURL(r),o=document.createElement("a");o.href=i,o.download=e,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL(i)},_k=/<pre(\s|>)/,Zs=K.createContext({code:""}),Ek=new class{constructor(){this.lightHighlighter=null,this.darkHighlighter=null,this.lightTheme=null,this.darkTheme=null,this.loadedLanguages=new Set,this.initializationPromise=null}isLanguageSupported(e){return Object.hasOwn(fp,e)}getFallbackLanguage(){return"text"}async ensureHighlightersInitialized(e,t){var n,r;let[i,o]=e,s=Tb({forgiving:!0}),a=!this.lightHighlighter||this.lightTheme!==i,l=!this.darkHighlighter||this.darkTheme!==o;(a||l)&&this.loadedLanguages.clear();let c=this.isLanguageSupported(t),u=!this.loadedLanguages.has(t)&&c;if(a?(this.lightHighlighter=await _p({themes:[i],langs:c?[t]:[],engine:s}),this.lightTheme=i,c&&this.loadedLanguages.add(t)):u&&await((n=this.lightHighlighter)==null?void 0:n.loadLanguage(t)),l){let h=u?[...this.loadedLanguages].concat(c?[t]:[]):Array.from(this.loadedLanguages);this.darkHighlighter=await _p({themes:[o],langs:h.length>0?h:c?[t]:[],engine:s}),this.darkTheme=o}else u&&await((r=this.darkHighlighter)==null?void 0:r.loadLanguage(t));u&&this.loadedLanguages.add(t)}async highlightCode(e,t,n,r){var i,o;this.initializationPromise&&await this.initializationPromise,this.initializationPromise=this.ensureHighlightersInitialized(n,t),await this.initializationPromise,this.initializationPromise=null;let[s,a]=n,l=this.isLanguageSupported(t)?t:this.getFallbackLanguage(),c=(i=this.lightHighlighter)==null?void 0:i.codeToHtml(e,{lang:l,theme:s}),u=(o=this.darkHighlighter)==null?void 0:o.codeToHtml(e,{lang:l,theme:a}),h=p=>r?p.replace(_k,`<pre class="${r}"$1`):p;return[Fh(h(c)),Fh(h(u))]}},Fh=e=>e.replace(/(<pre[^>]*)(style="[^"]*background[^";]*;?[^"]*")([^>]*>)/g,"$1$3"),Tk=({code:e,language:t,className:n,children:r,preClassName:i,...o})=>{let[s,a]=K.useState(""),[l,c]=K.useState(""),u=K.useRef(!1),[h,p]=K.useContext(fd);return K.useEffect(()=>(u.current=!0,Ek.highlightCode(e,t,[h,p],i).then(([m,f])=>{u.current&&(a(m),c(f))}),()=>{u.current=!1}),[e,t,h,p,i]),U.jsx(Zs.Provider,{value:{code:e},children:U.jsxs("div",{className:"my-4 w-full overflow-hidden rounded-xl border","data-code-block-container":!0,"data-language":t,children:[U.jsxs("div",{className:"flex items-center justify-between bg-muted/80 p-3 text-muted-foreground text-xs","data-code-block-header":!0,"data-language":t,children:[U.jsx("span",{className:"ml-1 font-mono lowercase",children:t}),U.jsx("div",{className:"flex items-center gap-2",children:r})]}),U.jsx("div",{className:"w-full",children:U.jsxs("div",{className:"min-w-full",children:[U.jsx("div",{className:ue("overflow-x-auto dark:hidden",n),dangerouslySetInnerHTML:{__html:s},"data-code-block":!0,"data-language":t,...o}),U.jsx("div",{className:ue("hidden overflow-x-auto dark:block",n),dangerouslySetInnerHTML:{__html:l},"data-code-block":!0,"data-language":t,...o})]})})]})})},Uh={"1c":"1c","1c-query":"1cq",abap:"abap","actionscript-3":"as",ada:"ada",adoc:"adoc","angular-html":"html","angular-ts":"ts",apache:"conf",apex:"cls",apl:"apl",applescript:"applescript",ara:"ara",asciidoc:"adoc",asm:"asm",astro:"astro",awk:"awk",ballerina:"bal",bash:"sh",bat:"bat",batch:"bat",be:"be",beancount:"beancount",berry:"berry",bibtex:"bib",bicep:"bicep",blade:"blade.php",bsl:"bsl",c:"c","c#":"cs","c++":"cpp",cadence:"cdc",cairo:"cairo",cdc:"cdc",clarity:"clar",clj:"clj",clojure:"clj","closure-templates":"soy",cmake:"cmake",cmd:"cmd",cobol:"cob",codeowners:"CODEOWNERS",codeql:"ql",coffee:"coffee",coffeescript:"coffee","common-lisp":"lisp",console:"sh",coq:"v",cpp:"cpp",cql:"cql",crystal:"cr",cs:"cs",csharp:"cs",css:"css",csv:"csv",cue:"cue",cypher:"cql",d:"d",dart:"dart",dax:"dax",desktop:"desktop",diff:"diff",docker:"dockerfile",dockerfile:"dockerfile",dotenv:"env","dream-maker":"dm",edge:"edge",elisp:"el",elixir:"ex",elm:"elm","emacs-lisp":"el",erb:"erb",erl:"erl",erlang:"erl",f:"f","f#":"fs",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"f90",f95:"f95",fennel:"fnl",fish:"fish",fluent:"ftl",for:"for","fortran-fixed-form":"f","fortran-free-form":"f90",fs:"fs",fsharp:"fs",fsl:"fsl",ftl:"ftl",gdresource:"tres",gdscript:"gd",gdshader:"gdshader",genie:"gs",gherkin:"feature","git-commit":"gitcommit","git-rebase":"gitrebase",gjs:"js",gleam:"gleam","glimmer-js":"js","glimmer-ts":"ts",glsl:"glsl",gnuplot:"plt",go:"go",gql:"gql",graphql:"graphql",groovy:"groovy",gts:"gts",hack:"hack",haml:"haml",handlebars:"hbs",haskell:"hs",haxe:"hx",hbs:"hbs",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",hs:"hs",html:"html","html-derivative":"html",http:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",jade:"jade",java:"java",javascript:"js",jinja:"jinja",jison:"jison",jl:"jl",js:"js",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",julia:"jl",kotlin:"kt",kql:"kql",kt:"kt",kts:"kts",kusto:"kql",latex:"tex",lean:"lean",lean4:"lean",less:"less",liquid:"liquid",lisp:"lisp",lit:"lit",llvm:"ll",log:"log",logo:"logo",lua:"lua",luau:"luau",make:"mak",makefile:"mak",markdown:"md",marko:"marko",matlab:"m",md:"md",mdc:"mdc",mdx:"mdx",mediawiki:"wiki",mermaid:"mmd",mips:"s",mipsasm:"s",mmd:"mmd",mojo:"mojo",move:"move",nar:"nar",narrat:"narrat",nextflow:"nf",nf:"nf",nginx:"conf",nim:"nim",nix:"nix",nu:"nu",nushell:"nu",objc:"m","objective-c":"m","objective-cpp":"mm",ocaml:"ml",pascal:"pas",perl:"pl",perl6:"p6",php:"php",plsql:"pls",po:"po",polar:"polar",postcss:"pcss",pot:"pot",potx:"potx",powerquery:"pq",powershell:"ps1",prisma:"prisma",prolog:"pl",properties:"properties",proto:"proto",protobuf:"proto",ps:"ps",ps1:"ps1",pug:"pug",puppet:"pp",purescript:"purs",py:"py",python:"py",ql:"ql",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",racket:"rkt",raku:"raku",razor:"cshtml",rb:"rb",reg:"reg",regex:"regex",regexp:"regexp",rel:"rel",riscv:"s",rs:"rs",rst:"rst",ruby:"rb",rust:"rs",sas:"sas",sass:"sass",scala:"scala",scheme:"scm",scss:"scss",sdbl:"sdbl",sh:"sh",shader:"shader",shaderlab:"shader",shell:"sh",shellscript:"sh",shellsession:"sh",smalltalk:"st",solidity:"sol",soy:"soy",sparql:"rq",spl:"spl",splunk:"spl",sql:"sql","ssh-config":"config",stata:"do",styl:"styl",stylus:"styl",svelte:"svelte",swift:"swift","system-verilog":"sv",systemd:"service",talon:"talon",talonscript:"talon",tasl:"tasl",tcl:"tcl",templ:"templ",terraform:"tf",tex:"tex",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"ts","ts-tags":"ts",tsp:"tsp",tsv:"tsv",tsx:"tsx",turtle:"ttl",twig:"twig",typ:"typ",typescript:"ts",typespec:"tsp",typst:"typ",v:"v",vala:"vala",vb:"vb",verilog:"v",vhdl:"vhdl",vim:"vim",viml:"vim",vimscript:"vim",vue:"vue","vue-html":"html","vue-vine":"vine",vy:"vy",vyper:"vy",wasm:"wasm",wenyan:"wy",wgsl:"wgsl",wiki:"wiki",wikitext:"wiki",wit:"wit",wl:"wl",wolfram:"wl",xml:"xml",xsl:"xsl",yaml:"yaml",yml:"yml",zenscript:"zs",zig:"zig",zsh:"zsh",\u6587\u8A00:"wy"},Hh=({onDownload:e,onError:t,language:n,children:r,className:i,code:o,...s})=>{let a=K.useContext(Zs).code,l=o??a,c=`file.${n&&n in Uh?Uh[n]:"txt"}`;return U.jsx("button",{className:ue("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground",i),onClick:()=>{try{Ks(c,l,"text/plain"),e==null||e()}catch(u){t==null||t(u)}},title:"Download file",type:"button",...s,children:r??U.jsx(aa,{size:14})})},Gh=({onCopy:e,onError:t,timeout:n=2e3,children:r,className:i,code:o,...s})=>{let[a,l]=K.useState(!1),c=K.useRef(0),u=K.useContext(Zs).code,h=o??u;K.useEffect(()=>()=>{window.clearTimeout(c.current)},[]);let p=a?Rd:vd;return U.jsx("button",{className:ue("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground",i),onClick:async()=>{var m;if(typeof window<"u"&&(m=navigator==null?void 0:navigator.clipboard)!=null&&m.writeText)try{a||(await navigator.clipboard.writeText(h),l(!0),e==null||e(),c.current=window.setTimeout(()=>l(!1),n))}catch(f){t==null||t(f)}else t==null||t(new Error("Clipboard API not available"))},type:"button",...s,children:r??U.jsx(p,{size:14})})},bk=({chart:e,className:t,config:n})=>{let[r,i]=K.useState(null),[o,s]=K.useState(!0),[a,l]=K.useState(""),[c,u]=K.useState("");if(K.useEffect(()=>{(async()=>{try{i(null),s(!0);let p=await(async g=>{let _={startOnLoad:!1,theme:"default",securityLevel:"strict",fontFamily:"monospace",suppressErrorRendering:!0,...g},x=(await k(async()=>{const{default:E}=await import("./mermaid.core-DzthE35Y.js").then(async y=>(await y.__tla,y)).then(y=>y.ar);return{default:E}},__vite__mapDeps([95,96,97,98,99,100,101]),import.meta.url)).default;return x.initialize(_),x})(n),m=e.split("").reduce((g,_)=>(g<<5)-g+_.charCodeAt(0)|0,0),f=`mermaid-${Math.abs(m)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:T}=await p.render(f,e);l(T),u(T)}catch(p){if(!c&&!a){let m=p instanceof Error?p.message:"Failed to render Mermaid chart";i(m)}}finally{s(!1)}})()},[e,n]),o&&!a&&!c)return U.jsx("div",{className:ue("my-4 flex justify-center p-4",t),children:U.jsxs("div",{className:"flex items-center space-x-2 text-muted-foreground",children:[U.jsx("div",{className:"h-4 w-4 animate-spin rounded-full border-current border-b-2"}),U.jsx("span",{className:"text-sm",children:"Loading diagram..."})]})});if(r&&!a&&!c)return U.jsxs("div",{className:ue("rounded-lg border border-red-200 bg-red-50 p-4",t),children:[U.jsxs("p",{className:"font-mono text-red-700 text-sm",children:["Mermaid Error: ",r]}),U.jsxs("details",{className:"mt-2",children:[U.jsx("summary",{className:"cursor-pointer text-red-600 text-xs",children:"Show Code"}),U.jsx("pre",{className:"mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs",children:e})]})]});let h=a||c;return U.jsx("div",{"aria-label":"Mermaid chart",className:ue("my-4 flex justify-center",t),dangerouslySetInnerHTML:{__html:h},role:"img"})};function $h(e){var t,n;let r=[],i=[],o=e.querySelectorAll("thead th");for(let a of o)r.push(((t=a.textContent)==null?void 0:t.trim())||"");let s=e.querySelectorAll("tbody tr");for(let a of s){let l=[],c=a.querySelectorAll("td");for(let u of c)l.push(((n=u.textContent)==null?void 0:n.trim())||"");i.push(l)}return{headers:r,rows:i}}function Vh(e){let{headers:t,rows:n}=e,r=o=>o.includes(",")||o.includes('"')||o.includes(`
|
|
246
|
+
Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error occurred:</p><pre>"+_t(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}};function de(e,t){return cn.parse(e,t)}de.options=de.setOptions=function(e){return cn.setOptions(e),de.defaults=cn.defaults,Ah(de.defaults),de},de.getDefaults=Xb,de.defaults=ln,de.use=function(...e){return cn.use(...e),de.defaults=cn.defaults,Ah(de.defaults),de},de.walkTokens=function(e,t){return cn.walkTokens(e,t)},de.parseInline=cn.parseInline,de.Parser=Dt,de.parser=Dt.parse,de.Renderer=$i,de.TextRenderer=Xs,de.Lexer=Et,de.lexer=Et.lex,de.Tokenizer=Gi,de.Hooks=Vi,de.parse=de,de.options,de.setOptions,de.use,de.walkTokens,de.parseInline,Dt.parse,Et.lex;var ue=(...e)=>Qb(uA(e)),Ks=(e,t,n)=>{let r=typeof t=="string"?new Blob([t],{type:n}):t,i=URL.createObjectURL(r),o=document.createElement("a");o.href=i,o.download=e,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL(i)},_k=/<pre(\s|>)/,Zs=K.createContext({code:""}),Ek=new class{constructor(){this.lightHighlighter=null,this.darkHighlighter=null,this.lightTheme=null,this.darkTheme=null,this.loadedLanguages=new Set,this.initializationPromise=null}isLanguageSupported(e){return Object.hasOwn(fp,e)}getFallbackLanguage(){return"text"}async ensureHighlightersInitialized(e,t){var n,r;let[i,o]=e,s=Tb({forgiving:!0}),a=!this.lightHighlighter||this.lightTheme!==i,l=!this.darkHighlighter||this.darkTheme!==o;(a||l)&&this.loadedLanguages.clear();let c=this.isLanguageSupported(t),u=!this.loadedLanguages.has(t)&&c;if(a?(this.lightHighlighter=await _p({themes:[i],langs:c?[t]:[],engine:s}),this.lightTheme=i,c&&this.loadedLanguages.add(t)):u&&await((n=this.lightHighlighter)==null?void 0:n.loadLanguage(t)),l){let h=u?[...this.loadedLanguages].concat(c?[t]:[]):Array.from(this.loadedLanguages);this.darkHighlighter=await _p({themes:[o],langs:h.length>0?h:c?[t]:[],engine:s}),this.darkTheme=o}else u&&await((r=this.darkHighlighter)==null?void 0:r.loadLanguage(t));u&&this.loadedLanguages.add(t)}async highlightCode(e,t,n,r){var i,o;this.initializationPromise&&await this.initializationPromise,this.initializationPromise=this.ensureHighlightersInitialized(n,t),await this.initializationPromise,this.initializationPromise=null;let[s,a]=n,l=this.isLanguageSupported(t)?t:this.getFallbackLanguage(),c=(i=this.lightHighlighter)==null?void 0:i.codeToHtml(e,{lang:l,theme:s}),u=(o=this.darkHighlighter)==null?void 0:o.codeToHtml(e,{lang:l,theme:a}),h=p=>r?p.replace(_k,`<pre class="${r}"$1`):p;return[Fh(h(c)),Fh(h(u))]}},Fh=e=>e.replace(/(<pre[^>]*)(style="[^"]*background[^";]*;?[^"]*")([^>]*>)/g,"$1$3"),Tk=({code:e,language:t,className:n,children:r,preClassName:i,...o})=>{let[s,a]=K.useState(""),[l,c]=K.useState(""),u=K.useRef(!1),[h,p]=K.useContext(fd);return K.useEffect(()=>(u.current=!0,Ek.highlightCode(e,t,[h,p],i).then(([m,f])=>{u.current&&(a(m),c(f))}),()=>{u.current=!1}),[e,t,h,p,i]),U.jsx(Zs.Provider,{value:{code:e},children:U.jsxs("div",{className:"my-4 w-full overflow-hidden rounded-xl border","data-code-block-container":!0,"data-language":t,children:[U.jsxs("div",{className:"flex items-center justify-between bg-muted/80 p-3 text-muted-foreground text-xs","data-code-block-header":!0,"data-language":t,children:[U.jsx("span",{className:"ml-1 font-mono lowercase",children:t}),U.jsx("div",{className:"flex items-center gap-2",children:r})]}),U.jsx("div",{className:"w-full",children:U.jsxs("div",{className:"min-w-full",children:[U.jsx("div",{className:ue("overflow-x-auto dark:hidden",n),dangerouslySetInnerHTML:{__html:s},"data-code-block":!0,"data-language":t,...o}),U.jsx("div",{className:ue("hidden overflow-x-auto dark:block",n),dangerouslySetInnerHTML:{__html:l},"data-code-block":!0,"data-language":t,...o})]})})]})})},Uh={"1c":"1c","1c-query":"1cq",abap:"abap","actionscript-3":"as",ada:"ada",adoc:"adoc","angular-html":"html","angular-ts":"ts",apache:"conf",apex:"cls",apl:"apl",applescript:"applescript",ara:"ara",asciidoc:"adoc",asm:"asm",astro:"astro",awk:"awk",ballerina:"bal",bash:"sh",bat:"bat",batch:"bat",be:"be",beancount:"beancount",berry:"berry",bibtex:"bib",bicep:"bicep",blade:"blade.php",bsl:"bsl",c:"c","c#":"cs","c++":"cpp",cadence:"cdc",cairo:"cairo",cdc:"cdc",clarity:"clar",clj:"clj",clojure:"clj","closure-templates":"soy",cmake:"cmake",cmd:"cmd",cobol:"cob",codeowners:"CODEOWNERS",codeql:"ql",coffee:"coffee",coffeescript:"coffee","common-lisp":"lisp",console:"sh",coq:"v",cpp:"cpp",cql:"cql",crystal:"cr",cs:"cs",csharp:"cs",css:"css",csv:"csv",cue:"cue",cypher:"cql",d:"d",dart:"dart",dax:"dax",desktop:"desktop",diff:"diff",docker:"dockerfile",dockerfile:"dockerfile",dotenv:"env","dream-maker":"dm",edge:"edge",elisp:"el",elixir:"ex",elm:"elm","emacs-lisp":"el",erb:"erb",erl:"erl",erlang:"erl",f:"f","f#":"fs",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"f90",f95:"f95",fennel:"fnl",fish:"fish",fluent:"ftl",for:"for","fortran-fixed-form":"f","fortran-free-form":"f90",fs:"fs",fsharp:"fs",fsl:"fsl",ftl:"ftl",gdresource:"tres",gdscript:"gd",gdshader:"gdshader",genie:"gs",gherkin:"feature","git-commit":"gitcommit","git-rebase":"gitrebase",gjs:"js",gleam:"gleam","glimmer-js":"js","glimmer-ts":"ts",glsl:"glsl",gnuplot:"plt",go:"go",gql:"gql",graphql:"graphql",groovy:"groovy",gts:"gts",hack:"hack",haml:"haml",handlebars:"hbs",haskell:"hs",haxe:"hx",hbs:"hbs",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",hs:"hs",html:"html","html-derivative":"html",http:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",jade:"jade",java:"java",javascript:"js",jinja:"jinja",jison:"jison",jl:"jl",js:"js",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",julia:"jl",kotlin:"kt",kql:"kql",kt:"kt",kts:"kts",kusto:"kql",latex:"tex",lean:"lean",lean4:"lean",less:"less",liquid:"liquid",lisp:"lisp",lit:"lit",llvm:"ll",log:"log",logo:"logo",lua:"lua",luau:"luau",make:"mak",makefile:"mak",markdown:"md",marko:"marko",matlab:"m",md:"md",mdc:"mdc",mdx:"mdx",mediawiki:"wiki",mermaid:"mmd",mips:"s",mipsasm:"s",mmd:"mmd",mojo:"mojo",move:"move",nar:"nar",narrat:"narrat",nextflow:"nf",nf:"nf",nginx:"conf",nim:"nim",nix:"nix",nu:"nu",nushell:"nu",objc:"m","objective-c":"m","objective-cpp":"mm",ocaml:"ml",pascal:"pas",perl:"pl",perl6:"p6",php:"php",plsql:"pls",po:"po",polar:"polar",postcss:"pcss",pot:"pot",potx:"potx",powerquery:"pq",powershell:"ps1",prisma:"prisma",prolog:"pl",properties:"properties",proto:"proto",protobuf:"proto",ps:"ps",ps1:"ps1",pug:"pug",puppet:"pp",purescript:"purs",py:"py",python:"py",ql:"ql",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",racket:"rkt",raku:"raku",razor:"cshtml",rb:"rb",reg:"reg",regex:"regex",regexp:"regexp",rel:"rel",riscv:"s",rs:"rs",rst:"rst",ruby:"rb",rust:"rs",sas:"sas",sass:"sass",scala:"scala",scheme:"scm",scss:"scss",sdbl:"sdbl",sh:"sh",shader:"shader",shaderlab:"shader",shell:"sh",shellscript:"sh",shellsession:"sh",smalltalk:"st",solidity:"sol",soy:"soy",sparql:"rq",spl:"spl",splunk:"spl",sql:"sql","ssh-config":"config",stata:"do",styl:"styl",stylus:"styl",svelte:"svelte",swift:"swift","system-verilog":"sv",systemd:"service",talon:"talon",talonscript:"talon",tasl:"tasl",tcl:"tcl",templ:"templ",terraform:"tf",tex:"tex",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"ts","ts-tags":"ts",tsp:"tsp",tsv:"tsv",tsx:"tsx",turtle:"ttl",twig:"twig",typ:"typ",typescript:"ts",typespec:"tsp",typst:"typ",v:"v",vala:"vala",vb:"vb",verilog:"v",vhdl:"vhdl",vim:"vim",viml:"vim",vimscript:"vim",vue:"vue","vue-html":"html","vue-vine":"vine",vy:"vy",vyper:"vy",wasm:"wasm",wenyan:"wy",wgsl:"wgsl",wiki:"wiki",wikitext:"wiki",wit:"wit",wl:"wl",wolfram:"wl",xml:"xml",xsl:"xsl",yaml:"yaml",yml:"yml",zenscript:"zs",zig:"zig",zsh:"zsh",\u6587\u8A00:"wy"},Hh=({onDownload:e,onError:t,language:n,children:r,className:i,code:o,...s})=>{let a=K.useContext(Zs).code,l=o??a,c=`file.${n&&n in Uh?Uh[n]:"txt"}`;return U.jsx("button",{className:ue("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground",i),onClick:()=>{try{Ks(c,l,"text/plain"),e==null||e()}catch(u){t==null||t(u)}},title:"Download file",type:"button",...s,children:r??U.jsx(aa,{size:14})})},Gh=({onCopy:e,onError:t,timeout:n=2e3,children:r,className:i,code:o,...s})=>{let[a,l]=K.useState(!1),c=K.useRef(0),u=K.useContext(Zs).code,h=o??u;K.useEffect(()=>()=>{window.clearTimeout(c.current)},[]);let p=a?Rd:vd;return U.jsx("button",{className:ue("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground",i),onClick:async()=>{var m;if(typeof window<"u"&&(m=navigator==null?void 0:navigator.clipboard)!=null&&m.writeText)try{a||(await navigator.clipboard.writeText(h),l(!0),e==null||e(),c.current=window.setTimeout(()=>l(!1),n))}catch(f){t==null||t(f)}else t==null||t(new Error("Clipboard API not available"))},type:"button",...s,children:r??U.jsx(p,{size:14})})},bk=({chart:e,className:t,config:n})=>{let[r,i]=K.useState(null),[o,s]=K.useState(!0),[a,l]=K.useState(""),[c,u]=K.useState("");if(K.useEffect(()=>{(async()=>{try{i(null),s(!0);let p=await(async g=>{let _={startOnLoad:!1,theme:"default",securityLevel:"strict",fontFamily:"monospace",suppressErrorRendering:!0,...g},x=(await k(async()=>{const{default:E}=await import("./mermaid.core-CvvJtCRj.js").then(async y=>(await y.__tla,y)).then(y=>y.ar);return{default:E}},__vite__mapDeps([95,96,97,98,99,100,101]),import.meta.url)).default;return x.initialize(_),x})(n),m=e.split("").reduce((g,_)=>(g<<5)-g+_.charCodeAt(0)|0,0),f=`mermaid-${Math.abs(m)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:T}=await p.render(f,e);l(T),u(T)}catch(p){if(!c&&!a){let m=p instanceof Error?p.message:"Failed to render Mermaid chart";i(m)}}finally{s(!1)}})()},[e,n]),o&&!a&&!c)return U.jsx("div",{className:ue("my-4 flex justify-center p-4",t),children:U.jsxs("div",{className:"flex items-center space-x-2 text-muted-foreground",children:[U.jsx("div",{className:"h-4 w-4 animate-spin rounded-full border-current border-b-2"}),U.jsx("span",{className:"text-sm",children:"Loading diagram..."})]})});if(r&&!a&&!c)return U.jsxs("div",{className:ue("rounded-lg border border-red-200 bg-red-50 p-4",t),children:[U.jsxs("p",{className:"font-mono text-red-700 text-sm",children:["Mermaid Error: ",r]}),U.jsxs("details",{className:"mt-2",children:[U.jsx("summary",{className:"cursor-pointer text-red-600 text-xs",children:"Show Code"}),U.jsx("pre",{className:"mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs",children:e})]})]});let h=a||c;return U.jsx("div",{"aria-label":"Mermaid chart",className:ue("my-4 flex justify-center",t),dangerouslySetInnerHTML:{__html:h},role:"img"})};function $h(e){var t,n;let r=[],i=[],o=e.querySelectorAll("thead th");for(let a of o)r.push(((t=a.textContent)==null?void 0:t.trim())||"");let s=e.querySelectorAll("tbody tr");for(let a of s){let l=[],c=a.querySelectorAll("td");for(let u of c)l.push(((n=u.textContent)==null?void 0:n.trim())||"");i.push(l)}return{headers:r,rows:i}}function Vh(e){let{headers:t,rows:n}=e,r=o=>o.includes(",")||o.includes('"')||o.includes(`
|
|
247
247
|
`)?`"${o.replace(/"/g,'""')}"`:o,i=[];t.length>0&&i.push(t.map(r).join(","));for(let o of n)i.push(o.map(r).join(","));return i.join(`
|
|
248
248
|
`)}function jh(e){let{headers:t,rows:n}=e;if(t.length===0)return"";let r=[],i=t.map(o=>o.replace(/\|/g,"\\|"));r.push(`| ${i.join(" | ")} |`),r.push(`| ${t.map(()=>"---").join(" | ")} |`);for(let o of n){let s=[...o];for(;s.length<t.length;)s.push("");let a=s.map(l=>l.replace(/\|/g,"\\|"));r.push(`| ${a.join(" | ")} |`)}return r.join(`
|
|
249
249
|
`)}var kk=({children:e,className:t,onCopy:n,onError:r,timeout:i=2e3,format:o="markdown"})=>{let[s,a]=K.useState(!1),l=K.useRef(0);K.useEffect(()=>()=>{window.clearTimeout(l.current)},[]);let c=s?Rd:vd;return U.jsx("button",{className:ue("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground",t),onClick:async u=>{var h;if(typeof window<"u"&&(h=navigator==null?void 0:navigator.clipboard)!=null&&h.write)try{if(!s){let p=u.currentTarget.closest('[data-streamdown="table-wrapper"]'),m=p==null?void 0:p.querySelector("table");if(!m)return void(r==null||r(new Error("Table not found")));let f=$h(m),T=new ClipboardItem({"text/plain":o==="markdown"?jh(f):Vh(f),"text/html":new Blob([m.outerHTML],{type:"text/html"})});await navigator.clipboard.write([T]),a(!0),n==null||n(),l.current=window.setTimeout(()=>a(!1),i)}}catch(p){r==null||r(p)}else r==null||r(new Error("Clipboard API not available"))},title:`Copy table as ${o}`,type:"button",children:e??U.jsx(c,{size:14})})},Ak=({children:e,className:t,onDownload:n,onError:r})=>{let[i,o]=K.useState(!1),s=K.useRef(null),a=l=>{var c;try{let u=(c=s.current)==null?void 0:c.closest('[data-streamdown="table-wrapper"]'),h=u==null?void 0:u.querySelector("table");if(!h)return void(r==null||r(new Error("Table not found")));let p=$h(h),m=l==="csv"?Vh(p):jh(p);Ks("table."+(l==="csv"?"csv":"md"),m,l==="csv"?"text/csv":"text/markdown"),o(!1),n==null||n(l)}catch(u){r==null||r(u)}};return K.useEffect(()=>{let l=c=>{s.current&&!s.current.contains(c.target)&&o(!1)};return document.addEventListener("mousedown",l),()=>{document.removeEventListener("mousedown",l)}},[]),U.jsxs("div",{className:"relative",ref:s,children:[U.jsx("button",{className:ue("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground",t),onClick:()=>o(!i),title:"Download table",type:"button",children:e??U.jsx(aa,{size:14})}),i&&U.jsxs("div",{className:"absolute top-full right-0 z-10 mt-1 min-w-[120px] rounded-md border border-border bg-background shadow-lg",children:[U.jsx("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>a("csv"),type:"button",children:"CSV"}),U.jsx("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>a("markdown"),type:"button",children:"Markdown"})]})]})},yk=/language-([^\s]+)/;function ji(e,t){if(!(e!=null&&e.position||t!=null&&t.position))return!0;if(e==null||!e.position||t==null||!t.position)return!1;let n=e.position.start,r=t.position.start,i=e.position.end,o=t.position.end;return(n==null?void 0:n.line)===(r==null?void 0:r.line)&&(n==null?void 0:n.column)===(r==null?void 0:r.column)&&(i==null?void 0:i.line)===(o==null?void 0:o.line)&&(i==null?void 0:i.column)===(o==null?void 0:o.column)}function we(e,t){return e.className===t.className&&ji(e.node,t.node)}var Js=(e,t)=>typeof e=="boolean"?e:e[t]!==!1,zh=K.memo(({children:e,className:t,...n})=>U.jsx("ol",{className:ue("ml-4 list-outside list-decimal whitespace-normal",t),"data-streamdown":"ordered-list",...n,children:e}),(e,t)=>we(e,t));zh.displayName="MarkdownOl";var qh=K.memo(({children:e,className:t,...n})=>U.jsx("li",{className:ue("py-1",t),"data-streamdown":"list-item",...n,children:e}),(e,t)=>e.className===t.className&&ji(e.node,t.node));qh.displayName="MarkdownLi";var Wh=K.memo(({children:e,className:t,...n})=>U.jsx("ul",{className:ue("ml-4 list-outside list-disc whitespace-normal",t),"data-streamdown":"unordered-list",...n,children:e}),(e,t)=>we(e,t));Wh.displayName="MarkdownUl";var Yh=K.memo(({className:e,...t})=>U.jsx("hr",{className:ue("my-6 border-border",e),"data-streamdown":"horizontal-rule",...t}),(e,t)=>we(e,t));Yh.displayName="MarkdownHr";var Qh=K.memo(({children:e,className:t,...n})=>U.jsx("span",{className:ue("font-semibold",t),"data-streamdown":"strong",...n,children:e}),(e,t)=>we(e,t));Qh.displayName="MarkdownStrong";var Xh=K.memo(({children:e,className:t,href:n,...r})=>{let i=n==="streamdown:incomplete-link";return U.jsx("a",{className:ue("wrap-anywhere font-medium text-primary underline",t),"data-incomplete":i,"data-streamdown":"link",href:n,rel:"noreferrer",target:"_blank",...r,children:e})},(e,t)=>we(e,t)&&e.href===t.href);Xh.displayName="MarkdownA";var Kh=K.memo(({children:e,className:t,...n})=>U.jsx("h1",{className:ue("mt-6 mb-2 font-semibold text-3xl",t),"data-streamdown":"heading-1",...n,children:e}),(e,t)=>we(e,t));Kh.displayName="MarkdownH1";var Zh=K.memo(({children:e,className:t,...n})=>U.jsx("h2",{className:ue("mt-6 mb-2 font-semibold text-2xl",t),"data-streamdown":"heading-2",...n,children:e}),(e,t)=>we(e,t));Zh.displayName="MarkdownH2";var Jh=K.memo(({children:e,className:t,...n})=>U.jsx("h3",{className:ue("mt-6 mb-2 font-semibold text-xl",t),"data-streamdown":"heading-3",...n,children:e}),(e,t)=>we(e,t));Jh.displayName="MarkdownH3";var ed=K.memo(({children:e,className:t,...n})=>U.jsx("h4",{className:ue("mt-6 mb-2 font-semibold text-lg",t),"data-streamdown":"heading-4",...n,children:e}),(e,t)=>we(e,t));ed.displayName="MarkdownH4";var td=K.memo(({children:e,className:t,...n})=>U.jsx("h5",{className:ue("mt-6 mb-2 font-semibold text-base",t),"data-streamdown":"heading-5",...n,children:e}),(e,t)=>we(e,t));td.displayName="MarkdownH5";var nd=K.memo(({children:e,className:t,...n})=>U.jsx("h6",{className:ue("mt-6 mb-2 font-semibold text-sm",t),"data-streamdown":"heading-6",...n,children:e}),(e,t)=>we(e,t));nd.displayName="MarkdownH6";var rd=K.memo(({children:e,className:t,...n})=>{let r=K.useContext(ea),i=Js(r,"table");return U.jsxs("div",{className:"my-4 flex flex-col space-y-2","data-streamdown":"table-wrapper",children:[i&&U.jsxs("div",{className:"flex items-center justify-end gap-1",children:[U.jsx(kk,{}),U.jsx(Ak,{})]}),U.jsx("div",{className:"overflow-x-auto",children:U.jsx("table",{className:ue("w-full border-collapse border border-border",t),"data-streamdown":"table",...n,children:e})})]})},(e,t)=>we(e,t));rd.displayName="MarkdownTable";var id=K.memo(({children:e,className:t,...n})=>U.jsx("thead",{className:ue("bg-muted/80",t),"data-streamdown":"table-header",...n,children:e}),(e,t)=>we(e,t));id.displayName="MarkdownThead";var od=K.memo(({children:e,className:t,...n})=>U.jsx("tbody",{className:ue("divide-y divide-border bg-muted/40",t),"data-streamdown":"table-body",...n,children:e}),(e,t)=>we(e,t));od.displayName="MarkdownTbody";var sd=K.memo(({children:e,className:t,...n})=>U.jsx("tr",{className:ue("border-border border-b",t),"data-streamdown":"table-row",...n,children:e}),(e,t)=>we(e,t));sd.displayName="MarkdownTr";var ad=K.memo(({children:e,className:t,...n})=>U.jsx("th",{className:ue("whitespace-nowrap px-4 py-2 text-left font-semibold text-sm",t),"data-streamdown":"table-header-cell",...n,children:e}),(e,t)=>we(e,t));ad.displayName="MarkdownTh";var ld=K.memo(({children:e,className:t,...n})=>U.jsx("td",{className:ue("px-4 py-2 text-sm",t),"data-streamdown":"table-cell",...n,children:e}),(e,t)=>we(e,t));ld.displayName="MarkdownTd";var cd=K.memo(({children:e,className:t,...n})=>U.jsx("blockquote",{className:ue("my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic",t),"data-streamdown":"blockquote",...n,children:e}),(e,t)=>we(e,t));cd.displayName="MarkdownBlockquote";var ud=K.memo(({children:e,className:t,...n})=>U.jsx("sup",{className:ue("text-sm",t),"data-streamdown":"superscript",...n,children:e}),(e,t)=>we(e,t));ud.displayName="MarkdownSup";var pd=K.memo(({children:e,className:t,...n})=>U.jsx("sub",{className:ue("text-sm",t),"data-streamdown":"subscript",...n,children:e}),(e,t)=>we(e,t));pd.displayName="MarkdownSub";var hd=K.memo(({node:e,className:t,children:n,...r})=>{var i,o,s;let a=((i=e==null?void 0:e.position)==null?void 0:i.start.line)===((o=e==null?void 0:e.position)==null?void 0:o.end.line),l=K.useContext(gd),c=K.useContext(ea);if(a)return U.jsx("code",{className:ue("rounded bg-muted px-1.5 py-0.5 font-mono text-sm",t),"data-streamdown":"inline-code",...r,children:n});let u=t==null?void 0:t.match(yk),h=(s=u==null?void 0:u.at(1))!=null?s:"",p="";if(K.isValidElement(n)&&n.props&&typeof n.props=="object"&&"children"in n.props&&typeof n.props.children=="string"?p=n.props.children:typeof n=="string"&&(p=n),h==="mermaid"){let f=Js(c,"mermaid");return U.jsxs("div",{className:ue("group relative my-4 h-auto rounded-xl border p-4",t),"data-streamdown":"mermaid-block",children:[f&&U.jsxs("div",{className:"flex items-center justify-end gap-2",children:[U.jsx(Hh,{code:p,language:h}),U.jsx(Gh,{code:p})]}),U.jsx(bk,{chart:p,config:l})]})}let m=Js(c,"code");return U.jsx(Tk,{className:ue("overflow-x-auto border-t",t),code:p,"data-language":h,"data-streamdown":"code-block",language:h,preClassName:"overflow-x-auto font-mono text-xs p-4 bg-muted/40",children:m&&U.jsxs(U.Fragment,{children:[U.jsx(Hh,{code:p,language:h}),U.jsx(Gh,{})]})})},(e,t)=>e.className===t.className&&ji(e.node,t.node));hd.displayName="MarkdownCode";var dd=K.memo(({node:e,className:t,src:n,alt:r,...i})=>n?U.jsxs("div",{className:"group relative my-4 inline-block","data-streamdown":"image-wrapper",children:[U.jsx("img",{alt:r,className:ue("max-w-full rounded-lg",t),"data-streamdown":"image",src:n,...i}),U.jsx("div",{className:"pointer-events-none absolute inset-0 hidden rounded-lg bg-black/10 group-hover:block"}),U.jsx("button",{className:ue("absolute right-2 bottom-2 flex h-8 w-8 cursor-pointer items-center justify-center rounded-md border border-border bg-background/90 shadow-sm backdrop-blur-sm transition-all duration-200 hover:bg-background","opacity-0 group-hover:opacity-100"),onClick:async()=>{var o;if(n)try{let s=await(await fetch(n)).blob(),a=new URL(n,window.location.origin).pathname.split("/").pop()||"",l=a.includes(".")&&((o=a.split(".").pop())==null?void 0:o.length)<=4,c="";if(l)c=a;else{let u=s.type,h="png";u.includes("jpeg")||u.includes("jpg")?h="jpg":u.includes("png")?h="png":u.includes("svg")?h="svg":u.includes("gif")?h="gif":u.includes("webp")&&(h="webp"),c=`${(r||a||"image").replace(/\.[^/.]+$/,"")}.${h}`}Ks(c,s,s.type)}catch(s){console.error("Failed to download image:",s)}},title:"Download image",type:"button",children:U.jsx(aa,{size:14})})]}):null,(e,t)=>e.className===t.className&&ji(e.node,t.node));dd.displayName="MarkdownImg";var xk={ol:zh,li:qh,ul:Wh,hr:Yh,strong:Qh,a:Xh,h1:Kh,h2:Zh,h3:Jh,h4:ed,h5:td,h6:nd,table:rd,thead:id,tbody:od,tr:sd,th:ad,td:ld,blockquote:cd,code:hd,img:dd,pre:({children:e})=>e,sup:ud,sub:pd},Ck=/(!?\[)([^\]]*?)$/,Ik=/(\*\*)([^*]*?)$/,Sk=/(__)([^_]*?)$/,Dk=/(\*\*\*)([^*]*?)$/,Nk=/(\*)([^*]*?)$/,wk=/(_)([^_]*?)$/,Lk=/(`)([^`]*?)$/,Ok=/(~~)([^~]*?)$/,zi=e=>{let t=(e.match(/```/g)||[]).length;return t>0&&t%2==0&&e.includes(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as c,r as u,u as h,b as f,L as M,j as p}from"./index-
|
|
1
|
+
import{a as c,r as u,u as h,b as f,L as M,j as p}from"./index-CelXfcd8.js";import{m as l}from"./mermaid.core-CvvJtCRj.js";import"./transform-D9VCJYws.js";import"./timer-Bqd5yn_a.js";import"./step-BwsUM5iJ.js";import"./isEmpty-CqX_YTIf.js";const b={startOnLoad:!0,theme:"forest",logLevel:"fatal",securityLevel:"strict",fontFamily:"var(--text-font)",arrowMarkerAbsolute:!1,flowchart:{htmlLabels:!0,curve:"linear"},sequence:{diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,mirrorActors:!0,bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,showSequenceNumbers:!1},gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,leftPadding:75,gridLineStartPadding:35,fontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d"}},v=m=>{const t=c.c(9),{diagram:a}=m,[r]=u.useState(x),e=h().theme==="dark";let n,i;l.initialize({...b,theme:e?"dark":"forest",darkMode:e}),t[0]!==a||t[1]!==r?(n=async()=>(await l.render(r,a,void 0).catch(d=>{var g;throw(g=document.getElementById(r))==null||g.remove(),M.warn("Failed to render mermaid diagram",d),d})).svg,t[0]=a,t[1]=r,t[2]=n):n=t[2],t[3]!==e||t[4]!==a||t[5]!==r?(i=[a,r,e],t[3]=e,t[4]=a,t[5]=r,t[6]=i):i=t[6];const{data:o}=f(n,i);if(!o)return null;let s;return t[7]!==o?(s=p.jsx("div",{dangerouslySetInnerHTML:{__html:o}}),t[7]=o,t[8]=s):s=t[8],s};function x(){return(function(){const m="abcdefghijklmnopqrstuvwxyz";return Array.from({length:6},()=>m[Math.floor(26*Math.random())]).join("")})()}export{v as default};
|