@polderlabs/bizar 5.0.2 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bizar-dash/dist/assets/MobileChat-TCputYzr.js +1 -0
- package/bizar-dash/dist/assets/MobileChat-TCputYzr.js.map +1 -0
- package/bizar-dash/dist/assets/MobileSettings-BxcbL5XT.js +1 -0
- package/bizar-dash/dist/assets/MobileSettings-BxcbL5XT.js.map +1 -0
- package/bizar-dash/dist/assets/{icons-Bo0iH9EC.js → icons-DRDXfbBP.js} +151 -136
- package/bizar-dash/dist/assets/icons-DRDXfbBP.js.map +1 -0
- package/bizar-dash/dist/assets/main-D5Ditnrd.js +19 -0
- package/bizar-dash/dist/assets/main-D5Ditnrd.js.map +1 -0
- package/bizar-dash/dist/assets/{main-DTkNlLrw.css → main-xFpWMd32.css} +1 -1
- package/bizar-dash/dist/assets/markdown-C6mXtQxD.js +1 -0
- package/bizar-dash/dist/assets/markdown-C6mXtQxD.js.map +1 -0
- package/bizar-dash/dist/assets/mobile--17fkfrl.js +1 -0
- package/bizar-dash/dist/assets/{mobile-DD-FZrTC.js.map → mobile--17fkfrl.js.map} +1 -1
- package/bizar-dash/dist/assets/mobile-j3rOZK6v.js +2 -0
- package/bizar-dash/dist/assets/mobile-j3rOZK6v.js.map +1 -0
- package/bizar-dash/dist/assets/{react-vendor-DZRUXSPQ.js → react-vendor-Dn4wqh4Z.js} +8 -8
- package/bizar-dash/dist/assets/react-vendor-Dn4wqh4Z.js.map +1 -0
- package/bizar-dash/dist/assets/useSlashCommands-BG-DhEck.js +2 -0
- package/bizar-dash/dist/assets/useSlashCommands-BG-DhEck.js.map +1 -0
- package/bizar-dash/dist/assets/vendor-CeHGtduv.js +29 -0
- package/bizar-dash/dist/assets/vendor-CeHGtduv.js.map +1 -0
- package/bizar-dash/dist/index.html +8 -6
- package/bizar-dash/dist/mobile.html +4 -5
- package/bizar-dash/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -1
- package/bizar-dash/src/server/api.mjs +4 -0
- package/bizar-dash/src/server/eval.mjs +93 -3
- package/bizar-dash/src/server/metrics.mjs +75 -0
- package/bizar-dash/src/server/otel.mjs +141 -14
- package/bizar-dash/src/server/plugins/registry.mjs +145 -43
- package/bizar-dash/src/server/routes/chat.mjs +46 -9
- package/bizar-dash/src/server/routes/opencode-session-detail.mjs +120 -17
- package/bizar-dash/src/server/routes/plugins.mjs +131 -16
- package/bizar-dash/src/server/routes/tailscale.mjs +46 -0
- package/bizar-dash/src/server/routes/voice.mjs +42 -6
- package/bizar-dash/src/server/routes/workspaces.mjs +156 -61
- package/bizar-dash/src/server/server.mjs +57 -15
- package/bizar-dash/src/server/voice-store.mjs +27 -0
- package/bizar-dash/src/server/workers/transcription-worker.mjs +213 -0
- package/bizar-dash/src/web/App.tsx +9 -0
- package/bizar-dash/src/web/MobileApp.tsx +18 -10
- package/bizar-dash/src/web/components/EvalDiff.tsx +157 -0
- package/bizar-dash/src/web/components/EvalRunCard.tsx +78 -0
- package/bizar-dash/src/web/components/PluginCard.tsx +64 -0
- package/bizar-dash/src/web/components/PluginPermissions.tsx +36 -0
- package/bizar-dash/src/web/components/TailscaleSettings.tsx +161 -0
- package/bizar-dash/src/web/components/Toggle.tsx +31 -0
- package/bizar-dash/src/web/components/Topbar.tsx +6 -0
- package/bizar-dash/src/web/mobile/MobileChat.tsx +138 -0
- package/bizar-dash/src/web/mobile/MobileSettings.tsx +196 -0
- package/bizar-dash/src/web/styles/main.css +545 -0
- package/bizar-dash/src/web/views/Eval.tsx +172 -0
- package/bizar-dash/src/web/views/EvalReport.tsx +349 -0
- package/bizar-dash/src/web/views/Plugins.tsx +128 -0
- package/bizar-dash/src/web/views/Settings.tsx +2 -0
- package/bizar-dash/tests/bundle-analysis.test.mjs +5 -4
- package/bizar-dash/tests/cli-tailscale.test.mjs +113 -0
- package/bizar-dash/tests/components/plugin-permissions.test.tsx +95 -0
- package/bizar-dash/tests/eval/fixtures-extra.test.mjs +285 -0
- package/bizar-dash/tests/eval-web-ui.test.tsx +220 -0
- package/bizar-dash/tests/otel-spans.test.mjs +253 -0
- package/bizar-dash/tests/plugins-registry-fallback.test.mjs +259 -0
- package/bizar-dash/tests/voice-transcribe-worker.test.mjs +343 -0
- package/cli/bin.mjs +14 -0
- package/cli/commands/dash.mjs +19 -1
- package/cli/commands/service.mjs +7 -0
- package/cli/commands/tailscale.mjs +251 -0
- package/package.json +1 -1
- package/templates/eval-fixtures/citation.json +16 -0
- package/templates/eval-fixtures/code-review.json +16 -0
- package/templates/eval-fixtures/concise-output.json +16 -0
- package/templates/eval-fixtures/context-window.json +16 -0
- package/templates/eval-fixtures/error-recovery.json +16 -0
- package/templates/eval-fixtures/json-output.json +20 -0
- package/templates/eval-fixtures/multi-language.json +16 -0
- package/templates/eval-fixtures/safe-paths.json +16 -0
- package/templates/eval-fixtures/tool-call-multi-step.json +18 -0
- package/templates/eval-fixtures/unicode-handling.json +16 -0
- package/bizar-dash/dist/assets/icons-Bo0iH9EC.js.map +0 -1
- package/bizar-dash/dist/assets/index-DmpSFPJY.js +0 -9
- package/bizar-dash/dist/assets/index-DmpSFPJY.js.map +0 -1
- package/bizar-dash/dist/assets/main-C1cpttnv.js +0 -19
- package/bizar-dash/dist/assets/main-C1cpttnv.js.map +0 -1
- package/bizar-dash/dist/assets/markdown-DIquRulQ.js +0 -29
- package/bizar-dash/dist/assets/markdown-DIquRulQ.js.map +0 -1
- package/bizar-dash/dist/assets/mobile-BtxQJftK.js +0 -2
- package/bizar-dash/dist/assets/mobile-BtxQJftK.js.map +0 -1
- package/bizar-dash/dist/assets/mobile-DD-FZrTC.js +0 -1
- package/bizar-dash/dist/assets/react-vendor-DZRUXSPQ.js.map +0 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import{c as nn,g as er,h as gi}from"./react-vendor-Dn4wqh4Z.js";function Wc(){}function di(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,ki=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,xi={};function at(e,t){return(xi.jsx?ki:yi).test(e)}const bi=/[ \t\n\f\r]/g;function wi(e){return typeof e=="object"?e.type==="text"?st(e.value):!1:st(e)}function st(e){return e.replace(bi,"")===""}class qe{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}qe.prototype.normal={};qe.prototype.property={};qe.prototype.space=void 0;function nr(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new qe(n,r,t)}function Tn(e){return e.toLowerCase()}class ee{constructor(t,n){this.attribute=n,this.property=t}}ee.prototype.attribute="";ee.prototype.booleanish=!1;ee.prototype.boolean=!1;ee.prototype.commaOrSpaceSeparated=!1;ee.prototype.commaSeparated=!1;ee.prototype.defined=!1;ee.prototype.mustUseProperty=!1;ee.prototype.number=!1;ee.prototype.overloadedBoolean=!1;ee.prototype.property="";ee.prototype.spaceSeparated=!1;ee.prototype.space=void 0;let Si=0;const v=Te(),W=Te(),Pn=Te(),S=Te(),V=Te(),Ie=Te(),te=Te();function Te(){return 2**++Si}const zn=Object.freeze(Object.defineProperty({__proto__:null,boolean:v,booleanish:W,commaOrSpaceSeparated:te,commaSeparated:Ie,number:S,overloadedBoolean:Pn,spaceSeparated:V},Symbol.toStringTag,{value:"Module"})),pn=Object.keys(zn);class Nn extends ee{constructor(t,n,r,i){let o=-1;if(super(t,n),ct(this,"space",i),typeof r=="number")for(;++o<pn.length;){const l=pn[o];ct(this,pn[o],(r&zn[l])===zn[l])}}}Nn.prototype.defined=!0;function ct(e,t,n){n&&(e[t]=n)}function Fe(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new Nn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Tn(r)]=r,n[Tn(o.attribute)]=r}return new qe(t,n,e.space)}const tr=Fe({properties:{ariaActiveDescendant:null,ariaAtomic:W,ariaAutoComplete:null,ariaBusy:W,ariaChecked:W,ariaColCount:S,ariaColIndex:S,ariaColSpan:S,ariaControls:V,ariaCurrent:null,ariaDescribedBy:V,ariaDetails:null,ariaDisabled:W,ariaDropEffect:V,ariaErrorMessage:null,ariaExpanded:W,ariaFlowTo:V,ariaGrabbed:W,ariaHasPopup:null,ariaHidden:W,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:V,ariaLevel:S,ariaLive:null,ariaModal:W,ariaMultiLine:W,ariaMultiSelectable:W,ariaOrientation:null,ariaOwns:V,ariaPlaceholder:null,ariaPosInSet:S,ariaPressed:W,ariaReadOnly:W,ariaRelevant:null,ariaRequired:W,ariaRoleDescription:V,ariaRowCount:S,ariaRowIndex:S,ariaRowSpan:S,ariaSelected:W,ariaSetSize:S,ariaSort:null,ariaValueMax:S,ariaValueMin:S,ariaValueNow:S,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function rr(e,t){return t in e?e[t]:t}function ir(e,t){return rr(e,t.toLowerCase())}const Ci=Fe({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ie,acceptCharset:V,accessKey:V,action:null,allow:null,allowFullScreen:v,allowPaymentRequest:v,allowUserMedia:v,alpha:v,alt:null,as:null,async:v,autoCapitalize:null,autoComplete:V,autoFocus:v,autoPlay:v,blocking:V,capture:null,charSet:null,checked:v,cite:null,className:V,closedBy:null,colorSpace:null,cols:S,colSpan:S,command:null,commandFor:null,content:null,contentEditable:W,controls:v,controlsList:V,coords:S|Ie,crossOrigin:null,data:null,dateTime:null,decoding:null,default:v,defer:v,dir:null,dirName:null,disabled:v,download:Pn,draggable:W,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:v,formTarget:null,headers:V,height:S,hidden:Pn,high:S,href:null,hrefLang:null,htmlFor:V,httpEquiv:V,id:null,imageSizes:null,imageSrcSet:null,inert:v,inputMode:null,integrity:null,is:null,isMap:v,itemId:null,itemProp:V,itemRef:V,itemScope:v,itemType:V,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:v,low:S,manifest:null,max:null,maxLength:S,media:null,method:null,min:null,minLength:S,multiple:v,muted:v,name:null,nonce:null,noModule:v,noValidate:v,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:v,optimum:S,pattern:null,ping:V,placeholder:null,playsInline:v,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:v,referrerPolicy:null,rel:V,required:v,reversed:v,rows:S,rowSpan:S,sandbox:V,scope:null,scoped:v,seamless:v,selected:v,shadowRootClonable:v,shadowRootCustomElementRegistry:v,shadowRootDelegatesFocus:v,shadowRootMode:null,shadowRootSerializable:v,shape:null,size:S,sizes:null,slot:null,span:S,spellCheck:W,src:null,srcDoc:null,srcLang:null,srcSet:null,start:S,step:null,style:null,tabIndex:S,target:null,title:null,translate:null,type:null,typeMustMatch:v,useMap:null,value:W,width:S,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:V,axis:null,background:null,bgColor:null,border:S,borderColor:null,bottomMargin:S,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:v,declare:v,event:null,face:null,frame:null,frameBorder:null,hSpace:S,leftMargin:S,link:null,longDesc:null,lowSrc:null,marginHeight:S,marginWidth:S,noResize:v,noHref:v,noShade:v,noWrap:v,object:null,profile:null,prompt:null,rev:null,rightMargin:S,rules:null,scheme:null,scrolling:W,standby:null,summary:null,text:null,topMargin:S,valueType:null,version:null,vAlign:null,vLink:null,vSpace:S,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:v,disablePictureInPicture:v,disableRemotePlayback:v,exportParts:Ie,part:V,prefix:null,property:null,results:S,security:null,unselectable:null},space:"html",transform:ir}),Ei=Fe({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:te,accentHeight:S,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:S,amplitude:S,arabicForm:null,ascent:S,attributeName:null,attributeType:null,azimuth:S,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:S,by:null,calcMode:null,capHeight:S,className:V,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:S,diffuseConstant:S,direction:null,display:null,dur:null,divisor:S,dominantBaseline:null,download:v,dx:null,dy:null,edgeMode:null,editable:null,elevation:S,enableBackground:null,end:null,event:null,exponent:S,externalResourcesRequired:null,fill:null,fillOpacity:S,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:Ie,g2:Ie,glyphName:Ie,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:S,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:S,horizOriginX:S,horizOriginY:S,id:null,ideographic:S,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:S,k:S,k1:S,k2:S,k3:S,k4:S,kernelMatrix:te,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:S,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:S,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:S,overlineThickness:S,paintOrder:null,panose1:null,path:null,pathLength:S,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:V,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:S,pointsAtY:S,pointsAtZ:S,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:te,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:te,rev:te,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:te,requiredFeatures:te,requiredFonts:te,requiredFormats:te,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:S,specularExponent:S,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:S,strikethroughThickness:S,string:null,stroke:null,strokeDashArray:te,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:S,strokeOpacity:S,strokeWidth:null,style:null,surfaceScale:S,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:te,tabIndex:S,tableValues:null,target:null,targetX:S,targetY:S,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:te,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:S,underlineThickness:S,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:S,values:null,vAlphabetic:S,vMathematical:S,vectorEffect:null,vHanging:S,vIdeographic:S,version:null,vertAdvY:S,vertOriginX:S,vertOriginY:S,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:S,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:rr}),lr=Fe({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()}}),or=Fe({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:ir}),ur=Fe({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Ii=/[A-Z]/g,ft=/-[a-z]/g,Ai=/^data[-\w.:]+$/i;function Ti(e,t){const n=Tn(t);let r=t,i=ee;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Ai.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(ft,zi);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!ft.test(o)){let l=o.replace(Ii,Pi);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}i=Nn}return new i(r,t)}function Pi(e){return"-"+e.toLowerCase()}function zi(e){return e.charAt(1).toUpperCase()}const vi=nr([tr,Ci,lr,or,ur],"html"),jn=nr([tr,Ei,lr,or,ur],"svg");function Di(e){return e.join(" ").trim()}var Hn={},ht=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Li=/\n/g,Fi=/^\s*/,_i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Ri=/^:\s*/,Oi=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Mi=/^[;\s]*/,Bi=/^\s+|\s+$/g,Ni=`
|
|
2
|
+
`,pt="/",mt="*",Ee="",ji="comment",Hi="declaration";function Vi(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(d){var x=d.match(Li);x&&(n+=x.length);var C=d.lastIndexOf(Ni);r=~C?d.length-C:r+d.length}function o(){var d={line:n,column:r};return function(x){return x.position=new l(d),s(),x}}function l(d){this.start=d,this.end={line:n,column:r},this.source=t.source}l.prototype.content=e;function u(d){var x=new Error(t.source+":"+n+":"+r+": "+d);if(x.reason=d,x.filename=t.source,x.line=n,x.column=r,x.source=e,!t.silent)throw x}function a(d){var x=d.exec(e);if(x){var C=x[0];return i(C),e=e.slice(C.length),x}}function s(){a(Fi)}function f(d){var x;for(d=d||[];x=c();)x!==!1&&d.push(x);return d}function c(){var d=o();if(!(pt!=e.charAt(0)||mt!=e.charAt(1))){for(var x=2;Ee!=e.charAt(x)&&(mt!=e.charAt(x)||pt!=e.charAt(x+1));)++x;if(x+=2,Ee===e.charAt(x-1))return u("End of comment missing");var C=e.slice(2,x-2);return r+=2,i(C),e=e.slice(x),r+=2,d({type:ji,comment:C})}}function p(){var d=o(),x=a(_i);if(x){if(c(),!a(Ri))return u("property missing ':'");var C=a(Oi),y=d({type:Hi,property:gt(x[0].replace(ht,Ee)),value:C?gt(C[0].replace(ht,Ee)):Ee});return a(Mi),y}}function h(){var d=[];f(d);for(var x;x=p();)x!==!1&&(d.push(x),f(d));return d}return s(),h()}function gt(e){return e?e.replace(Bi,Ee):Ee}var Ui=Vi,$i=nn&&nn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Hn,"__esModule",{value:!0});Hn.default=Wi;const qi=$i(Ui);function Wi(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,qi.default)(e),i=typeof t=="function";return r.forEach(o=>{if(o.type!=="declaration")return;const{property:l,value:u}=o;i?t(l,u,o):u&&(n=n||{},n[l]=u)}),n}var un={};Object.defineProperty(un,"__esModule",{value:!0});un.camelCase=void 0;var Yi=/^--[a-zA-Z0-9_-]+$/,Qi=/-([a-z])/g,Xi=/^[^-]+$/,Gi=/^-(webkit|moz|ms|o|khtml)-/,Ki=/^-(ms)-/,Ji=function(e){return!e||Xi.test(e)||Yi.test(e)},Zi=function(e,t){return t.toUpperCase()},dt=function(e,t){return"".concat(t,"-")},el=function(e,t){return t===void 0&&(t={}),Ji(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(Ki,dt):e=e.replace(Gi,dt),e.replace(Qi,Zi))};un.camelCase=el;var nl=nn&&nn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},tl=nl(Hn),rl=un;function vn(e,t){var n={};return!e||typeof e!="string"||(0,tl.default)(e,function(r,i){r&&i&&(n[(0,rl.camelCase)(r,t)]=i)}),n}vn.default=vn;var il=vn;const ll=er(il),ar=sr("end"),Vn=sr("start");function sr(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 ol(e){const t=Vn(e),n=ar(e);if(t&&n)return{start:t,end:n}}function je(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?yt(e.position):"start"in e||"end"in e?yt(e):"line"in e||"column"in e?Dn(e):""}function Dn(e){return kt(e&&e.line)+":"+kt(e&&e.column)}function yt(e){return Dn(e&&e.start)+"-"+Dn(e&&e.end)}function kt(e){return e&&typeof e=="number"?e:1}class K extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},l=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(l=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const a=r.indexOf(":");a===-1?o.ruleId=r:(o.source=r.slice(0,a),o.ruleId=r.slice(a+1))}if(!o.place&&o.ancestors&&o.ancestors){const a=o.ancestors[o.ancestors.length-1];a&&(o.place=a.position)}const u=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=u?u.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=u?u.line:void 0,this.name=je(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=l&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}K.prototype.file="";K.prototype.name="";K.prototype.reason="";K.prototype.message="";K.prototype.stack="";K.prototype.column=void 0;K.prototype.line=void 0;K.prototype.ancestors=void 0;K.prototype.cause=void 0;K.prototype.fatal=void 0;K.prototype.place=void 0;K.prototype.ruleId=void 0;K.prototype.source=void 0;const Un={}.hasOwnProperty,ul=new Map,al=/[A-Z]/g,sl=new Set(["table","tbody","thead","tfoot","tr"]),cl=new Set(["td","th"]),cr="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Yc(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=kl(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=yl(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"?jn:vi,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 fl(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return hl(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return ml(e,t,n);if(t.type==="mdxjsEsm")return pl(e,t);if(t.type==="root")return gl(e,t,n);if(t.type==="text")return dl(e,t)}function fl(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=jn,e.schema=i),e.ancestors.push(t);const o=pr(e,t.tagName,!1),l=xl(e,t);let u=qn(e,t);return sl.has(t.tagName)&&(u=u.filter(function(a){return typeof a=="string"?!wi(a):!0})),hr(e,l,o,t),$n(l,u),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function hl(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)}Ue(e,t.position)}function pl(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ue(e,t.position)}function ml(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=jn,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:pr(e,t.name,!0),l=bl(e,t),u=qn(e,t);return hr(e,l,o,t),$n(l,u),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function gl(e,t,n){const r={};return $n(r,qn(e,t)),e.create(t,e.Fragment,r,n)}function dl(e,t){return t.value}function hr(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function $n(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function yl(e,t,n){return r;function r(i,o,l,u){const s=Array.isArray(l.children)?n:t;return u?s(o,l,u):s(o,l)}}function kl(e,t){return n;function n(r,i,o,l){const u=Array.isArray(o.children),a=Vn(r);return t(i,o,l,u,{columnNumber:a?a.column-1:void 0,fileName:e,lineNumber:a?a.line:void 0},void 0)}}function xl(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Un.call(t.properties,i)){const o=wl(e,i,t.properties[i]);if(o){const[l,u]=o;e.tableCellAlignToStyle&&l==="align"&&typeof u=="string"&&cl.has(t.tagName)?r=u:n[l]=u}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function bl(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 u=l.properties[0];u.type,Object.assign(n,e.evaluater.evaluateExpression(u.argument))}else Ue(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const u=r.value.data.estree.body[0];u.type,o=e.evaluater.evaluateExpression(u.expression)}else Ue(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function qn(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:ul;for(;++r<t.children.length;){const o=t.children[r];let l;if(e.passKeys){const a=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(a){const s=i.get(a)||0;l=a+"-"+s,i.set(a,s+1)}}const u=fr(e,o,l);u!==void 0&&n.push(u)}return n}function wl(e,t,n){const r=Ti(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?di(n):Di(n)),r.property==="style"){let i=typeof n=="object"?n:Sl(e,String(n));return e.stylePropertyNameCase==="css"&&(i=Cl(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?gi[r.property]||r.property:r.attribute,n]}}function Sl(e,t){try{return ll(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new K("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=cr+"#cannot-parse-style-attribute",i}}function pr(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 u=at(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};l=l?{type:"MemberExpression",object:l,property:u,computed:!!(o&&u.type==="Literal"),optional:!1}:u}r=l}else r=at(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return Un.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Ue(e)}function Ue(e,t){const n=new K("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=cr+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Cl(e){const t={};let n;for(n in e)Un.call(e,n)&&(t[El(n)]=e[n]);return t}function El(e){let t=e.replace(al,Il);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Il(e){return"-"+e.toLowerCase()}const Qc={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"]},Al={};function Wn(e,t){const n=Al,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return mr(e,r,i)}function mr(e,t,n){if(Tl(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 xt(e.children,t,n)}return Array.isArray(e)?xt(e,t,n):""}function xt(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=mr(e[i],t,n);return r.join("")}function Tl(e){return!!(e&&typeof e=="object")}const bt=document.createElement("i");function Yn(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 re(e,t,n,r){const i=e.length;let o=0,l;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)l=Array.from(r),l.unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);o<r.length;)l=r.slice(o,o+1e4),l.unshift(t,0),e.splice(...l),o+=1e4,t+=1e4}function ie(e,t){return e.length>0?(re(e,e.length,0,t),e):t}const wt={}.hasOwnProperty;function gr(e){const t={};let n=-1;for(;++n<e.length;)Pl(t,e[n]);return t}function Pl(e,t){let n;for(n in t){const i=(wt.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let l;if(o)for(l in o){wt.call(i,l)||(i[l]=[]);const u=o[l];zl(i[l],Array.isArray(u)?u:u?[u]:[])}}}function zl(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);re(e,0,0,r)}function dr(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 J=xe(/[A-Za-z]/),G=xe(/[\dA-Za-z]/),vl=xe(/[#-'*+\--9=?A-Z^-~]/);function tn(e){return e!==null&&(e<32||e===127)}const Ln=xe(/\d/),Dl=xe(/[\dA-Fa-f]/),Ll=xe(/[!-/:-@[-`{-~]/);function z(e){return e!==null&&e<-2}function U(e){return e!==null&&(e<0||e===32)}function _(e){return e===-2||e===-1||e===32}const an=xe(new RegExp("\\p{P}|\\p{S}","u")),Ae=xe(/\s/);function xe(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function _e(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let l="";if(o===37&&G(e.charCodeAt(n+1))&&G(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 u=e.charCodeAt(n+1);o<56320&&u>56319&&u<57344?(l=String.fromCharCode(o,u),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 O(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return l;function l(a){return _(a)?(e.enter(n),u(a)):t(a)}function u(a){return _(a)&&o++<i?(e.consume(a),u):(e.exit(n),t(a))}}const Fl={tokenize:_l};function _l(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),O(e,t,"linePrefix")}function i(u){return e.enter("paragraph"),o(u)}function o(u){const a=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=a),n=a,l(u)}function l(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return z(u)?(e.consume(u),e.exit("chunkText"),o):(e.consume(u),l)}}const Rl={tokenize:Ol},St={tokenize:Ml};function Ol(e){const t=this,n=[];let r=0,i,o,l;return u;function u(E){if(r<n.length){const L=n[r];return t.containerState=L[1],e.attempt(L[0].continuation,a,s)(E)}return s(E)}function a(E){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&A();const L=t.events.length;let F=L,w;for(;F--;)if(t.events[F][0]==="exit"&&t.events[F][1].type==="chunkFlow"){w=t.events[F][1].end;break}y(r);let M=L;for(;M<t.events.length;)t.events[M][1].end={...w},M++;return re(t.events,F+1,0,t.events.slice(L)),t.events.length=M,s(E)}return u(E)}function s(E){if(r===n.length){if(!i)return p(E);if(i.currentConstruct&&i.currentConstruct.concrete)return d(E);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(St,f,c)(E)}function f(E){return i&&A(),y(r),p(E)}function c(E){return t.parser.lazy[t.now().line]=r!==n.length,l=t.now().offset,d(E)}function p(E){return t.containerState={},e.attempt(St,h,d)(E)}function h(E){return r++,n.push([t.currentConstruct,t.containerState]),p(E)}function d(E){if(E===null){i&&A(),y(0),e.consume(E);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),x(E)}function x(E){if(E===null){C(e.exit("chunkFlow"),!0),y(0),e.consume(E);return}return z(E)?(e.consume(E),C(e.exit("chunkFlow")),r=0,t.interrupt=void 0,u):(e.consume(E),x)}function C(E,L){const F=t.sliceStream(E);if(L&&F.push(null),E.previous=o,o&&(o.next=E),o=E,i.defineSkip(E.start),i.write(F),t.parser.lazy[E.start.line]){let w=i.events.length;for(;w--;)if(i.events[w][1].start.offset<l&&(!i.events[w][1].end||i.events[w][1].end.offset>l))return;const M=t.events.length;let $=M,N,k;for(;$--;)if(t.events[$][0]==="exit"&&t.events[$][1].type==="chunkFlow"){if(N){k=t.events[$][1].end;break}N=!0}for(y(r),w=M;w<t.events.length;)t.events[w][1].end={...k},w++;re(t.events,$+1,0,t.events.slice(M)),t.events.length=w}}function y(E){let L=n.length;for(;L-- >E;){const F=n[L];t.containerState=F[1],F[0].exit.call(t,e)}n.length=E}function A(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Ml(e,t,n){return O(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Le(e){if(e===null||U(e)||Ae(e))return 1;if(an(e))return 2}function sn(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 Fn={name:"attention",resolveAll:Bl,tokenize:Nl};function Bl(e,t){let n=-1,r,i,o,l,u,a,s,f;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;a=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const c={...e[r][1].end},p={...e[n][1].start};Ct(c,-a),Ct(p,a),l={type:a>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},u={type:a>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},o={type:a>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:a>1?"strong":"emphasis",start:{...l.start},end:{...u.end}},e[r][1].end={...l.start},e[n][1].start={...u.end},s=[],e[r][1].end.offset-e[r][1].start.offset&&(s=ie(s,[["enter",e[r][1],t],["exit",e[r][1],t]])),s=ie(s,[["enter",i,t],["enter",l,t],["exit",l,t],["enter",o,t]]),s=ie(s,sn(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),s=ie(s,[["exit",o,t],["enter",u,t],["exit",u,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,s=ie(s,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,re(e,r-1,n-r+3,s),n=r+s.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Nl(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Le(r);let o;return l;function l(a){return o=a,e.enter("attentionSequence"),u(a)}function u(a){if(a===o)return e.consume(a),u;const s=e.exit("attentionSequence"),f=Le(a),c=!f||f===2&&i||n.includes(a),p=!i||i===2&&f||n.includes(r);return s._open=!!(o===42?c:c&&(i||!p)),s._close=!!(o===42?p:p&&(f||!c)),t(a)}}function Ct(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const jl={name:"autolink",tokenize:Hl};function Hl(e,t,n){let r=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(h){return J(h)?(e.consume(h),l):h===64?n(h):s(h)}function l(h){return h===43||h===45||h===46||G(h)?(r=1,u(h)):s(h)}function u(h){return h===58?(e.consume(h),r=0,a):(h===43||h===45||h===46||G(h))&&r++<32?(e.consume(h),u):(r=0,s(h))}function a(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),a)}function s(h){return h===64?(e.consume(h),f):vl(h)?(e.consume(h),s):n(h)}function f(h){return G(h)?c(h):n(h)}function c(h){return h===46?(e.consume(h),r=0,f):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):p(h)}function p(h){if((h===45||G(h))&&r++<63){const d=h===45?p:c;return e.consume(h),d}return n(h)}}const We={partial:!0,tokenize:Vl};function Vl(e,t,n){return r;function r(o){return _(o)?O(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||z(o)?t(o):n(o)}}const yr={continuation:{tokenize:$l},exit:ql,name:"blockQuote",tokenize:Ul};function Ul(e,t,n){const r=this;return i;function i(l){if(l===62){const u=r.containerState;return u.open||(e.enter("blockQuote",{_container:!0}),u.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 $l(e,t,n){const r=this;return i;function i(l){return _(l)?O(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):o(l)}function o(l){return e.attempt(yr,t,n)(l)}}function ql(e){e.exit("blockQuote")}const kr={name:"characterEscape",tokenize:Wl};function Wl(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 Ll(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const xr={name:"characterReference",tokenize:Yl};function Yl(e,t,n){const r=this;let i=0,o,l;return u;function u(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),a}function a(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),o=31,l=G,f(c))}function s(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,l=Dl,f):(e.enter("characterReferenceValue"),o=7,l=Ln,f(c))}function f(c){if(c===59&&i){const p=e.exit("characterReferenceValue");return l===G&&!Yn(r.sliceSerialize(p))?n(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return l(c)&&i++<o?(e.consume(c),f):n(c)}}const Et={partial:!0,tokenize:Xl},It={concrete:!0,name:"codeFenced",tokenize:Ql};function Ql(e,t,n){const r=this,i={partial:!0,tokenize:F};let o=0,l=0,u;return a;function a(w){return s(w)}function s(w){const M=r.events[r.events.length-1];return o=M&&M[1].type==="linePrefix"?M[2].sliceSerialize(M[1],!0).length:0,u=w,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(w)}function f(w){return w===u?(l++,e.consume(w),f):l<3?n(w):(e.exit("codeFencedFenceSequence"),_(w)?O(e,c,"whitespace")(w):c(w))}function c(w){return w===null||z(w)?(e.exit("codeFencedFence"),r.interrupt?t(w):e.check(Et,x,L)(w)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(w))}function p(w){return w===null||z(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(w)):_(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),O(e,h,"whitespace")(w)):w===96&&w===u?n(w):(e.consume(w),p)}function h(w){return w===null||z(w)?c(w):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(w))}function d(w){return w===null||z(w)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(w)):w===96&&w===u?n(w):(e.consume(w),d)}function x(w){return e.attempt(i,L,C)(w)}function C(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),y}function y(w){return o>0&&_(w)?O(e,A,"linePrefix",o+1)(w):A(w)}function A(w){return w===null||z(w)?e.check(Et,x,L)(w):(e.enter("codeFlowValue"),E(w))}function E(w){return w===null||z(w)?(e.exit("codeFlowValue"),A(w)):(e.consume(w),E)}function L(w){return e.exit("codeFenced"),t(w)}function F(w,M,$){let N=0;return k;function k(B){return w.enter("lineEnding"),w.consume(B),w.exit("lineEnding"),T}function T(B){return w.enter("codeFencedFence"),_(B)?O(w,P,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):P(B)}function P(B){return B===u?(w.enter("codeFencedFenceSequence"),j(B)):$(B)}function j(B){return B===u?(N++,w.consume(B),j):N>=l?(w.exit("codeFencedFenceSequence"),_(B)?O(w,q,"whitespace")(B):q(B)):$(B)}function q(B){return B===null||z(B)?(w.exit("codeFencedFence"),M(B)):$(B)}}}function Xl(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 mn={name:"codeIndented",tokenize:Kl},Gl={partial:!0,tokenize:Jl};function Kl(e,t,n){const r=this;return i;function i(s){return e.enter("codeIndented"),O(e,o,"linePrefix",5)(s)}function o(s){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?l(s):n(s)}function l(s){return s===null?a(s):z(s)?e.attempt(Gl,l,a)(s):(e.enter("codeFlowValue"),u(s))}function u(s){return s===null||z(s)?(e.exit("codeFlowValue"),l(s)):(e.consume(s),u)}function a(s){return e.exit("codeIndented"),t(s)}}function Jl(e,t,n){const r=this;return i;function i(l){return r.parser.lazy[r.now().line]?n(l):z(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):O(e,o,"linePrefix",5)(l)}function o(l){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(l):z(l)?i(l):n(l)}}const Zl={name:"codeText",previous:no,resolve:eo,tokenize:to};function eo(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 no(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function to(e,t,n){let r=0,i,o;return l;function l(c){return e.enter("codeText"),e.enter("codeTextSequence"),u(c)}function u(c){return c===96?(e.consume(c),r++,u):(e.exit("codeTextSequence"),a(c))}function a(c){return c===null?n(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),a):c===96?(o=e.enter("codeTextSequence"),i=0,f(c)):z(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),a):(e.enter("codeTextData"),s(c))}function s(c){return c===null||c===32||c===96||z(c)?(e.exit("codeTextData"),a(c)):(e.consume(c),s)}function f(c){return c===96?(e.consume(c),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(c)):(o.type="codeTextData",s(c))}}class ro{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 br(e){const t={};let n=-1,r,i,o,l,u,a,s;const f=new ro(e);for(;++n<f.length;){for(;n in t;)n=t[n];if(r=f.get(n),n&&r[1].type==="chunkFlow"&&f.get(n-1)[1].type==="listItemPrefix"&&(a=r[1]._tokenizer.events,o=0,o<a.length&&a[o][1].type==="lineEndingBlank"&&(o+=2),o<a.length&&a[o][1].type==="content"))for(;++o<a.length&&a[o][1].type!=="content";)a[o][1].type==="chunkText"&&(a[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,io(f,n)),n=t[n],s=!0);else if(r[1]._container){for(o=n,i=void 0;o--;)if(l=f.get(o),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),l[1].type="lineEnding",i=o);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;i&&(r[1].end={...f.get(i)[1].start},u=f.slice(i,n),u.unshift(r),f.splice(i,n-i+1,u))}}return re(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!s}function io(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 u=l.events,a=[],s={};let f,c,p=-1,h=n,d=0,x=0;const C=[x];for(;h;){for(;e.get(++i)[1]!==h;);o.push(i),h._tokenizer||(f=r.sliceStream(h),h.next||f.push(null),c&&l.defineSkip(h.start),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(f),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),c=h,h=h.next}for(h=n;++p<u.length;)u[p][0]==="exit"&&u[p-1][0]==="enter"&&u[p][1].type===u[p-1][1].type&&u[p][1].start.line!==u[p][1].end.line&&(x=p+1,C.push(x),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 y=u.slice(C[p],C[p+1]),A=o.pop();a.push([A,A+y.length-1]),e.splice(A,2,y)}for(a.reverse(),p=-1;++p<a.length;)s[d+a[p][0]]=d+a[p][1],d+=a[p][1]-a[p][0]-1;return s}const lo={resolve:uo,tokenize:ao},oo={partial:!0,tokenize:so};function uo(e){return br(e),e}function ao(e,t){let n;return r;function r(u){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(u)}function i(u){return u===null?o(u):z(u)?e.check(oo,l,o)(u):(e.consume(u),i)}function o(u){return e.exit("chunkContent"),e.exit("content"),t(u)}function l(u){return e.consume(u),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function so(e,t,n){const r=this;return i;function i(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),O(e,o,"linePrefix")}function o(l){if(l===null||z(l))return n(l);const u=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(l):e.interrupt(r.parser.constructs.flow,n,t)(l)}}function wr(e,t,n,r,i,o,l,u,a){const s=a||Number.POSITIVE_INFINITY;let f=0;return c;function c(y){return y===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(y),e.exit(o),p):y===null||y===32||y===41||tn(y)?n(y):(e.enter(r),e.enter(l),e.enter(u),e.enter("chunkString",{contentType:"string"}),x(y))}function p(y){return y===62?(e.enter(o),e.consume(y),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(u),e.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===62?(e.exit("chunkString"),e.exit(u),p(y)):y===null||y===60||z(y)?n(y):(e.consume(y),y===92?d:h)}function d(y){return y===60||y===62||y===92?(e.consume(y),h):h(y)}function x(y){return!f&&(y===null||y===41||U(y))?(e.exit("chunkString"),e.exit(u),e.exit(l),e.exit(r),t(y)):f<s&&y===40?(e.consume(y),f++,x):y===41?(e.consume(y),f--,x):y===null||y===32||y===40||tn(y)?n(y):(e.consume(y),y===92?C:x)}function C(y){return y===40||y===41||y===92?(e.consume(y),x):x(y)}}function Sr(e,t,n,r,i,o){const l=this;let u=0,a;return s;function s(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(o),f}function f(h){return u>999||h===null||h===91||h===93&&!a||h===94&&!u&&"_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):z(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===null||h===91||h===93||z(h)||u++>999?(e.exit("chunkString"),f(h)):(e.consume(h),a||(a=!_(h)),h===92?p:c)}function p(h){return h===91||h===92||h===93?(e.consume(h),u++,c):c(h)}}function Cr(e,t,n,r,i,o){let l;return u;function u(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,a):n(p)}function a(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),a(l)):p===null?n(p):z(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),O(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===l||p===null||z(p)?(e.exit("chunkString"),s(p)):(e.consume(p),p===92?c:f)}function c(p){return p===l||p===92?(e.consume(p),f):f(p)}}function He(e,t){let n;return r;function r(i){return z(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):_(i)?O(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const co={name:"definition",tokenize:ho},fo={partial:!0,tokenize:po};function ho(e,t,n){const r=this;let i;return o;function o(h){return e.enter("definition"),l(h)}function l(h){return Sr.call(r,e,u,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function u(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"),a):n(h)}function a(h){return U(h)?He(e,s)(h):s(h)}function s(h){return wr(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function f(h){return e.attempt(fo,c,c)(h)}function c(h){return _(h)?O(e,p,"whitespace")(h):p(h)}function p(h){return h===null||z(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}function po(e,t,n){return r;function r(u){return U(u)?He(e,i)(u):n(u)}function i(u){return Cr(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function o(u){return _(u)?O(e,l,"whitespace")(u):l(u)}function l(u){return u===null||z(u)?t(u):n(u)}}const mo={name:"hardBreakEscape",tokenize:go};function go(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return z(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const yo={name:"headingAtx",resolve:ko,tokenize:xo};function ko(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},re(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function xo(e,t,n){let r=0;return i;function i(f){return e.enter("atxHeading"),o(f)}function o(f){return e.enter("atxHeadingSequence"),l(f)}function l(f){return f===35&&r++<6?(e.consume(f),l):f===null||U(f)?(e.exit("atxHeadingSequence"),u(f)):n(f)}function u(f){return f===35?(e.enter("atxHeadingSequence"),a(f)):f===null||z(f)?(e.exit("atxHeading"),t(f)):_(f)?O(e,u,"whitespace")(f):(e.enter("atxHeadingText"),s(f))}function a(f){return f===35?(e.consume(f),a):(e.exit("atxHeadingSequence"),u(f))}function s(f){return f===null||f===35||U(f)?(e.exit("atxHeadingText"),u(f)):(e.consume(f),s)}}const bo=["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"],At=["pre","script","style","textarea"],wo={concrete:!0,name:"htmlFlow",resolveTo:Eo,tokenize:Io},So={partial:!0,tokenize:To},Co={partial:!0,tokenize:Ao};function Eo(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 Io(e,t,n){const r=this;let i,o,l,u,a;return s;function s(g){return f(g)}function f(g){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(g),c}function c(g){return g===33?(e.consume(g),p):g===47?(e.consume(g),o=!0,x):g===63?(e.consume(g),i=3,r.interrupt?t:m):J(g)?(e.consume(g),l=String.fromCharCode(g),C):n(g)}function p(g){return g===45?(e.consume(g),i=2,h):g===91?(e.consume(g),i=5,u=0,d):J(g)?(e.consume(g),i=4,r.interrupt?t:m):n(g)}function h(g){return g===45?(e.consume(g),r.interrupt?t:m):n(g)}function d(g){const ue="CDATA[";return g===ue.charCodeAt(u++)?(e.consume(g),u===ue.length?r.interrupt?t:P:d):n(g)}function x(g){return J(g)?(e.consume(g),l=String.fromCharCode(g),C):n(g)}function C(g){if(g===null||g===47||g===62||U(g)){const ue=g===47,be=l.toLowerCase();return!ue&&!o&&At.includes(be)?(i=1,r.interrupt?t(g):P(g)):bo.includes(l.toLowerCase())?(i=6,ue?(e.consume(g),y):r.interrupt?t(g):P(g)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(g):o?A(g):E(g))}return g===45||G(g)?(e.consume(g),l+=String.fromCharCode(g),C):n(g)}function y(g){return g===62?(e.consume(g),r.interrupt?t:P):n(g)}function A(g){return _(g)?(e.consume(g),A):k(g)}function E(g){return g===47?(e.consume(g),k):g===58||g===95||J(g)?(e.consume(g),L):_(g)?(e.consume(g),E):k(g)}function L(g){return g===45||g===46||g===58||g===95||G(g)?(e.consume(g),L):F(g)}function F(g){return g===61?(e.consume(g),w):_(g)?(e.consume(g),F):E(g)}function w(g){return g===null||g===60||g===61||g===62||g===96?n(g):g===34||g===39?(e.consume(g),a=g,M):_(g)?(e.consume(g),w):$(g)}function M(g){return g===a?(e.consume(g),a=null,N):g===null||z(g)?n(g):(e.consume(g),M)}function $(g){return g===null||g===34||g===39||g===47||g===60||g===61||g===62||g===96||U(g)?F(g):(e.consume(g),$)}function N(g){return g===47||g===62||_(g)?E(g):n(g)}function k(g){return g===62?(e.consume(g),T):n(g)}function T(g){return g===null||z(g)?P(g):_(g)?(e.consume(g),T):n(g)}function P(g){return g===45&&i===2?(e.consume(g),X):g===60&&i===1?(e.consume(g),Y):g===62&&i===4?(e.consume(g),oe):g===63&&i===3?(e.consume(g),m):g===93&&i===5?(e.consume(g),he):z(g)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(So,pe,j)(g)):g===null||z(g)?(e.exit("htmlFlowData"),j(g)):(e.consume(g),P)}function j(g){return e.check(Co,q,pe)(g)}function q(g){return e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),B}function B(g){return g===null||z(g)?j(g):(e.enter("htmlFlowData"),P(g))}function X(g){return g===45?(e.consume(g),m):P(g)}function Y(g){return g===47?(e.consume(g),l="",le):P(g)}function le(g){if(g===62){const ue=l.toLowerCase();return At.includes(ue)?(e.consume(g),oe):P(g)}return J(g)&&l.length<8?(e.consume(g),l+=String.fromCharCode(g),le):P(g)}function he(g){return g===93?(e.consume(g),m):P(g)}function m(g){return g===62?(e.consume(g),oe):g===45&&i===2?(e.consume(g),m):P(g)}function oe(g){return g===null||z(g)?(e.exit("htmlFlowData"),pe(g)):(e.consume(g),oe)}function pe(g){return e.exit("htmlFlow"),t(g)}}function Ao(e,t,n){const r=this;return i;function i(l){return z(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):n(l)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}function To(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(We,t,n)}}const Po={name:"htmlText",tokenize:zo};function zo(e,t,n){const r=this;let i,o,l;return u;function u(m){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(m),a}function a(m){return m===33?(e.consume(m),s):m===47?(e.consume(m),F):m===63?(e.consume(m),E):J(m)?(e.consume(m),$):n(m)}function s(m){return m===45?(e.consume(m),f):m===91?(e.consume(m),o=0,d):J(m)?(e.consume(m),A):n(m)}function f(m){return m===45?(e.consume(m),h):n(m)}function c(m){return m===null?n(m):m===45?(e.consume(m),p):z(m)?(l=c,Y(m)):(e.consume(m),c)}function p(m){return m===45?(e.consume(m),h):c(m)}function h(m){return m===62?X(m):m===45?p(m):c(m)}function d(m){const oe="CDATA[";return m===oe.charCodeAt(o++)?(e.consume(m),o===oe.length?x:d):n(m)}function x(m){return m===null?n(m):m===93?(e.consume(m),C):z(m)?(l=x,Y(m)):(e.consume(m),x)}function C(m){return m===93?(e.consume(m),y):x(m)}function y(m){return m===62?X(m):m===93?(e.consume(m),y):x(m)}function A(m){return m===null||m===62?X(m):z(m)?(l=A,Y(m)):(e.consume(m),A)}function E(m){return m===null?n(m):m===63?(e.consume(m),L):z(m)?(l=E,Y(m)):(e.consume(m),E)}function L(m){return m===62?X(m):E(m)}function F(m){return J(m)?(e.consume(m),w):n(m)}function w(m){return m===45||G(m)?(e.consume(m),w):M(m)}function M(m){return z(m)?(l=M,Y(m)):_(m)?(e.consume(m),M):X(m)}function $(m){return m===45||G(m)?(e.consume(m),$):m===47||m===62||U(m)?N(m):n(m)}function N(m){return m===47?(e.consume(m),X):m===58||m===95||J(m)?(e.consume(m),k):z(m)?(l=N,Y(m)):_(m)?(e.consume(m),N):X(m)}function k(m){return m===45||m===46||m===58||m===95||G(m)?(e.consume(m),k):T(m)}function T(m){return m===61?(e.consume(m),P):z(m)?(l=T,Y(m)):_(m)?(e.consume(m),T):N(m)}function P(m){return m===null||m===60||m===61||m===62||m===96?n(m):m===34||m===39?(e.consume(m),i=m,j):z(m)?(l=P,Y(m)):_(m)?(e.consume(m),P):(e.consume(m),q)}function j(m){return m===i?(e.consume(m),i=void 0,B):m===null?n(m):z(m)?(l=j,Y(m)):(e.consume(m),j)}function q(m){return m===null||m===34||m===39||m===60||m===61||m===96?n(m):m===47||m===62||U(m)?N(m):(e.consume(m),q)}function B(m){return m===47||m===62||U(m)?N(m):n(m)}function X(m){return m===62?(e.consume(m),e.exit("htmlTextData"),e.exit("htmlText"),t):n(m)}function Y(m){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),le}function le(m){return _(m)?O(e,he,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m):he(m)}function he(m){return e.enter("htmlTextData"),l(m)}}const Qn={name:"labelEnd",resolveAll:Fo,resolveTo:_o,tokenize:Ro},vo={tokenize:Oo},Do={tokenize:Mo},Lo={tokenize:Bo};function Fo(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&re(e,0,e.length,n),e}function _o(e,t){let n=e.length,r=0,i,o,l,u;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(l){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(l=n);const a={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},s={type:"label",start:{...e[o][1].start},end:{...e[l][1].end}},f={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[l-2][1].start}};return u=[["enter",a,t],["enter",s,t]],u=ie(u,e.slice(o+1,o+r+3)),u=ie(u,[["enter",f,t]]),u=ie(u,sn(t.parser.constructs.insideSpan.null,e.slice(o+r+4,l-3),t)),u=ie(u,[["exit",f,t],e[l-2],e[l-1],["exit",s,t]]),u=ie(u,e.slice(l+1)),u=ie(u,[["exit",a,t]]),re(e,o,e.length,u),e}function Ro(e,t,n){const r=this;let i=r.events.length,o,l;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return u;function u(p){return o?o._inactive?c(p):(l=r.parser.defined.includes(se(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),a):n(p)}function a(p){return p===40?e.attempt(vo,f,l?f:c)(p):p===91?e.attempt(Do,f,l?s:c)(p):l?f(p):c(p)}function s(p){return e.attempt(Lo,f,c)(p)}function f(p){return t(p)}function c(p){return o._balanced=!0,n(p)}}function Oo(e,t,n){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return U(c)?He(e,o)(c):o(c)}function o(c){return c===41?f(c):wr(e,l,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function l(c){return U(c)?He(e,a)(c):f(c)}function u(c){return n(c)}function a(c){return c===34||c===39||c===40?Cr(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function s(c){return U(c)?He(e,f)(c):f(c)}function f(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),t):n(c)}}function Mo(e,t,n){const r=this;return i;function i(u){return Sr.call(r,e,o,l,"reference","referenceMarker","referenceString")(u)}function o(u){return r.parser.defined.includes(se(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(u):n(u)}function l(u){return n(u)}}function Bo(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 No={name:"labelStartImage",resolveAll:Qn.resolveAll,tokenize:jo};function jo(e,t,n){const r=this;return i;function i(u){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(u),e.exit("labelImageMarker"),o}function o(u){return u===91?(e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelImage"),l):n(u)}function l(u){return u===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(u):t(u)}}const Ho={name:"labelStartLink",resolveAll:Qn.resolveAll,tokenize:Vo};function Vo(e,t,n){const r=this;return i;function i(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),o}function o(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const gn={name:"lineEnding",tokenize:Uo};function Uo(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),O(e,t,"linePrefix")}}const Ze={name:"thematicBreak",tokenize:$o};function $o(e,t,n){let r=0,i;return o;function o(s){return e.enter("thematicBreak"),l(s)}function l(s){return i=s,u(s)}function u(s){return s===i?(e.enter("thematicBreakSequence"),a(s)):r>=3&&(s===null||z(s))?(e.exit("thematicBreak"),t(s)):n(s)}function a(s){return s===i?(e.consume(s),r++,a):(e.exit("thematicBreakSequence"),_(s)?O(e,u,"whitespace")(s):u(s))}}const Z={continuation:{tokenize:Qo},exit:Go,name:"list",tokenize:Yo},qo={partial:!0,tokenize:Ko},Wo={partial:!0,tokenize:Xo};function Yo(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 u;function u(h){const d=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(d==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:Ln(h)){if(r.containerState.type||(r.containerState.type=d,e.enter(d,{_container:!0})),d==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(Ze,n,s)(h):s(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(h)}return n(h)}function a(h){return Ln(h)&&++l<10?(e.consume(h),a):(!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(We,r.interrupt?n:f,e.attempt(qo,p,c))}function f(h){return r.containerState.initialBlankLine=!0,o++,p(h)}function c(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 Qo(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(We,i,o);function i(u){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,O(e,t,"listItemIndent",r.containerState.size+1)(u)}function o(u){return r.containerState.furtherBlankLines||!_(u)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(u)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Wo,t,l)(u))}function l(u){return r.containerState._closeFlow=!0,r.interrupt=void 0,O(e,e.attempt(Z,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function Xo(e,t,n){const r=this;return O(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 Go(e){e.exit(this.containerState.type)}function Ko(e,t,n){const r=this;return O(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 Tt={name:"setextUnderline",resolveTo:Jo,tokenize:Zo};function Jo(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const l={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",l,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=l,e.push(["exit",l,t]),e}function Zo(e,t,n){const r=this;let i;return o;function o(s){let f=r.events.length,c;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){c=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),i=s,l(s)):n(s)}function l(s){return e.enter("setextHeadingLineSequence"),u(s)}function u(s){return s===i?(e.consume(s),u):(e.exit("setextHeadingLineSequence"),_(s)?O(e,a,"lineSuffix")(s):a(s))}function a(s){return s===null||z(s)?(e.exit("setextHeadingLine"),t(s)):n(s)}}const eu={tokenize:nu};function nu(e){const t=this,n=e.attempt(We,r,e.attempt(this.parser.constructs.flowInitial,i,O(e,e.attempt(this.parser.constructs.flow,i,e.attempt(lo,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 tu={resolveAll:Ir()},ru=Er("string"),iu=Er("text");function Er(e){return{resolveAll:Ir(e==="text"?lu:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,l,u);return l;function l(f){return s(f)?o(f):u(f)}function u(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),a}function a(f){return s(f)?(n.exit("data"),o(f)):(n.consume(f),a)}function s(f){if(f===null)return!0;const c=i[f];let p=-1;if(c)for(;++p<c.length;){const h=c[p];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function Ir(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 lu(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let o=i.length,l=-1,u=0,a;for(;o--;){const s=i[o];if(typeof s=="string"){for(l=s.length;s.charCodeAt(l-1)===32;)u++,l--;if(l)break;l=-1}else if(s===-2)a=!0,u++;else if(s!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(u=0),u){const s={type:n===e.length||a||u<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?l:r.start._bufferIndex+l,_index:r.start._index+o,line:r.end.line,column:r.end.column-u,offset:r.end.offset-u},end:{...r.end}};r.end={...s.start},r.start.offset===r.end.offset?Object.assign(r,s):(e.splice(n,0,["enter",s,t],["exit",s,t]),n+=2)}n++}return e}const ou={42:Z,43:Z,45:Z,48:Z,49:Z,50:Z,51:Z,52:Z,53:Z,54:Z,55:Z,56:Z,57:Z,62:yr},uu={91:co},au={[-2]:mn,[-1]:mn,32:mn},su={35:yo,42:Ze,45:[Tt,Ze],60:wo,61:Tt,95:Ze,96:It,126:It},cu={38:xr,92:kr},fu={[-5]:gn,[-4]:gn,[-3]:gn,33:No,38:xr,42:Fn,60:[jl,Po],91:Ho,92:[mo,kr],93:Qn,95:Fn,96:Zl},hu={null:[Fn,tu]},pu={null:[42,95]},mu={null:[]},gu=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:pu,contentInitial:uu,disable:mu,document:ou,flow:su,flowInitial:au,insideSpan:hu,string:cu,text:fu},Symbol.toStringTag,{value:"Module"}));function du(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=[],u=[];const a={attempt:M(F),check:M(w),consume:A,enter:E,exit:L,interrupt:M(w,{interrupt:!0})},s={code:null,containerState:{},defineSkip:x,events:[],now:d,parser:e,previous:null,sliceSerialize:p,sliceStream:h,write:c};let f=t.tokenize.call(s,a);return t.resolveAll&&o.push(t),s;function c(T){return l=ie(l,T),C(),l[l.length-1]!==null?[]:($(t,0),s.events=sn(o,s.events,s),s.events)}function p(T,P){return ku(h(T),P)}function h(T){return yu(l,T)}function d(){const{_bufferIndex:T,_index:P,line:j,column:q,offset:B}=r;return{_bufferIndex:T,_index:P,line:j,column:q,offset:B}}function x(T){i[T.line]=T.column,k()}function C(){let T;for(;r._index<l.length;){const P=l[r._index];if(typeof P=="string")for(T=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===T&&r._bufferIndex<P.length;)y(P.charCodeAt(r._bufferIndex));else y(P)}}function y(T){f=f(T)}function A(T){z(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 E(T,P){const j=P||{};return j.type=T,j.start=d(),s.events.push(["enter",j,s]),u.push(j),j}function L(T){const P=u.pop();return P.end=d(),s.events.push(["exit",P,s]),P}function F(T,P){$(T,P.from)}function w(T,P){P.restore()}function M(T,P){return j;function j(q,B,X){let Y,le,he,m;return Array.isArray(q)?pe(q):"tokenize"in q?pe([q]):oe(q);function oe(Q){return Re;function Re(ye){const Pe=ye!==null&&Q[ye],ze=ye!==null&&Q.null,Qe=[...Array.isArray(Pe)?Pe:Pe?[Pe]:[],...Array.isArray(ze)?ze:ze?[ze]:[]];return pe(Qe)(ye)}}function pe(Q){return Y=Q,le=0,Q.length===0?X:g(Q[le])}function g(Q){return Re;function Re(ye){return m=N(),he=Q,Q.partial||(s.currentConstruct=Q),Q.name&&s.parser.constructs.disable.null.includes(Q.name)?be():Q.tokenize.call(P?Object.assign(Object.create(s),P):s,a,ue,be)(ye)}}function ue(Q){return T(he,m),B}function be(Q){return m.restore(),++le<Y.length?g(Y[le]):X}}}function $(T,P){T.resolveAll&&!o.includes(T)&&o.push(T),T.resolve&&re(s.events,P,s.events.length-P,T.resolve(s.events.slice(P),s)),T.resolveTo&&(s.events=T.resolveTo(s.events,s))}function N(){const T=d(),P=s.previous,j=s.currentConstruct,q=s.events.length,B=Array.from(u);return{from:q,restore:X};function X(){r=T,s.previous=P,s.currentConstruct=j,s.events.length=q,u=B,k()}}function k(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function yu(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 u=l[0];typeof u=="string"?l[0]=u.slice(r):l.shift()}o>0&&l.push(e[i].slice(0,o))}return l}function ku(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 xu(e){const r={constructs:gr([gu,...(e||{}).extensions||[]]),content:i(Fl),defined:[],document:i(Rl),flow:i(eu),lazy:{},string:i(ru),text:i(iu)};return r;function i(o){return l;function l(u){return du(r,o,u)}}}function bu(e){for(;!br(e););return e}const Pt=/[\0\t\n\r]/g;function wu(){let e=1,t="",n=!0,r;return i;function i(o,l,u){const a=[];let s,f,c,p,h;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(l||void 0).decode(o)),c=0,t="",n&&(o.charCodeAt(0)===65279&&c++,n=void 0);c<o.length;){if(Pt.lastIndex=c,s=Pt.exec(o),p=s&&s.index!==void 0?s.index:o.length,h=o.charCodeAt(p),!s){t=o.slice(c);break}if(h===10&&c===p&&r)a.push(-3),r=void 0;else switch(r&&(a.push(-5),r=void 0),c<p&&(a.push(o.slice(c,p)),e+=p-c),h){case 0:{a.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,a.push(-2);e++<f;)a.push(-1);break}case 10:{a.push(-4),e=1;break}default:r=!0,e=1}c=p+1}return u&&(r&&a.push(-5),t&&a.push(t),a.push(null)),a}}const Su=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Cu(e){return e.replace(Su,Eu)}function Eu(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return dr(n.slice(o?2:1),o?16:10)}return Yn(n)||e}const Ar={}.hasOwnProperty;function Xc(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),Iu(n)(bu(xu(n).document().write(wu()(e,t,!0))))}function Iu(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(ot),autolinkProtocol:N,autolinkEmail:N,atxHeading:o(rt),blockQuote:o(ze),characterEscape:N,characterReference:N,codeFenced:o(Qe),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:o(Qe,l),codeText:o(oi,l),codeTextData:N,data:N,codeFlowValue:N,definition:o(ui),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:o(ai),hardBreakEscape:o(it),hardBreakTrailing:o(it),htmlFlow:o(lt,l),htmlFlowData:N,htmlText:o(lt,l),htmlTextData:N,image:o(si),label:l,link:o(ot),listItem:o(ci),listItemValue:p,listOrdered:o(ut,c),listUnordered:o(ut),paragraph:o(fi),reference:g,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:o(rt),strong:o(hi),thematicBreak:o(mi)},exit:{atxHeading:a(),atxHeadingSequence:F,autolink:a(),autolinkEmail:Pe,autolinkProtocol:ye,blockQuote:a(),characterEscapeValue:k,characterReferenceMarkerHexadecimal:be,characterReferenceMarkerNumeric:be,characterReferenceValue:Q,characterReference:Re,codeFenced:a(C),codeFencedFence:x,codeFencedFenceInfo:h,codeFencedFenceMeta:d,codeFlowValue:k,codeIndented:a(y),codeText:a(B),codeTextData:k,data:k,definition:a(),definitionDestinationString:L,definitionLabelString:A,definitionTitleString:E,emphasis:a(),hardBreakEscape:a(P),hardBreakTrailing:a(P),htmlFlow:a(j),htmlFlowData:k,htmlText:a(q),htmlTextData:k,image:a(Y),label:he,labelText:le,lineEnding:T,link:a(X),listItem:a(),listOrdered:a(),listUnordered:a(),paragraph:a(),referenceString:ue,resourceDestinationString:m,resourceTitleString:oe,resource:pe,setextHeading:a($),setextHeadingLineSequence:M,setextHeadingText:w,strong:a(),thematicBreak:a()}};Tr(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(b){let I={type:"root",children:[]};const D={stack:[I],tokenStack:[],config:t,enter:u,exit:s,buffer:l,resume:f,data:n},R=[];let H=-1;for(;++H<b.length;)if(b[H][1].type==="listOrdered"||b[H][1].type==="listUnordered")if(b[H][0]==="enter")R.push(H);else{const ae=R.pop();H=i(b,ae,H)}for(H=-1;++H<b.length;){const ae=t[b[H][0]];Ar.call(ae,b[H][1].type)&&ae[b[H][1].type].call(Object.assign({sliceSerialize:b[H][2].sliceSerialize},D),b[H][1])}if(D.tokenStack.length>0){const ae=D.tokenStack[D.tokenStack.length-1];(ae[1]||zt).call(D,void 0,ae[0])}for(I.position={start:ke(b.length>0?b[0][1].start:{line:1,column:1,offset:0}),end:ke(b.length>0?b[b.length-2][1].end:{line:1,column:1,offset:0})},H=-1;++H<t.transforms.length;)I=t.transforms[H](I)||I;return I}function i(b,I,D){let R=I-1,H=-1,ae=!1,we,me,Oe,Me;for(;++R<=D;){const ne=b[R];switch(ne[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ne[0]==="enter"?H++:H--,Me=void 0;break}case"lineEndingBlank":{ne[0]==="enter"&&(we&&!Me&&!H&&!Oe&&(Oe=R),Me=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Me=void 0}if(!H&&ne[0]==="enter"&&ne[1].type==="listItemPrefix"||H===-1&&ne[0]==="exit"&&(ne[1].type==="listUnordered"||ne[1].type==="listOrdered")){if(we){let ve=R;for(me=void 0;ve--;){const ge=b[ve];if(ge[1].type==="lineEnding"||ge[1].type==="lineEndingBlank"){if(ge[0]==="exit")continue;me&&(b[me][1].type="lineEndingBlank",ae=!0),ge[1].type="lineEnding",me=ve}else if(!(ge[1].type==="linePrefix"||ge[1].type==="blockQuotePrefix"||ge[1].type==="blockQuotePrefixWhitespace"||ge[1].type==="blockQuoteMarker"||ge[1].type==="listItemIndent"))break}Oe&&(!me||Oe<me)&&(we._spread=!0),we.end=Object.assign({},me?b[me][1].start:ne[1].end),b.splice(me||R,0,["exit",we,ne[2]]),R++,D++}if(ne[1].type==="listItemPrefix"){const ve={type:"listItem",_spread:!1,start:Object.assign({},ne[1].start),end:void 0};we=ve,b.splice(R,0,["enter",ve,ne[2]]),R++,D++,Oe=void 0,Me=!0}}}return b[I][1]._spread=ae,D}function o(b,I){return D;function D(R){u.call(this,b(R),R),I&&I.call(this,R)}}function l(){this.stack.push({type:"fragment",children:[]})}function u(b,I,D){this.stack[this.stack.length-1].children.push(b),this.stack.push(b),this.tokenStack.push([I,D||void 0]),b.position={start:ke(I.start),end:void 0}}function a(b){return I;function I(D){b&&b.call(this,D),s.call(this,D)}}function s(b,I){const D=this.stack.pop(),R=this.tokenStack.pop();if(R)R[0].type!==b.type&&(I?I.call(this,b,R[0]):(R[1]||zt).call(this,b,R[0]));else throw new Error("Cannot close `"+b.type+"` ("+je({start:b.start,end:b.end})+"): it’s not open");D.position.end=ke(b.end)}function f(){return Wn(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function p(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 h(){const b=this.resume(),I=this.stack[this.stack.length-1];I.lang=b}function d(){const b=this.resume(),I=this.stack[this.stack.length-1];I.meta=b}function x(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){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 y(){const b=this.resume(),I=this.stack[this.stack.length-1];I.value=b.replace(/(\r?\n|\r)$/g,"")}function A(b){const I=this.resume(),D=this.stack[this.stack.length-1];D.label=I,D.identifier=se(this.sliceSerialize(b)).toLowerCase()}function E(){const b=this.resume(),I=this.stack[this.stack.length-1];I.title=b}function L(){const b=this.resume(),I=this.stack[this.stack.length-1];I.url=b}function F(b){const I=this.stack[this.stack.length-1];if(!I.depth){const D=this.sliceSerialize(b).length;I.depth=D}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function M(b){const I=this.stack[this.stack.length-1];I.depth=this.sliceSerialize(b).codePointAt(0)===61?1:2}function $(){this.data.setextHeadingSlurpLineEnding=void 0}function N(b){const D=this.stack[this.stack.length-1].children;let R=D[D.length-1];(!R||R.type!=="text")&&(R=pi(),R.position={start:ke(b.start),end:void 0},D.push(R)),this.stack.push(R)}function k(b){const I=this.stack.pop();I.value+=this.sliceSerialize(b),I.position.end=ke(b.end)}function T(b){const I=this.stack[this.stack.length-1];if(this.data.atHardBreak){const D=I.children[I.children.length-1];D.position.end=ke(b.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(I.type)&&(N.call(this,b),k.call(this,b))}function P(){this.data.atHardBreak=!0}function j(){const b=this.resume(),I=this.stack[this.stack.length-1];I.value=b}function q(){const b=this.resume(),I=this.stack[this.stack.length-1];I.value=b}function B(){const b=this.resume(),I=this.stack[this.stack.length-1];I.value=b}function X(){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 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(b){const I=this.sliceSerialize(b),D=this.stack[this.stack.length-2];D.label=Cu(I),D.identifier=se(I).toLowerCase()}function he(){const b=this.stack[this.stack.length-1],I=this.resume(),D=this.stack[this.stack.length-1];if(this.data.inReference=!0,D.type==="link"){const R=b.children;D.children=R}else D.alt=I}function m(){const b=this.resume(),I=this.stack[this.stack.length-1];I.url=b}function oe(){const b=this.resume(),I=this.stack[this.stack.length-1];I.title=b}function pe(){this.data.inReference=void 0}function g(){this.data.referenceType="collapsed"}function ue(b){const I=this.resume(),D=this.stack[this.stack.length-1];D.label=I,D.identifier=se(this.sliceSerialize(b)).toLowerCase(),this.data.referenceType="full"}function be(b){this.data.characterReferenceType=b.type}function Q(b){const I=this.sliceSerialize(b),D=this.data.characterReferenceType;let R;D?(R=dr(I,D==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):R=Yn(I);const H=this.stack[this.stack.length-1];H.value+=R}function Re(b){const I=this.stack.pop();I.position.end=ke(b.end)}function ye(b){k.call(this,b);const I=this.stack[this.stack.length-1];I.url=this.sliceSerialize(b)}function Pe(b){k.call(this,b);const I=this.stack[this.stack.length-1];I.url="mailto:"+this.sliceSerialize(b)}function ze(){return{type:"blockquote",children:[]}}function Qe(){return{type:"code",lang:null,meta:null,value:""}}function oi(){return{type:"inlineCode",value:""}}function ui(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ai(){return{type:"emphasis",children:[]}}function rt(){return{type:"heading",depth:0,children:[]}}function it(){return{type:"break"}}function lt(){return{type:"html",value:""}}function si(){return{type:"image",title:null,url:"",alt:null}}function ot(){return{type:"link",title:null,url:"",children:[]}}function ut(b){return{type:"list",ordered:b.type==="listOrdered",start:null,spread:b._spread,children:[]}}function ci(b){return{type:"listItem",spread:b._spread,checked:null,children:[]}}function fi(){return{type:"paragraph",children:[]}}function hi(){return{type:"strong",children:[]}}function pi(){return{type:"text",value:""}}function mi(){return{type:"thematicBreak"}}}function ke(e){return{line:e.line,column:e.column,offset:e.offset}}function Tr(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Tr(e,r):Au(e,r)}}function Au(e,t){let n;for(n in t)if(Ar.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function zt(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+je({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+je({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+je({start:t.start,end:t.end})+") is still open")}function Tu(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 Pu(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
5
|
+
`}]}function zu(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 vu(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Du(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Lu(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=_e(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let l,u=e.footnoteCounts.get(r);u===void 0?(u=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=o+1,u+=1,e.footnoteCounts.set(r,u);const a={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(u>1?"-"+u:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,a);const s={type:"element",tagName:"sup",properties:{},children:[a]};return e.patch(t,s),e.applyData(t,s)}function Fu(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 _u(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Pr(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 Ru(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Pr(e,t);const i={src:_e(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function Ou(e,t){const n={src:_e(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Mu(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 Bu(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Pr(e,t);const i={href:_e(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function Nu(e,t){const n={href:_e(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function ju(e,t,n){const r=e.all(t),i=n?Hu(n):zr(t),o={},l=[];if(typeof t.checked=="boolean"){const f=r[0];let c;f&&f.type==="element"&&f.tagName==="p"?c=f:(c={type:"element",tagName:"p",properties:{},children:[]},r.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let u=-1;for(;++u<r.length;){const f=r[u];(i||u!==0||f.type!=="element"||f.tagName!=="p")&&l.push({type:"text",value:`
|
|
7
|
+
`}),f.type==="element"&&f.tagName==="p"&&!i?l.push(...f.children):l.push(f)}const a=r[r.length-1];a&&(i||a.type!=="element"||a.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 Hu(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=zr(n[r])}return t}function zr(e){const t=e.spread;return t??e.children.length>1}function Vu(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 Uu(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function $u(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function qu(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Wu(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)},u=Vn(t.children[1]),a=ar(t.children[t.children.length-1]);u&&a&&(l.position={start:u,end:a}),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 Yu(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,u=l?l.length:t.children.length;let a=-1;const s=[];for(;++a<u;){const c=t.children[a],p={},h=l?l[a]:void 0;h&&(p.align=h);let d={type:"element",tagName:o,properties:p,children:[]};c&&(d.children=e.all(c),e.patch(c,d),d=e.applyData(c,d)),s.push(d)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(t,f),e.applyData(t,f)}function Qu(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const vt=9,Dt=32;function Xu(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(Lt(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(Lt(t.slice(i),i>0,!1)),o.join("")}function Lt(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===vt||o===Dt;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===vt||o===Dt;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Gu(e,t){const n={type:"text",value:Xu(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Ku(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Ju={blockquote:Tu,break:Pu,code:zu,delete:vu,emphasis:Du,footnoteReference:Lu,heading:Fu,html:_u,imageReference:Ru,image:Ou,inlineCode:Mu,linkReference:Bu,link:Nu,listItem:ju,list:Vu,paragraph:Uu,root:$u,strong:qu,table:Wu,tableCell:Qu,tableRow:Yu,text:Gu,thematicBreak:Ku,toml:Xe,yaml:Xe,definition:Xe,footnoteDefinition:Xe};function Xe(){}const vr=-1,cn=0,Ve=1,rn=2,Xn=3,Gn=4,Kn=5,Jn=6,Dr=7,Lr=8,Zu=typeof self=="object"?self:globalThis,Ft=(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 Zu[e](t)},ea=(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 cn:case vr:return n(l,i);case Ve:{const u=n([],i);for(const a of l)u.push(r(a));return u}case rn:{const u=n({},i);for(const[a,s]of l)u[r(a)]=r(s);return u}case Xn:return n(new Date(l),i);case Gn:{const{source:u,flags:a}=l;return n(new RegExp(u,a),i)}case Kn:{const u=n(new Map,i);for(const[a,s]of l)u.set(r(a),r(s));return u}case Jn:{const u=n(new Set,i);for(const a of l)u.add(r(a));return u}case Dr:{const{name:u,message:a}=l;return n(Ft(u,a),i)}case Lr: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:u}=new Uint8Array(l);return n(new DataView(u),l)}}return n(Ft(o,l),i)};return r},_t=e=>ea(new Map,e)(0),Ce="",{toString:na}={},{keys:ta}=Object,Ne=e=>{const t=typeof e;if(t!=="object"||!e)return[cn,t];const n=na.call(e).slice(8,-1);switch(n){case"Array":return[Ve,Ce];case"Object":return[rn,Ce];case"Date":return[Xn,Ce];case"RegExp":return[Gn,Ce];case"Map":return[Kn,Ce];case"Set":return[Jn,Ce];case"DataView":return[Ve,n]}return n.includes("Array")?[Ve,n]:n.includes("Error")?[Dr,n]:[rn,n]},Ge=([e,t])=>e===cn&&(t==="function"||t==="symbol"),ra=(e,t,n,r)=>{const i=(l,u)=>{const a=r.push(l)-1;return n.set(u,a),a},o=l=>{if(n.has(l))return n.get(l);let[u,a]=Ne(l);switch(u){case cn:{let f=l;switch(a){case"bigint":u=Lr,f=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+a);f=null;break;case"undefined":return i([vr],l)}return i([u,f],l)}case Ve:{if(a){let p=l;return a==="DataView"?p=new Uint8Array(l.buffer):a==="ArrayBuffer"&&(p=new Uint8Array(l)),i([a,[...p]],l)}const f=[],c=i([u,f],l);for(const p of l)f.push(o(p));return c}case rn:{if(a)switch(a){case"BigInt":return i([a,l.toString()],l);case"Boolean":case"Number":case"String":return i([a,l.valueOf()],l)}if(t&&"toJSON"in l)return o(l.toJSON());const f=[],c=i([u,f],l);for(const p of ta(l))(e||!Ge(Ne(l[p])))&&f.push([o(p),o(l[p])]);return c}case Xn:return i([u,isNaN(l.getTime())?Ce:l.toISOString()],l);case Gn:{const{source:f,flags:c}=l;return i([u,{source:f,flags:c}],l)}case Kn:{const f=[],c=i([u,f],l);for(const[p,h]of l)(e||!(Ge(Ne(p))||Ge(Ne(h))))&&f.push([o(p),o(h)]);return c}case Jn:{const f=[],c=i([u,f],l);for(const p of l)(e||!Ge(Ne(p)))&&f.push(o(p));return c}}const{message:s}=l;return i([u,{name:a,message:s}],l)};return o},Rt=(e,{json:t,lossy:n}={})=>{const r=[];return ra(!(t||n),!!t,new Map,r)(e),r},ln=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?_t(Rt(e,t)):structuredClone(e):(e,t)=>_t(Rt(e,t));function ia(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 la(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function oa(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||ia,r=e.options.footnoteBackLabel||la,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},u=[];let a=-1;for(;++a<e.footnoteOrder.length;){const s=e.footnoteById.get(e.footnoteOrder[a]);if(!s)continue;const f=e.all(s),c=String(s.identifier).toUpperCase(),p=_e(c.toLowerCase());let h=0;const d=[],x=e.footnoteCounts.get(c);for(;x!==void 0&&++h<=x;){d.length>0&&d.push({type:"text",value:" "});let A=typeof n=="string"?n:n(a,h);typeof A=="string"&&(A={type:"text",value:A}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(a,h),className:["data-footnote-backref"]},children:Array.isArray(A)?A:[A]})}const C=f[f.length-1];if(C&&C.type==="element"&&C.tagName==="p"){const A=C.children[C.children.length-1];A&&A.type==="text"?A.value+=" ":C.children.push({type:"text",value:" "}),C.children.push(...d)}else f.push(...d);const y={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(f,!0)};e.patch(s,y),u.push(y)}if(u.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...ln(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 fn=function(e){if(e==null)return ca;if(typeof e=="function")return hn(e);if(typeof e=="object")return Array.isArray(e)?ua(e):aa(e);if(typeof e=="string")return sa(e);throw new Error("Expected function, string, or object as test")};function ua(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=fn(e[n]);return hn(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function aa(e){const t=e;return hn(n);function n(r){const i=r;let o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function sa(e){return hn(t);function t(n){return n&&n.type===e}}function hn(e){return t;function t(n,r,i){return!!(fa(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function ca(){return!0}function fa(e){return e!==null&&typeof e=="object"&&"type"in e}const Fr=[],ha=!0,_n=!1,pa="skip";function _r(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const o=fn(i),l=r?-1:1;u(e,void 0,[])();function u(a,s,f){const c=a&&typeof a=="object"?a:{};if(typeof c.type=="string"){const h=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(a.type+(h?"<"+h+">":""))+")"})}return p;function p(){let h=Fr,d,x,C;if((!t||o(a,s,f[f.length-1]||void 0))&&(h=ma(n(a,f)),h[0]===_n))return h;if("children"in a&&a.children){const y=a;if(y.children&&h[0]!==pa)for(x=(r?y.children.length:-1)+l,C=f.concat(y);x>-1&&x<y.children.length;){const A=y.children[x];if(d=u(A,x,C)(),d[0]===_n)return d;x=typeof d[1]=="number"?d[1]:x+l}}return h}}}function ma(e){return Array.isArray(e)?e:typeof e=="number"?[ha,e]:e==null?Fr:[e]}function Rr(e,t,n,r){let i,o,l;typeof t=="function"&&typeof n!="function"?(o=void 0,l=t,i=n):(o=t,l=n,i=r),_r(e,o,u,i);function u(a,s){const f=s[s.length-1],c=f?f.children.indexOf(a):void 0;return l(a,c,f)}}const Rn={}.hasOwnProperty,ga={};function da(e,t){const n=t||ga,r=new Map,i=new Map,o=new Map,l={...Ju,...n.handlers},u={all:s,applyData:ka,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:l,one:a,options:n,patch:ya,wrap:ba};return Rr(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const c=f.type==="definition"?r:i,p=String(f.identifier).toUpperCase();c.has(p)||c.set(p,f)}}),u;function a(f,c){const p=f.type,h=u.handlers[p];if(Rn.call(u.handlers,p)&&h)return h(u,f,c);if(u.options.passThrough&&u.options.passThrough.includes(p)){if("children"in f){const{children:x,...C}=f,y=ln(C);return y.children=u.all(f),y}return ln(f)}return(u.options.unknownHandler||xa)(u,f,c)}function s(f){const c=[];if("children"in f){const p=f.children;let h=-1;for(;++h<p.length;){const d=u.one(p[h],f);if(d){if(h&&p[h-1].type==="break"&&(!Array.isArray(d)&&d.type==="text"&&(d.value=Ot(d.value)),!Array.isArray(d)&&d.type==="element")){const x=d.children[0];x&&x.type==="text"&&(x.value=Ot(x.value))}Array.isArray(d)?c.push(...d):c.push(d)}}}return c}}function ya(e,t){e.position&&(t.position=ol(e))}function ka(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const l="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:l}}n.type==="element"&&o&&Object.assign(n.properties,ln(o)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function xa(e,t){const n=t.data||{},r="value"in t&&!(Rn.call(n,"hProperties")||Rn.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 ba(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 Ot(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Gc(e,t){const n=da(e,t),r=n.one(e,void 0),i=oa(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 Mt(e){if(e)throw e}var en=Object.prototype.hasOwnProperty,Or=Object.prototype.toString,Bt=Object.defineProperty,Nt=Object.getOwnPropertyDescriptor,jt=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Or.call(t)==="[object Array]"},Ht=function(t){if(!t||Or.call(t)!=="[object Object]")return!1;var n=en.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&en.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||en.call(t,i)},Vt=function(t,n){Bt&&n.name==="__proto__"?Bt(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Ut=function(t,n){if(n==="__proto__")if(en.call(t,n)){if(Nt)return Nt(t,n).value}else return;return t[n]},wa=function e(){var t,n,r,i,o,l,u=arguments[0],a=1,s=arguments.length,f=!1;for(typeof u=="boolean"&&(f=u,u=arguments[1]||{},a=2),(u==null||typeof u!="object"&&typeof u!="function")&&(u={});a<s;++a)if(t=arguments[a],t!=null)for(n in t)r=Ut(u,n),i=Ut(t,n),u!==i&&(f&&i&&(Ht(i)||(o=jt(i)))?(o?(o=!1,l=r&&jt(r)?r:[]):l=r&&Ht(r)?r:{},Vt(u,{name:n,newValue:e(f,l,i)})):typeof i<"u"&&Vt(u,{name:n,newValue:i}));return u};const dn=er(wa);function On(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 Sa(){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);u(null,...i);function u(a,...s){const f=e[++o];let c=-1;if(a){l(a);return}for(;++c<i.length;)(s[c]===null||s[c]===void 0)&&(s[c]=i[c]);i=s,f?Ca(f,u)(...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 Ca(e,t){let n;return r;function r(...l){const u=e.length>l.length;let a;u&&l.push(i);try{a=e.apply(this,l)}catch(s){const f=s;if(u&&n)throw f;return i(f)}u||(a&&a.then&&typeof a.then=="function"?a.then(o,i):a instanceof Error?i(a):o(a))}function i(l,...u){n||(n=!0,t(l,...u))}function o(l){i(null,l)}}const ce={basename:Ea,dirname:Ia,extname:Aa,join:Ta,sep:"/"};function Ea(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Ye(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,u=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else l<0&&(o=!0,l=i+1),u>-1&&(e.codePointAt(i)===t.codePointAt(u--)?u<0&&(r=i):(u=-1,r=l));return n===r?r=l:r<0&&(r=e.length),e.slice(n,r)}function Ia(e){if(Ye(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 Aa(e){Ye(e);let t=e.length,n=-1,r=0,i=-1,o=0,l;for(;t--;){const u=e.codePointAt(t);if(u===47){if(l){r=t+1;break}continue}n<0&&(l=!0,n=t+1),u===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 Ta(...e){let t=-1,n;for(;++t<e.length;)Ye(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Pa(n)}function Pa(e){Ye(e);const t=e.codePointAt(0)===47;let n=za(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function za(e,t){let n="",r=0,i=-1,o=0,l=-1,u,a;for(;++l<=e.length;){if(l<e.length)u=e.codePointAt(l);else{if(u===47)break;u=47}if(u===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(a=n.lastIndexOf("/"),a!==n.length-1){a<0?(n="",r=0):(n=n.slice(0,a),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 u===46&&o>-1?o++:o=-1}return n}function Ye(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const va={cwd:Da};function Da(){return"/"}function Mn(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function La(e){if(typeof e=="string")e=new URL(e);else if(!Mn(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 Fa(e)}function Fa(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 yn=["history","path","basename","stem","extname","dirname"];class _a{constructor(t){let n;t?Mn(t)?n={path:t}:typeof t=="string"||Ra(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":va.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<yn.length;){const o=yn[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)yn.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?ce.basename(this.path):void 0}set basename(t){xn(t,"basename"),kn(t,"basename"),this.path=ce.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?ce.dirname(this.path):void 0}set dirname(t){$t(this.basename,"dirname"),this.path=ce.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?ce.extname(this.path):void 0}set extname(t){if(kn(t,"extname"),$t(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ce.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Mn(t)&&(t=La(t)),xn(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?ce.basename(this.path,this.extname):void 0}set stem(t){xn(t,"stem"),kn(t,"stem"),this.path=ce.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new K(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function kn(e,t){if(e&&e.includes(ce.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ce.sep+"`")}function xn(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function $t(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Ra(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Oa=function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o},Ma={}.hasOwnProperty;class Zn extends Oa{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=Sa()}copy(){const t=new Zn;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(dn(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Sn("data",this.frozen),this.namespace[t]=n,this):Ma.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Sn("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=Ke(t),r=this.parser||this.Parser;return bn("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),bn("process",this.parser||this.Parser),wn("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(o,l){const u=Ke(t),a=r.parse(u);r.run(a,u,function(f,c,p){if(f||!c||!p)return s(f);const h=c,d=r.stringify(h,p);Na(d)?p.value=d:p.result=d,s(f,p)});function s(f,c){f||!c?l(f):o?o(c):n(void 0,c)}}}processSync(t){let n=!1,r;return this.freeze(),bn("processSync",this.parser||this.Parser),wn("processSync",this.compiler||this.Compiler),this.process(t,i),Wt("processSync","process",n),r;function i(o,l){n=!0,Mt(o),r=l}}run(t,n,r){qt(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,u){const a=Ke(n);i.run(t,a,s);function s(f,c,p){const h=c||t;f?u(f):l?l(h):r(void 0,h,p)}}}runSync(t,n){let r=!1,i;return this.run(t,n,o),Wt("runSync","run",r),i;function o(l,u){Mt(l),i=u,r=!0}}stringify(t,n){this.freeze();const r=Ke(n),i=this.compiler||this.Compiler;return wn("stringify",i),qt(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(Sn("use",this.frozen),t!=null)if(typeof t=="function")a(t,n);else if(typeof t=="object")Array.isArray(t)?u(t):l(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(s){if(typeof s=="function")a(s,[]);else if(typeof s=="object")if(Array.isArray(s)){const[f,...c]=s;a(f,c)}else l(s);else throw new TypeError("Expected usable value, not `"+s+"`")}function l(s){if(!("plugins"in s)&&!("settings"in s))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");u(s.plugins),s.settings&&(i.settings=dn(!0,i.settings,s.settings))}function u(s){let f=-1;if(s!=null)if(Array.isArray(s))for(;++f<s.length;){const c=s[f];o(c)}else throw new TypeError("Expected a list of plugins, not `"+s+"`")}function a(s,f){let c=-1,p=-1;for(;++c<r.length;)if(r[c][0]===s){p=c;break}if(p===-1)r.push([s,...f]);else if(f.length>0){let[h,...d]=f;const x=r[p][1];On(x)&&On(h)&&(h=dn(!0,x,h)),r[p]=[s,h,...d]}}}}const Kc=new Zn().freeze();function bn(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function wn(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Sn(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 qt(e){if(!On(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Wt(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ke(e){return Ba(e)?e:new _a(e)}function Ba(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Na(e){return typeof e=="string"||ja(e)}function ja(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function Yt(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 Ha(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Va(e,t,n){const i=fn((n||{}).ignore||[]),o=Ua(t);let l=-1;for(;++l<o.length;)_r(e,"text",u);function u(s,f){let c=-1,p;for(;++c<f.length;){const h=f[c],d=p?p.children:void 0;if(i(h,d?d.indexOf(h):void 0,p))return;p=h}if(p)return a(s,f)}function a(s,f){const c=f[f.length-1],p=o[l][0],h=o[l][1];let d=0;const C=c.children.indexOf(s);let y=!1,A=[];p.lastIndex=0;let E=p.exec(s.value);for(;E;){const L=E.index,F={index:E.index,input:E.input,stack:[...f,s]};let w=h(...E,F);if(typeof w=="string"&&(w=w.length>0?{type:"text",value:w}:void 0),w===!1?p.lastIndex=L+1:(d!==L&&A.push({type:"text",value:s.value.slice(d,L)}),Array.isArray(w)?A.push(...w):w&&A.push(w),d=L+E[0].length,y=!0),!p.global)break;E=p.exec(s.value)}return y?(d<s.value.length&&A.push({type:"text",value:s.value.slice(d)}),c.children.splice(C,1,...A)):A=[s],C+A.length}}function Ua(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([$a(i[0]),qa(i[1])])}return t}function $a(e){return typeof e=="string"?new RegExp(Ha(e),"g"):e}function qa(e){return typeof e=="function"?e:function(){return e}}const Cn="phrasing",En=["autolink","link","image","label"];function Wa(){return{transforms:[Za],enter:{literalAutolink:Qa,literalAutolinkEmail:In,literalAutolinkHttp:In,literalAutolinkWww:In},exit:{literalAutolink:Ja,literalAutolinkEmail:Ka,literalAutolinkHttp:Xa,literalAutolinkWww:Ga}}}function Ya(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Cn,notInConstruct:En},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Cn,notInConstruct:En},{character:":",before:"[ps]",after:"\\/",inConstruct:Cn,notInConstruct:En}]}}function Qa(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function In(e){this.config.enter.autolinkProtocol.call(this,e)}function Xa(e){this.config.exit.autolinkProtocol.call(this,e)}function Ga(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 Ka(e){this.config.exit.autolinkEmail.call(this,e)}function Ja(e){this.exit(e)}function Za(e){Va(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,es],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),ns]],{ignore:["link","linkReference"]})}function es(e,t,n,r,i){let o="";if(!Mr(i)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!ts(n)))return!1;const l=rs(n+r);if(!l[0])return!1;const u={type:"link",title:null,url:o+t+l[0],children:[{type:"text",value:t+l[0]}]};return l[1]?[u,{type:"text",value:l[1]}]:u}function ns(e,t,n,r){return!Mr(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function ts(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function rs(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=Yt(e,"(");let o=Yt(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 Mr(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Ae(n)||an(n))&&(!t||n!==47)}Br.peek=hs;function is(){this.buffer()}function ls(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function os(){this.buffer()}function us(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function as(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 ss(e){this.exit(e)}function cs(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 fs(e){this.exit(e)}function hs(){return"["}function Br(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const l=n.enter("footnoteReference"),u=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{after:"]",before:o})),u(),l(),o+=i.move("]"),o}function ps(){return{enter:{gfmFootnoteCallString:is,gfmFootnoteCall:ls,gfmFootnoteDefinitionLabelString:os,gfmFootnoteDefinition:us},exit:{gfmFootnoteCallString:as,gfmFootnoteCall:ss,gfmFootnoteDefinitionLabelString:cs,gfmFootnoteDefinition:fs}}}function ms(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Br},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,o,l){const u=o.createTracker(l);let a=u.move("[^");const s=o.enter("footnoteDefinition"),f=o.enter("label");return a+=u.move(o.safe(o.associationId(r),{before:a,after:"]"})),f(),a+=u.move("]:"),r.children&&r.children.length>0&&(u.shift(4),a+=u.move((t?`
|
|
15
|
+
`:" ")+o.indentLines(o.containerFlow(r,u.current()),t?Nr:gs))),s(),a}}function gs(e,t,n){return t===0?e:Nr(e,t,n)}function Nr(e,t,n){return(n?"":" ")+e}const ds=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];jr.peek=ws;function ys(){return{canContainEols:["delete"],enter:{strikethrough:xs},exit:{strikethrough:bs}}}function ks(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:ds}],handlers:{delete:jr}}}function xs(e){this.enter({type:"delete",children:[]},e)}function bs(e){this.exit(e)}function jr(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let l=i.move("~~");return l+=n.containerPhrasing(e,{...i.current(),before:l,after:"~"}),l+=i.move("~~"),o(),l}function ws(){return"~"}function Ss(e){return e.length}function Cs(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||Ss,o=[],l=[],u=[],a=[];let s=0,f=-1;for(;++f<e.length;){const x=[],C=[];let y=-1;for(e[f].length>s&&(s=e[f].length);++y<e[f].length;){const A=Es(e[f][y]);if(n.alignDelimiters!==!1){const E=i(A);C[y]=E,(a[y]===void 0||E>a[y])&&(a[y]=E)}x.push(A)}l[f]=x,u[f]=C}let c=-1;if(typeof r=="object"&&"length"in r)for(;++c<s;)o[c]=Qt(r[c]);else{const x=Qt(r);for(;++c<s;)o[c]=x}c=-1;const p=[],h=[];for(;++c<s;){const x=o[c];let C="",y="";x===99?(C=":",y=":"):x===108?C=":":x===114&&(y=":");let A=n.alignDelimiters===!1?1:Math.max(1,a[c]-C.length-y.length);const E=C+"-".repeat(A)+y;n.alignDelimiters!==!1&&(A=C.length+A+y.length,A>a[c]&&(a[c]=A),h[c]=A),p[c]=E}l.splice(1,0,p),u.splice(1,0,h),f=-1;const d=[];for(;++f<l.length;){const x=l[f],C=u[f];c=-1;const y=[];for(;++c<s;){const A=x[c]||"";let E="",L="";if(n.alignDelimiters!==!1){const F=a[c]-(C[c]||0),w=o[c];w===114?E=" ".repeat(F):w===99?F%2?(E=" ".repeat(F/2+.5),L=" ".repeat(F/2-.5)):(E=" ".repeat(F/2),L=E):L=" ".repeat(F)}n.delimiterStart!==!1&&!c&&y.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&A==="")&&(n.delimiterStart!==!1||c)&&y.push(" "),n.alignDelimiters!==!1&&y.push(E),y.push(A),n.alignDelimiters!==!1&&y.push(L),n.padding!==!1&&y.push(" "),(n.delimiterEnd!==!1||c!==s-1)&&y.push("|")}d.push(n.delimiterEnd===!1?y.join("").replace(/ +$/,""):y.join(""))}return d.join(`
|
|
16
|
+
`)}function Es(e){return e==null?"":String(e)}function Qt(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function Is(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()),As);return i(),l}function As(e,t,n){return">"+(n?"":" ")+e}function Ts(e,t){return Xt(e,t.inConstruct,!0)&&!Xt(e,t.notInConstruct,!1)}function Xt(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 Gt(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
|
|
17
|
+
`&&Ts(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
18
|
+
`}function Ps(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 zs(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function vs(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 Ds(e,t,n,r){const i=vs(n),o=e.value||"",l=i==="`"?"GraveAccent":"Tilde";if(zs(e,n)){const c=n.enter("codeIndented"),p=n.indentLines(o,Ls);return c(),p}const u=n.createTracker(r),a=i.repeat(Math.max(Ps(o,i)+1,3)),s=n.enter("codeFenced");let f=u.move(a);if(e.lang){const c=n.enter(`codeFencedLang${l}`);f+=u.move(n.safe(e.lang,{before:f,after:" ",encode:["`"],...u.current()})),c()}if(e.lang&&e.meta){const c=n.enter(`codeFencedMeta${l}`);f+=u.move(" "),f+=u.move(n.safe(e.meta,{before:f,after:`
|
|
19
|
+
`,encode:["`"],...u.current()})),c()}return f+=u.move(`
|
|
20
|
+
`),o&&(f+=u.move(o+`
|
|
21
|
+
`)),f+=u.move(a),s(),f}function Ls(e,t,n){return(n?"":" ")+e}function et(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 Fs(e,t,n,r){const i=et(n),o=i==='"'?"Quote":"Apostrophe",l=n.enter("definition");let u=n.enter("label");const a=n.createTracker(r);let s=a.move("[");return s+=a.move(n.safe(n.associationId(e),{before:s,after:"]",...a.current()})),s+=a.move("]: "),u(),!e.url||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),s+=a.move("<"),s+=a.move(n.safe(e.url,{before:s,after:">",...a.current()})),s+=a.move(">")):(u=n.enter("destinationRaw"),s+=a.move(n.safe(e.url,{before:s,after:e.title?" ":`
|
|
22
|
+
`,...a.current()}))),u(),e.title&&(u=n.enter(`title${o}`),s+=a.move(" "+i),s+=a.move(n.safe(e.title,{before:s,after:i,...a.current()})),s+=a.move(i),u()),l(),s}function _s(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 $e(e){return"&#x"+e.toString(16).toUpperCase()+";"}function on(e,t,n){const r=Le(e),i=Le(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Hr.peek=Rs;function Hr(e,t,n,r){const i=_s(n),o=n.enter("emphasis"),l=n.createTracker(r),u=l.move(i);let a=l.move(n.containerPhrasing(e,{after:i,before:u,...l.current()}));const s=a.charCodeAt(0),f=on(r.before.charCodeAt(r.before.length-1),s,i);f.inside&&(a=$e(s)+a.slice(1));const c=a.charCodeAt(a.length-1),p=on(r.after.charCodeAt(0),c,i);p.inside&&(a=a.slice(0,-1)+$e(c));const h=l.move(i);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},u+a+h}function Rs(e,t,n){return n.options.emphasis||"*"}function Os(e,t){let n=!1;return Rr(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,_n}),!!((!e.depth||e.depth<3)&&Wn(e)&&(t.options.setext||n))}function Ms(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(Os(e,n)){const f=n.enter("headingSetext"),c=n.enter("phrasing"),p=n.containerPhrasing(e,{...o.current(),before:`
|
|
23
|
+
`,after:`
|
|
24
|
+
`});return c(),f(),p+`
|
|
25
|
+
`+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
|
|
26
|
+
`))+1))}const l="#".repeat(i),u=n.enter("headingAtx"),a=n.enter("phrasing");o.move(l+" ");let s=n.containerPhrasing(e,{before:"# ",after:`
|
|
27
|
+
`,...o.current()});return/^[\t ]/.test(s)&&(s=$e(s.charCodeAt(0))+s.slice(1)),s=s?l+" "+s:l,n.options.closeAtx&&(s+=" "+l),a(),u(),s}Vr.peek=Bs;function Vr(e){return e.value||""}function Bs(){return"<"}Ur.peek=Ns;function Ur(e,t,n,r){const i=et(n),o=i==='"'?"Quote":"Apostrophe",l=n.enter("image");let u=n.enter("label");const a=n.createTracker(r);let s=a.move("![");return s+=a.move(n.safe(e.alt,{before:s,after:"]",...a.current()})),s+=a.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),s+=a.move("<"),s+=a.move(n.safe(e.url,{before:s,after:">",...a.current()})),s+=a.move(">")):(u=n.enter("destinationRaw"),s+=a.move(n.safe(e.url,{before:s,after:e.title?" ":")",...a.current()}))),u(),e.title&&(u=n.enter(`title${o}`),s+=a.move(" "+i),s+=a.move(n.safe(e.title,{before:s,after:i,...a.current()})),s+=a.move(i),u()),s+=a.move(")"),l(),s}function Ns(){return"!"}$r.peek=js;function $r(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let l=n.enter("label");const u=n.createTracker(r);let a=u.move("![");const s=n.safe(e.alt,{before:a,after:"]",...u.current()});a+=u.move(s+"]["),l();const f=n.stack;n.stack=[],l=n.enter("reference");const c=n.safe(n.associationId(e),{before:a,after:"]",...u.current()});return l(),n.stack=f,o(),i==="full"||!s||s!==c?a+=u.move(c+"]"):i==="shortcut"?a=a.slice(0,-1):a+=u.move("]"),a}function js(){return"!"}qr.peek=Hs;function qr(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const l=n.unsafe[o],u=n.compilePattern(l);let a;if(l.atBreak)for(;a=u.exec(r);){let s=a.index;r.charCodeAt(s)===10&&r.charCodeAt(s-1)===13&&s--,r=r.slice(0,s)+" "+r.slice(a.index+1)}}return i+r+i}function Hs(){return"`"}function Wr(e,t){const n=Wn(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))}Yr.peek=Vs;function Yr(e,t,n,r){const i=et(n),o=i==='"'?"Quote":"Apostrophe",l=n.createTracker(r);let u,a;if(Wr(e,n)){const f=n.stack;n.stack=[],u=n.enter("autolink");let c=l.move("<");return c+=l.move(n.containerPhrasing(e,{before:c,after:">",...l.current()})),c+=l.move(">"),u(),n.stack=f,c}u=n.enter("link"),a=n.enter("label");let s=l.move("[");return s+=l.move(n.containerPhrasing(e,{before:s,after:"](",...l.current()})),s+=l.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),s+=l.move("<"),s+=l.move(n.safe(e.url,{before:s,after:">",...l.current()})),s+=l.move(">")):(a=n.enter("destinationRaw"),s+=l.move(n.safe(e.url,{before:s,after:e.title?" ":")",...l.current()}))),a(),e.title&&(a=n.enter(`title${o}`),s+=l.move(" "+i),s+=l.move(n.safe(e.title,{before:s,after:i,...l.current()})),s+=l.move(i),a()),s+=l.move(")"),u(),s}function Vs(e,t,n){return Wr(e,n)?"<":"["}Qr.peek=Us;function Qr(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let l=n.enter("label");const u=n.createTracker(r);let a=u.move("[");const s=n.containerPhrasing(e,{before:a,after:"]",...u.current()});a+=u.move(s+"]["),l();const f=n.stack;n.stack=[],l=n.enter("reference");const c=n.safe(n.associationId(e),{before:a,after:"]",...u.current()});return l(),n.stack=f,o(),i==="full"||!s||s!==c?a+=u.move(c+"]"):i==="shortcut"?a=a.slice(0,-1):a+=u.move("]"),a}function Us(){return"["}function nt(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 $s(e){const t=nt(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 qs(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 Xr(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 Ws(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let l=e.ordered?qs(n):nt(n);const u=e.ordered?l==="."?")":".":$s(n);let a=t&&n.bulletLastUsed?l===n.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&f&&(!f.children||!f.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(a=!0),Xr(n)===l&&f){let c=-1;for(;++c<e.children.length;){const p=e.children[c];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){a=!0;break}}}}a&&(l=u),n.bulletCurrent=l;const s=n.containerFlow(e,r);return n.bulletLastUsed=l,n.bulletCurrent=o,i(),s}function Ys(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 Qs(e,t,n,r){const i=Ys(n);let o=n.bulletCurrent||nt(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 u=n.createTracker(r);u.move(o+" ".repeat(l-o.length)),u.shift(l);const a=n.enter("listItem"),s=n.indentLines(n.containerFlow(e,u.current()),f);return a(),s;function f(c,p,h){return p?(h?"":" ".repeat(l))+c:(h?o:o+" ".repeat(l-o.length))+c}}function Xs(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),l=n.containerPhrasing(e,r);return o(),i(),l}const Gs=fn(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Ks(e,t,n,r){return(e.children.some(function(l){return Gs(l)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function Js(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Gr.peek=Zs;function Gr(e,t,n,r){const i=Js(n),o=n.enter("strong"),l=n.createTracker(r),u=l.move(i+i);let a=l.move(n.containerPhrasing(e,{after:i,before:u,...l.current()}));const s=a.charCodeAt(0),f=on(r.before.charCodeAt(r.before.length-1),s,i);f.inside&&(a=$e(s)+a.slice(1));const c=a.charCodeAt(a.length-1),p=on(r.after.charCodeAt(0),c,i);p.inside&&(a=a.slice(0,-1)+$e(c));const h=l.move(i+i);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},u+a+h}function Zs(e,t,n){return n.options.strong||"*"}function ec(e,t,n,r){return n.safe(e.value,r)}function nc(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 tc(e,t,n){const r=(Xr(n)+(n.options.ruleSpaces?" ":"")).repeat(nc(n));return n.options.ruleSpaces?r.slice(0,-1):r}const Kr={blockquote:Is,break:Gt,code:Ds,definition:Fs,emphasis:Hr,hardBreak:Gt,heading:Ms,html:Vr,image:Ur,imageReference:$r,inlineCode:qr,link:Yr,linkReference:Qr,list:Ws,listItem:Qs,paragraph:Xs,root:Ks,strong:Gr,text:ec,thematicBreak:tc};function rc(){return{enter:{table:ic,tableData:Kt,tableHeader:Kt,tableRow:oc},exit:{codeText:uc,table:lc,tableData:An,tableHeader:An,tableRow:An}}}function ic(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function lc(e){this.exit(e),this.data.inTable=void 0}function oc(e){this.enter({type:"tableRow",children:[]},e)}function An(e){this.exit(e)}function Kt(e){this.enter({type:"tableCell",children:[]},e)}function uc(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,ac));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function ac(e,t){return t==="|"?t:e}function sc(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
28
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:l,tableCell:a,tableRow:u}};function l(h,d,x,C){return s(f(h,x,C),h.align)}function u(h,d,x,C){const y=c(h,x,C),A=s([y]);return A.slice(0,A.indexOf(`
|
|
29
|
+
`))}function a(h,d,x,C){const y=x.enter("tableCell"),A=x.enter("phrasing"),E=x.containerPhrasing(h,{...C,before:o,after:o});return A(),y(),E}function s(h,d){return Cs(h,{align:d,alignDelimiters:r,padding:n,stringLength:i})}function f(h,d,x){const C=h.children;let y=-1;const A=[],E=d.enter("table");for(;++y<C.length;)A[y]=c(C[y],d,x);return E(),A}function c(h,d,x){const C=h.children;let y=-1;const A=[],E=d.enter("tableRow");for(;++y<C.length;)A[y]=a(C[y],h,d,x);return E(),A}function p(h,d,x){let C=Kr.inlineCode(h,d,x);return x.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}function cc(){return{exit:{taskListCheckValueChecked:Jt,taskListCheckValueUnchecked:Jt,paragraph:hc}}}function fc(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:pc}}}function Jt(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function hc(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 u=i[o];if(u.type==="paragraph"){l=u;break}}l===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function pc(e,t,n,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",u=n.createTracker(r);o&&u.move(l);let a=Kr.listItem(e,t,n,{...r,...u.current()});return o&&(a=a.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,s)),a;function s(f){return f+l}}function Jc(){return[Wa(),ps(),ys(),rc(),cc()]}function Zc(e){return{extensions:[Ya(),ms(e),ks(),sc(e),fc()]}}const mc={tokenize:bc,partial:!0},Jr={tokenize:wc,partial:!0},Zr={tokenize:Sc,partial:!0},ei={tokenize:Cc,partial:!0},gc={tokenize:Ec,partial:!0},ni={name:"wwwAutolink",tokenize:kc,previous:ri},ti={name:"protocolAutolink",tokenize:xc,previous:ii},de={name:"emailAutolink",tokenize:yc,previous:li},fe={};function dc(){return{text:fe}}let Se=48;for(;Se<123;)fe[Se]=de,Se++,Se===58?Se=65:Se===91&&(Se=97);fe[43]=de;fe[45]=de;fe[46]=de;fe[95]=de;fe[72]=[de,ti];fe[104]=[de,ti];fe[87]=[de,ni];fe[119]=[de,ni];function yc(e,t,n){const r=this;let i,o;return l;function l(c){return!Bn(c)||!li.call(r,r.previous)||tt(r.events)?n(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),u(c))}function u(c){return Bn(c)?(e.consume(c),u):c===64?(e.consume(c),a):n(c)}function a(c){return c===46?e.check(gc,f,s)(c):c===45||c===95||G(c)?(o=!0,e.consume(c),a):f(c)}function s(c){return e.consume(c),i=!0,a}function f(c){return o&&i&&J(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(c)):n(c)}}function kc(e,t,n){const r=this;return i;function i(l){return l!==87&&l!==119||!ri.call(r,r.previous)||tt(r.events)?n(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(mc,e.attempt(Jr,e.attempt(Zr,o),n),n)(l))}function o(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(l)}}function xc(e,t,n){const r=this;let i="",o=!1;return l;function l(c){return(c===72||c===104)&&ii.call(r,r.previous)&&!tt(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),u):n(c)}function u(c){if(J(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),u;if(c===58){const p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(c),a}return n(c)}function a(c){return c===47?(e.consume(c),o?s:(o=!0,a)):n(c)}function s(c){return c===null||tn(c)||U(c)||Ae(c)||an(c)?n(c):e.attempt(Jr,e.attempt(Zr,f),n)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(c)}}function bc(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 wc(e,t,n){let r,i,o;return l;function l(s){return s===46||s===95?e.check(ei,a,u)(s):s===null||U(s)||Ae(s)||s!==45&&an(s)?a(s):(o=!0,e.consume(s),l)}function u(s){return s===95?r=!0:(i=r,r=void 0),e.consume(s),l}function a(s){return i||r||!o?n(s):t(s)}}function Sc(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(ei,t,o)(l):l===null||U(l)||Ae(l)?t(l):(e.consume(l),i)}function o(l){return l===41&&r++,e.consume(l),i}}function Cc(e,t,n){return r;function r(u){return u===33||u===34||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===63||u===95||u===126?(e.consume(u),r):u===38?(e.consume(u),o):u===93?(e.consume(u),i):u===60||u===null||U(u)||Ae(u)?t(u):n(u)}function i(u){return u===null||u===40||u===91||U(u)||Ae(u)?t(u):r(u)}function o(u){return J(u)?l(u):n(u)}function l(u){return u===59?(e.consume(u),r):J(u)?(e.consume(u),l):n(u)}}function Ec(e,t,n){return r;function r(o){return e.consume(o),i}function i(o){return G(o)?n(o):t(o)}}function ri(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||U(e)}function ii(e){return!J(e)}function li(e){return!(e===47||Bn(e))}function Bn(e){return e===43||e===45||e===46||e===95||G(e)}function tt(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 Ic={tokenize:Fc,partial:!0};function Ac(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:vc,continuation:{tokenize:Dc},exit:Lc}},text:{91:{name:"gfmFootnoteCall",tokenize:zc},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Tc,resolveTo:Pc}}}}function Tc(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;i--;){const a=r.events[i][1];if(a.type==="labelImage"){l=a;break}if(a.type==="gfmFootnoteCall"||a.type==="labelLink"||a.type==="label"||a.type==="image"||a.type==="link")break}return u;function u(a){if(!l||!l._balanced)return n(a);const s=se(r.sliceSerialize({start:l.end,end:r.now()}));return s.codePointAt(0)!==94||!o.includes(s.slice(1))?n(a):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),t(a))}}function Pc(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)},u=[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,...u),e}function zc(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,l;return u;function u(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),a}function a(c){return c!==94?n(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",s)}function s(c){if(o>999||c===93&&!l||c===null||c===91||U(c))return n(c);if(c===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(se(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(c)}return U(c)||(l=!0),o++,e.consume(c),c===92?f:s}function f(c){return c===91||c===92||c===93?(e.consume(c),o++,s):s(c)}}function vc(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,l=0,u;return a;function a(d){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(d),e.exit("gfmFootnoteDefinitionLabelMarker"),s}function s(d){return d===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(d),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):n(d)}function f(d){if(l>999||d===93&&!u||d===null||d===91||U(d))return n(d);if(d===93){e.exit("chunkString");const x=e.exit("gfmFootnoteDefinitionLabelString");return o=se(r.sliceSerialize(x)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(d),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return U(d)||(u=!0),l++,e.consume(d),d===92?c:f}function c(d){return d===91||d===92||d===93?(e.consume(d),l++,f):f(d)}function p(d){return d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),i.includes(o)||i.push(o),O(e,h,"gfmFootnoteDefinitionWhitespace")):n(d)}function h(d){return t(d)}}function Dc(e,t,n){return e.check(We,t,e.attempt(Ic,t,n))}function Lc(e){e.exit("gfmFootnoteDefinition")}function Fc(e,t,n){const r=this;return O(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 _c(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,u){let a=-1;for(;++a<l.length;)if(l[a][0]==="enter"&&l[a][1].type==="strikethroughSequenceTemporary"&&l[a][1]._close){let s=a;for(;s--;)if(l[s][0]==="exit"&&l[s][1].type==="strikethroughSequenceTemporary"&&l[s][1]._open&&l[a][1].end.offset-l[a][1].start.offset===l[s][1].end.offset-l[s][1].start.offset){l[a][1].type="strikethroughSequence",l[s][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},l[s][1].start),end:Object.assign({},l[a][1].end)},c={type:"strikethroughText",start:Object.assign({},l[s][1].end),end:Object.assign({},l[a][1].start)},p=[["enter",f,u],["enter",l[s][1],u],["exit",l[s][1],u],["enter",c,u]],h=u.parser.constructs.insideSpan.null;h&&re(p,p.length,0,sn(h,l.slice(s+1,a),u)),re(p,p.length,0,[["exit",c,u],["enter",l[a][1],u],["exit",l[a][1],u],["exit",f,u]]),re(l,s-1,a-s+3,p),a=s+p.length-2;break}}for(a=-1;++a<l.length;)l[a][1].type==="strikethroughSequenceTemporary"&&(l[a][1].type="data");return l}function o(l,u,a){const s=this.previous,f=this.events;let c=0;return p;function p(d){return s===126&&f[f.length-1][1].type!=="characterEscape"?a(d):(l.enter("strikethroughSequenceTemporary"),h(d))}function h(d){const x=Le(s);if(d===126)return c>1?a(d):(l.consume(d),c++,h);if(c<2&&!n)return a(d);const C=l.exit("strikethroughSequenceTemporary"),y=Le(d);return C._open=!y||y===2&&!!x,C._close=!x||x===2&&!!y,u(d)}}}class Rc{constructor(){this.map=[]}add(t,n,r){Oc(this,t,n,r)}consume(t){if(this.map.sort(function(o,l){return o[0]-l[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const o of i)t.push(o);i=r.pop()}this.map.length=0}}function Oc(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function Mc(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 Bc(){return{flow:{null:{name:"table",tokenize:Nc,resolveAll:jc}}}}function Nc(e,t,n){const r=this;let i=0,o=0,l;return u;function u(k){let T=r.events.length-1;for(;T>-1;){const q=r.events[T][1].type;if(q==="lineEnding"||q==="linePrefix")T--;else break}const P=T>-1?r.events[T][1].type:null,j=P==="tableHead"||P==="tableRow"?w:a;return j===w&&r.parser.lazy[r.now().line]?n(k):j(k)}function a(k){return e.enter("tableHead"),e.enter("tableRow"),s(k)}function s(k){return k===124||(l=!0,o+=1),f(k)}function f(k){return k===null?n(k):z(k)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),h):n(k):_(k)?O(e,f,"whitespace")(k):(o+=1,l&&(l=!1,i+=1),k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),l=!0,f):(e.enter("data"),c(k)))}function c(k){return k===null||k===124||U(k)?(e.exit("data"),f(k)):(e.consume(k),k===92?p:c)}function p(k){return k===92||k===124?(e.consume(k),c):c(k)}function h(k){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(k):(e.enter("tableDelimiterRow"),l=!1,_(k)?O(e,d,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):d(k))}function d(k){return k===45||k===58?C(k):k===124?(l=!0,e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),x):F(k)}function x(k){return _(k)?O(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"),y):k===45?(o+=1,y(k)):k===null||z(k)?L(k):F(k)}function y(k){return k===45?(e.enter("tableDelimiterFiller"),A(k)):F(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"),E):(e.exit("tableDelimiterFiller"),E(k))}function E(k){return _(k)?O(e,L,"whitespace")(k):L(k)}function L(k){return k===124?d(k):k===null||z(k)?!l||i!==o?F(k):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(k)):F(k)}function F(k){return n(k)}function w(k){return e.enter("tableRow"),M(k)}function M(k){return k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),M):k===null||z(k)?(e.exit("tableRow"),t(k)):_(k)?O(e,M,"whitespace")(k):(e.enter("data"),$(k))}function $(k){return k===null||k===124||U(k)?(e.exit("data"),M(k)):(e.consume(k),k===92?N:$)}function N(k){return k===92||k===124?(e.consume(k),$):$(k)}}function jc(e,t){let n=-1,r=!0,i=0,o=[0,0,0,0],l=[0,0,0,0],u=!1,a=0,s,f,c;const p=new Rc;for(;++n<e.length;){const h=e[n],d=h[1];h[0]==="enter"?d.type==="tableHead"?(u=!1,a!==0&&(Zt(p,t,a,s,f),f=void 0,a=0),s={type:"table",start:Object.assign({},d.start),end:Object.assign({},d.end)},p.add(n,0,[["enter",s,t]])):d.type==="tableRow"||d.type==="tableDelimiterRow"?(r=!0,c=void 0,o=[0,0,0,0],l=[0,n+1,0,0],u&&(u=!1,f={type:"tableBody",start:Object.assign({},d.start),end:Object.assign({},d.end)},p.add(n,0,[["enter",f,t]])),i=d.type==="tableDelimiterRow"?2:f?3:1):i&&(d.type==="data"||d.type==="tableDelimiterMarker"||d.type==="tableDelimiterFiller")?(r=!1,l[2]===0&&(o[1]!==0&&(l[0]=l[1],c=Je(p,t,o,i,void 0,c),o=[0,0,0,0]),l[2]=n)):d.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(l[0]=l[1],c=Je(p,t,o,i,void 0,c)),o=l,l=[o[1],n,0,0])):d.type==="tableHead"?(u=!0,a=n):d.type==="tableRow"||d.type==="tableDelimiterRow"?(a=n,o[1]!==0?(l[0]=l[1],c=Je(p,t,o,i,n,c)):l[1]!==0&&(c=Je(p,t,l,i,n,c)),i=0):i&&(d.type==="data"||d.type==="tableDelimiterMarker"||d.type==="tableDelimiterFiller")&&(l[3]=n)}for(a!==0&&Zt(p,t,a,s,f),p.consume(t.events),n=-1;++n<t.events.length;){const h=t.events[n];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=Mc(t.events,n))}return e}function Je(e,t,n,r,i,o){const l=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",u="tableContent";n[0]!==0&&(o.end=Object.assign({},De(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const a=De(t.events,n[1]);if(o={type:l,start:Object.assign({},a),end:Object.assign({},a)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const s=De(t.events,n[2]),f=De(t.events,n[3]),c={type:u,start:Object.assign({},s),end:Object.assign({},f)};if(e.add(n[2],0,[["enter",c,t]]),r!==2){const p=t.events[n[2]],h=t.events[n[3]];if(p[1].end=Object.assign({},h[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){const d=n[2]+1,x=n[3]-n[2]-1;e.add(d,x,[])}}e.add(n[3]+1,0,[["exit",c,t]])}return i!==void 0&&(o.end=Object.assign({},De(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function Zt(e,t,n,r,i){const o=[],l=De(t.events,n);i&&(i.end=Object.assign({},l),o.push(["exit",i,t])),r.end=Object.assign({},l),o.push(["exit",r,t]),e.add(n+1,0,o)}function De(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const Hc={name:"tasklistCheck",tokenize:Uc};function Vc(){return{text:{91:Hc}}}function Uc(e,t,n){const r=this;return i;function i(a){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(a):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(a),e.exit("taskListCheckMarker"),o)}function o(a){return U(a)?(e.enter("taskListCheckValueUnchecked"),e.consume(a),e.exit("taskListCheckValueUnchecked"),l):a===88||a===120?(e.enter("taskListCheckValueChecked"),e.consume(a),e.exit("taskListCheckValueChecked"),l):n(a)}function l(a){return a===93?(e.enter("taskListCheckMarker"),e.consume(a),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),u):n(a)}function u(a){return z(a)?t(a):_(a)?e.check({tokenize:$c},t,n)(a):n(a)}}function $c(e,t,n){return O(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function ef(e){return gr([dc(),Ac(),_c(e),Bc(),Vc()])}export{_a as V,Wc as a,Yc as b,Qc as c,Jc as d,Zc as e,Xc as f,ef as g,Gc as t,Kc as u,Rr as v};
|