import{p as Ce,a as Re,b as He}from"./micromark-CTBPIv-_.js";import{d as Le}from"./micromark-util-decode-numeric-character-reference-DRnCnno4.js";import{d as ze}from"./micromark-util-decode-string-DJl8Y_PO.js";import{n as F}from"./micromark-util-normalize-identifier-C9ANKk3v.js";import{d as De}from"./decode-named-character-reference-C3-224fz.js";import{s as T}from"./unist-util-stringify-position-Ch_qCilz.js";import{t as Oe}from"./mdast-util-to-string-C_aolqmU.js";const Q={}.hasOwnProperty,Ae=function(d,r,a){return typeof r!="string"&&(a=r,r=void 0),Pe(a)(Ce(Re(a).document().write(He()(d,r,!0))))};function Pe(d){const r={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:c(P),autolinkProtocol:k,autolinkEmail:k,atxHeading:c(z),blockQuote:c(xe),characterEscape:k,characterReference:k,codeFenced:c(L),codeFencedFenceInfo:f,codeFencedFenceMeta:f,codeIndented:c(L,f),codeText:c(ye,f),codeTextData:k,data:k,codeFlowValue:k,definition:c(Se),definitionDestinationString:f,definitionLabelString:f,definitionTitleString:f,emphasis:c(be),hardBreakEscape:c(D),hardBreakTrailing:c(D),htmlFlow:c(O,f),htmlFlowData:k,htmlText:c(O,f),htmlTextData:k,image:c(we),label:f,link:c(P),listItem:c(Ie),listItemValue:j,listOrdered:c(M,_),listUnordered:c(M),paragraph:c(Te),reference:fe,referenceString:f,resourceDestinationString:f,resourceTitleString:f,setextHeading:c(z),strong:c(Ee),thematicBreak:c(Be)},exit:{atxHeading:l(),atxHeadingSequence:Z,autolink:l(),autolinkEmail:me,autolinkProtocol:ke,blockQuote:l(),characterEscapeValue:m,characterReferenceMarkerHexadecimal:H,characterReferenceMarkerNumeric:H,characterReferenceValue:ge,codeFenced:l(G),codeFencedFence:$,codeFencedFenceInfo:A,codeFencedFenceMeta:W,codeFlowValue:m,codeIndented:l(J),codeText:l(se),codeTextData:m,data:m,definition:l(),definitionDestinationString:Y,definitionLabelString:K,definitionTitleString:X,emphasis:l(),hardBreakEscape:l(R),hardBreakTrailing:l(R),htmlFlow:l(ie),htmlFlowData:m,htmlText:l(re),htmlTextData:m,image:l(ce),label:oe,labelText:le,lineEnding:ne,link:l(ae),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:pe,resourceDestinationString:de,resourceTitleString:he,resource:ue,setextHeading:l(te),setextHeadingLineSequence:ee,setextHeadingText:v,strong:l(),thematicBreak:l()}};q(r,(d||{}).mdastExtensions||[]);const a={};return u;function u(e){let t={type:"root",children:[]};const n={stack:[t],tokenStack:[],config:r,enter:B,exit:C,buffer:f,resume:U,setData:h,getData:g},i=[];let s=-1;for(;++s0){const p=n.tokenStack[n.tokenStack.length-1];(p[1]||V).call(n,void 0,p[0])}for(t.position={start:b(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:b(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},s=-1;++s