@qodalis/cli-server-plugin-portal 0.0.0-stage → 1.0.0-beta.30

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