@dori-ai/dori-side-widget 1.13.159-dev.20261027123308 → 1.13.159-dev.20261027131950

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- import{u as e,r as t,a as n,c as r,i as o,b as i,d as l,j as s,e as a,g as c,m as u,E as f,f as p,h as d,k as h,l as m,T as g,U as y,B as x,L as k,I as v}from"./main-BwirGFoB.js";import"../widget.js";import"./report-BHr6U1PB.js";const{StylesProvider:b,ClassNamesProvider:w,useRecipeResult:S,withContext:C}=(()=>{const{key:p,recipe:d}={key:"table"},h=n(p||d.className||"Component"),[m,g]=r({name:`${h}StylesContext`,errorMessage:`use${h}Styles returned is 'undefined'. Seems you forgot to wrap the components in "<${h}.Root />" `}),[y,x]=r({name:`${h}ClassNameContext`,errorMessage:`use${h}ClassNames returned is 'undefined'. Seems you forgot to wrap the components in "<${h}.Root />" `,strict:!1}),[k,v]=r({strict:!1,name:`${h}PropsContext`,providerName:`${h}PropsContext`,defaultValue:{}});function b(n){const{unstyled:r,...o}=n,i=function(n){const{key:r,recipe:o}=n,i=e();return t.useMemo(()=>o?i.sva(o):null!=r?i.getSlotRecipeFn(r):i.sva({slots:[]}),[r,o,i])}({key:p,recipe:o.recipe||d}),[l,s]=t.useMemo(()=>i.splitVariantProps(o),[o,i]);return{styles:t.useMemo(()=>r?f:i(l),[r,l,i]),classNames:i.classNameMap,props:s}}return{StylesProvider:m,ClassNamesProvider:y,PropsProvider:k,usePropsContext:v,useRecipeResult:b,withProvider:(e,n,r)=>{const{defaultProps:o,displayName:f,wrapElement:p,...d}=r??{},g=i(h,String(n)),x=l(e,{},d),k=t.forwardRef((e,r)=>{const i=v(),l=t.useMemo(()=>u(o??{},i,e),[i,e]),{styles:c,props:f,classNames:d}=b(l),h=d[n],g=s.jsx(m,{value:c,children:s.jsx(y,{value:d,children:s.jsx(x,{ref:r,...f,css:[c[n],l.css],className:a(l.className,h)})})});return p?.(g,l)??g});return k.displayName=f??g??c(e),k},withContext:(e,n,r)=>{const{displayName:o,...u}=r??{},f=null!=n&&""!==n?i(h,String(n)):h,p=l(e,{},u),d=t.forwardRef((e,t)=>{const{unstyled:r,...o}=e,i=g(),l=x(),c=l?.[n];return s.jsx(p,{...o,css:[!r&&n?i[n]:void 0,e.css],ref:t,className:a(e.className,c)})});return d.displayName=o??f??c(e),d},withRootProvider:function(e,n={}){const{defaultProps:r,displayName:i}=n,l=c(e),a=o(h,l),f=n=>{const o=v(),i=t.useMemo(()=>u(r,o,n),[o,n]),{styles:l,classNames:a,props:c}=b(i);return s.jsx(m,{value:l,children:s.jsx(y,{value:a,children:s.jsx(e,{...c})})})};return f.displayName=i??a??l,f},useStyles:g,useClassNames:x}})(),E=t.forwardRef(function({native:e,...n},r){const{styles:o,props:i,classNames:c}=S(n),u=t.useMemo(()=>e?{...o.root,"& thead":o.header,"& tbody":o.body,"& tfoot":o.footer,"& thead th":o.columnHeader,"& tr":o.row,"& td":o.cell,"& caption":o.caption}:o.root,[o,e]);return s.jsx(w,{value:c,children:s.jsx(b,{value:o,children:s.jsx(l.table,{ref:r,...i,css:[u,n.css],className:a(c?.root,n.className)})})})}),I=C("tr","row");l("div",{base:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflow:"auto",maxWidth:"100%"}});const T=C("thead","header");C("tfoot","footer");const P=C("th","columnHeader"),A=C("td","cell");C("caption","caption",{defaultProps:{captionSide:"bottom"}});const D=C("tbody","body");C("colgroup"),C("col");const L=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,F=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,z={};function M(e,t){return(z.jsx?F:L).test(e)}const O=/[ \t\n\f\r]/g;function R(e){return""===e.replace(O,"")}class _{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function N(e,t){const n={},r={};for(const o of e)Object.assign(n,o.property),Object.assign(r,o.normal);return new _(n,r,t)}function j(e){return e.toLowerCase()}_.prototype.normal={},_.prototype.property={},_.prototype.space=void 0;class B{constructor(e,t){this.attribute=t,this.property=e}}B.prototype.attribute="",B.prototype.booleanish=!1,B.prototype.boolean=!1,B.prototype.commaOrSpaceSeparated=!1,B.prototype.commaSeparated=!1,B.prototype.defined=!1,B.prototype.mustUseProperty=!1,B.prototype.number=!1,B.prototype.overloadedBoolean=!1,B.prototype.property="",B.prototype.spaceSeparated=!1,B.prototype.space=void 0;let H=0;const U=K(),V=K(),q=K(),W=K(),$=K(),Q=K(),Y=K();function K(){return 2**++H}const X=Object.freeze(Object.defineProperty({__proto__:null,boolean:U,booleanish:V,commaOrSpaceSeparated:Y,commaSeparated:Q,number:W,overloadedBoolean:q,spaceSeparated:$},Symbol.toStringTag,{value:"Module"})),J=Object.keys(X);class Z extends B{constructor(e,t,n,r){let o=-1;if(super(e,t),G(this,"space",r),"number"==typeof n)for(;++o<J.length;){const e=J[o];G(this,J[o],(n&X[e])===X[e])}}}function G(e,t,n){n&&(e[t]=n)}function ee(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const i=new Z(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[j(r)]=r,n[j(i.attribute)]=r}return new _(t,n,e.space)}Z.prototype.defined=!0;const te=ee({properties:{ariaActiveDescendant:null,ariaAtomic:V,ariaAutoComplete:null,ariaBusy:V,ariaChecked:V,ariaColCount:W,ariaColIndex:W,ariaColSpan:W,ariaControls:$,ariaCurrent:null,ariaDescribedBy:$,ariaDetails:null,ariaDisabled:V,ariaDropEffect:$,ariaErrorMessage:null,ariaExpanded:V,ariaFlowTo:$,ariaGrabbed:V,ariaHasPopup:null,ariaHidden:V,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:$,ariaLevel:W,ariaLive:null,ariaModal:V,ariaMultiLine:V,ariaMultiSelectable:V,ariaOrientation:null,ariaOwns:$,ariaPlaceholder:null,ariaPosInSet:W,ariaPressed:V,ariaReadOnly:V,ariaRelevant:null,ariaRequired:V,ariaRoleDescription:$,ariaRowCount:W,ariaRowIndex:W,ariaRowSpan:W,ariaSelected:V,ariaSetSize:W,ariaSort:null,ariaValueMax:W,ariaValueMin:W,ariaValueNow:W,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function ne(e,t){return t in e?e[t]:t}function re(e,t){return ne(e,t.toLowerCase())}const oe=ee({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Q,acceptCharset:$,accessKey:$,action:null,allow:null,allowFullScreen:U,allowPaymentRequest:U,allowUserMedia:U,alpha:U,alt:null,as:null,async:U,autoCapitalize:null,autoComplete:$,autoFocus:U,autoPlay:U,blocking:$,capture:null,charSet:null,checked:U,cite:null,className:$,closedBy:null,colorSpace:null,cols:W,colSpan:W,command:null,commandFor:null,content:null,contentEditable:V,controls:U,controlsList:$,coords:W|Q,crossOrigin:null,data:null,dateTime:null,decoding:null,default:U,defer:U,dir:null,dirName:null,disabled:U,download:q,draggable:V,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:U,formTarget:null,headers:$,height:W,hidden:q,high:W,href:null,hrefLang:null,htmlFor:$,httpEquiv:$,id:null,imageSizes:null,imageSrcSet:null,inert:U,inputMode:null,integrity:null,is:null,isMap:U,itemId:null,itemProp:$,itemRef:$,itemScope:U,itemType:$,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:U,low:W,manifest:null,max:null,maxLength:W,media:null,method:null,min:null,minLength:W,multiple:U,muted:U,name:null,nonce:null,noModule:U,noValidate:U,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:U,optimum:W,pattern:null,ping:$,placeholder:null,playsInline:U,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:U,referrerPolicy:null,rel:$,required:U,reversed:U,rows:W,rowSpan:W,sandbox:$,scope:null,scoped:U,seamless:U,selected:U,shadowRootClonable:U,shadowRootCustomElementRegistry:U,shadowRootDelegatesFocus:U,shadowRootMode:null,shadowRootSerializable:U,shape:null,size:W,sizes:null,slot:null,span:W,spellCheck:V,src:null,srcDoc:null,srcLang:null,srcSet:null,start:W,step:null,style:null,tabIndex:W,target:null,title:null,translate:null,type:null,typeMustMatch:U,useMap:null,value:V,width:W,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:$,axis:null,background:null,bgColor:null,border:W,borderColor:null,bottomMargin:W,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:U,declare:U,event:null,face:null,frame:null,frameBorder:null,hSpace:W,leftMargin:W,link:null,longDesc:null,lowSrc:null,marginHeight:W,marginWidth:W,noResize:U,noHref:U,noShade:U,noWrap:U,object:null,profile:null,prompt:null,rev:null,rightMargin:W,rules:null,scheme:null,scrolling:V,standby:null,summary:null,text:null,topMargin:W,valueType:null,version:null,vAlign:null,vLink:null,vSpace:W,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:U,disablePictureInPicture:U,disableRemotePlayback:U,exportParts:Q,part:$,prefix:null,property:null,results:W,security:null,unselectable:null},space:"html",transform:re}),ie=ee({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",maskType:"mask-type",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:Y,accentHeight:W,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:W,amplitude:W,arabicForm:null,ascent:W,attributeName:null,attributeType:null,azimuth:W,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:W,by:null,calcMode:null,capHeight:W,className:$,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:W,diffuseConstant:W,direction:null,display:null,dur:null,divisor:W,dominantBaseline:null,download:U,dx:null,dy:null,edgeMode:null,editable:null,elevation:W,enableBackground:null,end:null,event:null,exponent:W,externalResourcesRequired:null,fill:null,fillOpacity:W,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:Q,g2:Q,glyphName:Q,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:W,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:W,horizOriginX:W,horizOriginY:W,id:null,ideographic:W,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:W,k:W,k1:W,k2:W,k3:W,k4:W,kernelMatrix:Y,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:W,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:W,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:W,overlineThickness:W,paintOrder:null,panose1:null,path:null,pathLength:W,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:$,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:W,pointsAtY:W,pointsAtZ:W,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Y,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Y,rev:Y,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Y,requiredFeatures:Y,requiredFonts:Y,requiredFormats:Y,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:W,specularExponent:W,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:W,strikethroughThickness:W,string:null,stroke:null,strokeDashArray:Y,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:W,strokeOpacity:W,strokeWidth:null,style:null,surfaceScale:W,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Y,tabIndex:W,tableValues:null,target:null,targetX:W,targetY:W,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Y,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:W,underlineThickness:W,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:W,values:null,vAlphabetic:W,vMathematical:W,vectorEffect:null,vHanging:W,vIdeographic:W,version:null,vertAdvY:W,vertOriginX:W,vertOriginY:W,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:W,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:ne}),le=ee({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),se=ee({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:re}),ae=ee({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),ce={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"},ue=/[A-Z]/g,fe=/-[a-z]/g,pe=/^data[-\w.:]+$/i;function de(e){return"-"+e.toLowerCase()}function he(e){return e.charAt(1).toUpperCase()}const me=N([te,oe,le,se,ae],"html"),ge=N([te,ie,le,se,ae],"svg");var ye,xe,ke,ve={};function be(){if(xe)return ye;xe=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,s=/^\s+|\s+$/g,a="";function c(e){return e?e.replace(s,a):a}return ye=function(s,u){if("string"!=typeof s)throw new TypeError("First argument must be a string");if(!s)return[];u=u||{};var f=1,p=1;function d(e){var n=e.match(t);n&&(f+=n.length);var r=e.lastIndexOf("\n");p=~r?e.length-r:p+e.length}function h(){var e={line:f,column:p};return function(t){return t.position=new m(e),x(),t}}function m(e){this.start=e,this.end={line:f,column:p},this.source=u.source}function g(e){var t=new Error(u.source+":"+f+":"+p+": "+e);if(t.reason=e,t.filename=u.source,t.line=f,t.column=p,t.source=s,!u.silent)throw t}function y(e){var t=e.exec(s);if(t){var n=t[0];return d(n),s=s.slice(n.length),t}}function x(){y(n)}function k(e){var t;for(e=e||[];t=v();)!1!==t&&e.push(t);return e}function v(){var e=h();if("/"==s.charAt(0)&&"*"==s.charAt(1)){for(var t=2;a!=s.charAt(t)&&("*"!=s.charAt(t)||"/"!=s.charAt(t+1));)++t;if(t+=2,a===s.charAt(t-1))return g("End of comment missing");var n=s.slice(2,t-2);return p+=2,d(n),s=s.slice(t),p+=2,e({type:"comment",comment:n})}}function b(){var t=h(),n=y(r);if(n){if(v(),!y(o))return g("property missing ':'");var s=y(i),u=t({type:"declaration",property:c(n[0].replace(e,a)),value:s?c(s[0].replace(e,a)):a});return y(l),u}}return m.prototype.content=s,x(),function(){var e,t=[];for(k(t);e=b();)!1!==e&&(t.push(e),k(t));return t}()}}function we(){if(ke)return ve;ke=1;var e=ve&&ve.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ve,"__esModule",{value:!0}),ve.default=function(e,n){let r=null;if(!e||"string"!=typeof e)return r;const o=(0,t.default)(e),i="function"==typeof n;return o.forEach(e=>{if("declaration"!==e.type)return;const{property:t,value:o}=e;i?n(t,o,e):o&&(r=r||{},r[t]=o)}),r};const t=e(be());return ve}var Se,Ce,Ee,Ie={};function Te(){if(Se)return Ie;Se=1,Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,i=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};return Ie.camelCase=function(s,a){return void 0===a&&(a={}),function(t){return!t||n.test(t)||e.test(t)}(s)?s:(s=s.toLowerCase(),(s=a.reactCompat?s.replace(o,l):s.replace(r,l)).replace(t,i))},Ie}function Pe(){if(Ee)return Ce;Ee=1;var e=(Ce&&Ce.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(we()),t=Te();function n(n,r){var o={};return n&&"string"==typeof n?((0,e.default)(n,function(e,n){e&&n&&(o[(0,t.camelCase)(e,r)]=n)}),o):o}return n.default=n,Ce=n}const Ae=p(Pe()),De=Fe("end"),Le=Fe("start");function Fe(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function ze(e){return e&&"object"==typeof e?"position"in e||"type"in e?Oe(e.position):"start"in e||"end"in e?Oe(e):"line"in e||"column"in e?Me(e):"":""}function Me(e){return Re(e&&e.line)+":"+Re(e&&e.column)}function Oe(e){return Me(e&&e.start)+"-"+Me(e&&e.end)}function Re(e){return e&&"number"==typeof e?e:1}class _e extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",o={},i=!1;if(t&&(o="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!o.cause&&e&&(i=!0,r=e.message,o.cause=e),!o.ruleId&&!o.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?o.ruleId=n:(o.source=n.slice(0,e),o.ruleId=n.slice(e+1))}if(!o.place&&o.ancestors&&o.ancestors){const e=o.ancestors[o.ancestors.length-1];e&&(o.place=e.position)}const l=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=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=l?l.line:void 0,this.name=ze(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=i&&o.cause&&"string"==typeof o.cause.stack?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}_e.prototype.file="",_e.prototype.name="",_e.prototype.reason="",_e.prototype.message="",_e.prototype.stack="",_e.prototype.column=void 0,_e.prototype.line=void 0,_e.prototype.ancestors=void 0,_e.prototype.cause=void 0,_e.prototype.fatal=void 0,_e.prototype.place=void 0,_e.prototype.ruleId=void 0,_e.prototype.source=void 0;const Ne={}.hasOwnProperty,je=new Map,Be=/[A-Z]/g,He=new Set(["table","tbody","thead","tfoot","tr"]),Ue=new Set(["td","th"]),Ve="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function qe(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(o=ge,e.schema=o),e.ancestors.push(t);const i=Ke(e,t.tagName,!1),l=function(e,t){const n={};let r,o;for(o in t.properties)if("children"!==o&&Ne.call(t.properties,o)){const i=Ye(e,o,t.properties[o]);if(i){const[o,l]=i;e.tableCellAlignToStyle&&"align"===o&&"string"==typeof l&&Ue.has(t.tagName)?r=l:n[o]=l}}return r&&((n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r),n}(e,t);let s=Qe(e,t);return He.has(t.tagName)&&(s=s.filter(function(e){return"string"!=typeof e||!("object"==typeof(t=e)?"text"===t.type&&R(t.value):R(t));var t})),We(e,l,i,t),$e(l,s),e.ancestors.pop(),e.schema=r,e.create(t,i,l,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return e.evaluater.evaluateExpression(n.expression)}Xe(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.name&&"html"===r.space&&(o=ge,e.schema=o),e.ancestors.push(t);const i=null===t.name?e.Fragment:Ke(e,t.name,!0),l=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0].expression.properties[0];Object.assign(n,e.evaluater.evaluateExpression(t.argument))}else Xe(e,t.position);else{const o=r.name;let i;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];i=e.evaluater.evaluateExpression(t.expression)}else Xe(e,t.position);else i=null===r.value||r.value;n[o]=i}return n}(e,t),s=Qe(e,t);return We(e,l,i,t),$e(l,s),e.ancestors.pop(),e.schema=r,e.create(t,i,l,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Xe(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return $e(r,Qe(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function We(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function $e(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Qe(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:je;for(;++r<t.children.length;){const i=t.children[r];let l;if(e.passKeys){const e="element"===i.type?i.tagName:"mdxJsxFlowElement"===i.type||"mdxJsxTextElement"===i.type?i.name:void 0;if(e){const t=o.get(e)||0;l=e+"-"+t,o.set(e,t+1)}}const s=qe(e,i,l);void 0!==s&&n.push(s)}return n}function Ye(e,t,n){const r=function(e,t){const n=j(t);let r=t,o=B;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&pe.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(fe,he);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!fe.test(e)){let n=e.replace(ue,de);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=Z}return new o(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e){const t={};return(""===e[e.length-1]?[...e,""]:e).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()}(n):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return Ae(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const t=n,r=new _e("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:t,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=Ve+"#cannot-parse-style-attribute",r}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)Ne.call(e,n)&&(t[Je(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?ce[r.property]||r.property:r.attribute,n]}}function Ke(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,o=-1;for(;++o<e.length;){const t=M(e[o])?{type:"Identifier",name:e[o]}:{type:"Literal",value:e[o]};n=n?{type:"MemberExpression",object:n,property:t,computed:Boolean(o&&"Literal"===t.type),optional:!1}:t}r=n}else r=M(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){const t=r.value;return Ne.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);Xe(e)}function Xe(e,t){const n=new _e("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=Ve+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Je(e){let t=e.replace(Be,Ze);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function Ze(e){return"-"+e.toLowerCase()}const Ge={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"]},et={};function tt(e,t){return nt(e,"boolean"!=typeof et.includeImageAlt||et.includeImageAlt,"boolean"!=typeof et.includeHtml||et.includeHtml)}function nt(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return rt(e.children,t,n)}return Array.isArray(e)?rt(e,t,n):""}function rt(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=nt(e[o],t,n);return r.join("")}const ot=document.createElement("i");function it(e){const t="&"+e+";";ot.innerHTML=t;const n=ot.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}function lt(e,t,n,r){const o=e.length;let i,l=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);l<r.length;)i=r.slice(l,l+1e4),i.unshift(t,0),e.splice(...i),l+=1e4,t+=1e4}function st(e,t){return e.length>0?(lt(e,e.length,0,t),e):t}const at={}.hasOwnProperty;function ct(e){const t={};let n=-1;for(;++n<e.length;)ut(t,e[n]);return t}function ut(e,t){let n;for(n in t){const r=(at.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let i;if(o)for(i in o){at.call(r,i)||(r[i]=[]);const e=o[i];ft(r[i],Array.isArray(e)?e:e?[e]:[])}}}function ft(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);lt(e,0,0,r)}function pt(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}function dt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ht=It(/[A-Za-z]/),mt=It(/[\dA-Za-z]/),gt=It(/[#-'*+\--9=?A-Z^-~]/);function yt(e){return null!==e&&(e<32||127===e)}const xt=It(/\d/),kt=It(/[\dA-Fa-f]/),vt=It(/[!-/:-@[-`{-~]/);function bt(e){return null!==e&&e<-2}function wt(e){return null!==e&&(e<0||32===e)}function St(e){return-2===e||-1===e||32===e}const Ct=It(new RegExp("\\p{P}|\\p{S}","u")),Et=It(/\s/);function It(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function Tt(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const i=e.charCodeAt(n);let l="";if(37===i&&mt(e.charCodeAt(n+1))&&mt(e.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(l=String.fromCharCode(i));else if(i>55295&&i<57344){const t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(l=String.fromCharCode(i,t),o=1):l="�"}else l=String.fromCharCode(i);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+o+1,l=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function Pt(e,t,n,r){const o=r?r-1:1/0;let i=0;return function(r){return St(r)?(e.enter(n),l(r)):t(r)};function l(r){return St(r)&&i++<o?(e.consume(r),l):(e.exit(n),t(r))}}function At(e,t,n,r,o,i){let l=0;return function(t){return St(t)?(e.enter(r),s(t)):a(t)};function s(t){return St(t)&&l<i?(e.consume(t),l++,s):(e.exit(r),a(t))}function a(e){return l>=o?t(e):n(e)}}const Dt={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,function(n){if(null!==n)return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Pt(e,t,"linePrefix");e.consume(n)},function(t){return e.enter("paragraph"),r(t)});let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):bt(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),o)}}};let Lt=class{constructor(){this.index=new Map,this.map=[]}add(e,t,n){Ft(this,e,t,n,!1)}addBefore(e,t,n){Ft(this,e,t,n,!0)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(const t of r)e.push(t);r=n.pop()}this.map.length=0,this.index.clear()}};function Ft(e,t,n,r,o){if(0===n&&0===r.length)return;const i=e.index.get(t);if(i)return i[1]+=n,void(o?(r.push(...i[2]),i[2]=r):i[2].push(...r));const l=[t,n,r];e.map.push(l),e.index.set(t,l)}const zt={tokenize:function(e){const t=this,n=[];let r,o,i,l=0;return s;function s(r){if(l<n.length){const o=n[l];return t.containerState=o[1],e.attempt(o[0].continuation,a,c)(r)}return c(r)}function a(e){if(l++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&x();const n=t.events.length;let o,i=n;for(;i--;)if("exit"===t.events[i][0]&&"chunkFlow"===t.events[i][1].type){o=t.events[i][1].end;break}y(l);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;const a=new Lt;return a.add(i+1,0,t.events.slice(n)),a.add(n,s-n,[]),a.consume(t.events),c(e)}return s(e)}function c(o){if(l===n.length){if(!r)return p(o);if(r.currentConstruct&&r.currentConstruct.concrete)return h(o);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Mt,u,f)(o)}function u(e){return r&&x(),y(l),p(e)}function f(e){return t.parser.lazy[t.now().line]=l!==n.length,i=t.now().offset,h(e)}function p(n){return t.containerState={},e.attempt(Mt,d,h)(n)}function d(e){return l++,n.push([t.currentConstruct,t.containerState]),p(e)}function h(n){return null===n?(r&&x(),y(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:o}),m(n))}function m(n){return null===n?(g(e.exit("chunkFlow"),!0),y(0),void e.consume(n)):bt(n)?(e.consume(n),g(e.exit("chunkFlow")),l=0,t.interrupt=void 0,s):(e.consume(n),m)}function g(e,n){const s=t.sliceStream(e);if(n&&s.push(null),e.previous=o,o&&(o.next=e),o=e,r.defineSkip(e.start),r.write(s),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<i&&(!r.events[e][1].end||r.events[e][1].end.offset>i))return;const n=t.events.length;let o,s,a=n;for(;a--;)if("exit"===t.events[a][0]&&"chunkFlow"===t.events[a][1].type){if(o){s=t.events[a][1].end;break}o=!0}for(y(l),e=n;e<t.events.length;)t.events[e][1].end={...s},e++;const c=new Lt;c.add(a+1,0,t.events.slice(n)),c.add(n,e-n,[]),c.consume(t.events)}}function y(r){let o=n.length;for(;o-- >r;){const r=n[o];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function x(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},Mt={tokenize:function(e,t,n){return Pt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function Ot(e){return null===e||wt(e)||Et(e)?1:Ct(e)?2:void 0}function Rt(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const i=e[o].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const _t={name:"attention",resolveAll:function(e,t){let n,r=-1;for(;++r<e.length;)if("enter"===e[r][0]&&"attentionSequence"===e[r][1].type&&e[r][1]._close){let o=r;for(;o--;)if("exit"===e[o][0]&&"attentionSequence"===e[o][1].type&&e[o][1]._open&&t.sliceSerialize(e[o][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[o][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[o][1].end.offset-e[o][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;const i=e[o][1].end.offset-e[o][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1,l={...e[o][1].end},s={...e[r][1].start};Nt(l,-i),Nt(s,i);const a={type:i>1?"strongSequence":"emphasisSequence",start:l,end:{...e[o][1].end}},c={type:i>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:s},u={type:i>1?"strongText":"emphasisText",start:{...e[o][1].end},end:{...e[r][1].start}},f={type:i>1?"strong":"emphasis",start:{...a.start},end:{...c.end}};e[o][1].end={...a.start},e[r][1].start={...c.end},n=[],e[o][1].end.offset-e[o][1].start.offset&&(n=st(n,[["enter",e[o][1],t],["exit",e[o][1],t]])),n=st(n,[["enter",f,t],["enter",a,t],["exit",a,t],["enter",u,t]]),n=st(n,Rt(t.parser.constructs.insideSpan.null,e.slice(o+1,r),t)),n=st(n,[["exit",u,t],["enter",c,t],["exit",c,t],["exit",f,t]]);let p=0;e[r][1].end.offset-e[r][1].start.offset&&(p=2,n=st(n,[["enter",e[r][1],t],["exit",e[r][1],t]])),lt(e,o-1,r-o+3,n),r=o+n.length-p-2;break}}for(r=-1;++r<e.length;)"attentionSequence"===e[r][1].type&&(e[r][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=Ot(r);let i;return function(t){return i=t,e.enter("attentionSequence"),l(t)};function l(s){if(s===i)return e.consume(s),l;const a=e.exit("attentionSequence"),c=Ot(s),u=!c||2===c&&o||n.includes(s)&&42!==s&&95!==s,f=!o||2===o&&c||n.includes(r)&&42!==r&&95!==r;return a._open=Boolean(42===i?u:u&&(o||!f)),a._close=Boolean(42===i?f:f&&(c||!u)),t(s)}}};function Nt(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const jt={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(t){return ht(t)?(e.consume(t),i):64===t?n(t):a(t)}function i(e){return 43===e||45===e||46===e||mt(e)?(r=1,l(e)):a(e)}function l(t){return 58===t?(e.consume(t),r=0,s):(43===t||45===t||46===t||mt(t))&&r++<32?(e.consume(t),l):(r=0,a(t))}function s(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||yt(r)?n(r):(e.consume(r),s)}function a(t){return 64===t?(e.consume(t),c):gt(t)?(e.consume(t),a):n(t)}function c(e){return mt(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):f(n)}function f(t){if((45===t||mt(t))&&r++<63){const n=45===t?f:u;return e.consume(t),n}return n(t)}}},Bt={partial:!0,tokenize:function(e,t,n){return function(t){return St(t)?Pt(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||bt(e)?t(e):n(e)}}},Ht={continuation:{tokenize:function(e,t,n){const r=this;return function(t){return St(t)?Pt(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):o(t)};function o(r){return e.attempt(Ht,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return n(t)};function o(n){return St(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}},Ut={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return vt(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},Vt={name:"characterReference",tokenize:function(e,t,n){const r=this;let o,i,l=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),a):(e.enter("characterReferenceValue"),o=31,i=mt,c(t))}function a(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,i=kt,c):(e.enter("characterReferenceValue"),o=7,i=xt,c(t))}function c(s){if(59===s&&l){const o=e.exit("characterReferenceValue");return i!==mt||it(r.sliceSerialize(o))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return i(s)&&l++<o?(e.consume(s),c):n(s)}}},qt={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},Wt={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,o={partial:!0,tokenize:function(e,t,n){let o=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l};function l(t){return e.enter("codeFencedFence"),St(t)?Pt(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):a(t)}function a(t){return t===i?(e.enter("codeFencedFenceSequence"),c(t)):n(t)}function c(t){return t===i?(o++,e.consume(t),c):o>=s?(e.exit("codeFencedFenceSequence"),St(t)?Pt(e,u,"whitespace")(t):u(t)):n(t)}function u(r){return null===r||bt(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let i,l=0,s=0;return function(t){return function(t){const n=r.events[r.events.length-1];return l=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,i=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),a(t)}(t)};function a(t){return t===i?(s++,e.consume(t),a):s<3?n(t):(e.exit("codeFencedFenceSequence"),St(t)?Pt(e,c,"whitespace")(t):c(t))}function c(n){return null===n||bt(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(qt,d,x)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||bt(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):St(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Pt(e,f,"whitespace")(t)):96===t&&t===i?n(t):(e.consume(t),u)}function f(t){return null===t||bt(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||bt(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===i?n(t):(e.consume(t),p)}function d(t){return e.attempt(o,x,h)(t)}function h(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return l>0&&St(t)?Pt(e,g,"linePrefix",l+1)(t):g(t)}function g(t){return null===t||bt(t)?e.check(qt,d,x)(t):(e.enter("codeFlowValue"),y(t))}function y(t){return null===t||bt(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),y)}function x(n){return e.exit("codeFenced"),t(n)}}},$t={name:"codeIndented",tokenize:function(e,t,n){return function(t){return e.enter("codeIndented"),At(e,r,n,"linePrefix",4,4)(t)};function r(t){return null===t?i(t):bt(t)?e.attempt(Qt,r,i)(t):(e.enter("codeFlowValue"),o(t))}function o(t){return null===t||bt(t)?(e.exit("codeFlowValue"),r(t)):(e.consume(t),o)}function i(n){return e.exit("codeIndented"),t(n)}}},Qt={partial:!0,tokenize:function(e,t,n){const r=this;return o;function o(l){return r.parser.lazy[r.now().line]?n(l):bt(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):At(e,t,i,"linePrefix",4,4)(l)}function i(e){return bt(e)?o(e):n(e)}}},Yt={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,o=3;if(!("lineEnding"!==e[o][1].type&&"space"!==e[o][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=o;++t<r;)if("codeTextData"===e[t][1].type){e[o][1].type="codeTextPadding",e[r][1].type="codeTextPadding",o+=2,r-=2;break}for(t=o-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,o,i=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),l(t)};function l(t){return 96===t?(e.consume(t),i++,l):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):96===t?(o=e.enter("codeTextSequence"),r=0,c(t)):bt(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),a(t))}function a(t){return null===t||32===t||96===t||bt(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),a)}function c(n){return 96===n?(e.consume(n),r++,c):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(o.type="codeTextData",a(n))}}};class Kt{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=null==t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const o=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&Xt(this.left,n),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),Xt(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Xt(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);Xt(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);Xt(this.left,t.reverse())}}}function Xt(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 Jt(e){const t={};let n,r,o,i,l,s,a,c=-1;const u=new Kt(e);for(;++c<u.length;){for(;c in t;)c=t[c];if(n=u.get(c),c&&"chunkFlow"===n[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&(s=n[1]._tokenizer.events,o=0,o<s.length&&"lineEndingBlank"===s[o][1].type&&(o+=2),o<s.length&&"content"===s[o][1].type))for(;++o<s.length&&"content"!==s[o][1].type;)"chunkText"===s[o][1].type&&(s[o][1]._isInFirstContentOfListItem=!0,o++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,Zt(u,c)),c=t[c],a=!0);else if(n[1]._container){for(o=c,r=void 0;o--;)if(i=u.get(o),"lineEnding"===i[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(r&&(u.get(r)[1].type="lineEndingBlank"),i[1].type="lineEnding",r=o);else if("linePrefix"!==i[1].type&&"listItemIndent"!==i[1].type)break;r&&(n[1].end={...u.get(r)[1].start},l=u.slice(r,c),l.unshift(n),u.splice(r,c-r+1,l))}}return lt(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!a}function Zt(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const i=[];let l=n._tokenizer;l||(l=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const s=l.events,a=[],c={};let u,f,p=-1,d=n,h=0,m=0;const g=[m];for(;d;){for(;e.get(++o)[1]!==d;);i.push(o),d._tokenizer||(u=r.sliceStream(d),d.next||u.push(null),f&&l.defineSkip(d.start),d._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(u),d._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),f=d,d=d.next}for(d=n;++p<s.length;)"exit"===s[p][0]&&"enter"===s[p-1][0]&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(m=p+1,g.push(m),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(l.events=[],d?(d._tokenizer=void 0,d.previous=void 0):g.pop(),p=g.length;p--;){const t=s.slice(g[p],g[p+1]),n=i.pop();a.push([n,n+t.length-1]),e.splice(n,2,t)}for(a.reverse(),p=-1;++p<a.length;)c[h+a[p][0]]=h+a[p][1],h+=a[p][1]-a[p][0]-1;return c}const Gt={resolve:function(e){return Jt(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?o(t):bt(t)?e.check(en,i,o)(t):(e.consume(t),r)}function o(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function i(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},en={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Pt(e,o,"linePrefix")};function o(o){if(null===o||bt(o))return n(o);const i=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}};function tn(e,t,n,r,o,i,l,s,a){const c=a||Number.POSITIVE_INFINITY;let u=0;return function(t){return 60===t?(e.enter(r),e.enter(o),e.enter(i),e.consume(t),e.exit(i),f):null===t||32===t||41===t||yt(t)?n(t):(e.enter(r),e.enter(l),e.enter(s),e.enter("chunkString",{contentType:"string"}),h(t))};function f(n){return 62===n?(e.enter(i),e.consume(n),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(s),f(t)):null===t||60===t||bt(t)?n(t):(e.consume(t),92===t?d:p)}function d(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function h(o){return u||null!==o&&41!==o&&!wt(o)?u<c&&40===o?(e.consume(o),u++,h):41===o?(e.consume(o),u--,h):null===o||32===o||40===o||yt(o)?n(o):(e.consume(o),92===o?m:h):(e.exit("chunkString"),e.exit(s),e.exit(l),e.exit(r),t(o))}function m(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function nn(e,t,n,r,o,i){const l=this;let s,a=0;return function(t){return e.enter(r),e.enter(o),e.consume(t),e.exit(o),e.enter(i),c};function c(f){return a>999||null===f||91===f||93===f&&!s||94===f&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?n(f):93===f?(e.exit(i),e.enter(o),e.consume(f),e.exit(o),e.exit(r),t):bt(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(f))}function u(t){return null===t||91===t||93===t||bt(t)||a++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!St(t)),92===t?f:u)}function f(t){return 91===t||92===t||93===t?(e.consume(t),a++,u):u(t)}}function rn(e,t,n,r,o,i){let l;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(o),e.consume(t),e.exit(o),l=40===t?41:t,s):n(t)};function s(n){return n===l?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(i),a(n))}function a(t){return t===l?(e.exit(i),s(l)):null===t?n(t):bt(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Pt(e,a,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===l||null===t||bt(t)?(e.exit("chunkString"),a(t)):(e.consume(t),92===t?u:c)}function u(t){return t===l||92===t?(e.consume(t),c):c(t)}}function on(e,t){let n;return function r(o){return bt(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r):St(o)?Pt(e,r,n?"linePrefix":"lineSuffix")(o):t(o)}}const ln={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(t){return e.enter("definition"),function(t){return nn.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function i(t){return o=dt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),l):n(t)}function l(t){return wt(t)?on(e,s)(t):s(t)}function s(t){return tn(e,a,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function a(t){return e.attempt(sn,c,c)(t)}function c(t){return St(t)?Pt(e,u,"whitespace")(t):u(t)}function u(i){return null===i||bt(i)?(e.exit("definition"),r.parser.defined.push(o),t(i)):n(i)}}},sn={partial:!0,tokenize:function(e,t,n){return function(t){return wt(t)?on(e,r)(t):n(t)};function r(t){return rn(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return St(t)?Pt(e,i,"whitespace")(t):i(t)}function i(e){return null===e||bt(e)?t(e):n(e)}}},an={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return bt(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},cn={name:"headingAtx",resolve:function(e,t){let n=e.length-2,r=3;if("whitespace"===e[r][1].type&&(r+=2),n-2>r&&"whitespace"===e[n][1].type&&(n-=2),"atxHeadingSequence"===e[n][1].type&&(r===n-1||n-4>r&&"whitespace"===e[n-2][1].type)&&(n-=r+1===n?2:4),n>r){const o={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"};lt(e,r,n-r+1,[["enter",o,t],["enter",i,t],["exit",i,t],["exit",o,t]])}return e},tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),o(t)}(t)};function o(t){return 35===t&&r++<6?(e.consume(t),o):null===t||wt(t)?(e.exit("atxHeadingSequence"),i(t)):n(t)}function i(n){return 35===n?(e.enter("atxHeadingSequence"),l(n)):null===n||bt(n)?(e.exit("atxHeading"),t(n)):St(n)?Pt(e,i,"whitespace")(n):(e.enter("atxHeadingText"),s(n))}function l(t){return 35===t?(e.consume(t),l):(e.exit("atxHeadingSequence"),i(t))}function s(t){return null===t||35===t||wt(t)?(e.exit("atxHeadingText"),i(t)):(e.consume(t),s)}}},un=["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"],fn=["pre","script","style","textarea"],pn={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){const r=this;let o,i,l,s,a;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),i=!0,d):63===s?(e.consume(s),o=3,r.interrupt?t:M):ht(s)?(e.consume(s),l=String.fromCharCode(s),h):n(s)}function u(i){return 45===i?(e.consume(i),o=2,f):91===i?(e.consume(i),o=5,s=0,p):ht(i)?(e.consume(i),o=4,r.interrupt?t:M):n(i)}function f(o){return 45===o?(e.consume(o),r.interrupt?t:M):n(o)}function p(o){return o==="CDATA[".charCodeAt(s++)?(e.consume(o),6===s?r.interrupt?t:I:p):n(o)}function d(t){return ht(t)?(e.consume(t),l=String.fromCharCode(t),h):n(t)}function h(s){if(null===s||47===s||62===s||wt(s)){const a=47===s,c=l.toLowerCase();return a||i||!fn.includes(c)?un.includes(l.toLowerCase())?(o=6,a?(e.consume(s),m):r.interrupt?t(s):I(s)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):i?g(s):y(s)):(o=1,r.interrupt?t(s):I(s))}return 45===s||mt(s)?(e.consume(s),l+=String.fromCharCode(s),h):n(s)}function m(o){return 62===o?(e.consume(o),r.interrupt?t:I):n(o)}function g(t){return St(t)?(e.consume(t),g):C(t)}function y(t){return 47===t?(e.consume(t),C):58===t||95===t||ht(t)?(e.consume(t),x):St(t)?(e.consume(t),y):C(t)}function x(t){return 45===t||46===t||58===t||95===t||mt(t)?(e.consume(t),x):k(t)}function k(t){return 61===t?(e.consume(t),v):St(t)?(e.consume(t),k):y(t)}function v(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),a=t,b):St(t)?(e.consume(t),v):w(t)}function b(t){return t===a?(e.consume(t),a=null,S):null===t||bt(t)?n(t):(e.consume(t),b)}function w(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||wt(t)?k(t):(e.consume(t),w)}function S(e){return 47===e||62===e||St(e)?y(e):n(e)}function C(t){return 62===t?(e.consume(t),E):n(t)}function E(t){return null===t||bt(t)?I(t):St(t)?(e.consume(t),E):n(t)}function I(t){return 45===t&&2===o?(e.consume(t),D):60===t&&1===o?(e.consume(t),L):62===t&&4===o?(e.consume(t),O):63===t&&3===o?(e.consume(t),M):93===t&&5===o?(e.consume(t),z):!bt(t)||6!==o&&7!==o?null===t||bt(t)?(e.exit("htmlFlowData"),T(t)):(e.consume(t),I):(e.exit("htmlFlowData"),e.check(dn,R,T)(t))}function T(t){return e.check(qt,P,R)(t)}function P(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),A}function A(t){return null===t||bt(t)?T(t):(e.enter("htmlFlowData"),I(t))}function D(t){return 45===t?(e.consume(t),M):I(t)}function L(t){return 47===t?(e.consume(t),l="",F):I(t)}function F(t){if(62===t){const n=l.toLowerCase();return fn.includes(n)?(e.consume(t),O):I(t)}return ht(t)&&l.length<8?(e.consume(t),l+=String.fromCharCode(t),F):I(t)}function z(t){return 93===t?(e.consume(t),M):I(t)}function M(t){return 62===t?(e.consume(t),O):45===t&&2===o?(e.consume(t),M):I(t)}function O(t){return null===t||bt(t)?(e.exit("htmlFlowData"),R(t)):(e.consume(t),O)}function R(n){return e.exit("htmlFlow"),t(n)}}},dn={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Bt,t,n)}}},hn={name:"htmlText",tokenize:function(e,t,n){const r=this;let o,i,l;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),a):47===t?(e.consume(t),v):63===t?(e.consume(t),x):ht(t)?(e.consume(t),S):n(t)}function a(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),i=0,d):ht(t)?(e.consume(t),y):n(t)}function c(t){return 45===t?(e.consume(t),p):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),f):bt(t)?(l=u,F(t)):(e.consume(t),u)}function f(t){return 45===t?(e.consume(t),p):u(t)}function p(e){return 62===e?L(e):45===e?f(e):u(e)}function d(t){return t==="CDATA[".charCodeAt(i++)?(e.consume(t),6===i?h:d):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),m):bt(t)?(l=h,F(t)):(e.consume(t),h)}function m(t){return 93===t?(e.consume(t),g):h(t)}function g(t){return 62===t?L(t):93===t?(e.consume(t),g):h(t)}function y(t){return null===t||62===t?L(t):bt(t)?(l=y,F(t)):(e.consume(t),y)}function x(t){return null===t?n(t):63===t?(e.consume(t),k):bt(t)?(l=x,F(t)):(e.consume(t),x)}function k(e){return 62===e?L(e):x(e)}function v(t){return ht(t)?(e.consume(t),b):n(t)}function b(t){return 45===t||mt(t)?(e.consume(t),b):w(t)}function w(t){return bt(t)?(l=w,F(t)):St(t)?(e.consume(t),w):L(t)}function S(t){return 45===t||mt(t)?(e.consume(t),S):47===t||62===t||wt(t)?C(t):n(t)}function C(t){return 47===t?(e.consume(t),L):58===t||95===t||ht(t)?(e.consume(t),E):bt(t)?(l=C,F(t)):St(t)?(e.consume(t),C):L(t)}function E(t){return 45===t||46===t||58===t||95===t||mt(t)?(e.consume(t),E):I(t)}function I(t){return 61===t?(e.consume(t),T):bt(t)?(l=I,F(t)):St(t)?(e.consume(t),I):C(t)}function T(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,P):bt(t)?(l=T,F(t)):St(t)?(e.consume(t),T):(e.consume(t),A)}function P(t){return t===o?(e.consume(t),o=void 0,D):null===t?n(t):bt(t)?(l=P,F(t)):(e.consume(t),P)}function A(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||wt(t)?C(t):(e.consume(t),A)}function D(e){return 47===e||62===e||wt(e)?C(e):n(e)}function L(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function F(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),z}function z(t){return St(t)?Pt(e,M,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):M(t)}function M(t){return e.enter("htmlTextData"),l(t)}}},mn={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){const e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&lt(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,o,i=e.length,l=0;for(;i--;){const t=e[i][1];if(n){if("link"===t.type||"labelLink"===t.type&&t._inactive)break;"enter"===e[i][0]&&"labelLink"===t.type&&(t._inactive=!0)}else if(r){if("enter"===e[i][0]&&("labelImage"===t.type||"labelLink"===t.type)&&!t._balanced&&(n=i,"labelLink"!==t.type)){l=2;break}}else"labelEnd"===t.type&&(r=i)}const s={type:"labelLink"===e[n][1].type?"link":"image",start:{...e[n][1].start},end:{...e[e.length-1][1].end}},a={type:"label",start:{...e[n][1].start},end:{...e[r][1].end}},c={type:"labelText",start:{...e[n+l+2][1].end},end:{...e[r-2][1].start}};return o=[["enter",s,t],["enter",a,t]],o=st(o,e.slice(n+1,n+l+3)),o=st(o,[["enter",c,t]]),o=st(o,Rt(t.parser.constructs.insideSpan.null,e.slice(n+l+4,r-3),t)),o=st(o,[["exit",c,t],e[r-2],e[r-1],["exit",a,t]]),o=st(o,e.slice(r+1)),o=st(o,[["exit",s,t]]),lt(e,n,e.length,o),e},tokenize:function(e,t,n){const r=this,o=r._labelStarts;let i,l;if(o){for(;o.length>0&&o[o.length-1]._balanced;)o.pop();i=o[o.length-1]}return function(t){return i?i._inactive?u(t):(l=r.parser.defined.includes(dt(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s):n(t)};function s(t){return 40===t?e.attempt(gn,c,l?c:u)(t):91===t?e.attempt(yn,c,l?a:u)(t):l?c(t):u(t)}function a(t){return e.attempt(xn,c,u)(t)}function c(e){return o.pop(),t(e)}function u(e){return i._balanced=!0,n(e)}}},gn={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return wt(t)?on(e,o)(t):o(t)}function o(t){return 41===t?c(t):tn(e,i,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return wt(t)?on(e,s)(t):c(t)}function l(e){return n(e)}function s(t){return 34===t||39===t||40===t?rn(e,a,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function a(t){return wt(t)?on(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},yn={tokenize:function(e,t,n){const r=this;return function(t){return nn.call(r,e,o,i,"reference","referenceMarker","referenceString")(t)};function o(e){return r.parser.defined.includes(dt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function i(e){return n(e)}}},xn={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},kn={name:"labelStartImage",resolveAll:mn.resolveAll,tokenize:function(e,t,n){const r=this;let o;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),o=e.exit("labelImage"),l):n(t)}function l(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(o),t(e))}}},vn={name:"labelStartLink",resolveAll:mn.resolveAll,tokenize:function(e,t,n){const r=this;let o;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),o=e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(o),t(e))}}},bn={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Pt(e,t,"linePrefix")}}},wn={name:"thematicBreak",tokenize:function(e,t,n){let r,o=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,i(e)}(t)};function i(i){return i===r?(e.enter("thematicBreakSequence"),l(i)):o>=3&&(null===i||bt(i))?(e.exit("thematicBreak"),t(i)):n(i)}function l(t){return t===r?(e.consume(t),o++,l):(e.exit("thematicBreakSequence"),St(t)?Pt(e,i,"whitespace")(t):i(t))}}},Sn={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Bt,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Pt(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!St(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(En,t,o)(n))});function o(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,Pt(e,e.attempt(Sn,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,o=r.events[r.events.length-1];let i=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,l=0;return function(t){const o=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!r.containerState.marker||t===r.containerState.marker:xt(t)){if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(wn,n,a)(t):a(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return n(t)};function s(t){return xt(t)&&++l<10?(e.consume(t),s):(!r.interrupt||l<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),a(t)):n(t)}function a(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(Bt,r.interrupt?n:c,e.attempt(Cn,f,u))}function c(e){return r.containerState.initialBlankLine=!0,i++,f(e)}function u(t){return St(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),f):n(t)}function f(n){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},Cn={partial:!0,tokenize:function(e,t,n){const r=this;return Pt(e,function(e){const o=r.events[r.events.length-1];return!St(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},En={partial:!0,tokenize:function(e,t,n){const r=this;return Pt(e,function(e){const o=r.events[r.events.length-1];return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},In={name:"setextUnderline",resolveTo:function(e,t){const n=new Lt;let r,o,i,l=e.length;for(;l--;)if("enter"===e[l][0]){if("content"===e[l][1].type){r=l;break}"paragraph"===e[l][1].type&&(o=l)}else"content"===e[l][1].type&&n.add(l,1,[]),i||"definition"!==e[l][1].type||(i=l);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",i?(n.add(o,0,[["enter",s,t]]),n.add(i+1,0,[["exit",e[r][1],t]]),e[r][1].end={...e[i][1].end}):e[r][1]=s,n.add(e.length,0,[["exit",s,t]]),n.consume(e),e},tokenize:function(e,t,n){const r=this;let o;return function(t){let l,s=r.events.length;for(;s--;)if("lineEnding"!==r.events[s][1].type&&"linePrefix"!==r.events[s][1].type&&"content"!==r.events[s][1].type){l="paragraph"===r.events[s][1].type;break}return r.parser.lazy[r.now().line]||!r.interrupt&&!l?n(t):(e.enter("setextHeadingLine"),o=t,function(t){return e.enter("setextHeadingLineSequence"),i(t)}(t))};function i(t){return t===o?(e.consume(t),i):(e.exit("setextHeadingLineSequence"),St(t)?Pt(e,l,"lineSuffix")(t):l(t))}function l(r){return null===r||bt(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}},Tn={tokenize:function(e){const t=this,n=e.attempt(Bt,function(r){if(null!==r)return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n;e.consume(r)},e.attempt(this.parser.constructs.flowInitial,r,Pt(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Gt,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}},Pn={resolveAll:Fn()},An=Ln("string"),Dn=Ln("text");function Ln(e){return{resolveAll:Fn("text"===e?zn:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],o=t.attempt(r,i,l);return i;function i(e){return a(e)?o(e):l(e)}function l(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return a(e)?(t.exit("data"),o(e)):(t.consume(e),s)}function a(e){if(null===e)return!0;const t=r[e];let o=-1;if(t)for(;++o<t.length;){const e=t[o];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function Fn(e){return function(t,n){let r,o=-1;for(;++o<=t.length;)void 0===r?t[o]&&"data"===t[o][1].type&&(r=o,o++):t[o]&&"data"===t[o][1].type||(o!==r+2&&(t[r][1].end=t[o-1][1].end,t.splice(r+2,o-r-2),o=r+2),r=void 0);return e?e(t,n):t}}function zn(e,t){const n=new Lt;let r=0;for(;++r<=e.length;)if((r===e.length||"lineEnding"===e[r][1].type)&&"data"===e[r-1][1].type){const o=e[r-1][1],i=t.sliceStream(o);let l,s=i.length,a=-1,c=0;for(;s--;){const e=i[s];if("string"==typeof e){for(a=e.length;32===e.charCodeAt(a-1);)c++,a--;if(a)break;a=-1}else if(-2===e)l=!0,c++;else if(-1!==e){s++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(c=0),c){const i={type:r===e.length||l||c<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?a:o.start._bufferIndex+a,_index:o.start._index+s,line:o.end.line,column:o.end.column-c,offset:o.end.offset-c},end:{...o.end}};o.end={...i.start},o.start.offset===o.end.offset?Object.assign(o,i):n.add(r,0,[["enter",i,t],["exit",i,t]])}r++}return n.consume(e),e}const Mn={42:Sn,43:Sn,45:Sn,48:Sn,49:Sn,50:Sn,51:Sn,52:Sn,53:Sn,54:Sn,55:Sn,56:Sn,57:Sn,62:Ht},On={91:ln},Rn={[-2]:$t,[-1]:$t,32:$t},_n={35:cn,42:wn,45:[In,wn],60:pn,61:In,95:wn,96:Wt,126:Wt},Nn={38:Vt,92:Ut},jn={[-5]:bn,[-4]:bn,[-3]:bn,33:kn,38:Vt,42:_t,60:[jt,hn],91:vn,92:[an,Ut],93:mn,95:_t,96:Yt},Bn={null:[_t,Pn]},Hn=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:On,disable:{null:[]},document:Mn,flow:_n,flowInitial:Rn,insideSpan:Bn,string:Nn,text:jn},Symbol.toStringTag,{value:"Module"}));function Un(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 o={},i=[];let l=[],s=[];const a={attempt:m(function(e,t){g(e,t.from)}),check:m(h),consume:function(e){bt(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,y()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=e},enter:function(e,t){const n=t||{};return n.type=e,n.start=p(),c.events.push(["enter",n,c]),s.push(n),n},exit:function(e){const t=s.pop();return t.end=p(),c.events.push(["exit",t,c]),t},interrupt:m(h,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){o[e.line]=e.column,y()},events:[],now:p,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const i=e[n];let l;if("string"==typeof i)l=i;else switch(i){case-5:l="\r";break;case-4:l="\n";break;case-3:l="\r\n";break;case-2:l=t?" ":"\t";break;case-1:if(!t&&o)continue;l=" ";break;default:l=String.fromCharCode(i)}o=-2===i,r.push(l)}return r.join("")}(f(e),t)},sliceStream:f,write:function(e){return l=st(l,e),function(){for(;r._index<l.length;){const e=l[r._index];if("string"==typeof e){const t=r._index;for(r._bufferIndex<0&&(r._bufferIndex=0);r._index===t&&r._bufferIndex<e.length;)d(e.charCodeAt(r._bufferIndex))}else d(e)}}(),null!==l[l.length-1]?[]:(g(t,0),c.events=Rt(i,c.events,c),c.events)}};let u=t.tokenize.call(c,a);return t.resolveAll&&i.push(t),c;function f(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex;let l;if(n===o)l=[e[n].slice(r,i)];else{if(l=e.slice(n,o),r>-1){const e=l[0];"string"==typeof e?l[0]=e.slice(r):l.shift()}i>0&&l.push(e[o].slice(0,i))}return l}(l,e)}function p(){const{_bufferIndex:e,_index:t,line:n,column:o,offset:i}=r;return{_bufferIndex:e,_index:t,line:n,column:o,offset:i}}function d(e){u=u(e)}function h(e,t){t.restore()}function m(e,t){return function(n,o,i){let l,u,f,d;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):(h=n,function(e){const t=null!==e&&h[e],n=null!==e&&h.null;return m([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});var h;function m(e){return l=e,u=0,0===e.length?i:g(e[u])}function g(e){return function(n){return d=function(){const e=p(),t=c.previous,n=c.currentConstruct,o=c.events.length,i=Array.from(s);return{from:o,restore:function(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=o,s=i,y()}}}(),f=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.includes(e.name)?k():e.tokenize.call(t?Object.assign(Object.create(c),t):c,a,x,k)(n)}}function x(t){return e(f,d),o}function k(e){return d.restore(),++u<l.length?g(l[u]):i}}}function g(e,t){e.resolveAll&&!i.includes(e)&&i.push(e),e.resolve&&lt(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function y(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}const Vn=/[\0\t\n\r]/g,qn=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Wn(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return pt(n.slice(t?2:1),t?16:10)}return it(n)||e}const $n={}.hasOwnProperty;function Qn(e,t,n){return t&&"object"==typeof t&&(n=t,t=void 0),function(e){const t={afterExit:[],beforeEnter:[],transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(k),autolinkProtocol:f,autolinkEmail:f,atxHeading:i(g),blockQuote:i(function(){return{type:"blockquote",children:[],position:void 0}}),characterEscape:f,characterReference:f,codeFenced:i(m),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:i(m,l),codeText:i(function(){return{type:"inlineCode",value:"",position:void 0}},l),codeTextData:f,data:f,codeFlowValue:f,definition:i(function(){return{type:"definition",identifier:"",label:null,title:null,url:"",position:void 0}}),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:i(function(){return{type:"emphasis",children:[],position:void 0}}),hardBreakEscape:i(y),hardBreakTrailing:i(y),htmlFlow:i(x,l),htmlFlowData:f,htmlText:i(x,l),htmlTextData:f,image:i(function(){return{type:"image",title:null,url:"",alt:null,position:void 0}}),label:l,link:i(k),listItem:i(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[],position:void 0}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:i(v,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:i(v),paragraph:i(function(){return{type:"paragraph",children:[],position:void 0}}),reference:function(){this.data.referenceType="collapsed"},referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:i(g),strong:i(function(){return{type:"strong",children:[],position:void 0}}),thematicBreak:i(function(){return{type:"thematicBreak",position:void 0}})},exit:{atxHeading:a(),atxHeadingSequence:function(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}},autolink:a(),autolinkEmail:function(e){p.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){p.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:a(),characterEscapeValue:p,characterReferenceMarkerHexadecimal:h,characterReferenceMarkerNumeric:h,characterReferenceValue:function(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;n?(r=pt(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0):r=it(t);this.stack[this.stack.length-1].value+=r},characterReference:function(e){this.stack.pop().position.end=Yn(e.end)},codeFenced:a(function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){const e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){const e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:p,codeIndented:a(function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:a(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:p,data:p,definition:a(),definitionDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=dt(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:a(),hardBreakEscape:a(d),hardBreakTrailing:a(d),htmlFlow:a(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:p,htmlText:a(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:p,image:a(function(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t},labelText:function(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(qn,Wn)}(t),n.identifier=dt(t).toLowerCase()},lineEnding:function(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak)return n.children[n.children.length-1].position.end=Yn(e.end),void(this.data.atHardBreak=void 0);!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(f.call(this,e),p.call(this,e))},link:a(function(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:a(),listOrdered:a(),listUnordered:a(),paragraph:a(),referenceString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=dt(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:a(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:a(),thematicBreak:a()}};Kn(t,(e||{}).mdastExtensions||[]);const n={};return function(e){let i={type:"root",children:[],position:void 0};const a={stack:[i],tokenStack:[],config:t,enter:s,exit:c,buffer:l,resume:u,data:n},f=[],p=[];let d=-1;for(;++d<e.length;)p.push(e[d]),("listOrdered"===e[d][1].type||"listUnordered"===e[d][1].type)&&("enter"===e[d][0]?f.push(p.length-1):o(p,f.pop()));for(e=p,d=-1;++d<e.length;){const n=t[e[d][0]];"enter"===e[d][0]&&t.beforeEnter.length>0&&r(t.beforeEnter,{...a,sliceSerialize:e[d][2].sliceSerialize},e[d][1]),$n.call(n,e[d][1].type)&&n[e[d][1].type].call({...a,sliceSerialize:e[d][2].sliceSerialize},e[d][1]),"exit"===e[d][0]&&t.afterExit.length>0&&r(t.afterExit,{...a,sliceSerialize:e[d][2].sliceSerialize},e[d][1])}if(a.tokenStack.length>0){const e=a.tokenStack[a.tokenStack.length-1];(e[1]||Jn).call(a,void 0,e[0])}for(i.position={start:Yn(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Yn(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)i=t.transforms[d](i)||i;return i};function r(e,t,n){let r=-1;for(;++r<e.length;)e[r].call(t,n)}function o(e,t){const n=e.length-1;let r,o,i,l,s=t-1,a=-1,c=!1;const u=[];for(;++s<=n;){const t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?a++:a--,l=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||l||a||i||(i=s),l=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:l=void 0}if(!a&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===a&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let n=s;for(o=void 0;n--;){const t=e[n];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;o&&(e[o][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",o=n}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}i&&(!o||i<o)&&(r._spread=!0),r.end=Object.assign({},o?e[o][1].start:t[1].end),u.push({at:o||s,event:["exit",r,t[2]]})}if("listItemPrefix"===t[1].type){const e={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=e,u.push({at:s,event:["enter",e,t[2]]}),i=void 0,l=!0}}}const f=e.splice(t);let p=0;for(s=-1;++s<f.length;){for(;p<u.length&&u[p].at===t+s;)e.push(u[p++].event);e.push(f[s])}e[t][1]._spread=c}function i(e,t){return function(n){s.call(this,e(n),n),t&&t.call(this,n)}}function l(){this.stack.push({type:"fragment",children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:Yn(t.start),end:void 0}}function a(e){return function(t){e&&e.call(this,t),c.call(this,t)}}function c(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+ze({start:e.start,end:e.end})+"): it’s not open");r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||Jn).call(this,e,r[0])),n.position.end=Yn(e.end)}function u(){return tt(this.stack.pop())}function f(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n={type:"text",value:"",position:void 0},n.position={start:Yn(e.start),end:void 0},t.push(n)),this.stack.push(n)}function p(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=Yn(e.end)}function d(){this.data.atHardBreak=!0}function h(e){this.data.characterReferenceType=e.type}function m(){return{type:"code",lang:null,meta:null,value:"",position:void 0}}function g(){return{type:"heading",depth:0,children:[],position:void 0}}function y(){return{type:"break",position:void 0}}function x(){return{type:"html",value:"",position:void 0}}function k(){return{type:"link",title:null,url:"",children:[],position:void 0}}function v(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[],position:void 0}}}(n)(function(e){for(;!Jt(e););return e}(function(e){const t={constructs:ct([Hn,...(e||{}).extensions||[]]),content:n(Dt),defined:[],document:n(zt),flow:n(Tn),lazy:{},string:n(An),text:n(Dn)};return t;function n(e){return function(n){return Un(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(o,i,l){o=n+("string"==typeof o?o.toString():new TextDecoder(i||void 0).decode(o));const s=[];let a=0;for(n="",r&&(65279===o.charCodeAt(0)&&a++,r=void 0);a<o.length;){Vn.lastIndex=a;const r=Vn.exec(o),i=r&&void 0!==r.index?r.index:o.length,l=o.charCodeAt(i);if(!r){n=o.slice(a);break}if(10===l&&a===i&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),a<i&&(s.push(o.slice(a,i)),t+=i-a),l){case 0:s.push(65533),t++;break;case 9:{const e=4*Math.ceil(t/4);for(s.push(-2);t++<e;)s.push(-1);break}case 10:s.push(-4),t=1;break;default:e=!0,t=1}a=i+1}return l&&(e&&s.push(-5),n&&s.push(n),s.push(null)),s}}()(e,t,!0))))}function Yn(e){return{line:e.line,column:e.column,offset:e.offset}}function Kn(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Kn(e,r):Xn(e,r)}}function Xn(e,t){let n;for(n in t)if($n.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"afterExit":case"beforeEnter":{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 Jn(e,t){if(e)throw new Error("Cannot close `"+e.type+"` ("+ze({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ze({start:t.start,end:t.end})+") is open");throw new Error("Cannot close document, a token (`"+t.type+"`, "+ze({start:t.start,end:t.end})+") is still open")}function Zn(e){const t=this;t.parser=function(n){return Qn(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Gn(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const o=e.all(t),i=o[0];i&&"text"===i.type?i.value="["+i.value:o.unshift({type:"text",value:"["});const l=o[o.length-1];return l&&"text"===l.type?l.value+=r:o.push({type:"text",value:r}),o}function er(e){const t=e.spread;return null==t?e.children.length>1:t}function tr(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const i=[];for(;r;)i.push(nr(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return i.push(nr(t.slice(o),o>0,!1)),i.join("")}function nr(e,t,n){let r=0,o=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(o-1);for(;9===t||32===t;)o--,t=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}const rr={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={},o=t.lang?t.lang.split(/\s+/):[];o.length>0&&(r.className=["language-"+o[0]]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=Tt(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let l,s=e.footnoteCounts.get(r);void 0===s?(s=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=i+1,s+=1,e.footnoteCounts.set(r,s);const a={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,a);const c={type:"element",tagName:"sup",properties:{},children:[a]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Gn(e,t);const o={src:Tt(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){const n={src:Tt(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(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)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Gn(e,t);const o={href:Tt(r.url||"")};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){const n={href:Tt(t.url)};null!==t.title&&void 0!==t.title&&(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)},listItem:function(e,t,n){const r=e.all(t),o=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=er(n[r])}return t}(n):er(t),i={},l=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const e=r[s];(o||0!==s||"element"!==e.type||"p"!==e.tagName)&&l.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||o?l.push(e):l.push(...e.children)}const a=r[r.length-1];a&&(o||"element"!==a.type||"p"!==a.tagName)&&l.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:i,children:l};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const n={},r=e.all(t);let o=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++o<r.length;){const e=r[o];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),o=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),o.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},i=Le(t.children[1]),l=De(t.children[t.children.length-1]);i&&l&&(r.position={start:i,end:l}),o.push(r)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,o=0===(r?r.indexOf(t):1)?"th":"td",i=n&&"table"===n.type?n.align:void 0,l=i?i.length:t.children.length;let s=-1;const a=[];for(;++s<l;){const n=t.children[s],r={},l=i?i[s]:void 0;l&&(r.align=l);let c={type:"element",tagName:o,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),a.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(a,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const n={type:"text",value:tr(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:or,yaml:or,definition:or,footnoteDefinition:or};function or(){}const{defineProperty:ir}=Object,lr="object"==typeof self?self:globalThis,sr=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new lr[e](t)},ar=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=o=>{if(e.has(o))return e.get(o);const[i,l]=t[o];switch(i){case 0:case-1:return n(l,o);case 1:{const e=n([],o);for(const t of l)e.push(r(t));return e}case 2:{const e=n({},o);for(const[t,n]of l){const o=r(t),i=r(n);"__proto__"===o?ir(e,o,{value:i,configurable:!0,enumerable:!0,writable:!0}):e[o]=i}return e}case 3:return n(new Date(l),o);case 4:{const{source:e,flags:t}=l;return n(new RegExp(e,t),o)}case 5:{const e=n(new Map,o);for(const[t,n]of l)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,o);for(const t of l)e.add(r(t));return e}case 7:{const{name:e,message:t}=l;return n("function"==typeof lr[e]?sr(e,t):new Error(t),o)}case 8:return n(BigInt(l),o);case"BigInt":return n(Object(BigInt(l)),o);case"ArrayBuffer":return n(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:e}=new Uint8Array(l);return n(new DataView(e),l)}case"-0":return-0}return n(sr(i,l),o)};return r})(new Map,e)(0),cr="",{toString:ur}={},{keys:fr,is:pr}=Object,dr=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=ur.call(e).slice(8,-1);switch(n){case"Array":return[1,cr];case"Object":return[2,cr];case"Date":return[3,cr];case"RegExp":return[4,cr];case"Map":return[5,cr];case"Set":return[6,cr];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:e instanceof Error?[7,e.name||"Error"]:[2,n]},hr=([e,t])=>0===e&&("function"===t||"symbol"===t),mr=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const o=(e,t)=>{const o=r.push(e)-1;return n.set(t,o),o},i=l=>{if(n.has(l))return n.get(l);let[s,a]=dr(l);switch(s){case 0:{let t=l;switch(a){case"bigint":s=8,t=l.toString();break;case"number":if(!l&&pr(l,-0))return r.push(["-0"])-1;break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+a);t=null;break;case"undefined":return o([-1],l)}return o([s,t],l)}case 1:{if(a){let e=l;return"DataView"===a?e=new Uint8Array(l.buffer):"ArrayBuffer"===a&&(e=new Uint8Array(l)),o([a,[...e]],l)}const e=[],t=o([s,e],l);for(const n of l)e.push(i(n));return t}case 2:{if(a)switch(a){case"BigInt":return o([a,l.toString()],l);case"Boolean":case"Number":case"String":return o([a,l.valueOf()],l)}if(t&&"toJSON"in l)return i(l.toJSON());const n=[],r=o([s,n],l);for(const t of fr(l))!e&&hr(dr(l[t]))||n.push([i(t),i(l[t])]);return r}case 3:return o([s,isNaN(l.getTime())?cr:l.toISOString()],l);case 4:{const{source:e,flags:t}=l;return o([s,{source:e,flags:t}],l)}case 5:{const t=[],n=o([s,t],l);for(const[r,o]of l)(e||!hr(dr(r))&&!hr(dr(o)))&&t.push([i(r),i(o)]);return n}case 6:{const t=[],n=o([s,t],l);for(const r of l)!e&&hr(dr(r))||t.push(i(r));return n}}const{message:c}=l;return o([s,{name:a,message:c}],l)};return i})(!(t||n),!!t,new Map,r)(e),r},gr="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?ar(mr(e,t)):structuredClone(e):(e,t)=>ar(mr(e,t));function yr(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 xr(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const kr=function(e){if(null==e)return br;if("function"==typeof e)return vr(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=kr(e[n]);return vr(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):function(e){const t=e;return vr(function(n){const r=n;let o;for(o in e)if(r[o]!==t[o])return!1;return!0})}(e);if("string"==typeof e)return t=e,vr(function(e){return e&&e.type===t});var t;throw new Error("Expected function, string, or object as test")};function vr(e){return function(t,n,r){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function br(){return!0}const wr=[],Sr=!1,Cr="skip";function Er(e,t,n,r){if(!e||"object"!=typeof e)throw new Error("Unexpected value `"+e+"` for `tree`, expected node");let o,i,l,s,a=!0;if("function"==typeof n||n&&"object"==typeof n?(o=t,i=n,r&&(a=!1)):(i=t,n&&(a=!1)),"function"==typeof i)l=i;else{if(!i||"object"!=typeof i)throw new Error("Unexpected value `"+i+"` for `enter` or `visitors`, expected visitor or object with visitors");if(null===i.enter||void 0===i.enter);else{if("function"!=typeof i.enter)throw new Error("Unexpected value `"+i.enter+"` for `visitors.enter`, expected optional visitor");l=i.enter}if("function"!=typeof i.exit)throw new Error("Unexpected value `"+i.exit+"` for `visitors.exit`, expected visitor (pass a visitor directly if you only want an enter visitor)");s=i.exit}const c=kr(o),u=a?1:-1;!function e(t,n,r){const i=t&&"object"==typeof t?t:{};if("string"==typeof i.type){const e="string"==typeof i.tagName?i.tagName:"string"==typeof i.name?i.name:void 0;Object.defineProperty(f,"name",{value:"node ("+t.type+(e?"<"+e+">":"")+")"})}return f;function f(){const i=!o||c(t,n,r[r.length-1]||void 0);let f=wr;if(l&&i&&(f=Ir(l(t,r,n)),f[0]===Sr))return f;if("children"in t&&t.children){const n=t;if(n.children&&f[0]!==Cr){let t=(a?-1:n.children.length)+u;const o=[...r,n];for(;t>-1&&t<n.children.length;){const r=n.children[t],i=e(r,t,o)();if(i[0]===Sr)return i;t="number"==typeof i[1]?i[1]:t+u}}}if(s&&i){const e=Ir(s(t,r,n));if(e[0]===Cr)throw new Error("Unexpected value `"+e[0]+"` from `exit`, expected `CONTINUE`, `EXIT`, index, or nothing");if(e[0]===Sr||"number"==typeof e[1])return e}return f}}(e,void 0,[])()}function Ir(e){return Array.isArray(e)?e:"number"==typeof e?[!0,e]:null==e?wr:[e]}function Tr(e,t,n,r){let o,i;o=t,i=n,Er(e,void 0,"function"==typeof o?Pr(o):function(e){return e&&"object"==typeof e?{enter:"function"==typeof e.enter?Pr(e.enter):e.enter,exit:"function"==typeof e.exit?Pr(e.exit):e.exit}:e}(o),i)}function Pr(e){return function(t,n,r){return e(t,r,n[n.length-1])}}const Ar={}.hasOwnProperty,Dr={};function Lr(e,t){e.position&&(t.position=function(e){const t=Le(e),n=De(e);if(t&&n)return{start:t,end:n}}(e))}function Fr(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&o&&Object.assign(n.properties,gr(o)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function zr(e,t){const n=t.data||{},r=!("value"in t)||Ar.call(n,"hProperties")||Ar.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function Mr(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function Or(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function Rr(e,t){const n=function(e,t){const n=t||Dr,r=new Map,o=new Map,i=new Map,l={...rr,...n.handlers},s={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const o=s.one(n[r],e);if(o){if(r&&"break"===n[r-1].type&&(Array.isArray(o)||"text"!==o.type||(o.value=Or(o.value)),!Array.isArray(o)&&"element"===o.type)){const e=o.children[0];e&&"text"===e.type&&(e.value=Or(e.value))}Array.isArray(o)?t.push(...o):t.push(o)}}}return t},applyData:Fr,definitionById:r,footnoteById:o,footnoteCounts:i,footnoteOrder:[],handlers:l,one:function(e,t){const n=e.type,r=s.handlers[n];if(Ar.call(s.handlers,n)&&r)return r(s,e,t);if(s.options.passThrough&&s.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=gr(n);return r.children=s.all(e),r}return gr(e)}return(s.options.unknownHandler||zr)(s,e,t)},options:n,patch:Lr,wrap:Mr};return Tr(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:o,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),s}(e,t),r=n.one(e,void 0),o=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||yr,r=e.options.footnoteBackLabel||xr,o=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let a=-1;for(;++a<e.footnoteOrder.length;){const o=e.footnoteById.get(e.footnoteOrder[a]);if(!o)continue;const i=e.all(o),l=String(o.identifier).toUpperCase(),c=Tt(l.toLowerCase());let u=0;const f=[],p=e.footnoteCounts.get(l);for(;void 0!==p&&++u<=p;){f.length>0&&f.push({type:"text",value:" "});let e="string"==typeof n?n:n(a,u);"string"==typeof e&&(e={type:"text",value:e}),f.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(a,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const d=i[i.length-1];if(d&&"element"===d.type&&"p"===d.tagName){const e=d.children[d.children.length-1];e&&"text"===e.type?e.value+=" ":d.children.push({type:"text",value:" "}),d.children.push(...f)}else i.push(...f);const h={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(i,!0)};e.patch(o,h),s.push(h)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...gr(l),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&i.children.push({type:"text",value:"\n"},o),i}function _r(e,t){return e&&"run"in e?async function(n,r){const o=Rr(n,{file:r,...t});await e.run(o,r)}:function(n,r){return Rr(n,{file:r,...e||t})}}function Nr(e){if(e)throw e}var jr,Br;function Hr(){if(Br)return jr;Br=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},l=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return jr=function e(){var t,n,r,a,c,u,f=arguments[0],p=1,d=arguments.length,h=!1;for("boolean"==typeof f&&(h=f,f=arguments[1]||{},p=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});p<d;++p)if(null!=(t=arguments[p]))for(n in t)r=s(f,n),f!==(a=s(t,n))&&(h&&a&&(i(a)||(c=o(a)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&i(r)?r:{},l(f,{name:n,newValue:e(h,u,a)})):void 0!==a&&l(f,{name:n,newValue:a}));return f},jr}const Ur=p(Hr());function Vr(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}const qr=function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');Kr(e);let n,r=0,o=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let l=-1,s=t.length-1;for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else l<0&&(n=!0,l=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(o=i):(s=-1,o=l));return r===o?o=l:o<0&&(o=e.length),e.slice(r,o)},Wr=function(e){if(Kr(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},$r=function(e){Kr(e);let t,n=e.length,r=-1,o=0,i=-1,l=0;for(;n--;){const s=e.codePointAt(n);if(47!==s)r<0&&(t=!0,r=n+1),46===s?i<0?i=n:1!==l&&(l=1):i>-1&&(l=-1);else if(t){o=n+1;break}}return i<0||r<0||0===l||1===l&&i===r-1&&i===o+1?"":e.slice(i,r)},Qr=function(...e){let t,n=-1;for(;++n<e.length;)Kr(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){Kr(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,o="",i=0,l=-1,s=0,a=-1;for(;++a<=e.length;){if(a<e.length)n=e.codePointAt(a);else{if(47===n)break;n=47}if(47===n){if(l===a-1||1===s);else if(l!==a-1&&2===s){if(o.length<2||2!==i||46!==o.codePointAt(o.length-1)||46!==o.codePointAt(o.length-2))if(o.length>2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),l=a,s=0;continue}}else if(o.length>0){o="",i=0,l=a,s=0;continue}t&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(l+1,a):o=e.slice(l+1,a),i=a-l-1;l=a,s=0}else 46===n&&s>-1?s++:s=-1}return o}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},Yr="/";function Kr(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Xr=function(){return"/"};function Jr(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}const Zr=["history","path","basename","stem","extname","dirname"];class Gr{constructor(e){let t;t=e?Jr(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":Xr(),this.data={},this.history=[],this.messages=[];let n,r=-1;for(;++r<Zr.length;){const e=Zr[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)Zr.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?qr(this.path):void 0}set basename(e){to(e,"basename"),eo(e,"basename"),this.path=Qr(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?Wr(this.path):void 0}set dirname(e){no(this.basename,"dirname"),this.path=Qr(e||"",this.basename)}get extname(){return"string"==typeof this.path?$r(this.path):void 0}set extname(e){if(eo(e,"extname"),no(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Qr(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){Jr(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!Jr(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("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),to(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?qr(this.path,this.extname):void 0}set stem(e){to(e,"stem"),eo(e,"stem"),this.path=Qr(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new _e(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function eo(e,t){if(e&&e.includes(Yr))throw new Error("`"+t+"` cannot be a path: did not expect `"+Yr+"`")}function to(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function no(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const ro=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},oo={}.hasOwnProperty;class io extends ro{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=function(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function o(i,...l){const s=e[++n];let a=-1;if(i)r(i);else{for(;++a<t.length;)null!==l[a]&&void 0!==l[a]||(l[a]=t[a]);t=l,s?function(e,t){let n;return function(...t){const l=e.length>t.length;let s;l&&t.push(r);try{s=e.apply(this,t)}catch(i){if(l&&n)throw i;return r(i)}l||(s&&s.then&&"function"==typeof s.then?s.then(o,r):s instanceof Error?r(s):o(s))};function r(e,...r){n||(n=!0,t(e,...r))}function o(e){r(null,e)}}(s,o)(...l):r(null,...l)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){const e=new io;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(Ur(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(co("data",this.frozen),this.namespace[e]=t,this):oo.call(this.namespace,e)&&this.namespace[e]||void 0:e?(co("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=po(e),n=this.parser||this.Parser;return so("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),so("process",this.parser||this.Parser),ao("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,o){const i=po(e),l=n.parse(i);function s(e,n){e||!n?o(e):r?r(n):t(void 0,n)}n.run(l,i,function(e,t,r){if(e||!t||!r)return s(e);const o=t,i=n.stringify(o,r);var l;"string"==typeof(l=i)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(l)?r.value=i:r.result=i,s(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),so("processSync",this.parser||this.Parser),ao("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,Nr(e),t=r}),fo("processSync","process",n),t}run(e,t,n){uo(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?o(void 0,n):new Promise(o);function o(o,i){const l=po(t);r.run(e,l,function(t,r,l){const s=r||e;t?i(t):o?o(s):n(void 0,s,l)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){Nr(e),n=t,r=!0}),fo("runSync","run",r),n}stringify(e,t){this.freeze();const n=po(t),r=this.compiler||this.Compiler;return ao("stringify",r),uo(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(co("use",this.frozen),null==e);else if("function"==typeof e)s(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?l(e):i(e)}return this;function o(e){if("function"==typeof e)s(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;s(t,n)}else i(e)}}function i(e){if(!("plugins"in e)&&!("settings"in e))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");l(e.plugins),e.settings&&(r.settings=Ur(!0,r.settings,e.settings))}function l(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;)o(e[t])}}function s(e,t){let r=-1,o=-1;for(;++r<n.length;)if(n[r][0]===e){o=r;break}if(-1===o)n.push([e,...t]);else if(t.length>0){let[r,...i]=t;const l=n[o][1];Vr(l)&&Vr(r)&&(r=Ur(!0,l,r)),n[o]=[e,r,...i]}}}}const lo=(new io).freeze();function so(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function ao(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function co(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 uo(e){if(!Vr(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function fo(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function po(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new Gr(e)}const ho=[],mo={allowDangerousHtml:!0},go=/^(https?|ircs?|mailto|xmpp)$/i,yo=[{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:"className",id:"remove-classname"},{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 xo(e){const t=function(e){const t=e.rehypePlugins||ho,n=e.remarkPlugins||ho,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...mo}:mo;return lo().use(Zn).use(n).use(_r,r).use(t)}(e),n=function(e){const t=e.children||"",n=new Gr;return"string"==typeof t&&(n.value=t),n}(e);return function(e,t){const n=t.allowedElements,r=t.allowElement,o=t.components,i=t.disallowedElements,l=t.skipHtml,a=t.unwrapDisallowed,c=t.urlTransform||ko;for(const s of yo);return Tr(e,function(e,t,o){if("raw"===e.type&&o&&"number"==typeof t)return l?o.children.splice(t,1):o.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in Ge)if(Object.hasOwn(Ge,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=Ge[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=c(String(n||""),t,e))}}if("element"===e.type){let l=n?!n.includes(e.tagName):!!i&&i.includes(e.tagName);if(!l&&r&&"number"==typeof t&&(l=!r(e,t,o)),l&&o&&"number"==typeof t)return a&&e.children?o.children.splice(t,1,...e.children):o.children.splice(t,1),t}}),function(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!=typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return function(n,r,o,i){const l=Array.isArray(o.children),s=Le(n);return t(r,o,i,l,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!=typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");o=t.jsx,i=t.jsxs,r=function(e,t,n,r){const l=Array.isArray(n.children)?i:o;return r?l(t,n,r):l(t,n)}}var o,i;const l={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:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?ge:me,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},s=qe(l,e,void 0);return s&&"string"!=typeof s?s:l.create(e,l.Fragment,{children:s||void 0},void 0)}(e,{Fragment:s.Fragment,components:o,ignoreInvalidStyle:!0,jsx:s.jsx,jsxs:s.jsxs,passKeys:!0,passNode:!0})}(t.runSync(t.parse(n),n),e)}function ko(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),o=e.indexOf("/");return-1===t||-1!==o&&t>o||-1!==n&&t>n||-1!==r&&t>r||go.test(e.slice(0,t))?e:""}function vo(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,o=n.indexOf(t);for(;-1!==o;)r++,o=n.indexOf(t,o+t.length);return r}function bo(e){return"string"==typeof e?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function wo(e){return"function"==typeof e?e:function(){return e}}const So="phrasing",Co=["autolink","link","image","label"];function Eo(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Io(e){this.config.enter.autolinkProtocol.call(this,e)}function To(e){this.config.exit.autolinkProtocol.call(this,e)}function Po(e){this.config.exit.data.call(this,e),this.stack[this.stack.length-1].url="http://"+this.sliceSerialize(e)}function Ao(e){this.config.exit.autolinkEmail.call(this,e)}function Do(e){this.exit(e)}function Lo(e){!function(e,t,n){const r=kr((n||{}).ignore||[]),o=function(e){if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const t=[],n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const e=n[r];t.push([bo(e[0]),wo(e[1])])}return t}(t);let i=-1;for(;++i<o.length;)Er(e,l);function l(e,t,n){return"text"===e.type&&"number"==typeof n?function(e,t,n){const r=t[t.length-1],l=o[i][0],s=o[i][1];let a=0,c=!1,u=[];l.lastIndex=0;let f=l.exec(e.value);for(;f;){const n=f.index,r={index:f.index,input:f.input,stack:[...t,e]};let o=s(...f,r);if("string"==typeof o&&(o=o.length>0?{type:"text",value:o}:void 0),!1===o)l.lastIndex=n+1;else{if(a!==n&&p({type:"text",value:e.value.slice(a,n)}),Array.isArray(o))for(const e of o)p(e);else o&&p(o);a=n+f[0].length,c=!0}if(!l.global)break;f=l.exec(e.value)}return c?(a<e.value.length&&p({type:"text",value:e.value.slice(a)}),r.children.splice(n,1,...u)):u=[e],n+u.length;function p(e){const t=u[u.length-1];t&&"text"===t.type&&"text"===e.type?t.value+=e.value:u.push(e)}}(e,t,n):r(e,n,t[t.length-1])?Cr:void 0}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Fo],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),zo]],{ignore:["link","linkReference"]})}function Fo(e,t,n,r,o){let i="";if(!Mo(o))return!1;if(/^w/i.test(t)&&(n=t+n,t="",i="http://"),!function(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])))}(n))return!1;const l=function(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 o=vo(e,"(");let i=vo(e,")");for(;-1!==r&&o>i;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),i++;return[e,n]}(n+r);if(!l[0])return!1;const s={type:"link",title:null,url:i+t+l[0],children:[{type:"text",value:t+l[0]}]};return l[1]?[s,{type:"text",value:l[1]}]:s}function zo(e,t,n,r){return!(!Mo(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Mo(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||Et(n)||Ct(n))&&(!t||47!==n)}function Oo(){this.buffer()}function Ro(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function _o(){this.buffer()}function No(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function jo(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.identifier=dt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Bo(e){this.exit(e)}function Ho(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.identifier=dt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Uo(e){this.exit(e)}function Vo(e,t,n,r){const o=n.createTracker(r);let i=o.move("[^");const l=n.enter("footnoteReference"),s=n.enter("reference");return i+=o.move(n.safe(n.associationId(e),{after:"]",before:i})),s(),l(),i+=o.move("]"),i}function qo(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,o){const i=r.createTracker(o);let l=i.move("[^");const s=r.enter("footnoteDefinition"),a=r.enter("label");return l+=i.move(r.safe(r.associationId(e),{before:l,after:"]"})),a(),l+=i.move("]:"),e.children&&e.children.length>0&&(i.shift(4),l+=i.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,i.current()),t?$o:Wo))),s(),l},footnoteReference:Vo},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function Wo(e,t,n){return 0===t?e:$o(e,0,n)}function $o(e,t,n){return(n?"":" ")+e}Vo.peek=function(){return"["};const Qo=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function Yo(e){this.enter({type:"delete",children:[],position:void 0},e)}function Ko(e){this.exit(e)}function Xo(e,t,n,r){const o=n.createTracker(r),i=n.stack.includes("strikethrough")?"~":"~~",l=n.enter("strikethrough");let s=o.move(i);return s+=n.containerPhrasing(e,{...o.current(),before:s,after:"~"}),s+=o.move(i),l(),s}function Jo(e){return e.length}function Zo(e){return null==e?"":String(e)}function Go(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}Xo.attention=function(){return{construct:"strikethrough",markers:["~"],sizes:[2,1]}},Xo.peek=function(){return"~"};const ei=kr(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function ti(e,t,n){return">"+(n?"":" ")+e}function ni(e,t){return ri(e,t.inConstruct,!0)&&!ri(e,t.notInConstruct,!1)}function ri(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function oi(e,t,n,r){let o=-1;for(;++o<n.unsafe.length;){const e=n.unsafe[o];if("\n"===e.character&&!e.before&&!e.after&&ni(n.stack,e))return/[\t ]/.test(r.before)?"":" "}return"\\\n"}function ii(e,t,n){return(n?"":" ")+e}function li(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 si(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 ai(e,t,n,r){const o=n.enter("phrasing"),i=n.containerPhrasing({type:"root",children:[e]},r);return o(),i}function ci(e){return e.value||""}function ui(e,t,n,r){const o=li(n),i='"'===o?"Quote":"Apostrophe",l=n.enter("image");let s=n.enter("label");const a=n.createTracker(r);let c=a.move("![");return c+=a.move(n.safe(e.alt,{before:c,after:"]",...a.current()})),c+=a.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=a.move("<"),c+=a.move(n.safe(e.url,{before:c,after:">",...a.current()})),c+=a.move(">")):(s=n.enter("destinationRaw"),c+=a.move(n.safe(e.url,{before:c,after:e.title?" ":")",...a.current()}))),s(),e.title&&(s=n.enter(`title${i}`),c+=a.move(" "+o),c+=a.move(n.safe(e.title,{before:c,after:o,...a.current()})),c+=a.move(o),s()),c+=a.move(")"),l(),c}function fi(e,t,n,r){const o=e.referenceType,i=n.enter("imageReference");let l=n.enter("label");const s=n.createTracker(r);let a=s.move("![");const c=n.safe(e.alt,{before:a,after:"]",...s.current()});a+=s.move(c+"]["),l();const u=n.stack;n.stack=u.filter(function(e){return"phrasing"!==e}),l=n.enter("reference");const f=n.safe(n.associationId(e),{before:a,after:"]",...s.current()});return l(),n.stack=u,i(),"full"!==o&&c&&c===f?"shortcut"===o?a=a.slice(0,-1):a+=s.move("]"):a+=s.move(f+"]"),a}function pi(e,t,n){let r=e.value||"",o="`",i=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^\n\r ]/.test(r)&&(/^[\n\r ]/.test(r)&&/[\n\r ]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i<n.unsafe.length;){const e=n.unsafe[i],t=n.compilePattern(e);if(!e.atBreak)continue;let o;for(;o=t.exec(r);){let e=o.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(o.index+1)}}return o+r+o}function di(e,t){const n=tt(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][+\-.a-z]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function hi(e,t,n,r){const o=li(n),i='"'===o?"Quote":"Apostrophe",l=n.createTracker(r);if(di(e,n)){const t=n.stack;n.stack=t.filter(function(e){return"phrasing"!==e});const r=n.enter("autolink");let o=l.move("<");return o+=l.move(n.containerPhrasing(e,{before:o,after:">",...l.current()})),o+=l.move(">"),r(),n.stack=t,o}const s=n.enter("link");let a=n.enter("label"),c=l.move("[");return c+=l.move(n.containerPhrasing(e,{before:c,after:"](",...l.current()})),c+=l.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(a=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),a(),e.title&&(a=n.enter(`title${i}`),c+=l.move(" "+o),c+=l.move(n.safe(e.title,{before:c,after:o,...l.current()})),c+=l.move(o),a()),c+=l.move(")"),s(),c}function mi(e,t,n,r){const o=e.referenceType,i=n.enter("linkReference");let l=n.enter("label");const s=n.createTracker(r);let a=s.move("[");const c=n.containerPhrasing(e,{before:a,after:"]",...s.current()});a+=s.move(c+"]["),l();const u=n.stack;n.stack=u.filter(function(e){return"phrasing"!==e}),l=n.enter("reference");const f=n.safe(n.associationId(e),{before:a,after:"]",...s.current()});return l(),n.stack=u,i(),"full"!==o&&c&&c===f?"shortcut"===o?a=a.slice(0,-1):a+=s.move("]"):a+=s.move(f+"]"),a}function gi(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 yi(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 xi(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}function ki(e,t,n,r){const o=n.enter("phrasing"),i=n.containerPhrasing({type:"root",children:[e]},r);return o(),i}ai.attention=function(e,t){return{construct:"emphasis",markers:"*"===si(t)?["*","_"]:["_","*"],sizes:[1]}},ai.peek=function(e,t,n){return n.options.emphasis||"*"},ci.peek=function(){return"<"},ui.peek=function(){return"!"},fi.peek=function(){return"!"},pi.peek=function(){return"`"},hi.peek=function(e,t,n){return di(e,n)?"<":"["},mi.peek=function(){return"["},ki.attention=function(e,t){return{construct:"strong",markers:"*"===xi(t)?["*","_"]:["_","*"],sizes:[2]}},ki.peek=function(e,t,n){return n.options.strong||"*"};const vi={blockquote:function(e,t,n,r){const o=n.enter("blockquote"),i=n.createTracker(r);i.move("> "),i.shift(2);const l=n.indentLines(n.containerFlow(e,i.current()),ti);return o(),l},break:oi,code:function(e,t,n,r){const o=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),i=e.value||"";if(function(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^\n\r ]/.test(e.value)&&!/^[\t ]*(?:[\n\r]|$)|(?:^|[\n\r])[\t ]*$/.test(e.value))}(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(i,ii);return e(),t}const l=n.createTracker(r),s=o.repeat(Math.max(function(e,t){const n=String(e);let r=n.indexOf(t),o=r,i=0,l=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===o?++i>l&&(l=i):i=1,o=r+t.length,r=n.indexOf(t,o);return l}(i,o)+1,3)),a=n.enter("codeFenced"),c="`"===o?"GraveAccent":"Tilde";let u=l.move(s);if(e.lang){const t=n.enter(`codeFencedLang${c}`);u+=l.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...l.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${c}`);u+=l.move(" "),u+=l.move(n.safe(e.meta,{before:u,after:"\n",encode:["`"],...l.current()})),t()}return u+=l.move("\n"),i&&(u+=l.move(i+"\n")),u+=l.move(s),a(),u},definition:function(e,t,n,r){const o=li(n),i='"'===o?"Quote":"Apostrophe",l=n.enter("definition");let s=n.enter("label");const a=n.createTracker(r);let c=a.move("[");return c+=a.move(n.safe(n.associationId(e),{before:c,after:"]",...a.current()})),c+=a.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=a.move("<"),c+=a.move(n.safe(e.url,{before:c,after:">",...a.current()})),c+=a.move(">")):(s=n.enter("destinationRaw"),c+=a.move(n.safe(e.url,{before:c,after:e.title?" ":"\n",...a.current()}))),s(),e.title&&(s=n.enter(`title${i}`),c+=a.move(" "+o),c+=a.move(n.safe(e.title,{before:c,after:o,...a.current()})),c+=a.move(o),s()),l(),c},emphasis:ai,hardBreak:oi,heading:function(e,t,n,r){const o=Math.max(Math.min(6,e.depth||1),1),i=n.createTracker(r);if(function(e,t){let n=!1;return Tr(e,function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,Sr}),Boolean((!e.depth||e.depth<3)&&tt(e)&&(t.options.setext||n))}(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),l=n.containerPhrasing(e,{...i.current(),before:"\n",after:"\n"});return r(),t(),l+"\n"+(1===o?"=":"-").repeat(l.length-(Math.max(l.lastIndexOf("\r"),l.lastIndexOf("\n"))+1))}const l="#".repeat(o),s=n.enter("headingAtx"),a=n.enter("phrasing");i.move(l+" ");let c=n.containerPhrasing(e,{before:"# ",after:"\n",...i.current()});const u=c.charCodeAt(0);return 9!==u&&32!==u||(c="&#x"+u.toString(16).toUpperCase()+";"+c.slice(1)),c=c?l+" "+c:l,n.options.closeAtx&&(c+=" "+l),a(),s(),c},html:ci,image:ui,imageReference:fi,inlineCode:pi,link:hi,linkReference:mi,list:function(e,t,n,r){const o=n.enter("list"),i=n.bulletCurrent;let l=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):gi(n);const s=e.ordered?"."===l?")":".":function(e){const t=gi(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}(n);let a=!(!t||!n.bulletLastUsed)&&l===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==l&&"-"!==l||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(a=!0),yi(n)===l&&t){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){a=!0;break}}}}a&&(l=s),n.bulletCurrent=l;const c=n.containerFlow(e,r);return n.bulletLastUsed=l,n.bulletCurrent=i,o(),c},listItem:function(e,t,n,r){const o=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let i=n.bulletCurrent||gi(n);t&&"list"===t.type&&t.ordered&&(i=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+i);let l=i.length+1;("tab"===o||"mixed"===o&&(t&&"list"===t.type&&t.spread||e.spread))&&(l=4*Math.ceil(l/4));const s=n.createTracker(r);s.move(i+" ".repeat(l-i.length)),s.shift(l);const a=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),function(e,t,n){return t?(n?"":" ".repeat(l))+e:(n?i:i+" ".repeat(l-i.length))+e});return a(),c},paragraph:function(e,t,n,r){const o=n.enter("paragraph"),i=n.enter("phrasing"),l=n.containerPhrasing(e,r);return i(),o(),l},root:function(e,t,n,r){if(!e.children.some(function(e){return ei(e)}))return n.containerFlow(e,r);const o=n.enter("phrasing"),i=n.containerPhrasing(e,r);return o(),i},strong:ki,text:function(e,t,n,r){const o=t?t.children:[],i=o.indexOf(e);return n.safe(e.value,{...r,afterNode:o[i+1],beforeNode:o[i-1]})},thematicBreak:function(e,t,n){const r=(yi(n)+(n.options.ruleSpaces?" ":"")).repeat(function(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}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function bi(e){const t=e._align;this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function wi(e){this.exit(e),this.data.inTable=void 0}function Si(e){this.enter({type:"tableRow",children:[]},e)}function Ci(e){this.exit(e)}function Ei(e){this.enter({type:"tableCell",children:[]},e)}function Ii(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Ti)),this.stack[this.stack.length-1].value=t,this.exit(e)}function Ti(e,t){return"|"===t?t:e}function Pi(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,o=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=vi.inlineCode(e,t,n);return n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r},table:function(e,t,n,r){return s(function(e,t,n){const r=e.children;let o=-1;const i=[],l=t.enter("table");for(;++o<r.length;)i[o]=a(r[o],t,n);return l(),i}(e,n,r),e.align)},tableCell:l,tableRow:function(e,t,n,r){const o=s([a(e,n,r)]);return o.slice(0,o.indexOf("\n"))}}};function l(e,t,n,r){const o=n.enter("tableCell"),l=n.enter("phrasing"),s=n.containerPhrasing(e,{...r,before:i,after:i});return l(),o(),s}function s(e,t){return function(e,t){const n=t||{},r=(n.align||[]).concat(),o=n.stringLength||Jo,i=[],l=[],s=[],a=[];let c=0,u=-1;for(;++u<e.length;){const t=[],r=[];let i=-1;for(e[u].length>c&&(c=e[u].length);++i<e[u].length;){const l=Zo(e[u][i]);if(!1!==n.alignDelimiters){const e=o(l);r[i]=e,(void 0===a[i]||e>a[i])&&(a[i]=e)}t.push(l)}l[u]=t,s[u]=r}let f=-1;if("object"==typeof r&&"length"in r)for(;++f<c;)i[f]=Go(r[f]);else{const e=Go(r);for(;++f<c;)i[f]=e}f=-1;const p=[],d=[];for(;++f<c;){const e=i[f];let t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let o=!1===n.alignDelimiters?1:Math.max(1,a[f]-t.length-r.length);const l=t+"-".repeat(o)+r;!1!==n.alignDelimiters&&(o=t.length+o+r.length,o>a[f]&&(a[f]=o),d[f]=o),p[f]=l}l.splice(1,0,p),s.splice(1,0,d),u=-1;const h=[];for(;++u<l.length;){const e=l[u],t=s[u];f=-1;const r=[];for(;++f<c;){const o=e[f]||"";let l="",s="";if(!1!==n.alignDelimiters){const e=a[f]-(t[f]||0),n=i[f];114===n?l=" ".repeat(e):99===n?e%2?(l=" ".repeat(e/2+.5),s=" ".repeat(e/2-.5)):(l=" ".repeat(e/2),s=l):s=" ".repeat(e)}!1===n.delimiterStart||f||r.push("|"),!1===n.padding||!1===n.alignDelimiters&&""===o||!1===n.delimiterStart&&!f||r.push(" "),!1!==n.alignDelimiters&&r.push(l),r.push(o),!1!==n.alignDelimiters&&r.push(s),!1!==n.padding&&r.push(" "),!1===n.delimiterEnd&&f===c-1||r.push("|")}h.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return h.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:o})}function a(e,t,n){const r=e.children;let o=-1;const i=[],s=t.enter("tableRow");for(;++o<r.length;)i[o]=l(r[o],0,t,n);return s(),i}}function Ai(e){this.stack[this.stack.length-2].checked="taskListCheckValueChecked"===e.type}function Di(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1],n=e.children[0];if(n&&"text"===n.type){const r=t.children;let o,i=-1;for(;++i<r.length;){const e=r[i];if("paragraph"===e.type){o=e;break}}o===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function Li(e,t,n,r){const o=e.children[0],i="boolean"==typeof e.checked&&o&&"paragraph"===o.type,l="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);i&&s.move(l);let a=vi.listItem(e,t,n,{...r,...s.current()});return i&&(a=a.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+l})),a}const Fi={tokenize:function(e,t,n){let r=0;return function t(i){return(87===i||119===i)&&r<3?(r++,e.consume(i),t):46===i&&3===r?(e.consume(i),o):n(i)};function o(e){return null===e?n(e):t(e)}},partial:!0},zi={tokenize:function(e,t,n){let r,o,i;return l;function l(t){return 46===t||95===t?e.check(Oi,a,s)(t):null===t||wt(t)||Et(t)||45!==t&&Ct(t)?a(t):(i=!0,e.consume(t),l)}function s(t){return 95===t?r=!0:(o=r,r=void 0),e.consume(t),l}function a(e){return o||r||!i?n(e):t(e)}},partial:!0},Mi={tokenize:function(e,t){let n=0,r=0;return o;function o(l){return 40===l?(n++,e.consume(l),o):41===l&&r<n?i(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===l?e.check(Oi,t,i)(l):null===l||wt(l)||Et(l)?t(l):(e.consume(l),o)}function i(t){return 41===t&&r++,e.consume(t),o}},partial:!0},Oi={tokenize:function(e,t,n){return r;function r(l){return 33===l||34===l||39===l||41===l||42===l||44===l||46===l||58===l||59===l||63===l||95===l||126===l?(e.consume(l),r):38===l?(e.consume(l),i):93===l?(e.consume(l),o):60===l||null===l||wt(l)||Et(l)?t(l):n(l)}function o(e){return null===e||40===e||91===e||wt(e)||Et(e)?t(e):r(e)}function i(e){return ht(e)?l(e):n(e)}function l(t){return 59===t?(e.consume(t),r):ht(t)?(e.consume(t),l):n(t)}},partial:!0},Ri={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return mt(e)?n(e):t(e)}},partial:!0},_i={name:"wwwAutolink",tokenize:function(e,t,n){const r=this;return function(t){return 87!==t&&119!==t||!Ui.call(r,r.previous)||$i(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Fi,e.attempt(zi,e.attempt(Mi,o),n),n)(t))};function o(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:Ui},Ni={name:"protocolAutolink",tokenize:function(e,t,n){const r=this;let o="",i=!1;return function(t){return 72!==t&&104!==t||!Vi.call(r,r.previous)||$i(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(t),e.consume(t),l)};function l(t){if(ht(t)&&o.length<5)return o+=String.fromCodePoint(t),e.consume(t),l;if(58===t){const n=o.toLowerCase();if("http"===n||"https"===n)return e.consume(t),s}return n(t)}function s(t){return 47===t?(e.consume(t),i?a:(i=!0,s)):n(t)}function a(t){return null===t||yt(t)||wt(t)||Et(t)||Ct(t)?n(t):e.attempt(zi,e.attempt(Mi,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:Vi},ji={name:"emailAutolink",tokenize:function(e,t,n){const r=this;let o,i;return function(t){return Wi(t)&&qi.call(r,r.previous)&&!$i(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),l(t)):n(t)};function l(t){return Wi(t)?(e.consume(t),l):64===t?(e.consume(t),s):n(t)}function s(t){return 46===t?e.check(Ri,c,a)(t):45===t||95===t||mt(t)?(i=!0,e.consume(t),s):c(t)}function a(t){return e.consume(t),o=!0,s}function c(l){return i&&o&&ht(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(l)):n(l)}},previous:qi},Bi={};let Hi=48;for(;Hi<123;)Bi[Hi]=ji,Hi++,58===Hi?Hi=65:91===Hi&&(Hi=97);function Ui(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||wt(e)}function Vi(e){return!ht(e)}function qi(e){return!(47===e||Wi(e))}function Wi(e){return 43===e||45===e||46===e||95===e||mt(e)}function $i(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}Bi[43]=ji,Bi[45]=ji,Bi[46]=ji,Bi[95]=ji,Bi[72]=[ji,Ni],Bi[104]=[ji,Ni],Bi[87]=[ji,_i],Bi[119]=[ji,_i];const Qi={tokenize:function(e,t,n){const r=this;return Pt(e,function(e){const o=r.events[r.events.length-1];return o&&"gfmFootnoteDefinitionIndent"===o[1].type&&4===o[2].sliceSerialize(o[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function Yi(e,t,n){const r=this;let o=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;o--;){const e=r.events[o][1];if("labelImage"===e.type){l=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(o){if(!l||!l._balanced)return n(o);const s=dt(r.sliceSerialize({start:l.end,end:r.now()}));return 94===s.codePointAt(0)&&i.includes(s.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o)):n(o)}}function Ki(e,t){let n=e.length;for(;n--&&("labelImage"!==e[n][1].type||"enter"!==e[n][0]););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)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",o,t],["exit",o,t],["enter",i,t],["enter",l,t],["exit",l,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function Xi(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,l=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",a)}function a(s){if(l>999||93===s&&!i||null===s||91===s||wt(s))return n(s);if(93===s){e.exit("chunkString");const i=e.exit("gfmFootnoteCallString");return o.includes(dt(r.sliceSerialize(i)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return wt(s)||(i=!0),l++,e.consume(s),92===s?c:a}function c(t){return 91===t||92===t||93===t?(e.consume(t),l++,a):a(t)}}function Ji(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,l,s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),a};function a(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(s>999||93===t&&!l||null===t||91===t||wt(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return i=dt(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return wt(t)||(l=!0),s++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}function f(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o.includes(i)||o.push(i),Pt(e,p,"gfmFootnoteDefinitionWhitespace")):n(t)}function p(e){return t(e)}}function Zi(e,t,n){return e.check(Bt,t,e.attempt(Qi,t,n))}function Gi(e){e.exit("gfmFootnoteDefinition")}function el(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:function(e,n,r){const o=this.previous,i=this.events;let l=0;return function(t){return 126===o&&"characterEscape"!==i[i.length-1][1].type?r(t):(e.enter("strikethroughSequenceTemporary"),s(t))};function s(i){const a=Ot(o);if(126===i)return l>1?r(i):(e.consume(i),l++,s);if(l<2&&!t)return r(i);const c=e.exit("strikethroughSequenceTemporary"),u=Ot(i);return c._open=!u||2===u&&Boolean(a),c._close=!a||2===a&&Boolean(u),n(i)}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";const o={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},i={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},l=[["enter",o,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",i,t]],s=t.parser.constructs.insideSpan.null;s&&lt(l,l.length,0,Rt(s,e.slice(r+1,n),t)),lt(l,l.length,0,[["exit",i,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",o,t]]),lt(e,r-1,n-r+3,l),n=r+l.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}class tl{constructor(){this.map=[],this.index=new Map}add(e,t,n){!function(e,t,n,r){if(0===n&&0===r.length)return;const o=e.index.get(t);if(o)return o[1]+=n,void o[2].push(...r);const i=[t,n,r];e.map.push(i),e.index.set(t,i)}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(const t of r)e.push(t);r=n.pop()}this.map.length=0,this.index.clear()}}function nl(e,t){let n=!1;const r=[];for(;t<e.length;){const o=e[t];if(n){if("enter"===o[0])"tableContent"===o[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===o[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===o[1].type)break}else"enter"===o[0]&&"tableDelimiterRow"===o[1].type&&(n=!0);t+=1}return r}function rl(e,t,n){const r=this;let o,i=0,l=0;return function(e){let t=r.events.length-1;for(;t>-1;){const{type:e}=r.events[t][1];if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const o=t>-1?r.events[t][1].type:null,i="tableHead"===o||"tableRow"===o?v:s;return i===v&&r.parser.lazy[r.now().line]?n(e):i(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){return 124===e||(o=!0,l+=1),a(e)}(t)}function a(t){return null===t?n(t):bt(t)?l>1?(l=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),f):n(t):St(t)?Pt(e,a,"whitespace")(t):(l+=1,o&&(o=!1,i+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),o=!0,a):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||wt(t)?(e.exit("data"),a(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function f(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),o=!1,St(t)?Pt(e,p,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t))}function p(t){return 45===t||58===t?h(t):124===t?(o=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),d):k(t)}function d(t){return St(t)?Pt(e,h,"whitespace")(t):h(t)}function h(t){return 58===t?(l+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(l+=1,m(t)):null===t||bt(t)?x(t):k(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),g(t)):k(t)}function g(t){return 45===t?(e.consume(t),g):58===t?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(t))}function y(t){return St(t)?Pt(e,x,"whitespace")(t):x(t)}function x(n){return 124===n?p(n):(null===n||bt(n))&&o&&i===l?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):k(n)}function k(e){return n(e)}function v(t){return e.enter("tableRow"),b(t)}function b(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),b):null===n||bt(n)?(e.exit("tableRow"),t(n)):St(n)?Pt(e,b,"whitespace")(n):(e.enter("data"),w(n))}function w(t){return null===t||124===t||wt(t)?(e.exit("data"),b(t)):(e.consume(t),92===t?S:w)}function S(t){return 92===t||124===t?(e.consume(t),w):w(t)}}function ol(e,t){let n,r,o,i=-1,l=!0,s=0,a=[0,0,0,0],c=[0,0,0,0],u=!1,f=0;const p=new tl;for(;++i<e.length;){const d=e[i],h=d[1];"enter"===d[0]?"tableHead"===h.type?(u=!1,0!==f&&(ll(p,t,f,n,r),r=void 0,f=0),n={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(i,0,[["enter",n,t]])):"tableRow"===h.type||"tableDelimiterRow"===h.type?(l=!0,o=void 0,a=[0,0,0,0],c=[0,i+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(i,0,[["enter",r,t]])),s="tableDelimiterRow"===h.type?2:r?3:1):!s||"data"!==h.type&&"tableDelimiterMarker"!==h.type&&"tableDelimiterFiller"!==h.type?"tableCellDivider"===h.type&&(l?l=!1:(0!==a[1]&&(c[0]=c[1],o=il(p,t,a,s,void 0,o)),a=c,c=[a[1],i,0,0])):(l=!1,0===c[2]&&(0!==a[1]&&(c[0]=c[1],o=il(p,t,a,s,void 0,o),a=[0,0,0,0]),c[2]=i)):"tableHead"===h.type?(u=!0,f=i):"tableRow"===h.type||"tableDelimiterRow"===h.type?(f=i,0!==a[1]?(c[0]=c[1],o=il(p,t,a,s,i,o)):0!==c[1]&&(o=il(p,t,c,s,i,o)),s=0):!s||"data"!==h.type&&"tableDelimiterMarker"!==h.type&&"tableDelimiterFiller"!==h.type||(c[3]=i)}for(0!==f&&ll(p,t,f,n,r),p.consume(t.events),i=-1;++i<t.events.length;){const e=t.events[i];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=nl(t.events,i))}return e}function il(e,t,n,r,o,i){const l=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(i.end=Object.assign({},sl(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const s=sl(t.events,n[1]);if(i={type:l,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",i,t]]),0!==n[2]){const o=sl(t.events,n[2]),i=sl(t.events,n[3]),l={type:"tableContent",start:Object.assign({},o),end:Object.assign({},i)};if(e.add(n[2],0,[["enter",l,t]]),2!==r){const r=t.events[n[2]],o=t.events[n[3]];if(r[1].end=Object.assign({},o[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",l,t]])}return void 0!==o&&(i.end=Object.assign({},sl(t.events,o)),e.add(o,0,[["exit",i,t]]),i=void 0),i}function ll(e,t,n,r,o){const i=[],l=sl(t.events,n);o&&(o.end=Object.assign({},l),i.push(["exit",o,t])),r.end=Object.assign({},l),i.push(["exit",r,t]),e.add(n+1,0,i)}function sl(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const al={name:"tasklistCheck",tokenize:function(e,t,n){const r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),o):n(t)};function o(t){return wt(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),i):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),i):n(t)}function i(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):n(t)}function l(r){return bt(r)?t(r):St(r)?e.check({tokenize:cl},t,n)(r):n(r)}}};function cl(e,t,n){return Pt(e,function(e){return null===e?n(e):t(e)},"whitespace")}const ul={};function fl(e){const t=e||ul,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),o=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),i=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return ct([{text:Bi},{document:{91:{name:"gfmFootnoteDefinition",tokenize:Ji,continuation:{tokenize:Zi},exit:Gi}},text:{91:{name:"gfmFootnoteCall",tokenize:Xi},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Yi,resolveTo:Ki}}},el(e),{flow:{null:{name:"table",tokenize:rl,resolveAll:ol}}},{text:{91:al}}])}(t)),o.push([{transforms:[Lo],enter:{literalAutolink:Eo,literalAutolinkEmail:Io,literalAutolinkHttp:Io,literalAutolinkWww:Io},exit:{literalAutolink:Do,literalAutolinkEmail:Ao,literalAutolinkHttp:To,literalAutolinkWww:Po}},{enter:{gfmFootnoteCallString:Oo,gfmFootnoteCall:Ro,gfmFootnoteDefinitionLabelString:_o,gfmFootnoteDefinition:No},exit:{gfmFootnoteCallString:jo,gfmFootnoteCall:Bo,gfmFootnoteDefinitionLabelString:Ho,gfmFootnoteDefinition:Uo}},{canContainEols:["delete"],enter:{strikethrough:Yo},exit:{strikethrough:Ko}},{enter:{table:bi,tableData:Ei,tableHeader:Ei,tableRow:Si},exit:{codeText:Ii,table:wi,tableData:Ci,tableHeader:Ci,tableRow:Ci}},{exit:{taskListCheckValueChecked:Ai,taskListCheckValueUnchecked:Ai,paragraph:Di}}]),i.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:So,notInConstruct:Co},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:So,notInConstruct:Co},{character:":",before:"[ps]",after:"\\/",inConstruct:So,notInConstruct:Co}]},qo(e),{handlers:{delete:Xo},unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Qo}]},Pi(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Li}}]}}(t))}const pl=({variant:e,children:t,textSize:n={base:"15px",md:"14px"}})=>{const r=d("colors","lightBackground"),o=d("colors","background"),i=d("colors","mutedText"),l=d("colors","text"),a=h(),c=m(a,n);if("user"===e)return s.jsx(xo,{components:{p:({children:e})=>s.jsx(g,{wordBreak:"break-word",fontSize:a.font(14),fontWeight:"500",color:"text",fontFamily:y,children:e})},children:t});const u="text";return s.jsx(xo,{remarkPlugins:[fl],components:{p:({children:e})=>s.jsx(g,{fontSize:c,fontWeight:"400",color:u,textAlign:"left",lineHeight:"1.6",children:e}),ol:({children:e})=>s.jsx(x,{as:"ol",p:a.space(1.5),textAlign:"left",mb:a.space(1.5),listStyleType:"decimal",listStylePosition:"inside",children:e}),ul:({children:e})=>s.jsx(x,{as:"ul",p:a.space(1.5),textAlign:"left",mb:a.space(1.5),listStyleType:"disc",listStylePosition:"inside",children:e}),li:({children:e})=>s.jsx(g,{as:"li",fontSize:c,fontWeight:"400",color:u,textAlign:"left",display:"list-item",children:e}),img:({src:e,alt:t})=>s.jsx(v,{src:e,alt:t||"",maxW:"100%",borderRadius:a.radius(6),my:a.space(1.5)}),a:({children:e,href:t})=>s.jsx(k,{href:t,target:"_blank",display:"inline",wordBreak:"break-word",overflowWrap:"anywhere",children:s.jsx(g,{as:"span",fontSize:a.font(14),fontWeight:"400",color:"primary",wordBreak:"break-word",overflowWrap:"anywhere",whiteSpace:"normal",children:e})}),table:({children:e})=>s.jsx(x,{overflowX:"auto",maxW:"100%",css:{"&::-webkit-scrollbar":{height:"5px"},"&::-webkit-scrollbar-track":{background:r,borderRadius:"8px"},"&::-webkit-scrollbar-thumb":{background:i,borderRadius:"8px"},"&::-webkit-scrollbar-thumb:hover":{background:l}},children:s.jsx(E,{size:"sm",variant:"outline",w:"full",my:a.space(1.5),striped:!0,children:e})}),thead:({children:e})=>s.jsx(T,{children:e}),tbody:({children:e})=>s.jsx(D,{children:e}),tr:({children:e})=>s.jsx(I,{css:{"&:nth-child(even)":{backgroundColor:o},"&:nth-child(odd)":{backgroundColor:r}},children:e}),th:({children:e})=>s.jsx(P,{fontSize:a.font(13),fontWeight:"600",color:"text",textAlign:"left",lineHeight:"1.5",px:a.space(1.5),py:a.space(.75),textTransform:"none",letterSpacing:"normal",border:"1px solid",borderColor:"borderColor",whiteSpace:"nowrap",bg:"lightBackground",children:e}),td:({children:e})=>s.jsx(A,{fontSize:a.font(13),fontWeight:"400",color:"text",textAlign:"left",lineHeight:"1.5",px:a.space(1.5),py:a.space(.75),border:"1px solid",borderColor:"borderColor",bg:"transparent",children:e})},children:t})};export{pl as default};
1
+ import{u as e,r as t,a as n,c as r,i as o,b as i,d as l,j as s,e as a,g as c,m as u,E as f,f as p,h as d,k as h,l as m,T as g,U as y,B as x,L as k,I as v}from"./main-B5yyMkke.js";import"../widget.js";import"./report-BHr6U1PB.js";const{StylesProvider:b,ClassNamesProvider:w,useRecipeResult:S,withContext:C}=(()=>{const{key:p,recipe:d}={key:"table"},h=n(p||d.className||"Component"),[m,g]=r({name:`${h}StylesContext`,errorMessage:`use${h}Styles returned is 'undefined'. Seems you forgot to wrap the components in "<${h}.Root />" `}),[y,x]=r({name:`${h}ClassNameContext`,errorMessage:`use${h}ClassNames returned is 'undefined'. Seems you forgot to wrap the components in "<${h}.Root />" `,strict:!1}),[k,v]=r({strict:!1,name:`${h}PropsContext`,providerName:`${h}PropsContext`,defaultValue:{}});function b(n){const{unstyled:r,...o}=n,i=function(n){const{key:r,recipe:o}=n,i=e();return t.useMemo(()=>o?i.sva(o):null!=r?i.getSlotRecipeFn(r):i.sva({slots:[]}),[r,o,i])}({key:p,recipe:o.recipe||d}),[l,s]=t.useMemo(()=>i.splitVariantProps(o),[o,i]);return{styles:t.useMemo(()=>r?f:i(l),[r,l,i]),classNames:i.classNameMap,props:s}}return{StylesProvider:m,ClassNamesProvider:y,PropsProvider:k,usePropsContext:v,useRecipeResult:b,withProvider:(e,n,r)=>{const{defaultProps:o,displayName:f,wrapElement:p,...d}=r??{},g=i(h,String(n)),x=l(e,{},d),k=t.forwardRef((e,r)=>{const i=v(),l=t.useMemo(()=>u(o??{},i,e),[i,e]),{styles:c,props:f,classNames:d}=b(l),h=d[n],g=s.jsx(m,{value:c,children:s.jsx(y,{value:d,children:s.jsx(x,{ref:r,...f,css:[c[n],l.css],className:a(l.className,h)})})});return p?.(g,l)??g});return k.displayName=f??g??c(e),k},withContext:(e,n,r)=>{const{displayName:o,...u}=r??{},f=null!=n&&""!==n?i(h,String(n)):h,p=l(e,{},u),d=t.forwardRef((e,t)=>{const{unstyled:r,...o}=e,i=g(),l=x(),c=l?.[n];return s.jsx(p,{...o,css:[!r&&n?i[n]:void 0,e.css],ref:t,className:a(e.className,c)})});return d.displayName=o??f??c(e),d},withRootProvider:function(e,n={}){const{defaultProps:r,displayName:i}=n,l=c(e),a=o(h,l),f=n=>{const o=v(),i=t.useMemo(()=>u(r,o,n),[o,n]),{styles:l,classNames:a,props:c}=b(i);return s.jsx(m,{value:l,children:s.jsx(y,{value:a,children:s.jsx(e,{...c})})})};return f.displayName=i??a??l,f},useStyles:g,useClassNames:x}})(),E=t.forwardRef(function({native:e,...n},r){const{styles:o,props:i,classNames:c}=S(n),u=t.useMemo(()=>e?{...o.root,"& thead":o.header,"& tbody":o.body,"& tfoot":o.footer,"& thead th":o.columnHeader,"& tr":o.row,"& td":o.cell,"& caption":o.caption}:o.root,[o,e]);return s.jsx(w,{value:c,children:s.jsx(b,{value:o,children:s.jsx(l.table,{ref:r,...i,css:[u,n.css],className:a(c?.root,n.className)})})})}),I=C("tr","row");l("div",{base:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflow:"auto",maxWidth:"100%"}});const T=C("thead","header");C("tfoot","footer");const P=C("th","columnHeader"),A=C("td","cell");C("caption","caption",{defaultProps:{captionSide:"bottom"}});const D=C("tbody","body");C("colgroup"),C("col");const L=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,F=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,z={};function M(e,t){return(z.jsx?F:L).test(e)}const O=/[ \t\n\f\r]/g;function R(e){return""===e.replace(O,"")}class _{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function N(e,t){const n={},r={};for(const o of e)Object.assign(n,o.property),Object.assign(r,o.normal);return new _(n,r,t)}function j(e){return e.toLowerCase()}_.prototype.normal={},_.prototype.property={},_.prototype.space=void 0;class B{constructor(e,t){this.attribute=t,this.property=e}}B.prototype.attribute="",B.prototype.booleanish=!1,B.prototype.boolean=!1,B.prototype.commaOrSpaceSeparated=!1,B.prototype.commaSeparated=!1,B.prototype.defined=!1,B.prototype.mustUseProperty=!1,B.prototype.number=!1,B.prototype.overloadedBoolean=!1,B.prototype.property="",B.prototype.spaceSeparated=!1,B.prototype.space=void 0;let H=0;const U=K(),V=K(),q=K(),W=K(),$=K(),Q=K(),Y=K();function K(){return 2**++H}const X=Object.freeze(Object.defineProperty({__proto__:null,boolean:U,booleanish:V,commaOrSpaceSeparated:Y,commaSeparated:Q,number:W,overloadedBoolean:q,spaceSeparated:$},Symbol.toStringTag,{value:"Module"})),J=Object.keys(X);class Z extends B{constructor(e,t,n,r){let o=-1;if(super(e,t),G(this,"space",r),"number"==typeof n)for(;++o<J.length;){const e=J[o];G(this,J[o],(n&X[e])===X[e])}}}function G(e,t,n){n&&(e[t]=n)}function ee(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const i=new Z(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[j(r)]=r,n[j(i.attribute)]=r}return new _(t,n,e.space)}Z.prototype.defined=!0;const te=ee({properties:{ariaActiveDescendant:null,ariaAtomic:V,ariaAutoComplete:null,ariaBusy:V,ariaChecked:V,ariaColCount:W,ariaColIndex:W,ariaColSpan:W,ariaControls:$,ariaCurrent:null,ariaDescribedBy:$,ariaDetails:null,ariaDisabled:V,ariaDropEffect:$,ariaErrorMessage:null,ariaExpanded:V,ariaFlowTo:$,ariaGrabbed:V,ariaHasPopup:null,ariaHidden:V,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:$,ariaLevel:W,ariaLive:null,ariaModal:V,ariaMultiLine:V,ariaMultiSelectable:V,ariaOrientation:null,ariaOwns:$,ariaPlaceholder:null,ariaPosInSet:W,ariaPressed:V,ariaReadOnly:V,ariaRelevant:null,ariaRequired:V,ariaRoleDescription:$,ariaRowCount:W,ariaRowIndex:W,ariaRowSpan:W,ariaSelected:V,ariaSetSize:W,ariaSort:null,ariaValueMax:W,ariaValueMin:W,ariaValueNow:W,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function ne(e,t){return t in e?e[t]:t}function re(e,t){return ne(e,t.toLowerCase())}const oe=ee({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Q,acceptCharset:$,accessKey:$,action:null,allow:null,allowFullScreen:U,allowPaymentRequest:U,allowUserMedia:U,alpha:U,alt:null,as:null,async:U,autoCapitalize:null,autoComplete:$,autoFocus:U,autoPlay:U,blocking:$,capture:null,charSet:null,checked:U,cite:null,className:$,closedBy:null,colorSpace:null,cols:W,colSpan:W,command:null,commandFor:null,content:null,contentEditable:V,controls:U,controlsList:$,coords:W|Q,crossOrigin:null,data:null,dateTime:null,decoding:null,default:U,defer:U,dir:null,dirName:null,disabled:U,download:q,draggable:V,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:U,formTarget:null,headers:$,height:W,hidden:q,high:W,href:null,hrefLang:null,htmlFor:$,httpEquiv:$,id:null,imageSizes:null,imageSrcSet:null,inert:U,inputMode:null,integrity:null,is:null,isMap:U,itemId:null,itemProp:$,itemRef:$,itemScope:U,itemType:$,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:U,low:W,manifest:null,max:null,maxLength:W,media:null,method:null,min:null,minLength:W,multiple:U,muted:U,name:null,nonce:null,noModule:U,noValidate:U,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:U,optimum:W,pattern:null,ping:$,placeholder:null,playsInline:U,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:U,referrerPolicy:null,rel:$,required:U,reversed:U,rows:W,rowSpan:W,sandbox:$,scope:null,scoped:U,seamless:U,selected:U,shadowRootClonable:U,shadowRootCustomElementRegistry:U,shadowRootDelegatesFocus:U,shadowRootMode:null,shadowRootSerializable:U,shape:null,size:W,sizes:null,slot:null,span:W,spellCheck:V,src:null,srcDoc:null,srcLang:null,srcSet:null,start:W,step:null,style:null,tabIndex:W,target:null,title:null,translate:null,type:null,typeMustMatch:U,useMap:null,value:V,width:W,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:$,axis:null,background:null,bgColor:null,border:W,borderColor:null,bottomMargin:W,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:U,declare:U,event:null,face:null,frame:null,frameBorder:null,hSpace:W,leftMargin:W,link:null,longDesc:null,lowSrc:null,marginHeight:W,marginWidth:W,noResize:U,noHref:U,noShade:U,noWrap:U,object:null,profile:null,prompt:null,rev:null,rightMargin:W,rules:null,scheme:null,scrolling:V,standby:null,summary:null,text:null,topMargin:W,valueType:null,version:null,vAlign:null,vLink:null,vSpace:W,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:U,disablePictureInPicture:U,disableRemotePlayback:U,exportParts:Q,part:$,prefix:null,property:null,results:W,security:null,unselectable:null},space:"html",transform:re}),ie=ee({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",maskType:"mask-type",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:Y,accentHeight:W,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:W,amplitude:W,arabicForm:null,ascent:W,attributeName:null,attributeType:null,azimuth:W,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:W,by:null,calcMode:null,capHeight:W,className:$,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:W,diffuseConstant:W,direction:null,display:null,dur:null,divisor:W,dominantBaseline:null,download:U,dx:null,dy:null,edgeMode:null,editable:null,elevation:W,enableBackground:null,end:null,event:null,exponent:W,externalResourcesRequired:null,fill:null,fillOpacity:W,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:Q,g2:Q,glyphName:Q,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:W,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:W,horizOriginX:W,horizOriginY:W,id:null,ideographic:W,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:W,k:W,k1:W,k2:W,k3:W,k4:W,kernelMatrix:Y,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:W,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:W,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:W,overlineThickness:W,paintOrder:null,panose1:null,path:null,pathLength:W,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:$,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:W,pointsAtY:W,pointsAtZ:W,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Y,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Y,rev:Y,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Y,requiredFeatures:Y,requiredFonts:Y,requiredFormats:Y,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:W,specularExponent:W,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:W,strikethroughThickness:W,string:null,stroke:null,strokeDashArray:Y,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:W,strokeOpacity:W,strokeWidth:null,style:null,surfaceScale:W,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Y,tabIndex:W,tableValues:null,target:null,targetX:W,targetY:W,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Y,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:W,underlineThickness:W,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:W,values:null,vAlphabetic:W,vMathematical:W,vectorEffect:null,vHanging:W,vIdeographic:W,version:null,vertAdvY:W,vertOriginX:W,vertOriginY:W,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:W,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:ne}),le=ee({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),se=ee({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:re}),ae=ee({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),ce={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"},ue=/[A-Z]/g,fe=/-[a-z]/g,pe=/^data[-\w.:]+$/i;function de(e){return"-"+e.toLowerCase()}function he(e){return e.charAt(1).toUpperCase()}const me=N([te,oe,le,se,ae],"html"),ge=N([te,ie,le,se,ae],"svg");var ye,xe,ke,ve={};function be(){if(xe)return ye;xe=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,s=/^\s+|\s+$/g,a="";function c(e){return e?e.replace(s,a):a}return ye=function(s,u){if("string"!=typeof s)throw new TypeError("First argument must be a string");if(!s)return[];u=u||{};var f=1,p=1;function d(e){var n=e.match(t);n&&(f+=n.length);var r=e.lastIndexOf("\n");p=~r?e.length-r:p+e.length}function h(){var e={line:f,column:p};return function(t){return t.position=new m(e),x(),t}}function m(e){this.start=e,this.end={line:f,column:p},this.source=u.source}function g(e){var t=new Error(u.source+":"+f+":"+p+": "+e);if(t.reason=e,t.filename=u.source,t.line=f,t.column=p,t.source=s,!u.silent)throw t}function y(e){var t=e.exec(s);if(t){var n=t[0];return d(n),s=s.slice(n.length),t}}function x(){y(n)}function k(e){var t;for(e=e||[];t=v();)!1!==t&&e.push(t);return e}function v(){var e=h();if("/"==s.charAt(0)&&"*"==s.charAt(1)){for(var t=2;a!=s.charAt(t)&&("*"!=s.charAt(t)||"/"!=s.charAt(t+1));)++t;if(t+=2,a===s.charAt(t-1))return g("End of comment missing");var n=s.slice(2,t-2);return p+=2,d(n),s=s.slice(t),p+=2,e({type:"comment",comment:n})}}function b(){var t=h(),n=y(r);if(n){if(v(),!y(o))return g("property missing ':'");var s=y(i),u=t({type:"declaration",property:c(n[0].replace(e,a)),value:s?c(s[0].replace(e,a)):a});return y(l),u}}return m.prototype.content=s,x(),function(){var e,t=[];for(k(t);e=b();)!1!==e&&(t.push(e),k(t));return t}()}}function we(){if(ke)return ve;ke=1;var e=ve&&ve.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ve,"__esModule",{value:!0}),ve.default=function(e,n){let r=null;if(!e||"string"!=typeof e)return r;const o=(0,t.default)(e),i="function"==typeof n;return o.forEach(e=>{if("declaration"!==e.type)return;const{property:t,value:o}=e;i?n(t,o,e):o&&(r=r||{},r[t]=o)}),r};const t=e(be());return ve}var Se,Ce,Ee,Ie={};function Te(){if(Se)return Ie;Se=1,Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,i=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};return Ie.camelCase=function(s,a){return void 0===a&&(a={}),function(t){return!t||n.test(t)||e.test(t)}(s)?s:(s=s.toLowerCase(),(s=a.reactCompat?s.replace(o,l):s.replace(r,l)).replace(t,i))},Ie}function Pe(){if(Ee)return Ce;Ee=1;var e=(Ce&&Ce.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(we()),t=Te();function n(n,r){var o={};return n&&"string"==typeof n?((0,e.default)(n,function(e,n){e&&n&&(o[(0,t.camelCase)(e,r)]=n)}),o):o}return n.default=n,Ce=n}const Ae=p(Pe()),De=Fe("end"),Le=Fe("start");function Fe(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function ze(e){return e&&"object"==typeof e?"position"in e||"type"in e?Oe(e.position):"start"in e||"end"in e?Oe(e):"line"in e||"column"in e?Me(e):"":""}function Me(e){return Re(e&&e.line)+":"+Re(e&&e.column)}function Oe(e){return Me(e&&e.start)+"-"+Me(e&&e.end)}function Re(e){return e&&"number"==typeof e?e:1}class _e extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",o={},i=!1;if(t&&(o="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!o.cause&&e&&(i=!0,r=e.message,o.cause=e),!o.ruleId&&!o.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?o.ruleId=n:(o.source=n.slice(0,e),o.ruleId=n.slice(e+1))}if(!o.place&&o.ancestors&&o.ancestors){const e=o.ancestors[o.ancestors.length-1];e&&(o.place=e.position)}const l=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=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=l?l.line:void 0,this.name=ze(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=i&&o.cause&&"string"==typeof o.cause.stack?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}_e.prototype.file="",_e.prototype.name="",_e.prototype.reason="",_e.prototype.message="",_e.prototype.stack="",_e.prototype.column=void 0,_e.prototype.line=void 0,_e.prototype.ancestors=void 0,_e.prototype.cause=void 0,_e.prototype.fatal=void 0,_e.prototype.place=void 0,_e.prototype.ruleId=void 0,_e.prototype.source=void 0;const Ne={}.hasOwnProperty,je=new Map,Be=/[A-Z]/g,He=new Set(["table","tbody","thead","tfoot","tr"]),Ue=new Set(["td","th"]),Ve="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function qe(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(o=ge,e.schema=o),e.ancestors.push(t);const i=Ke(e,t.tagName,!1),l=function(e,t){const n={};let r,o;for(o in t.properties)if("children"!==o&&Ne.call(t.properties,o)){const i=Ye(e,o,t.properties[o]);if(i){const[o,l]=i;e.tableCellAlignToStyle&&"align"===o&&"string"==typeof l&&Ue.has(t.tagName)?r=l:n[o]=l}}return r&&((n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r),n}(e,t);let s=Qe(e,t);return He.has(t.tagName)&&(s=s.filter(function(e){return"string"!=typeof e||!("object"==typeof(t=e)?"text"===t.type&&R(t.value):R(t));var t})),We(e,l,i,t),$e(l,s),e.ancestors.pop(),e.schema=r,e.create(t,i,l,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return e.evaluater.evaluateExpression(n.expression)}Xe(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.name&&"html"===r.space&&(o=ge,e.schema=o),e.ancestors.push(t);const i=null===t.name?e.Fragment:Ke(e,t.name,!0),l=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0].expression.properties[0];Object.assign(n,e.evaluater.evaluateExpression(t.argument))}else Xe(e,t.position);else{const o=r.name;let i;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];i=e.evaluater.evaluateExpression(t.expression)}else Xe(e,t.position);else i=null===r.value||r.value;n[o]=i}return n}(e,t),s=Qe(e,t);return We(e,l,i,t),$e(l,s),e.ancestors.pop(),e.schema=r,e.create(t,i,l,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Xe(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return $e(r,Qe(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function We(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function $e(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Qe(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:je;for(;++r<t.children.length;){const i=t.children[r];let l;if(e.passKeys){const e="element"===i.type?i.tagName:"mdxJsxFlowElement"===i.type||"mdxJsxTextElement"===i.type?i.name:void 0;if(e){const t=o.get(e)||0;l=e+"-"+t,o.set(e,t+1)}}const s=qe(e,i,l);void 0!==s&&n.push(s)}return n}function Ye(e,t,n){const r=function(e,t){const n=j(t);let r=t,o=B;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&pe.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(fe,he);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!fe.test(e)){let n=e.replace(ue,de);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=Z}return new o(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e){const t={};return(""===e[e.length-1]?[...e,""]:e).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()}(n):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return Ae(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const t=n,r=new _e("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:t,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=Ve+"#cannot-parse-style-attribute",r}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)Ne.call(e,n)&&(t[Je(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?ce[r.property]||r.property:r.attribute,n]}}function Ke(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,o=-1;for(;++o<e.length;){const t=M(e[o])?{type:"Identifier",name:e[o]}:{type:"Literal",value:e[o]};n=n?{type:"MemberExpression",object:n,property:t,computed:Boolean(o&&"Literal"===t.type),optional:!1}:t}r=n}else r=M(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){const t=r.value;return Ne.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);Xe(e)}function Xe(e,t){const n=new _e("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=Ve+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Je(e){let t=e.replace(Be,Ze);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function Ze(e){return"-"+e.toLowerCase()}const Ge={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"]},et={};function tt(e,t){return nt(e,"boolean"!=typeof et.includeImageAlt||et.includeImageAlt,"boolean"!=typeof et.includeHtml||et.includeHtml)}function nt(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return rt(e.children,t,n)}return Array.isArray(e)?rt(e,t,n):""}function rt(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=nt(e[o],t,n);return r.join("")}const ot=document.createElement("i");function it(e){const t="&"+e+";";ot.innerHTML=t;const n=ot.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}function lt(e,t,n,r){const o=e.length;let i,l=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);l<r.length;)i=r.slice(l,l+1e4),i.unshift(t,0),e.splice(...i),l+=1e4,t+=1e4}function st(e,t){return e.length>0?(lt(e,e.length,0,t),e):t}const at={}.hasOwnProperty;function ct(e){const t={};let n=-1;for(;++n<e.length;)ut(t,e[n]);return t}function ut(e,t){let n;for(n in t){const r=(at.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let i;if(o)for(i in o){at.call(r,i)||(r[i]=[]);const e=o[i];ft(r[i],Array.isArray(e)?e:e?[e]:[])}}}function ft(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);lt(e,0,0,r)}function pt(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}function dt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ht=It(/[A-Za-z]/),mt=It(/[\dA-Za-z]/),gt=It(/[#-'*+\--9=?A-Z^-~]/);function yt(e){return null!==e&&(e<32||127===e)}const xt=It(/\d/),kt=It(/[\dA-Fa-f]/),vt=It(/[!-/:-@[-`{-~]/);function bt(e){return null!==e&&e<-2}function wt(e){return null!==e&&(e<0||32===e)}function St(e){return-2===e||-1===e||32===e}const Ct=It(new RegExp("\\p{P}|\\p{S}","u")),Et=It(/\s/);function It(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function Tt(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const i=e.charCodeAt(n);let l="";if(37===i&&mt(e.charCodeAt(n+1))&&mt(e.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(l=String.fromCharCode(i));else if(i>55295&&i<57344){const t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(l=String.fromCharCode(i,t),o=1):l="�"}else l=String.fromCharCode(i);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+o+1,l=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function Pt(e,t,n,r){const o=r?r-1:1/0;let i=0;return function(r){return St(r)?(e.enter(n),l(r)):t(r)};function l(r){return St(r)&&i++<o?(e.consume(r),l):(e.exit(n),t(r))}}function At(e,t,n,r,o,i){let l=0;return function(t){return St(t)?(e.enter(r),s(t)):a(t)};function s(t){return St(t)&&l<i?(e.consume(t),l++,s):(e.exit(r),a(t))}function a(e){return l>=o?t(e):n(e)}}const Dt={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,function(n){if(null!==n)return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Pt(e,t,"linePrefix");e.consume(n)},function(t){return e.enter("paragraph"),r(t)});let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):bt(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),o)}}};let Lt=class{constructor(){this.index=new Map,this.map=[]}add(e,t,n){Ft(this,e,t,n,!1)}addBefore(e,t,n){Ft(this,e,t,n,!0)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(const t of r)e.push(t);r=n.pop()}this.map.length=0,this.index.clear()}};function Ft(e,t,n,r,o){if(0===n&&0===r.length)return;const i=e.index.get(t);if(i)return i[1]+=n,void(o?(r.push(...i[2]),i[2]=r):i[2].push(...r));const l=[t,n,r];e.map.push(l),e.index.set(t,l)}const zt={tokenize:function(e){const t=this,n=[];let r,o,i,l=0;return s;function s(r){if(l<n.length){const o=n[l];return t.containerState=o[1],e.attempt(o[0].continuation,a,c)(r)}return c(r)}function a(e){if(l++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&x();const n=t.events.length;let o,i=n;for(;i--;)if("exit"===t.events[i][0]&&"chunkFlow"===t.events[i][1].type){o=t.events[i][1].end;break}y(l);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;const a=new Lt;return a.add(i+1,0,t.events.slice(n)),a.add(n,s-n,[]),a.consume(t.events),c(e)}return s(e)}function c(o){if(l===n.length){if(!r)return p(o);if(r.currentConstruct&&r.currentConstruct.concrete)return h(o);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Mt,u,f)(o)}function u(e){return r&&x(),y(l),p(e)}function f(e){return t.parser.lazy[t.now().line]=l!==n.length,i=t.now().offset,h(e)}function p(n){return t.containerState={},e.attempt(Mt,d,h)(n)}function d(e){return l++,n.push([t.currentConstruct,t.containerState]),p(e)}function h(n){return null===n?(r&&x(),y(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:o}),m(n))}function m(n){return null===n?(g(e.exit("chunkFlow"),!0),y(0),void e.consume(n)):bt(n)?(e.consume(n),g(e.exit("chunkFlow")),l=0,t.interrupt=void 0,s):(e.consume(n),m)}function g(e,n){const s=t.sliceStream(e);if(n&&s.push(null),e.previous=o,o&&(o.next=e),o=e,r.defineSkip(e.start),r.write(s),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<i&&(!r.events[e][1].end||r.events[e][1].end.offset>i))return;const n=t.events.length;let o,s,a=n;for(;a--;)if("exit"===t.events[a][0]&&"chunkFlow"===t.events[a][1].type){if(o){s=t.events[a][1].end;break}o=!0}for(y(l),e=n;e<t.events.length;)t.events[e][1].end={...s},e++;const c=new Lt;c.add(a+1,0,t.events.slice(n)),c.add(n,e-n,[]),c.consume(t.events)}}function y(r){let o=n.length;for(;o-- >r;){const r=n[o];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function x(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},Mt={tokenize:function(e,t,n){return Pt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function Ot(e){return null===e||wt(e)||Et(e)?1:Ct(e)?2:void 0}function Rt(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const i=e[o].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const _t={name:"attention",resolveAll:function(e,t){let n,r=-1;for(;++r<e.length;)if("enter"===e[r][0]&&"attentionSequence"===e[r][1].type&&e[r][1]._close){let o=r;for(;o--;)if("exit"===e[o][0]&&"attentionSequence"===e[o][1].type&&e[o][1]._open&&t.sliceSerialize(e[o][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[o][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[o][1].end.offset-e[o][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;const i=e[o][1].end.offset-e[o][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1,l={...e[o][1].end},s={...e[r][1].start};Nt(l,-i),Nt(s,i);const a={type:i>1?"strongSequence":"emphasisSequence",start:l,end:{...e[o][1].end}},c={type:i>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:s},u={type:i>1?"strongText":"emphasisText",start:{...e[o][1].end},end:{...e[r][1].start}},f={type:i>1?"strong":"emphasis",start:{...a.start},end:{...c.end}};e[o][1].end={...a.start},e[r][1].start={...c.end},n=[],e[o][1].end.offset-e[o][1].start.offset&&(n=st(n,[["enter",e[o][1],t],["exit",e[o][1],t]])),n=st(n,[["enter",f,t],["enter",a,t],["exit",a,t],["enter",u,t]]),n=st(n,Rt(t.parser.constructs.insideSpan.null,e.slice(o+1,r),t)),n=st(n,[["exit",u,t],["enter",c,t],["exit",c,t],["exit",f,t]]);let p=0;e[r][1].end.offset-e[r][1].start.offset&&(p=2,n=st(n,[["enter",e[r][1],t],["exit",e[r][1],t]])),lt(e,o-1,r-o+3,n),r=o+n.length-p-2;break}}for(r=-1;++r<e.length;)"attentionSequence"===e[r][1].type&&(e[r][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=Ot(r);let i;return function(t){return i=t,e.enter("attentionSequence"),l(t)};function l(s){if(s===i)return e.consume(s),l;const a=e.exit("attentionSequence"),c=Ot(s),u=!c||2===c&&o||n.includes(s)&&42!==s&&95!==s,f=!o||2===o&&c||n.includes(r)&&42!==r&&95!==r;return a._open=Boolean(42===i?u:u&&(o||!f)),a._close=Boolean(42===i?f:f&&(c||!u)),t(s)}}};function Nt(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const jt={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(t){return ht(t)?(e.consume(t),i):64===t?n(t):a(t)}function i(e){return 43===e||45===e||46===e||mt(e)?(r=1,l(e)):a(e)}function l(t){return 58===t?(e.consume(t),r=0,s):(43===t||45===t||46===t||mt(t))&&r++<32?(e.consume(t),l):(r=0,a(t))}function s(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||yt(r)?n(r):(e.consume(r),s)}function a(t){return 64===t?(e.consume(t),c):gt(t)?(e.consume(t),a):n(t)}function c(e){return mt(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):f(n)}function f(t){if((45===t||mt(t))&&r++<63){const n=45===t?f:u;return e.consume(t),n}return n(t)}}},Bt={partial:!0,tokenize:function(e,t,n){return function(t){return St(t)?Pt(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||bt(e)?t(e):n(e)}}},Ht={continuation:{tokenize:function(e,t,n){const r=this;return function(t){return St(t)?Pt(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):o(t)};function o(r){return e.attempt(Ht,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return n(t)};function o(n){return St(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}},Ut={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return vt(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},Vt={name:"characterReference",tokenize:function(e,t,n){const r=this;let o,i,l=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),a):(e.enter("characterReferenceValue"),o=31,i=mt,c(t))}function a(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,i=kt,c):(e.enter("characterReferenceValue"),o=7,i=xt,c(t))}function c(s){if(59===s&&l){const o=e.exit("characterReferenceValue");return i!==mt||it(r.sliceSerialize(o))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return i(s)&&l++<o?(e.consume(s),c):n(s)}}},qt={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},Wt={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,o={partial:!0,tokenize:function(e,t,n){let o=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l};function l(t){return e.enter("codeFencedFence"),St(t)?Pt(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):a(t)}function a(t){return t===i?(e.enter("codeFencedFenceSequence"),c(t)):n(t)}function c(t){return t===i?(o++,e.consume(t),c):o>=s?(e.exit("codeFencedFenceSequence"),St(t)?Pt(e,u,"whitespace")(t):u(t)):n(t)}function u(r){return null===r||bt(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let i,l=0,s=0;return function(t){return function(t){const n=r.events[r.events.length-1];return l=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,i=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),a(t)}(t)};function a(t){return t===i?(s++,e.consume(t),a):s<3?n(t):(e.exit("codeFencedFenceSequence"),St(t)?Pt(e,c,"whitespace")(t):c(t))}function c(n){return null===n||bt(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(qt,d,x)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||bt(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):St(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Pt(e,f,"whitespace")(t)):96===t&&t===i?n(t):(e.consume(t),u)}function f(t){return null===t||bt(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||bt(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===i?n(t):(e.consume(t),p)}function d(t){return e.attempt(o,x,h)(t)}function h(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return l>0&&St(t)?Pt(e,g,"linePrefix",l+1)(t):g(t)}function g(t){return null===t||bt(t)?e.check(qt,d,x)(t):(e.enter("codeFlowValue"),y(t))}function y(t){return null===t||bt(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),y)}function x(n){return e.exit("codeFenced"),t(n)}}},$t={name:"codeIndented",tokenize:function(e,t,n){return function(t){return e.enter("codeIndented"),At(e,r,n,"linePrefix",4,4)(t)};function r(t){return null===t?i(t):bt(t)?e.attempt(Qt,r,i)(t):(e.enter("codeFlowValue"),o(t))}function o(t){return null===t||bt(t)?(e.exit("codeFlowValue"),r(t)):(e.consume(t),o)}function i(n){return e.exit("codeIndented"),t(n)}}},Qt={partial:!0,tokenize:function(e,t,n){const r=this;return o;function o(l){return r.parser.lazy[r.now().line]?n(l):bt(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):At(e,t,i,"linePrefix",4,4)(l)}function i(e){return bt(e)?o(e):n(e)}}},Yt={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,o=3;if(!("lineEnding"!==e[o][1].type&&"space"!==e[o][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=o;++t<r;)if("codeTextData"===e[t][1].type){e[o][1].type="codeTextPadding",e[r][1].type="codeTextPadding",o+=2,r-=2;break}for(t=o-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,o,i=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),l(t)};function l(t){return 96===t?(e.consume(t),i++,l):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):96===t?(o=e.enter("codeTextSequence"),r=0,c(t)):bt(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),a(t))}function a(t){return null===t||32===t||96===t||bt(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),a)}function c(n){return 96===n?(e.consume(n),r++,c):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(o.type="codeTextData",a(n))}}};class Kt{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=null==t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const o=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&Xt(this.left,n),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),Xt(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Xt(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);Xt(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);Xt(this.left,t.reverse())}}}function Xt(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 Jt(e){const t={};let n,r,o,i,l,s,a,c=-1;const u=new Kt(e);for(;++c<u.length;){for(;c in t;)c=t[c];if(n=u.get(c),c&&"chunkFlow"===n[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&(s=n[1]._tokenizer.events,o=0,o<s.length&&"lineEndingBlank"===s[o][1].type&&(o+=2),o<s.length&&"content"===s[o][1].type))for(;++o<s.length&&"content"!==s[o][1].type;)"chunkText"===s[o][1].type&&(s[o][1]._isInFirstContentOfListItem=!0,o++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,Zt(u,c)),c=t[c],a=!0);else if(n[1]._container){for(o=c,r=void 0;o--;)if(i=u.get(o),"lineEnding"===i[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(r&&(u.get(r)[1].type="lineEndingBlank"),i[1].type="lineEnding",r=o);else if("linePrefix"!==i[1].type&&"listItemIndent"!==i[1].type)break;r&&(n[1].end={...u.get(r)[1].start},l=u.slice(r,c),l.unshift(n),u.splice(r,c-r+1,l))}}return lt(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!a}function Zt(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const i=[];let l=n._tokenizer;l||(l=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const s=l.events,a=[],c={};let u,f,p=-1,d=n,h=0,m=0;const g=[m];for(;d;){for(;e.get(++o)[1]!==d;);i.push(o),d._tokenizer||(u=r.sliceStream(d),d.next||u.push(null),f&&l.defineSkip(d.start),d._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(u),d._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),f=d,d=d.next}for(d=n;++p<s.length;)"exit"===s[p][0]&&"enter"===s[p-1][0]&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(m=p+1,g.push(m),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(l.events=[],d?(d._tokenizer=void 0,d.previous=void 0):g.pop(),p=g.length;p--;){const t=s.slice(g[p],g[p+1]),n=i.pop();a.push([n,n+t.length-1]),e.splice(n,2,t)}for(a.reverse(),p=-1;++p<a.length;)c[h+a[p][0]]=h+a[p][1],h+=a[p][1]-a[p][0]-1;return c}const Gt={resolve:function(e){return Jt(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?o(t):bt(t)?e.check(en,i,o)(t):(e.consume(t),r)}function o(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function i(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},en={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Pt(e,o,"linePrefix")};function o(o){if(null===o||bt(o))return n(o);const i=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}};function tn(e,t,n,r,o,i,l,s,a){const c=a||Number.POSITIVE_INFINITY;let u=0;return function(t){return 60===t?(e.enter(r),e.enter(o),e.enter(i),e.consume(t),e.exit(i),f):null===t||32===t||41===t||yt(t)?n(t):(e.enter(r),e.enter(l),e.enter(s),e.enter("chunkString",{contentType:"string"}),h(t))};function f(n){return 62===n?(e.enter(i),e.consume(n),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(s),f(t)):null===t||60===t||bt(t)?n(t):(e.consume(t),92===t?d:p)}function d(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function h(o){return u||null!==o&&41!==o&&!wt(o)?u<c&&40===o?(e.consume(o),u++,h):41===o?(e.consume(o),u--,h):null===o||32===o||40===o||yt(o)?n(o):(e.consume(o),92===o?m:h):(e.exit("chunkString"),e.exit(s),e.exit(l),e.exit(r),t(o))}function m(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function nn(e,t,n,r,o,i){const l=this;let s,a=0;return function(t){return e.enter(r),e.enter(o),e.consume(t),e.exit(o),e.enter(i),c};function c(f){return a>999||null===f||91===f||93===f&&!s||94===f&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?n(f):93===f?(e.exit(i),e.enter(o),e.consume(f),e.exit(o),e.exit(r),t):bt(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(f))}function u(t){return null===t||91===t||93===t||bt(t)||a++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!St(t)),92===t?f:u)}function f(t){return 91===t||92===t||93===t?(e.consume(t),a++,u):u(t)}}function rn(e,t,n,r,o,i){let l;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(o),e.consume(t),e.exit(o),l=40===t?41:t,s):n(t)};function s(n){return n===l?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(i),a(n))}function a(t){return t===l?(e.exit(i),s(l)):null===t?n(t):bt(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Pt(e,a,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===l||null===t||bt(t)?(e.exit("chunkString"),a(t)):(e.consume(t),92===t?u:c)}function u(t){return t===l||92===t?(e.consume(t),c):c(t)}}function on(e,t){let n;return function r(o){return bt(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r):St(o)?Pt(e,r,n?"linePrefix":"lineSuffix")(o):t(o)}}const ln={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(t){return e.enter("definition"),function(t){return nn.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function i(t){return o=dt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),l):n(t)}function l(t){return wt(t)?on(e,s)(t):s(t)}function s(t){return tn(e,a,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function a(t){return e.attempt(sn,c,c)(t)}function c(t){return St(t)?Pt(e,u,"whitespace")(t):u(t)}function u(i){return null===i||bt(i)?(e.exit("definition"),r.parser.defined.push(o),t(i)):n(i)}}},sn={partial:!0,tokenize:function(e,t,n){return function(t){return wt(t)?on(e,r)(t):n(t)};function r(t){return rn(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return St(t)?Pt(e,i,"whitespace")(t):i(t)}function i(e){return null===e||bt(e)?t(e):n(e)}}},an={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return bt(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},cn={name:"headingAtx",resolve:function(e,t){let n=e.length-2,r=3;if("whitespace"===e[r][1].type&&(r+=2),n-2>r&&"whitespace"===e[n][1].type&&(n-=2),"atxHeadingSequence"===e[n][1].type&&(r===n-1||n-4>r&&"whitespace"===e[n-2][1].type)&&(n-=r+1===n?2:4),n>r){const o={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"};lt(e,r,n-r+1,[["enter",o,t],["enter",i,t],["exit",i,t],["exit",o,t]])}return e},tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),o(t)}(t)};function o(t){return 35===t&&r++<6?(e.consume(t),o):null===t||wt(t)?(e.exit("atxHeadingSequence"),i(t)):n(t)}function i(n){return 35===n?(e.enter("atxHeadingSequence"),l(n)):null===n||bt(n)?(e.exit("atxHeading"),t(n)):St(n)?Pt(e,i,"whitespace")(n):(e.enter("atxHeadingText"),s(n))}function l(t){return 35===t?(e.consume(t),l):(e.exit("atxHeadingSequence"),i(t))}function s(t){return null===t||35===t||wt(t)?(e.exit("atxHeadingText"),i(t)):(e.consume(t),s)}}},un=["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"],fn=["pre","script","style","textarea"],pn={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){const r=this;let o,i,l,s,a;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),i=!0,d):63===s?(e.consume(s),o=3,r.interrupt?t:M):ht(s)?(e.consume(s),l=String.fromCharCode(s),h):n(s)}function u(i){return 45===i?(e.consume(i),o=2,f):91===i?(e.consume(i),o=5,s=0,p):ht(i)?(e.consume(i),o=4,r.interrupt?t:M):n(i)}function f(o){return 45===o?(e.consume(o),r.interrupt?t:M):n(o)}function p(o){return o==="CDATA[".charCodeAt(s++)?(e.consume(o),6===s?r.interrupt?t:I:p):n(o)}function d(t){return ht(t)?(e.consume(t),l=String.fromCharCode(t),h):n(t)}function h(s){if(null===s||47===s||62===s||wt(s)){const a=47===s,c=l.toLowerCase();return a||i||!fn.includes(c)?un.includes(l.toLowerCase())?(o=6,a?(e.consume(s),m):r.interrupt?t(s):I(s)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):i?g(s):y(s)):(o=1,r.interrupt?t(s):I(s))}return 45===s||mt(s)?(e.consume(s),l+=String.fromCharCode(s),h):n(s)}function m(o){return 62===o?(e.consume(o),r.interrupt?t:I):n(o)}function g(t){return St(t)?(e.consume(t),g):C(t)}function y(t){return 47===t?(e.consume(t),C):58===t||95===t||ht(t)?(e.consume(t),x):St(t)?(e.consume(t),y):C(t)}function x(t){return 45===t||46===t||58===t||95===t||mt(t)?(e.consume(t),x):k(t)}function k(t){return 61===t?(e.consume(t),v):St(t)?(e.consume(t),k):y(t)}function v(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),a=t,b):St(t)?(e.consume(t),v):w(t)}function b(t){return t===a?(e.consume(t),a=null,S):null===t||bt(t)?n(t):(e.consume(t),b)}function w(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||wt(t)?k(t):(e.consume(t),w)}function S(e){return 47===e||62===e||St(e)?y(e):n(e)}function C(t){return 62===t?(e.consume(t),E):n(t)}function E(t){return null===t||bt(t)?I(t):St(t)?(e.consume(t),E):n(t)}function I(t){return 45===t&&2===o?(e.consume(t),D):60===t&&1===o?(e.consume(t),L):62===t&&4===o?(e.consume(t),O):63===t&&3===o?(e.consume(t),M):93===t&&5===o?(e.consume(t),z):!bt(t)||6!==o&&7!==o?null===t||bt(t)?(e.exit("htmlFlowData"),T(t)):(e.consume(t),I):(e.exit("htmlFlowData"),e.check(dn,R,T)(t))}function T(t){return e.check(qt,P,R)(t)}function P(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),A}function A(t){return null===t||bt(t)?T(t):(e.enter("htmlFlowData"),I(t))}function D(t){return 45===t?(e.consume(t),M):I(t)}function L(t){return 47===t?(e.consume(t),l="",F):I(t)}function F(t){if(62===t){const n=l.toLowerCase();return fn.includes(n)?(e.consume(t),O):I(t)}return ht(t)&&l.length<8?(e.consume(t),l+=String.fromCharCode(t),F):I(t)}function z(t){return 93===t?(e.consume(t),M):I(t)}function M(t){return 62===t?(e.consume(t),O):45===t&&2===o?(e.consume(t),M):I(t)}function O(t){return null===t||bt(t)?(e.exit("htmlFlowData"),R(t)):(e.consume(t),O)}function R(n){return e.exit("htmlFlow"),t(n)}}},dn={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Bt,t,n)}}},hn={name:"htmlText",tokenize:function(e,t,n){const r=this;let o,i,l;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),a):47===t?(e.consume(t),v):63===t?(e.consume(t),x):ht(t)?(e.consume(t),S):n(t)}function a(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),i=0,d):ht(t)?(e.consume(t),y):n(t)}function c(t){return 45===t?(e.consume(t),p):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),f):bt(t)?(l=u,F(t)):(e.consume(t),u)}function f(t){return 45===t?(e.consume(t),p):u(t)}function p(e){return 62===e?L(e):45===e?f(e):u(e)}function d(t){return t==="CDATA[".charCodeAt(i++)?(e.consume(t),6===i?h:d):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),m):bt(t)?(l=h,F(t)):(e.consume(t),h)}function m(t){return 93===t?(e.consume(t),g):h(t)}function g(t){return 62===t?L(t):93===t?(e.consume(t),g):h(t)}function y(t){return null===t||62===t?L(t):bt(t)?(l=y,F(t)):(e.consume(t),y)}function x(t){return null===t?n(t):63===t?(e.consume(t),k):bt(t)?(l=x,F(t)):(e.consume(t),x)}function k(e){return 62===e?L(e):x(e)}function v(t){return ht(t)?(e.consume(t),b):n(t)}function b(t){return 45===t||mt(t)?(e.consume(t),b):w(t)}function w(t){return bt(t)?(l=w,F(t)):St(t)?(e.consume(t),w):L(t)}function S(t){return 45===t||mt(t)?(e.consume(t),S):47===t||62===t||wt(t)?C(t):n(t)}function C(t){return 47===t?(e.consume(t),L):58===t||95===t||ht(t)?(e.consume(t),E):bt(t)?(l=C,F(t)):St(t)?(e.consume(t),C):L(t)}function E(t){return 45===t||46===t||58===t||95===t||mt(t)?(e.consume(t),E):I(t)}function I(t){return 61===t?(e.consume(t),T):bt(t)?(l=I,F(t)):St(t)?(e.consume(t),I):C(t)}function T(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,P):bt(t)?(l=T,F(t)):St(t)?(e.consume(t),T):(e.consume(t),A)}function P(t){return t===o?(e.consume(t),o=void 0,D):null===t?n(t):bt(t)?(l=P,F(t)):(e.consume(t),P)}function A(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||wt(t)?C(t):(e.consume(t),A)}function D(e){return 47===e||62===e||wt(e)?C(e):n(e)}function L(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function F(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),z}function z(t){return St(t)?Pt(e,M,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):M(t)}function M(t){return e.enter("htmlTextData"),l(t)}}},mn={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){const e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&lt(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,o,i=e.length,l=0;for(;i--;){const t=e[i][1];if(n){if("link"===t.type||"labelLink"===t.type&&t._inactive)break;"enter"===e[i][0]&&"labelLink"===t.type&&(t._inactive=!0)}else if(r){if("enter"===e[i][0]&&("labelImage"===t.type||"labelLink"===t.type)&&!t._balanced&&(n=i,"labelLink"!==t.type)){l=2;break}}else"labelEnd"===t.type&&(r=i)}const s={type:"labelLink"===e[n][1].type?"link":"image",start:{...e[n][1].start},end:{...e[e.length-1][1].end}},a={type:"label",start:{...e[n][1].start},end:{...e[r][1].end}},c={type:"labelText",start:{...e[n+l+2][1].end},end:{...e[r-2][1].start}};return o=[["enter",s,t],["enter",a,t]],o=st(o,e.slice(n+1,n+l+3)),o=st(o,[["enter",c,t]]),o=st(o,Rt(t.parser.constructs.insideSpan.null,e.slice(n+l+4,r-3),t)),o=st(o,[["exit",c,t],e[r-2],e[r-1],["exit",a,t]]),o=st(o,e.slice(r+1)),o=st(o,[["exit",s,t]]),lt(e,n,e.length,o),e},tokenize:function(e,t,n){const r=this,o=r._labelStarts;let i,l;if(o){for(;o.length>0&&o[o.length-1]._balanced;)o.pop();i=o[o.length-1]}return function(t){return i?i._inactive?u(t):(l=r.parser.defined.includes(dt(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s):n(t)};function s(t){return 40===t?e.attempt(gn,c,l?c:u)(t):91===t?e.attempt(yn,c,l?a:u)(t):l?c(t):u(t)}function a(t){return e.attempt(xn,c,u)(t)}function c(e){return o.pop(),t(e)}function u(e){return i._balanced=!0,n(e)}}},gn={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return wt(t)?on(e,o)(t):o(t)}function o(t){return 41===t?c(t):tn(e,i,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return wt(t)?on(e,s)(t):c(t)}function l(e){return n(e)}function s(t){return 34===t||39===t||40===t?rn(e,a,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function a(t){return wt(t)?on(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},yn={tokenize:function(e,t,n){const r=this;return function(t){return nn.call(r,e,o,i,"reference","referenceMarker","referenceString")(t)};function o(e){return r.parser.defined.includes(dt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function i(e){return n(e)}}},xn={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},kn={name:"labelStartImage",resolveAll:mn.resolveAll,tokenize:function(e,t,n){const r=this;let o;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),o=e.exit("labelImage"),l):n(t)}function l(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(o),t(e))}}},vn={name:"labelStartLink",resolveAll:mn.resolveAll,tokenize:function(e,t,n){const r=this;let o;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),o=e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(o),t(e))}}},bn={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Pt(e,t,"linePrefix")}}},wn={name:"thematicBreak",tokenize:function(e,t,n){let r,o=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,i(e)}(t)};function i(i){return i===r?(e.enter("thematicBreakSequence"),l(i)):o>=3&&(null===i||bt(i))?(e.exit("thematicBreak"),t(i)):n(i)}function l(t){return t===r?(e.consume(t),o++,l):(e.exit("thematicBreakSequence"),St(t)?Pt(e,i,"whitespace")(t):i(t))}}},Sn={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Bt,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Pt(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!St(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(En,t,o)(n))});function o(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,Pt(e,e.attempt(Sn,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,o=r.events[r.events.length-1];let i=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,l=0;return function(t){const o=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!r.containerState.marker||t===r.containerState.marker:xt(t)){if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(wn,n,a)(t):a(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return n(t)};function s(t){return xt(t)&&++l<10?(e.consume(t),s):(!r.interrupt||l<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),a(t)):n(t)}function a(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(Bt,r.interrupt?n:c,e.attempt(Cn,f,u))}function c(e){return r.containerState.initialBlankLine=!0,i++,f(e)}function u(t){return St(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),f):n(t)}function f(n){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},Cn={partial:!0,tokenize:function(e,t,n){const r=this;return Pt(e,function(e){const o=r.events[r.events.length-1];return!St(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},En={partial:!0,tokenize:function(e,t,n){const r=this;return Pt(e,function(e){const o=r.events[r.events.length-1];return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},In={name:"setextUnderline",resolveTo:function(e,t){const n=new Lt;let r,o,i,l=e.length;for(;l--;)if("enter"===e[l][0]){if("content"===e[l][1].type){r=l;break}"paragraph"===e[l][1].type&&(o=l)}else"content"===e[l][1].type&&n.add(l,1,[]),i||"definition"!==e[l][1].type||(i=l);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",i?(n.add(o,0,[["enter",s,t]]),n.add(i+1,0,[["exit",e[r][1],t]]),e[r][1].end={...e[i][1].end}):e[r][1]=s,n.add(e.length,0,[["exit",s,t]]),n.consume(e),e},tokenize:function(e,t,n){const r=this;let o;return function(t){let l,s=r.events.length;for(;s--;)if("lineEnding"!==r.events[s][1].type&&"linePrefix"!==r.events[s][1].type&&"content"!==r.events[s][1].type){l="paragraph"===r.events[s][1].type;break}return r.parser.lazy[r.now().line]||!r.interrupt&&!l?n(t):(e.enter("setextHeadingLine"),o=t,function(t){return e.enter("setextHeadingLineSequence"),i(t)}(t))};function i(t){return t===o?(e.consume(t),i):(e.exit("setextHeadingLineSequence"),St(t)?Pt(e,l,"lineSuffix")(t):l(t))}function l(r){return null===r||bt(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}},Tn={tokenize:function(e){const t=this,n=e.attempt(Bt,function(r){if(null!==r)return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n;e.consume(r)},e.attempt(this.parser.constructs.flowInitial,r,Pt(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Gt,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}},Pn={resolveAll:Fn()},An=Ln("string"),Dn=Ln("text");function Ln(e){return{resolveAll:Fn("text"===e?zn:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],o=t.attempt(r,i,l);return i;function i(e){return a(e)?o(e):l(e)}function l(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return a(e)?(t.exit("data"),o(e)):(t.consume(e),s)}function a(e){if(null===e)return!0;const t=r[e];let o=-1;if(t)for(;++o<t.length;){const e=t[o];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function Fn(e){return function(t,n){let r,o=-1;for(;++o<=t.length;)void 0===r?t[o]&&"data"===t[o][1].type&&(r=o,o++):t[o]&&"data"===t[o][1].type||(o!==r+2&&(t[r][1].end=t[o-1][1].end,t.splice(r+2,o-r-2),o=r+2),r=void 0);return e?e(t,n):t}}function zn(e,t){const n=new Lt;let r=0;for(;++r<=e.length;)if((r===e.length||"lineEnding"===e[r][1].type)&&"data"===e[r-1][1].type){const o=e[r-1][1],i=t.sliceStream(o);let l,s=i.length,a=-1,c=0;for(;s--;){const e=i[s];if("string"==typeof e){for(a=e.length;32===e.charCodeAt(a-1);)c++,a--;if(a)break;a=-1}else if(-2===e)l=!0,c++;else if(-1!==e){s++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(c=0),c){const i={type:r===e.length||l||c<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?a:o.start._bufferIndex+a,_index:o.start._index+s,line:o.end.line,column:o.end.column-c,offset:o.end.offset-c},end:{...o.end}};o.end={...i.start},o.start.offset===o.end.offset?Object.assign(o,i):n.add(r,0,[["enter",i,t],["exit",i,t]])}r++}return n.consume(e),e}const Mn={42:Sn,43:Sn,45:Sn,48:Sn,49:Sn,50:Sn,51:Sn,52:Sn,53:Sn,54:Sn,55:Sn,56:Sn,57:Sn,62:Ht},On={91:ln},Rn={[-2]:$t,[-1]:$t,32:$t},_n={35:cn,42:wn,45:[In,wn],60:pn,61:In,95:wn,96:Wt,126:Wt},Nn={38:Vt,92:Ut},jn={[-5]:bn,[-4]:bn,[-3]:bn,33:kn,38:Vt,42:_t,60:[jt,hn],91:vn,92:[an,Ut],93:mn,95:_t,96:Yt},Bn={null:[_t,Pn]},Hn=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:On,disable:{null:[]},document:Mn,flow:_n,flowInitial:Rn,insideSpan:Bn,string:Nn,text:jn},Symbol.toStringTag,{value:"Module"}));function Un(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 o={},i=[];let l=[],s=[];const a={attempt:m(function(e,t){g(e,t.from)}),check:m(h),consume:function(e){bt(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,y()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=e},enter:function(e,t){const n=t||{};return n.type=e,n.start=p(),c.events.push(["enter",n,c]),s.push(n),n},exit:function(e){const t=s.pop();return t.end=p(),c.events.push(["exit",t,c]),t},interrupt:m(h,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){o[e.line]=e.column,y()},events:[],now:p,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const i=e[n];let l;if("string"==typeof i)l=i;else switch(i){case-5:l="\r";break;case-4:l="\n";break;case-3:l="\r\n";break;case-2:l=t?" ":"\t";break;case-1:if(!t&&o)continue;l=" ";break;default:l=String.fromCharCode(i)}o=-2===i,r.push(l)}return r.join("")}(f(e),t)},sliceStream:f,write:function(e){return l=st(l,e),function(){for(;r._index<l.length;){const e=l[r._index];if("string"==typeof e){const t=r._index;for(r._bufferIndex<0&&(r._bufferIndex=0);r._index===t&&r._bufferIndex<e.length;)d(e.charCodeAt(r._bufferIndex))}else d(e)}}(),null!==l[l.length-1]?[]:(g(t,0),c.events=Rt(i,c.events,c),c.events)}};let u=t.tokenize.call(c,a);return t.resolveAll&&i.push(t),c;function f(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex;let l;if(n===o)l=[e[n].slice(r,i)];else{if(l=e.slice(n,o),r>-1){const e=l[0];"string"==typeof e?l[0]=e.slice(r):l.shift()}i>0&&l.push(e[o].slice(0,i))}return l}(l,e)}function p(){const{_bufferIndex:e,_index:t,line:n,column:o,offset:i}=r;return{_bufferIndex:e,_index:t,line:n,column:o,offset:i}}function d(e){u=u(e)}function h(e,t){t.restore()}function m(e,t){return function(n,o,i){let l,u,f,d;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):(h=n,function(e){const t=null!==e&&h[e],n=null!==e&&h.null;return m([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});var h;function m(e){return l=e,u=0,0===e.length?i:g(e[u])}function g(e){return function(n){return d=function(){const e=p(),t=c.previous,n=c.currentConstruct,o=c.events.length,i=Array.from(s);return{from:o,restore:function(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=o,s=i,y()}}}(),f=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.includes(e.name)?k():e.tokenize.call(t?Object.assign(Object.create(c),t):c,a,x,k)(n)}}function x(t){return e(f,d),o}function k(e){return d.restore(),++u<l.length?g(l[u]):i}}}function g(e,t){e.resolveAll&&!i.includes(e)&&i.push(e),e.resolve&&lt(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function y(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}const Vn=/[\0\t\n\r]/g,qn=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Wn(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return pt(n.slice(t?2:1),t?16:10)}return it(n)||e}const $n={}.hasOwnProperty;function Qn(e,t,n){return t&&"object"==typeof t&&(n=t,t=void 0),function(e){const t={afterExit:[],beforeEnter:[],transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(k),autolinkProtocol:f,autolinkEmail:f,atxHeading:i(g),blockQuote:i(function(){return{type:"blockquote",children:[],position:void 0}}),characterEscape:f,characterReference:f,codeFenced:i(m),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:i(m,l),codeText:i(function(){return{type:"inlineCode",value:"",position:void 0}},l),codeTextData:f,data:f,codeFlowValue:f,definition:i(function(){return{type:"definition",identifier:"",label:null,title:null,url:"",position:void 0}}),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:i(function(){return{type:"emphasis",children:[],position:void 0}}),hardBreakEscape:i(y),hardBreakTrailing:i(y),htmlFlow:i(x,l),htmlFlowData:f,htmlText:i(x,l),htmlTextData:f,image:i(function(){return{type:"image",title:null,url:"",alt:null,position:void 0}}),label:l,link:i(k),listItem:i(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[],position:void 0}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:i(v,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:i(v),paragraph:i(function(){return{type:"paragraph",children:[],position:void 0}}),reference:function(){this.data.referenceType="collapsed"},referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:i(g),strong:i(function(){return{type:"strong",children:[],position:void 0}}),thematicBreak:i(function(){return{type:"thematicBreak",position:void 0}})},exit:{atxHeading:a(),atxHeadingSequence:function(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}},autolink:a(),autolinkEmail:function(e){p.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){p.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:a(),characterEscapeValue:p,characterReferenceMarkerHexadecimal:h,characterReferenceMarkerNumeric:h,characterReferenceValue:function(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;n?(r=pt(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0):r=it(t);this.stack[this.stack.length-1].value+=r},characterReference:function(e){this.stack.pop().position.end=Yn(e.end)},codeFenced:a(function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){const e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){const e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:p,codeIndented:a(function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:a(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:p,data:p,definition:a(),definitionDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=dt(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:a(),hardBreakEscape:a(d),hardBreakTrailing:a(d),htmlFlow:a(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:p,htmlText:a(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:p,image:a(function(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t},labelText:function(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(qn,Wn)}(t),n.identifier=dt(t).toLowerCase()},lineEnding:function(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak)return n.children[n.children.length-1].position.end=Yn(e.end),void(this.data.atHardBreak=void 0);!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(f.call(this,e),p.call(this,e))},link:a(function(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:a(),listOrdered:a(),listUnordered:a(),paragraph:a(),referenceString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=dt(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:a(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:a(),thematicBreak:a()}};Kn(t,(e||{}).mdastExtensions||[]);const n={};return function(e){let i={type:"root",children:[],position:void 0};const a={stack:[i],tokenStack:[],config:t,enter:s,exit:c,buffer:l,resume:u,data:n},f=[],p=[];let d=-1;for(;++d<e.length;)p.push(e[d]),("listOrdered"===e[d][1].type||"listUnordered"===e[d][1].type)&&("enter"===e[d][0]?f.push(p.length-1):o(p,f.pop()));for(e=p,d=-1;++d<e.length;){const n=t[e[d][0]];"enter"===e[d][0]&&t.beforeEnter.length>0&&r(t.beforeEnter,{...a,sliceSerialize:e[d][2].sliceSerialize},e[d][1]),$n.call(n,e[d][1].type)&&n[e[d][1].type].call({...a,sliceSerialize:e[d][2].sliceSerialize},e[d][1]),"exit"===e[d][0]&&t.afterExit.length>0&&r(t.afterExit,{...a,sliceSerialize:e[d][2].sliceSerialize},e[d][1])}if(a.tokenStack.length>0){const e=a.tokenStack[a.tokenStack.length-1];(e[1]||Jn).call(a,void 0,e[0])}for(i.position={start:Yn(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Yn(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)i=t.transforms[d](i)||i;return i};function r(e,t,n){let r=-1;for(;++r<e.length;)e[r].call(t,n)}function o(e,t){const n=e.length-1;let r,o,i,l,s=t-1,a=-1,c=!1;const u=[];for(;++s<=n;){const t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?a++:a--,l=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||l||a||i||(i=s),l=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:l=void 0}if(!a&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===a&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let n=s;for(o=void 0;n--;){const t=e[n];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;o&&(e[o][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",o=n}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}i&&(!o||i<o)&&(r._spread=!0),r.end=Object.assign({},o?e[o][1].start:t[1].end),u.push({at:o||s,event:["exit",r,t[2]]})}if("listItemPrefix"===t[1].type){const e={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=e,u.push({at:s,event:["enter",e,t[2]]}),i=void 0,l=!0}}}const f=e.splice(t);let p=0;for(s=-1;++s<f.length;){for(;p<u.length&&u[p].at===t+s;)e.push(u[p++].event);e.push(f[s])}e[t][1]._spread=c}function i(e,t){return function(n){s.call(this,e(n),n),t&&t.call(this,n)}}function l(){this.stack.push({type:"fragment",children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:Yn(t.start),end:void 0}}function a(e){return function(t){e&&e.call(this,t),c.call(this,t)}}function c(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+ze({start:e.start,end:e.end})+"): it’s not open");r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||Jn).call(this,e,r[0])),n.position.end=Yn(e.end)}function u(){return tt(this.stack.pop())}function f(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n={type:"text",value:"",position:void 0},n.position={start:Yn(e.start),end:void 0},t.push(n)),this.stack.push(n)}function p(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=Yn(e.end)}function d(){this.data.atHardBreak=!0}function h(e){this.data.characterReferenceType=e.type}function m(){return{type:"code",lang:null,meta:null,value:"",position:void 0}}function g(){return{type:"heading",depth:0,children:[],position:void 0}}function y(){return{type:"break",position:void 0}}function x(){return{type:"html",value:"",position:void 0}}function k(){return{type:"link",title:null,url:"",children:[],position:void 0}}function v(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[],position:void 0}}}(n)(function(e){for(;!Jt(e););return e}(function(e){const t={constructs:ct([Hn,...(e||{}).extensions||[]]),content:n(Dt),defined:[],document:n(zt),flow:n(Tn),lazy:{},string:n(An),text:n(Dn)};return t;function n(e){return function(n){return Un(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(o,i,l){o=n+("string"==typeof o?o.toString():new TextDecoder(i||void 0).decode(o));const s=[];let a=0;for(n="",r&&(65279===o.charCodeAt(0)&&a++,r=void 0);a<o.length;){Vn.lastIndex=a;const r=Vn.exec(o),i=r&&void 0!==r.index?r.index:o.length,l=o.charCodeAt(i);if(!r){n=o.slice(a);break}if(10===l&&a===i&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),a<i&&(s.push(o.slice(a,i)),t+=i-a),l){case 0:s.push(65533),t++;break;case 9:{const e=4*Math.ceil(t/4);for(s.push(-2);t++<e;)s.push(-1);break}case 10:s.push(-4),t=1;break;default:e=!0,t=1}a=i+1}return l&&(e&&s.push(-5),n&&s.push(n),s.push(null)),s}}()(e,t,!0))))}function Yn(e){return{line:e.line,column:e.column,offset:e.offset}}function Kn(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Kn(e,r):Xn(e,r)}}function Xn(e,t){let n;for(n in t)if($n.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"afterExit":case"beforeEnter":{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 Jn(e,t){if(e)throw new Error("Cannot close `"+e.type+"` ("+ze({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ze({start:t.start,end:t.end})+") is open");throw new Error("Cannot close document, a token (`"+t.type+"`, "+ze({start:t.start,end:t.end})+") is still open")}function Zn(e){const t=this;t.parser=function(n){return Qn(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Gn(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const o=e.all(t),i=o[0];i&&"text"===i.type?i.value="["+i.value:o.unshift({type:"text",value:"["});const l=o[o.length-1];return l&&"text"===l.type?l.value+=r:o.push({type:"text",value:r}),o}function er(e){const t=e.spread;return null==t?e.children.length>1:t}function tr(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const i=[];for(;r;)i.push(nr(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return i.push(nr(t.slice(o),o>0,!1)),i.join("")}function nr(e,t,n){let r=0,o=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(o-1);for(;9===t||32===t;)o--,t=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}const rr={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={},o=t.lang?t.lang.split(/\s+/):[];o.length>0&&(r.className=["language-"+o[0]]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=Tt(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let l,s=e.footnoteCounts.get(r);void 0===s?(s=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=i+1,s+=1,e.footnoteCounts.set(r,s);const a={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,a);const c={type:"element",tagName:"sup",properties:{},children:[a]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Gn(e,t);const o={src:Tt(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){const n={src:Tt(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(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)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Gn(e,t);const o={href:Tt(r.url||"")};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){const n={href:Tt(t.url)};null!==t.title&&void 0!==t.title&&(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)},listItem:function(e,t,n){const r=e.all(t),o=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=er(n[r])}return t}(n):er(t),i={},l=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const e=r[s];(o||0!==s||"element"!==e.type||"p"!==e.tagName)&&l.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||o?l.push(e):l.push(...e.children)}const a=r[r.length-1];a&&(o||"element"!==a.type||"p"!==a.tagName)&&l.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:i,children:l};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const n={},r=e.all(t);let o=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++o<r.length;){const e=r[o];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),o=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),o.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},i=Le(t.children[1]),l=De(t.children[t.children.length-1]);i&&l&&(r.position={start:i,end:l}),o.push(r)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,o=0===(r?r.indexOf(t):1)?"th":"td",i=n&&"table"===n.type?n.align:void 0,l=i?i.length:t.children.length;let s=-1;const a=[];for(;++s<l;){const n=t.children[s],r={},l=i?i[s]:void 0;l&&(r.align=l);let c={type:"element",tagName:o,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),a.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(a,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const n={type:"text",value:tr(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:or,yaml:or,definition:or,footnoteDefinition:or};function or(){}const{defineProperty:ir}=Object,lr="object"==typeof self?self:globalThis,sr=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new lr[e](t)},ar=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=o=>{if(e.has(o))return e.get(o);const[i,l]=t[o];switch(i){case 0:case-1:return n(l,o);case 1:{const e=n([],o);for(const t of l)e.push(r(t));return e}case 2:{const e=n({},o);for(const[t,n]of l){const o=r(t),i=r(n);"__proto__"===o?ir(e,o,{value:i,configurable:!0,enumerable:!0,writable:!0}):e[o]=i}return e}case 3:return n(new Date(l),o);case 4:{const{source:e,flags:t}=l;return n(new RegExp(e,t),o)}case 5:{const e=n(new Map,o);for(const[t,n]of l)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,o);for(const t of l)e.add(r(t));return e}case 7:{const{name:e,message:t}=l;return n("function"==typeof lr[e]?sr(e,t):new Error(t),o)}case 8:return n(BigInt(l),o);case"BigInt":return n(Object(BigInt(l)),o);case"ArrayBuffer":return n(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:e}=new Uint8Array(l);return n(new DataView(e),l)}case"-0":return-0}return n(sr(i,l),o)};return r})(new Map,e)(0),cr="",{toString:ur}={},{keys:fr,is:pr}=Object,dr=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=ur.call(e).slice(8,-1);switch(n){case"Array":return[1,cr];case"Object":return[2,cr];case"Date":return[3,cr];case"RegExp":return[4,cr];case"Map":return[5,cr];case"Set":return[6,cr];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:e instanceof Error?[7,e.name||"Error"]:[2,n]},hr=([e,t])=>0===e&&("function"===t||"symbol"===t),mr=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const o=(e,t)=>{const o=r.push(e)-1;return n.set(t,o),o},i=l=>{if(n.has(l))return n.get(l);let[s,a]=dr(l);switch(s){case 0:{let t=l;switch(a){case"bigint":s=8,t=l.toString();break;case"number":if(!l&&pr(l,-0))return r.push(["-0"])-1;break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+a);t=null;break;case"undefined":return o([-1],l)}return o([s,t],l)}case 1:{if(a){let e=l;return"DataView"===a?e=new Uint8Array(l.buffer):"ArrayBuffer"===a&&(e=new Uint8Array(l)),o([a,[...e]],l)}const e=[],t=o([s,e],l);for(const n of l)e.push(i(n));return t}case 2:{if(a)switch(a){case"BigInt":return o([a,l.toString()],l);case"Boolean":case"Number":case"String":return o([a,l.valueOf()],l)}if(t&&"toJSON"in l)return i(l.toJSON());const n=[],r=o([s,n],l);for(const t of fr(l))!e&&hr(dr(l[t]))||n.push([i(t),i(l[t])]);return r}case 3:return o([s,isNaN(l.getTime())?cr:l.toISOString()],l);case 4:{const{source:e,flags:t}=l;return o([s,{source:e,flags:t}],l)}case 5:{const t=[],n=o([s,t],l);for(const[r,o]of l)(e||!hr(dr(r))&&!hr(dr(o)))&&t.push([i(r),i(o)]);return n}case 6:{const t=[],n=o([s,t],l);for(const r of l)!e&&hr(dr(r))||t.push(i(r));return n}}const{message:c}=l;return o([s,{name:a,message:c}],l)};return i})(!(t||n),!!t,new Map,r)(e),r},gr="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?ar(mr(e,t)):structuredClone(e):(e,t)=>ar(mr(e,t));function yr(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 xr(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const kr=function(e){if(null==e)return br;if("function"==typeof e)return vr(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=kr(e[n]);return vr(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):function(e){const t=e;return vr(function(n){const r=n;let o;for(o in e)if(r[o]!==t[o])return!1;return!0})}(e);if("string"==typeof e)return t=e,vr(function(e){return e&&e.type===t});var t;throw new Error("Expected function, string, or object as test")};function vr(e){return function(t,n,r){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function br(){return!0}const wr=[],Sr=!1,Cr="skip";function Er(e,t,n,r){if(!e||"object"!=typeof e)throw new Error("Unexpected value `"+e+"` for `tree`, expected node");let o,i,l,s,a=!0;if("function"==typeof n||n&&"object"==typeof n?(o=t,i=n,r&&(a=!1)):(i=t,n&&(a=!1)),"function"==typeof i)l=i;else{if(!i||"object"!=typeof i)throw new Error("Unexpected value `"+i+"` for `enter` or `visitors`, expected visitor or object with visitors");if(null===i.enter||void 0===i.enter);else{if("function"!=typeof i.enter)throw new Error("Unexpected value `"+i.enter+"` for `visitors.enter`, expected optional visitor");l=i.enter}if("function"!=typeof i.exit)throw new Error("Unexpected value `"+i.exit+"` for `visitors.exit`, expected visitor (pass a visitor directly if you only want an enter visitor)");s=i.exit}const c=kr(o),u=a?1:-1;!function e(t,n,r){const i=t&&"object"==typeof t?t:{};if("string"==typeof i.type){const e="string"==typeof i.tagName?i.tagName:"string"==typeof i.name?i.name:void 0;Object.defineProperty(f,"name",{value:"node ("+t.type+(e?"<"+e+">":"")+")"})}return f;function f(){const i=!o||c(t,n,r[r.length-1]||void 0);let f=wr;if(l&&i&&(f=Ir(l(t,r,n)),f[0]===Sr))return f;if("children"in t&&t.children){const n=t;if(n.children&&f[0]!==Cr){let t=(a?-1:n.children.length)+u;const o=[...r,n];for(;t>-1&&t<n.children.length;){const r=n.children[t],i=e(r,t,o)();if(i[0]===Sr)return i;t="number"==typeof i[1]?i[1]:t+u}}}if(s&&i){const e=Ir(s(t,r,n));if(e[0]===Cr)throw new Error("Unexpected value `"+e[0]+"` from `exit`, expected `CONTINUE`, `EXIT`, index, or nothing");if(e[0]===Sr||"number"==typeof e[1])return e}return f}}(e,void 0,[])()}function Ir(e){return Array.isArray(e)?e:"number"==typeof e?[!0,e]:null==e?wr:[e]}function Tr(e,t,n,r){let o,i;o=t,i=n,Er(e,void 0,"function"==typeof o?Pr(o):function(e){return e&&"object"==typeof e?{enter:"function"==typeof e.enter?Pr(e.enter):e.enter,exit:"function"==typeof e.exit?Pr(e.exit):e.exit}:e}(o),i)}function Pr(e){return function(t,n,r){return e(t,r,n[n.length-1])}}const Ar={}.hasOwnProperty,Dr={};function Lr(e,t){e.position&&(t.position=function(e){const t=Le(e),n=De(e);if(t&&n)return{start:t,end:n}}(e))}function Fr(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&o&&Object.assign(n.properties,gr(o)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function zr(e,t){const n=t.data||{},r=!("value"in t)||Ar.call(n,"hProperties")||Ar.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function Mr(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function Or(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function Rr(e,t){const n=function(e,t){const n=t||Dr,r=new Map,o=new Map,i=new Map,l={...rr,...n.handlers},s={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const o=s.one(n[r],e);if(o){if(r&&"break"===n[r-1].type&&(Array.isArray(o)||"text"!==o.type||(o.value=Or(o.value)),!Array.isArray(o)&&"element"===o.type)){const e=o.children[0];e&&"text"===e.type&&(e.value=Or(e.value))}Array.isArray(o)?t.push(...o):t.push(o)}}}return t},applyData:Fr,definitionById:r,footnoteById:o,footnoteCounts:i,footnoteOrder:[],handlers:l,one:function(e,t){const n=e.type,r=s.handlers[n];if(Ar.call(s.handlers,n)&&r)return r(s,e,t);if(s.options.passThrough&&s.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=gr(n);return r.children=s.all(e),r}return gr(e)}return(s.options.unknownHandler||zr)(s,e,t)},options:n,patch:Lr,wrap:Mr};return Tr(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:o,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),s}(e,t),r=n.one(e,void 0),o=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||yr,r=e.options.footnoteBackLabel||xr,o=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let a=-1;for(;++a<e.footnoteOrder.length;){const o=e.footnoteById.get(e.footnoteOrder[a]);if(!o)continue;const i=e.all(o),l=String(o.identifier).toUpperCase(),c=Tt(l.toLowerCase());let u=0;const f=[],p=e.footnoteCounts.get(l);for(;void 0!==p&&++u<=p;){f.length>0&&f.push({type:"text",value:" "});let e="string"==typeof n?n:n(a,u);"string"==typeof e&&(e={type:"text",value:e}),f.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(a,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const d=i[i.length-1];if(d&&"element"===d.type&&"p"===d.tagName){const e=d.children[d.children.length-1];e&&"text"===e.type?e.value+=" ":d.children.push({type:"text",value:" "}),d.children.push(...f)}else i.push(...f);const h={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(i,!0)};e.patch(o,h),s.push(h)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...gr(l),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&i.children.push({type:"text",value:"\n"},o),i}function _r(e,t){return e&&"run"in e?async function(n,r){const o=Rr(n,{file:r,...t});await e.run(o,r)}:function(n,r){return Rr(n,{file:r,...e||t})}}function Nr(e){if(e)throw e}var jr,Br;function Hr(){if(Br)return jr;Br=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},l=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return jr=function e(){var t,n,r,a,c,u,f=arguments[0],p=1,d=arguments.length,h=!1;for("boolean"==typeof f&&(h=f,f=arguments[1]||{},p=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});p<d;++p)if(null!=(t=arguments[p]))for(n in t)r=s(f,n),f!==(a=s(t,n))&&(h&&a&&(i(a)||(c=o(a)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&i(r)?r:{},l(f,{name:n,newValue:e(h,u,a)})):void 0!==a&&l(f,{name:n,newValue:a}));return f},jr}const Ur=p(Hr());function Vr(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}const qr=function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');Kr(e);let n,r=0,o=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let l=-1,s=t.length-1;for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else l<0&&(n=!0,l=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(o=i):(s=-1,o=l));return r===o?o=l:o<0&&(o=e.length),e.slice(r,o)},Wr=function(e){if(Kr(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},$r=function(e){Kr(e);let t,n=e.length,r=-1,o=0,i=-1,l=0;for(;n--;){const s=e.codePointAt(n);if(47!==s)r<0&&(t=!0,r=n+1),46===s?i<0?i=n:1!==l&&(l=1):i>-1&&(l=-1);else if(t){o=n+1;break}}return i<0||r<0||0===l||1===l&&i===r-1&&i===o+1?"":e.slice(i,r)},Qr=function(...e){let t,n=-1;for(;++n<e.length;)Kr(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){Kr(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,o="",i=0,l=-1,s=0,a=-1;for(;++a<=e.length;){if(a<e.length)n=e.codePointAt(a);else{if(47===n)break;n=47}if(47===n){if(l===a-1||1===s);else if(l!==a-1&&2===s){if(o.length<2||2!==i||46!==o.codePointAt(o.length-1)||46!==o.codePointAt(o.length-2))if(o.length>2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),l=a,s=0;continue}}else if(o.length>0){o="",i=0,l=a,s=0;continue}t&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(l+1,a):o=e.slice(l+1,a),i=a-l-1;l=a,s=0}else 46===n&&s>-1?s++:s=-1}return o}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},Yr="/";function Kr(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Xr=function(){return"/"};function Jr(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}const Zr=["history","path","basename","stem","extname","dirname"];class Gr{constructor(e){let t;t=e?Jr(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":Xr(),this.data={},this.history=[],this.messages=[];let n,r=-1;for(;++r<Zr.length;){const e=Zr[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)Zr.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?qr(this.path):void 0}set basename(e){to(e,"basename"),eo(e,"basename"),this.path=Qr(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?Wr(this.path):void 0}set dirname(e){no(this.basename,"dirname"),this.path=Qr(e||"",this.basename)}get extname(){return"string"==typeof this.path?$r(this.path):void 0}set extname(e){if(eo(e,"extname"),no(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Qr(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){Jr(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!Jr(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("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),to(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?qr(this.path,this.extname):void 0}set stem(e){to(e,"stem"),eo(e,"stem"),this.path=Qr(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new _e(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function eo(e,t){if(e&&e.includes(Yr))throw new Error("`"+t+"` cannot be a path: did not expect `"+Yr+"`")}function to(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function no(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const ro=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},oo={}.hasOwnProperty;class io extends ro{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=function(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function o(i,...l){const s=e[++n];let a=-1;if(i)r(i);else{for(;++a<t.length;)null!==l[a]&&void 0!==l[a]||(l[a]=t[a]);t=l,s?function(e,t){let n;return function(...t){const l=e.length>t.length;let s;l&&t.push(r);try{s=e.apply(this,t)}catch(i){if(l&&n)throw i;return r(i)}l||(s&&s.then&&"function"==typeof s.then?s.then(o,r):s instanceof Error?r(s):o(s))};function r(e,...r){n||(n=!0,t(e,...r))}function o(e){r(null,e)}}(s,o)(...l):r(null,...l)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){const e=new io;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(Ur(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(co("data",this.frozen),this.namespace[e]=t,this):oo.call(this.namespace,e)&&this.namespace[e]||void 0:e?(co("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=po(e),n=this.parser||this.Parser;return so("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),so("process",this.parser||this.Parser),ao("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,o){const i=po(e),l=n.parse(i);function s(e,n){e||!n?o(e):r?r(n):t(void 0,n)}n.run(l,i,function(e,t,r){if(e||!t||!r)return s(e);const o=t,i=n.stringify(o,r);var l;"string"==typeof(l=i)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(l)?r.value=i:r.result=i,s(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),so("processSync",this.parser||this.Parser),ao("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,Nr(e),t=r}),fo("processSync","process",n),t}run(e,t,n){uo(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?o(void 0,n):new Promise(o);function o(o,i){const l=po(t);r.run(e,l,function(t,r,l){const s=r||e;t?i(t):o?o(s):n(void 0,s,l)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){Nr(e),n=t,r=!0}),fo("runSync","run",r),n}stringify(e,t){this.freeze();const n=po(t),r=this.compiler||this.Compiler;return ao("stringify",r),uo(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(co("use",this.frozen),null==e);else if("function"==typeof e)s(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?l(e):i(e)}return this;function o(e){if("function"==typeof e)s(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;s(t,n)}else i(e)}}function i(e){if(!("plugins"in e)&&!("settings"in e))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");l(e.plugins),e.settings&&(r.settings=Ur(!0,r.settings,e.settings))}function l(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;)o(e[t])}}function s(e,t){let r=-1,o=-1;for(;++r<n.length;)if(n[r][0]===e){o=r;break}if(-1===o)n.push([e,...t]);else if(t.length>0){let[r,...i]=t;const l=n[o][1];Vr(l)&&Vr(r)&&(r=Ur(!0,l,r)),n[o]=[e,r,...i]}}}}const lo=(new io).freeze();function so(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function ao(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function co(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 uo(e){if(!Vr(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function fo(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function po(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new Gr(e)}const ho=[],mo={allowDangerousHtml:!0},go=/^(https?|ircs?|mailto|xmpp)$/i,yo=[{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:"className",id:"remove-classname"},{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 xo(e){const t=function(e){const t=e.rehypePlugins||ho,n=e.remarkPlugins||ho,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...mo}:mo;return lo().use(Zn).use(n).use(_r,r).use(t)}(e),n=function(e){const t=e.children||"",n=new Gr;return"string"==typeof t&&(n.value=t),n}(e);return function(e,t){const n=t.allowedElements,r=t.allowElement,o=t.components,i=t.disallowedElements,l=t.skipHtml,a=t.unwrapDisallowed,c=t.urlTransform||ko;for(const s of yo);return Tr(e,function(e,t,o){if("raw"===e.type&&o&&"number"==typeof t)return l?o.children.splice(t,1):o.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in Ge)if(Object.hasOwn(Ge,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=Ge[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=c(String(n||""),t,e))}}if("element"===e.type){let l=n?!n.includes(e.tagName):!!i&&i.includes(e.tagName);if(!l&&r&&"number"==typeof t&&(l=!r(e,t,o)),l&&o&&"number"==typeof t)return a&&e.children?o.children.splice(t,1,...e.children):o.children.splice(t,1),t}}),function(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!=typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return function(n,r,o,i){const l=Array.isArray(o.children),s=Le(n);return t(r,o,i,l,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!=typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");o=t.jsx,i=t.jsxs,r=function(e,t,n,r){const l=Array.isArray(n.children)?i:o;return r?l(t,n,r):l(t,n)}}var o,i;const l={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:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?ge:me,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},s=qe(l,e,void 0);return s&&"string"!=typeof s?s:l.create(e,l.Fragment,{children:s||void 0},void 0)}(e,{Fragment:s.Fragment,components:o,ignoreInvalidStyle:!0,jsx:s.jsx,jsxs:s.jsxs,passKeys:!0,passNode:!0})}(t.runSync(t.parse(n),n),e)}function ko(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),o=e.indexOf("/");return-1===t||-1!==o&&t>o||-1!==n&&t>n||-1!==r&&t>r||go.test(e.slice(0,t))?e:""}function vo(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,o=n.indexOf(t);for(;-1!==o;)r++,o=n.indexOf(t,o+t.length);return r}function bo(e){return"string"==typeof e?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function wo(e){return"function"==typeof e?e:function(){return e}}const So="phrasing",Co=["autolink","link","image","label"];function Eo(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Io(e){this.config.enter.autolinkProtocol.call(this,e)}function To(e){this.config.exit.autolinkProtocol.call(this,e)}function Po(e){this.config.exit.data.call(this,e),this.stack[this.stack.length-1].url="http://"+this.sliceSerialize(e)}function Ao(e){this.config.exit.autolinkEmail.call(this,e)}function Do(e){this.exit(e)}function Lo(e){!function(e,t,n){const r=kr((n||{}).ignore||[]),o=function(e){if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const t=[],n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const e=n[r];t.push([bo(e[0]),wo(e[1])])}return t}(t);let i=-1;for(;++i<o.length;)Er(e,l);function l(e,t,n){return"text"===e.type&&"number"==typeof n?function(e,t,n){const r=t[t.length-1],l=o[i][0],s=o[i][1];let a=0,c=!1,u=[];l.lastIndex=0;let f=l.exec(e.value);for(;f;){const n=f.index,r={index:f.index,input:f.input,stack:[...t,e]};let o=s(...f,r);if("string"==typeof o&&(o=o.length>0?{type:"text",value:o}:void 0),!1===o)l.lastIndex=n+1;else{if(a!==n&&p({type:"text",value:e.value.slice(a,n)}),Array.isArray(o))for(const e of o)p(e);else o&&p(o);a=n+f[0].length,c=!0}if(!l.global)break;f=l.exec(e.value)}return c?(a<e.value.length&&p({type:"text",value:e.value.slice(a)}),r.children.splice(n,1,...u)):u=[e],n+u.length;function p(e){const t=u[u.length-1];t&&"text"===t.type&&"text"===e.type?t.value+=e.value:u.push(e)}}(e,t,n):r(e,n,t[t.length-1])?Cr:void 0}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Fo],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),zo]],{ignore:["link","linkReference"]})}function Fo(e,t,n,r,o){let i="";if(!Mo(o))return!1;if(/^w/i.test(t)&&(n=t+n,t="",i="http://"),!function(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])))}(n))return!1;const l=function(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 o=vo(e,"(");let i=vo(e,")");for(;-1!==r&&o>i;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),i++;return[e,n]}(n+r);if(!l[0])return!1;const s={type:"link",title:null,url:i+t+l[0],children:[{type:"text",value:t+l[0]}]};return l[1]?[s,{type:"text",value:l[1]}]:s}function zo(e,t,n,r){return!(!Mo(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Mo(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||Et(n)||Ct(n))&&(!t||47!==n)}function Oo(){this.buffer()}function Ro(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function _o(){this.buffer()}function No(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function jo(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.identifier=dt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Bo(e){this.exit(e)}function Ho(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.identifier=dt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Uo(e){this.exit(e)}function Vo(e,t,n,r){const o=n.createTracker(r);let i=o.move("[^");const l=n.enter("footnoteReference"),s=n.enter("reference");return i+=o.move(n.safe(n.associationId(e),{after:"]",before:i})),s(),l(),i+=o.move("]"),i}function qo(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,o){const i=r.createTracker(o);let l=i.move("[^");const s=r.enter("footnoteDefinition"),a=r.enter("label");return l+=i.move(r.safe(r.associationId(e),{before:l,after:"]"})),a(),l+=i.move("]:"),e.children&&e.children.length>0&&(i.shift(4),l+=i.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,i.current()),t?$o:Wo))),s(),l},footnoteReference:Vo},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function Wo(e,t,n){return 0===t?e:$o(e,0,n)}function $o(e,t,n){return(n?"":" ")+e}Vo.peek=function(){return"["};const Qo=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function Yo(e){this.enter({type:"delete",children:[],position:void 0},e)}function Ko(e){this.exit(e)}function Xo(e,t,n,r){const o=n.createTracker(r),i=n.stack.includes("strikethrough")?"~":"~~",l=n.enter("strikethrough");let s=o.move(i);return s+=n.containerPhrasing(e,{...o.current(),before:s,after:"~"}),s+=o.move(i),l(),s}function Jo(e){return e.length}function Zo(e){return null==e?"":String(e)}function Go(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}Xo.attention=function(){return{construct:"strikethrough",markers:["~"],sizes:[2,1]}},Xo.peek=function(){return"~"};const ei=kr(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function ti(e,t,n){return">"+(n?"":" ")+e}function ni(e,t){return ri(e,t.inConstruct,!0)&&!ri(e,t.notInConstruct,!1)}function ri(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function oi(e,t,n,r){let o=-1;for(;++o<n.unsafe.length;){const e=n.unsafe[o];if("\n"===e.character&&!e.before&&!e.after&&ni(n.stack,e))return/[\t ]/.test(r.before)?"":" "}return"\\\n"}function ii(e,t,n){return(n?"":" ")+e}function li(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 si(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 ai(e,t,n,r){const o=n.enter("phrasing"),i=n.containerPhrasing({type:"root",children:[e]},r);return o(),i}function ci(e){return e.value||""}function ui(e,t,n,r){const o=li(n),i='"'===o?"Quote":"Apostrophe",l=n.enter("image");let s=n.enter("label");const a=n.createTracker(r);let c=a.move("![");return c+=a.move(n.safe(e.alt,{before:c,after:"]",...a.current()})),c+=a.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=a.move("<"),c+=a.move(n.safe(e.url,{before:c,after:">",...a.current()})),c+=a.move(">")):(s=n.enter("destinationRaw"),c+=a.move(n.safe(e.url,{before:c,after:e.title?" ":")",...a.current()}))),s(),e.title&&(s=n.enter(`title${i}`),c+=a.move(" "+o),c+=a.move(n.safe(e.title,{before:c,after:o,...a.current()})),c+=a.move(o),s()),c+=a.move(")"),l(),c}function fi(e,t,n,r){const o=e.referenceType,i=n.enter("imageReference");let l=n.enter("label");const s=n.createTracker(r);let a=s.move("![");const c=n.safe(e.alt,{before:a,after:"]",...s.current()});a+=s.move(c+"]["),l();const u=n.stack;n.stack=u.filter(function(e){return"phrasing"!==e}),l=n.enter("reference");const f=n.safe(n.associationId(e),{before:a,after:"]",...s.current()});return l(),n.stack=u,i(),"full"!==o&&c&&c===f?"shortcut"===o?a=a.slice(0,-1):a+=s.move("]"):a+=s.move(f+"]"),a}function pi(e,t,n){let r=e.value||"",o="`",i=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^\n\r ]/.test(r)&&(/^[\n\r ]/.test(r)&&/[\n\r ]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i<n.unsafe.length;){const e=n.unsafe[i],t=n.compilePattern(e);if(!e.atBreak)continue;let o;for(;o=t.exec(r);){let e=o.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(o.index+1)}}return o+r+o}function di(e,t){const n=tt(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][+\-.a-z]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function hi(e,t,n,r){const o=li(n),i='"'===o?"Quote":"Apostrophe",l=n.createTracker(r);if(di(e,n)){const t=n.stack;n.stack=t.filter(function(e){return"phrasing"!==e});const r=n.enter("autolink");let o=l.move("<");return o+=l.move(n.containerPhrasing(e,{before:o,after:">",...l.current()})),o+=l.move(">"),r(),n.stack=t,o}const s=n.enter("link");let a=n.enter("label"),c=l.move("[");return c+=l.move(n.containerPhrasing(e,{before:c,after:"](",...l.current()})),c+=l.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(a=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),a(),e.title&&(a=n.enter(`title${i}`),c+=l.move(" "+o),c+=l.move(n.safe(e.title,{before:c,after:o,...l.current()})),c+=l.move(o),a()),c+=l.move(")"),s(),c}function mi(e,t,n,r){const o=e.referenceType,i=n.enter("linkReference");let l=n.enter("label");const s=n.createTracker(r);let a=s.move("[");const c=n.containerPhrasing(e,{before:a,after:"]",...s.current()});a+=s.move(c+"]["),l();const u=n.stack;n.stack=u.filter(function(e){return"phrasing"!==e}),l=n.enter("reference");const f=n.safe(n.associationId(e),{before:a,after:"]",...s.current()});return l(),n.stack=u,i(),"full"!==o&&c&&c===f?"shortcut"===o?a=a.slice(0,-1):a+=s.move("]"):a+=s.move(f+"]"),a}function gi(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 yi(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 xi(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}function ki(e,t,n,r){const o=n.enter("phrasing"),i=n.containerPhrasing({type:"root",children:[e]},r);return o(),i}ai.attention=function(e,t){return{construct:"emphasis",markers:"*"===si(t)?["*","_"]:["_","*"],sizes:[1]}},ai.peek=function(e,t,n){return n.options.emphasis||"*"},ci.peek=function(){return"<"},ui.peek=function(){return"!"},fi.peek=function(){return"!"},pi.peek=function(){return"`"},hi.peek=function(e,t,n){return di(e,n)?"<":"["},mi.peek=function(){return"["},ki.attention=function(e,t){return{construct:"strong",markers:"*"===xi(t)?["*","_"]:["_","*"],sizes:[2]}},ki.peek=function(e,t,n){return n.options.strong||"*"};const vi={blockquote:function(e,t,n,r){const o=n.enter("blockquote"),i=n.createTracker(r);i.move("> "),i.shift(2);const l=n.indentLines(n.containerFlow(e,i.current()),ti);return o(),l},break:oi,code:function(e,t,n,r){const o=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),i=e.value||"";if(function(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^\n\r ]/.test(e.value)&&!/^[\t ]*(?:[\n\r]|$)|(?:^|[\n\r])[\t ]*$/.test(e.value))}(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(i,ii);return e(),t}const l=n.createTracker(r),s=o.repeat(Math.max(function(e,t){const n=String(e);let r=n.indexOf(t),o=r,i=0,l=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===o?++i>l&&(l=i):i=1,o=r+t.length,r=n.indexOf(t,o);return l}(i,o)+1,3)),a=n.enter("codeFenced"),c="`"===o?"GraveAccent":"Tilde";let u=l.move(s);if(e.lang){const t=n.enter(`codeFencedLang${c}`);u+=l.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...l.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${c}`);u+=l.move(" "),u+=l.move(n.safe(e.meta,{before:u,after:"\n",encode:["`"],...l.current()})),t()}return u+=l.move("\n"),i&&(u+=l.move(i+"\n")),u+=l.move(s),a(),u},definition:function(e,t,n,r){const o=li(n),i='"'===o?"Quote":"Apostrophe",l=n.enter("definition");let s=n.enter("label");const a=n.createTracker(r);let c=a.move("[");return c+=a.move(n.safe(n.associationId(e),{before:c,after:"]",...a.current()})),c+=a.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=a.move("<"),c+=a.move(n.safe(e.url,{before:c,after:">",...a.current()})),c+=a.move(">")):(s=n.enter("destinationRaw"),c+=a.move(n.safe(e.url,{before:c,after:e.title?" ":"\n",...a.current()}))),s(),e.title&&(s=n.enter(`title${i}`),c+=a.move(" "+o),c+=a.move(n.safe(e.title,{before:c,after:o,...a.current()})),c+=a.move(o),s()),l(),c},emphasis:ai,hardBreak:oi,heading:function(e,t,n,r){const o=Math.max(Math.min(6,e.depth||1),1),i=n.createTracker(r);if(function(e,t){let n=!1;return Tr(e,function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,Sr}),Boolean((!e.depth||e.depth<3)&&tt(e)&&(t.options.setext||n))}(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),l=n.containerPhrasing(e,{...i.current(),before:"\n",after:"\n"});return r(),t(),l+"\n"+(1===o?"=":"-").repeat(l.length-(Math.max(l.lastIndexOf("\r"),l.lastIndexOf("\n"))+1))}const l="#".repeat(o),s=n.enter("headingAtx"),a=n.enter("phrasing");i.move(l+" ");let c=n.containerPhrasing(e,{before:"# ",after:"\n",...i.current()});const u=c.charCodeAt(0);return 9!==u&&32!==u||(c="&#x"+u.toString(16).toUpperCase()+";"+c.slice(1)),c=c?l+" "+c:l,n.options.closeAtx&&(c+=" "+l),a(),s(),c},html:ci,image:ui,imageReference:fi,inlineCode:pi,link:hi,linkReference:mi,list:function(e,t,n,r){const o=n.enter("list"),i=n.bulletCurrent;let l=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):gi(n);const s=e.ordered?"."===l?")":".":function(e){const t=gi(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}(n);let a=!(!t||!n.bulletLastUsed)&&l===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==l&&"-"!==l||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(a=!0),yi(n)===l&&t){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){a=!0;break}}}}a&&(l=s),n.bulletCurrent=l;const c=n.containerFlow(e,r);return n.bulletLastUsed=l,n.bulletCurrent=i,o(),c},listItem:function(e,t,n,r){const o=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let i=n.bulletCurrent||gi(n);t&&"list"===t.type&&t.ordered&&(i=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+i);let l=i.length+1;("tab"===o||"mixed"===o&&(t&&"list"===t.type&&t.spread||e.spread))&&(l=4*Math.ceil(l/4));const s=n.createTracker(r);s.move(i+" ".repeat(l-i.length)),s.shift(l);const a=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),function(e,t,n){return t?(n?"":" ".repeat(l))+e:(n?i:i+" ".repeat(l-i.length))+e});return a(),c},paragraph:function(e,t,n,r){const o=n.enter("paragraph"),i=n.enter("phrasing"),l=n.containerPhrasing(e,r);return i(),o(),l},root:function(e,t,n,r){if(!e.children.some(function(e){return ei(e)}))return n.containerFlow(e,r);const o=n.enter("phrasing"),i=n.containerPhrasing(e,r);return o(),i},strong:ki,text:function(e,t,n,r){const o=t?t.children:[],i=o.indexOf(e);return n.safe(e.value,{...r,afterNode:o[i+1],beforeNode:o[i-1]})},thematicBreak:function(e,t,n){const r=(yi(n)+(n.options.ruleSpaces?" ":"")).repeat(function(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}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function bi(e){const t=e._align;this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function wi(e){this.exit(e),this.data.inTable=void 0}function Si(e){this.enter({type:"tableRow",children:[]},e)}function Ci(e){this.exit(e)}function Ei(e){this.enter({type:"tableCell",children:[]},e)}function Ii(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Ti)),this.stack[this.stack.length-1].value=t,this.exit(e)}function Ti(e,t){return"|"===t?t:e}function Pi(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,o=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=vi.inlineCode(e,t,n);return n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r},table:function(e,t,n,r){return s(function(e,t,n){const r=e.children;let o=-1;const i=[],l=t.enter("table");for(;++o<r.length;)i[o]=a(r[o],t,n);return l(),i}(e,n,r),e.align)},tableCell:l,tableRow:function(e,t,n,r){const o=s([a(e,n,r)]);return o.slice(0,o.indexOf("\n"))}}};function l(e,t,n,r){const o=n.enter("tableCell"),l=n.enter("phrasing"),s=n.containerPhrasing(e,{...r,before:i,after:i});return l(),o(),s}function s(e,t){return function(e,t){const n=t||{},r=(n.align||[]).concat(),o=n.stringLength||Jo,i=[],l=[],s=[],a=[];let c=0,u=-1;for(;++u<e.length;){const t=[],r=[];let i=-1;for(e[u].length>c&&(c=e[u].length);++i<e[u].length;){const l=Zo(e[u][i]);if(!1!==n.alignDelimiters){const e=o(l);r[i]=e,(void 0===a[i]||e>a[i])&&(a[i]=e)}t.push(l)}l[u]=t,s[u]=r}let f=-1;if("object"==typeof r&&"length"in r)for(;++f<c;)i[f]=Go(r[f]);else{const e=Go(r);for(;++f<c;)i[f]=e}f=-1;const p=[],d=[];for(;++f<c;){const e=i[f];let t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let o=!1===n.alignDelimiters?1:Math.max(1,a[f]-t.length-r.length);const l=t+"-".repeat(o)+r;!1!==n.alignDelimiters&&(o=t.length+o+r.length,o>a[f]&&(a[f]=o),d[f]=o),p[f]=l}l.splice(1,0,p),s.splice(1,0,d),u=-1;const h=[];for(;++u<l.length;){const e=l[u],t=s[u];f=-1;const r=[];for(;++f<c;){const o=e[f]||"";let l="",s="";if(!1!==n.alignDelimiters){const e=a[f]-(t[f]||0),n=i[f];114===n?l=" ".repeat(e):99===n?e%2?(l=" ".repeat(e/2+.5),s=" ".repeat(e/2-.5)):(l=" ".repeat(e/2),s=l):s=" ".repeat(e)}!1===n.delimiterStart||f||r.push("|"),!1===n.padding||!1===n.alignDelimiters&&""===o||!1===n.delimiterStart&&!f||r.push(" "),!1!==n.alignDelimiters&&r.push(l),r.push(o),!1!==n.alignDelimiters&&r.push(s),!1!==n.padding&&r.push(" "),!1===n.delimiterEnd&&f===c-1||r.push("|")}h.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return h.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:o})}function a(e,t,n){const r=e.children;let o=-1;const i=[],s=t.enter("tableRow");for(;++o<r.length;)i[o]=l(r[o],0,t,n);return s(),i}}function Ai(e){this.stack[this.stack.length-2].checked="taskListCheckValueChecked"===e.type}function Di(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1],n=e.children[0];if(n&&"text"===n.type){const r=t.children;let o,i=-1;for(;++i<r.length;){const e=r[i];if("paragraph"===e.type){o=e;break}}o===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function Li(e,t,n,r){const o=e.children[0],i="boolean"==typeof e.checked&&o&&"paragraph"===o.type,l="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);i&&s.move(l);let a=vi.listItem(e,t,n,{...r,...s.current()});return i&&(a=a.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+l})),a}const Fi={tokenize:function(e,t,n){let r=0;return function t(i){return(87===i||119===i)&&r<3?(r++,e.consume(i),t):46===i&&3===r?(e.consume(i),o):n(i)};function o(e){return null===e?n(e):t(e)}},partial:!0},zi={tokenize:function(e,t,n){let r,o,i;return l;function l(t){return 46===t||95===t?e.check(Oi,a,s)(t):null===t||wt(t)||Et(t)||45!==t&&Ct(t)?a(t):(i=!0,e.consume(t),l)}function s(t){return 95===t?r=!0:(o=r,r=void 0),e.consume(t),l}function a(e){return o||r||!i?n(e):t(e)}},partial:!0},Mi={tokenize:function(e,t){let n=0,r=0;return o;function o(l){return 40===l?(n++,e.consume(l),o):41===l&&r<n?i(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===l?e.check(Oi,t,i)(l):null===l||wt(l)||Et(l)?t(l):(e.consume(l),o)}function i(t){return 41===t&&r++,e.consume(t),o}},partial:!0},Oi={tokenize:function(e,t,n){return r;function r(l){return 33===l||34===l||39===l||41===l||42===l||44===l||46===l||58===l||59===l||63===l||95===l||126===l?(e.consume(l),r):38===l?(e.consume(l),i):93===l?(e.consume(l),o):60===l||null===l||wt(l)||Et(l)?t(l):n(l)}function o(e){return null===e||40===e||91===e||wt(e)||Et(e)?t(e):r(e)}function i(e){return ht(e)?l(e):n(e)}function l(t){return 59===t?(e.consume(t),r):ht(t)?(e.consume(t),l):n(t)}},partial:!0},Ri={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return mt(e)?n(e):t(e)}},partial:!0},_i={name:"wwwAutolink",tokenize:function(e,t,n){const r=this;return function(t){return 87!==t&&119!==t||!Ui.call(r,r.previous)||$i(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Fi,e.attempt(zi,e.attempt(Mi,o),n),n)(t))};function o(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:Ui},Ni={name:"protocolAutolink",tokenize:function(e,t,n){const r=this;let o="",i=!1;return function(t){return 72!==t&&104!==t||!Vi.call(r,r.previous)||$i(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(t),e.consume(t),l)};function l(t){if(ht(t)&&o.length<5)return o+=String.fromCodePoint(t),e.consume(t),l;if(58===t){const n=o.toLowerCase();if("http"===n||"https"===n)return e.consume(t),s}return n(t)}function s(t){return 47===t?(e.consume(t),i?a:(i=!0,s)):n(t)}function a(t){return null===t||yt(t)||wt(t)||Et(t)||Ct(t)?n(t):e.attempt(zi,e.attempt(Mi,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:Vi},ji={name:"emailAutolink",tokenize:function(e,t,n){const r=this;let o,i;return function(t){return Wi(t)&&qi.call(r,r.previous)&&!$i(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),l(t)):n(t)};function l(t){return Wi(t)?(e.consume(t),l):64===t?(e.consume(t),s):n(t)}function s(t){return 46===t?e.check(Ri,c,a)(t):45===t||95===t||mt(t)?(i=!0,e.consume(t),s):c(t)}function a(t){return e.consume(t),o=!0,s}function c(l){return i&&o&&ht(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(l)):n(l)}},previous:qi},Bi={};let Hi=48;for(;Hi<123;)Bi[Hi]=ji,Hi++,58===Hi?Hi=65:91===Hi&&(Hi=97);function Ui(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||wt(e)}function Vi(e){return!ht(e)}function qi(e){return!(47===e||Wi(e))}function Wi(e){return 43===e||45===e||46===e||95===e||mt(e)}function $i(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}Bi[43]=ji,Bi[45]=ji,Bi[46]=ji,Bi[95]=ji,Bi[72]=[ji,Ni],Bi[104]=[ji,Ni],Bi[87]=[ji,_i],Bi[119]=[ji,_i];const Qi={tokenize:function(e,t,n){const r=this;return Pt(e,function(e){const o=r.events[r.events.length-1];return o&&"gfmFootnoteDefinitionIndent"===o[1].type&&4===o[2].sliceSerialize(o[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function Yi(e,t,n){const r=this;let o=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;o--;){const e=r.events[o][1];if("labelImage"===e.type){l=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(o){if(!l||!l._balanced)return n(o);const s=dt(r.sliceSerialize({start:l.end,end:r.now()}));return 94===s.codePointAt(0)&&i.includes(s.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o)):n(o)}}function Ki(e,t){let n=e.length;for(;n--&&("labelImage"!==e[n][1].type||"enter"!==e[n][0]););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)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",o,t],["exit",o,t],["enter",i,t],["enter",l,t],["exit",l,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function Xi(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,l=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",a)}function a(s){if(l>999||93===s&&!i||null===s||91===s||wt(s))return n(s);if(93===s){e.exit("chunkString");const i=e.exit("gfmFootnoteCallString");return o.includes(dt(r.sliceSerialize(i)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return wt(s)||(i=!0),l++,e.consume(s),92===s?c:a}function c(t){return 91===t||92===t||93===t?(e.consume(t),l++,a):a(t)}}function Ji(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,l,s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),a};function a(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(s>999||93===t&&!l||null===t||91===t||wt(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return i=dt(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return wt(t)||(l=!0),s++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}function f(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o.includes(i)||o.push(i),Pt(e,p,"gfmFootnoteDefinitionWhitespace")):n(t)}function p(e){return t(e)}}function Zi(e,t,n){return e.check(Bt,t,e.attempt(Qi,t,n))}function Gi(e){e.exit("gfmFootnoteDefinition")}function el(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:function(e,n,r){const o=this.previous,i=this.events;let l=0;return function(t){return 126===o&&"characterEscape"!==i[i.length-1][1].type?r(t):(e.enter("strikethroughSequenceTemporary"),s(t))};function s(i){const a=Ot(o);if(126===i)return l>1?r(i):(e.consume(i),l++,s);if(l<2&&!t)return r(i);const c=e.exit("strikethroughSequenceTemporary"),u=Ot(i);return c._open=!u||2===u&&Boolean(a),c._close=!a||2===a&&Boolean(u),n(i)}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";const o={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},i={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},l=[["enter",o,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",i,t]],s=t.parser.constructs.insideSpan.null;s&&lt(l,l.length,0,Rt(s,e.slice(r+1,n),t)),lt(l,l.length,0,[["exit",i,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",o,t]]),lt(e,r-1,n-r+3,l),n=r+l.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}class tl{constructor(){this.map=[],this.index=new Map}add(e,t,n){!function(e,t,n,r){if(0===n&&0===r.length)return;const o=e.index.get(t);if(o)return o[1]+=n,void o[2].push(...r);const i=[t,n,r];e.map.push(i),e.index.set(t,i)}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(const t of r)e.push(t);r=n.pop()}this.map.length=0,this.index.clear()}}function nl(e,t){let n=!1;const r=[];for(;t<e.length;){const o=e[t];if(n){if("enter"===o[0])"tableContent"===o[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===o[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===o[1].type)break}else"enter"===o[0]&&"tableDelimiterRow"===o[1].type&&(n=!0);t+=1}return r}function rl(e,t,n){const r=this;let o,i=0,l=0;return function(e){let t=r.events.length-1;for(;t>-1;){const{type:e}=r.events[t][1];if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const o=t>-1?r.events[t][1].type:null,i="tableHead"===o||"tableRow"===o?v:s;return i===v&&r.parser.lazy[r.now().line]?n(e):i(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){return 124===e||(o=!0,l+=1),a(e)}(t)}function a(t){return null===t?n(t):bt(t)?l>1?(l=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),f):n(t):St(t)?Pt(e,a,"whitespace")(t):(l+=1,o&&(o=!1,i+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),o=!0,a):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||wt(t)?(e.exit("data"),a(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function f(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),o=!1,St(t)?Pt(e,p,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t))}function p(t){return 45===t||58===t?h(t):124===t?(o=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),d):k(t)}function d(t){return St(t)?Pt(e,h,"whitespace")(t):h(t)}function h(t){return 58===t?(l+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(l+=1,m(t)):null===t||bt(t)?x(t):k(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),g(t)):k(t)}function g(t){return 45===t?(e.consume(t),g):58===t?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(t))}function y(t){return St(t)?Pt(e,x,"whitespace")(t):x(t)}function x(n){return 124===n?p(n):(null===n||bt(n))&&o&&i===l?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):k(n)}function k(e){return n(e)}function v(t){return e.enter("tableRow"),b(t)}function b(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),b):null===n||bt(n)?(e.exit("tableRow"),t(n)):St(n)?Pt(e,b,"whitespace")(n):(e.enter("data"),w(n))}function w(t){return null===t||124===t||wt(t)?(e.exit("data"),b(t)):(e.consume(t),92===t?S:w)}function S(t){return 92===t||124===t?(e.consume(t),w):w(t)}}function ol(e,t){let n,r,o,i=-1,l=!0,s=0,a=[0,0,0,0],c=[0,0,0,0],u=!1,f=0;const p=new tl;for(;++i<e.length;){const d=e[i],h=d[1];"enter"===d[0]?"tableHead"===h.type?(u=!1,0!==f&&(ll(p,t,f,n,r),r=void 0,f=0),n={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(i,0,[["enter",n,t]])):"tableRow"===h.type||"tableDelimiterRow"===h.type?(l=!0,o=void 0,a=[0,0,0,0],c=[0,i+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(i,0,[["enter",r,t]])),s="tableDelimiterRow"===h.type?2:r?3:1):!s||"data"!==h.type&&"tableDelimiterMarker"!==h.type&&"tableDelimiterFiller"!==h.type?"tableCellDivider"===h.type&&(l?l=!1:(0!==a[1]&&(c[0]=c[1],o=il(p,t,a,s,void 0,o)),a=c,c=[a[1],i,0,0])):(l=!1,0===c[2]&&(0!==a[1]&&(c[0]=c[1],o=il(p,t,a,s,void 0,o),a=[0,0,0,0]),c[2]=i)):"tableHead"===h.type?(u=!0,f=i):"tableRow"===h.type||"tableDelimiterRow"===h.type?(f=i,0!==a[1]?(c[0]=c[1],o=il(p,t,a,s,i,o)):0!==c[1]&&(o=il(p,t,c,s,i,o)),s=0):!s||"data"!==h.type&&"tableDelimiterMarker"!==h.type&&"tableDelimiterFiller"!==h.type||(c[3]=i)}for(0!==f&&ll(p,t,f,n,r),p.consume(t.events),i=-1;++i<t.events.length;){const e=t.events[i];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=nl(t.events,i))}return e}function il(e,t,n,r,o,i){const l=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(i.end=Object.assign({},sl(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const s=sl(t.events,n[1]);if(i={type:l,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",i,t]]),0!==n[2]){const o=sl(t.events,n[2]),i=sl(t.events,n[3]),l={type:"tableContent",start:Object.assign({},o),end:Object.assign({},i)};if(e.add(n[2],0,[["enter",l,t]]),2!==r){const r=t.events[n[2]],o=t.events[n[3]];if(r[1].end=Object.assign({},o[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",l,t]])}return void 0!==o&&(i.end=Object.assign({},sl(t.events,o)),e.add(o,0,[["exit",i,t]]),i=void 0),i}function ll(e,t,n,r,o){const i=[],l=sl(t.events,n);o&&(o.end=Object.assign({},l),i.push(["exit",o,t])),r.end=Object.assign({},l),i.push(["exit",r,t]),e.add(n+1,0,i)}function sl(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const al={name:"tasklistCheck",tokenize:function(e,t,n){const r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),o):n(t)};function o(t){return wt(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),i):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),i):n(t)}function i(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):n(t)}function l(r){return bt(r)?t(r):St(r)?e.check({tokenize:cl},t,n)(r):n(r)}}};function cl(e,t,n){return Pt(e,function(e){return null===e?n(e):t(e)},"whitespace")}const ul={};function fl(e){const t=e||ul,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),o=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),i=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return ct([{text:Bi},{document:{91:{name:"gfmFootnoteDefinition",tokenize:Ji,continuation:{tokenize:Zi},exit:Gi}},text:{91:{name:"gfmFootnoteCall",tokenize:Xi},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Yi,resolveTo:Ki}}},el(e),{flow:{null:{name:"table",tokenize:rl,resolveAll:ol}}},{text:{91:al}}])}(t)),o.push([{transforms:[Lo],enter:{literalAutolink:Eo,literalAutolinkEmail:Io,literalAutolinkHttp:Io,literalAutolinkWww:Io},exit:{literalAutolink:Do,literalAutolinkEmail:Ao,literalAutolinkHttp:To,literalAutolinkWww:Po}},{enter:{gfmFootnoteCallString:Oo,gfmFootnoteCall:Ro,gfmFootnoteDefinitionLabelString:_o,gfmFootnoteDefinition:No},exit:{gfmFootnoteCallString:jo,gfmFootnoteCall:Bo,gfmFootnoteDefinitionLabelString:Ho,gfmFootnoteDefinition:Uo}},{canContainEols:["delete"],enter:{strikethrough:Yo},exit:{strikethrough:Ko}},{enter:{table:bi,tableData:Ei,tableHeader:Ei,tableRow:Si},exit:{codeText:Ii,table:wi,tableData:Ci,tableHeader:Ci,tableRow:Ci}},{exit:{taskListCheckValueChecked:Ai,taskListCheckValueUnchecked:Ai,paragraph:Di}}]),i.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:So,notInConstruct:Co},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:So,notInConstruct:Co},{character:":",before:"[ps]",after:"\\/",inConstruct:So,notInConstruct:Co}]},qo(e),{handlers:{delete:Xo},unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Qo}]},Pi(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Li}}]}}(t))}const pl=({variant:e,children:t,textSize:n={base:"15px",md:"14px"}})=>{const r=d("colors","lightBackground"),o=d("colors","background"),i=d("colors","mutedText"),l=d("colors","text"),a=h(),c=m(a,n);if("user"===e)return s.jsx(xo,{components:{p:({children:e})=>s.jsx(g,{wordBreak:"break-word",fontSize:a.font(14),fontWeight:"500",color:"text",fontFamily:y,children:e})},children:t});const u="text";return s.jsx(xo,{remarkPlugins:[fl],components:{p:({children:e})=>s.jsx(g,{fontSize:c,fontWeight:"400",color:u,textAlign:"left",lineHeight:"1.6",children:e}),ol:({children:e})=>s.jsx(x,{as:"ol",p:a.space(1.5),textAlign:"left",mb:a.space(1.5),listStyleType:"decimal",listStylePosition:"inside",children:e}),ul:({children:e})=>s.jsx(x,{as:"ul",p:a.space(1.5),textAlign:"left",mb:a.space(1.5),listStyleType:"disc",listStylePosition:"inside",children:e}),li:({children:e})=>s.jsx(g,{as:"li",fontSize:c,fontWeight:"400",color:u,textAlign:"left",display:"list-item",children:e}),img:({src:e,alt:t})=>s.jsx(v,{src:e,alt:t||"",maxW:"100%",borderRadius:a.radius(6),my:a.space(1.5)}),a:({children:e,href:t})=>s.jsx(k,{href:t,target:"_blank",display:"inline",wordBreak:"break-word",overflowWrap:"anywhere",children:s.jsx(g,{as:"span",fontSize:a.font(14),fontWeight:"400",color:"primary",wordBreak:"break-word",overflowWrap:"anywhere",whiteSpace:"normal",children:e})}),table:({children:e})=>s.jsx(x,{overflowX:"auto",maxW:"100%",css:{"&::-webkit-scrollbar":{height:"5px"},"&::-webkit-scrollbar-track":{background:r,borderRadius:"8px"},"&::-webkit-scrollbar-thumb":{background:i,borderRadius:"8px"},"&::-webkit-scrollbar-thumb:hover":{background:l}},children:s.jsx(E,{size:"sm",variant:"outline",w:"full",my:a.space(1.5),striped:!0,children:e})}),thead:({children:e})=>s.jsx(T,{children:e}),tbody:({children:e})=>s.jsx(D,{children:e}),tr:({children:e})=>s.jsx(I,{css:{"&:nth-child(even)":{backgroundColor:o},"&:nth-child(odd)":{backgroundColor:r}},children:e}),th:({children:e})=>s.jsx(P,{fontSize:a.font(13),fontWeight:"600",color:"text",textAlign:"left",lineHeight:"1.5",px:a.space(1.5),py:a.space(.75),textTransform:"none",letterSpacing:"normal",border:"1px solid",borderColor:"borderColor",whiteSpace:"nowrap",bg:"lightBackground",children:e}),td:({children:e})=>s.jsx(A,{fontSize:a.font(13),fontWeight:"400",color:"text",textAlign:"left",lineHeight:"1.5",px:a.space(1.5),py:a.space(.75),border:"1px solid",borderColor:"borderColor",bg:"transparent",children:e})},children:t})};export{pl as default};