1 line
177 KiB
JavaScript
1 line
177 KiB
JavaScript
(self.webpackChunkkeycloakify=self.webpackChunkkeycloakify||[]).push([[312],{"./node_modules/extend/index.js":module=>{"use strict";var hasOwn=Object.prototype.hasOwnProperty,toStr=Object.prototype.toString,defineProperty=Object.defineProperty,gOPD=Object.getOwnPropertyDescriptor,isArray=function isArray(arr){return"function"==typeof Array.isArray?Array.isArray(arr):"[object Array]"===toStr.call(arr)},isPlainObject=function isPlainObject(obj){if(!obj||"[object Object]"!==toStr.call(obj))return!1;var key,hasOwnConstructor=hasOwn.call(obj,"constructor"),hasIsPrototypeOf=obj.constructor&&obj.constructor.prototype&&hasOwn.call(obj.constructor.prototype,"isPrototypeOf");if(obj.constructor&&!hasOwnConstructor&&!hasIsPrototypeOf)return!1;for(key in obj);return void 0===key||hasOwn.call(obj,key)},setProperty=function setProperty(target,options){defineProperty&&"__proto__"===options.name?defineProperty(target,options.name,{enumerable:!0,configurable:!0,value:options.newValue,writable:!0}):target[options.name]=options.newValue},getProperty=function getProperty(obj,name){if("__proto__"===name){if(!hasOwn.call(obj,name))return;if(gOPD)return gOPD(obj,name).value}return obj[name]};module.exports=function extend(){var options,name,src,copy,copyIsArray,clone,target=arguments[0],i=1,length=arguments.length,deep=!1;for("boolean"==typeof target&&(deep=target,target=arguments[1]||{},i=2),(null==target||"object"!=typeof target&&"function"!=typeof target)&&(target={});i<length;++i)if(null!=(options=arguments[i]))for(name in options)src=getProperty(target,name),target!==(copy=getProperty(options,name))&&(deep&©&&(isPlainObject(copy)||(copyIsArray=isArray(copy)))?(copyIsArray?(copyIsArray=!1,clone=src&&isArray(src)?src:[]):clone=src&&isPlainObject(src)?src:{},setProperty(target,{name,newValue:extend(deep,clone,copy)})):void 0!==copy&&setProperty(target,{name,newValue:copy}));return target}},"./node_modules/hast-util-to-jsx-runtime/node_modules/inline-style-parser/index.js":module=>{var COMMENT_REGEX=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,NEWLINE_REGEX=/\n/g,WHITESPACE_REGEX=/^\s*/,PROPERTY_REGEX=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,COLON_REGEX=/^:\s*/,VALUE_REGEX=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,SEMICOLON_REGEX=/^[;\s]*/,TRIM_REGEX=/^\s+|\s+$/g,EMPTY_STRING="";function trim(str){return str?str.replace(TRIM_REGEX,EMPTY_STRING):EMPTY_STRING}module.exports=function(style,options){if("string"!=typeof style)throw new TypeError("First argument must be a string");if(!style)return[];options=options||{};var lineno=1,column=1;function updatePosition(str){var lines=str.match(NEWLINE_REGEX);lines&&(lineno+=lines.length);var i=str.lastIndexOf("\n");column=~i?str.length-i:column+str.length}function position(){var start={line:lineno,column};return function(node){return node.position=new Position(start),whitespace(),node}}function Position(start){this.start=start,this.end={line:lineno,column},this.source=options.source}Position.prototype.content=style;var errorsList=[];function error(msg){var err=new Error(options.source+":"+lineno+":"+column+": "+msg);if(err.reason=msg,err.filename=options.source,err.line=lineno,err.column=column,err.source=style,!options.silent)throw err;errorsList.push(err)}function match(re){var m=re.exec(style);if(m){var str=m[0];return updatePosition(str),style=style.slice(str.length),m}}function whitespace(){match(WHITESPACE_REGEX)}function comments(rules){var c;for(rules=rules||[];c=comment();)!1!==c&&rules.push(c);return rules}function comment(){var pos=position();if("/"==style.charAt(0)&&"*"==style.charAt(1)){for(var i=2;EMPTY_STRING!=style.charAt(i)&&("*"!=style.charAt(i)||"/"!=style.charAt(i+1));)++i;if(i+=2,EMPTY_STRING===style.charAt(i-1))return error("End of comment missing");var str=style.slice(2,i-2);return column+=2,updatePosition(str),style=style.slice(i),column+=2,pos({type:"comment",comment:str})}}function declaration(){var pos=position(),prop=match(PROPERTY_REGEX);if(prop){if(comment(),!match(COLON_REGEX))return error("property missing ':'");var val=match(VALUE_REGEX),ret=pos({type:"declaration",property:trim(prop[0].replace(COMMENT_REGEX,EMPTY_STRING)),value:val?trim(val[0].replace(COMMENT_REGEX,EMPTY_STRING)):EMPTY_STRING});return match(SEMICOLON_REGEX),ret}}return whitespace(),function declarations(){var decl,decls=[];for(comments(decls);decl=declaration();)!1!==decl&&(decls.push(decl),comments(decls));return decls}()}},"./node_modules/hast-util-to-jsx-runtime/node_modules/style-to-object/cjs/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});var inline_style_parser_1=__importDefault(__webpack_require__("./node_modules/hast-util-to-jsx-runtime/node_modules/inline-style-parser/index.js"));exports.default=function StyleToObject(style,iterator){var styleObject=null;if(!style||"string"!=typeof style)return styleObject;var declarations=(0,inline_style_parser_1.default)(style),hasIterator="function"==typeof iterator;return declarations.forEach((function(declaration){if("declaration"===declaration.type){var property=declaration.property,value=declaration.value;hasIterator?iterator(property,value,declaration):value&&((styleObject=styleObject||{})[property]=value)}})),styleObject}},"./node_modules/react-markdown/index.js":(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{n:()=>_lib_index_js__WEBPACK_IMPORTED_MODULE_0__.n});var _lib_index_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react-markdown/lib/index.js")},"./node_modules/react-markdown/lib/index.js":(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{U:()=>Markdown,n:()=>defaultUrlTransform});var types_namespaceObject={};__webpack_require__.r(types_namespaceObject),__webpack_require__.d(types_namespaceObject,{boolean:()=>types_boolean,booleanish:()=>booleanish,commaOrSpaceSeparated:()=>commaOrSpaceSeparated,commaSeparated:()=>commaSeparated,number:()=>number,overloadedBoolean:()=>overloadedBoolean,spaceSeparated:()=>spaceSeparated});var constructs_namespaceObject={};__webpack_require__.r(constructs_namespaceObject),__webpack_require__.d(constructs_namespaceObject,{attentionMarkers:()=>attentionMarkers,contentInitial:()=>contentInitial,disable:()=>disable,document:()=>constructs_document,flow:()=>constructs_flow,flowInitial:()=>flowInitial,insideSpan:()=>insideSpan,string:()=>constructs_string,text:()=>constructs_text});const nameRe=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,nameReJsx=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,emptyOptions={};function lib_name(name,options){return((options||emptyOptions).jsx?nameReJsx:nameRe).test(name)}const re=/[ \t\n\f\r]/g;function empty(value){return""===value.replace(re,"")}class Schema{constructor(property,normal,space){this.property=property,this.normal=normal,space&&(this.space=space)}}function merge(definitions,space){const property={},normal={};let index=-1;for(;++index<definitions.length;)Object.assign(property,definitions[index].property),Object.assign(normal,definitions[index].normal);return new Schema(property,normal,space)}function normalize(value){return value.toLowerCase()}Schema.prototype.property={},Schema.prototype.normal={},Schema.prototype.space=null;class Info{constructor(property,attribute){this.property=property,this.attribute=attribute}}Info.prototype.space=null,Info.prototype.boolean=!1,Info.prototype.booleanish=!1,Info.prototype.overloadedBoolean=!1,Info.prototype.number=!1,Info.prototype.commaSeparated=!1,Info.prototype.spaceSeparated=!1,Info.prototype.commaOrSpaceSeparated=!1,Info.prototype.mustUseProperty=!1,Info.prototype.defined=!1;let powers=0;const types_boolean=increment(),booleanish=increment(),overloadedBoolean=increment(),number=increment(),spaceSeparated=increment(),commaSeparated=increment(),commaOrSpaceSeparated=increment();function increment(){return 2**++powers}const checks=Object.keys(types_namespaceObject);class DefinedInfo extends Info{constructor(property,attribute,mask,space){let index=-1;if(super(property,attribute),mark(this,"space",space),"number"==typeof mask)for(;++index<checks.length;){const check=checks[index];mark(this,checks[index],(mask&types_namespaceObject[check])===types_namespaceObject[check])}}}function mark(values,key,value){value&&(values[key]=value)}DefinedInfo.prototype.defined=!0;const own={}.hasOwnProperty;function create(definition){const property={},normal={};let prop;for(prop in definition.properties)if(own.call(definition.properties,prop)){const value=definition.properties[prop],info=new DefinedInfo(prop,definition.transform(definition.attributes||{},prop),value,definition.space);definition.mustUseProperty&&definition.mustUseProperty.includes(prop)&&(info.mustUseProperty=!0),property[prop]=info,normal[normalize(prop)]=prop,normal[normalize(info.attribute)]=prop}return new Schema(property,normal,definition.space)}const xlink=create({space:"xlink",transform:(_,prop)=>"xlink:"+prop.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),xml=create({space:"xml",transform:(_,prop)=>"xml:"+prop.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function caseSensitiveTransform(attributes,attribute){return attribute in attributes?attributes[attribute]:attribute}function caseInsensitiveTransform(attributes,property){return caseSensitiveTransform(attributes,property.toLowerCase())}const xmlns=create({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:caseInsensitiveTransform,properties:{xmlns:null,xmlnsXLink:null}}),aria=create({transform:(_,prop)=>"role"===prop?prop:"aria-"+prop.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:booleanish,ariaAutoComplete:null,ariaBusy:booleanish,ariaChecked:booleanish,ariaColCount:number,ariaColIndex:number,ariaColSpan:number,ariaControls:spaceSeparated,ariaCurrent:null,ariaDescribedBy:spaceSeparated,ariaDetails:null,ariaDisabled:booleanish,ariaDropEffect:spaceSeparated,ariaErrorMessage:null,ariaExpanded:booleanish,ariaFlowTo:spaceSeparated,ariaGrabbed:booleanish,ariaHasPopup:null,ariaHidden:booleanish,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:spaceSeparated,ariaLevel:number,ariaLive:null,ariaModal:booleanish,ariaMultiLine:booleanish,ariaMultiSelectable:booleanish,ariaOrientation:null,ariaOwns:spaceSeparated,ariaPlaceholder:null,ariaPosInSet:number,ariaPressed:booleanish,ariaReadOnly:booleanish,ariaRelevant:null,ariaRequired:booleanish,ariaRoleDescription:spaceSeparated,ariaRowCount:number,ariaRowIndex:number,ariaRowSpan:number,ariaSelected:booleanish,ariaSetSize:number,ariaSort:null,ariaValueMax:number,ariaValueMin:number,ariaValueNow:number,ariaValueText:null,role:null}}),html=create({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:caseInsensitiveTransform,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:commaSeparated,acceptCharset:spaceSeparated,accessKey:spaceSeparated,action:null,allow:null,allowFullScreen:types_boolean,allowPaymentRequest:types_boolean,allowUserMedia:types_boolean,alt:null,as:null,async:types_boolean,autoCapitalize:null,autoComplete:spaceSeparated,autoFocus:types_boolean,autoPlay:types_boolean,blocking:spaceSeparated,capture:null,charSet:null,checked:types_boolean,cite:null,className:spaceSeparated,cols:number,colSpan:null,content:null,contentEditable:booleanish,controls:types_boolean,controlsList:spaceSeparated,coords:number|commaSeparated,crossOrigin:null,data:null,dateTime:null,decoding:null,default:types_boolean,defer:types_boolean,dir:null,dirName:null,disabled:types_boolean,download:overloadedBoolean,draggable:booleanish,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:types_boolean,formTarget:null,headers:spaceSeparated,height:number,hidden:types_boolean,high:number,href:null,hrefLang:null,htmlFor:spaceSeparated,httpEquiv:spaceSeparated,id:null,imageSizes:null,imageSrcSet:null,inert:types_boolean,inputMode:null,integrity:null,is:null,isMap:types_boolean,itemId:null,itemProp:spaceSeparated,itemRef:spaceSeparated,itemScope:types_boolean,itemType:spaceSeparated,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:types_boolean,low:number,manifest:null,max:null,maxLength:number,media:null,method:null,min:null,minLength:number,multiple:types_boolean,muted:types_boolean,name:null,nonce:null,noModule:types_boolean,noValidate:types_boolean,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:types_boolean,optimum:number,pattern:null,ping:spaceSeparated,placeholder:null,playsInline:types_boolean,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:types_boolean,referrerPolicy:null,rel:spaceSeparated,required:types_boolean,reversed:types_boolean,rows:number,rowSpan:number,sandbox:spaceSeparated,scope:null,scoped:types_boolean,seamless:types_boolean,selected:types_boolean,shadowRootClonable:types_boolean,shadowRootDelegatesFocus:types_boolean,shadowRootMode:null,shape:null,size:number,sizes:null,slot:null,span:number,spellCheck:booleanish,src:null,srcDoc:null,srcLang:null,srcSet:null,start:number,step:null,style:null,tabIndex:number,target:null,title:null,translate:null,type:null,typeMustMatch:types_boolean,useMap:null,value:booleanish,width:number,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:spaceSeparated,axis:null,background:null,bgColor:null,border:number,borderColor:null,bottomMargin:number,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:types_boolean,declare:types_boolean,event:null,face:null,frame:null,frameBorder:null,hSpace:number,leftMargin:number,link:null,longDesc:null,lowSrc:null,marginHeight:number,marginWidth:number,noResize:types_boolean,noHref:types_boolean,noShade:types_boolean,noWrap:types_boolean,object:null,profile:null,prompt:null,rev:null,rightMargin:number,rules:null,scheme:null,scrolling:booleanish,standby:null,summary:null,text:null,topMargin:number,valueType:null,version:null,vAlign:null,vLink:null,vSpace:number,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:types_boolean,disableRemotePlayback:types_boolean,prefix:null,property:null,results:number,security:null,unselectable:null}}),svg=create({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:caseSensitiveTransform,properties:{about:commaOrSpaceSeparated,accentHeight:number,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:number,amplitude:number,arabicForm:null,ascent:number,attributeName:null,attributeType:null,azimuth:number,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:number,by:null,calcMode:null,capHeight:number,className:spaceSeparated,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:number,diffuseConstant:number,direction:null,display:null,dur:null,divisor:number,dominantBaseline:null,download:types_boolean,dx:null,dy:null,edgeMode:null,editable:null,elevation:number,enableBackground:null,end:null,event:null,exponent:number,externalResourcesRequired:null,fill:null,fillOpacity:number,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:commaSeparated,g2:commaSeparated,glyphName:commaSeparated,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:number,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:number,horizOriginX:number,horizOriginY:number,id:null,ideographic:number,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:number,k:number,k1:number,k2:number,k3:number,k4:number,kernelMatrix:commaOrSpaceSeparated,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:number,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:number,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:number,overlineThickness:number,paintOrder:null,panose1:null,path:null,pathLength:number,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:spaceSeparated,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:number,pointsAtY:number,pointsAtZ:number,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:commaOrSpaceSeparated,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:commaOrSpaceSeparated,rev:commaOrSpaceSeparated,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:commaOrSpaceSeparated,requiredFeatures:commaOrSpaceSeparated,requiredFonts:commaOrSpaceSeparated,requiredFormats:commaOrSpaceSeparated,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:number,specularExponent:number,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:number,strikethroughThickness:number,string:null,stroke:null,strokeDashArray:commaOrSpaceSeparated,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:number,strokeOpacity:number,strokeWidth:null,style:null,surfaceScale:number,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:commaOrSpaceSeparated,tabIndex:number,tableValues:null,target:null,targetX:number,targetY:number,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:commaOrSpaceSeparated,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:number,underlineThickness:number,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:number,values:null,vAlphabetic:number,vMathematical:number,vectorEffect:null,vHanging:number,vIdeographic:number,version:null,vertAdvY:number,vertOriginX:number,vertOriginY:number,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:number,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),property_information_html=merge([xml,xlink,xmlns,aria,html],"html"),property_information_svg=merge([xml,xlink,xmlns,aria,svg],"svg"),valid=/^data[-\w.:]+$/i,dash=/-[a-z]/g,cap=/[A-Z]/g;function kebab($0){return"-"+$0.toLowerCase()}function camelcase($0){return $0.charAt(1).toUpperCase()}const hastToReact={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var cjs=__webpack_require__("./node_modules/hast-util-to-jsx-runtime/node_modules/style-to-object/cjs/index.js");const esm=cjs.default||cjs,pointStart=(point("end"),point("start"));function point(type){return function point(node){const point=node&&node.position&&node.position[type]||{};if("number"==typeof point.line&&point.line>0&&"number"==typeof point.column&&point.column>0)return{line:point.line,column:point.column,offset:"number"==typeof point.offset&&point.offset>-1?point.offset:void 0}}}function stringifyPosition(value){return value&&"object"==typeof value?"position"in value||"type"in value?lib_position(value.position):"start"in value||"end"in value?lib_position(value):"line"in value||"column"in value?lib_point(value):"":""}function lib_point(point){return index(point&&point.line)+":"+index(point&&point.column)}function lib_position(pos){return lib_point(pos&&pos.start)+"-"+lib_point(pos&&pos.end)}function index(value){return value&&"number"==typeof value?value:1}class VFileMessage extends Error{constructor(causeOrReason,optionsOrParentOrPlace,origin){super(),"string"==typeof optionsOrParentOrPlace&&(origin=optionsOrParentOrPlace,optionsOrParentOrPlace=void 0);let reason="",options={},legacyCause=!1;if(optionsOrParentOrPlace&&(options="line"in optionsOrParentOrPlace&&"column"in optionsOrParentOrPlace||"start"in optionsOrParentOrPlace&&"end"in optionsOrParentOrPlace?{place:optionsOrParentOrPlace}:"type"in optionsOrParentOrPlace?{ancestors:[optionsOrParentOrPlace],place:optionsOrParentOrPlace.position}:{...optionsOrParentOrPlace}),"string"==typeof causeOrReason?reason=causeOrReason:!options.cause&&causeOrReason&&(legacyCause=!0,reason=causeOrReason.message,options.cause=causeOrReason),!options.ruleId&&!options.source&&"string"==typeof origin){const index=origin.indexOf(":");-1===index?options.ruleId=origin:(options.source=origin.slice(0,index),options.ruleId=origin.slice(index+1))}if(!options.place&&options.ancestors&&options.ancestors){const parent=options.ancestors[options.ancestors.length-1];parent&&(options.place=parent.position)}const start=options.place&&"start"in options.place?options.place.start:options.place;this.ancestors=options.ancestors||void 0,this.cause=options.cause||void 0,this.column=start?start.column:void 0,this.fatal=void 0,this.file,this.message=reason,this.line=start?start.line:void 0,this.name=stringifyPosition(options.place)||"1:1",this.place=options.place||void 0,this.reason=this.message,this.ruleId=options.ruleId||void 0,this.source=options.source||void 0,this.stack=legacyCause&&options.cause&&"string"==typeof options.cause.stack?options.cause.stack:"",this.actual,this.expected,this.note,this.url}}VFileMessage.prototype.file="",VFileMessage.prototype.name="",VFileMessage.prototype.reason="",VFileMessage.prototype.message="",VFileMessage.prototype.stack="",VFileMessage.prototype.column=void 0,VFileMessage.prototype.line=void 0,VFileMessage.prototype.ancestors=void 0,VFileMessage.prototype.cause=void 0,VFileMessage.prototype.fatal=void 0,VFileMessage.prototype.place=void 0,VFileMessage.prototype.ruleId=void 0,VFileMessage.prototype.source=void 0;const lib_own={}.hasOwnProperty,emptyMap=new Map,lib_cap=/[A-Z]/g,dashSomething=/-([a-z])/g,tableElements=new Set(["table","tbody","thead","tfoot","tr"]),tableCellElement=new Set(["td","th"]),docs="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function toJsxRuntime(tree,options){if(!options||void 0===options.Fragment)throw new TypeError("Expected `Fragment` in options");const filePath=options.filePath||void 0;let create;if(options.development){if("function"!=typeof options.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");create=function developmentCreate(filePath,jsxDEV){return create;function create(node,type,props,key){const isStaticChildren=Array.isArray(props.children),point=pointStart(node);return jsxDEV(type,props,key,isStaticChildren,{columnNumber:point?point.column-1:void 0,fileName:filePath,lineNumber:point?point.line:void 0},void 0)}}(filePath,options.jsxDEV)}else{if("function"!=typeof options.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof options.jsxs)throw new TypeError("Expected `jsxs` in production options");create=function productionCreate(_,jsx,jsxs){return create;function create(_,type,props,key){const fn=Array.isArray(props.children)?jsxs:jsx;return key?fn(type,props,key):fn(type,props)}}(0,options.jsx,options.jsxs)}const state={Fragment:options.Fragment,ancestors:[],components:options.components||{},create,elementAttributeNameCase:options.elementAttributeNameCase||"react",evaluater:options.createEvaluater?options.createEvaluater():void 0,filePath,ignoreInvalidStyle:options.ignoreInvalidStyle||!1,passKeys:!1!==options.passKeys,passNode:options.passNode||!1,schema:"svg"===options.space?property_information_svg:property_information_html,stylePropertyNameCase:options.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==options.tableCellAlignToStyle},result=one(state,tree,void 0);return result&&"string"!=typeof result?result:state.create(tree,state.Fragment,{children:result||void 0},void 0)}function one(state,node,key){return"element"===node.type?function lib_element(state,node,key){const parentSchema=state.schema;let schema=parentSchema;"svg"===node.tagName.toLowerCase()&&"html"===parentSchema.space&&(schema=property_information_svg,state.schema=schema);state.ancestors.push(node);const type=findComponentFromName(state,node.tagName,!1),props=function createElementProps(state,node){const props={};let alignValue,prop;for(prop in node.properties)if("children"!==prop&&lib_own.call(node.properties,prop)){const result=createProperty(state,prop,node.properties[prop]);if(result){const[key,value]=result;state.tableCellAlignToStyle&&"align"===key&&"string"==typeof value&&tableCellElement.has(node.tagName)?alignValue=value:props[key]=value}}if(alignValue){(props.style||(props.style={}))["css"===state.stylePropertyNameCase?"text-align":"textAlign"]=alignValue}return props}(state,node);let children=createChildren(state,node);tableElements.has(node.tagName)&&(children=children.filter((function(child){return"string"!=typeof child||!function whitespace(thing){return"object"==typeof thing?"text"===thing.type&&empty(thing.value):empty(thing)}(child)})));return addNode(state,props,type,node),addChildren(props,children),state.ancestors.pop(),state.schema=parentSchema,state.create(node,type,props,key)}(state,node,key):"mdxFlowExpression"===node.type||"mdxTextExpression"===node.type?function mdxExpression(state,node){if(node.data&&node.data.estree&&state.evaluater){const expression=node.data.estree.body[0];return expression.type,state.evaluater.evaluateExpression(expression.expression)}crashEstree(state,node.position)}(state,node):"mdxJsxFlowElement"===node.type||"mdxJsxTextElement"===node.type?function mdxJsxElement(state,node,key){const parentSchema=state.schema;let schema=parentSchema;"svg"===node.name&&"html"===parentSchema.space&&(schema=property_information_svg,state.schema=schema);state.ancestors.push(node);const type=null===node.name?state.Fragment:findComponentFromName(state,node.name,!0),props=function createJsxElementProps(state,node){const props={};for(const attribute of node.attributes)if("mdxJsxExpressionAttribute"===attribute.type)if(attribute.data&&attribute.data.estree&&state.evaluater){const expression=attribute.data.estree.body[0];expression.type;const objectExpression=expression.expression;objectExpression.type;const property=objectExpression.properties[0];property.type,Object.assign(props,state.evaluater.evaluateExpression(property.argument))}else crashEstree(state,node.position);else{const name=attribute.name;let value;if(attribute.value&&"object"==typeof attribute.value)if(attribute.value.data&&attribute.value.data.estree&&state.evaluater){const expression=attribute.value.data.estree.body[0];expression.type,value=state.evaluater.evaluateExpression(expression.expression)}else crashEstree(state,node.position);else value=null===attribute.value||attribute.value;props[name]=value}return props}(state,node),children=createChildren(state,node);return addNode(state,props,type,node),addChildren(props,children),state.ancestors.pop(),state.schema=parentSchema,state.create(node,type,props,key)}(state,node,key):"mdxjsEsm"===node.type?function mdxEsm(state,node){if(node.data&&node.data.estree&&state.evaluater)return state.evaluater.evaluateProgram(node.data.estree);crashEstree(state,node.position)}(state,node):"root"===node.type?function root(state,node,key){const props={};return addChildren(props,createChildren(state,node)),state.create(node,state.Fragment,props,key)}(state,node,key):"text"===node.type?function lib_text(_,node){return node.value}(0,node):void 0}function addNode(state,props,type,node){"string"!=typeof type&&type!==state.Fragment&&state.passNode&&(props.node=node)}function addChildren(props,children){if(children.length>0){const value=children.length>1?children:children[0];value&&(props.children=value)}}function createChildren(state,node){const children=[];let index=-1;const countsByName=state.passKeys?new Map:emptyMap;for(;++index<node.children.length;){const child=node.children[index];let key;if(state.passKeys){const name="element"===child.type?child.tagName:"mdxJsxFlowElement"===child.type||"mdxJsxTextElement"===child.type?child.name:void 0;if(name){const count=countsByName.get(name)||0;key=name+"-"+count,countsByName.set(name,count+1)}}const result=one(state,child,key);void 0!==result&&children.push(result)}return children}function createProperty(state,prop,value){const info=function find(schema,value){const normal=normalize(value);let prop=value,Type=Info;if(normal in schema.normal)return schema.property[schema.normal[normal]];if(normal.length>4&&"data"===normal.slice(0,4)&&valid.test(value)){if("-"===value.charAt(4)){const rest=value.slice(5).replace(dash,camelcase);prop="data"+rest.charAt(0).toUpperCase()+rest.slice(1)}else{const rest=value.slice(4);if(!dash.test(rest)){let dashes=rest.replace(cap,kebab);"-"!==dashes.charAt(0)&&(dashes="-"+dashes),value="data"+dashes}}Type=DefinedInfo}return new Type(prop,value)}(state.schema,prop);if(!(null==value||"number"==typeof value&&Number.isNaN(value))){if(Array.isArray(value)&&(value=info.commaSeparated?function stringify(values,options){const settings=options||{};return(""===values[values.length-1]?[...values,""]:values).join((settings.padRight?" ":"")+","+(!1===settings.padLeft?"":" ")).trim()}(value):function space_separated_tokens_stringify(values){return values.join(" ").trim()}(value)),"style"===info.property){let styleObject="object"==typeof value?value:function parseStyle(state,value){const result={};try{esm(value,replacer)}catch(error){if(!state.ignoreInvalidStyle){const cause=error,message=new VFileMessage("Cannot parse `style` attribute",{ancestors:state.ancestors,cause,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw message.file=state.filePath||void 0,message.url=docs+"#cannot-parse-style-attribute",message}}return result;function replacer(name,value){let key=name;"--"!==key.slice(0,2)&&("-ms-"===key.slice(0,4)&&(key="ms-"+key.slice(4)),key=key.replace(dashSomething,toCamel)),result[key]=value}}(state,String(value));return"css"===state.stylePropertyNameCase&&(styleObject=function transformStylesToCssCasing(domCasing){const cssCasing={};let from;for(from in domCasing)lib_own.call(domCasing,from)&&(cssCasing[transformStyleToCssCasing(from)]=domCasing[from]);return cssCasing}(styleObject)),["style",styleObject]}return["react"===state.elementAttributeNameCase&&info.space?hastToReact[info.property]||info.property:info.attribute,value]}}function findComponentFromName(state,name,allowExpression){let result;if(allowExpression)if(name.includes(".")){const identifiers=name.split(".");let node,index=-1;for(;++index<identifiers.length;){const prop=lib_name(identifiers[index])?{type:"Identifier",name:identifiers[index]}:{type:"Literal",value:identifiers[index]};node=node?{type:"MemberExpression",object:node,property:prop,computed:Boolean(index&&"Literal"===prop.type),optional:!1}:prop}result=node}else result=lib_name(name)&&!/^[a-z]/.test(name)?{type:"Identifier",name}:{type:"Literal",value:name};else result={type:"Literal",value:name};if("Literal"===result.type){const name=result.value;return lib_own.call(state.components,name)?state.components[name]:name}if(state.evaluater)return state.evaluater.evaluateExpression(result);crashEstree(state)}function crashEstree(state,place){const message=new VFileMessage("Cannot handle MDX estrees without `createEvaluater`",{ancestors:state.ancestors,place,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw message.file=state.filePath||void 0,message.url=docs+"#cannot-handle-mdx-estrees-without-createevaluater",message}function transformStyleToCssCasing(from){let to=from.replace(lib_cap,toDash);return"ms-"===to.slice(0,3)&&(to="-"+to),to}function toCamel(_,$1){return $1.toUpperCase()}function toDash($0){return"-"+$0.toLowerCase()}const urlAttributes={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"]};var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const lib_emptyOptions={};function lib_one(value,includeImageAlt,includeHtml){if(function node(value){return Boolean(value&&"object"==typeof value)}(value)){if("value"in value)return"html"!==value.type||includeHtml?value.value:"";if(includeImageAlt&&"alt"in value&&value.alt)return value.alt;if("children"in value)return lib_all(value.children,includeImageAlt,includeHtml)}return Array.isArray(value)?lib_all(value,includeImageAlt,includeHtml):""}function lib_all(values,includeImageAlt,includeHtml){const result=[];let index=-1;for(;++index<values.length;)result[index]=lib_one(values[index],includeImageAlt,includeHtml);return result.join("")}function splice(list,start,remove,items){const end=list.length;let parameters,chunkStart=0;if(start=start<0?-start>end?0:end+start:start>end?end:start,remove=remove>0?remove:0,items.length<1e4)parameters=Array.from(items),parameters.unshift(start,remove),list.splice(...parameters);else for(remove&&list.splice(start,remove);chunkStart<items.length;)parameters=items.slice(chunkStart,chunkStart+1e4),parameters.unshift(start,0),list.splice(...parameters),chunkStart+=1e4,start+=1e4}function push(list,items){return list.length>0?(splice(list,list.length,0,items),list):items}class SpliceBuffer{constructor(initial){this.left=initial?[...initial]:[],this.right=[]}get(index){if(index<0||index>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+index+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return index<this.left.length?this.left[index]:this.right[this.right.length-index+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(start,end){const stop=null==end?Number.POSITIVE_INFINITY:end;return stop<this.left.length?this.left.slice(start,stop):start>this.left.length?this.right.slice(this.right.length-stop+this.left.length,this.right.length-start+this.left.length).reverse():this.left.slice(start).concat(this.right.slice(this.right.length-stop+this.left.length).reverse())}splice(start,deleteCount,items){const count=deleteCount||0;this.setCursor(Math.trunc(start));const removed=this.right.splice(this.right.length-count,Number.POSITIVE_INFINITY);return items&&chunkedPush(this.left,items),removed.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(item){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(item)}pushMany(items){this.setCursor(Number.POSITIVE_INFINITY),chunkedPush(this.left,items)}unshift(item){this.setCursor(0),this.right.push(item)}unshiftMany(items){this.setCursor(0),chunkedPush(this.right,items.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&0===this.right.length||n<0&&0===this.left.length))if(n<this.left.length){const removed=this.left.splice(n,Number.POSITIVE_INFINITY);chunkedPush(this.right,removed.reverse())}else{const removed=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);chunkedPush(this.left,removed.reverse())}}}function chunkedPush(list,right){let chunkStart=0;if(right.length<1e4)list.push(...right);else for(;chunkStart<right.length;)list.push(...right.slice(chunkStart,chunkStart+1e4)),chunkStart+=1e4}function subtokenize(eventsArray){const jumps={};let event,lineIndex,otherIndex,otherEvent,parameters,subevents,more,index=-1;const events=new SpliceBuffer(eventsArray);for(;++index<events.length;){for(;index in jumps;)index=jumps[index];if(event=events.get(index),index&&"chunkFlow"===event[1].type&&"listItemPrefix"===events.get(index-1)[1].type&&(subevents=event[1]._tokenizer.events,otherIndex=0,otherIndex<subevents.length&&"lineEndingBlank"===subevents[otherIndex][1].type&&(otherIndex+=2),otherIndex<subevents.length&&"content"===subevents[otherIndex][1].type))for(;++otherIndex<subevents.length&&"content"!==subevents[otherIndex][1].type;)"chunkText"===subevents[otherIndex][1].type&&(subevents[otherIndex][1]._isInFirstContentOfListItem=!0,otherIndex++);if("enter"===event[0])event[1].contentType&&(Object.assign(jumps,subcontent(events,index)),index=jumps[index],more=!0);else if(event[1]._container){for(otherIndex=index,lineIndex=void 0;otherIndex--&&(otherEvent=events.get(otherIndex),"lineEnding"===otherEvent[1].type||"lineEndingBlank"===otherEvent[1].type);)"enter"===otherEvent[0]&&(lineIndex&&(events.get(lineIndex)[1].type="lineEndingBlank"),otherEvent[1].type="lineEnding",lineIndex=otherIndex);lineIndex&&(event[1].end=Object.assign({},events.get(lineIndex)[1].start),parameters=events.slice(lineIndex,index),parameters.unshift(event),events.splice(lineIndex,index-lineIndex+1,parameters))}}return splice(eventsArray,0,Number.POSITIVE_INFINITY,events.slice(0)),!more}function subcontent(events,eventIndex){const token=events.get(eventIndex)[1],context=events.get(eventIndex)[2];let startPosition=eventIndex-1;const startPositions=[],tokenizer=token._tokenizer||context.parser[token.contentType](token.start),childEvents=tokenizer.events,jumps=[],gaps={};let stream,previous,index=-1,current=token,adjust=0,start=0;const breaks=[start];for(;current;){for(;events.get(++startPosition)[1]!==current;);startPositions.push(startPosition),current._tokenizer||(stream=context.sliceStream(current),current.next||stream.push(null),previous&&tokenizer.defineSkip(current.start),current._isInFirstContentOfListItem&&(tokenizer._gfmTasklistFirstContentOfListItem=!0),tokenizer.write(stream),current._isInFirstContentOfListItem&&(tokenizer._gfmTasklistFirstContentOfListItem=void 0)),previous=current,current=current.next}for(current=token;++index<childEvents.length;)"exit"===childEvents[index][0]&&"enter"===childEvents[index-1][0]&&childEvents[index][1].type===childEvents[index-1][1].type&&childEvents[index][1].start.line!==childEvents[index][1].end.line&&(start=index+1,breaks.push(start),current._tokenizer=void 0,current.previous=void 0,current=current.next);for(tokenizer.events=[],current?(current._tokenizer=void 0,current.previous=void 0):breaks.pop(),index=breaks.length;index--;){const slice=childEvents.slice(breaks[index],breaks[index+1]),start=startPositions.pop();jumps.push([start,start+slice.length-1]),events.splice(start,2,slice)}for(jumps.reverse(),index=-1;++index<jumps.length;)gaps[adjust+jumps[index][0]]=adjust+jumps[index][1],adjust+=jumps[index][1]-jumps[index][0]-1;return gaps}const micromark_util_combine_extensions_hasOwnProperty={}.hasOwnProperty;function syntaxExtension(all,extension){let hook;for(hook in extension){const left=(micromark_util_combine_extensions_hasOwnProperty.call(all,hook)?all[hook]:void 0)||(all[hook]={}),right=extension[hook];let code;if(right)for(code in right){micromark_util_combine_extensions_hasOwnProperty.call(left,code)||(left[code]=[]);const value=right[code];constructs(left[code],Array.isArray(value)?value:value?[value]:[])}}}function constructs(existing,list){let index=-1;const before=[];for(;++index<list.length;)("after"===list[index].add?existing:before).push(list[index]);splice(existing,0,0,before)}const asciiAlpha=regexCheck(/[A-Za-z]/),asciiAlphanumeric=regexCheck(/[\dA-Za-z]/),asciiAtext=regexCheck(/[#-'*+\--9=?A-Z^-~]/);function asciiControl(code){return null!==code&&(code<32||127===code)}const asciiDigit=regexCheck(/\d/),asciiHexDigit=regexCheck(/[\dA-Fa-f]/),asciiPunctuation=regexCheck(/[!-/:-@[-`{-~]/);function markdownLineEnding(code){return null!==code&&code<-2}function markdownLineEndingOrSpace(code){return null!==code&&(code<0||32===code)}function markdownSpace(code){return-2===code||-1===code||32===code}const unicodePunctuation=regexCheck(/\p{P}|\p{S}/u),unicodeWhitespace=regexCheck(/\s/);function regexCheck(regex){return function check(code){return null!==code&&code>-1&®ex.test(String.fromCharCode(code))}}function factorySpace(effects,ok,type,max){const limit=max?max-1:Number.POSITIVE_INFINITY;let size=0;return function start(code){if(markdownSpace(code))return effects.enter(type),prefix(code);return ok(code)};function prefix(code){return markdownSpace(code)&&size++<limit?(effects.consume(code),prefix):(effects.exit(type),ok(code))}}const content={tokenize:function initializeContent(effects){const contentStart=effects.attempt(this.parser.constructs.contentInitial,(function afterContentStartConstruct(code){if(null===code)return void effects.consume(code);return effects.enter("lineEnding"),effects.consume(code),effects.exit("lineEnding"),factorySpace(effects,contentStart,"linePrefix")}),(function paragraphInitial(code){return effects.enter("paragraph"),lineStart(code)}));let previous;return contentStart;function lineStart(code){const token=effects.enter("chunkText",{contentType:"text",previous});return previous&&(previous.next=token),previous=token,data(code)}function data(code){return null===code?(effects.exit("chunkText"),effects.exit("paragraph"),void effects.consume(code)):markdownLineEnding(code)?(effects.consume(code),effects.exit("chunkText"),lineStart):(effects.consume(code),data)}}};const document_document={tokenize:function initializeDocument(effects){const self=this,stack=[];let childFlow,childToken,lineStartOffset,continued=0;return start;function start(code){if(continued<stack.length){const item=stack[continued];return self.containerState=item[1],effects.attempt(item[0].continuation,documentContinue,checkNewContainers)(code)}return checkNewContainers(code)}function documentContinue(code){if(continued++,self.containerState._closeFlow){self.containerState._closeFlow=void 0,childFlow&&closeFlow();const indexBeforeExits=self.events.length;let point,indexBeforeFlow=indexBeforeExits;for(;indexBeforeFlow--;)if("exit"===self.events[indexBeforeFlow][0]&&"chunkFlow"===self.events[indexBeforeFlow][1].type){point=self.events[indexBeforeFlow][1].end;break}exitContainers(continued);let index=indexBeforeExits;for(;index<self.events.length;)self.events[index][1].end=Object.assign({},point),index++;return splice(self.events,indexBeforeFlow+1,0,self.events.slice(indexBeforeExits)),self.events.length=index,checkNewContainers(code)}return start(code)}function checkNewContainers(code){if(continued===stack.length){if(!childFlow)return documentContinued(code);if(childFlow.currentConstruct&&childFlow.currentConstruct.concrete)return flowStart(code);self.interrupt=Boolean(childFlow.currentConstruct&&!childFlow._gfmTableDynamicInterruptHack)}return self.containerState={},effects.check(containerConstruct,thereIsANewContainer,thereIsNoNewContainer)(code)}function thereIsANewContainer(code){return childFlow&&closeFlow(),exitContainers(continued),documentContinued(code)}function thereIsNoNewContainer(code){return self.parser.lazy[self.now().line]=continued!==stack.length,lineStartOffset=self.now().offset,flowStart(code)}function documentContinued(code){return self.containerState={},effects.attempt(containerConstruct,containerContinue,flowStart)(code)}function containerContinue(code){return continued++,stack.push([self.currentConstruct,self.containerState]),documentContinued(code)}function flowStart(code){return null===code?(childFlow&&closeFlow(),exitContainers(0),void effects.consume(code)):(childFlow=childFlow||self.parser.flow(self.now()),effects.enter("chunkFlow",{contentType:"flow",previous:childToken,_tokenizer:childFlow}),flowContinue(code))}function flowContinue(code){return null===code?(writeToChild(effects.exit("chunkFlow"),!0),exitContainers(0),void effects.consume(code)):markdownLineEnding(code)?(effects.consume(code),writeToChild(effects.exit("chunkFlow")),continued=0,self.interrupt=void 0,start):(effects.consume(code),flowContinue)}function writeToChild(token,eof){const stream=self.sliceStream(token);if(eof&&stream.push(null),token.previous=childToken,childToken&&(childToken.next=token),childToken=token,childFlow.defineSkip(token.start),childFlow.write(stream),self.parser.lazy[token.start.line]){let index=childFlow.events.length;for(;index--;)if(childFlow.events[index][1].start.offset<lineStartOffset&&(!childFlow.events[index][1].end||childFlow.events[index][1].end.offset>lineStartOffset))return;const indexBeforeExits=self.events.length;let seen,point,indexBeforeFlow=indexBeforeExits;for(;indexBeforeFlow--;)if("exit"===self.events[indexBeforeFlow][0]&&"chunkFlow"===self.events[indexBeforeFlow][1].type){if(seen){point=self.events[indexBeforeFlow][1].end;break}seen=!0}for(exitContainers(continued),index=indexBeforeExits;index<self.events.length;)self.events[index][1].end=Object.assign({},point),index++;splice(self.events,indexBeforeFlow+1,0,self.events.slice(indexBeforeExits)),self.events.length=index}}function exitContainers(size){let index=stack.length;for(;index-- >size;){const entry=stack[index];self.containerState=entry[1],entry[0].exit.call(self,effects)}stack.length=size}function closeFlow(){childFlow.write([null]),childToken=void 0,childFlow=void 0,self.containerState._closeFlow=void 0}}},containerConstruct={tokenize:function tokenizeContainer(effects,ok,nok){return factorySpace(effects,effects.attempt(this.parser.constructs.document,ok,nok),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};const blankLine={tokenize:function tokenizeBlankLine(effects,ok,nok){return function start(code){return markdownSpace(code)?factorySpace(effects,after,"linePrefix")(code):after(code)};function after(code){return null===code||markdownLineEnding(code)?ok(code):nok(code)}},partial:!0};const content_content={tokenize:function tokenizeContent(effects,ok){let previous;return function chunkStart(code){return effects.enter("content"),previous=effects.enter("chunkContent",{contentType:"content"}),chunkInside(code)};function chunkInside(code){return null===code?contentEnd(code):markdownLineEnding(code)?effects.check(continuationConstruct,contentContinue,contentEnd)(code):(effects.consume(code),chunkInside)}function contentEnd(code){return effects.exit("chunkContent"),effects.exit("content"),ok(code)}function contentContinue(code){return effects.consume(code),effects.exit("chunkContent"),previous.next=effects.enter("chunkContent",{contentType:"content",previous}),previous=previous.next,chunkInside}},resolve:function resolveContent(events){return subtokenize(events),events}},continuationConstruct={tokenize:function tokenizeContinuation(effects,ok,nok){const self=this;return function startLookahead(code){return effects.exit("chunkContent"),effects.enter("lineEnding"),effects.consume(code),effects.exit("lineEnding"),factorySpace(effects,prefixed,"linePrefix")};function prefixed(code){if(null===code||markdownLineEnding(code))return nok(code);const tail=self.events[self.events.length-1];return!self.parser.constructs.disable.null.includes("codeIndented")&&tail&&"linePrefix"===tail[1].type&&tail[2].sliceSerialize(tail[1],!0).length>=4?ok(code):effects.interrupt(self.parser.constructs.flow,nok,ok)(code)}},partial:!0};const flow={tokenize:function initializeFlow(effects){const self=this,initial=effects.attempt(blankLine,(function atBlankEnding(code){if(null===code)return void effects.consume(code);return effects.enter("lineEndingBlank"),effects.consume(code),effects.exit("lineEndingBlank"),self.currentConstruct=void 0,initial}),effects.attempt(this.parser.constructs.flowInitial,afterConstruct,factorySpace(effects,effects.attempt(this.parser.constructs.flow,afterConstruct,effects.attempt(content_content,afterConstruct)),"linePrefix")));return initial;function afterConstruct(code){if(null!==code)return effects.enter("lineEnding"),effects.consume(code),effects.exit("lineEnding"),self.currentConstruct=void 0,initial;effects.consume(code)}}};const resolver={resolveAll:createResolver()},string=initializeFactory("string"),text_text=initializeFactory("text");function initializeFactory(field){return{tokenize:function initializeText(effects){const self=this,constructs=this.parser.constructs[field],text=effects.attempt(constructs,start,notText);return start;function start(code){return atBreak(code)?text(code):notText(code)}function notText(code){if(null!==code)return effects.enter("data"),effects.consume(code),data;effects.consume(code)}function data(code){return atBreak(code)?(effects.exit("data"),text(code)):(effects.consume(code),data)}function atBreak(code){if(null===code)return!0;const list=constructs[code];let index=-1;if(list)for(;++index<list.length;){const item=list[index];if(!item.previous||item.previous.call(self,self.previous))return!0}return!1}},resolveAll:createResolver("text"===field?resolveAllLineSuffixes:void 0)}}function createResolver(extraResolver){return function resolveAllText(events,context){let enter,index=-1;for(;++index<=events.length;)void 0===enter?events[index]&&"data"===events[index][1].type&&(enter=index,index++):events[index]&&"data"===events[index][1].type||(index!==enter+2&&(events[enter][1].end=events[index-1][1].end,events.splice(enter+2,index-enter-2),index=enter+2),enter=void 0);return extraResolver?extraResolver(events,context):events}}function resolveAllLineSuffixes(events,context){let eventIndex=0;for(;++eventIndex<=events.length;)if((eventIndex===events.length||"lineEnding"===events[eventIndex][1].type)&&"data"===events[eventIndex-1][1].type){const data=events[eventIndex-1][1],chunks=context.sliceStream(data);let tabs,index=chunks.length,bufferIndex=-1,size=0;for(;index--;){const chunk=chunks[index];if("string"==typeof chunk){for(bufferIndex=chunk.length;32===chunk.charCodeAt(bufferIndex-1);)size++,bufferIndex--;if(bufferIndex)break;bufferIndex=-1}else if(-2===chunk)tabs=!0,size++;else if(-1!==chunk){index++;break}}if(size){const token={type:eventIndex===events.length||tabs||size<2?"lineSuffix":"hardBreakTrailing",start:{line:data.end.line,column:data.end.column-size,offset:data.end.offset-size,_index:data.start._index+index,_bufferIndex:index?bufferIndex:data.start._bufferIndex+bufferIndex},end:Object.assign({},data.end)};data.end=Object.assign({},token.start),data.start.offset===data.end.offset?Object.assign(data,token):(events.splice(eventIndex,0,["enter",token,context],["exit",token,context]),eventIndex+=2)}eventIndex++}return events}function resolveAll(constructs,events,context){const called=[];let index=-1;for(;++index<constructs.length;){const resolve=constructs[index].resolveAll;resolve&&!called.includes(resolve)&&(events=resolve(events,context),called.push(resolve))}return events}function createTokenizer(parser,initialize,from){let point=Object.assign(from?Object.assign({},from):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const columnStart={},resolveAllConstructs=[];let chunks=[],stack=[],consumed=!0;const effects={consume:function consume(code){markdownLineEnding(code)?(point.line++,point.column=1,point.offset+=-3===code?2:1,accountForPotentialSkip()):-1!==code&&(point.column++,point.offset++);point._bufferIndex<0?point._index++:(point._bufferIndex++,point._bufferIndex===chunks[point._index].length&&(point._bufferIndex=-1,point._index++));context.previous=code,consumed=!0},enter:function enter(type,fields){const token=fields||{};return token.type=type,token.start=now(),context.events.push(["enter",token,context]),stack.push(token),token},exit:function exit(type){const token=stack.pop();return token.end=now(),context.events.push(["exit",token,context]),token},attempt:constructFactory((function onsuccessfulconstruct(construct,info){addResult(construct,info.from)})),check:constructFactory(onsuccessfulcheck),interrupt:constructFactory(onsuccessfulcheck,{interrupt:!0})},context={previous:null,code:null,containerState:{},events:[],parser,sliceStream,sliceSerialize:function sliceSerialize(token,expandTabs){return function serializeChunks(chunks,expandTabs){let index=-1;const result=[];let atTab;for(;++index<chunks.length;){const chunk=chunks[index];let value;if("string"==typeof chunk)value=chunk;else switch(chunk){case-5:value="\r";break;case-4:value="\n";break;case-3:value="\r\n";break;case-2:value=expandTabs?" ":"\t";break;case-1:if(!expandTabs&&atTab)continue;value=" ";break;default:value=String.fromCharCode(chunk)}atTab=-2===chunk,result.push(value)}return result.join("")}(sliceStream(token),expandTabs)},now,defineSkip:function defineSkip(value){columnStart[value.line]=value.column,accountForPotentialSkip()},write:function write(slice){if(chunks=push(chunks,slice),main(),null!==chunks[chunks.length-1])return[];return addResult(initialize,0),context.events=resolveAll(resolveAllConstructs,context.events,context),context.events}};let expectedCode,state=initialize.tokenize.call(context,effects);return initialize.resolveAll&&resolveAllConstructs.push(initialize),context;function sliceStream(token){return function sliceChunks(chunks,token){const startIndex=token.start._index,startBufferIndex=token.start._bufferIndex,endIndex=token.end._index,endBufferIndex=token.end._bufferIndex;let view;if(startIndex===endIndex)view=[chunks[startIndex].slice(startBufferIndex,endBufferIndex)];else{if(view=chunks.slice(startIndex,endIndex),startBufferIndex>-1){const head=view[0];"string"==typeof head?view[0]=head.slice(startBufferIndex):view.shift()}endBufferIndex>0&&view.push(chunks[endIndex].slice(0,endBufferIndex))}return view}(chunks,token)}function now(){const{line,column,offset,_index,_bufferIndex}=point;return{line,column,offset,_index,_bufferIndex}}function main(){let chunkIndex;for(;point._index<chunks.length;){const chunk=chunks[point._index];if("string"==typeof chunk)for(chunkIndex=point._index,point._bufferIndex<0&&(point._bufferIndex=0);point._index===chunkIndex&&point._bufferIndex<chunk.length;)go(chunk.charCodeAt(point._bufferIndex));else go(chunk)}}function go(code){consumed=void 0,expectedCode=code,state=state(code)}function onsuccessfulcheck(_,info){info.restore()}function constructFactory(onreturn,fields){return function hook(constructs,returnState,bogusState){let listOfConstructs,constructIndex,currentConstruct,info;return Array.isArray(constructs)?handleListOfConstructs(constructs):"tokenize"in constructs?handleListOfConstructs([constructs]):function handleMapOfConstructs(map){return start;function start(code){const def=null!==code&&map[code],all=null!==code&&map.null;return handleListOfConstructs([...Array.isArray(def)?def:def?[def]:[],...Array.isArray(all)?all:all?[all]:[]])(code)}}(constructs);function handleListOfConstructs(list){return listOfConstructs=list,constructIndex=0,0===list.length?bogusState:handleConstruct(list[constructIndex])}function handleConstruct(construct){return function start(code){info=function store(){const startPoint=now(),startPrevious=context.previous,startCurrentConstruct=context.currentConstruct,startEventsIndex=context.events.length,startStack=Array.from(stack);return{restore,from:startEventsIndex};function restore(){point=startPoint,context.previous=startPrevious,context.currentConstruct=startCurrentConstruct,context.events.length=startEventsIndex,stack=startStack,accountForPotentialSkip()}}(),currentConstruct=construct,construct.partial||(context.currentConstruct=construct);if(construct.name&&context.parser.constructs.disable.null.includes(construct.name))return nok(code);return construct.tokenize.call(fields?Object.assign(Object.create(context),fields):context,effects,ok,nok)(code)}}function ok(code){return consumed=!0,onreturn(currentConstruct,info),returnState}function nok(code){return consumed=!0,info.restore(),++constructIndex<listOfConstructs.length?handleConstruct(listOfConstructs[constructIndex]):bogusState}}}function addResult(construct,from){construct.resolveAll&&!resolveAllConstructs.includes(construct)&&resolveAllConstructs.push(construct),construct.resolve&&splice(context.events,from,context.events.length-from,construct.resolve(context.events.slice(from),context)),construct.resolveTo&&(context.events=construct.resolveTo(context.events,context))}function accountForPotentialSkip(){point.line in columnStart&&point.column<2&&(point.column=columnStart[point.line],point.offset+=columnStart[point.line]-1)}}const thematicBreak={name:"thematicBreak",tokenize:function tokenizeThematicBreak(effects,ok,nok){let marker,size=0;return function start(code){return effects.enter("thematicBreak"),function before(code){return marker=code,atBreak(code)}(code)};function atBreak(code){return code===marker?(effects.enter("thematicBreakSequence"),sequence(code)):size>=3&&(null===code||markdownLineEnding(code))?(effects.exit("thematicBreak"),ok(code)):nok(code)}function sequence(code){return code===marker?(effects.consume(code),size++,sequence):(effects.exit("thematicBreakSequence"),markdownSpace(code)?factorySpace(effects,atBreak,"whitespace")(code):atBreak(code))}}};const list={name:"list",tokenize:function tokenizeListStart(effects,ok,nok){const self=this,tail=self.events[self.events.length-1];let initialSize=tail&&"linePrefix"===tail[1].type?tail[2].sliceSerialize(tail[1],!0).length:0,size=0;return function start(code){const kind=self.containerState.type||(42===code||43===code||45===code?"listUnordered":"listOrdered");if("listUnordered"===kind?!self.containerState.marker||code===self.containerState.marker:asciiDigit(code)){if(self.containerState.type||(self.containerState.type=kind,effects.enter(kind,{_container:!0})),"listUnordered"===kind)return effects.enter("listItemPrefix"),42===code||45===code?effects.check(thematicBreak,nok,atMarker)(code):atMarker(code);if(!self.interrupt||49===code)return effects.enter("listItemPrefix"),effects.enter("listItemValue"),inside(code)}return nok(code)};function inside(code){return asciiDigit(code)&&++size<10?(effects.consume(code),inside):(!self.interrupt||size<2)&&(self.containerState.marker?code===self.containerState.marker:41===code||46===code)?(effects.exit("listItemValue"),atMarker(code)):nok(code)}function atMarker(code){return effects.enter("listItemMarker"),effects.consume(code),effects.exit("listItemMarker"),self.containerState.marker=self.containerState.marker||code,effects.check(blankLine,self.interrupt?nok:onBlank,effects.attempt(listItemPrefixWhitespaceConstruct,endOfPrefix,otherPrefix))}function onBlank(code){return self.containerState.initialBlankLine=!0,initialSize++,endOfPrefix(code)}function otherPrefix(code){return markdownSpace(code)?(effects.enter("listItemPrefixWhitespace"),effects.consume(code),effects.exit("listItemPrefixWhitespace"),endOfPrefix):nok(code)}function endOfPrefix(code){return self.containerState.size=initialSize+self.sliceSerialize(effects.exit("listItemPrefix"),!0).length,ok(code)}},continuation:{tokenize:function tokenizeListContinuation(effects,ok,nok){const self=this;return self.containerState._closeFlow=void 0,effects.check(blankLine,onBlank,notBlank);function onBlank(code){return self.containerState.furtherBlankLines=self.containerState.furtherBlankLines||self.containerState.initialBlankLine,factorySpace(effects,ok,"listItemIndent",self.containerState.size+1)(code)}function notBlank(code){return self.containerState.furtherBlankLines||!markdownSpace(code)?(self.containerState.furtherBlankLines=void 0,self.containerState.initialBlankLine=void 0,notInCurrentItem(code)):(self.containerState.furtherBlankLines=void 0,self.containerState.initialBlankLine=void 0,effects.attempt(indentConstruct,ok,notInCurrentItem)(code))}function notInCurrentItem(code){return self.containerState._closeFlow=!0,self.interrupt=void 0,factorySpace(effects,effects.attempt(list,ok,nok),"linePrefix",self.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(code)}}},exit:function tokenizeListEnd(effects){effects.exit(this.containerState.type)}},listItemPrefixWhitespaceConstruct={tokenize:function tokenizeListItemPrefixWhitespace(effects,ok,nok){const self=this;return factorySpace(effects,(function afterPrefix(code){const tail=self.events[self.events.length-1];return!markdownSpace(code)&&tail&&"listItemPrefixWhitespace"===tail[1].type?ok(code):nok(code)}),"listItemPrefixWhitespace",self.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},indentConstruct={tokenize:function tokenizeIndent(effects,ok,nok){const self=this;return factorySpace(effects,(function afterPrefix(code){const tail=self.events[self.events.length-1];return tail&&"listItemIndent"===tail[1].type&&tail[2].sliceSerialize(tail[1],!0).length===self.containerState.size?ok(code):nok(code)}),"listItemIndent",self.containerState.size+1)},partial:!0};const blockQuote={name:"blockQuote",tokenize:function tokenizeBlockQuoteStart(effects,ok,nok){const self=this;return function start(code){if(62===code){const state=self.containerState;return state.open||(effects.enter("blockQuote",{_container:!0}),state.open=!0),effects.enter("blockQuotePrefix"),effects.enter("blockQuoteMarker"),effects.consume(code),effects.exit("blockQuoteMarker"),after}return nok(code)};function after(code){return markdownSpace(code)?(effects.enter("blockQuotePrefixWhitespace"),effects.consume(code),effects.exit("blockQuotePrefixWhitespace"),effects.exit("blockQuotePrefix"),ok):(effects.exit("blockQuotePrefix"),ok(code))}},continuation:{tokenize:function tokenizeBlockQuoteContinuation(effects,ok,nok){const self=this;return function contStart(code){if(markdownSpace(code))return factorySpace(effects,contBefore,"linePrefix",self.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(code);return contBefore(code)};function contBefore(code){return effects.attempt(blockQuote,ok,nok)(code)}}},exit:function exit(effects){effects.exit("blockQuote")}};function factoryDestination(effects,ok,nok,type,literalType,literalMarkerType,rawType,stringType,max){const limit=max||Number.POSITIVE_INFINITY;let balance=0;return function start(code){if(60===code)return effects.enter(type),effects.enter(literalType),effects.enter(literalMarkerType),effects.consume(code),effects.exit(literalMarkerType),enclosedBefore;if(null===code||32===code||41===code||asciiControl(code))return nok(code);return effects.enter(type),effects.enter(rawType),effects.enter(stringType),effects.enter("chunkString",{contentType:"string"}),raw(code)};function enclosedBefore(code){return 62===code?(effects.enter(literalMarkerType),effects.consume(code),effects.exit(literalMarkerType),effects.exit(literalType),effects.exit(type),ok):(effects.enter(stringType),effects.enter("chunkString",{contentType:"string"}),enclosed(code))}function enclosed(code){return 62===code?(effects.exit("chunkString"),effects.exit(stringType),enclosedBefore(code)):null===code||60===code||markdownLineEnding(code)?nok(code):(effects.consume(code),92===code?enclosedEscape:enclosed)}function enclosedEscape(code){return 60===code||62===code||92===code?(effects.consume(code),enclosed):enclosed(code)}function raw(code){return balance||null!==code&&41!==code&&!markdownLineEndingOrSpace(code)?balance<limit&&40===code?(effects.consume(code),balance++,raw):41===code?(effects.consume(code),balance--,raw):null===code||32===code||40===code||asciiControl(code)?nok(code):(effects.consume(code),92===code?rawEscape:raw):(effects.exit("chunkString"),effects.exit(stringType),effects.exit(rawType),effects.exit(type),ok(code))}function rawEscape(code){return 40===code||41===code||92===code?(effects.consume(code),raw):raw(code)}}function factoryLabel(effects,ok,nok,type,markerType,stringType){const self=this;let seen,size=0;return function start(code){return effects.enter(type),effects.enter(markerType),effects.consume(code),effects.exit(markerType),effects.enter(stringType),atBreak};function atBreak(code){return size>999||null===code||91===code||93===code&&!seen||94===code&&!size&&"_hiddenFootnoteSupport"in self.parser.constructs?nok(code):93===code?(effects.exit(stringType),effects.enter(markerType),effects.consume(code),effects.exit(markerType),effects.exit(type),ok):markdownLineEnding(code)?(effects.enter("lineEnding"),effects.consume(code),effects.exit("lineEnding"),atBreak):(effects.enter("chunkString",{contentType:"string"}),labelInside(code))}function labelInside(code){return null===code||91===code||93===code||markdownLineEnding(code)||size++>999?(effects.exit("chunkString"),atBreak(code)):(effects.consume(code),seen||(seen=!markdownSpace(code)),92===code?labelEscape:labelInside)}function labelEscape(code){return 91===code||92===code||93===code?(effects.consume(code),size++,labelInside):labelInside(code)}}function factoryTitle(effects,ok,nok,type,markerType,stringType){let marker;return function start(code){if(34===code||39===code||40===code)return effects.enter(type),effects.enter(markerType),effects.consume(code),effects.exit(markerType),marker=40===code?41:code,begin;return nok(code)};function begin(code){return code===marker?(effects.enter(markerType),effects.consume(code),effects.exit(markerType),effects.exit(type),ok):(effects.enter(stringType),atBreak(code))}function atBreak(code){return code===marker?(effects.exit(stringType),begin(marker)):null===code?nok(code):markdownLineEnding(code)?(effects.enter("lineEnding"),effects.consume(code),effects.exit("lineEnding"),factorySpace(effects,atBreak,"linePrefix")):(effects.enter("chunkString",{contentType:"string"}),inside(code))}function inside(code){return code===marker||null===code||markdownLineEnding(code)?(effects.exit("chunkString"),atBreak(code)):(effects.consume(code),92===code?escape:inside)}function escape(code){return code===marker||92===code?(effects.consume(code),inside):inside(code)}}function factoryWhitespace(effects,ok){let seen;return function start(code){if(markdownLineEnding(code))return effects.enter("lineEnding"),effects.consume(code),effects.exit("lineEnding"),seen=!0,start;if(markdownSpace(code))return factorySpace(effects,start,seen?"linePrefix":"lineSuffix")(code);return ok(code)}}function normalizeIdentifier(value){return value.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const definition={name:"definition",tokenize:function tokenizeDefinition(effects,ok,nok){const self=this;let identifier;return function start(code){return effects.enter("definition"),function before(code){return factoryLabel.call(self,effects,labelAfter,nok,"definitionLabel","definitionLabelMarker","definitionLabelString")(code)}(code)};function labelAfter(code){return identifier=normalizeIdentifier(self.sliceSerialize(self.events[self.events.length-1][1]).slice(1,-1)),58===code?(effects.enter("definitionMarker"),effects.consume(code),effects.exit("definitionMarker"),markerAfter):nok(code)}function markerAfter(code){return markdownLineEndingOrSpace(code)?factoryWhitespace(effects,destinationBefore)(code):destinationBefore(code)}function destinationBefore(code){return factoryDestination(effects,destinationAfter,nok,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(code)}function destinationAfter(code){return effects.attempt(titleBefore,after,after)(code)}function after(code){return markdownSpace(code)?factorySpace(effects,afterWhitespace,"whitespace")(code):afterWhitespace(code)}function afterWhitespace(code){return null===code||markdownLineEnding(code)?(effects.exit("definition"),self.parser.defined.push(identifier),ok(code)):nok(code)}}},titleBefore={tokenize:function tokenizeTitleBefore(effects,ok,nok){return function titleBefore(code){return markdownLineEndingOrSpace(code)?factoryWhitespace(effects,beforeMarker)(code):nok(code)};function beforeMarker(code){return factoryTitle(effects,titleAfter,nok,"definitionTitle","definitionTitleMarker","definitionTitleString")(code)}function titleAfter(code){return markdownSpace(code)?factorySpace(effects,titleAfterOptionalWhitespace,"whitespace")(code):titleAfterOptionalWhitespace(code)}function titleAfterOptionalWhitespace(code){return null===code||markdownLineEnding(code)?ok(code):nok(code)}},partial:!0};const codeIndented={name:"codeIndented",tokenize:function tokenizeCodeIndented(effects,ok,nok){const self=this;return function start(code){return effects.enter("codeIndented"),factorySpace(effects,afterPrefix,"linePrefix",5)(code)};function afterPrefix(code){const tail=self.events[self.events.length-1];return tail&&"linePrefix"===tail[1].type&&tail[2].sliceSerialize(tail[1],!0).length>=4?atBreak(code):nok(code)}function atBreak(code){return null===code?after(code):markdownLineEnding(code)?effects.attempt(furtherStart,atBreak,after)(code):(effects.enter("codeFlowValue"),inside(code))}function inside(code){return null===code||markdownLineEnding(code)?(effects.exit("codeFlowValue"),atBreak(code)):(effects.consume(code),inside)}function after(code){return effects.exit("codeIndented"),ok(code)}}},furtherStart={tokenize:function tokenizeFurtherStart(effects,ok,nok){const self=this;return furtherStart;function furtherStart(code){return self.parser.lazy[self.now().line]?nok(code):markdownLineEnding(code)?(effects.enter("lineEnding"),effects.consume(code),effects.exit("lineEnding"),furtherStart):factorySpace(effects,afterPrefix,"linePrefix",5)(code)}function afterPrefix(code){const tail=self.events[self.events.length-1];return tail&&"linePrefix"===tail[1].type&&tail[2].sliceSerialize(tail[1],!0).length>=4?ok(code):markdownLineEnding(code)?furtherStart(code):nok(code)}},partial:!0};const headingAtx={name:"headingAtx",tokenize:function tokenizeHeadingAtx(effects,ok,nok){let size=0;return function start(code){return effects.enter("atxHeading"),function before(code){return effects.enter("atxHeadingSequence"),sequenceOpen(code)}(code)};function sequenceOpen(code){return 35===code&&size++<6?(effects.consume(code),sequenceOpen):null===code||markdownLineEndingOrSpace(code)?(effects.exit("atxHeadingSequence"),atBreak(code)):nok(code)}function atBreak(code){return 35===code?(effects.enter("atxHeadingSequence"),sequenceFurther(code)):null===code||markdownLineEnding(code)?(effects.exit("atxHeading"),ok(code)):markdownSpace(code)?factorySpace(effects,atBreak,"whitespace")(code):(effects.enter("atxHeadingText"),data(code))}function sequenceFurther(code){return 35===code?(effects.consume(code),sequenceFurther):(effects.exit("atxHeadingSequence"),atBreak(code))}function data(code){return null===code||35===code||markdownLineEndingOrSpace(code)?(effects.exit("atxHeadingText"),atBreak(code)):(effects.consume(code),data)}},resolve:function resolveHeadingAtx(events,context){let content,text,contentEnd=events.length-2,contentStart=3;"whitespace"===events[contentStart][1].type&&(contentStart+=2);contentEnd-2>contentStart&&"whitespace"===events[contentEnd][1].type&&(contentEnd-=2);"atxHeadingSequence"===events[contentEnd][1].type&&(contentStart===contentEnd-1||contentEnd-4>contentStart&&"whitespace"===events[contentEnd-2][1].type)&&(contentEnd-=contentStart+1===contentEnd?2:4);contentEnd>contentStart&&(content={type:"atxHeadingText",start:events[contentStart][1].start,end:events[contentEnd][1].end},text={type:"chunkText",start:events[contentStart][1].start,end:events[contentEnd][1].end,contentType:"text"},splice(events,contentStart,contentEnd-contentStart+1,[["enter",content,context],["enter",text,context],["exit",text,context],["exit",content,context]]));return events}};const setextUnderline={name:"setextUnderline",tokenize:function tokenizeSetextUnderline(effects,ok,nok){const self=this;let marker;return function start(code){let paragraph,index=self.events.length;for(;index--;)if("lineEnding"!==self.events[index][1].type&&"linePrefix"!==self.events[index][1].type&&"content"!==self.events[index][1].type){paragraph="paragraph"===self.events[index][1].type;break}if(!self.parser.lazy[self.now().line]&&(self.interrupt||paragraph))return effects.enter("setextHeadingLine"),marker=code,function before(code){return effects.enter("setextHeadingLineSequence"),inside(code)}(code);return nok(code)};function inside(code){return code===marker?(effects.consume(code),inside):(effects.exit("setextHeadingLineSequence"),markdownSpace(code)?factorySpace(effects,after,"lineSuffix")(code):after(code))}function after(code){return null===code||markdownLineEnding(code)?(effects.exit("setextHeadingLine"),ok(code)):nok(code)}},resolveTo:function resolveToSetextUnderline(events,context){let content,text,definition,index=events.length;for(;index--;)if("enter"===events[index][0]){if("content"===events[index][1].type){content=index;break}"paragraph"===events[index][1].type&&(text=index)}else"content"===events[index][1].type&&events.splice(index,1),definition||"definition"!==events[index][1].type||(definition=index);const heading={type:"setextHeading",start:Object.assign({},events[text][1].start),end:Object.assign({},events[events.length-1][1].end)};events[text][1].type="setextHeadingText",definition?(events.splice(text,0,["enter",heading,context]),events.splice(definition+1,0,["exit",events[content][1],context]),events[content][1].end=Object.assign({},events[definition][1].end)):events[content][1]=heading;return events.push(["exit",heading,context]),events}};const htmlBlockNames=["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"],htmlRawNames=["pre","script","style","textarea"],htmlFlow={name:"htmlFlow",tokenize:function tokenizeHtmlFlow(effects,ok,nok){const self=this;let marker,closingTag,buffer,index,markerB;return function start(code){return function before(code){return effects.enter("htmlFlow"),effects.enter("htmlFlowData"),effects.consume(code),open}(code)};function open(code){return 33===code?(effects.consume(code),declarationOpen):47===code?(effects.consume(code),closingTag=!0,tagCloseStart):63===code?(effects.consume(code),marker=3,self.interrupt?ok:continuationDeclarationInside):asciiAlpha(code)?(effects.consume(code),buffer=String.fromCharCode(code),tagName):nok(code)}function declarationOpen(code){return 45===code?(effects.consume(code),marker=2,commentOpenInside):91===code?(effects.consume(code),marker=5,index=0,cdataOpenInside):asciiAlpha(code)?(effects.consume(code),marker=4,self.interrupt?ok:continuationDeclarationInside):nok(code)}function commentOpenInside(code){return 45===code?(effects.consume(code),self.interrupt?ok:continuationDeclarationInside):nok(code)}function cdataOpenInside(code){return code==="CDATA[".charCodeAt(index++)?(effects.consume(code),6===index?self.interrupt?ok:continuation:cdataOpenInside):nok(code)}function tagCloseStart(code){return asciiAlpha(code)?(effects.consume(code),buffer=String.fromCharCode(code),tagName):nok(code)}function tagName(code){if(null===code||47===code||62===code||markdownLineEndingOrSpace(code)){const slash=47===code,name=buffer.toLowerCase();return slash||closingTag||!htmlRawNames.includes(name)?htmlBlockNames.includes(buffer.toLowerCase())?(marker=6,slash?(effects.consume(code),basicSelfClosing):self.interrupt?ok(code):continuation(code)):(marker=7,self.interrupt&&!self.parser.lazy[self.now().line]?nok(code):closingTag?completeClosingTagAfter(code):completeAttributeNameBefore(code)):(marker=1,self.interrupt?ok(code):continuation(code))}return 45===code||asciiAlphanumeric(code)?(effects.consume(code),buffer+=String.fromCharCode(code),tagName):nok(code)}function basicSelfClosing(code){return 62===code?(effects.consume(code),self.interrupt?ok:continuation):nok(code)}function completeClosingTagAfter(code){return markdownSpace(code)?(effects.consume(code),completeClosingTagAfter):completeEnd(code)}function completeAttributeNameBefore(code){return 47===code?(effects.consume(code),completeEnd):58===code||95===code||asciiAlpha(code)?(effects.consume(code),completeAttributeName):markdownSpace(code)?(effects.consume(code),completeAttributeNameBefore):completeEnd(code)}function completeAttributeName(code){return 45===code||46===code||58===code||95===code||asciiAlphanumeric(code)?(effects.consume(code),completeAttributeName):completeAttributeNameAfter(code)}function completeAttributeNameAfter(code){return 61===code?(effects.consume(code),completeAttributeValueBefore):markdownSpace(code)?(effects.consume(code),completeAttributeNameAfter):completeAttributeNameBefore(code)}function completeAttributeValueBefore(code){return null===code||60===code||61===code||62===code||96===code?nok(code):34===code||39===code?(effects.consume(code),markerB=code,completeAttributeValueQuoted):markdownSpace(code)?(effects.consume(code),completeAttributeValueBefore):completeAttributeValueUnquoted(code)}function completeAttributeValueQuoted(code){return code===markerB?(effects.consume(code),markerB=null,completeAttributeValueQuotedAfter):null===code||markdownLineEnding(code)?nok(code):(effects.consume(code),completeAttributeValueQuoted)}function completeAttributeValueUnquoted(code){return null===code||34===code||39===code||47===code||60===code||61===code||62===code||96===code||markdownLineEndingOrSpace(code)?completeAttributeNameAfter(code):(effects.consume(code),completeAttributeValueUnquoted)}function completeAttributeValueQuotedAfter(code){return 47===code||62===code||markdownSpace(code)?completeAttributeNameBefore(code):nok(code)}function completeEnd(code){return 62===code?(effects.consume(code),completeAfter):nok(code)}function completeAfter(code){return null===code||markdownLineEnding(code)?continuation(code):markdownSpace(code)?(effects.consume(code),completeAfter):nok(code)}function continuation(code){return 45===code&&2===marker?(effects.consume(code),continuationCommentInside):60===code&&1===marker?(effects.consume(code),continuationRawTagOpen):62===code&&4===marker?(effects.consume(code),continuationClose):63===code&&3===marker?(effects.consume(code),continuationDeclarationInside):93===code&&5===marker?(effects.consume(code),continuationCdataInside):!markdownLineEnding(code)||6!==marker&&7!==marker?null===code||markdownLineEnding(code)?(effects.exit("htmlFlowData"),continuationStart(code)):(effects.consume(code),continuation):(effects.exit("htmlFlowData"),effects.check(blankLineBefore,continuationAfter,continuationStart)(code))}function continuationStart(code){return effects.check(nonLazyContinuationStart,continuationStartNonLazy,continuationAfter)(code)}function continuationStartNonLazy(code){return effects.enter("lineEnding"),effects.consume(code),effects.exit("lineEnding"),continuationBefore}function continuationBefore(code){return null===code||markdownLineEnding(code)?continuationStart(code):(effects.enter("htmlFlowData"),continuation(code))}function continuationCommentInside(code){return 45===code?(effects.consume(code),continuationDeclarationInside):continuation(code)}function continuationRawTagOpen(code){return 47===code?(effects.consume(code),buffer="",continuationRawEndTag):continuation(code)}function continuationRawEndTag(code){if(62===code){const name=buffer.toLowerCase();return htmlRawNames.includes(name)?(effects.consume(code),continuationClose):continuation(code)}return asciiAlpha(code)&&buffer.length<8?(effects.consume(code),buffer+=String.fromCharCode(code),continuationRawEndTag):continuation(code)}function continuationCdataInside(code){return 93===code?(effects.consume(code),continuationDeclarationInside):continuation(code)}function continuationDeclarationInside(code){return 62===code?(effects.consume(code),continuationClose):45===code&&2===marker?(effects.consume(code),continuationDeclarationInside):continuation(code)}function continuationClose(code){return null===code||markdownLineEnding(code)?(effects.exit("htmlFlowData"),continuationAfter(code)):(effects.consume(code),continuationClose)}function continuationAfter(code){return effects.exit("htmlFlow"),ok(code)}},resolveTo:function resolveToHtmlFlow(events){let index=events.length;for(;index--&&("enter"!==events[index][0]||"htmlFlow"!==events[index][1].type););index>1&&"linePrefix"===events[index-2][1].type&&(events[index][1].start=events[index-2][1].start,events[index+1][1].start=events[index-2][1].start,events.splice(index-2,2));return events},concrete:!0},blankLineBefore={tokenize:function tokenizeBlankLineBefore(effects,ok,nok){return function start(code){return effects.enter("lineEnding"),effects.consume(code),effects.exit("lineEnding"),effects.attempt(blankLine,ok,nok)}},partial:!0},nonLazyContinuationStart={tokenize:function tokenizeNonLazyContinuationStart(effects,ok,nok){const self=this;return function start(code){if(markdownLineEnding(code))return effects.enter("lineEnding"),effects.consume(code),effects.exit("lineEnding"),after;return nok(code)};function after(code){return self.parser.lazy[self.now().line]?nok(code):ok(code)}},partial:!0};const nonLazyContinuation={tokenize:function tokenizeNonLazyContinuation(effects,ok,nok){const self=this;return function start(code){if(null===code)return nok(code);return effects.enter("lineEnding"),effects.consume(code),effects.exit("lineEnding"),lineStart};function lineStart(code){return self.parser.lazy[self.now().line]?nok(code):ok(code)}},partial:!0},codeFenced={name:"codeFenced",tokenize:function tokenizeCodeFenced(effects,ok,nok){const self=this,closeStart={tokenize:function tokenizeCloseStart(effects,ok,nok){let size=0;return startBefore;function startBefore(code){return effects.enter("lineEnding"),effects.consume(code),effects.exit("lineEnding"),start}function start(code){return effects.enter("codeFencedFence"),markdownSpace(code)?factorySpace(effects,beforeSequenceClose,"linePrefix",self.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(code):beforeSequenceClose(code)}function beforeSequenceClose(code){return code===marker?(effects.enter("codeFencedFenceSequence"),sequenceClose(code)):nok(code)}function sequenceClose(code){return code===marker?(size++,effects.consume(code),sequenceClose):size>=sizeOpen?(effects.exit("codeFencedFenceSequence"),markdownSpace(code)?factorySpace(effects,sequenceCloseAfter,"whitespace")(code):sequenceCloseAfter(code)):nok(code)}function sequenceCloseAfter(code){return null===code||markdownLineEnding(code)?(effects.exit("codeFencedFence"),ok(code)):nok(code)}},partial:!0};let marker,initialPrefix=0,sizeOpen=0;return function start(code){return function beforeSequenceOpen(code){const tail=self.events[self.events.length-1];return initialPrefix=tail&&"linePrefix"===tail[1].type?tail[2].sliceSerialize(tail[1],!0).length:0,marker=code,effects.enter("codeFenced"),effects.enter("codeFencedFence"),effects.enter("codeFencedFenceSequence"),sequenceOpen(code)}(code)};function sequenceOpen(code){return code===marker?(sizeOpen++,effects.consume(code),sequenceOpen):sizeOpen<3?nok(code):(effects.exit("codeFencedFenceSequence"),markdownSpace(code)?factorySpace(effects,infoBefore,"whitespace")(code):infoBefore(code))}function infoBefore(code){return null===code||markdownLineEnding(code)?(effects.exit("codeFencedFence"),self.interrupt?ok(code):effects.check(nonLazyContinuation,atNonLazyBreak,after)(code)):(effects.enter("codeFencedFenceInfo"),effects.enter("chunkString",{contentType:"string"}),info(code))}function info(code){return null===code||markdownLineEnding(code)?(effects.exit("chunkString"),effects.exit("codeFencedFenceInfo"),infoBefore(code)):markdownSpace(code)?(effects.exit("chunkString"),effects.exit("codeFencedFenceInfo"),factorySpace(effects,metaBefore,"whitespace")(code)):96===code&&code===marker?nok(code):(effects.consume(code),info)}function metaBefore(code){return null===code||markdownLineEnding(code)?infoBefore(code):(effects.enter("codeFencedFenceMeta"),effects.enter("chunkString",{contentType:"string"}),meta(code))}function meta(code){return null===code||markdownLineEnding(code)?(effects.exit("chunkString"),effects.exit("codeFencedFenceMeta"),infoBefore(code)):96===code&&code===marker?nok(code):(effects.consume(code),meta)}function atNonLazyBreak(code){return effects.attempt(closeStart,after,contentBefore)(code)}function contentBefore(code){return effects.enter("lineEnding"),effects.consume(code),effects.exit("lineEnding"),contentStart}function contentStart(code){return initialPrefix>0&&markdownSpace(code)?factorySpace(effects,beforeContentChunk,"linePrefix",initialPrefix+1)(code):beforeContentChunk(code)}function beforeContentChunk(code){return null===code||markdownLineEnding(code)?effects.check(nonLazyContinuation,atNonLazyBreak,after)(code):(effects.enter("codeFlowValue"),contentChunk(code))}function contentChunk(code){return null===code||markdownLineEnding(code)?(effects.exit("codeFlowValue"),beforeContentChunk(code)):(effects.consume(code),contentChunk)}function after(code){return effects.exit("codeFenced"),ok(code)}},concrete:!0};const index_dom_element=document.createElement("i");function decodeNamedCharacterReference(value){const characterReference="&"+value+";";index_dom_element.innerHTML=characterReference;const char=index_dom_element.textContent;return(59!==char.charCodeAt(char.length-1)||"semi"===value)&&(char!==characterReference&&char)}const characterReference={name:"characterReference",tokenize:function tokenizeCharacterReference(effects,ok,nok){const self=this;let max,test,size=0;return function start(code){return effects.enter("characterReference"),effects.enter("characterReferenceMarker"),effects.consume(code),effects.exit("characterReferenceMarker"),open};function open(code){return 35===code?(effects.enter("characterReferenceMarkerNumeric"),effects.consume(code),effects.exit("characterReferenceMarkerNumeric"),numeric):(effects.enter("characterReferenceValue"),max=31,test=asciiAlphanumeric,value(code))}function numeric(code){return 88===code||120===code?(effects.enter("characterReferenceMarkerHexadecimal"),effects.consume(code),effects.exit("characterReferenceMarkerHexadecimal"),effects.enter("characterReferenceValue"),max=6,test=asciiHexDigit,value):(effects.enter("characterReferenceValue"),max=7,test=asciiDigit,value(code))}function value(code){if(59===code&&size){const token=effects.exit("characterReferenceValue");return test!==asciiAlphanumeric||decodeNamedCharacterReference(self.sliceSerialize(token))?(effects.enter("characterReferenceMarker"),effects.consume(code),effects.exit("characterReferenceMarker"),effects.exit("characterReference"),ok):nok(code)}return test(code)&&size++<max?(effects.consume(code),value):nok(code)}}};const characterEscape={name:"characterEscape",tokenize:function tokenizeCharacterEscape(effects,ok,nok){return function start(code){return effects.enter("characterEscape"),effects.enter("escapeMarker"),effects.consume(code),effects.exit("escapeMarker"),inside};function inside(code){return asciiPunctuation(code)?(effects.enter("characterEscapeValue"),effects.consume(code),effects.exit("characterEscapeValue"),effects.exit("characterEscape"),ok):nok(code)}}};const lineEnding={name:"lineEnding",tokenize:function tokenizeLineEnding(effects,ok){return function start(code){return effects.enter("lineEnding"),effects.consume(code),effects.exit("lineEnding"),factorySpace(effects,ok,"linePrefix")}}};const labelEnd={name:"labelEnd",tokenize:function tokenizeLabelEnd(effects,ok,nok){const self=this;let labelStart,defined,index=self.events.length;for(;index--;)if(("labelImage"===self.events[index][1].type||"labelLink"===self.events[index][1].type)&&!self.events[index][1]._balanced){labelStart=self.events[index][1];break}return function start(code){if(!labelStart)return nok(code);if(labelStart._inactive)return labelEndNok(code);return defined=self.parser.defined.includes(normalizeIdentifier(self.sliceSerialize({start:labelStart.end,end:self.now()}))),effects.enter("labelEnd"),effects.enter("labelMarker"),effects.consume(code),effects.exit("labelMarker"),effects.exit("labelEnd"),after};function after(code){return 40===code?effects.attempt(resourceConstruct,labelEndOk,defined?labelEndOk:labelEndNok)(code):91===code?effects.attempt(referenceFullConstruct,labelEndOk,defined?referenceNotFull:labelEndNok)(code):defined?labelEndOk(code):labelEndNok(code)}function referenceNotFull(code){return effects.attempt(referenceCollapsedConstruct,labelEndOk,labelEndNok)(code)}function labelEndOk(code){return ok(code)}function labelEndNok(code){return labelStart._balanced=!0,nok(code)}},resolveTo:function resolveToLabelEnd(events,context){let token,open,close,media,index=events.length,offset=0;for(;index--;)if(token=events[index][1],open){if("link"===token.type||"labelLink"===token.type&&token._inactive)break;"enter"===events[index][0]&&"labelLink"===token.type&&(token._inactive=!0)}else if(close){if("enter"===events[index][0]&&("labelImage"===token.type||"labelLink"===token.type)&&!token._balanced&&(open=index,"labelLink"!==token.type)){offset=2;break}}else"labelEnd"===token.type&&(close=index);const group={type:"labelLink"===events[open][1].type?"link":"image",start:Object.assign({},events[open][1].start),end:Object.assign({},events[events.length-1][1].end)},label={type:"label",start:Object.assign({},events[open][1].start),end:Object.assign({},events[close][1].end)},text={type:"labelText",start:Object.assign({},events[open+offset+2][1].end),end:Object.assign({},events[close-2][1].start)};return media=[["enter",group,context],["enter",label,context]],media=push(media,events.slice(open+1,open+offset+3)),media=push(media,[["enter",text,context]]),media=push(media,resolveAll(context.parser.constructs.insideSpan.null,events.slice(open+offset+4,close-3),context)),media=push(media,[["exit",text,context],events[close-2],events[close-1],["exit",label,context]]),media=push(media,events.slice(close+1)),media=push(media,[["exit",group,context]]),splice(events,open,events.length,media),events},resolveAll:function resolveAllLabelEnd(events){let index=-1;for(;++index<events.length;){const token=events[index][1];"labelImage"!==token.type&&"labelLink"!==token.type&&"labelEnd"!==token.type||(events.splice(index+1,"labelImage"===token.type?4:2),token.type="data",index++)}return events}},resourceConstruct={tokenize:function tokenizeResource(effects,ok,nok){return function resourceStart(code){return effects.enter("resource"),effects.enter("resourceMarker"),effects.consume(code),effects.exit("resourceMarker"),resourceBefore};function resourceBefore(code){return markdownLineEndingOrSpace(code)?factoryWhitespace(effects,resourceOpen)(code):resourceOpen(code)}function resourceOpen(code){return 41===code?resourceEnd(code):factoryDestination(effects,resourceDestinationAfter,resourceDestinationMissing,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(code)}function resourceDestinationAfter(code){return markdownLineEndingOrSpace(code)?factoryWhitespace(effects,resourceBetween)(code):resourceEnd(code)}function resourceDestinationMissing(code){return nok(code)}function resourceBetween(code){return 34===code||39===code||40===code?factoryTitle(effects,resourceTitleAfter,nok,"resourceTitle","resourceTitleMarker","resourceTitleString")(code):resourceEnd(code)}function resourceTitleAfter(code){return markdownLineEndingOrSpace(code)?factoryWhitespace(effects,resourceEnd)(code):resourceEnd(code)}function resourceEnd(code){return 41===code?(effects.enter("resourceMarker"),effects.consume(code),effects.exit("resourceMarker"),effects.exit("resource"),ok):nok(code)}}},referenceFullConstruct={tokenize:function tokenizeReferenceFull(effects,ok,nok){const self=this;return function referenceFull(code){return factoryLabel.call(self,effects,referenceFullAfter,referenceFullMissing,"reference","referenceMarker","referenceString")(code)};function referenceFullAfter(code){return self.parser.defined.includes(normalizeIdentifier(self.sliceSerialize(self.events[self.events.length-1][1]).slice(1,-1)))?ok(code):nok(code)}function referenceFullMissing(code){return nok(code)}}},referenceCollapsedConstruct={tokenize:function tokenizeReferenceCollapsed(effects,ok,nok){return function referenceCollapsedStart(code){return effects.enter("reference"),effects.enter("referenceMarker"),effects.consume(code),effects.exit("referenceMarker"),referenceCollapsedOpen};function referenceCollapsedOpen(code){return 93===code?(effects.enter("referenceMarker"),effects.consume(code),effects.exit("referenceMarker"),effects.exit("reference"),ok):nok(code)}}};const labelStartImage={name:"labelStartImage",tokenize:function tokenizeLabelStartImage(effects,ok,nok){const self=this;return function start(code){return effects.enter("labelImage"),effects.enter("labelImageMarker"),effects.consume(code),effects.exit("labelImageMarker"),open};function open(code){return 91===code?(effects.enter("labelMarker"),effects.consume(code),effects.exit("labelMarker"),effects.exit("labelImage"),after):nok(code)}function after(code){return 94===code&&"_hiddenFootnoteSupport"in self.parser.constructs?nok(code):ok(code)}},resolveAll:labelEnd.resolveAll};function classifyCharacter(code){return null===code||markdownLineEndingOrSpace(code)||unicodeWhitespace(code)?1:unicodePunctuation(code)?2:void 0}const attention={name:"attention",tokenize:function tokenizeAttention(effects,ok){const attentionMarkers=this.parser.constructs.attentionMarkers.null,previous=this.previous,before=classifyCharacter(previous);let marker;return function start(code){return marker=code,effects.enter("attentionSequence"),inside(code)};function inside(code){if(code===marker)return effects.consume(code),inside;const token=effects.exit("attentionSequence"),after=classifyCharacter(code),open=!after||2===after&&before||attentionMarkers.includes(code),close=!before||2===before&&after||attentionMarkers.includes(previous);return token._open=Boolean(42===marker?open:open&&(before||!close)),token._close=Boolean(42===marker?close:close&&(after||!open)),ok(code)}},resolveAll:function resolveAllAttention(events,context){let open,group,text,openingSequence,closingSequence,use,nextEvents,offset,index=-1;for(;++index<events.length;)if("enter"===events[index][0]&&"attentionSequence"===events[index][1].type&&events[index][1]._close)for(open=index;open--;)if("exit"===events[open][0]&&"attentionSequence"===events[open][1].type&&events[open][1]._open&&context.sliceSerialize(events[open][1]).charCodeAt(0)===context.sliceSerialize(events[index][1]).charCodeAt(0)){if((events[open][1]._close||events[index][1]._open)&&(events[index][1].end.offset-events[index][1].start.offset)%3&&!((events[open][1].end.offset-events[open][1].start.offset+events[index][1].end.offset-events[index][1].start.offset)%3))continue;use=events[open][1].end.offset-events[open][1].start.offset>1&&events[index][1].end.offset-events[index][1].start.offset>1?2:1;const start=Object.assign({},events[open][1].end),end=Object.assign({},events[index][1].start);movePoint(start,-use),movePoint(end,use),openingSequence={type:use>1?"strongSequence":"emphasisSequence",start,end:Object.assign({},events[open][1].end)},closingSequence={type:use>1?"strongSequence":"emphasisSequence",start:Object.assign({},events[index][1].start),end},text={type:use>1?"strongText":"emphasisText",start:Object.assign({},events[open][1].end),end:Object.assign({},events[index][1].start)},group={type:use>1?"strong":"emphasis",start:Object.assign({},openingSequence.start),end:Object.assign({},closingSequence.end)},events[open][1].end=Object.assign({},openingSequence.start),events[index][1].start=Object.assign({},closingSequence.end),nextEvents=[],events[open][1].end.offset-events[open][1].start.offset&&(nextEvents=push(nextEvents,[["enter",events[open][1],context],["exit",events[open][1],context]])),nextEvents=push(nextEvents,[["enter",group,context],["enter",openingSequence,context],["exit",openingSequence,context],["enter",text,context]]),nextEvents=push(nextEvents,resolveAll(context.parser.constructs.insideSpan.null,events.slice(open+1,index),context)),nextEvents=push(nextEvents,[["exit",text,context],["enter",closingSequence,context],["exit",closingSequence,context],["exit",group,context]]),events[index][1].end.offset-events[index][1].start.offset?(offset=2,nextEvents=push(nextEvents,[["enter",events[index][1],context],["exit",events[index][1],context]])):offset=0,splice(events,open-1,index-open+3,nextEvents),index=open+nextEvents.length-offset-2;break}index=-1;for(;++index<events.length;)"attentionSequence"===events[index][1].type&&(events[index][1].type="data");return events}};function movePoint(point,offset){point.column+=offset,point.offset+=offset,point._bufferIndex+=offset}const autolink={name:"autolink",tokenize:function tokenizeAutolink(effects,ok,nok){let size=0;return function start(code){return effects.enter("autolink"),effects.enter("autolinkMarker"),effects.consume(code),effects.exit("autolinkMarker"),effects.enter("autolinkProtocol"),open};function open(code){return asciiAlpha(code)?(effects.consume(code),schemeOrEmailAtext):64===code?nok(code):emailAtext(code)}function schemeOrEmailAtext(code){return 43===code||45===code||46===code||asciiAlphanumeric(code)?(size=1,schemeInsideOrEmailAtext(code)):emailAtext(code)}function schemeInsideOrEmailAtext(code){return 58===code?(effects.consume(code),size=0,urlInside):(43===code||45===code||46===code||asciiAlphanumeric(code))&&size++<32?(effects.consume(code),schemeInsideOrEmailAtext):(size=0,emailAtext(code))}function urlInside(code){return 62===code?(effects.exit("autolinkProtocol"),effects.enter("autolinkMarker"),effects.consume(code),effects.exit("autolinkMarker"),effects.exit("autolink"),ok):null===code||32===code||60===code||asciiControl(code)?nok(code):(effects.consume(code),urlInside)}function emailAtext(code){return 64===code?(effects.consume(code),emailAtSignOrDot):asciiAtext(code)?(effects.consume(code),emailAtext):nok(code)}function emailAtSignOrDot(code){return asciiAlphanumeric(code)?emailLabel(code):nok(code)}function emailLabel(code){return 46===code?(effects.consume(code),size=0,emailAtSignOrDot):62===code?(effects.exit("autolinkProtocol").type="autolinkEmail",effects.enter("autolinkMarker"),effects.consume(code),effects.exit("autolinkMarker"),effects.exit("autolink"),ok):emailValue(code)}function emailValue(code){if((45===code||asciiAlphanumeric(code))&&size++<63){const next=45===code?emailValue:emailLabel;return effects.consume(code),next}return nok(code)}}};const htmlText={name:"htmlText",tokenize:function tokenizeHtmlText(effects,ok,nok){const self=this;let marker,index,returnState;return function start(code){return effects.enter("htmlText"),effects.enter("htmlTextData"),effects.consume(code),open};function open(code){return 33===code?(effects.consume(code),declarationOpen):47===code?(effects.consume(code),tagCloseStart):63===code?(effects.consume(code),instruction):asciiAlpha(code)?(effects.consume(code),tagOpen):nok(code)}function declarationOpen(code){return 45===code?(effects.consume(code),commentOpenInside):91===code?(effects.consume(code),index=0,cdataOpenInside):asciiAlpha(code)?(effects.consume(code),declaration):nok(code)}function commentOpenInside(code){return 45===code?(effects.consume(code),commentEnd):nok(code)}function comment(code){return null===code?nok(code):45===code?(effects.consume(code),commentClose):markdownLineEnding(code)?(returnState=comment,lineEndingBefore(code)):(effects.consume(code),comment)}function commentClose(code){return 45===code?(effects.consume(code),commentEnd):comment(code)}function commentEnd(code){return 62===code?end(code):45===code?commentClose(code):comment(code)}function cdataOpenInside(code){return code==="CDATA[".charCodeAt(index++)?(effects.consume(code),6===index?cdata:cdataOpenInside):nok(code)}function cdata(code){return null===code?nok(code):93===code?(effects.consume(code),cdataClose):markdownLineEnding(code)?(returnState=cdata,lineEndingBefore(code)):(effects.consume(code),cdata)}function cdataClose(code){return 93===code?(effects.consume(code),cdataEnd):cdata(code)}function cdataEnd(code){return 62===code?end(code):93===code?(effects.consume(code),cdataEnd):cdata(code)}function declaration(code){return null===code||62===code?end(code):markdownLineEnding(code)?(returnState=declaration,lineEndingBefore(code)):(effects.consume(code),declaration)}function instruction(code){return null===code?nok(code):63===code?(effects.consume(code),instructionClose):markdownLineEnding(code)?(returnState=instruction,lineEndingBefore(code)):(effects.consume(code),instruction)}function instructionClose(code){return 62===code?end(code):instruction(code)}function tagCloseStart(code){return asciiAlpha(code)?(effects.consume(code),tagClose):nok(code)}function tagClose(code){return 45===code||asciiAlphanumeric(code)?(effects.consume(code),tagClose):tagCloseBetween(code)}function tagCloseBetween(code){return markdownLineEnding(code)?(returnState=tagCloseBetween,lineEndingBefore(code)):markdownSpace(code)?(effects.consume(code),tagCloseBetween):end(code)}function tagOpen(code){return 45===code||asciiAlphanumeric(code)?(effects.consume(code),tagOpen):47===code||62===code||markdownLineEndingOrSpace(code)?tagOpenBetween(code):nok(code)}function tagOpenBetween(code){return 47===code?(effects.consume(code),end):58===code||95===code||asciiAlpha(code)?(effects.consume(code),tagOpenAttributeName):markdownLineEnding(code)?(returnState=tagOpenBetween,lineEndingBefore(code)):markdownSpace(code)?(effects.consume(code),tagOpenBetween):end(code)}function tagOpenAttributeName(code){return 45===code||46===code||58===code||95===code||asciiAlphanumeric(code)?(effects.consume(code),tagOpenAttributeName):tagOpenAttributeNameAfter(code)}function tagOpenAttributeNameAfter(code){return 61===code?(effects.consume(code),tagOpenAttributeValueBefore):markdownLineEnding(code)?(returnState=tagOpenAttributeNameAfter,lineEndingBefore(code)):markdownSpace(code)?(effects.consume(code),tagOpenAttributeNameAfter):tagOpenBetween(code)}function tagOpenAttributeValueBefore(code){return null===code||60===code||61===code||62===code||96===code?nok(code):34===code||39===code?(effects.consume(code),marker=code,tagOpenAttributeValueQuoted):markdownLineEnding(code)?(returnState=tagOpenAttributeValueBefore,lineEndingBefore(code)):markdownSpace(code)?(effects.consume(code),tagOpenAttributeValueBefore):(effects.consume(code),tagOpenAttributeValueUnquoted)}function tagOpenAttributeValueQuoted(code){return code===marker?(effects.consume(code),marker=void 0,tagOpenAttributeValueQuotedAfter):null===code?nok(code):markdownLineEnding(code)?(returnState=tagOpenAttributeValueQuoted,lineEndingBefore(code)):(effects.consume(code),tagOpenAttributeValueQuoted)}function tagOpenAttributeValueUnquoted(code){return null===code||34===code||39===code||60===code||61===code||96===code?nok(code):47===code||62===code||markdownLineEndingOrSpace(code)?tagOpenBetween(code):(effects.consume(code),tagOpenAttributeValueUnquoted)}function tagOpenAttributeValueQuotedAfter(code){return 47===code||62===code||markdownLineEndingOrSpace(code)?tagOpenBetween(code):nok(code)}function end(code){return 62===code?(effects.consume(code),effects.exit("htmlTextData"),effects.exit("htmlText"),ok):nok(code)}function lineEndingBefore(code){return effects.exit("htmlTextData"),effects.enter("lineEnding"),effects.consume(code),effects.exit("lineEnding"),lineEndingAfter}function lineEndingAfter(code){return markdownSpace(code)?factorySpace(effects,lineEndingAfterPrefix,"linePrefix",self.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(code):lineEndingAfterPrefix(code)}function lineEndingAfterPrefix(code){return effects.enter("htmlTextData"),returnState(code)}}};const labelStartLink={name:"labelStartLink",tokenize:function tokenizeLabelStartLink(effects,ok,nok){const self=this;return function start(code){return effects.enter("labelLink"),effects.enter("labelMarker"),effects.consume(code),effects.exit("labelMarker"),effects.exit("labelLink"),after};function after(code){return 94===code&&"_hiddenFootnoteSupport"in self.parser.constructs?nok(code):ok(code)}},resolveAll:labelEnd.resolveAll};const hardBreakEscape={name:"hardBreakEscape",tokenize:function tokenizeHardBreakEscape(effects,ok,nok){return function start(code){return effects.enter("hardBreakEscape"),effects.consume(code),after};function after(code){return markdownLineEnding(code)?(effects.exit("hardBreakEscape"),ok(code)):nok(code)}}};const codeText={name:"codeText",tokenize:function tokenizeCodeText(effects,ok,nok){let size,token,sizeOpen=0;return function start(code){return effects.enter("codeText"),effects.enter("codeTextSequence"),sequenceOpen(code)};function sequenceOpen(code){return 96===code?(effects.consume(code),sizeOpen++,sequenceOpen):(effects.exit("codeTextSequence"),between(code))}function between(code){return null===code?nok(code):32===code?(effects.enter("space"),effects.consume(code),effects.exit("space"),between):96===code?(token=effects.enter("codeTextSequence"),size=0,sequenceClose(code)):markdownLineEnding(code)?(effects.enter("lineEnding"),effects.consume(code),effects.exit("lineEnding"),between):(effects.enter("codeTextData"),data(code))}function data(code){return null===code||32===code||96===code||markdownLineEnding(code)?(effects.exit("codeTextData"),between(code)):(effects.consume(code),data)}function sequenceClose(code){return 96===code?(effects.consume(code),size++,sequenceClose):size===sizeOpen?(effects.exit("codeTextSequence"),effects.exit("codeText"),ok(code)):(token.type="codeTextData",data(code))}},resolve:function resolveCodeText(events){let index,enter,tailExitIndex=events.length-4,headEnterIndex=3;if(!("lineEnding"!==events[headEnterIndex][1].type&&"space"!==events[headEnterIndex][1].type||"lineEnding"!==events[tailExitIndex][1].type&&"space"!==events[tailExitIndex][1].type))for(index=headEnterIndex;++index<tailExitIndex;)if("codeTextData"===events[index][1].type){events[headEnterIndex][1].type="codeTextPadding",events[tailExitIndex][1].type="codeTextPadding",headEnterIndex+=2,tailExitIndex-=2;break}index=headEnterIndex-1,tailExitIndex++;for(;++index<=tailExitIndex;)void 0===enter?index!==tailExitIndex&&"lineEnding"!==events[index][1].type&&(enter=index):index!==tailExitIndex&&"lineEnding"!==events[index][1].type||(events[enter][1].type="codeTextData",index!==enter+2&&(events[enter][1].end=events[index-1][1].end,events.splice(enter+2,index-enter-2),tailExitIndex-=index-enter-2,index=enter+2),enter=void 0);return events},previous:function previous(code){return 96!==code||"characterEscape"===this.events[this.events.length-1][1].type}};const constructs_document={42:list,43:list,45:list,48:list,49:list,50:list,51:list,52:list,53:list,54:list,55:list,56:list,57:list,62:blockQuote},contentInitial={91:definition},flowInitial={[-2]:codeIndented,[-1]:codeIndented,32:codeIndented},constructs_flow={35:headingAtx,42:thematicBreak,45:[setextUnderline,thematicBreak],60:htmlFlow,61:setextUnderline,95:thematicBreak,96:codeFenced,126:codeFenced},constructs_string={38:characterReference,92:characterEscape},constructs_text={[-5]:lineEnding,[-4]:lineEnding,[-3]:lineEnding,33:labelStartImage,38:characterReference,42:attention,60:[autolink,htmlText],91:labelStartLink,92:[hardBreakEscape,characterEscape],93:labelEnd,95:attention,96:codeText},insideSpan={null:[attention,resolver]},attentionMarkers={null:[42,95]},disable={null:[]};function parse_parse(options){const constructs=function combineExtensions(extensions){const all={};let index=-1;for(;++index<extensions.length;)syntaxExtension(all,extensions[index]);return all}([constructs_namespaceObject,...(options||{}).extensions||[]]),parser={defined:[],lazy:{},constructs,content:create(content),document:create(document_document),flow:create(flow),string:create(string),text:create(text_text)};return parser;function create(initial){return function creator(from){return createTokenizer(parser,initial,from)}}}const search=/[\0\t\n\r]/g;function decodeNumericCharacterReference(value,base){const code=Number.parseInt(value,base);return code<9||11===code||code>13&&code<32||code>126&&code<160||code>55295&&code<57344||code>64975&&code<65008||65535==(65535&code)||65534==(65535&code)||code>1114111?"<22>":String.fromCodePoint(code)}const characterEscapeOrReference=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function decode($0,$1,$2){if($1)return $1;if(35===$2.charCodeAt(0)){const head=$2.charCodeAt(1),hex=120===head||88===head;return decodeNumericCharacterReference($2.slice(hex?2:1),hex?16:10)}return decodeNamedCharacterReference($2)||$0}const mdast_util_from_markdown_lib_own={}.hasOwnProperty;function fromMarkdown(value,encoding,options){return"string"!=typeof encoding&&(options=encoding,encoding=void 0),function compiler(options){const config={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:opener(link),autolinkProtocol:onenterdata,autolinkEmail:onenterdata,atxHeading:opener(heading),blockQuote:opener(blockQuote),characterEscape:onenterdata,characterReference:onenterdata,codeFenced:opener(codeFlow),codeFencedFenceInfo:buffer,codeFencedFenceMeta:buffer,codeIndented:opener(codeFlow,buffer),codeText:opener(codeText,buffer),codeTextData:onenterdata,data:onenterdata,codeFlowValue:onenterdata,definition:opener(definition),definitionDestinationString:buffer,definitionLabelString:buffer,definitionTitleString:buffer,emphasis:opener(emphasis),hardBreakEscape:opener(hardBreak),hardBreakTrailing:opener(hardBreak),htmlFlow:opener(html,buffer),htmlFlowData:onenterdata,htmlText:opener(html,buffer),htmlTextData:onenterdata,image:opener(image),label:buffer,link:opener(link),listItem:opener(listItem),listItemValue:onenterlistitemvalue,listOrdered:opener(list,onenterlistordered),listUnordered:opener(list),paragraph:opener(paragraph),reference:onenterreference,referenceString:buffer,resourceDestinationString:buffer,resourceTitleString:buffer,setextHeading:opener(heading),strong:opener(strong),thematicBreak:opener(thematicBreak)},exit:{atxHeading:closer(),atxHeadingSequence:onexitatxheadingsequence,autolink:closer(),autolinkEmail:onexitautolinkemail,autolinkProtocol:onexitautolinkprotocol,blockQuote:closer(),characterEscapeValue:onexitdata,characterReferenceMarkerHexadecimal:onexitcharacterreferencemarker,characterReferenceMarkerNumeric:onexitcharacterreferencemarker,characterReferenceValue:onexitcharacterreferencevalue,characterReference:onexitcharacterreference,codeFenced:closer(onexitcodefenced),codeFencedFence:onexitcodefencedfence,codeFencedFenceInfo:onexitcodefencedfenceinfo,codeFencedFenceMeta:onexitcodefencedfencemeta,codeFlowValue:onexitdata,codeIndented:closer(onexitcodeindented),codeText:closer(onexitcodetext),codeTextData:onexitdata,data:onexitdata,definition:closer(),definitionDestinationString:onexitdefinitiondestinationstring,definitionLabelString:onexitdefinitionlabelstring,definitionTitleString:onexitdefinitiontitlestring,emphasis:closer(),hardBreakEscape:closer(onexithardbreak),hardBreakTrailing:closer(onexithardbreak),htmlFlow:closer(onexithtmlflow),htmlFlowData:onexitdata,htmlText:closer(onexithtmltext),htmlTextData:onexitdata,image:closer(onexitimage),label:onexitlabel,labelText:onexitlabeltext,lineEnding:onexitlineending,link:closer(onexitlink),listItem:closer(),listOrdered:closer(),listUnordered:closer(),paragraph:closer(),referenceString:onexitreferencestring,resourceDestinationString:onexitresourcedestinationstring,resourceTitleString:onexitresourcetitlestring,resource:onexitresource,setextHeading:closer(onexitsetextheading),setextHeadingLineSequence:onexitsetextheadinglinesequence,setextHeadingText:onexitsetextheadingtext,strong:closer(),thematicBreak:closer()}};configure(config,(options||{}).mdastExtensions||[]);const data={};return compile;function compile(events){let tree={type:"root",children:[]};const context={stack:[tree],tokenStack:[],config,enter,exit,buffer,resume,data},listStack=[];let index=-1;for(;++index<events.length;)if("listOrdered"===events[index][1].type||"listUnordered"===events[index][1].type)if("enter"===events[index][0])listStack.push(index);else{index=prepareList(events,listStack.pop(),index)}for(index=-1;++index<events.length;){const handler=config[events[index][0]];mdast_util_from_markdown_lib_own.call(handler,events[index][1].type)&&handler[events[index][1].type].call(Object.assign({sliceSerialize:events[index][2].sliceSerialize},context),events[index][1])}if(context.tokenStack.length>0){const tail=context.tokenStack[context.tokenStack.length-1];(tail[1]||defaultOnError).call(context,void 0,tail[0])}for(tree.position={start:mdast_util_from_markdown_lib_point(events.length>0?events[0][1].start:{line:1,column:1,offset:0}),end:mdast_util_from_markdown_lib_point(events.length>0?events[events.length-2][1].end:{line:1,column:1,offset:0})},index=-1;++index<config.transforms.length;)tree=config.transforms[index](tree)||tree;return tree}function prepareList(events,start,length){let listItem,lineIndex,firstBlankLineIndex,atMarker,index=start-1,containerBalance=-1,listSpread=!1;for(;++index<=length;){const event=events[index];switch(event[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===event[0]?containerBalance++:containerBalance--,atMarker=void 0;break;case"lineEndingBlank":"enter"===event[0]&&(!listItem||atMarker||containerBalance||firstBlankLineIndex||(firstBlankLineIndex=index),atMarker=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:atMarker=void 0}if(!containerBalance&&"enter"===event[0]&&"listItemPrefix"===event[1].type||-1===containerBalance&&"exit"===event[0]&&("listUnordered"===event[1].type||"listOrdered"===event[1].type)){if(listItem){let tailIndex=index;for(lineIndex=void 0;tailIndex--;){const tailEvent=events[tailIndex];if("lineEnding"===tailEvent[1].type||"lineEndingBlank"===tailEvent[1].type){if("exit"===tailEvent[0])continue;lineIndex&&(events[lineIndex][1].type="lineEndingBlank",listSpread=!0),tailEvent[1].type="lineEnding",lineIndex=tailIndex}else if("linePrefix"!==tailEvent[1].type&&"blockQuotePrefix"!==tailEvent[1].type&&"blockQuotePrefixWhitespace"!==tailEvent[1].type&&"blockQuoteMarker"!==tailEvent[1].type&&"listItemIndent"!==tailEvent[1].type)break}firstBlankLineIndex&&(!lineIndex||firstBlankLineIndex<lineIndex)&&(listItem._spread=!0),listItem.end=Object.assign({},lineIndex?events[lineIndex][1].start:event[1].end),events.splice(lineIndex||index,0,["exit",listItem,event[2]]),index++,length++}if("listItemPrefix"===event[1].type){const item={type:"listItem",_spread:!1,start:Object.assign({},event[1].start),end:void 0};listItem=item,events.splice(index,0,["enter",item,event[2]]),index++,length++,firstBlankLineIndex=void 0,atMarker=!0}}}return events[start][1]._spread=listSpread,length}function opener(create,and){return open;function open(token){enter.call(this,create(token),token),and&&and.call(this,token)}}function buffer(){this.stack.push({type:"fragment",children:[]})}function enter(node,token,errorHandler){this.stack[this.stack.length-1].children.push(node),this.stack.push(node),this.tokenStack.push([token,errorHandler]),node.position={start:mdast_util_from_markdown_lib_point(token.start),end:void 0}}function closer(and){return close;function close(token){and&&and.call(this,token),exit.call(this,token)}}function exit(token,onExitError){const node=this.stack.pop(),open=this.tokenStack.pop();if(!open)throw new Error("Cannot close `"+token.type+"` ("+stringifyPosition({start:token.start,end:token.end})+"): it’s not open");if(open[0].type!==token.type)if(onExitError)onExitError.call(this,token,open[0]);else{(open[1]||defaultOnError).call(this,token,open[0])}node.position.end=mdast_util_from_markdown_lib_point(token.end)}function resume(){return function lib_toString(value,options){const settings=options||lib_emptyOptions;return lib_one(value,"boolean"!=typeof settings.includeImageAlt||settings.includeImageAlt,"boolean"!=typeof settings.includeHtml||settings.includeHtml)}(this.stack.pop())}function onenterlistordered(){this.data.expectingFirstListItemValue=!0}function onenterlistitemvalue(token){if(this.data.expectingFirstListItemValue){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(token),10),this.data.expectingFirstListItemValue=void 0}}function onexitcodefencedfenceinfo(){const data=this.resume();this.stack[this.stack.length-1].lang=data}function onexitcodefencedfencemeta(){const data=this.resume();this.stack[this.stack.length-1].meta=data}function onexitcodefencedfence(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function onexitcodefenced(){const data=this.resume();this.stack[this.stack.length-1].value=data.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function onexitcodeindented(){const data=this.resume();this.stack[this.stack.length-1].value=data.replace(/(\r?\n|\r)$/g,"")}function onexitdefinitionlabelstring(token){const label=this.resume(),node=this.stack[this.stack.length-1];node.label=label,node.identifier=normalizeIdentifier(this.sliceSerialize(token)).toLowerCase()}function onexitdefinitiontitlestring(){const data=this.resume();this.stack[this.stack.length-1].title=data}function onexitdefinitiondestinationstring(){const data=this.resume();this.stack[this.stack.length-1].url=data}function onexitatxheadingsequence(token){const node=this.stack[this.stack.length-1];if(!node.depth){const depth=this.sliceSerialize(token).length;node.depth=depth}}function onexitsetextheadingtext(){this.data.setextHeadingSlurpLineEnding=!0}function onexitsetextheadinglinesequence(token){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(token).codePointAt(0)?1:2}function onexitsetextheading(){this.data.setextHeadingSlurpLineEnding=void 0}function onenterdata(token){const siblings=this.stack[this.stack.length-1].children;let tail=siblings[siblings.length-1];tail&&"text"===tail.type||(tail=text(),tail.position={start:mdast_util_from_markdown_lib_point(token.start),end:void 0},siblings.push(tail)),this.stack.push(tail)}function onexitdata(token){const tail=this.stack.pop();tail.value+=this.sliceSerialize(token),tail.position.end=mdast_util_from_markdown_lib_point(token.end)}function onexitlineending(token){const context=this.stack[this.stack.length-1];if(this.data.atHardBreak){return context.children[context.children.length-1].position.end=mdast_util_from_markdown_lib_point(token.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&config.canContainEols.includes(context.type)&&(onenterdata.call(this,token),onexitdata.call(this,token))}function onexithardbreak(){this.data.atHardBreak=!0}function onexithtmlflow(){const data=this.resume();this.stack[this.stack.length-1].value=data}function onexithtmltext(){const data=this.resume();this.stack[this.stack.length-1].value=data}function onexitcodetext(){const data=this.resume();this.stack[this.stack.length-1].value=data}function onexitlink(){const node=this.stack[this.stack.length-1];if(this.data.inReference){const referenceType=this.data.referenceType||"shortcut";node.type+="Reference",node.referenceType=referenceType,delete node.url,delete node.title}else delete node.identifier,delete node.label;this.data.referenceType=void 0}function onexitimage(){const node=this.stack[this.stack.length-1];if(this.data.inReference){const referenceType=this.data.referenceType||"shortcut";node.type+="Reference",node.referenceType=referenceType,delete node.url,delete node.title}else delete node.identifier,delete node.label;this.data.referenceType=void 0}function onexitlabeltext(token){const string=this.sliceSerialize(token),ancestor=this.stack[this.stack.length-2];ancestor.label=function decodeString(value){return value.replace(characterEscapeOrReference,decode)}(string),ancestor.identifier=normalizeIdentifier(string).toLowerCase()}function onexitlabel(){const fragment=this.stack[this.stack.length-1],value=this.resume(),node=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===node.type){const children=fragment.children;node.children=children}else node.alt=value}function onexitresourcedestinationstring(){const data=this.resume();this.stack[this.stack.length-1].url=data}function onexitresourcetitlestring(){const data=this.resume();this.stack[this.stack.length-1].title=data}function onexitresource(){this.data.inReference=void 0}function onenterreference(){this.data.referenceType="collapsed"}function onexitreferencestring(token){const label=this.resume(),node=this.stack[this.stack.length-1];node.label=label,node.identifier=normalizeIdentifier(this.sliceSerialize(token)).toLowerCase(),this.data.referenceType="full"}function onexitcharacterreferencemarker(token){this.data.characterReferenceType=token.type}function onexitcharacterreferencevalue(token){const data=this.sliceSerialize(token),type=this.data.characterReferenceType;let value;if(type)value=decodeNumericCharacterReference(data,"characterReferenceMarkerNumeric"===type?10:16),this.data.characterReferenceType=void 0;else{value=decodeNamedCharacterReference(data)}this.stack[this.stack.length-1].value+=value}function onexitcharacterreference(token){this.stack.pop().position.end=mdast_util_from_markdown_lib_point(token.end)}function onexitautolinkprotocol(token){onexitdata.call(this,token);this.stack[this.stack.length-1].url=this.sliceSerialize(token)}function onexitautolinkemail(token){onexitdata.call(this,token);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(token)}function blockQuote(){return{type:"blockquote",children:[]}}function codeFlow(){return{type:"code",lang:null,meta:null,value:""}}function codeText(){return{type:"inlineCode",value:""}}function definition(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function emphasis(){return{type:"emphasis",children:[]}}function heading(){return{type:"heading",depth:0,children:[]}}function hardBreak(){return{type:"break"}}function html(){return{type:"html",value:""}}function image(){return{type:"image",title:null,url:"",alt:null}}function link(){return{type:"link",title:null,url:"",children:[]}}function list(token){return{type:"list",ordered:"listOrdered"===token.type,start:null,spread:token._spread,children:[]}}function listItem(token){return{type:"listItem",spread:token._spread,checked:null,children:[]}}function paragraph(){return{type:"paragraph",children:[]}}function strong(){return{type:"strong",children:[]}}function text(){return{type:"text",value:""}}function thematicBreak(){return{type:"thematicBreak"}}}(options)(function postprocess(events){for(;!subtokenize(events););return events}(parse_parse(options).document().write(function preprocess(){let atCarriageReturn,column=1,buffer="",start=!0;return function preprocessor(value,encoding,end){const chunks=[];let match,next,startPosition,endPosition,code;for(value=buffer+("string"==typeof value?value.toString():new TextDecoder(encoding||void 0).decode(value)),startPosition=0,buffer="",start&&(65279===value.charCodeAt(0)&&startPosition++,start=void 0);startPosition<value.length;){if(search.lastIndex=startPosition,match=search.exec(value),endPosition=match&&void 0!==match.index?match.index:value.length,code=value.charCodeAt(endPosition),!match){buffer=value.slice(startPosition);break}if(10===code&&startPosition===endPosition&&atCarriageReturn)chunks.push(-3),atCarriageReturn=void 0;else switch(atCarriageReturn&&(chunks.push(-5),atCarriageReturn=void 0),startPosition<endPosition&&(chunks.push(value.slice(startPosition,endPosition)),column+=endPosition-startPosition),code){case 0:chunks.push(65533),column++;break;case 9:for(next=4*Math.ceil(column/4),chunks.push(-2);column++<next;)chunks.push(-1);break;case 10:chunks.push(-4),column=1;break;default:atCarriageReturn=!0,column=1}startPosition=endPosition+1}return end&&(atCarriageReturn&&chunks.push(-5),buffer&&chunks.push(buffer),chunks.push(null)),chunks}}()(value,encoding,!0))))}function mdast_util_from_markdown_lib_point(d){return{line:d.line,column:d.column,offset:d.offset}}function configure(combined,extensions){let index=-1;for(;++index<extensions.length;){const value=extensions[index];Array.isArray(value)?configure(combined,value):extension(combined,value)}}function extension(combined,extension){let key;for(key in extension)if(mdast_util_from_markdown_lib_own.call(extension,key))switch(key){case"canContainEols":{const right=extension[key];right&&combined[key].push(...right);break}case"transforms":{const right=extension[key];right&&combined[key].push(...right);break}case"enter":case"exit":{const right=extension[key];right&&Object.assign(combined[key],right);break}}}function defaultOnError(left,right){throw left?new Error("Cannot close `"+left.type+"` ("+stringifyPosition({start:left.start,end:left.end})+"): a different token (`"+right.type+"`, "+stringifyPosition({start:right.start,end:right.end})+") is open"):new Error("Cannot close document, a token (`"+right.type+"`, "+stringifyPosition({start:right.start,end:right.end})+") is still open")}function remarkParse(options){const self=this;self.parser=function parser(doc){return fromMarkdown(doc,{...self.data("settings"),...options,extensions:self.data("micromarkExtensions")||[],mdastExtensions:self.data("fromMarkdownExtensions")||[]})}}const env="object"==typeof self?self:globalThis,deserialize=serialized=>(($,_)=>{const as=(out,index)=>($.set(index,out),out),unpair=index=>{if($.has(index))return $.get(index);const[type,value]=_[index];switch(type){case 0:case-1:return as(value,index);case 1:{const arr=as([],index);for(const index of value)arr.push(unpair(index));return arr}case 2:{const object=as({},index);for(const[key,index]of value)object[unpair(key)]=unpair(index);return object}case 3:return as(new Date(value),index);case 4:{const{source,flags}=value;return as(new RegExp(source,flags),index)}case 5:{const map=as(new Map,index);for(const[key,index]of value)map.set(unpair(key),unpair(index));return map}case 6:{const set=as(new Set,index);for(const index of value)set.add(unpair(index));return set}case 7:{const{name,message}=value;return as(new env[name](message),index)}case 8:return as(BigInt(value),index);case"BigInt":return as(Object(BigInt(value)),index)}return as(new env[type](value),index)};return unpair})(new Map,serialized)(0),{toString:serialize_toString}={},{keys}=Object,typeOf=value=>{const type=typeof value;if("object"!==type||!value)return[0,type];const asString=serialize_toString.call(value).slice(8,-1);switch(asString){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""]}return asString.includes("Array")?[1,asString]:asString.includes("Error")?[7,asString]:[2,asString]},shouldSkip=([TYPE,type])=>0===TYPE&&("function"===type||"symbol"===type),serialize=(value,{json,lossy}={})=>{const _=[];return((strict,json,$,_)=>{const as=(out,value)=>{const index=_.push(out)-1;return $.set(value,index),index},pair=value=>{if($.has(value))return $.get(value);let[TYPE,type]=typeOf(value);switch(TYPE){case 0:{let entry=value;switch(type){case"bigint":TYPE=8,entry=value.toString();break;case"function":case"symbol":if(strict)throw new TypeError("unable to serialize "+type);entry=null;break;case"undefined":return as([-1],value)}return as([TYPE,entry],value)}case 1:{if(type)return as([type,[...value]],value);const arr=[],index=as([TYPE,arr],value);for(const entry of value)arr.push(pair(entry));return index}case 2:{if(type)switch(type){case"BigInt":return as([type,value.toString()],value);case"Boolean":case"Number":case"String":return as([type,value.valueOf()],value)}if(json&&"toJSON"in value)return pair(value.toJSON());const entries=[],index=as([TYPE,entries],value);for(const key of keys(value))!strict&&shouldSkip(typeOf(value[key]))||entries.push([pair(key),pair(value[key])]);return index}case 3:return as([TYPE,value.toISOString()],value);case 4:{const{source,flags}=value;return as([TYPE,{source,flags}],value)}case 5:{const entries=[],index=as([TYPE,entries],value);for(const[key,entry]of value)(strict||!shouldSkip(typeOf(key))&&!shouldSkip(typeOf(entry)))&&entries.push([pair(key),pair(entry)]);return index}case 6:{const entries=[],index=as([TYPE,entries],value);for(const entry of value)!strict&&shouldSkip(typeOf(entry))||entries.push(pair(entry));return index}}const{message}=value;return as([TYPE,{name:type,message}],value)};return pair})(!(json||lossy),!!json,new Map,_)(value),_},structured_clone_esm="function"==typeof structuredClone?(any,options)=>options&&("json"in options||"lossy"in options)?deserialize(serialize(any,options)):structuredClone(any):(any,options)=>deserialize(serialize(any,options));function normalizeUri(value){const result=[];let index=-1,start=0,skip=0;for(;++index<value.length;){const code=value.charCodeAt(index);let replace="";if(37===code&&asciiAlphanumeric(value.charCodeAt(index+1))&&asciiAlphanumeric(value.charCodeAt(index+2)))skip=2;else if(code<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(code))||(replace=String.fromCharCode(code));else if(code>55295&&code<57344){const next=value.charCodeAt(index+1);code<56320&&next>56319&&next<57344?(replace=String.fromCharCode(code,next),skip=1):replace="<22>"}else replace=String.fromCharCode(code);replace&&(result.push(value.slice(start,index),encodeURIComponent(replace)),start=index+skip+1,replace=""),skip&&(index+=skip,skip=0)}return result.join("")+value.slice(start)}function defaultFootnoteBackContent(_,rereferenceIndex){const result=[{type:"text",value:"↩"}];return rereferenceIndex>1&&result.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(rereferenceIndex)}]}),result}function defaultFootnoteBackLabel(referenceIndex,rereferenceIndex){return"Back to reference "+(referenceIndex+1)+(rereferenceIndex>1?"-"+rereferenceIndex:"")}const convert=function(test){if(null==test)return lib_ok;if("function"==typeof test)return castFactory(test);if("object"==typeof test)return Array.isArray(test)?function anyFactory(tests){const checks=[];let index=-1;for(;++index<tests.length;)checks[index]=convert(tests[index]);return castFactory(any);function any(...parameters){let index=-1;for(;++index<checks.length;)if(checks[index].apply(this,parameters))return!0;return!1}}(test):function propsFactory(check){const checkAsRecord=check;return castFactory(all);function all(node){const nodeAsRecord=node;let key;for(key in check)if(nodeAsRecord[key]!==checkAsRecord[key])return!1;return!0}}(test);if("string"==typeof test)return function typeFactory(check){return castFactory(type);function type(node){return node&&node.type===check}}(test);throw new Error("Expected function, string, or object as test")};function castFactory(testFunction){return function check(value,index,parent){return Boolean(looksLikeANode(value)&&testFunction.call(this,value,"number"==typeof index?index:void 0,parent||void 0))}}function lib_ok(){return!0}function looksLikeANode(value){return null!==value&&"object"==typeof value&&"type"in value}const lib_empty=[],CONTINUE=!0,EXIT=!1,SKIP="skip";function visitParents(tree,test,visitor,reverse){let check;"function"==typeof test&&"function"!=typeof visitor?(reverse=visitor,visitor=test):check=test;const is=convert(check),step=reverse?-1:1;!function factory(node,index,parents){const value=node&&"object"==typeof node?node:{};if("string"==typeof value.type){const name="string"==typeof value.tagName?value.tagName:"string"==typeof value.name?value.name:void 0;Object.defineProperty(visit,"name",{value:"node ("+node.type+(name?"<"+name+">":"")+")"})}return visit;function visit(){let subresult,offset,grandparents,result=lib_empty;if((!test||is(node,index,parents[parents.length-1]||void 0))&&(result=function toResult(value){if(Array.isArray(value))return value;if("number"==typeof value)return[CONTINUE,value];return null==value?lib_empty:[value]}(visitor(node,parents)),result[0]===EXIT))return result;if("children"in node&&node.children){const nodeAsParent=node;if(nodeAsParent.children&&result[0]!==SKIP)for(offset=(reverse?nodeAsParent.children.length:-1)+step,grandparents=parents.concat(nodeAsParent);offset>-1&&offset<nodeAsParent.children.length;){const child=nodeAsParent.children[offset];if(subresult=factory(child,offset,grandparents)(),subresult[0]===EXIT)return subresult;offset="number"==typeof subresult[1]?subresult[1]:offset+step}}return result}}(tree,void 0,[])()}const lib_pointEnd=unist_util_position_lib_point("end"),lib_pointStart=unist_util_position_lib_point("start");function unist_util_position_lib_point(type){return function point(node){const point=node&&node.position&&node.position[type]||{};if("number"==typeof point.line&&point.line>0&&"number"==typeof point.column&&point.column>0)return{line:point.line,column:point.column,offset:"number"==typeof point.offset&&point.offset>-1?point.offset:void 0}}}function revert(state,node){const subtype=node.referenceType;let suffix="]";if("collapsed"===subtype?suffix+="[]":"full"===subtype&&(suffix+="["+(node.label||node.identifier)+"]"),"imageReference"===node.type)return[{type:"text",value:"!["+node.alt+suffix}];const contents=state.all(node),head=contents[0];head&&"text"===head.type?head.value="["+head.value:contents.unshift({type:"text",value:"["});const tail=contents[contents.length-1];return tail&&"text"===tail.type?tail.value+=suffix:contents.push({type:"text",value:suffix}),contents}function listItemLoose(node){const spread=node.spread;return null==spread?node.children.length>1:spread}const tab=9,space=32;function trimLines(value){const source=String(value),search=/\r?\n|\r/g;let match=search.exec(source),last=0;const lines=[];for(;match;)lines.push(trimLine(source.slice(last,match.index),last>0,!0),match[0]),last=match.index+match[0].length,match=search.exec(source);return lines.push(trimLine(source.slice(last),last>0,!1)),lines.join("")}function trimLine(value,start,end){let startIndex=0,endIndex=value.length;if(start){let code=value.codePointAt(startIndex);for(;code===tab||code===space;)startIndex++,code=value.codePointAt(startIndex)}if(end){let code=value.codePointAt(endIndex-1);for(;code===tab||code===space;)endIndex--,code=value.codePointAt(endIndex-1)}return endIndex>startIndex?value.slice(startIndex,endIndex):""}const handlers_handlers={blockquote:function blockquote(state,node){const result={type:"element",tagName:"blockquote",properties:{},children:state.wrap(state.all(node),!0)};return state.patch(node,result),state.applyData(node,result)},break:function hardBreak(state,node){const result={type:"element",tagName:"br",properties:{},children:[]};return state.patch(node,result),[state.applyData(node,result),{type:"text",value:"\n"}]},code:function code(state,node){const value=node.value?node.value+"\n":"",properties={};node.lang&&(properties.className=["language-"+node.lang]);let result={type:"element",tagName:"code",properties,children:[{type:"text",value}]};return node.meta&&(result.data={meta:node.meta}),state.patch(node,result),result=state.applyData(node,result),result={type:"element",tagName:"pre",properties:{},children:[result]},state.patch(node,result),result},delete:function strikethrough(state,node){const result={type:"element",tagName:"del",properties:{},children:state.all(node)};return state.patch(node,result),state.applyData(node,result)},emphasis:function emphasis(state,node){const result={type:"element",tagName:"em",properties:{},children:state.all(node)};return state.patch(node,result),state.applyData(node,result)},footnoteReference:function footnoteReference(state,node){const clobberPrefix="string"==typeof state.options.clobberPrefix?state.options.clobberPrefix:"user-content-",id=String(node.identifier).toUpperCase(),safeId=normalizeUri(id.toLowerCase()),index=state.footnoteOrder.indexOf(id);let counter,reuseCounter=state.footnoteCounts.get(id);void 0===reuseCounter?(reuseCounter=0,state.footnoteOrder.push(id),counter=state.footnoteOrder.length):counter=index+1,reuseCounter+=1,state.footnoteCounts.set(id,reuseCounter);const link={type:"element",tagName:"a",properties:{href:"#"+clobberPrefix+"fn-"+safeId,id:clobberPrefix+"fnref-"+safeId+(reuseCounter>1?"-"+reuseCounter:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(counter)}]};state.patch(node,link);const sup={type:"element",tagName:"sup",properties:{},children:[link]};return state.patch(node,sup),state.applyData(node,sup)},heading:function heading(state,node){const result={type:"element",tagName:"h"+node.depth,properties:{},children:state.all(node)};return state.patch(node,result),state.applyData(node,result)},html:function html_html(state,node){if(state.options.allowDangerousHtml){const result={type:"raw",value:node.value};return state.patch(node,result),state.applyData(node,result)}},imageReference:function imageReference(state,node){const id=String(node.identifier).toUpperCase(),definition=state.definitionById.get(id);if(!definition)return revert(state,node);const properties={src:normalizeUri(definition.url||""),alt:node.alt};null!==definition.title&&void 0!==definition.title&&(properties.title=definition.title);const result={type:"element",tagName:"img",properties,children:[]};return state.patch(node,result),state.applyData(node,result)},image:function image_image(state,node){const properties={src:normalizeUri(node.url)};null!==node.alt&&void 0!==node.alt&&(properties.alt=node.alt),null!==node.title&&void 0!==node.title&&(properties.title=node.title);const result={type:"element",tagName:"img",properties,children:[]};return state.patch(node,result),state.applyData(node,result)},inlineCode:function inlineCode(state,node){const text={type:"text",value:node.value.replace(/\r?\n|\r/g," ")};state.patch(node,text);const result={type:"element",tagName:"code",properties:{},children:[text]};return state.patch(node,result),state.applyData(node,result)},linkReference:function linkReference(state,node){const id=String(node.identifier).toUpperCase(),definition=state.definitionById.get(id);if(!definition)return revert(state,node);const properties={href:normalizeUri(definition.url||"")};null!==definition.title&&void 0!==definition.title&&(properties.title=definition.title);const result={type:"element",tagName:"a",properties,children:state.all(node)};return state.patch(node,result),state.applyData(node,result)},link:function link_link(state,node){const properties={href:normalizeUri(node.url)};null!==node.title&&void 0!==node.title&&(properties.title=node.title);const result={type:"element",tagName:"a",properties,children:state.all(node)};return state.patch(node,result),state.applyData(node,result)},listItem:function listItem(state,node,parent){const results=state.all(node),loose=parent?function listLoose(node){let loose=!1;if("list"===node.type){loose=node.spread||!1;const children=node.children;let index=-1;for(;!loose&&++index<children.length;)loose=listItemLoose(children[index])}return loose}(parent):listItemLoose(node),properties={},children=[];if("boolean"==typeof node.checked){const head=results[0];let paragraph;head&&"element"===head.type&&"p"===head.tagName?paragraph=head:(paragraph={type:"element",tagName:"p",properties:{},children:[]},results.unshift(paragraph)),paragraph.children.length>0&¶graph.children.unshift({type:"text",value:" "}),paragraph.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:node.checked,disabled:!0},children:[]}),properties.className=["task-list-item"]}let index=-1;for(;++index<results.length;){const child=results[index];(loose||0!==index||"element"!==child.type||"p"!==child.tagName)&&children.push({type:"text",value:"\n"}),"element"!==child.type||"p"!==child.tagName||loose?children.push(child):children.push(...child.children)}const tail=results[results.length-1];tail&&(loose||"element"!==tail.type||"p"!==tail.tagName)&&children.push({type:"text",value:"\n"});const result={type:"element",tagName:"li",properties,children};return state.patch(node,result),state.applyData(node,result)},list:function list_list(state,node){const properties={},results=state.all(node);let index=-1;for("number"==typeof node.start&&1!==node.start&&(properties.start=node.start);++index<results.length;){const child=results[index];if("element"===child.type&&"li"===child.tagName&&child.properties&&Array.isArray(child.properties.className)&&child.properties.className.includes("task-list-item")){properties.className=["contains-task-list"];break}}const result={type:"element",tagName:node.ordered?"ol":"ul",properties,children:state.wrap(results,!0)};return state.patch(node,result),state.applyData(node,result)},paragraph:function paragraph(state,node){const result={type:"element",tagName:"p",properties:{},children:state.all(node)};return state.patch(node,result),state.applyData(node,result)},root:function root_root(state,node){const result={type:"root",children:state.wrap(state.all(node))};return state.patch(node,result),state.applyData(node,result)},strong:function strong(state,node){const result={type:"element",tagName:"strong",properties:{},children:state.all(node)};return state.patch(node,result),state.applyData(node,result)},table:function table(state,node){const rows=state.all(node),firstRow=rows.shift(),tableContent=[];if(firstRow){const head={type:"element",tagName:"thead",properties:{},children:state.wrap([firstRow],!0)};state.patch(node.children[0],head),tableContent.push(head)}if(rows.length>0){const body={type:"element",tagName:"tbody",properties:{},children:state.wrap(rows,!0)},start=lib_pointStart(node.children[1]),end=lib_pointEnd(node.children[node.children.length-1]);start&&end&&(body.position={start,end}),tableContent.push(body)}const result={type:"element",tagName:"table",properties:{},children:state.wrap(tableContent,!0)};return state.patch(node,result),state.applyData(node,result)},tableCell:function tableCell(state,node){const result={type:"element",tagName:"td",properties:{},children:state.all(node)};return state.patch(node,result),state.applyData(node,result)},tableRow:function tableRow(state,node,parent){const siblings=parent?parent.children:void 0,tagName=0===(siblings?siblings.indexOf(node):1)?"th":"td",align=parent&&"table"===parent.type?parent.align:void 0,length=align?align.length:node.children.length;let cellIndex=-1;const cells=[];for(;++cellIndex<length;){const cell=node.children[cellIndex],properties={},alignValue=align?align[cellIndex]:void 0;alignValue&&(properties.align=alignValue);let result={type:"element",tagName,properties,children:[]};cell&&(result.children=state.all(cell),state.patch(cell,result),result=state.applyData(cell,result)),cells.push(result)}const result={type:"element",tagName:"tr",properties:{},children:state.wrap(cells,!0)};return state.patch(node,result),state.applyData(node,result)},text:function handlers_text_text(state,node){const result={type:"text",value:trimLines(String(node.value))};return state.patch(node,result),state.applyData(node,result)},thematicBreak:function thematic_break_thematicBreak(state,node){const result={type:"element",tagName:"hr",properties:{},children:[]};return state.patch(node,result),state.applyData(node,result)},toml:ignore,yaml:ignore,definition:ignore,footnoteDefinition:ignore};function ignore(){}const state_own={}.hasOwnProperty,state_emptyOptions={};function createState(tree,options){const settings=options||state_emptyOptions,definitionById=new Map,footnoteById=new Map,footnoteCounts=new Map,handlers={...handlers_handlers,...settings.handlers},state={all:function all(parent){const values=[];if("children"in parent){const nodes=parent.children;let index=-1;for(;++index<nodes.length;){const result=state.one(nodes[index],parent);if(result){if(index&&"break"===nodes[index-1].type&&(Array.isArray(result)||"text"!==result.type||(result.value=trimMarkdownSpaceStart(result.value)),!Array.isArray(result)&&"element"===result.type)){const head=result.children[0];head&&"text"===head.type&&(head.value=trimMarkdownSpaceStart(head.value))}Array.isArray(result)?values.push(...result):values.push(result)}}}return values},applyData,definitionById,footnoteById,footnoteCounts,footnoteOrder:[],handlers,one:function one(node,parent){const type=node.type,handle=state.handlers[type];if(state_own.call(state.handlers,type)&&handle)return handle(state,node,parent);if(state.options.passThrough&&state.options.passThrough.includes(type)){if("children"in node){const{children,...shallow}=node,result=structured_clone_esm(shallow);return result.children=state.all(node),result}return structured_clone_esm(node)}return(state.options.unknownHandler||defaultUnknownHandler)(state,node,parent)},options:settings,patch,wrap};return function visit(tree,testOrVisitor,visitorOrReverse,maybeReverse){let reverse,test,visitor;"function"==typeof testOrVisitor&&"function"!=typeof visitorOrReverse?(test=void 0,visitor=testOrVisitor,reverse=visitorOrReverse):(test=testOrVisitor,visitor=visitorOrReverse,reverse=maybeReverse),visitParents(tree,test,(function overload(node,parents){const parent=parents[parents.length-1],index=parent?parent.children.indexOf(node):void 0;return visitor(node,index,parent)}),reverse)}(tree,(function(node){if("definition"===node.type||"footnoteDefinition"===node.type){const map="definition"===node.type?definitionById:footnoteById,id=String(node.identifier).toUpperCase();map.has(id)||map.set(id,node)}})),state}function patch(from,to){from.position&&(to.position=function unist_util_position_lib_position(node){const start=lib_pointStart(node),end=lib_pointEnd(node);if(start&&end)return{start,end}}(from))}function applyData(from,to){let result=to;if(from&&from.data){const hName=from.data.hName,hChildren=from.data.hChildren,hProperties=from.data.hProperties;if("string"==typeof hName)if("element"===result.type)result.tagName=hName;else{result={type:"element",tagName:hName,properties:{},children:"children"in result?result.children:[result]}}"element"===result.type&&hProperties&&Object.assign(result.properties,structured_clone_esm(hProperties)),"children"in result&&result.children&&null!=hChildren&&(result.children=hChildren)}return result}function defaultUnknownHandler(state,node){const data=node.data||{},result=!("value"in node)||state_own.call(data,"hProperties")||state_own.call(data,"hChildren")?{type:"element",tagName:"div",properties:{},children:state.all(node)}:{type:"text",value:node.value};return state.patch(node,result),state.applyData(node,result)}function wrap(nodes,loose){const result=[];let index=-1;for(loose&&result.push({type:"text",value:"\n"});++index<nodes.length;)index&&result.push({type:"text",value:"\n"}),result.push(nodes[index]);return loose&&nodes.length>0&&result.push({type:"text",value:"\n"}),result}function trimMarkdownSpaceStart(value){let index=0,code=value.charCodeAt(index);for(;9===code||32===code;)index++,code=value.charCodeAt(index);return value.slice(index)}function toHast(tree,options){const state=createState(tree,options),node=state.one(tree,void 0),foot=function footer(state){const clobberPrefix="string"==typeof state.options.clobberPrefix?state.options.clobberPrefix:"user-content-",footnoteBackContent=state.options.footnoteBackContent||defaultFootnoteBackContent,footnoteBackLabel=state.options.footnoteBackLabel||defaultFootnoteBackLabel,footnoteLabel=state.options.footnoteLabel||"Footnotes",footnoteLabelTagName=state.options.footnoteLabelTagName||"h2",footnoteLabelProperties=state.options.footnoteLabelProperties||{className:["sr-only"]},listItems=[];let referenceIndex=-1;for(;++referenceIndex<state.footnoteOrder.length;){const definition=state.footnoteById.get(state.footnoteOrder[referenceIndex]);if(!definition)continue;const content=state.all(definition),id=String(definition.identifier).toUpperCase(),safeId=normalizeUri(id.toLowerCase());let rereferenceIndex=0;const backReferences=[],counts=state.footnoteCounts.get(id);for(;void 0!==counts&&++rereferenceIndex<=counts;){backReferences.length>0&&backReferences.push({type:"text",value:" "});let children="string"==typeof footnoteBackContent?footnoteBackContent:footnoteBackContent(referenceIndex,rereferenceIndex);"string"==typeof children&&(children={type:"text",value:children}),backReferences.push({type:"element",tagName:"a",properties:{href:"#"+clobberPrefix+"fnref-"+safeId+(rereferenceIndex>1?"-"+rereferenceIndex:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof footnoteBackLabel?footnoteBackLabel:footnoteBackLabel(referenceIndex,rereferenceIndex),className:["data-footnote-backref"]},children:Array.isArray(children)?children:[children]})}const tail=content[content.length-1];if(tail&&"element"===tail.type&&"p"===tail.tagName){const tailTail=tail.children[tail.children.length-1];tailTail&&"text"===tailTail.type?tailTail.value+=" ":tail.children.push({type:"text",value:" "}),tail.children.push(...backReferences)}else content.push(...backReferences);const listItem={type:"element",tagName:"li",properties:{id:clobberPrefix+"fn-"+safeId},children:state.wrap(content,!0)};state.patch(definition,listItem),listItems.push(listItem)}if(0!==listItems.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:footnoteLabelTagName,properties:{...structured_clone_esm(footnoteLabelProperties),id:"footnote-label"},children:[{type:"text",value:footnoteLabel}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:state.wrap(listItems,!0)},{type:"text",value:"\n"}]}}(state),result=Array.isArray(node)?{type:"root",children:node}:node||{type:"root",children:[]};return foot&&result.children.push({type:"text",value:"\n"},foot),result}function remarkRehype(destination,options){return destination&&"run"in destination?async function(tree,file){const hastTree=toHast(tree,{file,...options});await destination.run(hastTree,file)}:function(tree,file){return toHast(tree,{file,...options||destination})}}function bail(error){if(error)throw error}var extend=__webpack_require__("./node_modules/extend/index.js");function isPlainObject(value){if("object"!=typeof value||null===value)return!1;const prototype=Object.getPrototypeOf(value);return!(null!==prototype&&prototype!==Object.prototype&&null!==Object.getPrototypeOf(prototype)||Symbol.toStringTag in value||Symbol.iterator in value)}function trough(){const fns=[],pipeline={run:function run(...values){let middlewareIndex=-1;const callback=values.pop();if("function"!=typeof callback)throw new TypeError("Expected function as last argument, not "+callback);!function next(error,...output){const fn=fns[++middlewareIndex];let index=-1;if(error)callback(error);else{for(;++index<values.length;)null!==output[index]&&void 0!==output[index]||(output[index]=values[index]);values=output,fn?function lib_wrap(middleware,callback){let called;return wrapped;function wrapped(...parameters){const fnExpectsCallback=middleware.length>parameters.length;let result;fnExpectsCallback&¶meters.push(done);try{result=middleware.apply(this,parameters)}catch(error){if(fnExpectsCallback&&called)throw error;return done(error)}fnExpectsCallback||(result&&result.then&&"function"==typeof result.then?result.then(then,done):result instanceof Error?done(result):then(result))}function done(error,...output){called||(called=!0,callback(error,...output))}function then(value){done(null,value)}}(fn,next)(...output):callback(null,...output)}}(null,...values)},use:function use(middelware){if("function"!=typeof middelware)throw new TypeError("Expected `middelware` to be a function, not "+middelware);return fns.push(middelware),pipeline}};return pipeline}const path={basename:function basename(path,ext){if(void 0!==ext&&"string"!=typeof ext)throw new TypeError('"ext" argument must be a string');assertPath(path);let seenNonSlash,start=0,end=-1,index=path.length;if(void 0===ext||0===ext.length||ext.length>path.length){for(;index--;)if(47===path.codePointAt(index)){if(seenNonSlash){start=index+1;break}}else end<0&&(seenNonSlash=!0,end=index+1);return end<0?"":path.slice(start,end)}if(ext===path)return"";let firstNonSlashEnd=-1,extIndex=ext.length-1;for(;index--;)if(47===path.codePointAt(index)){if(seenNonSlash){start=index+1;break}}else firstNonSlashEnd<0&&(seenNonSlash=!0,firstNonSlashEnd=index+1),extIndex>-1&&(path.codePointAt(index)===ext.codePointAt(extIndex--)?extIndex<0&&(end=index):(extIndex=-1,end=firstNonSlashEnd));start===end?end=firstNonSlashEnd:end<0&&(end=path.length);return path.slice(start,end)},dirname:function dirname(path){if(assertPath(path),0===path.length)return".";let unmatchedSlash,end=-1,index=path.length;for(;--index;)if(47===path.codePointAt(index)){if(unmatchedSlash){end=index;break}}else unmatchedSlash||(unmatchedSlash=!0);return end<0?47===path.codePointAt(0)?"/":".":1===end&&47===path.codePointAt(0)?"//":path.slice(0,end)},extname:function extname(path){assertPath(path);let unmatchedSlash,index=path.length,end=-1,startPart=0,startDot=-1,preDotState=0;for(;index--;){const code=path.codePointAt(index);if(47!==code)end<0&&(unmatchedSlash=!0,end=index+1),46===code?startDot<0?startDot=index:1!==preDotState&&(preDotState=1):startDot>-1&&(preDotState=-1);else if(unmatchedSlash){startPart=index+1;break}}if(startDot<0||end<0||0===preDotState||1===preDotState&&startDot===end-1&&startDot===startPart+1)return"";return path.slice(startDot,end)},join:function join(...segments){let joined,index=-1;for(;++index<segments.length;)assertPath(segments[index]),segments[index]&&(joined=void 0===joined?segments[index]:joined+"/"+segments[index]);return void 0===joined?".":function minpath_browser_normalize(path){assertPath(path);const absolute=47===path.codePointAt(0);let value=function normalizeString(path,allowAboveRoot){let code,lastSlashIndex,result="",lastSegmentLength=0,lastSlash=-1,dots=0,index=-1;for(;++index<=path.length;){if(index<path.length)code=path.codePointAt(index);else{if(47===code)break;code=47}if(47===code){if(lastSlash===index-1||1===dots);else if(lastSlash!==index-1&&2===dots){if(result.length<2||2!==lastSegmentLength||46!==result.codePointAt(result.length-1)||46!==result.codePointAt(result.length-2))if(result.length>2){if(lastSlashIndex=result.lastIndexOf("/"),lastSlashIndex!==result.length-1){lastSlashIndex<0?(result="",lastSegmentLength=0):(result=result.slice(0,lastSlashIndex),lastSegmentLength=result.length-1-result.lastIndexOf("/")),lastSlash=index,dots=0;continue}}else if(result.length>0){result="",lastSegmentLength=0,lastSlash=index,dots=0;continue}allowAboveRoot&&(result=result.length>0?result+"/..":"..",lastSegmentLength=2)}else result.length>0?result+="/"+path.slice(lastSlash+1,index):result=path.slice(lastSlash+1,index),lastSegmentLength=index-lastSlash-1;lastSlash=index,dots=0}else 46===code&&dots>-1?dots++:dots=-1}return result}(path,!absolute);0!==value.length||absolute||(value=".");value.length>0&&47===path.codePointAt(path.length-1)&&(value+="/");return absolute?"/"+value:value}(joined)},sep:"/"};function assertPath(path){if("string"!=typeof path)throw new TypeError("Path must be a string. Received "+JSON.stringify(path))}const proc={cwd:function cwd(){return"/"}};function isUrl(fileUrlOrPath){return Boolean(null!==fileUrlOrPath&&"object"==typeof fileUrlOrPath&&"href"in fileUrlOrPath&&fileUrlOrPath.href&&"protocol"in fileUrlOrPath&&fileUrlOrPath.protocol&&void 0===fileUrlOrPath.auth)}function urlToPath(path){if("string"==typeof path)path=new URL(path);else if(!isUrl(path)){const error=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+path+"`");throw error.code="ERR_INVALID_ARG_TYPE",error}if("file:"!==path.protocol){const error=new TypeError("The URL must be of scheme file");throw error.code="ERR_INVALID_URL_SCHEME",error}return function getPathFromURLPosix(url){if(""!==url.hostname){const error=new TypeError('File URL host must be "localhost" or empty on darwin');throw error.code="ERR_INVALID_FILE_URL_HOST",error}const pathname=url.pathname;let index=-1;for(;++index<pathname.length;)if(37===pathname.codePointAt(index)&&50===pathname.codePointAt(index+1)){const third=pathname.codePointAt(index+2);if(70===third||102===third){const error=new TypeError("File URL path must not include encoded / characters");throw error.code="ERR_INVALID_FILE_URL_PATH",error}}return decodeURIComponent(pathname)}(path)}const order=["history","path","basename","stem","extname","dirname"];class VFile{constructor(value){let options;options=value?isUrl(value)?{path:value}:"string"==typeof value||function isUint8Array(value){return Boolean(value&&"object"==typeof value&&"byteLength"in value&&"byteOffset"in value)}(value)?{value}:value:{},this.cwd=proc.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let prop,index=-1;for(;++index<order.length;){const prop=order[index];prop in options&&void 0!==options[prop]&&null!==options[prop]&&(this[prop]="history"===prop?[...options[prop]]:options[prop])}for(prop in options)order.includes(prop)||(this[prop]=options[prop])}get basename(){return"string"==typeof this.path?path.basename(this.path):void 0}set basename(basename){assertNonEmpty(basename,"basename"),assertPart(basename,"basename"),this.path=path.join(this.dirname||"",basename)}get dirname(){return"string"==typeof this.path?path.dirname(this.path):void 0}set dirname(dirname){lib_assertPath(this.basename,"dirname"),this.path=path.join(dirname||"",this.basename)}get extname(){return"string"==typeof this.path?path.extname(this.path):void 0}set extname(extname){if(assertPart(extname,"extname"),lib_assertPath(this.dirname,"extname"),extname){if(46!==extname.codePointAt(0))throw new Error("`extname` must start with `.`");if(extname.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=path.join(this.dirname,this.stem+(extname||""))}get path(){return this.history[this.history.length-1]}set path(path){isUrl(path)&&(path=urlToPath(path)),assertNonEmpty(path,"path"),this.path!==path&&this.history.push(path)}get stem(){return"string"==typeof this.path?path.basename(this.path,this.extname):void 0}set stem(stem){assertNonEmpty(stem,"stem"),assertPart(stem,"stem"),this.path=path.join(this.dirname||"",stem+(this.extname||""))}fail(causeOrReason,optionsOrParentOrPlace,origin){const message=this.message(causeOrReason,optionsOrParentOrPlace,origin);throw message.fatal=!0,message}info(causeOrReason,optionsOrParentOrPlace,origin){const message=this.message(causeOrReason,optionsOrParentOrPlace,origin);return message.fatal=void 0,message}message(causeOrReason,optionsOrParentOrPlace,origin){const message=new VFileMessage(causeOrReason,optionsOrParentOrPlace,origin);return this.path&&(message.name=this.path+":"+message.name,message.file=this.path),message.fatal=!1,this.messages.push(message),message}toString(encoding){if(void 0===this.value)return"";if("string"==typeof this.value)return this.value;return new TextDecoder(encoding||void 0).decode(this.value)}}function assertPart(part,name){if(part&&part.includes(path.sep))throw new Error("`"+name+"` cannot be a path: did not expect `"+path.sep+"`")}function assertNonEmpty(part,name){if(!part)throw new Error("`"+name+"` cannot be empty")}function lib_assertPath(path,name){if(!path)throw new Error("Setting `"+name+"` requires `path` to be set too")}const CallableInstance=function(property){const proto=this.constructor.prototype,value=proto[property],apply=function(){return value.apply(apply,arguments)};return Object.setPrototypeOf(apply,proto),apply},unified_lib_own={}.hasOwnProperty;class Processor extends CallableInstance{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=trough()}copy(){const destination=new Processor;let index=-1;for(;++index<this.attachers.length;){const attacher=this.attachers[index];destination.use(...attacher)}return destination.data(extend(!0,{},this.namespace)),destination}data(key,value){return"string"==typeof key?2===arguments.length?(assertUnfrozen("data",this.frozen),this.namespace[key]=value,this):unified_lib_own.call(this.namespace,key)&&this.namespace[key]||void 0:key?(assertUnfrozen("data",this.frozen),this.namespace=key,this):this.namespace}freeze(){if(this.frozen)return this;const self=this;for(;++this.freezeIndex<this.attachers.length;){const[attacher,...options]=this.attachers[this.freezeIndex];if(!1===options[0])continue;!0===options[0]&&(options[0]=void 0);const transformer=attacher.call(self,...options);"function"==typeof transformer&&this.transformers.use(transformer)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(file){this.freeze();const realFile=vfile(file),parser=this.parser||this.Parser;return assertParser("parse",parser),parser(String(realFile),realFile)}process(file,done){const self=this;return this.freeze(),assertParser("process",this.parser||this.Parser),assertCompiler("process",this.compiler||this.Compiler),done?executor(void 0,done):new Promise(executor);function executor(resolve,reject){const realFile=vfile(file),parseTree=self.parse(realFile);function realDone(error,file){error||!file?reject(error):resolve?resolve(file):done(void 0,file)}self.run(parseTree,realFile,(function(error,tree,file){if(error||!tree||!file)return realDone(error);const compileTree=tree,compileResult=self.stringify(compileTree,file);!function looksLikeAValue(value){return"string"==typeof value||function lib_isUint8Array(value){return Boolean(value&&"object"==typeof value&&"byteLength"in value&&"byteOffset"in value)}(value)}(compileResult)?file.result=compileResult:file.value=compileResult,realDone(error,file)}))}}processSync(file){let result,complete=!1;return this.freeze(),assertParser("processSync",this.parser||this.Parser),assertCompiler("processSync",this.compiler||this.Compiler),this.process(file,(function realDone(error,file){complete=!0,bail(error),result=file})),assertDone("processSync","process",complete),result}run(tree,file,done){assertNode(tree),this.freeze();const transformers=this.transformers;return done||"function"!=typeof file||(done=file,file=void 0),done?executor(void 0,done):new Promise(executor);function executor(resolve,reject){const realFile=vfile(file);transformers.run(tree,realFile,(function realDone(error,outputTree,file){const resultingTree=outputTree||tree;error?reject(error):resolve?resolve(resultingTree):done(void 0,resultingTree,file)}))}}runSync(tree,file){let result,complete=!1;return this.run(tree,file,(function realDone(error,tree){bail(error),result=tree,complete=!0})),assertDone("runSync","run",complete),result}stringify(tree,file){this.freeze();const realFile=vfile(file),compiler=this.compiler||this.Compiler;return assertCompiler("stringify",compiler),assertNode(tree),compiler(tree,realFile)}use(value,...parameters){const attachers=this.attachers,namespace=this.namespace;if(assertUnfrozen("use",this.frozen),null==value);else if("function"==typeof value)addPlugin(value,parameters);else{if("object"!=typeof value)throw new TypeError("Expected usable value, not `"+value+"`");Array.isArray(value)?addList(value):addPreset(value)}return this;function add(value){if("function"==typeof value)addPlugin(value,[]);else{if("object"!=typeof value)throw new TypeError("Expected usable value, not `"+value+"`");if(Array.isArray(value)){const[plugin,...parameters]=value;addPlugin(plugin,parameters)}else addPreset(value)}}function addPreset(result){if(!("plugins"in result)&&!("settings"in result))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");addList(result.plugins),result.settings&&(namespace.settings=extend(!0,namespace.settings,result.settings))}function addList(plugins){let index=-1;if(null==plugins);else{if(!Array.isArray(plugins))throw new TypeError("Expected a list of plugins, not `"+plugins+"`");for(;++index<plugins.length;){add(plugins[index])}}}function addPlugin(plugin,parameters){let index=-1,entryIndex=-1;for(;++index<attachers.length;)if(attachers[index][0]===plugin){entryIndex=index;break}if(-1===entryIndex)attachers.push([plugin,...parameters]);else if(parameters.length>0){let[primary,...rest]=parameters;const currentPrimary=attachers[entryIndex][1];isPlainObject(currentPrimary)&&isPlainObject(primary)&&(primary=extend(!0,currentPrimary,primary)),attachers[entryIndex]=[plugin,primary,...rest]}}}}const unified=(new Processor).freeze();function assertParser(name,value){if("function"!=typeof value)throw new TypeError("Cannot `"+name+"` without `parser`")}function assertCompiler(name,value){if("function"!=typeof value)throw new TypeError("Cannot `"+name+"` without `compiler`")}function assertUnfrozen(name,frozen){if(frozen)throw new Error("Cannot call `"+name+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function assertNode(node){if(!isPlainObject(node)||"string"!=typeof node.type)throw new TypeError("Expected node, got `"+node+"`")}function assertDone(name,asyncName,complete){if(!complete)throw new Error("`"+name+"` finished async. Use `"+asyncName+"` instead")}function vfile(value){return function looksLikeAVFile(value){return Boolean(value&&"object"==typeof value&&"message"in value&&"messages"in value)}(value)?value:new VFile(value)}const lib_convert=function(test){if(null==test)return unist_util_is_lib_ok;if("function"==typeof test)return lib_castFactory(test);if("object"==typeof test)return Array.isArray(test)?function lib_anyFactory(tests){const checks=[];let index=-1;for(;++index<tests.length;)checks[index]=lib_convert(tests[index]);return lib_castFactory(any);function any(...parameters){let index=-1;for(;++index<checks.length;)if(checks[index].apply(this,parameters))return!0;return!1}}(test):function lib_propsFactory(check){const checkAsRecord=check;return lib_castFactory(all);function all(node){const nodeAsRecord=node;let key;for(key in check)if(nodeAsRecord[key]!==checkAsRecord[key])return!1;return!0}}(test);if("string"==typeof test)return function lib_typeFactory(check){return lib_castFactory(type);function type(node){return node&&node.type===check}}(test);throw new Error("Expected function, string, or object as test")};function lib_castFactory(testFunction){return function check(value,index,parent){return Boolean(lib_looksLikeANode(value)&&testFunction.call(this,value,"number"==typeof index?index:void 0,parent||void 0))}}function unist_util_is_lib_ok(){return!0}function lib_looksLikeANode(value){return null!==value&&"object"==typeof value&&"type"in value}const unist_util_visit_parents_lib_empty=[],lib_CONTINUE=!0,lib_EXIT=!1,lib_SKIP="skip";function lib_visitParents(tree,test,visitor,reverse){let check;"function"==typeof test&&"function"!=typeof visitor?(reverse=visitor,visitor=test):check=test;const is=lib_convert(check),step=reverse?-1:1;!function factory(node,index,parents){const value=node&&"object"==typeof node?node:{};if("string"==typeof value.type){const name="string"==typeof value.tagName?value.tagName:"string"==typeof value.name?value.name:void 0;Object.defineProperty(visit,"name",{value:"node ("+node.type+(name?"<"+name+">":"")+")"})}return visit;function visit(){let subresult,offset,grandparents,result=unist_util_visit_parents_lib_empty;if((!test||is(node,index,parents[parents.length-1]||void 0))&&(result=function lib_toResult(value){if(Array.isArray(value))return value;if("number"==typeof value)return[lib_CONTINUE,value];return null==value?unist_util_visit_parents_lib_empty:[value]}(visitor(node,parents)),result[0]===lib_EXIT))return result;if("children"in node&&node.children){const nodeAsParent=node;if(nodeAsParent.children&&result[0]!==lib_SKIP)for(offset=(reverse?nodeAsParent.children.length:-1)+step,grandparents=parents.concat(nodeAsParent);offset>-1&&offset<nodeAsParent.children.length;){const child=nodeAsParent.children[offset];if(subresult=factory(child,offset,grandparents)(),subresult[0]===lib_EXIT)return subresult;offset="number"==typeof subresult[1]?subresult[1]:offset+step}}return result}}(tree,void 0,[])()}const emptyPlugins=[],emptyRemarkRehypeOptions={allowDangerousHtml:!0},safeProtocol=/^(https?|ircs?|mailto|xmpp)$/i,deprecations=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Markdown(options){const allowedElements=options.allowedElements,allowElement=options.allowElement,children=options.children||"",className=options.className,components=options.components,disallowedElements=options.disallowedElements,rehypePlugins=options.rehypePlugins||emptyPlugins,remarkPlugins=options.remarkPlugins||emptyPlugins,remarkRehypeOptions=options.remarkRehypeOptions?{...options.remarkRehypeOptions,...emptyRemarkRehypeOptions}:emptyRemarkRehypeOptions,skipHtml=options.skipHtml,unwrapDisallowed=options.unwrapDisallowed,urlTransform=options.urlTransform||defaultUrlTransform,processor=unified().use(remarkParse).use(remarkPlugins).use(remarkRehype,remarkRehypeOptions).use(rehypePlugins),file=new VFile;"string"==typeof children&&(file.value=children);for(const deprecation of deprecations)Object.hasOwn(options,deprecation.from)&&(deprecation.from,deprecation.to&&deprecation.to,deprecation.id);const mdastTree=processor.parse(file);let hastTree=processor.runSync(mdastTree,file);return className&&(hastTree={type:"element",tagName:"div",properties:{className},children:"root"===hastTree.type?hastTree.children:[hastTree]}),function lib_visit(tree,testOrVisitor,visitorOrReverse,maybeReverse){let reverse,test,visitor;"function"==typeof testOrVisitor&&"function"!=typeof visitorOrReverse?(test=void 0,visitor=testOrVisitor,reverse=visitorOrReverse):(test=testOrVisitor,visitor=visitorOrReverse,reverse=maybeReverse),lib_visitParents(tree,test,(function overload(node,parents){const parent=parents[parents.length-1],index=parent?parent.children.indexOf(node):void 0;return visitor(node,index,parent)}),reverse)}(hastTree,(function transform(node,index,parent){if("raw"===node.type&&parent&&"number"==typeof index)return skipHtml?parent.children.splice(index,1):parent.children[index]={type:"text",value:node.value},index;if("element"===node.type){let key;for(key in urlAttributes)if(Object.hasOwn(urlAttributes,key)&&Object.hasOwn(node.properties,key)){const value=node.properties[key],test=urlAttributes[key];(null===test||test.includes(node.tagName))&&(node.properties[key]=urlTransform(String(value||""),key,node))}}if("element"===node.type){let remove=allowedElements?!allowedElements.includes(node.tagName):!!disallowedElements&&disallowedElements.includes(node.tagName);if(!remove&&allowElement&&"number"==typeof index&&(remove=!allowElement(node,index,parent)),remove&&parent&&"number"==typeof index)return unwrapDisallowed&&node.children?parent.children.splice(index,1,...node.children):parent.children.splice(index,1),index}})),toJsxRuntime(hastTree,{Fragment:jsx_runtime.Fragment,components,ignoreInvalidStyle:!0,jsx:jsx_runtime.jsx,jsxs:jsx_runtime.jsxs,passKeys:!0,passNode:!0})}function defaultUrlTransform(value){const colon=value.indexOf(":"),questionMark=value.indexOf("?"),numberSign=value.indexOf("#"),slash=value.indexOf("/");return colon<0||slash>-1&&colon>slash||questionMark>-1&&colon>questionMark||numberSign>-1&&colon>numberSign||safeProtocol.test(value.slice(0,colon))?value:""}}}]); |