44 lines
169 KiB
JavaScript
44 lines
169 KiB
JavaScript
import{r as el,c as it,g as Ar}from"./syntax-highlight-CQw1bBY6.js";import{k as xn}from"./katex-BSBacQyE.js";var Tr={exports:{}},st={};/**
|
||
* @license React
|
||
* react-jsx-runtime.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var tl=el,nl=Symbol.for("react.element"),rl=Symbol.for("react.fragment"),il=Object.prototype.hasOwnProperty,ll=tl.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ol={key:!0,ref:!0,__self:!0,__source:!0};function Fr(e,t,n){var r,i={},o=null,l=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(l=t.ref);for(r in t)il.call(t,r)&&!ol.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:nl,type:e,key:o,ref:l,props:i,_owner:ll.current}}st.Fragment=rl;st.jsx=Fr;st.jsxs=Fr;Tr.exports=st;var dt=Tr.exports;function kn(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,o=!1;for(;!o;){r===-1&&(r=n.length,o=!0);const l=n.slice(i,r).trim();(l||!o)&&t.push(l),i=r+1,r=n.indexOf(",",i)}return t}function al(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const ul=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,sl=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,cl={};function bn(e,t){return(cl.jsx?sl:ul).test(e)}const fl=/[ \t\n\f\r]/g;function hl(e){return typeof e=="object"?e.type==="text"?wn(e.value):!1:wn(e)}function wn(e){return e.replace(fl,"")===""}class Ye{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Ye.prototype.normal={};Ye.prototype.property={};Ye.prototype.space=void 0;function Pr(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Ye(n,r,t)}function Ue(e){return e.toLowerCase()}class ee{constructor(t,n){this.attribute=n,this.property=t}}ee.prototype.attribute="";ee.prototype.booleanish=!1;ee.prototype.boolean=!1;ee.prototype.commaOrSpaceSeparated=!1;ee.prototype.commaSeparated=!1;ee.prototype.defined=!1;ee.prototype.mustUseProperty=!1;ee.prototype.number=!1;ee.prototype.overloadedBoolean=!1;ee.prototype.property="";ee.prototype.spaceSeparated=!1;ee.prototype.space=void 0;let pl=0;const M=Ie(),W=Ie(),Lt=Ie(),E=Ie(),U=Ie(),ve=Ie(),ne=Ie();function Ie(){return 2**++pl}const Mt=Object.freeze(Object.defineProperty({__proto__:null,boolean:M,booleanish:W,commaOrSpaceSeparated:ne,commaSeparated:ve,number:E,overloadedBoolean:Lt,spaceSeparated:U},Symbol.toStringTag,{value:"Module"})),yt=Object.keys(Mt);class Wt extends ee{constructor(t,n,r,i){let o=-1;if(super(t,n),Sn(this,"space",i),typeof r=="number")for(;++o<yt.length;){const l=yt[o];Sn(this,yt[o],(r&Mt[l])===Mt[l])}}}Wt.prototype.defined=!0;function Sn(e,t,n){n&&(e[t]=n)}function Me(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new Wt(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Ue(r)]=r,n[Ue(o.attribute)]=r}return new Ye(t,n,e.space)}const zr=Me({properties:{ariaActiveDescendant:null,ariaAtomic:W,ariaAutoComplete:null,ariaBusy:W,ariaChecked:W,ariaColCount:E,ariaColIndex:E,ariaColSpan:E,ariaControls:U,ariaCurrent:null,ariaDescribedBy:U,ariaDetails:null,ariaDisabled:W,ariaDropEffect:U,ariaErrorMessage:null,ariaExpanded:W,ariaFlowTo:U,ariaGrabbed:W,ariaHasPopup:null,ariaHidden:W,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:U,ariaLevel:E,ariaLive:null,ariaModal:W,ariaMultiLine:W,ariaMultiSelectable:W,ariaOrientation:null,ariaOwns:U,ariaPlaceholder:null,ariaPosInSet:E,ariaPressed:W,ariaReadOnly:W,ariaRelevant:null,ariaRequired:W,ariaRoleDescription:U,ariaRowCount:E,ariaRowIndex:E,ariaRowSpan:E,ariaSelected:W,ariaSetSize:E,ariaSort:null,ariaValueMax:E,ariaValueMin:E,ariaValueNow:E,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Dr(e,t){return t in e?e[t]:t}function vr(e,t){return Dr(e,t.toLowerCase())}const ml=Me({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ve,acceptCharset:U,accessKey:U,action:null,allow:null,allowFullScreen:M,allowPaymentRequest:M,allowUserMedia:M,alt:null,as:null,async:M,autoCapitalize:null,autoComplete:U,autoFocus:M,autoPlay:M,blocking:U,capture:null,charSet:null,checked:M,cite:null,className:U,cols:E,colSpan:null,content:null,contentEditable:W,controls:M,controlsList:U,coords:E|ve,crossOrigin:null,data:null,dateTime:null,decoding:null,default:M,defer:M,dir:null,dirName:null,disabled:M,download:Lt,draggable:W,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:M,formTarget:null,headers:U,height:E,hidden:Lt,high:E,href:null,hrefLang:null,htmlFor:U,httpEquiv:U,id:null,imageSizes:null,imageSrcSet:null,inert:M,inputMode:null,integrity:null,is:null,isMap:M,itemId:null,itemProp:U,itemRef:U,itemScope:M,itemType:U,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:M,low:E,manifest:null,max:null,maxLength:E,media:null,method:null,min:null,minLength:E,multiple:M,muted:M,name:null,nonce:null,noModule:M,noValidate:M,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:M,optimum:E,pattern:null,ping:U,placeholder:null,playsInline:M,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:M,referrerPolicy:null,rel:U,required:M,reversed:M,rows:E,rowSpan:E,sandbox:U,scope:null,scoped:M,seamless:M,selected:M,shadowRootClonable:M,shadowRootDelegatesFocus:M,shadowRootMode:null,shape:null,size:E,sizes:null,slot:null,span:E,spellCheck:W,src:null,srcDoc:null,srcLang:null,srcSet:null,start:E,step:null,style:null,tabIndex:E,target:null,title:null,translate:null,type:null,typeMustMatch:M,useMap:null,value:W,width:E,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:U,axis:null,background:null,bgColor:null,border:E,borderColor:null,bottomMargin:E,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:M,declare:M,event:null,face:null,frame:null,frameBorder:null,hSpace:E,leftMargin:E,link:null,longDesc:null,lowSrc:null,marginHeight:E,marginWidth:E,noResize:M,noHref:M,noShade:M,noWrap:M,object:null,profile:null,prompt:null,rev:null,rightMargin:E,rules:null,scheme:null,scrolling:W,standby:null,summary:null,text:null,topMargin:E,valueType:null,version:null,vAlign:null,vLink:null,vSpace:E,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:M,disableRemotePlayback:M,prefix:null,property:null,results:E,security:null,unselectable:null},space:"html",transform:vr}),gl=Me({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:ne,accentHeight:E,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:E,amplitude:E,arabicForm:null,ascent:E,attributeName:null,attributeType:null,azimuth:E,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:E,by:null,calcMode:null,capHeight:E,className:U,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:E,diffuseConstant:E,direction:null,display:null,dur:null,divisor:E,dominantBaseline:null,download:M,dx:null,dy:null,edgeMode:null,editable:null,elevation:E,enableBackground:null,end:null,event:null,exponent:E,externalResourcesRequired:null,fill:null,fillOpacity:E,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:ve,g2:ve,glyphName:ve,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:E,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:E,horizOriginX:E,horizOriginY:E,id:null,ideographic:E,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:E,k:E,k1:E,k2:E,k3:E,k4:E,kernelMatrix:ne,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:E,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:E,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:E,overlineThickness:E,paintOrder:null,panose1:null,path:null,pathLength:E,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:U,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:E,pointsAtY:E,pointsAtZ:E,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ne,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ne,rev:ne,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ne,requiredFeatures:ne,requiredFonts:ne,requiredFormats:ne,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:E,specularExponent:E,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:E,strikethroughThickness:E,string:null,stroke:null,strokeDashArray:ne,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:E,strokeOpacity:E,strokeWidth:null,style:null,surfaceScale:E,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ne,tabIndex:E,tableValues:null,target:null,targetX:E,targetY:E,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ne,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:E,underlineThickness:E,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:E,values:null,vAlphabetic:E,vMathematical:E,vectorEffect:null,vHanging:E,vIdeographic:E,version:null,vertAdvY:E,vertOriginX:E,vertOriginY:E,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:E,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Dr}),Lr=Me({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Mr=Me({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:vr}),_r=Me({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),dl={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"},yl=/[A-Z]/g,Cn=/-[a-z]/g,xl=/^data[-\w.:]+$/i;function Or(e,t){const n=Ue(t);let r=t,i=ee;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&xl.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(Cn,bl);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!Cn.test(o)){let l=o.replace(yl,kl);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}i=Wt}return new i(r,t)}function kl(e){return"-"+e.toLowerCase()}function bl(e){return e.charAt(1).toUpperCase()}const Nr=Pr([zr,ml,Lr,Mr,_r],"html"),ct=Pr([zr,gl,Lr,Mr,_r],"svg");function En(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function wl(e){return e.join(" ").trim()}var Yt={},In=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Sl=/\n/g,Cl=/^\s*/,El=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Il=/^:\s*/,Al=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Tl=/^[;\s]*/,Fl=/^\s+|\s+$/g,Pl=`
|
||
`,An="/",Tn="*",Ce="",zl="comment",Dl="declaration";function vl(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(m){var y=m.match(Sl);y&&(n+=y.length);var C=m.lastIndexOf(Pl);r=~C?m.length-C:r+m.length}function o(){var m={line:n,column:r};return function(y){return y.position=new l(m),s(),y}}function l(m){this.start=m,this.end={line:n,column:r},this.source=t.source}l.prototype.content=e;function a(m){var y=new Error(t.source+":"+n+":"+r+": "+m);if(y.reason=m,y.filename=t.source,y.line=n,y.column=r,y.source=e,!t.silent)throw y}function u(m){var y=m.exec(e);if(y){var C=y[0];return i(C),e=e.slice(C.length),y}}function s(){u(Cl)}function f(m){var y;for(m=m||[];y=c();)y!==!1&&m.push(y);return m}function c(){var m=o();if(!(An!=e.charAt(0)||Tn!=e.charAt(1))){for(var y=2;Ce!=e.charAt(y)&&(Tn!=e.charAt(y)||An!=e.charAt(y+1));)++y;if(y+=2,Ce===e.charAt(y-1))return a("End of comment missing");var C=e.slice(2,y-2);return r+=2,i(C),e=e.slice(y),r+=2,m({type:zl,comment:C})}}function p(){var m=o(),y=u(El);if(y){if(c(),!u(Il))return a("property missing ':'");var C=u(Al),x=m({type:Dl,property:Fn(y[0].replace(In,Ce)),value:C?Fn(C[0].replace(In,Ce)):Ce});return u(Tl),x}}function h(){var m=[];f(m);for(var y;y=p();)y!==!1&&(m.push(y),f(m));return m}return s(),h()}function Fn(e){return e?e.replace(Fl,Ce):Ce}var Ll=vl,Ml=it&&it.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Yt,"__esModule",{value:!0});Yt.default=Ol;const _l=Ml(Ll);function Ol(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,_l.default)(e),i=typeof t=="function";return r.forEach(o=>{if(o.type!=="declaration")return;const{property:l,value:a}=o;i?t(l,a,o):a&&(n=n||{},n[l]=a)}),n}var ft={};Object.defineProperty(ft,"__esModule",{value:!0});ft.camelCase=void 0;var Nl=/^--[a-zA-Z0-9_-]+$/,Rl=/-([a-z])/g,Bl=/^[^-]+$/,jl=/^-(webkit|moz|ms|o|khtml)-/,$l=/^-(ms)-/,Hl=function(e){return!e||Bl.test(e)||Nl.test(e)},ql=function(e,t){return t.toUpperCase()},Pn=function(e,t){return"".concat(t,"-")},Ul=function(e,t){return t===void 0&&(t={}),Hl(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace($l,Pn):e=e.replace(jl,Pn),e.replace(Rl,ql))};ft.camelCase=Ul;var Vl=it&&it.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Wl=Vl(Yt),Yl=ft;function _t(e,t){var n={};return!e||typeof e!="string"||(0,Wl.default)(e,function(r,i){r&&i&&(n[(0,Yl.camelCase)(r,t)]=i)}),n}_t.default=_t;var Gl=_t;const Xl=Ar(Gl),Rr=Br("end"),Gt=Br("start");function Br(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Ql(e){const t=Gt(e),n=Rr(e);if(t&&n)return{start:t,end:n}}function $e(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?zn(e.position):"start"in e||"end"in e?zn(e):"line"in e||"column"in e?Ot(e):""}function Ot(e){return Dn(e&&e.line)+":"+Dn(e&&e.column)}function zn(e){return Ot(e&&e.start)+"-"+Ot(e&&e.end)}function Dn(e){return e&&typeof e=="number"?e:1}class K extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},l=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(l=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?o.ruleId=r:(o.source=r.slice(0,u),o.ruleId=r.slice(u+1))}if(!o.place&&o.ancestors&&o.ancestors){const u=o.ancestors[o.ancestors.length-1];u&&(o.place=u.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=$e(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=l&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}K.prototype.file="";K.prototype.name="";K.prototype.reason="";K.prototype.message="";K.prototype.stack="";K.prototype.column=void 0;K.prototype.line=void 0;K.prototype.ancestors=void 0;K.prototype.cause=void 0;K.prototype.fatal=void 0;K.prototype.place=void 0;K.prototype.ruleId=void 0;K.prototype.source=void 0;const Xt={}.hasOwnProperty,Kl=new Map,Jl=/[A-Z]/g,Zl=new Set(["table","tbody","thead","tfoot","tr"]),eo=new Set(["td","th"]),jr="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function to(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=so(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=uo(n,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"?ct:Nr,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=$r(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function $r(e,t,n){if(t.type==="element")return no(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return ro(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return lo(e,t,n);if(t.type==="mdxjsEsm")return io(e,t);if(t.type==="root")return oo(e,t,n);if(t.type==="text")return ao(e,t)}function no(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=ct,e.schema=i),e.ancestors.push(t);const o=qr(e,t.tagName,!1),l=co(e,t);let a=Kt(e,t);return Zl.has(t.tagName)&&(a=a.filter(function(u){return typeof u=="string"?!hl(u):!0})),Hr(e,l,o,t),Qt(l,a),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function ro(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Ve(e,t.position)}function io(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ve(e,t.position)}function lo(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=ct,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:qr(e,t.name,!0),l=fo(e,t),a=Kt(e,t);return Hr(e,l,o,t),Qt(l,a),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function oo(e,t,n){const r={};return Qt(r,Kt(e,t)),e.create(t,e.Fragment,r,n)}function ao(e,t){return t.value}function Hr(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Qt(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function uo(e,t,n){return r;function r(i,o,l,a){const s=Array.isArray(l.children)?n:t;return a?s(o,l,a):s(o,l)}}function so(e,t){return n;function n(r,i,o,l){const a=Array.isArray(o.children),u=Gt(r);return t(i,o,l,a,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function co(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Xt.call(t.properties,i)){const o=ho(e,i,t.properties[i]);if(o){const[l,a]=o;e.tableCellAlignToStyle&&l==="align"&&typeof a=="string"&&eo.has(t.tagName)?r=a:n[l]=a}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function fo(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const l=o.expression;l.type;const a=l.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else Ve(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];a.type,o=e.evaluater.evaluateExpression(a.expression)}else Ve(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function Kt(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:Kl;for(;++r<t.children.length;){const o=t.children[r];let l;if(e.passKeys){const u=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(u){const s=i.get(u)||0;l=u+"-"+s,i.set(u,s+1)}}const a=$r(e,o,l);a!==void 0&&n.push(a)}return n}function ho(e,t,n){const r=Or(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?al(n):wl(n)),r.property==="style"){let i=typeof n=="object"?n:po(e,String(n));return e.stylePropertyNameCase==="css"&&(i=mo(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?dl[r.property]||r.property:r.attribute,n]}}function po(e,t){try{return Xl(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new K("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=jr+"#cannot-parse-style-attribute",i}}function qr(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let o=-1,l;for(;++o<i.length;){const a=bn(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};l=l?{type:"MemberExpression",object:l,property:a,computed:!!(o&&a.type==="Literal"),optional:!1}:a}r=l}else r=bn(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return Xt.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Ve(e)}function Ve(e,t){const n=new K("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=jr+"#cannot-handle-mdx-estrees-without-createevaluater",n}function mo(e){const t={};let n;for(n in e)Xt.call(e,n)&&(t[go(n)]=e[n]);return t}function go(e){let t=e.replace(Jl,yo);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function yo(e){return"-"+e.toLowerCase()}const xt={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"]},xo={};function Jt(e,t){const n=xo,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Ur(e,r,i)}function Ur(e,t,n){if(ko(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 vn(e.children,t,n)}return Array.isArray(e)?vn(e,t,n):""}function vn(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Ur(e[i],t,n);return r.join("")}function ko(e){return!!(e&&typeof e=="object")}const Ln=document.createElement("i");function Zt(e){const t="&"+e+";";Ln.innerHTML=t;const n=Ln.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function re(e,t,n,r){const i=e.length;let o=0,l;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)l=Array.from(r),l.unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);o<r.length;)l=r.slice(o,o+1e4),l.unshift(t,0),e.splice(...l),o+=1e4,t+=1e4}function ie(e,t){return e.length>0?(re(e,e.length,0,t),e):t}const Mn={}.hasOwnProperty;function Vr(e){const t={};let n=-1;for(;++n<e.length;)bo(t,e[n]);return t}function bo(e,t){let n;for(n in t){const i=(Mn.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let l;if(o)for(l in o){Mn.call(i,l)||(i[l]=[]);const a=o[l];wo(i[l],Array.isArray(a)?a:a?[a]:[])}}}function wo(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);re(e,0,0,r)}function Wr(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||(n&65535)===65535||(n&65535)===65534||n>1114111?"<22>":String.fromCodePoint(n)}function se(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const J=ke(/[A-Za-z]/),Q=ke(/[\dA-Za-z]/),So=ke(/[#-'*+\--9=?A-Z^-~]/);function lt(e){return e!==null&&(e<32||e===127)}const Nt=ke(/\d/),Co=ke(/[\dA-Fa-f]/),Eo=ke(/[!-/:-@[-`{-~]/);function T(e){return e!==null&&e<-2}function q(e){return e!==null&&(e<0||e===32)}function O(e){return e===-2||e===-1||e===32}const ht=ke(new RegExp("\\p{P}|\\p{S}","u")),Ee=ke(/\s/);function ke(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function _e(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let l="";if(o===37&&Q(e.charCodeAt(n+1))&&Q(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(l=String.fromCharCode(o));else if(o>55295&&o<57344){const a=e.charCodeAt(n+1);o<56320&&a>56319&&a<57344?(l=String.fromCharCode(o,a),i=1):l="<22>"}else l=String.fromCharCode(o);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+i+1,l=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function _(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return l;function l(u){return O(u)?(e.enter(n),a(u)):t(u)}function a(u){return O(u)&&o++<i?(e.consume(u),a):(e.exit(n),t(u))}}const Io={tokenize:Ao};function Ao(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),_(e,t,"linePrefix")}function i(a){return e.enter("paragraph"),o(a)}function o(a){const u=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=u),n=u,l(a)}function l(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return T(a)?(e.consume(a),e.exit("chunkText"),o):(e.consume(a),l)}}const To={tokenize:Fo},_n={tokenize:Po};function Fo(e){const t=this,n=[];let r=0,i,o,l;return a;function a(I){if(r<n.length){const D=n[r];return t.containerState=D[1],e.attempt(D[0].continuation,u,s)(I)}return s(I)}function u(I){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&b();const D=t.events.length;let v=D,S;for(;v--;)if(t.events[v][0]==="exit"&&t.events[v][1].type==="chunkFlow"){S=t.events[v][1].end;break}x(r);let N=D;for(;N<t.events.length;)t.events[N][1].end={...S},N++;return re(t.events,v+1,0,t.events.slice(D)),t.events.length=N,s(I)}return a(I)}function s(I){if(r===n.length){if(!i)return p(I);if(i.currentConstruct&&i.currentConstruct.concrete)return m(I);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(_n,f,c)(I)}function f(I){return i&&b(),x(r),p(I)}function c(I){return t.parser.lazy[t.now().line]=r!==n.length,l=t.now().offset,m(I)}function p(I){return t.containerState={},e.attempt(_n,h,m)(I)}function h(I){return r++,n.push([t.currentConstruct,t.containerState]),p(I)}function m(I){if(I===null){i&&b(),x(0),e.consume(I);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),y(I)}function y(I){if(I===null){C(e.exit("chunkFlow"),!0),x(0),e.consume(I);return}return T(I)?(e.consume(I),C(e.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(e.consume(I),y)}function C(I,D){const v=t.sliceStream(I);if(D&&v.push(null),I.previous=o,o&&(o.next=I),o=I,i.defineSkip(I.start),i.write(v),t.parser.lazy[I.start.line]){let S=i.events.length;for(;S--;)if(i.events[S][1].start.offset<l&&(!i.events[S][1].end||i.events[S][1].end.offset>l))return;const N=t.events.length;let j=N,L,k;for(;j--;)if(t.events[j][0]==="exit"&&t.events[j][1].type==="chunkFlow"){if(L){k=t.events[j][1].end;break}L=!0}for(x(r),S=N;S<t.events.length;)t.events[S][1].end={...k},S++;re(t.events,j+1,0,t.events.slice(N)),t.events.length=S}}function x(I){let D=n.length;for(;D-- >I;){const v=n[D];t.containerState=v[1],v[0].exit.call(t,e)}n.length=I}function b(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Po(e,t,n){return _(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Le(e){if(e===null||q(e)||Ee(e))return 1;if(ht(e))return 2}function pt(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 Rt={name:"attention",resolveAll:zo,tokenize:Do};function zo(e,t){let n=-1,r,i,o,l,a,u,s,f;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;u=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const c={...e[r][1].end},p={...e[n][1].start};On(c,-u),On(p,u),l={type:u>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},a={type:u>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},o={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:u>1?"strong":"emphasis",start:{...l.start},end:{...a.end}},e[r][1].end={...l.start},e[n][1].start={...a.end},s=[],e[r][1].end.offset-e[r][1].start.offset&&(s=ie(s,[["enter",e[r][1],t],["exit",e[r][1],t]])),s=ie(s,[["enter",i,t],["enter",l,t],["exit",l,t],["enter",o,t]]),s=ie(s,pt(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),s=ie(s,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,s=ie(s,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,re(e,r-1,n-r+3,s),n=r+s.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Do(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Le(r);let o;return l;function l(u){return o=u,e.enter("attentionSequence"),a(u)}function a(u){if(u===o)return e.consume(u),a;const s=e.exit("attentionSequence"),f=Le(u),c=!f||f===2&&i||n.includes(u),p=!i||i===2&&f||n.includes(r);return s._open=!!(o===42?c:c&&(i||!p)),s._close=!!(o===42?p:p&&(f||!c)),t(u)}}function On(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const vo={name:"autolink",tokenize:Lo};function Lo(e,t,n){let r=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(h){return J(h)?(e.consume(h),l):h===64?n(h):s(h)}function l(h){return h===43||h===45||h===46||Q(h)?(r=1,a(h)):s(h)}function a(h){return h===58?(e.consume(h),r=0,u):(h===43||h===45||h===46||Q(h))&&r++<32?(e.consume(h),a):(r=0,s(h))}function u(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||lt(h)?n(h):(e.consume(h),u)}function s(h){return h===64?(e.consume(h),f):So(h)?(e.consume(h),s):n(h)}function f(h){return Q(h)?c(h):n(h)}function c(h){return h===46?(e.consume(h),r=0,f):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):p(h)}function p(h){if((h===45||Q(h))&&r++<63){const m=h===45?p:c;return e.consume(h),m}return n(h)}}const Ge={partial:!0,tokenize:Mo};function Mo(e,t,n){return r;function r(o){return O(o)?_(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||T(o)?t(o):n(o)}}const Yr={continuation:{tokenize:Oo},exit:No,name:"blockQuote",tokenize:_o};function _o(e,t,n){const r=this;return i;function i(l){if(l===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),o}return n(l)}function o(l){return O(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(l))}}function Oo(e,t,n){const r=this;return i;function i(l){return O(l)?_(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):o(l)}function o(l){return e.attempt(Yr,t,n)(l)}}function No(e){e.exit("blockQuote")}const Gr={name:"characterEscape",tokenize:Ro};function Ro(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return Eo(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const Xr={name:"characterReference",tokenize:Bo};function Bo(e,t,n){const r=this;let i=0,o,l;return a;function a(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),u}function u(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),o=31,l=Q,f(c))}function s(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,l=Co,f):(e.enter("characterReferenceValue"),o=7,l=Nt,f(c))}function f(c){if(c===59&&i){const p=e.exit("characterReferenceValue");return l===Q&&!Zt(r.sliceSerialize(p))?n(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return l(c)&&i++<o?(e.consume(c),f):n(c)}}const Nn={partial:!0,tokenize:$o},Rn={concrete:!0,name:"codeFenced",tokenize:jo};function jo(e,t,n){const r=this,i={partial:!0,tokenize:v};let o=0,l=0,a;return u;function u(S){return s(S)}function s(S){const N=r.events[r.events.length-1];return o=N&&N[1].type==="linePrefix"?N[2].sliceSerialize(N[1],!0).length:0,a=S,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(S)}function f(S){return S===a?(l++,e.consume(S),f):l<3?n(S):(e.exit("codeFencedFenceSequence"),O(S)?_(e,c,"whitespace")(S):c(S))}function c(S){return S===null||T(S)?(e.exit("codeFencedFence"),r.interrupt?t(S):e.check(Nn,y,D)(S)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(S))}function p(S){return S===null||T(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(S)):O(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),_(e,h,"whitespace")(S)):S===96&&S===a?n(S):(e.consume(S),p)}function h(S){return S===null||T(S)?c(S):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(S))}function m(S){return S===null||T(S)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(S)):S===96&&S===a?n(S):(e.consume(S),m)}function y(S){return e.attempt(i,D,C)(S)}function C(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),x}function x(S){return o>0&&O(S)?_(e,b,"linePrefix",o+1)(S):b(S)}function b(S){return S===null||T(S)?e.check(Nn,y,D)(S):(e.enter("codeFlowValue"),I(S))}function I(S){return S===null||T(S)?(e.exit("codeFlowValue"),b(S)):(e.consume(S),I)}function D(S){return e.exit("codeFenced"),t(S)}function v(S,N,j){let L=0;return k;function k(B){return S.enter("lineEnding"),S.consume(B),S.exit("lineEnding"),F}function F(B){return S.enter("codeFencedFence"),O(B)?_(S,P,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):P(B)}function P(B){return B===a?(S.enter("codeFencedFenceSequence"),$(B)):j(B)}function $(B){return B===a?(L++,S.consume(B),$):L>=l?(S.exit("codeFencedFenceSequence"),O(B)?_(S,V,"whitespace")(B):V(B)):j(B)}function V(B){return B===null||T(B)?(S.exit("codeFencedFence"),N(B)):j(B)}}}function $o(e,t,n){const r=this;return i;function i(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}const kt={name:"codeIndented",tokenize:qo},Ho={partial:!0,tokenize:Uo};function qo(e,t,n){const r=this;return i;function i(s){return e.enter("codeIndented"),_(e,o,"linePrefix",5)(s)}function o(s){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?l(s):n(s)}function l(s){return s===null?u(s):T(s)?e.attempt(Ho,l,u)(s):(e.enter("codeFlowValue"),a(s))}function a(s){return s===null||T(s)?(e.exit("codeFlowValue"),l(s)):(e.consume(s),a)}function u(s){return e.exit("codeIndented"),t(s)}}function Uo(e,t,n){const r=this;return i;function i(l){return r.parser.lazy[r.now().line]?n(l):T(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):_(e,o,"linePrefix",5)(l)}function o(l){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(l):T(l)?i(l):n(l)}}const Vo={name:"codeText",previous:Yo,resolve:Wo,tokenize:Go};function Wo(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function Yo(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Go(e,t,n){let r=0,i,o;return l;function l(c){return e.enter("codeText"),e.enter("codeTextSequence"),a(c)}function a(c){return c===96?(e.consume(c),r++,a):(e.exit("codeTextSequence"),u(c))}function u(c){return c===null?n(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),u):c===96?(o=e.enter("codeTextSequence"),i=0,f(c)):T(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u):(e.enter("codeTextData"),s(c))}function s(c){return c===null||c===32||c===96||T(c)?(e.exit("codeTextData"),u(c)):(e.consume(c),s)}function f(c){return c===96?(e.consume(c),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(c)):(o.type="codeTextData",s(c))}}class Xo{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&&Be(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),Be(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Be(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);Be(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Be(this.left,n.reverse())}}}function Be(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 Qr(e){const t={};let n=-1,r,i,o,l,a,u,s;const f=new Xo(e);for(;++n<f.length;){for(;n in t;)n=t[n];if(r=f.get(n),n&&r[1].type==="chunkFlow"&&f.get(n-1)[1].type==="listItemPrefix"&&(u=r[1]._tokenizer.events,o=0,o<u.length&&u[o][1].type==="lineEndingBlank"&&(o+=2),o<u.length&&u[o][1].type==="content"))for(;++o<u.length&&u[o][1].type!=="content";)u[o][1].type==="chunkText"&&(u[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,Qo(f,n)),n=t[n],s=!0);else if(r[1]._container){for(o=n,i=void 0;o--;)if(l=f.get(o),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),l[1].type="lineEnding",i=o);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;i&&(r[1].end={...f.get(i)[1].start},a=f.slice(i,n),a.unshift(r),f.splice(i,n-i+1,a))}}return re(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!s}function Qo(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[];let l=n._tokenizer;l||(l=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const a=l.events,u=[],s={};let f,c,p=-1,h=n,m=0,y=0;const C=[y];for(;h;){for(;e.get(++i)[1]!==h;);o.push(i),h._tokenizer||(f=r.sliceStream(h),h.next||f.push(null),c&&l.defineSkip(h.start),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(f),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),c=h,h=h.next}for(h=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&&(y=p+1,C.push(y),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(l.events=[],h?(h._tokenizer=void 0,h.previous=void 0):C.pop(),p=C.length;p--;){const x=a.slice(C[p],C[p+1]),b=o.pop();u.push([b,b+x.length-1]),e.splice(b,2,x)}for(u.reverse(),p=-1;++p<u.length;)s[m+u[p][0]]=m+u[p][1],m+=u[p][1]-u[p][0]-1;return s}const Ko={resolve:Zo,tokenize:ea},Jo={partial:!0,tokenize:ta};function Zo(e){return Qr(e),e}function ea(e,t){let n;return r;function r(a){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?o(a):T(a)?e.check(Jo,l,o)(a):(e.consume(a),i)}function o(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function l(a){return e.consume(a),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function ta(e,t,n){const r=this;return i;function i(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),_(e,o,"linePrefix")}function o(l){if(l===null||T(l))return n(l);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(l):e.interrupt(r.parser.constructs.flow,n,t)(l)}}function Kr(e,t,n,r,i,o,l,a,u){const s=u||Number.POSITIVE_INFINITY;let f=0;return c;function c(x){return x===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(x),e.exit(o),p):x===null||x===32||x===41||lt(x)?n(x):(e.enter(r),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),y(x))}function p(x){return x===62?(e.enter(o),e.consume(x),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),h(x))}function h(x){return x===62?(e.exit("chunkString"),e.exit(a),p(x)):x===null||x===60||T(x)?n(x):(e.consume(x),x===92?m:h)}function m(x){return x===60||x===62||x===92?(e.consume(x),h):h(x)}function y(x){return!f&&(x===null||x===41||q(x))?(e.exit("chunkString"),e.exit(a),e.exit(l),e.exit(r),t(x)):f<s&&x===40?(e.consume(x),f++,y):x===41?(e.consume(x),f--,y):x===null||x===32||x===40||lt(x)?n(x):(e.consume(x),x===92?C:y)}function C(x){return x===40||x===41||x===92?(e.consume(x),y):y(x)}}function Jr(e,t,n,r,i,o){const l=this;let a=0,u;return s;function s(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(o),f}function f(h){return a>999||h===null||h===91||h===93&&!u||h===94&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?n(h):h===93?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):T(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===null||h===91||h===93||T(h)||a++>999?(e.exit("chunkString"),f(h)):(e.consume(h),u||(u=!O(h)),h===92?p:c)}function p(h){return h===91||h===92||h===93?(e.consume(h),a++,c):c(h)}}function Zr(e,t,n,r,i,o){let l;return a;function a(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),l=p===40?41:p,u):n(p)}function u(p){return p===l?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(o),s(p))}function s(p){return p===l?(e.exit(o),u(l)):p===null?n(p):T(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),_(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===l||p===null||T(p)?(e.exit("chunkString"),s(p)):(e.consume(p),p===92?c:f)}function c(p){return p===l||p===92?(e.consume(p),f):f(p)}}function He(e,t){let n;return r;function r(i){return T(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):O(i)?_(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const na={name:"definition",tokenize:ia},ra={partial:!0,tokenize:la};function ia(e,t,n){const r=this;let i;return o;function o(h){return e.enter("definition"),l(h)}function l(h){return Jr.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return i=se(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),u):n(h)}function u(h){return q(h)?He(e,s)(h):s(h)}function s(h){return Kr(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function f(h){return e.attempt(ra,c,c)(h)}function c(h){return O(h)?_(e,p,"whitespace")(h):p(h)}function p(h){return h===null||T(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}function la(e,t,n){return r;function r(a){return q(a)?He(e,i)(a):n(a)}function i(a){return Zr(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return O(a)?_(e,l,"whitespace")(a):l(a)}function l(a){return a===null||T(a)?t(a):n(a)}}const oa={name:"hardBreakEscape",tokenize:aa};function aa(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return T(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const ua={name:"headingAtx",resolve:sa,tokenize:ca};function sa(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},re(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function ca(e,t,n){let r=0;return i;function i(f){return e.enter("atxHeading"),o(f)}function o(f){return e.enter("atxHeadingSequence"),l(f)}function l(f){return f===35&&r++<6?(e.consume(f),l):f===null||q(f)?(e.exit("atxHeadingSequence"),a(f)):n(f)}function a(f){return f===35?(e.enter("atxHeadingSequence"),u(f)):f===null||T(f)?(e.exit("atxHeading"),t(f)):O(f)?_(e,a,"whitespace")(f):(e.enter("atxHeadingText"),s(f))}function u(f){return f===35?(e.consume(f),u):(e.exit("atxHeadingSequence"),a(f))}function s(f){return f===null||f===35||q(f)?(e.exit("atxHeadingText"),a(f)):(e.consume(f),s)}}const fa=["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"],Bn=["pre","script","style","textarea"],ha={concrete:!0,name:"htmlFlow",resolveTo:ga,tokenize:da},pa={partial:!0,tokenize:xa},ma={partial:!0,tokenize:ya};function ga(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function da(e,t,n){const r=this;let i,o,l,a,u;return s;function s(d){return f(d)}function f(d){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(d),c}function c(d){return d===33?(e.consume(d),p):d===47?(e.consume(d),o=!0,y):d===63?(e.consume(d),i=3,r.interrupt?t:g):J(d)?(e.consume(d),l=String.fromCharCode(d),C):n(d)}function p(d){return d===45?(e.consume(d),i=2,h):d===91?(e.consume(d),i=5,a=0,m):J(d)?(e.consume(d),i=4,r.interrupt?t:g):n(d)}function h(d){return d===45?(e.consume(d),r.interrupt?t:g):n(d)}function m(d){const ae="CDATA[";return d===ae.charCodeAt(a++)?(e.consume(d),a===ae.length?r.interrupt?t:P:m):n(d)}function y(d){return J(d)?(e.consume(d),l=String.fromCharCode(d),C):n(d)}function C(d){if(d===null||d===47||d===62||q(d)){const ae=d===47,be=l.toLowerCase();return!ae&&!o&&Bn.includes(be)?(i=1,r.interrupt?t(d):P(d)):fa.includes(l.toLowerCase())?(i=6,ae?(e.consume(d),x):r.interrupt?t(d):P(d)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(d):o?b(d):I(d))}return d===45||Q(d)?(e.consume(d),l+=String.fromCharCode(d),C):n(d)}function x(d){return d===62?(e.consume(d),r.interrupt?t:P):n(d)}function b(d){return O(d)?(e.consume(d),b):k(d)}function I(d){return d===47?(e.consume(d),k):d===58||d===95||J(d)?(e.consume(d),D):O(d)?(e.consume(d),I):k(d)}function D(d){return d===45||d===46||d===58||d===95||Q(d)?(e.consume(d),D):v(d)}function v(d){return d===61?(e.consume(d),S):O(d)?(e.consume(d),v):I(d)}function S(d){return d===null||d===60||d===61||d===62||d===96?n(d):d===34||d===39?(e.consume(d),u=d,N):O(d)?(e.consume(d),S):j(d)}function N(d){return d===u?(e.consume(d),u=null,L):d===null||T(d)?n(d):(e.consume(d),N)}function j(d){return d===null||d===34||d===39||d===47||d===60||d===61||d===62||d===96||q(d)?v(d):(e.consume(d),j)}function L(d){return d===47||d===62||O(d)?I(d):n(d)}function k(d){return d===62?(e.consume(d),F):n(d)}function F(d){return d===null||T(d)?P(d):O(d)?(e.consume(d),F):n(d)}function P(d){return d===45&&i===2?(e.consume(d),X):d===60&&i===1?(e.consume(d),Y):d===62&&i===4?(e.consume(d),oe):d===63&&i===3?(e.consume(d),g):d===93&&i===5?(e.consume(d),he):T(d)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(pa,pe,$)(d)):d===null||T(d)?(e.exit("htmlFlowData"),$(d)):(e.consume(d),P)}function $(d){return e.check(ma,V,pe)(d)}function V(d){return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),B}function B(d){return d===null||T(d)?$(d):(e.enter("htmlFlowData"),P(d))}function X(d){return d===45?(e.consume(d),g):P(d)}function Y(d){return d===47?(e.consume(d),l="",le):P(d)}function le(d){if(d===62){const ae=l.toLowerCase();return Bn.includes(ae)?(e.consume(d),oe):P(d)}return J(d)&&l.length<8?(e.consume(d),l+=String.fromCharCode(d),le):P(d)}function he(d){return d===93?(e.consume(d),g):P(d)}function g(d){return d===62?(e.consume(d),oe):d===45&&i===2?(e.consume(d),g):P(d)}function oe(d){return d===null||T(d)?(e.exit("htmlFlowData"),pe(d)):(e.consume(d),oe)}function pe(d){return e.exit("htmlFlow"),t(d)}}function ya(e,t,n){const r=this;return i;function i(l){return T(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):n(l)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}function xa(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Ge,t,n)}}const ka={name:"htmlText",tokenize:ba};function ba(e,t,n){const r=this;let i,o,l;return a;function a(g){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(g),u}function u(g){return g===33?(e.consume(g),s):g===47?(e.consume(g),v):g===63?(e.consume(g),I):J(g)?(e.consume(g),j):n(g)}function s(g){return g===45?(e.consume(g),f):g===91?(e.consume(g),o=0,m):J(g)?(e.consume(g),b):n(g)}function f(g){return g===45?(e.consume(g),h):n(g)}function c(g){return g===null?n(g):g===45?(e.consume(g),p):T(g)?(l=c,Y(g)):(e.consume(g),c)}function p(g){return g===45?(e.consume(g),h):c(g)}function h(g){return g===62?X(g):g===45?p(g):c(g)}function m(g){const oe="CDATA[";return g===oe.charCodeAt(o++)?(e.consume(g),o===oe.length?y:m):n(g)}function y(g){return g===null?n(g):g===93?(e.consume(g),C):T(g)?(l=y,Y(g)):(e.consume(g),y)}function C(g){return g===93?(e.consume(g),x):y(g)}function x(g){return g===62?X(g):g===93?(e.consume(g),x):y(g)}function b(g){return g===null||g===62?X(g):T(g)?(l=b,Y(g)):(e.consume(g),b)}function I(g){return g===null?n(g):g===63?(e.consume(g),D):T(g)?(l=I,Y(g)):(e.consume(g),I)}function D(g){return g===62?X(g):I(g)}function v(g){return J(g)?(e.consume(g),S):n(g)}function S(g){return g===45||Q(g)?(e.consume(g),S):N(g)}function N(g){return T(g)?(l=N,Y(g)):O(g)?(e.consume(g),N):X(g)}function j(g){return g===45||Q(g)?(e.consume(g),j):g===47||g===62||q(g)?L(g):n(g)}function L(g){return g===47?(e.consume(g),X):g===58||g===95||J(g)?(e.consume(g),k):T(g)?(l=L,Y(g)):O(g)?(e.consume(g),L):X(g)}function k(g){return g===45||g===46||g===58||g===95||Q(g)?(e.consume(g),k):F(g)}function F(g){return g===61?(e.consume(g),P):T(g)?(l=F,Y(g)):O(g)?(e.consume(g),F):L(g)}function P(g){return g===null||g===60||g===61||g===62||g===96?n(g):g===34||g===39?(e.consume(g),i=g,$):T(g)?(l=P,Y(g)):O(g)?(e.consume(g),P):(e.consume(g),V)}function $(g){return g===i?(e.consume(g),i=void 0,B):g===null?n(g):T(g)?(l=$,Y(g)):(e.consume(g),$)}function V(g){return g===null||g===34||g===39||g===60||g===61||g===96?n(g):g===47||g===62||q(g)?L(g):(e.consume(g),V)}function B(g){return g===47||g===62||q(g)?L(g):n(g)}function X(g){return g===62?(e.consume(g),e.exit("htmlTextData"),e.exit("htmlText"),t):n(g)}function Y(g){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),le}function le(g){return O(g)?_(e,he,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(g):he(g)}function he(g){return e.enter("htmlTextData"),l(g)}}const en={name:"labelEnd",resolveAll:Ea,resolveTo:Ia,tokenize:Aa},wa={tokenize:Ta},Sa={tokenize:Fa},Ca={tokenize:Pa};function Ea(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&&re(e,0,e.length,n),e}function Ia(e,t){let n=e.length,r=0,i,o,l,a;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(l){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(l=n);const u={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},s={type:"label",start:{...e[o][1].start},end:{...e[l][1].end}},f={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[l-2][1].start}};return a=[["enter",u,t],["enter",s,t]],a=ie(a,e.slice(o+1,o+r+3)),a=ie(a,[["enter",f,t]]),a=ie(a,pt(t.parser.constructs.insideSpan.null,e.slice(o+r+4,l-3),t)),a=ie(a,[["exit",f,t],e[l-2],e[l-1],["exit",s,t]]),a=ie(a,e.slice(l+1)),a=ie(a,[["exit",u,t]]),re(e,o,e.length,a),e}function Aa(e,t,n){const r=this;let i=r.events.length,o,l;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return a;function a(p){return o?o._inactive?c(p):(l=r.parser.defined.includes(se(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),u):n(p)}function u(p){return p===40?e.attempt(wa,f,l?f:c)(p):p===91?e.attempt(Sa,f,l?s:c)(p):l?f(p):c(p)}function s(p){return e.attempt(Ca,f,c)(p)}function f(p){return t(p)}function c(p){return o._balanced=!0,n(p)}}function Ta(e,t,n){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return q(c)?He(e,o)(c):o(c)}function o(c){return c===41?f(c):Kr(e,l,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function l(c){return q(c)?He(e,u)(c):f(c)}function a(c){return n(c)}function u(c){return c===34||c===39||c===40?Zr(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function s(c){return q(c)?He(e,f)(c):f(c)}function f(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),t):n(c)}}function Fa(e,t,n){const r=this;return i;function i(a){return Jr.call(r,e,o,l,"reference","referenceMarker","referenceString")(a)}function o(a){return r.parser.defined.includes(se(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function l(a){return n(a)}}function Pa(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const za={name:"labelStartImage",resolveAll:en.resolveAll,tokenize:Da};function Da(e,t,n){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),o}function o(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),l):n(a)}function l(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const va={name:"labelStartLink",resolveAll:en.resolveAll,tokenize:La};function La(e,t,n){const r=this;return i;function i(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),o}function o(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const bt={name:"lineEnding",tokenize:Ma};function Ma(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),_(e,t,"linePrefix")}}const nt={name:"thematicBreak",tokenize:_a};function _a(e,t,n){let r=0,i;return o;function o(s){return e.enter("thematicBreak"),l(s)}function l(s){return i=s,a(s)}function a(s){return s===i?(e.enter("thematicBreakSequence"),u(s)):r>=3&&(s===null||T(s))?(e.exit("thematicBreak"),t(s)):n(s)}function u(s){return s===i?(e.consume(s),r++,u):(e.exit("thematicBreakSequence"),O(s)?_(e,a,"whitespace")(s):a(s))}}const Z={continuation:{tokenize:Ba},exit:$a,name:"list",tokenize:Ra},Oa={partial:!0,tokenize:Ha},Na={partial:!0,tokenize:ja};function Ra(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,l=0;return a;function a(h){const m=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:Nt(h)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(nt,n,s)(h):s(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(h)}return n(h)}function u(h){return Nt(h)&&++l<10?(e.consume(h),u):(!r.interrupt||l<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),s(h)):n(h)}function s(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(Ge,r.interrupt?n:f,e.attempt(Oa,p,c))}function f(h){return r.containerState.initialBlankLine=!0,o++,p(h)}function c(h){return O(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):n(h)}function p(h){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function Ba(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Ge,i,o);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,_(e,t,"listItemIndent",r.containerState.size+1)(a)}function o(a){return r.containerState.furtherBlankLines||!O(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Na,t,l)(a))}function l(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,_(e,e.attempt(Z,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function ja(e,t,n){const r=this;return _(e,i,"listItemIndent",r.containerState.size+1);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?t(o):n(o)}}function $a(e){e.exit(this.containerState.type)}function Ha(e,t,n){const r=this;return _(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const l=r.events[r.events.length-1];return!O(o)&&l&&l[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const jn={name:"setextUnderline",resolveTo:qa,tokenize:Ua};function qa(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const l={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",l,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=l,e.push(["exit",l,t]),e}function Ua(e,t,n){const r=this;let i;return o;function o(s){let f=r.events.length,c;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){c=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),i=s,l(s)):n(s)}function l(s){return e.enter("setextHeadingLineSequence"),a(s)}function a(s){return s===i?(e.consume(s),a):(e.exit("setextHeadingLineSequence"),O(s)?_(e,u,"lineSuffix")(s):u(s))}function u(s){return s===null||T(s)?(e.exit("setextHeadingLine"),t(s)):n(s)}}const Va={tokenize:Wa};function Wa(e){const t=this,n=e.attempt(Ge,r,e.attempt(this.parser.constructs.flowInitial,i,_(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Ko,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Ya={resolveAll:ti()},Ga=ei("string"),Xa=ei("text");function ei(e){return{resolveAll:ti(e==="text"?Qa:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,l,a);return l;function l(f){return s(f)?o(f):a(f)}function a(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),u}function u(f){return s(f)?(n.exit("data"),o(f)):(n.consume(f),u)}function s(f){if(f===null)return!0;const c=i[f];let p=-1;if(c)for(;++p<c.length;){const h=c[p];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function ti(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function Qa(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=i.length,l=-1,a=0,u;for(;o--;){const s=i[o];if(typeof s=="string"){for(l=s.length;s.charCodeAt(l-1)===32;)a++,l--;if(l)break;l=-1}else if(s===-2)u=!0,a++;else if(s!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(a=0),a){const s={type:n===e.length||u||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?l:r.start._bufferIndex+l,_index:r.start._index+o,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...s.start},r.start.offset===r.end.offset?Object.assign(r,s):(e.splice(n,0,["enter",s,t],["exit",s,t]),n+=2)}n++}return e}const Ka={42:Z,43:Z,45:Z,48:Z,49:Z,50:Z,51:Z,52:Z,53:Z,54:Z,55:Z,56:Z,57:Z,62:Yr},Ja={91:na},Za={[-2]:kt,[-1]:kt,32:kt},eu={35:ua,42:nt,45:[jn,nt],60:ha,61:jn,95:nt,96:Rn,126:Rn},tu={38:Xr,92:Gr},nu={[-5]:bt,[-4]:bt,[-3]:bt,33:za,38:Xr,42:Rt,60:[vo,ka],91:va,92:[oa,Gr],93:en,95:Rt,96:Vo},ru={null:[Rt,Ya]},iu={null:[42,95]},lu={null:[]},ou=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:iu,contentInitial:Ja,disable:lu,document:Ka,flow:eu,flowInitial:Za,insideSpan:ru,string:tu,text:nu},Symbol.toStringTag,{value:"Module"}));function au(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 l=[],a=[];const u={attempt:N(v),check:N(S),consume:b,enter:I,exit:D,interrupt:N(S,{interrupt:!0})},s={code:null,containerState:{},defineSkip:y,events:[],now:m,parser:e,previous:null,sliceSerialize:p,sliceStream:h,write:c};let f=t.tokenize.call(s,u);return t.resolveAll&&o.push(t),s;function c(F){return l=ie(l,F),C(),l[l.length-1]!==null?[]:(j(t,0),s.events=pt(o,s.events,s),s.events)}function p(F,P){return su(h(F),P)}function h(F){return uu(l,F)}function m(){const{_bufferIndex:F,_index:P,line:$,column:V,offset:B}=r;return{_bufferIndex:F,_index:P,line:$,column:V,offset:B}}function y(F){i[F.line]=F.column,k()}function C(){let F;for(;r._index<l.length;){const P=l[r._index];if(typeof P=="string")for(F=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===F&&r._bufferIndex<P.length;)x(P.charCodeAt(r._bufferIndex));else x(P)}}function x(F){f=f(F)}function b(F){T(F)?(r.line++,r.column=1,r.offset+=F===-3?2:1,k()):F!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),s.previous=F}function I(F,P){const $=P||{};return $.type=F,$.start=m(),s.events.push(["enter",$,s]),a.push($),$}function D(F){const P=a.pop();return P.end=m(),s.events.push(["exit",P,s]),P}function v(F,P){j(F,P.from)}function S(F,P){P.restore()}function N(F,P){return $;function $(V,B,X){let Y,le,he,g;return Array.isArray(V)?pe(V):"tokenize"in V?pe([V]):oe(V);function oe(G){return Oe;function Oe(ye){const Te=ye!==null&&G[ye],Fe=ye!==null&&G.null,Ke=[...Array.isArray(Te)?Te:Te?[Te]:[],...Array.isArray(Fe)?Fe:Fe?[Fe]:[]];return pe(Ke)(ye)}}function pe(G){return Y=G,le=0,G.length===0?X:d(G[le])}function d(G){return Oe;function Oe(ye){return g=L(),he=G,G.partial||(s.currentConstruct=G),G.name&&s.parser.constructs.disable.null.includes(G.name)?be():G.tokenize.call(P?Object.assign(Object.create(s),P):s,u,ae,be)(ye)}}function ae(G){return F(he,g),B}function be(G){return g.restore(),++le<Y.length?d(Y[le]):X}}}function j(F,P){F.resolveAll&&!o.includes(F)&&o.push(F),F.resolve&&re(s.events,P,s.events.length-P,F.resolve(s.events.slice(P),s)),F.resolveTo&&(s.events=F.resolveTo(s.events,s))}function L(){const F=m(),P=s.previous,$=s.currentConstruct,V=s.events.length,B=Array.from(a);return{from:V,restore:X};function X(){r=F,s.previous=P,s.currentConstruct=$,s.events.length=V,a=B,k()}}function k(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function uu(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let l;if(n===i)l=[e[n].slice(r,o)];else{if(l=e.slice(n,i),r>-1){const a=l[0];typeof a=="string"?l[0]=a.slice(r):l.shift()}o>0&&l.push(e[i].slice(0,o))}return l}function su(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let l;if(typeof o=="string")l=o;else switch(o){case-5:{l="\r";break}case-4:{l=`
|
||
`;break}case-3:{l=`\r
|
||
`;break}case-2:{l=t?" ":" ";break}case-1:{if(!t&&i)continue;l=" ";break}default:l=String.fromCharCode(o)}i=o===-2,r.push(l)}return r.join("")}function cu(e){const r={constructs:Vr([ou,...(e||{}).extensions||[]]),content:i(Io),defined:[],document:i(To),flow:i(Va),lazy:{},string:i(Ga),text:i(Xa)};return r;function i(o){return l;function l(a){return au(r,o,a)}}}function fu(e){for(;!Qr(e););return e}const $n=/[\0\t\n\r]/g;function hu(){let e=1,t="",n=!0,r;return i;function i(o,l,a){const u=[];let s,f,c,p,h;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(l||void 0).decode(o)),c=0,t="",n&&(o.charCodeAt(0)===65279&&c++,n=void 0);c<o.length;){if($n.lastIndex=c,s=$n.exec(o),p=s&&s.index!==void 0?s.index:o.length,h=o.charCodeAt(p),!s){t=o.slice(c);break}if(h===10&&c===p&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),c<p&&(u.push(o.slice(c,p)),e+=p-c),h){case 0:{u.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,u.push(-2);e++<f;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:r=!0,e=1}c=p+1}return a&&(r&&u.push(-5),t&&u.push(t),u.push(null)),u}}const pu=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function mu(e){return e.replace(pu,gu)}function gu(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return Wr(n.slice(o?2:1),o?16:10)}return Zt(n)||e}const ni={}.hasOwnProperty;function du(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),yu(n)(fu(cu(n).document().write(hu()(e,t,!0))))}function yu(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(dn),autolinkProtocol:L,autolinkEmail:L,atxHeading:o(pn),blockQuote:o(Fe),characterEscape:L,characterReference:L,codeFenced:o(Ke),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:o(Ke,l),codeText:o(Vi,l),codeTextData:L,data:L,codeFlowValue:L,definition:o(Wi),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:o(Yi),hardBreakEscape:o(mn),hardBreakTrailing:o(mn),htmlFlow:o(gn,l),htmlFlowData:L,htmlText:o(gn,l),htmlTextData:L,image:o(Gi),label:l,link:o(dn),listItem:o(Xi),listItemValue:p,listOrdered:o(yn,c),listUnordered:o(yn),paragraph:o(Qi),reference:d,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:o(pn),strong:o(Ki),thematicBreak:o(Zi)},exit:{atxHeading:u(),atxHeadingSequence:v,autolink:u(),autolinkEmail:Te,autolinkProtocol:ye,blockQuote:u(),characterEscapeValue:k,characterReferenceMarkerHexadecimal:be,characterReferenceMarkerNumeric:be,characterReferenceValue:G,characterReference:Oe,codeFenced:u(C),codeFencedFence:y,codeFencedFenceInfo:h,codeFencedFenceMeta:m,codeFlowValue:k,codeIndented:u(x),codeText:u(B),codeTextData:k,data:k,definition:u(),definitionDestinationString:D,definitionLabelString:b,definitionTitleString:I,emphasis:u(),hardBreakEscape:u(P),hardBreakTrailing:u(P),htmlFlow:u($),htmlFlowData:k,htmlText:u(V),htmlTextData:k,image:u(Y),label:he,labelText:le,lineEnding:F,link:u(X),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:ae,resourceDestinationString:g,resourceTitleString:oe,resource:pe,setextHeading:u(j),setextHeadingLineSequence:N,setextHeadingText:S,strong:u(),thematicBreak:u()}};ri(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(w){let A={type:"root",children:[]};const z={stack:[A],tokenStack:[],config:t,enter:a,exit:s,buffer:l,resume:f,data:n},R=[];let H=-1;for(;++H<w.length;)if(w[H][1].type==="listOrdered"||w[H][1].type==="listUnordered")if(w[H][0]==="enter")R.push(H);else{const ue=R.pop();H=i(w,ue,H)}for(H=-1;++H<w.length;){const ue=t[w[H][0]];ni.call(ue,w[H][1].type)&&ue[w[H][1].type].call(Object.assign({sliceSerialize:w[H][2].sliceSerialize},z),w[H][1])}if(z.tokenStack.length>0){const ue=z.tokenStack[z.tokenStack.length-1];(ue[1]||Hn).call(z,void 0,ue[0])}for(A.position={start:xe(w.length>0?w[0][1].start:{line:1,column:1,offset:0}),end:xe(w.length>0?w[w.length-2][1].end:{line:1,column:1,offset:0})},H=-1;++H<t.transforms.length;)A=t.transforms[H](A)||A;return A}function i(w,A,z){let R=A-1,H=-1,ue=!1,we,me,Ne,Re;for(;++R<=z;){const te=w[R];switch(te[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{te[0]==="enter"?H++:H--,Re=void 0;break}case"lineEndingBlank":{te[0]==="enter"&&(we&&!Re&&!H&&!Ne&&(Ne=R),Re=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Re=void 0}if(!H&&te[0]==="enter"&&te[1].type==="listItemPrefix"||H===-1&&te[0]==="exit"&&(te[1].type==="listUnordered"||te[1].type==="listOrdered")){if(we){let Pe=R;for(me=void 0;Pe--;){const ge=w[Pe];if(ge[1].type==="lineEnding"||ge[1].type==="lineEndingBlank"){if(ge[0]==="exit")continue;me&&(w[me][1].type="lineEndingBlank",ue=!0),ge[1].type="lineEnding",me=Pe}else if(!(ge[1].type==="linePrefix"||ge[1].type==="blockQuotePrefix"||ge[1].type==="blockQuotePrefixWhitespace"||ge[1].type==="blockQuoteMarker"||ge[1].type==="listItemIndent"))break}Ne&&(!me||Ne<me)&&(we._spread=!0),we.end=Object.assign({},me?w[me][1].start:te[1].end),w.splice(me||R,0,["exit",we,te[2]]),R++,z++}if(te[1].type==="listItemPrefix"){const Pe={type:"listItem",_spread:!1,start:Object.assign({},te[1].start),end:void 0};we=Pe,w.splice(R,0,["enter",Pe,te[2]]),R++,z++,Ne=void 0,Re=!0}}}return w[A][1]._spread=ue,z}function o(w,A){return z;function z(R){a.call(this,w(R),R),A&&A.call(this,R)}}function l(){this.stack.push({type:"fragment",children:[]})}function a(w,A,z){this.stack[this.stack.length-1].children.push(w),this.stack.push(w),this.tokenStack.push([A,z||void 0]),w.position={start:xe(A.start),end:void 0}}function u(w){return A;function A(z){w&&w.call(this,z),s.call(this,z)}}function s(w,A){const z=this.stack.pop(),R=this.tokenStack.pop();if(R)R[0].type!==w.type&&(A?A.call(this,w,R[0]):(R[1]||Hn).call(this,w,R[0]));else throw new Error("Cannot close `"+w.type+"` ("+$e({start:w.start,end:w.end})+"): it’s not open");z.position.end=xe(w.end)}function f(){return Jt(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function p(w){if(this.data.expectingFirstListItemValue){const A=this.stack[this.stack.length-2];A.start=Number.parseInt(this.sliceSerialize(w),10),this.data.expectingFirstListItemValue=void 0}}function h(){const w=this.resume(),A=this.stack[this.stack.length-1];A.lang=w}function m(){const w=this.resume(),A=this.stack[this.stack.length-1];A.meta=w}function y(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const w=this.resume(),A=this.stack[this.stack.length-1];A.value=w.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const w=this.resume(),A=this.stack[this.stack.length-1];A.value=w.replace(/(\r?\n|\r)$/g,"")}function b(w){const A=this.resume(),z=this.stack[this.stack.length-1];z.label=A,z.identifier=se(this.sliceSerialize(w)).toLowerCase()}function I(){const w=this.resume(),A=this.stack[this.stack.length-1];A.title=w}function D(){const w=this.resume(),A=this.stack[this.stack.length-1];A.url=w}function v(w){const A=this.stack[this.stack.length-1];if(!A.depth){const z=this.sliceSerialize(w).length;A.depth=z}}function S(){this.data.setextHeadingSlurpLineEnding=!0}function N(w){const A=this.stack[this.stack.length-1];A.depth=this.sliceSerialize(w).codePointAt(0)===61?1:2}function j(){this.data.setextHeadingSlurpLineEnding=void 0}function L(w){const z=this.stack[this.stack.length-1].children;let R=z[z.length-1];(!R||R.type!=="text")&&(R=Ji(),R.position={start:xe(w.start),end:void 0},z.push(R)),this.stack.push(R)}function k(w){const A=this.stack.pop();A.value+=this.sliceSerialize(w),A.position.end=xe(w.end)}function F(w){const A=this.stack[this.stack.length-1];if(this.data.atHardBreak){const z=A.children[A.children.length-1];z.position.end=xe(w.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(A.type)&&(L.call(this,w),k.call(this,w))}function P(){this.data.atHardBreak=!0}function $(){const w=this.resume(),A=this.stack[this.stack.length-1];A.value=w}function V(){const w=this.resume(),A=this.stack[this.stack.length-1];A.value=w}function B(){const w=this.resume(),A=this.stack[this.stack.length-1];A.value=w}function X(){const w=this.stack[this.stack.length-1];if(this.data.inReference){const A=this.data.referenceType||"shortcut";w.type+="Reference",w.referenceType=A,delete w.url,delete w.title}else delete w.identifier,delete w.label;this.data.referenceType=void 0}function Y(){const w=this.stack[this.stack.length-1];if(this.data.inReference){const A=this.data.referenceType||"shortcut";w.type+="Reference",w.referenceType=A,delete w.url,delete w.title}else delete w.identifier,delete w.label;this.data.referenceType=void 0}function le(w){const A=this.sliceSerialize(w),z=this.stack[this.stack.length-2];z.label=mu(A),z.identifier=se(A).toLowerCase()}function he(){const w=this.stack[this.stack.length-1],A=this.resume(),z=this.stack[this.stack.length-1];if(this.data.inReference=!0,z.type==="link"){const R=w.children;z.children=R}else z.alt=A}function g(){const w=this.resume(),A=this.stack[this.stack.length-1];A.url=w}function oe(){const w=this.resume(),A=this.stack[this.stack.length-1];A.title=w}function pe(){this.data.inReference=void 0}function d(){this.data.referenceType="collapsed"}function ae(w){const A=this.resume(),z=this.stack[this.stack.length-1];z.label=A,z.identifier=se(this.sliceSerialize(w)).toLowerCase(),this.data.referenceType="full"}function be(w){this.data.characterReferenceType=w.type}function G(w){const A=this.sliceSerialize(w),z=this.data.characterReferenceType;let R;z?(R=Wr(A,z==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):R=Zt(A);const H=this.stack[this.stack.length-1];H.value+=R}function Oe(w){const A=this.stack.pop();A.position.end=xe(w.end)}function ye(w){k.call(this,w);const A=this.stack[this.stack.length-1];A.url=this.sliceSerialize(w)}function Te(w){k.call(this,w);const A=this.stack[this.stack.length-1];A.url="mailto:"+this.sliceSerialize(w)}function Fe(){return{type:"blockquote",children:[]}}function Ke(){return{type:"code",lang:null,meta:null,value:""}}function Vi(){return{type:"inlineCode",value:""}}function Wi(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Yi(){return{type:"emphasis",children:[]}}function pn(){return{type:"heading",depth:0,children:[]}}function mn(){return{type:"break"}}function gn(){return{type:"html",value:""}}function Gi(){return{type:"image",title:null,url:"",alt:null}}function dn(){return{type:"link",title:null,url:"",children:[]}}function yn(w){return{type:"list",ordered:w.type==="listOrdered",start:null,spread:w._spread,children:[]}}function Xi(w){return{type:"listItem",spread:w._spread,checked:null,children:[]}}function Qi(){return{type:"paragraph",children:[]}}function Ki(){return{type:"strong",children:[]}}function Ji(){return{type:"text",value:""}}function Zi(){return{type:"thematicBreak"}}}function xe(e){return{line:e.line,column:e.column,offset:e.offset}}function ri(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?ri(e,r):xu(e,r)}}function xu(e,t){let n;for(n in t)if(ni.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 Hn(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+$e({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+$e({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+$e({start:t.start,end:t.end})+") is still open")}function ku(e){const t=this;t.parser=n;function n(r){return du(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function bu(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)}function wu(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
||
`}]}function Su(e,t){const n=t.value?t.value+`
|
||
`:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function Cu(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Eu(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Iu(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=_e(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let l,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=o+1,a+=1,e.footnoteCounts.set(r,a);const u={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,u);const s={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,s),e.applyData(t,s)}function Au(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Tu(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function ii(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 l=i[i.length-1];return l&&l.type==="text"?l.value+=r:i.push({type:"text",value:r}),i}function Fu(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return ii(e,t);const i={src:_e(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function Pu(e,t){const n={src:_e(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function zu(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Du(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return ii(e,t);const i={href:_e(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function vu(e,t){const n={href:_e(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Lu(e,t,n){const r=e.all(t),i=n?Mu(n):li(t),o={},l=[];if(typeof t.checked=="boolean"){const f=r[0];let c;f&&f.type==="element"&&f.tagName==="p"?c=f:(c={type:"element",tagName:"p",properties:{},children:[]},r.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const f=r[a];(i||a!==0||f.type!=="element"||f.tagName!=="p")&&l.push({type:"text",value:`
|
||
`}),f.type==="element"&&f.tagName==="p"&&!i?l.push(...f.children):l.push(f)}const u=r[r.length-1];u&&(i||u.type!=="element"||u.tagName!=="p")&&l.push({type:"text",value:`
|
||
`});const s={type:"element",tagName:"li",properties:o,children:l};return e.patch(t,s),e.applyData(t,s)}function Mu(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=li(n[r])}return t}function li(e){const t=e.spread;return t??e.children.length>1}function _u(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const l=r[i];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function Ou(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Nu(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Ru(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Bu(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],l),i.push(l)}if(n.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=Gt(t.children[1]),u=Rr(t.children[t.children.length-1]);a&&u&&(l.position={start:a,end:u}),i.push(l)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function ju(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",l=n&&n.type==="table"?n.align:void 0,a=l?l.length:t.children.length;let u=-1;const s=[];for(;++u<a;){const c=t.children[u],p={},h=l?l[u]:void 0;h&&(p.align=h);let m={type:"element",tagName:o,properties:p,children:[]};c&&(m.children=e.all(c),e.patch(c,m),m=e.applyData(c,m)),s.push(m)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(t,f),e.applyData(t,f)}function $u(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const qn=9,Un=32;function Hu(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(Vn(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(Vn(t.slice(i),i>0,!1)),o.join("")}function Vn(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===qn||o===Un;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===qn||o===Un;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function qu(e,t){const n={type:"text",value:Hu(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Uu(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Vu={blockquote:bu,break:wu,code:Su,delete:Cu,emphasis:Eu,footnoteReference:Iu,heading:Au,html:Tu,imageReference:Fu,image:Pu,inlineCode:zu,linkReference:Du,link:vu,listItem:Lu,list:_u,paragraph:Ou,root:Nu,strong:Ru,table:Bu,tableCell:$u,tableRow:ju,text:qu,thematicBreak:Uu,toml:Je,yaml:Je,definition:Je,footnoteDefinition:Je};function Je(){}const oi=-1,mt=0,qe=1,ot=2,tn=3,nn=4,rn=5,ln=6,ai=7,ui=8,Wn=typeof self=="object"?self:globalThis,Wu=(e,t)=>{const n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,l]=t[i];switch(o){case mt:case oi:return n(l,i);case qe:{const a=n([],i);for(const u of l)a.push(r(u));return a}case ot:{const a=n({},i);for(const[u,s]of l)a[r(u)]=r(s);return a}case tn:return n(new Date(l),i);case nn:{const{source:a,flags:u}=l;return n(new RegExp(a,u),i)}case rn:{const a=n(new Map,i);for(const[u,s]of l)a.set(r(u),r(s));return a}case ln:{const a=n(new Set,i);for(const u of l)a.add(r(u));return a}case ai:{const{name:a,message:u}=l;return n(new Wn[a](u),i)}case ui:return n(BigInt(l),i);case"BigInt":return n(Object(BigInt(l)),i);case"ArrayBuffer":return n(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:a}=new Uint8Array(l);return n(new DataView(a),l)}}return n(new Wn[o](l),i)};return r},Yn=e=>Wu(new Map,e)(0),ze="",{toString:Yu}={},{keys:Gu}=Object,je=e=>{const t=typeof e;if(t!=="object"||!e)return[mt,t];const n=Yu.call(e).slice(8,-1);switch(n){case"Array":return[qe,ze];case"Object":return[ot,ze];case"Date":return[tn,ze];case"RegExp":return[nn,ze];case"Map":return[rn,ze];case"Set":return[ln,ze];case"DataView":return[qe,n]}return n.includes("Array")?[qe,n]:n.includes("Error")?[ai,n]:[ot,n]},Ze=([e,t])=>e===mt&&(t==="function"||t==="symbol"),Xu=(e,t,n,r)=>{const i=(l,a)=>{const u=r.push(l)-1;return n.set(a,u),u},o=l=>{if(n.has(l))return n.get(l);let[a,u]=je(l);switch(a){case mt:{let f=l;switch(u){case"bigint":a=ui,f=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);f=null;break;case"undefined":return i([oi],l)}return i([a,f],l)}case qe:{if(u){let p=l;return u==="DataView"?p=new Uint8Array(l.buffer):u==="ArrayBuffer"&&(p=new Uint8Array(l)),i([u,[...p]],l)}const f=[],c=i([a,f],l);for(const p of l)f.push(o(p));return c}case ot:{if(u)switch(u){case"BigInt":return i([u,l.toString()],l);case"Boolean":case"Number":case"String":return i([u,l.valueOf()],l)}if(t&&"toJSON"in l)return o(l.toJSON());const f=[],c=i([a,f],l);for(const p of Gu(l))(e||!Ze(je(l[p])))&&f.push([o(p),o(l[p])]);return c}case tn:return i([a,l.toISOString()],l);case nn:{const{source:f,flags:c}=l;return i([a,{source:f,flags:c}],l)}case rn:{const f=[],c=i([a,f],l);for(const[p,h]of l)(e||!(Ze(je(p))||Ze(je(h))))&&f.push([o(p),o(h)]);return c}case ln:{const f=[],c=i([a,f],l);for(const p of l)(e||!Ze(je(p)))&&f.push(o(p));return c}}const{message:s}=l;return i([a,{name:u,message:s}],l)};return o},Gn=(e,{json:t,lossy:n}={})=>{const r=[];return Xu(!(t||n),!!t,new Map,r)(e),r},at=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Yn(Gn(e,t)):structuredClone(e):(e,t)=>Yn(Gn(e,t));function Qu(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Ku(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Ju(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Qu,r=e.options.footnoteBackLabel||Ku,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let u=-1;for(;++u<e.footnoteOrder.length;){const s=e.footnoteById.get(e.footnoteOrder[u]);if(!s)continue;const f=e.all(s),c=String(s.identifier).toUpperCase(),p=_e(c.toLowerCase());let h=0;const m=[],y=e.footnoteCounts.get(c);for(;y!==void 0&&++h<=y;){m.length>0&&m.push({type:"text",value:" "});let b=typeof n=="string"?n:n(u,h);typeof b=="string"&&(b={type:"text",value:b}),m.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(u,h),className:["data-footnote-backref"]},children:Array.isArray(b)?b:[b]})}const C=f[f.length-1];if(C&&C.type==="element"&&C.tagName==="p"){const b=C.children[C.children.length-1];b&&b.type==="text"?b.value+=" ":C.children.push({type:"text",value:" "}),C.children.push(...m)}else f.push(...m);const x={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(f,!0)};e.patch(s,x),a.push(x)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...at(l),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
|
||
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
|
||
`}]}}const Xe=function(e){if(e==null)return ns;if(typeof e=="function")return gt(e);if(typeof e=="object")return Array.isArray(e)?Zu(e):es(e);if(typeof e=="string")return ts(e);throw new Error("Expected function, string, or object as test")};function Zu(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Xe(e[n]);return gt(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function es(e){const t=e;return gt(n);function n(r){const i=r;let o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function ts(e){return gt(t);function t(n){return n&&n.type===e}}function gt(e){return t;function t(n,r,i){return!!(rs(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function ns(){return!0}function rs(e){return e!==null&&typeof e=="object"&&"type"in e}const si=[],is=!0,Bt=!1,ci="skip";function on(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const o=Xe(i),l=r?-1:1;a(e,void 0,[])();function a(u,s,f){const c=u&&typeof u=="object"?u:{};if(typeof c.type=="string"){const h=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(u.type+(h?"<"+h+">":""))+")"})}return p;function p(){let h=si,m,y,C;if((!t||o(u,s,f[f.length-1]||void 0))&&(h=ls(n(u,f)),h[0]===Bt))return h;if("children"in u&&u.children){const x=u;if(x.children&&h[0]!==ci)for(y=(r?x.children.length:-1)+l,C=f.concat(x);y>-1&&y<x.children.length;){const b=x.children[y];if(m=a(b,y,C)(),m[0]===Bt)return m;y=typeof m[1]=="number"?m[1]:y+l}}return h}}}function ls(e){return Array.isArray(e)?e:typeof e=="number"?[is,e]:e==null?si:[e]}function an(e,t,n,r){let i,o,l;typeof t=="function"&&typeof n!="function"?(o=void 0,l=t,i=n):(o=t,l=n,i=r),on(e,o,a,i);function a(u,s){const f=s[s.length-1],c=f?f.children.indexOf(u):void 0;return l(u,c,f)}}const jt={}.hasOwnProperty,os={};function as(e,t){const n=t||os,r=new Map,i=new Map,o=new Map,l={...Vu,...n.handlers},a={all:s,applyData:ss,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:l,one:u,options:n,patch:us,wrap:fs};return an(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const c=f.type==="definition"?r:i,p=String(f.identifier).toUpperCase();c.has(p)||c.set(p,f)}}),a;function u(f,c){const p=f.type,h=a.handlers[p];if(jt.call(a.handlers,p)&&h)return h(a,f,c);if(a.options.passThrough&&a.options.passThrough.includes(p)){if("children"in f){const{children:y,...C}=f,x=at(C);return x.children=a.all(f),x}return at(f)}return(a.options.unknownHandler||cs)(a,f,c)}function s(f){const c=[];if("children"in f){const p=f.children;let h=-1;for(;++h<p.length;){const m=a.one(p[h],f);if(m){if(h&&p[h-1].type==="break"&&(!Array.isArray(m)&&m.type==="text"&&(m.value=Xn(m.value)),!Array.isArray(m)&&m.type==="element")){const y=m.children[0];y&&y.type==="text"&&(y.value=Xn(y.value))}Array.isArray(m)?c.push(...m):c.push(m)}}}return c}}function us(e,t){e.position&&(t.position=Ql(e))}function ss(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const l="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:l}}n.type==="element"&&o&&Object.assign(n.properties,at(o)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function cs(e,t){const n=t.data||{},r="value"in t&&!(jt.call(n,"hProperties")||jt.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function fs(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
||
`});++r<e.length;)r&&n.push({type:"text",value:`
|
||
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
||
`}),n}function Xn(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Qn(e,t){const n=as(e,t),r=n.one(e,void 0),i=Ju(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
|
||
`},i),o}function hs(e,t){return e&&"run"in e?async function(n,r){const i=Qn(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Qn(n,{file:r,...e||t})}}function Kn(e){if(e)throw e}var rt=Object.prototype.hasOwnProperty,fi=Object.prototype.toString,Jn=Object.defineProperty,Zn=Object.getOwnPropertyDescriptor,er=function(t){return typeof Array.isArray=="function"?Array.isArray(t):fi.call(t)==="[object Array]"},tr=function(t){if(!t||fi.call(t)!=="[object Object]")return!1;var n=rt.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&rt.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||rt.call(t,i)},nr=function(t,n){Jn&&n.name==="__proto__"?Jn(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},rr=function(t,n){if(n==="__proto__")if(rt.call(t,n)){if(Zn)return Zn(t,n).value}else return;return t[n]},ps=function e(){var t,n,r,i,o,l,a=arguments[0],u=1,s=arguments.length,f=!1;for(typeof a=="boolean"&&(f=a,a=arguments[1]||{},u=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});u<s;++u)if(t=arguments[u],t!=null)for(n in t)r=rr(a,n),i=rr(t,n),a!==i&&(f&&i&&(tr(i)||(o=er(i)))?(o?(o=!1,l=r&&er(r)?r:[]):l=r&&tr(r)?r:{},nr(a,{name:n,newValue:e(f,l,i)})):typeof i<"u"&&nr(a,{name:n,newValue:i}));return a};const wt=Ar(ps);function $t(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function ms(){const e=[],t={run:n,use:r};return t;function n(...i){let o=-1;const l=i.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);a(null,...i);function a(u,...s){const f=e[++o];let c=-1;if(u){l(u);return}for(;++c<i.length;)(s[c]===null||s[c]===void 0)&&(s[c]=i[c]);i=s,f?gs(f,a)(...s):l(null,...s)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function gs(e,t){let n;return r;function r(...l){const a=e.length>l.length;let u;a&&l.push(i);try{u=e.apply(this,l)}catch(s){const f=s;if(a&&n)throw f;return i(f)}a||(u&&u.then&&typeof u.then=="function"?u.then(o,i):u instanceof Error?i(u):o(u))}function i(l,...a){n||(n=!0,t(l,...a))}function o(l){i(null,l)}}const ce={basename:ds,dirname:ys,extname:xs,join:ks,sep:"/"};function ds(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Qe(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let l=-1,a=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else l<0&&(o=!0,l=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(r=i):(a=-1,r=l));return n===r?r=l:r<0&&(r=e.length),e.slice(n,r)}function ys(e){if(Qe(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function xs(e){Qe(e);let t=e.length,n=-1,r=0,i=-1,o=0,l;for(;t--;){const a=e.codePointAt(t);if(a===47){if(l){r=t+1;break}continue}n<0&&(l=!0,n=t+1),a===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function ks(...e){let t=-1,n;for(;++t<e.length;)Qe(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":bs(n)}function bs(e){Qe(e);const t=e.codePointAt(0)===47;let n=ws(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function ws(e,t){let n="",r=0,i=-1,o=0,l=-1,a,u;for(;++l<=e.length;){if(l<e.length)a=e.codePointAt(l);else{if(a===47)break;a=47}if(a===47){if(!(i===l-1||o===1))if(i!==l-1&&o===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),i=l,o=0;continue}}else if(n.length>0){n="",r=0,i=l,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,l):n=e.slice(i+1,l),r=l-i-1;i=l,o=0}else a===46&&o>-1?o++:o=-1}return n}function Qe(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Ss={cwd:Cs};function Cs(){return"/"}function Ht(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Es(e){if(typeof e=="string")e=new URL(e);else if(!Ht(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Is(e)}function Is(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const St=["history","path","basename","stem","extname","dirname"];class hi{constructor(t){let n;t?Ht(t)?n={path:t}:typeof t=="string"||As(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Ss.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<St.length;){const o=St[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let i;for(i in n)St.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?ce.basename(this.path):void 0}set basename(t){Et(t,"basename"),Ct(t,"basename"),this.path=ce.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?ce.dirname(this.path):void 0}set dirname(t){ir(this.basename,"dirname"),this.path=ce.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?ce.extname(this.path):void 0}set extname(t){if(Ct(t,"extname"),ir(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ce.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Ht(t)&&(t=Es(t)),Et(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?ce.basename(this.path,this.extname):void 0}set stem(t){Et(t,"stem"),Ct(t,"stem"),this.path=ce.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new K(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Ct(e,t){if(e&&e.includes(ce.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ce.sep+"`")}function Et(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function ir(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function As(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Ts=function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o},Fs={}.hasOwnProperty;class un extends Ts{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=ms()}copy(){const t=new un;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(wt(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Tt("data",this.frozen),this.namespace[t]=n,this):Fs.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Tt("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=et(t),r=this.parser||this.Parser;return It("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),It("process",this.parser||this.Parser),At("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(o,l){const a=et(t),u=r.parse(a);r.run(u,a,function(f,c,p){if(f||!c||!p)return s(f);const h=c,m=r.stringify(h,p);Ds(m)?p.value=m:p.result=m,s(f,p)});function s(f,c){f||!c?l(f):o?o(c):n(void 0,c)}}}processSync(t){let n=!1,r;return this.freeze(),It("processSync",this.parser||this.Parser),At("processSync",this.compiler||this.Compiler),this.process(t,i),or("processSync","process",n),r;function i(o,l){n=!0,Kn(o),r=l}}run(t,n,r){lr(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(l,a){const u=et(n);i.run(t,u,s);function s(f,c,p){const h=c||t;f?a(f):l?l(h):r(void 0,h,p)}}}runSync(t,n){let r=!1,i;return this.run(t,n,o),or("runSync","run",r),i;function o(l,a){Kn(l),i=a,r=!0}}stringify(t,n){this.freeze();const r=et(n),i=this.compiler||this.Compiler;return At("stringify",i),lr(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(Tt("use",this.frozen),t!=null)if(typeof t=="function")u(t,n);else if(typeof t=="object")Array.isArray(t)?a(t):l(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(s){if(typeof s=="function")u(s,[]);else if(typeof s=="object")if(Array.isArray(s)){const[f,...c]=s;u(f,c)}else l(s);else throw new TypeError("Expected usable value, not `"+s+"`")}function l(s){if(!("plugins"in s)&&!("settings"in s))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(s.plugins),s.settings&&(i.settings=wt(!0,i.settings,s.settings))}function a(s){let f=-1;if(s!=null)if(Array.isArray(s))for(;++f<s.length;){const c=s[f];o(c)}else throw new TypeError("Expected a list of plugins, not `"+s+"`")}function u(s,f){let c=-1,p=-1;for(;++c<r.length;)if(r[c][0]===s){p=c;break}if(p===-1)r.push([s,...f]);else if(f.length>0){let[h,...m]=f;const y=r[p][1];$t(y)&&$t(h)&&(h=wt(!0,y,h)),r[p]=[s,h,...m]}}}}const Ps=new un().freeze();function It(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function At(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Tt(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function lr(e){if(!$t(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function or(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function et(e){return zs(e)?e:new hi(e)}function zs(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Ds(e){return typeof e=="string"||vs(e)}function vs(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Ls="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",ar=[],ur={allowDangerousHtml:!0},Ms=/^(https?|ircs?|mailto|xmpp)$/i,_s=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Bh(e){const t=Os(e),n=Ns(e);return Rs(t.runSync(t.parse(n),n),e)}function Os(e){const t=e.rehypePlugins||ar,n=e.remarkPlugins||ar,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...ur}:ur;return Ps().use(ku).use(n).use(hs,r).use(t)}function Ns(e){const t=e.children||"",n=new hi;return typeof t=="string"&&(n.value=t),n}function Rs(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,o=t.disallowedElements,l=t.skipHtml,a=t.unwrapDisallowed,u=t.urlTransform||Bs;for(const f of _s)Object.hasOwn(t,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+Ls+f.id,void 0);return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:e.type==="root"?e.children:[e]}),an(e,s),to(e,{Fragment:dt.Fragment,components:i,ignoreInvalidStyle:!0,jsx:dt.jsx,jsxs:dt.jsxs,passKeys:!0,passNode:!0});function s(f,c,p){if(f.type==="raw"&&p&&typeof c=="number")return l?p.children.splice(c,1):p.children[c]={type:"text",value:f.value},c;if(f.type==="element"){let h;for(h in xt)if(Object.hasOwn(xt,h)&&Object.hasOwn(f.properties,h)){const m=f.properties[h],y=xt[h];(y===null||y.includes(f.tagName))&&(f.properties[h]=u(String(m||""),h,f))}}if(f.type==="element"){let h=n?!n.includes(f.tagName):o?o.includes(f.tagName):!1;if(!h&&r&&typeof c=="number"&&(h=!r(f,c,p)),h&&p&&typeof c=="number")return a&&f.children?p.children.splice(c,1,...f.children):p.children.splice(c,1),c}}}function Bs(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||Ms.test(e.slice(0,t))?e:""}const sr=/[#.]/g;function js(e,t){const n=e||"",r={};let i=0,o,l;for(;i<n.length;){sr.lastIndex=i;const a=sr.exec(n),u=n.slice(i,a?a.index:n.length);u&&(o?o==="#"?r.id=u:Array.isArray(r.className)?r.className.push(u):r.className=[u]:l=u,i+=u.length),a&&(o=a[0],i++)}return{type:"element",tagName:l||t||"div",properties:r,children:[]}}function pi(e,t,n){const r=n?Us(n):void 0;function i(o,l,...a){let u;if(o==null){u={type:"root",children:[]};const s=l;a.unshift(s)}else{u=js(o,t);const s=u.tagName.toLowerCase(),f=r?r.get(s):void 0;if(u.tagName=f||s,$s(l))a.unshift(l);else for(const[c,p]of Object.entries(l))Hs(e,u.properties,c,p)}for(const s of a)qt(u.children,s);return u.type==="element"&&u.tagName==="template"&&(u.content={type:"root",children:u.children},u.children=[]),u}return i}function $s(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const i=t[r];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const o=i;for(const l of o)if(typeof l!="number"&&typeof l!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function Hs(e,t,n,r){const i=Or(e,n);let o;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;o=r}else typeof r=="boolean"?o=r:typeof r=="string"?i.spaceSeparated?o=En(r):i.commaSeparated?o=kn(r):i.commaOrSpaceSeparated?o=En(kn(r).join(" ")):o=cr(i,i.property,r):Array.isArray(r)?o=[...r]:o=i.property==="style"?qs(r):String(r);if(Array.isArray(o)){const l=[];for(const a of o)l.push(cr(i,i.property,a));o=l}i.property==="className"&&Array.isArray(t.className)&&(o=t.className.concat(o)),t[i.property]=o}}function qt(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)qt(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?qt(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function cr(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Ue(n)===Ue(t)))return!0}return n}function qs(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function Us(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const Vs=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],Ws=pi(Nr,"div"),Ys=pi(ct,"g",Vs),Ft={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg"};function Gs(e,t){return mi(e,{})||{type:"root",children:[]}}function mi(e,t){const n=Xs(e,t);return n&&t.afterTransform&&t.afterTransform(e,n),n}function Xs(e,t){switch(e.nodeType){case 1:return Zs(e,t);case 3:return Ks(e);case 8:return Js(e);case 9:return fr(e,t);case 10:return Qs();case 11:return fr(e,t);default:return}}function fr(e,t){return{type:"root",children:gi(e,t)}}function Qs(){return{type:"doctype"}}function Ks(e){return{type:"text",value:e.nodeValue||""}}function Js(e){return{type:"comment",value:e.nodeValue||""}}function Zs(e,t){const n=e.namespaceURI,r=n===Ft.svg?Ys:Ws,i=n===Ft.html?e.tagName.toLowerCase():e.tagName,o=n===Ft.html&&i==="template"?e.content:e,l=e.getAttributeNames(),a={};let u=-1;for(;++u<l.length;)a[l[u]]=e.getAttribute(l[u])||"";return r(i,a,gi(o,t))}function gi(e,t){const n=e.childNodes,r=[];let i=-1;for(;++i<n.length;){const o=mi(n[i],t);o!==void 0&&r.push(o)}return r}new DOMParser;function ec(e,t){const n=tc(e);return Gs(n)}function tc(e){const t=document.createElement("template");return t.innerHTML=e,t.content}const hr=function(e,t,n){const r=Xe(n);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof t=="number"){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(t=e.children.indexOf(t),t<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(r(e.children[t],t,e))return e.children[t]},Ae=function(e){if(e==null)return ic;if(typeof e=="string")return rc(e);if(typeof e=="object")return nc(e);if(typeof e=="function")return sn(e);throw new Error("Expected function, string, or array as `test`")};function nc(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Ae(e[n]);return sn(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function rc(e){return sn(t);function t(n){return n.tagName===e}}function sn(e){return t;function t(n,r,i){return!!(lc(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function ic(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function lc(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const pr=/\n/g,mr=/[\t ]+/g,Ut=Ae("br"),gr=Ae(pc),oc=Ae("p"),dr=Ae("tr"),ac=Ae(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",hc,mc]),di=Ae(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function uc(e,t){const n=t||{},r="children"in e?e.children:[],i=di(e),o=ki(e,{whitespace:n.whitespace||"normal"}),l=[];(e.type==="text"||e.type==="comment")&&l.push(...xi(e,{breakBefore:!0,breakAfter:!0}));let a=-1;for(;++a<r.length;)l.push(...yi(r[a],e,{whitespace:o,breakBefore:a?void 0:i,breakAfter:a<r.length-1?Ut(r[a+1]):i}));const u=[];let s;for(a=-1;++a<l.length;){const f=l[a];typeof f=="number"?s!==void 0&&f>s&&(s=f):f&&(s!==void 0&&s>-1&&u.push(`
|
||
`.repeat(s)||" "),s=-1,u.push(f))}return u.join("")}function yi(e,t,n){return e.type==="element"?sc(e,t,n):e.type==="text"?n.whitespace==="normal"?xi(e,n):cc(e):[]}function sc(e,t,n){const r=ki(e,n),i=e.children||[];let o=-1,l=[];if(ac(e))return l;let a,u;for(Ut(e)||dr(e)&&hr(t,e,dr)?u=`
|
||
`:oc(e)?(a=2,u=2):di(e)&&(a=1,u=1);++o<i.length;)l=l.concat(yi(i[o],e,{whitespace:r,breakBefore:o?void 0:a,breakAfter:o<i.length-1?Ut(i[o+1]):u}));return gr(e)&&hr(t,e,gr)&&l.push(" "),a&&l.unshift(a),u&&l.push(u),l}function xi(e,t){const n=String(e.value),r=[],i=[];let o=0;for(;o<=n.length;){pr.lastIndex=o;const u=pr.exec(n),s=u&&"index"in u?u.index:n.length;r.push(fc(n.slice(o,s).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),o===0?t.breakBefore:!0,s===n.length?t.breakAfter:!0)),o=s+1}let l=-1,a;for(;++l<r.length;)r[l].charCodeAt(r[l].length-1)===8203||l<r.length-1&&r[l+1].charCodeAt(0)===8203?(i.push(r[l]),a=void 0):r[l]?(typeof a=="number"&&i.push(a),i.push(r[l]),a=0):(l===0||l===r.length-1)&&i.push(0);return i}function cc(e){return[String(e.value)]}function fc(e,t,n){const r=[];let i=0,o;for(;i<e.length;){mr.lastIndex=i;const l=mr.exec(e);o=l?l.index:e.length,!i&&!o&&l&&!t&&r.push(""),i!==o&&r.push(e.slice(i,o)),i=l?o+l[0].length:o}return i!==o&&!n&&r.push(""),r.join(" ")}function ki(e,t){if(e.type==="element"){const n=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}function hc(e){return!!(e.properties||{}).hidden}function pc(e){return e.tagName==="td"||e.tagName==="th"}function mc(e){return e.tagName==="dialog"&&!(e.properties||{}).open}const gc={},dc=[];function jh(e){const t=e||gc;return function(n,r){on(n,"element",function(i,o){const l=Array.isArray(i.properties.className)?i.properties.className:dc,a=l.includes("language-math"),u=l.includes("math-display"),s=l.includes("math-inline");let f=u;if(!a&&!u&&!s)return;let c=o[o.length-1],p=i;if(i.tagName==="code"&&a&&c&&c.type==="element"&&c.tagName==="pre"&&(p=c,c=o[o.length-2],f=!0),!c)return;const h=uc(p,{whitespace:"pre"});let m;try{m=xn.renderToString(h,{...t,displayMode:f,throwOnError:!0})}catch(C){const x=C,b=x.name.toLowerCase();r.message("Could not render math with KaTeX",{ancestors:[...o,i],cause:x,place:i.position,ruleId:b,source:"rehype-katex"});try{m=xn.renderToString(h,{...t,displayMode:f,strict:"ignore",throwOnError:!1})}catch{m=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(t.errorColor||"#cc0000"),title:String(C)},children:[{type:"text",value:h}]}]}}typeof m=="string"&&(m=ec(m).children);const y=c.children.indexOf(p);return c.children.splice(y,1,...m),ci})}}function yc(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function bi(e,t,n){const i=Xe((n||{}).ignore||[]),o=xc(t);let l=-1;for(;++l<o.length;)on(e,"text",a);function a(s,f){let c=-1,p;for(;++c<f.length;){const h=f[c],m=p?p.children:void 0;if(i(h,m?m.indexOf(h):void 0,p))return;p=h}if(p)return u(s,f)}function u(s,f){const c=f[f.length-1],p=o[l][0],h=o[l][1];let m=0;const C=c.children.indexOf(s);let x=!1,b=[];p.lastIndex=0;let I=p.exec(s.value);for(;I;){const D=I.index,v={index:I.index,input:I.input,stack:[...f,s]};let S=h(...I,v);if(typeof S=="string"&&(S=S.length>0?{type:"text",value:S}:void 0),S===!1?p.lastIndex=D+1:(m!==D&&b.push({type:"text",value:s.value.slice(m,D)}),Array.isArray(S)?b.push(...S):S&&b.push(S),m=D+I[0].length,x=!0),!p.global)break;I=p.exec(s.value)}return x?(m<s.value.length&&b.push({type:"text",value:s.value.slice(m)}),c.children.splice(C,1,...b)):b=[s],C+b.length}}function xc(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([kc(i[0]),bc(i[1])])}return t}function kc(e){return typeof e=="string"?new RegExp(yc(e),"g"):e}function bc(e){return typeof e=="function"?e:function(){return e}}function wc(e){bi(e,[/\r?\n|\r/g,Sc])}function Sc(){return{type:"break"}}function $h(){return function(e){wc(e)}}function yr(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}const Pt="phrasing",zt=["autolink","link","image","label"];function Cc(){return{transforms:[zc],enter:{literalAutolink:Ic,literalAutolinkEmail:Dt,literalAutolinkHttp:Dt,literalAutolinkWww:Dt},exit:{literalAutolink:Pc,literalAutolinkEmail:Fc,literalAutolinkHttp:Ac,literalAutolinkWww:Tc}}}function Ec(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Pt,notInConstruct:zt},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Pt,notInConstruct:zt},{character:":",before:"[ps]",after:"\\/",inConstruct:Pt,notInConstruct:zt}]}}function Ic(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Dt(e){this.config.enter.autolinkProtocol.call(this,e)}function Ac(e){this.config.exit.autolinkProtocol.call(this,e)}function Tc(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function Fc(e){this.config.exit.autolinkEmail.call(this,e)}function Pc(e){this.exit(e)}function zc(e){bi(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Dc],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),vc]],{ignore:["link","linkReference"]})}function Dc(e,t,n,r,i){let o="";if(!wi(i)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!Lc(n)))return!1;const l=Mc(n+r);if(!l[0])return!1;const a={type:"link",title:null,url:o+t+l[0],children:[{type:"text",value:t+l[0]}]};return l[1]?[a,{type:"text",value:l[1]}]:a}function vc(e,t,n,r){return!wi(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Lc(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function Mc(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=yr(e,"(");let o=yr(e,")");for(;r!==-1&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}function wi(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Ee(n)||ht(n))&&(!t||n!==47)}Si.peek=qc;function _c(){this.buffer()}function Oc(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Nc(){this.buffer()}function Rc(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Bc(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=se(this.sliceSerialize(e)).toLowerCase(),n.label=t}function jc(e){this.exit(e)}function $c(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=se(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Hc(e){this.exit(e)}function qc(){return"["}function Si(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const l=n.enter("footnoteReference"),a=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{after:"]",before:o})),a(),l(),o+=i.move("]"),o}function Uc(){return{enter:{gfmFootnoteCallString:_c,gfmFootnoteCall:Oc,gfmFootnoteDefinitionLabelString:Nc,gfmFootnoteDefinition:Rc},exit:{gfmFootnoteCallString:Bc,gfmFootnoteCall:jc,gfmFootnoteDefinitionLabelString:$c,gfmFootnoteDefinition:Hc}}}function Vc(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Si},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,o,l){const a=o.createTracker(l);let u=a.move("[^");const s=o.enter("footnoteDefinition"),f=o.enter("label");return u+=a.move(o.safe(o.associationId(r),{before:u,after:"]"})),f(),u+=a.move("]:"),r.children&&r.children.length>0&&(a.shift(4),u+=a.move((t?`
|
||
`:" ")+o.indentLines(o.containerFlow(r,a.current()),t?Ci:Wc))),s(),u}}function Wc(e,t,n){return t===0?e:Ci(e,t,n)}function Ci(e,t,n){return(n?"":" ")+e}const Yc=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Ei.peek=Jc;function Gc(){return{canContainEols:["delete"],enter:{strikethrough:Qc},exit:{strikethrough:Kc}}}function Xc(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Yc}],handlers:{delete:Ei}}}function Qc(e){this.enter({type:"delete",children:[]},e)}function Kc(e){this.exit(e)}function Ei(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let l=i.move("~~");return l+=n.containerPhrasing(e,{...i.current(),before:l,after:"~"}),l+=i.move("~~"),o(),l}function Jc(){return"~"}function Zc(e){return e.length}function ef(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||Zc,o=[],l=[],a=[],u=[];let s=0,f=-1;for(;++f<e.length;){const y=[],C=[];let x=-1;for(e[f].length>s&&(s=e[f].length);++x<e[f].length;){const b=tf(e[f][x]);if(n.alignDelimiters!==!1){const I=i(b);C[x]=I,(u[x]===void 0||I>u[x])&&(u[x]=I)}y.push(b)}l[f]=y,a[f]=C}let c=-1;if(typeof r=="object"&&"length"in r)for(;++c<s;)o[c]=xr(r[c]);else{const y=xr(r);for(;++c<s;)o[c]=y}c=-1;const p=[],h=[];for(;++c<s;){const y=o[c];let C="",x="";y===99?(C=":",x=":"):y===108?C=":":y===114&&(x=":");let b=n.alignDelimiters===!1?1:Math.max(1,u[c]-C.length-x.length);const I=C+"-".repeat(b)+x;n.alignDelimiters!==!1&&(b=C.length+b+x.length,b>u[c]&&(u[c]=b),h[c]=b),p[c]=I}l.splice(1,0,p),a.splice(1,0,h),f=-1;const m=[];for(;++f<l.length;){const y=l[f],C=a[f];c=-1;const x=[];for(;++c<s;){const b=y[c]||"";let I="",D="";if(n.alignDelimiters!==!1){const v=u[c]-(C[c]||0),S=o[c];S===114?I=" ".repeat(v):S===99?v%2?(I=" ".repeat(v/2+.5),D=" ".repeat(v/2-.5)):(I=" ".repeat(v/2),D=I):D=" ".repeat(v)}n.delimiterStart!==!1&&!c&&x.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&b==="")&&(n.delimiterStart!==!1||c)&&x.push(" "),n.alignDelimiters!==!1&&x.push(I),x.push(b),n.alignDelimiters!==!1&&x.push(D),n.padding!==!1&&x.push(" "),(n.delimiterEnd!==!1||c!==s-1)&&x.push("|")}m.push(n.delimiterEnd===!1?x.join("").replace(/ +$/,""):x.join(""))}return m.join(`
|
||
`)}function tf(e){return e==null?"":String(e)}function xr(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function nf(e,t,n,r){const i=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const l=n.indentLines(n.containerFlow(e,o.current()),rf);return i(),l}function rf(e,t,n){return">"+(n?"":" ")+e}function lf(e,t){return kr(e,t.inConstruct,!0)&&!kr(e,t.notInConstruct,!1)}function kr(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function br(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
|
||
`&&lf(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
||
`}function Ii(e,t){const n=String(e);let r=n.indexOf(t),i=r,o=0,l=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++o>l&&(l=o):o=1,i=r+t.length,r=n.indexOf(t,i);return l}function of(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function af(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function uf(e,t,n,r){const i=af(n),o=e.value||"",l=i==="`"?"GraveAccent":"Tilde";if(of(e,n)){const c=n.enter("codeIndented"),p=n.indentLines(o,sf);return c(),p}const a=n.createTracker(r),u=i.repeat(Math.max(Ii(o,i)+1,3)),s=n.enter("codeFenced");let f=a.move(u);if(e.lang){const c=n.enter(`codeFencedLang${l}`);f+=a.move(n.safe(e.lang,{before:f,after:" ",encode:["`"],...a.current()})),c()}if(e.lang&&e.meta){const c=n.enter(`codeFencedMeta${l}`);f+=a.move(" "),f+=a.move(n.safe(e.meta,{before:f,after:`
|
||
`,encode:["`"],...a.current()})),c()}return f+=a.move(`
|
||
`),o&&(f+=a.move(o+`
|
||
`)),f+=a.move(u),s(),f}function sf(e,t,n){return(n?"":" ")+e}function cn(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function cf(e,t,n,r){const i=cn(n),o=i==='"'?"Quote":"Apostrophe",l=n.enter("definition");let a=n.enter("label");const u=n.createTracker(r);let s=u.move("[");return s+=u.move(n.safe(n.associationId(e),{before:s,after:"]",...u.current()})),s+=u.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),s+=u.move("<"),s+=u.move(n.safe(e.url,{before:s,after:">",...u.current()})),s+=u.move(">")):(a=n.enter("destinationRaw"),s+=u.move(n.safe(e.url,{before:s,after:e.title?" ":`
|
||
`,...u.current()}))),a(),e.title&&(a=n.enter(`title${o}`),s+=u.move(" "+i),s+=u.move(n.safe(e.title,{before:s,after:i,...u.current()})),s+=u.move(i),a()),l(),s}function ff(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function We(e){return"&#x"+e.toString(16).toUpperCase()+";"}function ut(e,t,n){const r=Le(e),i=Le(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Ai.peek=hf;function Ai(e,t,n,r){const i=ff(n),o=n.enter("emphasis"),l=n.createTracker(r),a=l.move(i);let u=l.move(n.containerPhrasing(e,{after:i,before:a,...l.current()}));const s=u.charCodeAt(0),f=ut(r.before.charCodeAt(r.before.length-1),s,i);f.inside&&(u=We(s)+u.slice(1));const c=u.charCodeAt(u.length-1),p=ut(r.after.charCodeAt(0),c,i);p.inside&&(u=u.slice(0,-1)+We(c));const h=l.move(i);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},a+u+h}function hf(e,t,n){return n.options.emphasis||"*"}function pf(e,t){let n=!1;return an(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Bt}),!!((!e.depth||e.depth<3)&&Jt(e)&&(t.options.setext||n))}function mf(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(pf(e,n)){const f=n.enter("headingSetext"),c=n.enter("phrasing"),p=n.containerPhrasing(e,{...o.current(),before:`
|
||
`,after:`
|
||
`});return c(),f(),p+`
|
||
`+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
|
||
`))+1))}const l="#".repeat(i),a=n.enter("headingAtx"),u=n.enter("phrasing");o.move(l+" ");let s=n.containerPhrasing(e,{before:"# ",after:`
|
||
`,...o.current()});return/^[\t ]/.test(s)&&(s=We(s.charCodeAt(0))+s.slice(1)),s=s?l+" "+s:l,n.options.closeAtx&&(s+=" "+l),u(),a(),s}Ti.peek=gf;function Ti(e){return e.value||""}function gf(){return"<"}Fi.peek=df;function Fi(e,t,n,r){const i=cn(n),o=i==='"'?"Quote":"Apostrophe",l=n.enter("image");let a=n.enter("label");const u=n.createTracker(r);let s=u.move("![");return s+=u.move(n.safe(e.alt,{before:s,after:"]",...u.current()})),s+=u.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),s+=u.move("<"),s+=u.move(n.safe(e.url,{before:s,after:">",...u.current()})),s+=u.move(">")):(a=n.enter("destinationRaw"),s+=u.move(n.safe(e.url,{before:s,after:e.title?" ":")",...u.current()}))),a(),e.title&&(a=n.enter(`title${o}`),s+=u.move(" "+i),s+=u.move(n.safe(e.title,{before:s,after:i,...u.current()})),s+=u.move(i),a()),s+=u.move(")"),l(),s}function df(){return"!"}Pi.peek=yf;function Pi(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let l=n.enter("label");const a=n.createTracker(r);let u=a.move("![");const s=n.safe(e.alt,{before:u,after:"]",...a.current()});u+=a.move(s+"]["),l();const f=n.stack;n.stack=[],l=n.enter("reference");const c=n.safe(n.associationId(e),{before:u,after:"]",...a.current()});return l(),n.stack=f,o(),i==="full"||!s||s!==c?u+=a.move(c+"]"):i==="shortcut"?u=u.slice(0,-1):u+=a.move("]"),u}function yf(){return"!"}zi.peek=xf;function zi(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const l=n.unsafe[o],a=n.compilePattern(l);let u;if(l.atBreak)for(;u=a.exec(r);){let s=u.index;r.charCodeAt(s)===10&&r.charCodeAt(s-1)===13&&s--,r=r.slice(0,s)+" "+r.slice(u.index+1)}}return i+r+i}function xf(){return"`"}function Di(e,t){const n=Jt(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}vi.peek=kf;function vi(e,t,n,r){const i=cn(n),o=i==='"'?"Quote":"Apostrophe",l=n.createTracker(r);let a,u;if(Di(e,n)){const f=n.stack;n.stack=[],a=n.enter("autolink");let c=l.move("<");return c+=l.move(n.containerPhrasing(e,{before:c,after:">",...l.current()})),c+=l.move(">"),a(),n.stack=f,c}a=n.enter("link"),u=n.enter("label");let s=l.move("[");return s+=l.move(n.containerPhrasing(e,{before:s,after:"](",...l.current()})),s+=l.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),s+=l.move("<"),s+=l.move(n.safe(e.url,{before:s,after:">",...l.current()})),s+=l.move(">")):(u=n.enter("destinationRaw"),s+=l.move(n.safe(e.url,{before:s,after:e.title?" ":")",...l.current()}))),u(),e.title&&(u=n.enter(`title${o}`),s+=l.move(" "+i),s+=l.move(n.safe(e.title,{before:s,after:i,...l.current()})),s+=l.move(i),u()),s+=l.move(")"),a(),s}function kf(e,t,n){return Di(e,n)?"<":"["}Li.peek=bf;function Li(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let l=n.enter("label");const a=n.createTracker(r);let u=a.move("[");const s=n.containerPhrasing(e,{before:u,after:"]",...a.current()});u+=a.move(s+"]["),l();const f=n.stack;n.stack=[],l=n.enter("reference");const c=n.safe(n.associationId(e),{before:u,after:"]",...a.current()});return l(),n.stack=f,o(),i==="full"||!s||s!==c?u+=a.move(c+"]"):i==="shortcut"?u=u.slice(0,-1):u+=a.move("]"),u}function bf(){return"["}function fn(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function wf(e){const t=fn(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function Sf(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Mi(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function Cf(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let l=e.ordered?Sf(n):fn(n);const a=e.ordered?l==="."?")":".":wf(n);let u=t&&n.bulletLastUsed?l===n.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&f&&(!f.children||!f.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(u=!0),Mi(n)===l&&f){let c=-1;for(;++c<e.children.length;){const p=e.children[c];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){u=!0;break}}}}u&&(l=a),n.bulletCurrent=l;const s=n.containerFlow(e,r);return n.bulletLastUsed=l,n.bulletCurrent=o,i(),s}function Ef(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function If(e,t,n,r){const i=Ef(n);let o=n.bulletCurrent||fn(n);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let l=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(l=Math.ceil(l/4)*4);const a=n.createTracker(r);a.move(o+" ".repeat(l-o.length)),a.shift(l);const u=n.enter("listItem"),s=n.indentLines(n.containerFlow(e,a.current()),f);return u(),s;function f(c,p,h){return p?(h?"":" ".repeat(l))+c:(h?o:o+" ".repeat(l-o.length))+c}}function Af(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),l=n.containerPhrasing(e,r);return o(),i(),l}const Tf=Xe(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Ff(e,t,n,r){return(e.children.some(function(l){return Tf(l)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function Pf(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}_i.peek=zf;function _i(e,t,n,r){const i=Pf(n),o=n.enter("strong"),l=n.createTracker(r),a=l.move(i+i);let u=l.move(n.containerPhrasing(e,{after:i,before:a,...l.current()}));const s=u.charCodeAt(0),f=ut(r.before.charCodeAt(r.before.length-1),s,i);f.inside&&(u=We(s)+u.slice(1));const c=u.charCodeAt(u.length-1),p=ut(r.after.charCodeAt(0),c,i);p.inside&&(u=u.slice(0,-1)+We(c));const h=l.move(i+i);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},a+u+h}function zf(e,t,n){return n.options.strong||"*"}function Df(e,t,n,r){return n.safe(e.value,r)}function vf(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function Lf(e,t,n){const r=(Mi(n)+(n.options.ruleSpaces?" ":"")).repeat(vf(n));return n.options.ruleSpaces?r.slice(0,-1):r}const Oi={blockquote:nf,break:br,code:uf,definition:cf,emphasis:Ai,hardBreak:br,heading:mf,html:Ti,image:Fi,imageReference:Pi,inlineCode:zi,link:vi,linkReference:Li,list:Cf,listItem:If,paragraph:Af,root:Ff,strong:_i,text:Df,thematicBreak:Lf};function Mf(){return{enter:{table:_f,tableData:wr,tableHeader:wr,tableRow:Nf},exit:{codeText:Rf,table:Of,tableData:vt,tableHeader:vt,tableRow:vt}}}function _f(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function Of(e){this.exit(e),this.data.inTable=void 0}function Nf(e){this.enter({type:"tableRow",children:[]},e)}function vt(e){this.exit(e)}function wr(e){this.enter({type:"tableCell",children:[]},e)}function Rf(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Bf));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Bf(e,t){return t==="|"?t:e}function jf(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
||
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:l,tableCell:u,tableRow:a}};function l(h,m,y,C){return s(f(h,y,C),h.align)}function a(h,m,y,C){const x=c(h,y,C),b=s([x]);return b.slice(0,b.indexOf(`
|
||
`))}function u(h,m,y,C){const x=y.enter("tableCell"),b=y.enter("phrasing"),I=y.containerPhrasing(h,{...C,before:o,after:o});return b(),x(),I}function s(h,m){return ef(h,{align:m,alignDelimiters:r,padding:n,stringLength:i})}function f(h,m,y){const C=h.children;let x=-1;const b=[],I=m.enter("table");for(;++x<C.length;)b[x]=c(C[x],m,y);return I(),b}function c(h,m,y){const C=h.children;let x=-1;const b=[],I=m.enter("tableRow");for(;++x<C.length;)b[x]=u(C[x],h,m,y);return I(),b}function p(h,m,y){let C=Oi.inlineCode(h,m,y);return y.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}function $f(){return{exit:{taskListCheckValueChecked:Sr,taskListCheckValueUnchecked:Sr,paragraph:qf}}}function Hf(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Uf}}}function Sr(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function qf(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let o=-1,l;for(;++o<i.length;){const a=i[o];if(a.type==="paragraph"){l=a;break}}l===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Uf(e,t,n,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",a=n.createTracker(r);o&&a.move(l);let u=Oi.listItem(e,t,n,{...r,...a.current()});return o&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,s)),u;function s(f){return f+l}}function Vf(){return[Cc(),Uc(),Gc(),Mf(),$f()]}function Wf(e){return{extensions:[Ec(),Vc(e),Xc(),jf(e),Hf()]}}const Yf={tokenize:Zf,partial:!0},Ni={tokenize:eh,partial:!0},Ri={tokenize:th,partial:!0},Bi={tokenize:nh,partial:!0},Gf={tokenize:rh,partial:!0},ji={name:"wwwAutolink",tokenize:Kf,previous:Hi},$i={name:"protocolAutolink",tokenize:Jf,previous:qi},de={name:"emailAutolink",tokenize:Qf,previous:Ui},fe={};function Xf(){return{text:fe}}let Se=48;for(;Se<123;)fe[Se]=de,Se++,Se===58?Se=65:Se===91&&(Se=97);fe[43]=de;fe[45]=de;fe[46]=de;fe[95]=de;fe[72]=[de,$i];fe[104]=[de,$i];fe[87]=[de,ji];fe[119]=[de,ji];function Qf(e,t,n){const r=this;let i,o;return l;function l(c){return!Vt(c)||!Ui.call(r,r.previous)||hn(r.events)?n(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(c))}function a(c){return Vt(c)?(e.consume(c),a):c===64?(e.consume(c),u):n(c)}function u(c){return c===46?e.check(Gf,f,s)(c):c===45||c===95||Q(c)?(o=!0,e.consume(c),u):f(c)}function s(c){return e.consume(c),i=!0,u}function f(c){return o&&i&&J(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(c)):n(c)}}function Kf(e,t,n){const r=this;return i;function i(l){return l!==87&&l!==119||!Hi.call(r,r.previous)||hn(r.events)?n(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Yf,e.attempt(Ni,e.attempt(Ri,o),n),n)(l))}function o(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(l)}}function Jf(e,t,n){const r=this;let i="",o=!1;return l;function l(c){return(c===72||c===104)&&qi.call(r,r.previous)&&!hn(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),a):n(c)}function a(c){if(J(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),a;if(c===58){const p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(c),u}return n(c)}function u(c){return c===47?(e.consume(c),o?s:(o=!0,u)):n(c)}function s(c){return c===null||lt(c)||q(c)||Ee(c)||ht(c)?n(c):e.attempt(Ni,e.attempt(Ri,f),n)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(c)}}function Zf(e,t,n){let r=0;return i;function i(l){return(l===87||l===119)&&r<3?(r++,e.consume(l),i):l===46&&r===3?(e.consume(l),o):n(l)}function o(l){return l===null?n(l):t(l)}}function eh(e,t,n){let r,i,o;return l;function l(s){return s===46||s===95?e.check(Bi,u,a)(s):s===null||q(s)||Ee(s)||s!==45&&ht(s)?u(s):(o=!0,e.consume(s),l)}function a(s){return s===95?r=!0:(i=r,r=void 0),e.consume(s),l}function u(s){return i||r||!o?n(s):t(s)}}function th(e,t){let n=0,r=0;return i;function i(l){return l===40?(n++,e.consume(l),i):l===41&&r<n?o(l):l===33||l===34||l===38||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===60||l===63||l===93||l===95||l===126?e.check(Bi,t,o)(l):l===null||q(l)||Ee(l)?t(l):(e.consume(l),i)}function o(l){return l===41&&r++,e.consume(l),i}}function nh(e,t,n){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),r):a===38?(e.consume(a),o):a===93?(e.consume(a),i):a===60||a===null||q(a)||Ee(a)?t(a):n(a)}function i(a){return a===null||a===40||a===91||q(a)||Ee(a)?t(a):r(a)}function o(a){return J(a)?l(a):n(a)}function l(a){return a===59?(e.consume(a),r):J(a)?(e.consume(a),l):n(a)}}function rh(e,t,n){return r;function r(o){return e.consume(o),i}function i(o){return Q(o)?n(o):t(o)}}function Hi(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||q(e)}function qi(e){return!J(e)}function Ui(e){return!(e===47||Vt(e))}function Vt(e){return e===43||e===45||e===46||e===95||Q(e)}function hn(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const ih={tokenize:hh,partial:!0};function lh(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:sh,continuation:{tokenize:ch},exit:fh}},text:{91:{name:"gfmFootnoteCall",tokenize:uh},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:oh,resolveTo:ah}}}}function oh(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;i--;){const u=r.events[i][1];if(u.type==="labelImage"){l=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return a;function a(u){if(!l||!l._balanced)return n(u);const s=se(r.sliceSerialize({start:l.end,end:r.now()}));return s.codePointAt(0)!==94||!o.includes(s.slice(1))?n(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function ah(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},a=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",l,t],["exit",l,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...a),e}function uh(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,l;return a;function a(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),u}function u(c){return c!==94?n(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",s)}function s(c){if(o>999||c===93&&!l||c===null||c===91||q(c))return n(c);if(c===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(se(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(c)}return q(c)||(l=!0),o++,e.consume(c),c===92?f:s}function f(c){return c===91||c===92||c===93?(e.consume(c),o++,s):s(c)}}function sh(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,l=0,a;return u;function u(m){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),s}function s(m){return m===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):n(m)}function f(m){if(l>999||m===93&&!a||m===null||m===91||q(m))return n(m);if(m===93){e.exit("chunkString");const y=e.exit("gfmFootnoteDefinitionLabelString");return o=se(r.sliceSerialize(y)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return q(m)||(a=!0),l++,e.consume(m),m===92?c:f}function c(m){return m===91||m===92||m===93?(e.consume(m),l++,f):f(m)}function p(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),i.includes(o)||i.push(o),_(e,h,"gfmFootnoteDefinitionWhitespace")):n(m)}function h(m){return t(m)}}function ch(e,t,n){return e.check(Ge,t,e.attempt(ih,t,n))}function fh(e){e.exit("gfmFootnoteDefinition")}function hh(e,t,n){const r=this;return _(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?t(o):n(o)}}function ph(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(l,a){let u=-1;for(;++u<l.length;)if(l[u][0]==="enter"&&l[u][1].type==="strikethroughSequenceTemporary"&&l[u][1]._close){let s=u;for(;s--;)if(l[s][0]==="exit"&&l[s][1].type==="strikethroughSequenceTemporary"&&l[s][1]._open&&l[u][1].end.offset-l[u][1].start.offset===l[s][1].end.offset-l[s][1].start.offset){l[u][1].type="strikethroughSequence",l[s][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},l[s][1].start),end:Object.assign({},l[u][1].end)},c={type:"strikethroughText",start:Object.assign({},l[s][1].end),end:Object.assign({},l[u][1].start)},p=[["enter",f,a],["enter",l[s][1],a],["exit",l[s][1],a],["enter",c,a]],h=a.parser.constructs.insideSpan.null;h&&re(p,p.length,0,pt(h,l.slice(s+1,u),a)),re(p,p.length,0,[["exit",c,a],["enter",l[u][1],a],["exit",l[u][1],a],["exit",f,a]]),re(l,s-1,u-s+3,p),u=s+p.length-2;break}}for(u=-1;++u<l.length;)l[u][1].type==="strikethroughSequenceTemporary"&&(l[u][1].type="data");return l}function o(l,a,u){const s=this.previous,f=this.events;let c=0;return p;function p(m){return s===126&&f[f.length-1][1].type!=="characterEscape"?u(m):(l.enter("strikethroughSequenceTemporary"),h(m))}function h(m){const y=Le(s);if(m===126)return c>1?u(m):(l.consume(m),c++,h);if(c<2&&!n)return u(m);const C=l.exit("strikethroughSequenceTemporary"),x=Le(m);return C._open=!x||x===2&&!!y,C._close=!y||y===2&&!!x,a(m)}}}class mh{constructor(){this.map=[]}add(t,n,r){gh(this,t,n,r)}consume(t){if(this.map.sort(function(o,l){return o[0]-l[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const o of i)t.push(o);i=r.pop()}this.map.length=0}}function gh(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function dh(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function yh(){return{flow:{null:{name:"table",tokenize:xh,resolveAll:kh}}}}function xh(e,t,n){const r=this;let i=0,o=0,l;return a;function a(k){let F=r.events.length-1;for(;F>-1;){const V=r.events[F][1].type;if(V==="lineEnding"||V==="linePrefix")F--;else break}const P=F>-1?r.events[F][1].type:null,$=P==="tableHead"||P==="tableRow"?S:u;return $===S&&r.parser.lazy[r.now().line]?n(k):$(k)}function u(k){return e.enter("tableHead"),e.enter("tableRow"),s(k)}function s(k){return k===124||(l=!0,o+=1),f(k)}function f(k){return k===null?n(k):T(k)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),h):n(k):O(k)?_(e,f,"whitespace")(k):(o+=1,l&&(l=!1,i+=1),k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),l=!0,f):(e.enter("data"),c(k)))}function c(k){return k===null||k===124||q(k)?(e.exit("data"),f(k)):(e.consume(k),k===92?p:c)}function p(k){return k===92||k===124?(e.consume(k),c):c(k)}function h(k){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(k):(e.enter("tableDelimiterRow"),l=!1,O(k)?_(e,m,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):m(k))}function m(k){return k===45||k===58?C(k):k===124?(l=!0,e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),y):v(k)}function y(k){return O(k)?_(e,C,"whitespace")(k):C(k)}function C(k){return k===58?(o+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),x):k===45?(o+=1,x(k)):k===null||T(k)?D(k):v(k)}function x(k){return k===45?(e.enter("tableDelimiterFiller"),b(k)):v(k)}function b(k){return k===45?(e.consume(k),b):k===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),I):(e.exit("tableDelimiterFiller"),I(k))}function I(k){return O(k)?_(e,D,"whitespace")(k):D(k)}function D(k){return k===124?m(k):k===null||T(k)?!l||i!==o?v(k):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(k)):v(k)}function v(k){return n(k)}function S(k){return e.enter("tableRow"),N(k)}function N(k){return k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),N):k===null||T(k)?(e.exit("tableRow"),t(k)):O(k)?_(e,N,"whitespace")(k):(e.enter("data"),j(k))}function j(k){return k===null||k===124||q(k)?(e.exit("data"),N(k)):(e.consume(k),k===92?L:j)}function L(k){return k===92||k===124?(e.consume(k),j):j(k)}}function kh(e,t){let n=-1,r=!0,i=0,o=[0,0,0,0],l=[0,0,0,0],a=!1,u=0,s,f,c;const p=new mh;for(;++n<e.length;){const h=e[n],m=h[1];h[0]==="enter"?m.type==="tableHead"?(a=!1,u!==0&&(Cr(p,t,u,s,f),f=void 0,u=0),s={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(n,0,[["enter",s,t]])):m.type==="tableRow"||m.type==="tableDelimiterRow"?(r=!0,c=void 0,o=[0,0,0,0],l=[0,n+1,0,0],a&&(a=!1,f={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(n,0,[["enter",f,t]])),i=m.type==="tableDelimiterRow"?2:f?3:1):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")?(r=!1,l[2]===0&&(o[1]!==0&&(l[0]=l[1],c=tt(p,t,o,i,void 0,c),o=[0,0,0,0]),l[2]=n)):m.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(l[0]=l[1],c=tt(p,t,o,i,void 0,c)),o=l,l=[o[1],n,0,0])):m.type==="tableHead"?(a=!0,u=n):m.type==="tableRow"||m.type==="tableDelimiterRow"?(u=n,o[1]!==0?(l[0]=l[1],c=tt(p,t,o,i,n,c)):l[1]!==0&&(c=tt(p,t,l,i,n,c)),i=0):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(l[3]=n)}for(u!==0&&Cr(p,t,u,s,f),p.consume(t.events),n=-1;++n<t.events.length;){const h=t.events[n];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=dh(t.events,n))}return e}function tt(e,t,n,r,i,o){const l=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";n[0]!==0&&(o.end=Object.assign({},De(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const u=De(t.events,n[1]);if(o={type:l,start:Object.assign({},u),end:Object.assign({},u)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const s=De(t.events,n[2]),f=De(t.events,n[3]),c={type:a,start:Object.assign({},s),end:Object.assign({},f)};if(e.add(n[2],0,[["enter",c,t]]),r!==2){const p=t.events[n[2]],h=t.events[n[3]];if(p[1].end=Object.assign({},h[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){const m=n[2]+1,y=n[3]-n[2]-1;e.add(m,y,[])}}e.add(n[3]+1,0,[["exit",c,t]])}return i!==void 0&&(o.end=Object.assign({},De(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function Cr(e,t,n,r,i){const o=[],l=De(t.events,n);i&&(i.end=Object.assign({},l),o.push(["exit",i,t])),r.end=Object.assign({},l),o.push(["exit",r,t]),e.add(n+1,0,o)}function De(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const bh={name:"tasklistCheck",tokenize:Sh};function wh(){return{text:{91:bh}}}function Sh(e,t,n){const r=this;return i;function i(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),o)}function o(u){return q(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),l):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),l):n(u)}function l(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(u)}function a(u){return T(u)?t(u):O(u)?e.check({tokenize:Ch},t,n)(u):n(u)}}function Ch(e,t,n){return _(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function Eh(e){return Vr([Xf(),lh(),ph(e),yh(),wh()])}const Ih={};function Hh(e){const t=this,n=e||Ih,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(Eh(n)),o.push(Vf()),l.push(Wf(n))}function Ah(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:o},exit:{mathFlow:i,mathFlowFence:r,mathFlowFenceMeta:n,mathFlowValue:a,mathText:l,mathTextData:a}};function e(u){const s={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[s]}},u)}function t(){this.buffer()}function n(){const u=this.resume(),s=this.stack[this.stack.length-1];s.type,s.meta=u}function r(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function i(u){const s=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),f=this.stack[this.stack.length-1];f.type,this.exit(u),f.value=s;const c=f.data.hChildren[0];c.type,c.tagName,c.children.push({type:"text",value:s}),this.data.mathFlowInside=void 0}function o(u){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},u),this.buffer()}function l(u){const s=this.resume(),f=this.stack[this.stack.length-1];f.type,this.exit(u),f.value=s,f.data.hChildren.push({type:"text",value:s})}function a(u){this.config.enter.data.call(this,u),this.config.exit.data.call(this,u)}}function Th(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),r.peek=i,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
|
||
`,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:n,inlineMath:r}};function n(o,l,a,u){const s=o.value||"",f=a.createTracker(u),c="$".repeat(Math.max(Ii(s,"$")+1,2)),p=a.enter("mathFlow");let h=f.move(c);if(o.meta){const m=a.enter("mathFlowMeta");h+=f.move(a.safe(o.meta,{after:`
|
||
`,before:h,encode:["$"],...f.current()})),m()}return h+=f.move(`
|
||
`),s&&(h+=f.move(s+`
|
||
`)),h+=f.move(c),p(),h}function r(o,l,a){let u=o.value||"",s=1;for(t||s++;new RegExp("(^|[^$])"+"\\$".repeat(s)+"([^$]|$)").test(u);)s++;const f="$".repeat(s);/[^ \r\n]/.test(u)&&(/^[ \r\n]/.test(u)&&/[ \r\n]$/.test(u)||/^\$|\$$/.test(u))&&(u=" "+u+" ");let c=-1;for(;++c<a.unsafe.length;){const p=a.unsafe[c];if(!p.atBreak)continue;const h=a.compilePattern(p);let m;for(;m=h.exec(u);){let y=m.index;u.codePointAt(y)===10&&u.codePointAt(y-1)===13&&y--,u=u.slice(0,y)+" "+u.slice(m.index+1)}}return f+u+f}function i(){return"$"}}const Fh={tokenize:Ph,concrete:!0,name:"mathFlow"},Er={tokenize:zh,partial:!0};function Ph(e,t,n){const r=this,i=r.events[r.events.length-1],o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0;let l=0;return a;function a(b){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),u(b)}function u(b){return b===36?(e.consume(b),l++,u):l<2?n(b):(e.exit("mathFlowFenceSequence"),_(e,s,"whitespace")(b))}function s(b){return b===null||T(b)?c(b):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),f(b))}function f(b){return b===null||T(b)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),c(b)):b===36?n(b):(e.consume(b),f)}function c(b){return e.exit("mathFlowFence"),r.interrupt?t(b):e.attempt(Er,p,C)(b)}function p(b){return e.attempt({tokenize:x,partial:!0},C,h)(b)}function h(b){return(o?_(e,m,"linePrefix",o+1):m)(b)}function m(b){return b===null?C(b):T(b)?e.attempt(Er,p,C)(b):(e.enter("mathFlowValue"),y(b))}function y(b){return b===null||T(b)?(e.exit("mathFlowValue"),m(b)):(e.consume(b),y)}function C(b){return e.exit("mathFlow"),t(b)}function x(b,I,D){let v=0;return _(b,S,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function S(L){return b.enter("mathFlowFence"),b.enter("mathFlowFenceSequence"),N(L)}function N(L){return L===36?(v++,b.consume(L),N):v<l?D(L):(b.exit("mathFlowFenceSequence"),_(b,j,"whitespace")(L))}function j(L){return L===null||T(L)?(b.exit("mathFlowFence"),I(L)):D(L)}}}function zh(e,t,n){const r=this;return i;function i(l){return l===null?t(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}function Dh(e){let n=(e||{}).singleDollarTextMath;return n==null&&(n=!0),{tokenize:r,resolve:vh,previous:Lh,name:"mathText"};function r(i,o,l){let a=0,u,s;return f;function f(y){return i.enter("mathText"),i.enter("mathTextSequence"),c(y)}function c(y){return y===36?(i.consume(y),a++,c):a<2&&!n?l(y):(i.exit("mathTextSequence"),p(y))}function p(y){return y===null?l(y):y===36?(s=i.enter("mathTextSequence"),u=0,m(y)):y===32?(i.enter("space"),i.consume(y),i.exit("space"),p):T(y)?(i.enter("lineEnding"),i.consume(y),i.exit("lineEnding"),p):(i.enter("mathTextData"),h(y))}function h(y){return y===null||y===32||y===36||T(y)?(i.exit("mathTextData"),p(y)):(i.consume(y),h)}function m(y){return y===36?(i.consume(y),u++,m):u===a?(i.exit("mathTextSequence"),i.exit("mathText"),o(y)):(s.type="mathTextData",h(y))}}}function vh(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="mathTextData"){e[t][1].type="mathTextPadding",e[n][1].type="mathTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="mathTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function Lh(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function Mh(e){return{flow:{36:Fh},text:{36:Dh(e)}}}const _h={};function qh(e){const t=this,n=e||_h,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(Mh(n)),o.push(Ah()),l.push(Th(n))}var Uh=Oh,Ir=/[#.]/g;function Oh(e,t){for(var n=e||"",r=t||"div",i={},o=0,l,a,u;o<n.length;)Ir.lastIndex=o,u=Ir.exec(n),l=n.slice(o,u?u.index:n.length),l&&(a?a==="#"?i.id=l:i.className?i.className.push(l):i.className=[l]:r=l,o+=l.length),u&&(a=u[0],o++);return{type:"element",tagName:r,properties:i,children:[]}}export{Bh as M,$h as a,Hh as b,qh as c,Uh as h,dt as j,jh as r};
|