neo-md 1.2.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,79 +1,164 @@
1
- (function(rt,D){typeof exports=="object"&&typeof module<"u"?D(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],D):(rt=typeof globalThis<"u"?globalThis:rt||self,D(rt.NeoMd={},rt.jsxRuntime,rt.React))})(this,(function(rt,D,ke){"use strict";function Ql(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const Se=Ql(ke);function nm(){}function rm(){}function Zl(e,n){const t={};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const Jl=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ea=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ta={};function Kr(e,n){return(ta.jsx?ea:Jl).test(e)}const na=/[ \t\n\f\r]/g;function ra(e){return typeof e=="object"?e.type==="text"?Qr(e.value):!1:Qr(e)}function Qr(e){return e.replace(na,"")===""}class Mt{constructor(n,t,r){this.normal=t,this.property=n,r&&(this.space=r)}}Mt.prototype.normal={},Mt.prototype.property={},Mt.prototype.space=void 0;function Zr(e,n){const t={},r={};for(const i of e)Object.assign(t,i.property),Object.assign(r,i.normal);return new Mt(t,r,n)}function On(e){return e.toLowerCase()}class Oe{constructor(n,t){this.attribute=t,this.property=n}}Oe.prototype.attribute="",Oe.prototype.booleanish=!1,Oe.prototype.boolean=!1,Oe.prototype.commaOrSpaceSeparated=!1,Oe.prototype.commaSeparated=!1,Oe.prototype.defined=!1,Oe.prototype.mustUseProperty=!1,Oe.prototype.number=!1,Oe.prototype.overloadedBoolean=!1,Oe.prototype.property="",Oe.prototype.spaceSeparated=!1,Oe.prototype.space=void 0;let ia=0;const Y=dt(),de=dt(),zn=dt(),_=dt(),se=dt(),St=dt(),Me=dt();function dt(){return 2**++ia}const Nn=Object.freeze(Object.defineProperty({__proto__:null,boolean:Y,booleanish:de,commaOrSpaceSeparated:Me,commaSeparated:St,number:_,overloadedBoolean:zn,spaceSeparated:se},Symbol.toStringTag,{value:"Module"})),Mn=Object.keys(Nn);class Rn extends Oe{constructor(n,t,r,i){let l=-1;if(super(n,t),Jr(this,"space",i),typeof r=="number")for(;++l<Mn.length;){const o=Mn[l];Jr(this,Mn[l],(r&Nn[o])===Nn[o])}}}Rn.prototype.defined=!0;function Jr(e,n,t){t&&(e[n]=t)}function Et(e){const n={},t={};for(const[r,i]of Object.entries(e.properties)){const l=new Rn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),n[r]=l,t[On(r)]=r,t[On(l.attribute)]=r}return new Mt(n,t,e.space)}const ei=Et({properties:{ariaActiveDescendant:null,ariaAtomic:de,ariaAutoComplete:null,ariaBusy:de,ariaChecked:de,ariaColCount:_,ariaColIndex:_,ariaColSpan:_,ariaControls:se,ariaCurrent:null,ariaDescribedBy:se,ariaDetails:null,ariaDisabled:de,ariaDropEffect:se,ariaErrorMessage:null,ariaExpanded:de,ariaFlowTo:se,ariaGrabbed:de,ariaHasPopup:null,ariaHidden:de,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:se,ariaLevel:_,ariaLive:null,ariaModal:de,ariaMultiLine:de,ariaMultiSelectable:de,ariaOrientation:null,ariaOwns:se,ariaPlaceholder:null,ariaPosInSet:_,ariaPressed:de,ariaReadOnly:de,ariaRelevant:null,ariaRequired:de,ariaRoleDescription:se,ariaRowCount:_,ariaRowIndex:_,ariaRowSpan:_,ariaSelected:de,ariaSetSize:_,ariaSort:null,ariaValueMax:_,ariaValueMin:_,ariaValueNow:_,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function ti(e,n){return n in e?e[n]:n}function ni(e,n){return ti(e,n.toLowerCase())}const oa=Et({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:St,acceptCharset:se,accessKey:se,action:null,allow:null,allowFullScreen:Y,allowPaymentRequest:Y,allowUserMedia:Y,alt:null,as:null,async:Y,autoCapitalize:null,autoComplete:se,autoFocus:Y,autoPlay:Y,blocking:se,capture:null,charSet:null,checked:Y,cite:null,className:se,cols:_,colSpan:null,content:null,contentEditable:de,controls:Y,controlsList:se,coords:_|St,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Y,defer:Y,dir:null,dirName:null,disabled:Y,download:zn,draggable:de,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Y,formTarget:null,headers:se,height:_,hidden:zn,high:_,href:null,hrefLang:null,htmlFor:se,httpEquiv:se,id:null,imageSizes:null,imageSrcSet:null,inert:Y,inputMode:null,integrity:null,is:null,isMap:Y,itemId:null,itemProp:se,itemRef:se,itemScope:Y,itemType:se,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Y,low:_,manifest:null,max:null,maxLength:_,media:null,method:null,min:null,minLength:_,multiple:Y,muted:Y,name:null,nonce:null,noModule:Y,noValidate:Y,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:Y,optimum:_,pattern:null,ping:se,placeholder:null,playsInline:Y,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Y,referrerPolicy:null,rel:se,required:Y,reversed:Y,rows:_,rowSpan:_,sandbox:se,scope:null,scoped:Y,seamless:Y,selected:Y,shadowRootClonable:Y,shadowRootDelegatesFocus:Y,shadowRootMode:null,shape:null,size:_,sizes:null,slot:null,span:_,spellCheck:de,src:null,srcDoc:null,srcLang:null,srcSet:null,start:_,step:null,style:null,tabIndex:_,target:null,title:null,translate:null,type:null,typeMustMatch:Y,useMap:null,value:de,width:_,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:se,axis:null,background:null,bgColor:null,border:_,borderColor:null,bottomMargin:_,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Y,declare:Y,event:null,face:null,frame:null,frameBorder:null,hSpace:_,leftMargin:_,link:null,longDesc:null,lowSrc:null,marginHeight:_,marginWidth:_,noResize:Y,noHref:Y,noShade:Y,noWrap:Y,object:null,profile:null,prompt:null,rev:null,rightMargin:_,rules:null,scheme:null,scrolling:de,standby:null,summary:null,text:null,topMargin:_,valueType:null,version:null,vAlign:null,vLink:null,vSpace:_,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Y,disableRemotePlayback:Y,prefix:null,property:null,results:_,security:null,unselectable:null},space:"html",transform:ni}),la=Et({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Me,accentHeight:_,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:_,amplitude:_,arabicForm:null,ascent:_,attributeName:null,attributeType:null,azimuth:_,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:_,by:null,calcMode:null,capHeight:_,className:se,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:_,diffuseConstant:_,direction:null,display:null,dur:null,divisor:_,dominantBaseline:null,download:Y,dx:null,dy:null,edgeMode:null,editable:null,elevation:_,enableBackground:null,end:null,event:null,exponent:_,externalResourcesRequired:null,fill:null,fillOpacity:_,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:St,g2:St,glyphName:St,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:_,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:_,horizOriginX:_,horizOriginY:_,id:null,ideographic:_,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:_,k:_,k1:_,k2:_,k3:_,k4:_,kernelMatrix:Me,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:_,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:_,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:_,overlineThickness:_,paintOrder:null,panose1:null,path:null,pathLength:_,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:se,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:_,pointsAtY:_,pointsAtZ:_,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Me,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Me,rev:Me,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Me,requiredFeatures:Me,requiredFonts:Me,requiredFormats:Me,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:_,specularExponent:_,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:_,strikethroughThickness:_,string:null,stroke:null,strokeDashArray:Me,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:_,strokeOpacity:_,strokeWidth:null,style:null,surfaceScale:_,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Me,tabIndex:_,tableValues:null,target:null,targetX:_,targetY:_,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Me,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:_,underlineThickness:_,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:_,values:null,vAlphabetic:_,vMathematical:_,vectorEffect:null,vHanging:_,vIdeographic:_,version:null,vertAdvY:_,vertOriginX:_,vertOriginY:_,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:_,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:ti}),ri=Et({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),ii=Et({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:ni}),oi=Et({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),aa={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"},sa=/[A-Z]/g,li=/-[a-z]/g,ua=/^data[-\w.:]+$/i;function ca(e,n){const t=On(n);let r=n,i=Oe;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&ua.test(n)){if(n.charAt(4)==="-"){const l=n.slice(5).replace(li,pa);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=n.slice(4);if(!li.test(l)){let o=l.replace(sa,fa);o.charAt(0)!=="-"&&(o="-"+o),n="data"+o}}i=Rn}return new i(r,n)}function fa(e){return"-"+e.toLowerCase()}function pa(e){return e.charAt(1).toUpperCase()}const ha=Zr([ei,oa,ri,ii,oi],"html"),Fn=Zr([ei,la,ri,ii,oi],"svg");function da(e){return e.join(" ").trim()}function Bn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ct={},jn,ai;function ma(){if(ai)return jn;ai=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,t=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,a=/^\s+|\s+$/g,s=`
2
- `,u="/",f="*",c="",h="comment",p="declaration";function y(E,x){if(typeof E!="string")throw new TypeError("First argument must be a string");if(!E)return[];x=x||{};var A=1,v=1;function $(R){var L=R.match(n);L&&(A+=L.length);var W=R.lastIndexOf(s);v=~W?R.length-W:v+R.length}function M(){var R={line:A,column:v};return function(L){return L.position=new w(R),V(),L}}function w(R){this.start=R,this.end={line:A,column:v},this.source=x.source}w.prototype.content=E;function H(R){var L=new Error(x.source+":"+A+":"+v+": "+R);if(L.reason=R,L.filename=x.source,L.line=A,L.column=v,L.source=E,!x.silent)throw L}function C(R){var L=R.exec(E);if(L){var W=L[0];return $(W),E=E.slice(W.length),L}}function V(){C(t)}function b(R){var L;for(R=R||[];L=O();)L!==!1&&R.push(L);return R}function O(){var R=M();if(!(u!=E.charAt(0)||f!=E.charAt(1))){for(var L=2;c!=E.charAt(L)&&(f!=E.charAt(L)||u!=E.charAt(L+1));)++L;if(L+=2,c===E.charAt(L-1))return H("End of comment missing");var W=E.slice(2,L-2);return v+=2,$(W),E=E.slice(L),v+=2,R({type:h,comment:W})}}function P(){var R=M(),L=C(r);if(L){if(O(),!C(i))return H("property missing ':'");var W=C(l),re=R({type:p,property:S(L[0].replace(e,c)),value:W?S(W[0].replace(e,c)):c});return C(o),re}}function X(){var R=[];b(R);for(var L;L=P();)L!==!1&&(R.push(L),b(R));return R}return V(),X()}function S(E){return E?E.replace(a,c):c}return jn=y,jn}var si;function ga(){if(si)return Ct;si=1;var e=Ct&&Ct.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.default=t;const n=e(ma());function t(r,i){let l=null;if(!r||typeof r!="string")return l;const o=(0,n.default)(r),a=typeof i=="function";return o.forEach(s=>{if(s.type!=="declaration")return;const{property:u,value:f}=s;a?i(u,f,s):f&&(l=l||{},l[u]=f)}),l}return Ct}var Rt={},ui;function ba(){if(ui)return Rt;ui=1,Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,t=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,l=function(u){return!u||t.test(u)||e.test(u)},o=function(u,f){return f.toUpperCase()},a=function(u,f){return"".concat(f,"-")},s=function(u,f){return f===void 0&&(f={}),l(u)?u:(u=u.toLowerCase(),f.reactCompat?u=u.replace(i,a):u=u.replace(r,a),u.replace(n,o))};return Rt.camelCase=s,Rt}var Ft,ci;function ya(){if(ci)return Ft;ci=1;var e=Ft&&Ft.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},n=e(ga()),t=ba();function r(i,l){var o={};return!i||typeof i!="string"||(0,n.default)(i,function(a,s){a&&s&&(o[(0,t.camelCase)(a,l)]=s)}),o}return r.default=r,Ft=r,Ft}var xa=ya();const ka=Bn(xa),fi=pi("end"),Un=pi("start");function pi(e){return n;function n(t){const r=t&&t.position&&t.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function wa(e){const n=Un(e),t=fi(e);if(n&&t)return{start:n,end:t}}function Bt(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?hi(e.position):"start"in e||"end"in e?hi(e):"line"in e||"column"in e?$n(e):""}function $n(e){return di(e&&e.line)+":"+di(e&&e.column)}function hi(e){return $n(e&&e.start)+"-"+$n(e&&e.end)}function di(e){return e&&typeof e=="number"?e:1}class Te extends Error{constructor(n,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",l={},o=!1;if(t&&("line"in t&&"column"in t?l={place:t}:"start"in t&&"end"in t?l={place:t}:"type"in t?l={ancestors:[t],place:t.position}:l={...t}),typeof n=="string"?i=n:!l.cause&&n&&(o=!0,i=n.message,l.cause=n),!l.ruleId&&!l.source&&typeof r=="string"){const s=r.indexOf(":");s===-1?l.ruleId=r:(l.source=r.slice(0,s),l.ruleId=r.slice(s+1))}if(!l.place&&l.ancestors&&l.ancestors){const s=l.ancestors[l.ancestors.length-1];s&&(l.place=s.position)}const a=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=Bt(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=o&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Te.prototype.file="",Te.prototype.name="",Te.prototype.reason="",Te.prototype.message="",Te.prototype.stack="",Te.prototype.column=void 0,Te.prototype.line=void 0,Te.prototype.ancestors=void 0,Te.prototype.cause=void 0,Te.prototype.fatal=void 0,Te.prototype.place=void 0,Te.prototype.ruleId=void 0,Te.prototype.source=void 0;const Hn={}.hasOwnProperty,Sa=new Map,Ea=/[A-Z]/g,Ca=new Set(["table","tbody","thead","tfoot","tr"]),va=new Set(["td","th"]),mi="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Ta(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const t=n.filePath||void 0;let r;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=za(t,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Oa(t,n.jsx,n.jsxs)}const i={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:r,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:t,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?Fn:ha,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},l=gi(i,e,void 0);return l&&typeof l!="string"?l:i.create(e,i.Fragment,{children:l||void 0},void 0)}function gi(e,n,t){if(n.type==="element")return Aa(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return _a(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return La(e,n,t);if(n.type==="mdxjsEsm")return Ia(e,n);if(n.type==="root")return Pa(e,n,t);if(n.type==="text")return Da(e,n)}function Aa(e,n,t){const r=e.schema;let i=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Fn,e.schema=i),e.ancestors.push(n);const l=yi(e,n.tagName,!1),o=Na(e,n);let a=qn(e,n);return Ca.has(n.tagName)&&(a=a.filter(function(s){return typeof s=="string"?!ra(s):!0})),bi(e,o,l,n),Vn(o,a),e.ancestors.pop(),e.schema=r,e.create(n,l,o,t)}function _a(e,n){if(n.data&&n.data.estree&&e.evaluater){const r=n.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}jt(e,n.position)}function Ia(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);jt(e,n.position)}function La(e,n,t){const r=e.schema;let i=r;n.name==="svg"&&r.space==="html"&&(i=Fn,e.schema=i),e.ancestors.push(n);const l=n.name===null?e.Fragment:yi(e,n.name,!0),o=Ma(e,n),a=qn(e,n);return bi(e,o,l,n),Vn(o,a),e.ancestors.pop(),e.schema=r,e.create(n,l,o,t)}function Pa(e,n,t){const r={};return Vn(r,qn(e,n)),e.create(n,e.Fragment,r,t)}function Da(e,n){return n.value}function bi(e,n,t,r){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=r)}function Vn(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function Oa(e,n,t){return r;function r(i,l,o,a){const u=Array.isArray(o.children)?t:n;return a?u(l,o,a):u(l,o)}}function za(e,n){return t;function t(r,i,l,o){const a=Array.isArray(l.children),s=Un(r);return n(i,l,o,a,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function Na(e,n){const t={};let r,i;for(i in n.properties)if(i!=="children"&&Hn.call(n.properties,i)){const l=Ra(e,i,n.properties[i]);if(l){const[o,a]=l;e.tableCellAlignToStyle&&o==="align"&&typeof a=="string"&&va.has(n.tagName)?r=a:t[o]=a}}if(r){const l=t.style||(t.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function Ma(e,n){const t={};for(const r of n.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const l=r.data.estree.body[0];l.type;const o=l.expression;o.type;const a=o.properties[0];a.type,Object.assign(t,e.evaluater.evaluateExpression(a.argument))}else jt(e,n.position);else{const i=r.name;let l;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];a.type,l=e.evaluater.evaluateExpression(a.expression)}else jt(e,n.position);else l=r.value===null?!0:r.value;t[i]=l}return t}function qn(e,n){const t=[];let r=-1;const i=e.passKeys?new Map:Sa;for(;++r<n.children.length;){const l=n.children[r];let o;if(e.passKeys){const s=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(s){const u=i.get(s)||0;o=s+"-"+u,i.set(s,u+1)}}const a=gi(e,l,o);a!==void 0&&t.push(a)}return t}function Ra(e,n,t){const r=ca(e.schema,n);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=r.commaSeparated?Zl(t):da(t)),r.property==="style"){let i=typeof t=="object"?t:Fa(e,String(t));return e.stylePropertyNameCase==="css"&&(i=Ba(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?aa[r.property]||r.property:r.attribute,t]}}function Fa(e,n){try{return ka(n,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const r=t,i=new Te("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=mi+"#cannot-parse-style-attribute",i}}function yi(e,n,t){let r;if(!t)r={type:"Literal",value:n};else if(n.includes(".")){const i=n.split(".");let l=-1,o;for(;++l<i.length;){const a=Kr(i[l])?{type:"Identifier",name:i[l]}:{type:"Literal",value:i[l]};o=o?{type:"MemberExpression",object:o,property:a,computed:!!(l&&a.type==="Literal"),optional:!1}:a}r=o}else r=Kr(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(r.type==="Literal"){const i=r.value;return Hn.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);jt(e)}function jt(e,n){const t=new Te("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=mi+"#cannot-handle-mdx-estrees-without-createevaluater",t}function Ba(e){const n={};let t;for(t in e)Hn.call(e,t)&&(n[ja(t)]=e[t]);return n}function ja(e){let n=e.replace(Ea,Ua);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function Ua(e){return"-"+e.toLowerCase()}const Wn={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"]},$a={};function Gn(e,n){const t=$a,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return xi(e,r,i)}function xi(e,n,t){if(Ha(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return ki(e.children,n,t)}return Array.isArray(e)?ki(e,n,t):""}function ki(e,n,t){const r=[];let i=-1;for(;++i<e.length;)r[i]=xi(e[i],n,t);return r.join("")}function Ha(e){return!!(e&&typeof e=="object")}const wi=document.createElement("i");function Yn(e){const n="&"+e+";";wi.innerHTML=n;const t=wi.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function Re(e,n,t,r){const i=e.length;let l=0,o;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)o=Array.from(r),o.unshift(n,t),e.splice(...o);else for(t&&e.splice(n,t);l<r.length;)o=r.slice(l,l+1e4),o.unshift(n,0),e.splice(...o),l+=1e4,n+=1e4}function Be(e,n){return e.length>0?(Re(e,e.length,0,n),e):n}const Si={}.hasOwnProperty;function Ei(e){const n={};let t=-1;for(;++t<e.length;)Va(n,e[t]);return n}function Va(e,n){let t;for(t in n){const i=(Si.call(e,t)?e[t]:void 0)||(e[t]={}),l=n[t];let o;if(l)for(o in l){Si.call(i,o)||(i[o]=[]);const a=l[o];qa(i[o],Array.isArray(a)?a:a?[a]:[])}}}function qa(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);Re(e,0,0,r)}function Ci(e,n){const t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function $e(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Le=it(/[A-Za-z]/),Ae=it(/[\dA-Za-z]/),Wa=it(/[#-'*+\--9=?A-Z^-~]/);function ln(e){return e!==null&&(e<32||e===127)}const Xn=it(/\d/),Ga=it(/[\dA-Fa-f]/),Ya=it(/[!-/:-@[-`{-~]/);function U(e){return e!==null&&e<-2}function le(e){return e!==null&&(e<0||e===32)}function J(e){return e===-2||e===-1||e===32}const an=it(new RegExp("\\p{P}|\\p{S}","u")),mt=it(/\s/);function it(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function vt(e){const n=[];let t=-1,r=0,i=0;for(;++t<e.length;){const l=e.charCodeAt(t);let o="";if(l===37&&Ae(e.charCodeAt(t+1))&&Ae(e.charCodeAt(t+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(o=String.fromCharCode(l));else if(l>55295&&l<57344){const a=e.charCodeAt(t+1);l<56320&&a>56319&&a<57344?(o=String.fromCharCode(l,a),i=1):o="�"}else o=String.fromCharCode(l);o&&(n.push(e.slice(r,t),encodeURIComponent(o)),r=t+i+1,o=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}function ne(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(s){return J(s)?(e.enter(t),a(s)):n(s)}function a(s){return J(s)&&l++<i?(e.consume(s),a):(e.exit(t),n(s))}}const Xa={tokenize:Ka};function Ka(e){const n=e.attempt(this.parser.constructs.contentInitial,r,i);let t;return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),ne(e,n,"linePrefix")}function i(a){return e.enter("paragraph"),l(a)}function l(a){const s=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=s),t=s,o(a)}function o(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return U(a)?(e.consume(a),e.exit("chunkText"),l):(e.consume(a),o)}}const Qa={tokenize:Za},vi={tokenize:Ja};function Za(e){const n=this,t=[];let r=0,i,l,o;return a;function a(v){if(r<t.length){const $=t[r];return n.containerState=$[1],e.attempt($[0].continuation,s,u)(v)}return u(v)}function s(v){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&A();const $=n.events.length;let M=$,w;for(;M--;)if(n.events[M][0]==="exit"&&n.events[M][1].type==="chunkFlow"){w=n.events[M][1].end;break}x(r);let H=$;for(;H<n.events.length;)n.events[H][1].end={...w},H++;return Re(n.events,M+1,0,n.events.slice($)),n.events.length=H,u(v)}return a(v)}function u(v){if(r===t.length){if(!i)return h(v);if(i.currentConstruct&&i.currentConstruct.concrete)return y(v);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(vi,f,c)(v)}function f(v){return i&&A(),x(r),h(v)}function c(v){return n.parser.lazy[n.now().line]=r!==t.length,o=n.now().offset,y(v)}function h(v){return n.containerState={},e.attempt(vi,p,y)(v)}function p(v){return r++,t.push([n.currentConstruct,n.containerState]),h(v)}function y(v){if(v===null){i&&A(),x(0),e.consume(v);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:l}),S(v)}function S(v){if(v===null){E(e.exit("chunkFlow"),!0),x(0),e.consume(v);return}return U(v)?(e.consume(v),E(e.exit("chunkFlow")),r=0,n.interrupt=void 0,a):(e.consume(v),S)}function E(v,$){const M=n.sliceStream(v);if($&&M.push(null),v.previous=l,l&&(l.next=v),l=v,i.defineSkip(v.start),i.write(M),n.parser.lazy[v.start.line]){let w=i.events.length;for(;w--;)if(i.events[w][1].start.offset<o&&(!i.events[w][1].end||i.events[w][1].end.offset>o))return;const H=n.events.length;let C=H,V,b;for(;C--;)if(n.events[C][0]==="exit"&&n.events[C][1].type==="chunkFlow"){if(V){b=n.events[C][1].end;break}V=!0}for(x(r),w=H;w<n.events.length;)n.events[w][1].end={...b},w++;Re(n.events,C+1,0,n.events.slice(H)),n.events.length=w}}function x(v){let $=t.length;for(;$-- >v;){const M=t[$];n.containerState=M[1],M[0].exit.call(n,e)}t.length=v}function A(){i.write([null]),l=void 0,i=void 0,n.containerState._closeFlow=void 0}}function Ja(e,n,t){return ne(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Tt(e){if(e===null||le(e)||mt(e))return 1;if(an(e))return 2}function sn(e,n,t){const r=[];let i=-1;for(;++i<e.length;){const l=e[i].resolveAll;l&&!r.includes(l)&&(n=l(n,t),r.push(l))}return n}const Kn={name:"attention",resolveAll:es,tokenize:ts};function es(e,n){let t=-1,r,i,l,o,a,s,u,f;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const c={...e[r][1].end},h={...e[t][1].start};Ti(c,-s),Ti(h,s),o={type:s>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},a={type:s>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:h},l={type:s>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[t][1].start}},i={type:s>1?"strong":"emphasis",start:{...o.start},end:{...a.end}},e[r][1].end={...o.start},e[t][1].start={...a.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=Be(u,[["enter",e[r][1],n],["exit",e[r][1],n]])),u=Be(u,[["enter",i,n],["enter",o,n],["exit",o,n],["enter",l,n]]),u=Be(u,sn(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),u=Be(u,[["exit",l,n],["enter",a,n],["exit",a,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(f=2,u=Be(u,[["enter",e[t][1],n],["exit",e[t][1],n]])):f=0,Re(e,r-1,t-r+3,u),t=r+u.length-f-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function ts(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Tt(r);let l;return o;function o(s){return l=s,e.enter("attentionSequence"),a(s)}function a(s){if(s===l)return e.consume(s),a;const u=e.exit("attentionSequence"),f=Tt(s),c=!f||f===2&&i||t.includes(s),h=!i||i===2&&f||t.includes(r);return u._open=!!(l===42?c:c&&(i||!h)),u._close=!!(l===42?h:h&&(f||!c)),n(s)}}function Ti(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const ns={name:"autolink",tokenize:rs};function rs(e,n,t){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(p){return Le(p)?(e.consume(p),o):p===64?t(p):u(p)}function o(p){return p===43||p===45||p===46||Ae(p)?(r=1,a(p)):u(p)}function a(p){return p===58?(e.consume(p),r=0,s):(p===43||p===45||p===46||Ae(p))&&r++<32?(e.consume(p),a):(r=0,u(p))}function s(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),n):p===null||p===32||p===60||ln(p)?t(p):(e.consume(p),s)}function u(p){return p===64?(e.consume(p),f):Wa(p)?(e.consume(p),u):t(p)}function f(p){return Ae(p)?c(p):t(p)}function c(p){return p===46?(e.consume(p),r=0,f):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),n):h(p)}function h(p){if((p===45||Ae(p))&&r++<63){const y=p===45?h:c;return e.consume(p),y}return t(p)}}const Ut={partial:!0,tokenize:is};function is(e,n,t){return r;function r(l){return J(l)?ne(e,i,"linePrefix")(l):i(l)}function i(l){return l===null||U(l)?n(l):t(l)}}const Ai={continuation:{tokenize:ls},exit:as,name:"blockQuote",tokenize:os};function os(e,n,t){const r=this;return i;function i(o){if(o===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),l}return t(o)}function l(o){return J(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(o))}}function ls(e,n,t){const r=this;return i;function i(o){return J(o)?ne(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):l(o)}function l(o){return e.attempt(Ai,n,t)(o)}}function as(e){e.exit("blockQuote")}const _i={name:"characterEscape",tokenize:ss};function ss(e,n,t){return r;function r(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),i}function i(l){return Ya(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(l)}}const Ii={name:"characterReference",tokenize:us};function us(e,n,t){const r=this;let i=0,l,o;return a;function a(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),s}function s(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),l=31,o=Ae,f(c))}function u(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,o=Ga,f):(e.enter("characterReferenceValue"),l=7,o=Xn,f(c))}function f(c){if(c===59&&i){const h=e.exit("characterReferenceValue");return o===Ae&&!Yn(r.sliceSerialize(h))?t(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return o(c)&&i++<l?(e.consume(c),f):t(c)}}const Li={partial:!0,tokenize:fs},Pi={concrete:!0,name:"codeFenced",tokenize:cs};function cs(e,n,t){const r=this,i={partial:!0,tokenize:M};let l=0,o=0,a;return s;function s(w){return u(w)}function u(w){const H=r.events[r.events.length-1];return l=H&&H[1].type==="linePrefix"?H[2].sliceSerialize(H[1],!0).length:0,a=w,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(w)}function f(w){return w===a?(o++,e.consume(w),f):o<3?t(w):(e.exit("codeFencedFenceSequence"),J(w)?ne(e,c,"whitespace")(w):c(w))}function c(w){return w===null||U(w)?(e.exit("codeFencedFence"),r.interrupt?n(w):e.check(Li,S,$)(w)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(w))}function h(w){return w===null||U(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(w)):J(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ne(e,p,"whitespace")(w)):w===96&&w===a?t(w):(e.consume(w),h)}function p(w){return w===null||U(w)?c(w):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),y(w))}function y(w){return w===null||U(w)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(w)):w===96&&w===a?t(w):(e.consume(w),y)}function S(w){return e.attempt(i,$,E)(w)}function E(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),x}function x(w){return l>0&&J(w)?ne(e,A,"linePrefix",l+1)(w):A(w)}function A(w){return w===null||U(w)?e.check(Li,S,$)(w):(e.enter("codeFlowValue"),v(w))}function v(w){return w===null||U(w)?(e.exit("codeFlowValue"),A(w)):(e.consume(w),v)}function $(w){return e.exit("codeFenced"),n(w)}function M(w,H,C){let V=0;return b;function b(L){return w.enter("lineEnding"),w.consume(L),w.exit("lineEnding"),O}function O(L){return w.enter("codeFencedFence"),J(L)?ne(w,P,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):P(L)}function P(L){return L===a?(w.enter("codeFencedFenceSequence"),X(L)):C(L)}function X(L){return L===a?(V++,w.consume(L),X):V>=o?(w.exit("codeFencedFenceSequence"),J(L)?ne(w,R,"whitespace")(L):R(L)):C(L)}function R(L){return L===null||U(L)?(w.exit("codeFencedFence"),H(L)):C(L)}}}function fs(e,n,t){const r=this;return i;function i(o){return o===null?t(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l)}function l(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}const Qn={name:"codeIndented",tokenize:hs},ps={partial:!0,tokenize:ds};function hs(e,n,t){const r=this;return i;function i(u){return e.enter("codeIndented"),ne(e,l,"linePrefix",5)(u)}function l(u){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?o(u):t(u)}function o(u){return u===null?s(u):U(u)?e.attempt(ps,o,s)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||U(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),a)}function s(u){return e.exit("codeIndented"),n(u)}}function ds(e,n,t){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?t(o):U(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):ne(e,l,"linePrefix",5)(o)}function l(o){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(o):U(o)?i(o):t(o)}}const ms={name:"codeText",previous:bs,resolve:gs,tokenize:ys};function gs(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)i===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(i=r):(r===n||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),n-=r-i-2,r=i+2),i=void 0);return e}function bs(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ys(e,n,t){let r=0,i,l;return o;function o(c){return e.enter("codeText"),e.enter("codeTextSequence"),a(c)}function a(c){return c===96?(e.consume(c),r++,a):(e.exit("codeTextSequence"),s(c))}function s(c){return c===null?t(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),s):c===96?(l=e.enter("codeTextSequence"),i=0,f(c)):U(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):(e.enter("codeTextData"),u(c))}function u(c){return c===null||c===32||c===96||U(c)?(e.exit("codeTextData"),s(c)):(e.consume(c),u)}function f(c){return c===96?(e.consume(c),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(c)):(l.type="codeTextData",u(c))}}class xs{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,t){const r=t??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){const i=t||0;this.setCursor(Math.trunc(n));const l=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&$t(this.left,r),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),$t(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),$t(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const t=this.left.splice(n,Number.POSITIVE_INFINITY);$t(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);$t(this.left,t.reverse())}}}function $t(e,n){let t=0;if(n.length<1e4)e.push(...n);else for(;t<n.length;)e.push(...n.slice(t,t+1e4)),t+=1e4}function Di(e){const n={};let t=-1,r,i,l,o,a,s,u;const f=new xs(e);for(;++t<f.length;){for(;t in n;)t=n[t];if(r=f.get(t),t&&r[1].type==="chunkFlow"&&f.get(t-1)[1].type==="listItemPrefix"&&(s=r[1]._tokenizer.events,l=0,l<s.length&&s[l][1].type==="lineEndingBlank"&&(l+=2),l<s.length&&s[l][1].type==="content"))for(;++l<s.length&&s[l][1].type!=="content";)s[l][1].type==="chunkText"&&(s[l][1]._isInFirstContentOfListItem=!0,l++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,ks(f,t)),t=n[t],u=!0);else if(r[1]._container){for(l=t,i=void 0;l--;)if(o=f.get(l),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=l);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(r[1].end={...f.get(i)[1].start},a=f.slice(i,t),a.unshift(r),f.splice(i,t-i+1,a))}}return Re(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!u}function ks(e,n){const t=e.get(n)[1],r=e.get(n)[2];let i=n-1;const l=[];let o=t._tokenizer;o||(o=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const a=o.events,s=[],u={};let f,c,h=-1,p=t,y=0,S=0;const E=[S];for(;p;){for(;e.get(++i)[1]!==p;);l.push(i),p._tokenizer||(f=r.sliceStream(p),p.next||f.push(null),c&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(f),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),c=p,p=p.next}for(p=t;++h<a.length;)a[h][0]==="exit"&&a[h-1][0]==="enter"&&a[h][1].type===a[h-1][1].type&&a[h][1].start.line!==a[h][1].end.line&&(S=h+1,E.push(S),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):E.pop(),h=E.length;h--;){const x=a.slice(E[h],E[h+1]),A=l.pop();s.push([A,A+x.length-1]),e.splice(A,2,x)}for(s.reverse(),h=-1;++h<s.length;)u[y+s[h][0]]=y+s[h][1],y+=s[h][1]-s[h][0]-1;return u}const ws={resolve:Es,tokenize:Cs},Ss={partial:!0,tokenize:vs};function Es(e){return Di(e),e}function Cs(e,n){let t;return r;function r(a){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?l(a):U(a)?e.check(Ss,o,l)(a):(e.consume(a),i)}function l(a){return e.exit("chunkContent"),e.exit("content"),n(a)}function o(a){return e.consume(a),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function vs(e,n,t){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),ne(e,l,"linePrefix")}function l(o){if(o===null||U(o))return t(o);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(o):e.interrupt(r.parser.constructs.flow,t,n)(o)}}function Oi(e,n,t,r,i,l,o,a,s){const u=s||Number.POSITIVE_INFINITY;let f=0;return c;function c(x){return x===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(x),e.exit(l),h):x===null||x===32||x===41||ln(x)?t(x):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),S(x))}function h(x){return x===62?(e.enter(l),e.consume(x),e.exit(l),e.exit(i),e.exit(r),n):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(x))}function p(x){return x===62?(e.exit("chunkString"),e.exit(a),h(x)):x===null||x===60||U(x)?t(x):(e.consume(x),x===92?y:p)}function y(x){return x===60||x===62||x===92?(e.consume(x),p):p(x)}function S(x){return!f&&(x===null||x===41||le(x))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),n(x)):f<u&&x===40?(e.consume(x),f++,S):x===41?(e.consume(x),f--,S):x===null||x===32||x===40||ln(x)?t(x):(e.consume(x),x===92?E:S)}function E(x){return x===40||x===41||x===92?(e.consume(x),S):S(x)}}function zi(e,n,t,r,i,l){const o=this;let a=0,s;return u;function u(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(l),f}function f(p){return a>999||p===null||p===91||p===93&&!s||p===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?t(p):p===93?(e.exit(l),e.enter(i),e.consume(p),e.exit(i),e.exit(r),n):U(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===null||p===91||p===93||U(p)||a++>999?(e.exit("chunkString"),f(p)):(e.consume(p),s||(s=!J(p)),p===92?h:c)}function h(p){return p===91||p===92||p===93?(e.consume(p),a++,c):c(p)}}function Ni(e,n,t,r,i,l){let o;return a;function a(h){return h===34||h===39||h===40?(e.enter(r),e.enter(i),e.consume(h),e.exit(i),o=h===40?41:h,s):t(h)}function s(h){return h===o?(e.enter(i),e.consume(h),e.exit(i),e.exit(r),n):(e.enter(l),u(h))}function u(h){return h===o?(e.exit(l),s(o)):h===null?t(h):U(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),ne(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===o||h===null||U(h)?(e.exit("chunkString"),u(h)):(e.consume(h),h===92?c:f)}function c(h){return h===o||h===92?(e.consume(h),f):f(h)}}function Ht(e,n){let t;return r;function r(i){return U(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):J(i)?ne(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const Ts={name:"definition",tokenize:_s},As={partial:!0,tokenize:Is};function _s(e,n,t){const r=this;let i;return l;function l(p){return e.enter("definition"),o(p)}function o(p){return zi.call(r,e,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return i=$e(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),s):t(p)}function s(p){return le(p)?Ht(e,u)(p):u(p)}function u(p){return Oi(e,f,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function f(p){return e.attempt(As,c,c)(p)}function c(p){return J(p)?ne(e,h,"whitespace")(p):h(p)}function h(p){return p===null||U(p)?(e.exit("definition"),r.parser.defined.push(i),n(p)):t(p)}}function Is(e,n,t){return r;function r(a){return le(a)?Ht(e,i)(a):t(a)}function i(a){return Ni(e,l,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function l(a){return J(a)?ne(e,o,"whitespace")(a):o(a)}function o(a){return a===null||U(a)?n(a):t(a)}}const Ls={name:"hardBreakEscape",tokenize:Ps};function Ps(e,n,t){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return U(l)?(e.exit("hardBreakEscape"),n(l)):t(l)}}const Ds={name:"headingAtx",resolve:Os,tokenize:zs};function Os(e,n){let t=e.length-2,r=3,i,l;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},l={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},Re(e,r,t-r+1,[["enter",i,n],["enter",l,n],["exit",l,n],["exit",i,n]])),e}function zs(e,n,t){let r=0;return i;function i(f){return e.enter("atxHeading"),l(f)}function l(f){return e.enter("atxHeadingSequence"),o(f)}function o(f){return f===35&&r++<6?(e.consume(f),o):f===null||le(f)?(e.exit("atxHeadingSequence"),a(f)):t(f)}function a(f){return f===35?(e.enter("atxHeadingSequence"),s(f)):f===null||U(f)?(e.exit("atxHeading"),n(f)):J(f)?ne(e,a,"whitespace")(f):(e.enter("atxHeadingText"),u(f))}function s(f){return f===35?(e.consume(f),s):(e.exit("atxHeadingSequence"),a(f))}function u(f){return f===null||f===35||le(f)?(e.exit("atxHeadingText"),a(f)):(e.consume(f),u)}}const Ns=["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"],Mi=["pre","script","style","textarea"],Ms={concrete:!0,name:"htmlFlow",resolveTo:Bs,tokenize:js},Rs={partial:!0,tokenize:$s},Fs={partial:!0,tokenize:Us};function Bs(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function js(e,n,t){const r=this;let i,l,o,a,s;return u;function u(m){return f(m)}function f(m){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(m),c}function c(m){return m===33?(e.consume(m),h):m===47?(e.consume(m),l=!0,S):m===63?(e.consume(m),i=3,r.interrupt?n:d):Le(m)?(e.consume(m),o=String.fromCharCode(m),E):t(m)}function h(m){return m===45?(e.consume(m),i=2,p):m===91?(e.consume(m),i=5,a=0,y):Le(m)?(e.consume(m),i=4,r.interrupt?n:d):t(m)}function p(m){return m===45?(e.consume(m),r.interrupt?n:d):t(m)}function y(m){const me="CDATA[";return m===me.charCodeAt(a++)?(e.consume(m),a===me.length?r.interrupt?n:P:y):t(m)}function S(m){return Le(m)?(e.consume(m),o=String.fromCharCode(m),E):t(m)}function E(m){if(m===null||m===47||m===62||le(m)){const me=m===47,ue=o.toLowerCase();return!me&&!l&&Mi.includes(ue)?(i=1,r.interrupt?n(m):P(m)):Ns.includes(o.toLowerCase())?(i=6,me?(e.consume(m),x):r.interrupt?n(m):P(m)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(m):l?A(m):v(m))}return m===45||Ae(m)?(e.consume(m),o+=String.fromCharCode(m),E):t(m)}function x(m){return m===62?(e.consume(m),r.interrupt?n:P):t(m)}function A(m){return J(m)?(e.consume(m),A):b(m)}function v(m){return m===47?(e.consume(m),b):m===58||m===95||Le(m)?(e.consume(m),$):J(m)?(e.consume(m),v):b(m)}function $(m){return m===45||m===46||m===58||m===95||Ae(m)?(e.consume(m),$):M(m)}function M(m){return m===61?(e.consume(m),w):J(m)?(e.consume(m),M):v(m)}function w(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),s=m,H):J(m)?(e.consume(m),w):C(m)}function H(m){return m===s?(e.consume(m),s=null,V):m===null||U(m)?t(m):(e.consume(m),H)}function C(m){return m===null||m===34||m===39||m===47||m===60||m===61||m===62||m===96||le(m)?M(m):(e.consume(m),C)}function V(m){return m===47||m===62||J(m)?v(m):t(m)}function b(m){return m===62?(e.consume(m),O):t(m)}function O(m){return m===null||U(m)?P(m):J(m)?(e.consume(m),O):t(m)}function P(m){return m===45&&i===2?(e.consume(m),W):m===60&&i===1?(e.consume(m),re):m===62&&i===4?(e.consume(m),fe):m===63&&i===3?(e.consume(m),d):m===93&&i===5?(e.consume(m),ie):U(m)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Rs,_e,X)(m)):m===null||U(m)?(e.exit("htmlFlowData"),X(m)):(e.consume(m),P)}function X(m){return e.check(Fs,R,_e)(m)}function R(m){return e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),L}function L(m){return m===null||U(m)?X(m):(e.enter("htmlFlowData"),P(m))}function W(m){return m===45?(e.consume(m),d):P(m)}function re(m){return m===47?(e.consume(m),o="",pe):P(m)}function pe(m){if(m===62){const me=o.toLowerCase();return Mi.includes(me)?(e.consume(m),fe):P(m)}return Le(m)&&o.length<8?(e.consume(m),o+=String.fromCharCode(m),pe):P(m)}function ie(m){return m===93?(e.consume(m),d):P(m)}function d(m){return m===62?(e.consume(m),fe):m===45&&i===2?(e.consume(m),d):P(m)}function fe(m){return m===null||U(m)?(e.exit("htmlFlowData"),_e(m)):(e.consume(m),fe)}function _e(m){return e.exit("htmlFlow"),n(m)}}function Us(e,n,t){const r=this;return i;function i(o){return U(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):t(o)}function l(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}function $s(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Ut,n,t)}}const Hs={name:"htmlText",tokenize:Vs};function Vs(e,n,t){const r=this;let i,l,o;return a;function a(d){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(d),s}function s(d){return d===33?(e.consume(d),u):d===47?(e.consume(d),M):d===63?(e.consume(d),v):Le(d)?(e.consume(d),C):t(d)}function u(d){return d===45?(e.consume(d),f):d===91?(e.consume(d),l=0,y):Le(d)?(e.consume(d),A):t(d)}function f(d){return d===45?(e.consume(d),p):t(d)}function c(d){return d===null?t(d):d===45?(e.consume(d),h):U(d)?(o=c,re(d)):(e.consume(d),c)}function h(d){return d===45?(e.consume(d),p):c(d)}function p(d){return d===62?W(d):d===45?h(d):c(d)}function y(d){const fe="CDATA[";return d===fe.charCodeAt(l++)?(e.consume(d),l===fe.length?S:y):t(d)}function S(d){return d===null?t(d):d===93?(e.consume(d),E):U(d)?(o=S,re(d)):(e.consume(d),S)}function E(d){return d===93?(e.consume(d),x):S(d)}function x(d){return d===62?W(d):d===93?(e.consume(d),x):S(d)}function A(d){return d===null||d===62?W(d):U(d)?(o=A,re(d)):(e.consume(d),A)}function v(d){return d===null?t(d):d===63?(e.consume(d),$):U(d)?(o=v,re(d)):(e.consume(d),v)}function $(d){return d===62?W(d):v(d)}function M(d){return Le(d)?(e.consume(d),w):t(d)}function w(d){return d===45||Ae(d)?(e.consume(d),w):H(d)}function H(d){return U(d)?(o=H,re(d)):J(d)?(e.consume(d),H):W(d)}function C(d){return d===45||Ae(d)?(e.consume(d),C):d===47||d===62||le(d)?V(d):t(d)}function V(d){return d===47?(e.consume(d),W):d===58||d===95||Le(d)?(e.consume(d),b):U(d)?(o=V,re(d)):J(d)?(e.consume(d),V):W(d)}function b(d){return d===45||d===46||d===58||d===95||Ae(d)?(e.consume(d),b):O(d)}function O(d){return d===61?(e.consume(d),P):U(d)?(o=O,re(d)):J(d)?(e.consume(d),O):V(d)}function P(d){return d===null||d===60||d===61||d===62||d===96?t(d):d===34||d===39?(e.consume(d),i=d,X):U(d)?(o=P,re(d)):J(d)?(e.consume(d),P):(e.consume(d),R)}function X(d){return d===i?(e.consume(d),i=void 0,L):d===null?t(d):U(d)?(o=X,re(d)):(e.consume(d),X)}function R(d){return d===null||d===34||d===39||d===60||d===61||d===96?t(d):d===47||d===62||le(d)?V(d):(e.consume(d),R)}function L(d){return d===47||d===62||le(d)?V(d):t(d)}function W(d){return d===62?(e.consume(d),e.exit("htmlTextData"),e.exit("htmlText"),n):t(d)}function re(d){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),pe}function pe(d){return J(d)?ne(e,ie,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d):ie(d)}function ie(d){return e.enter("htmlTextData"),o(d)}}const Zn={name:"labelEnd",resolveAll:Ys,resolveTo:Xs,tokenize:Ks},qs={tokenize:Qs},Ws={tokenize:Zs},Gs={tokenize:Js};function Ys(e){let n=-1;const t=[];for(;++n<e.length;){const r=e[n][1];if(t.push(e[n]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",n+=i}}return e.length!==t.length&&Re(e,0,e.length,t),e}function Xs(e,n){let t=e.length,r=0,i,l,o,a;for(;t--;)if(i=e[t][1],l){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[t][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[t][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(l=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=t);const s={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[l][1].start},end:{...e[o][1].end}},f={type:"labelText",start:{...e[l+r+2][1].end},end:{...e[o-2][1].start}};return a=[["enter",s,n],["enter",u,n]],a=Be(a,e.slice(l+1,l+r+3)),a=Be(a,[["enter",f,n]]),a=Be(a,sn(n.parser.constructs.insideSpan.null,e.slice(l+r+4,o-3),n)),a=Be(a,[["exit",f,n],e[o-2],e[o-1],["exit",u,n]]),a=Be(a,e.slice(o+1)),a=Be(a,[["exit",s,n]]),Re(e,l,e.length,a),e}function Ks(e,n,t){const r=this;let i=r.events.length,l,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){l=r.events[i][1];break}return a;function a(h){return l?l._inactive?c(h):(o=r.parser.defined.includes($e(r.sliceSerialize({start:l.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),s):t(h)}function s(h){return h===40?e.attempt(qs,f,o?f:c)(h):h===91?e.attempt(Ws,f,o?u:c)(h):o?f(h):c(h)}function u(h){return e.attempt(Gs,f,c)(h)}function f(h){return n(h)}function c(h){return l._balanced=!0,t(h)}}function Qs(e,n,t){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return le(c)?Ht(e,l)(c):l(c)}function l(c){return c===41?f(c):Oi(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function o(c){return le(c)?Ht(e,s)(c):f(c)}function a(c){return t(c)}function s(c){return c===34||c===39||c===40?Ni(e,u,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function u(c){return le(c)?Ht(e,f)(c):f(c)}function f(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),n):t(c)}}function Zs(e,n,t){const r=this;return i;function i(a){return zi.call(r,e,l,o,"reference","referenceMarker","referenceString")(a)}function l(a){return r.parser.defined.includes($e(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(a):t(a)}function o(a){return t(a)}}function Js(e,n,t){return r;function r(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),i}function i(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),n):t(l)}}const eu={name:"labelStartImage",resolveAll:Zn.resolveAll,tokenize:tu};function tu(e,n,t){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),l}function l(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),o):t(a)}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(a):n(a)}}const nu={name:"labelStartLink",resolveAll:Zn.resolveAll,tokenize:ru};function ru(e,n,t){const r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),l}function l(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(o):n(o)}}const Jn={name:"lineEnding",tokenize:iu};function iu(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),ne(e,n,"linePrefix")}}const un={name:"thematicBreak",tokenize:ou};function ou(e,n,t){let r=0,i;return l;function l(u){return e.enter("thematicBreak"),o(u)}function o(u){return i=u,a(u)}function a(u){return u===i?(e.enter("thematicBreakSequence"),s(u)):r>=3&&(u===null||U(u))?(e.exit("thematicBreak"),n(u)):t(u)}function s(u){return u===i?(e.consume(u),r++,s):(e.exit("thematicBreakSequence"),J(u)?ne(e,a,"whitespace")(u):a(u))}}const ze={continuation:{tokenize:uu},exit:fu,name:"list",tokenize:su},lu={partial:!0,tokenize:pu},au={partial:!0,tokenize:cu};function su(e,n,t){const r=this,i=r.events[r.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return a;function a(p){const y=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:Xn(p)){if(r.containerState.type||(r.containerState.type=y,e.enter(y,{_container:!0})),y==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(un,t,u)(p):u(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(p)}return t(p)}function s(p){return Xn(p)&&++o<10?(e.consume(p),s):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):t(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Ut,r.interrupt?t:f,e.attempt(lu,h,c))}function f(p){return r.containerState.initialBlankLine=!0,l++,h(p)}function c(p){return J(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),h):t(p)}function h(p){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(p)}}function uu(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(Ut,i,l);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ne(e,n,"listItemIndent",r.containerState.size+1)(a)}function l(a){return r.containerState.furtherBlankLines||!J(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(au,n,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,ne(e,e.attempt(ze,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function cu(e,n,t){const r=this;return ne(e,i,"listItemIndent",r.containerState.size+1);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?n(l):t(l)}}function fu(e){e.exit(this.containerState.type)}function pu(e,n,t){const r=this;return ne(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(l){const o=r.events[r.events.length-1];return!J(l)&&o&&o[1].type==="listItemPrefixWhitespace"?n(l):t(l)}}const Ri={name:"setextUnderline",resolveTo:hu,tokenize:du};function hu(e,n){let t=e.length,r,i,l;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(i=t)}else e[t][1].type==="content"&&e.splice(t,1),!l&&e[t][1].type==="definition"&&(l=t);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",l?(e.splice(i,0,["enter",o,n]),e.splice(l+1,0,["exit",e[r][1],n]),e[r][1].end={...e[l][1].end}):e[r][1]=o,e.push(["exit",o,n]),e}function du(e,n,t){const r=this;let i;return l;function l(u){let f=r.events.length,c;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){c=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),i=u,o(u)):t(u)}function o(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===i?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),J(u)?ne(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||U(u)?(e.exit("setextHeadingLine"),n(u)):t(u)}}const mu={tokenize:gu};function gu(e){const n=this,t=e.attempt(Ut,r,e.attempt(this.parser.constructs.flowInitial,i,ne(e,e.attempt(this.parser.constructs.flow,i,e.attempt(ws,i)),"linePrefix")));return t;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const bu={resolveAll:Bi()},yu=Fi("string"),xu=Fi("text");function Fi(e){return{resolveAll:Bi(e==="text"?ku:void 0),tokenize:n};function n(t){const r=this,i=this.parser.constructs[e],l=t.attempt(i,o,a);return o;function o(f){return u(f)?l(f):a(f)}function a(f){if(f===null){t.consume(f);return}return t.enter("data"),t.consume(f),s}function s(f){return u(f)?(t.exit("data"),l(f)):(t.consume(f),s)}function u(f){if(f===null)return!0;const c=i[f];let h=-1;if(c)for(;++h<c.length;){const p=c[h];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function Bi(e){return n;function n(t,r){let i=-1,l;for(;++i<=t.length;)l===void 0?t[i]&&t[i][1].type==="data"&&(l=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==l+2&&(t[l][1].end=t[i-1][1].end,t.splice(l+2,i-l-2),i=l+2),l=void 0);return e?e(t,r):t}}function ku(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){const r=e[t-1][1],i=n.sliceStream(r);let l=i.length,o=-1,a=0,s;for(;l--;){const u=i[l];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)a++,o--;if(o)break;o=-1}else if(u===-2)s=!0,a++;else if(u!==-1){l++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(a=0),a){const u={type:t===e.length||s||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?o:r.start._bufferIndex+o,_index:r.start._index+l,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(t,0,["enter",u,n],["exit",u,n]),t+=2)}t++}return e}const wu=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:Ts},disable:{null:[]},document:{42:ze,43:ze,45:ze,48:ze,49:ze,50:ze,51:ze,52:ze,53:ze,54:ze,55:ze,56:ze,57:ze,62:Ai},flow:{35:Ds,42:un,45:[Ri,un],60:Ms,61:Ri,95:un,96:Pi,126:Pi},flowInitial:{[-2]:Qn,[-1]:Qn,32:Qn},insideSpan:{null:[Kn,bu]},string:{38:Ii,92:_i},text:{[-5]:Jn,[-4]:Jn,[-3]:Jn,33:eu,38:Ii,42:Kn,60:[ns,Hs],91:nu,92:[Ls,_i],93:Zn,95:Kn,96:ms}},Symbol.toStringTag,{value:"Module"}));function Su(e,n,t){let r={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0};const i={},l=[];let o=[],a=[];const s={attempt:H(M),check:H(w),consume:A,enter:v,exit:$,interrupt:H(w,{interrupt:!0})},u={code:null,containerState:{},defineSkip:S,events:[],now:y,parser:e,previous:null,sliceSerialize:h,sliceStream:p,write:c};let f=n.tokenize.call(u,s);return n.resolveAll&&l.push(n),u;function c(O){return o=Be(o,O),E(),o[o.length-1]!==null?[]:(C(n,0),u.events=sn(l,u.events,u),u.events)}function h(O,P){return Cu(p(O),P)}function p(O){return Eu(o,O)}function y(){const{_bufferIndex:O,_index:P,line:X,column:R,offset:L}=r;return{_bufferIndex:O,_index:P,line:X,column:R,offset:L}}function S(O){i[O.line]=O.column,b()}function E(){let O;for(;r._index<o.length;){const P=o[r._index];if(typeof P=="string")for(O=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===O&&r._bufferIndex<P.length;)x(P.charCodeAt(r._bufferIndex));else x(P)}}function x(O){f=f(O)}function A(O){U(O)?(r.line++,r.column=1,r.offset+=O===-3?2:1,b()):O!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=O}function v(O,P){const X=P||{};return X.type=O,X.start=y(),u.events.push(["enter",X,u]),a.push(X),X}function $(O){const P=a.pop();return P.end=y(),u.events.push(["exit",P,u]),P}function M(O,P){C(O,P.from)}function w(O,P){P.restore()}function H(O,P){return X;function X(R,L,W){let re,pe,ie,d;return Array.isArray(R)?_e(R):"tokenize"in R?_e([R]):fe(R);function fe(te){return je;function je(Fe){const ae=Fe!==null&&te[Fe],Ue=Fe!==null&&te.null,He=[...Array.isArray(ae)?ae:ae?[ae]:[],...Array.isArray(Ue)?Ue:Ue?[Ue]:[]];return _e(He)(Fe)}}function _e(te){return re=te,pe=0,te.length===0?W:m(te[pe])}function m(te){return je;function je(Fe){return d=V(),ie=te,te.partial||(u.currentConstruct=te),te.name&&u.parser.constructs.disable.null.includes(te.name)?ue():te.tokenize.call(P?Object.assign(Object.create(u),P):u,s,me,ue)(Fe)}}function me(te){return O(ie,d),L}function ue(te){return d.restore(),++pe<re.length?m(re[pe]):W}}}function C(O,P){O.resolveAll&&!l.includes(O)&&l.push(O),O.resolve&&Re(u.events,P,u.events.length-P,O.resolve(u.events.slice(P),u)),O.resolveTo&&(u.events=O.resolveTo(u.events,u))}function V(){const O=y(),P=u.previous,X=u.currentConstruct,R=u.events.length,L=Array.from(a);return{from:R,restore:W};function W(){r=O,u.previous=P,u.currentConstruct=X,u.events.length=R,a=L,b()}}function b(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Eu(e,n){const t=n.start._index,r=n.start._bufferIndex,i=n.end._index,l=n.end._bufferIndex;let o;if(t===i)o=[e[t].slice(r,l)];else{if(o=e.slice(t,i),r>-1){const a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}l>0&&o.push(e[i].slice(0,l))}return o}function Cu(e,n){let t=-1;const r=[];let i;for(;++t<e.length;){const l=e[t];let o;if(typeof l=="string")o=l;else switch(l){case-5:{o="\r";break}case-4:{o=`
1
+ (function(it,N){typeof exports=="object"&&typeof module<"u"?N(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],N):(it=typeof globalThis<"u"?globalThis:it||self,N(it.NeoMd={},it.jsxRuntime,it.React))})(this,(function(it,N,te){"use strict";function ta(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const Ee=ta(te);function Sm(){}function Cm(){}function na(e,n){const t={};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const ra=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ia=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,oa={};function Jr(e,n){return(oa.jsx?ia:ra).test(e)}const la=/[ \t\n\f\r]/g;function aa(e){return typeof e=="object"?e.type==="text"?ei(e.value):!1:ei(e)}function ei(e){return e.replace(la,"")===""}class Bt{constructor(n,t,r){this.normal=t,this.property=n,r&&(this.space=r)}}Bt.prototype.normal={},Bt.prototype.property={},Bt.prototype.space=void 0;function ti(e,n){const t={},r={};for(const i of e)Object.assign(t,i.property),Object.assign(r,i.normal);return new Bt(t,r,n)}function Mn(e){return e.toLowerCase()}class Re{constructor(n,t){this.attribute=t,this.property=n}}Re.prototype.attribute="",Re.prototype.booleanish=!1,Re.prototype.boolean=!1,Re.prototype.commaOrSpaceSeparated=!1,Re.prototype.commaSeparated=!1,Re.prototype.defined=!1,Re.prototype.mustUseProperty=!1,Re.prototype.number=!1,Re.prototype.overloadedBoolean=!1,Re.prototype.property="",Re.prototype.spaceSeparated=!1,Re.prototype.space=void 0;let sa=0;const Q=mt(),ge=mt(),On=mt(),_=mt(),ce=mt(),vt=mt(),$e=mt();function mt(){return 2**++sa}const Rn=Object.freeze(Object.defineProperty({__proto__:null,boolean:Q,booleanish:ge,commaOrSpaceSeparated:$e,commaSeparated:vt,number:_,overloadedBoolean:On,spaceSeparated:ce},Symbol.toStringTag,{value:"Module"})),Fn=Object.keys(Rn);class Bn extends Re{constructor(n,t,r,i){let l=-1;if(super(n,t),ni(this,"space",i),typeof r=="number")for(;++l<Fn.length;){const o=Fn[l];ni(this,Fn[l],(r&Rn[o])===Rn[o])}}}Bn.prototype.defined=!0;function ni(e,n,t){t&&(e[n]=t)}function Et(e){const n={},t={};for(const[r,i]of Object.entries(e.properties)){const l=new Bn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),n[r]=l,t[Mn(r)]=r,t[Mn(l.attribute)]=r}return new Bt(n,t,e.space)}const ri=Et({properties:{ariaActiveDescendant:null,ariaAtomic:ge,ariaAutoComplete:null,ariaBusy:ge,ariaChecked:ge,ariaColCount:_,ariaColIndex:_,ariaColSpan:_,ariaControls:ce,ariaCurrent:null,ariaDescribedBy:ce,ariaDetails:null,ariaDisabled:ge,ariaDropEffect:ce,ariaErrorMessage:null,ariaExpanded:ge,ariaFlowTo:ce,ariaGrabbed:ge,ariaHasPopup:null,ariaHidden:ge,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ce,ariaLevel:_,ariaLive:null,ariaModal:ge,ariaMultiLine:ge,ariaMultiSelectable:ge,ariaOrientation:null,ariaOwns:ce,ariaPlaceholder:null,ariaPosInSet:_,ariaPressed:ge,ariaReadOnly:ge,ariaRelevant:null,ariaRequired:ge,ariaRoleDescription:ce,ariaRowCount:_,ariaRowIndex:_,ariaRowSpan:_,ariaSelected:ge,ariaSetSize:_,ariaSort:null,ariaValueMax:_,ariaValueMin:_,ariaValueNow:_,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function ii(e,n){return n in e?e[n]:n}function oi(e,n){return ii(e,n.toLowerCase())}const ua=Et({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:vt,acceptCharset:ce,accessKey:ce,action:null,allow:null,allowFullScreen:Q,allowPaymentRequest:Q,allowUserMedia:Q,alt:null,as:null,async:Q,autoCapitalize:null,autoComplete:ce,autoFocus:Q,autoPlay:Q,blocking:ce,capture:null,charSet:null,checked:Q,cite:null,className:ce,cols:_,colSpan:null,content:null,contentEditable:ge,controls:Q,controlsList:ce,coords:_|vt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Q,defer:Q,dir:null,dirName:null,disabled:Q,download:On,draggable:ge,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Q,formTarget:null,headers:ce,height:_,hidden:On,high:_,href:null,hrefLang:null,htmlFor:ce,httpEquiv:ce,id:null,imageSizes:null,imageSrcSet:null,inert:Q,inputMode:null,integrity:null,is:null,isMap:Q,itemId:null,itemProp:ce,itemRef:ce,itemScope:Q,itemType:ce,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Q,low:_,manifest:null,max:null,maxLength:_,media:null,method:null,min:null,minLength:_,multiple:Q,muted:Q,name:null,nonce:null,noModule:Q,noValidate:Q,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:Q,optimum:_,pattern:null,ping:ce,placeholder:null,playsInline:Q,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Q,referrerPolicy:null,rel:ce,required:Q,reversed:Q,rows:_,rowSpan:_,sandbox:ce,scope:null,scoped:Q,seamless:Q,selected:Q,shadowRootClonable:Q,shadowRootDelegatesFocus:Q,shadowRootMode:null,shape:null,size:_,sizes:null,slot:null,span:_,spellCheck:ge,src:null,srcDoc:null,srcLang:null,srcSet:null,start:_,step:null,style:null,tabIndex:_,target:null,title:null,translate:null,type:null,typeMustMatch:Q,useMap:null,value:ge,width:_,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ce,axis:null,background:null,bgColor:null,border:_,borderColor:null,bottomMargin:_,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Q,declare:Q,event:null,face:null,frame:null,frameBorder:null,hSpace:_,leftMargin:_,link:null,longDesc:null,lowSrc:null,marginHeight:_,marginWidth:_,noResize:Q,noHref:Q,noShade:Q,noWrap:Q,object:null,profile:null,prompt:null,rev:null,rightMargin:_,rules:null,scheme:null,scrolling:ge,standby:null,summary:null,text:null,topMargin:_,valueType:null,version:null,vAlign:null,vLink:null,vSpace:_,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Q,disableRemotePlayback:Q,prefix:null,property:null,results:_,security:null,unselectable:null},space:"html",transform:oi}),ca=Et({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:$e,accentHeight:_,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:_,amplitude:_,arabicForm:null,ascent:_,attributeName:null,attributeType:null,azimuth:_,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:_,by:null,calcMode:null,capHeight:_,className:ce,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:_,diffuseConstant:_,direction:null,display:null,dur:null,divisor:_,dominantBaseline:null,download:Q,dx:null,dy:null,edgeMode:null,editable:null,elevation:_,enableBackground:null,end:null,event:null,exponent:_,externalResourcesRequired:null,fill:null,fillOpacity:_,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:vt,g2:vt,glyphName:vt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:_,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:_,horizOriginX:_,horizOriginY:_,id:null,ideographic:_,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:_,k:_,k1:_,k2:_,k3:_,k4:_,kernelMatrix:$e,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:_,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:_,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:_,overlineThickness:_,paintOrder:null,panose1:null,path:null,pathLength:_,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ce,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:_,pointsAtY:_,pointsAtZ:_,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:$e,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:$e,rev:$e,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:$e,requiredFeatures:$e,requiredFonts:$e,requiredFormats:$e,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:_,specularExponent:_,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:_,strikethroughThickness:_,string:null,stroke:null,strokeDashArray:$e,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:_,strokeOpacity:_,strokeWidth:null,style:null,surfaceScale:_,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:$e,tabIndex:_,tableValues:null,target:null,targetX:_,targetY:_,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:$e,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:_,underlineThickness:_,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:_,values:null,vAlphabetic:_,vMathematical:_,vectorEffect:null,vHanging:_,vIdeographic:_,version:null,vertAdvY:_,vertOriginX:_,vertOriginY:_,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:_,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:ii}),li=Et({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),ai=Et({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:oi}),si=Et({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),fa={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"},pa=/[A-Z]/g,ui=/-[a-z]/g,ha=/^data[-\w.:]+$/i;function da(e,n){const t=Mn(n);let r=n,i=Re;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&ha.test(n)){if(n.charAt(4)==="-"){const l=n.slice(5).replace(ui,ga);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=n.slice(4);if(!ui.test(l)){let o=l.replace(pa,ma);o.charAt(0)!=="-"&&(o="-"+o),n="data"+o}}i=Bn}return new i(r,n)}function ma(e){return"-"+e.toLowerCase()}function ga(e){return e.charAt(1).toUpperCase()}const ba=ti([ri,ua,li,ai,si],"html"),$n=ti([ri,ca,li,ai,si],"svg");function ya(e){return e.join(" ").trim()}function jn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Tt={},Hn,ci;function ka(){if(ci)return Hn;ci=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,t=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,a=/^\s+|\s+$/g,s=`
2
+ `,u="/",f="*",c="",h="comment",p="declaration";function b(k,x){if(typeof k!="string")throw new TypeError("First argument must be a string");if(!k)return[];x=x||{};var T=1,v=1;function H(z){var L=z.match(n);L&&(T+=L.length);var q=z.lastIndexOf(s);v=~q?z.length-q:v+z.length}function R(){var z={line:T,column:v};return function(L){return L.position=new S(z),V(),L}}function S(z){this.start=z,this.end={line:T,column:v},this.source=x.source}S.prototype.content=k;function W(z){var L=new Error(x.source+":"+T+":"+v+": "+z);if(L.reason=z,L.filename=x.source,L.line=T,L.column=v,L.source=k,!x.silent)throw L}function E(z){var L=z.exec(k);if(L){var q=L[0];return H(q),k=k.slice(q.length),L}}function V(){E(t)}function y(z){var L;for(z=z||[];L=D();)L!==!1&&z.push(L);return z}function D(){var z=R();if(!(u!=k.charAt(0)||f!=k.charAt(1))){for(var L=2;c!=k.charAt(L)&&(f!=k.charAt(L)||u!=k.charAt(L+1));)++L;if(L+=2,c===k.charAt(L-1))return W("End of comment missing");var q=k.slice(2,L-2);return v+=2,H(q),k=k.slice(L),v+=2,z({type:h,comment:q})}}function P(){var z=R(),L=E(r);if(L){if(D(),!E(i))return W("property missing ':'");var q=E(l),ie=z({type:p,property:C(L[0].replace(e,c)),value:q?C(q[0].replace(e,c)):c});return E(o),ie}}function Y(){var z=[];y(z);for(var L;L=P();)L!==!1&&(z.push(L),y(z));return z}return V(),Y()}function C(k){return k?k.replace(a,c):c}return Hn=b,Hn}var fi;function xa(){if(fi)return Tt;fi=1;var e=Tt&&Tt.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Tt,"__esModule",{value:!0}),Tt.default=t;const n=e(ka());function t(r,i){let l=null;if(!r||typeof r!="string")return l;const o=(0,n.default)(r),a=typeof i=="function";return o.forEach(s=>{if(s.type!=="declaration")return;const{property:u,value:f}=s;a?i(u,f,s):f&&(l=l||{},l[u]=f)}),l}return Tt}var $t={},pi;function wa(){if(pi)return $t;pi=1,Object.defineProperty($t,"__esModule",{value:!0}),$t.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,t=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,l=function(u){return!u||t.test(u)||e.test(u)},o=function(u,f){return f.toUpperCase()},a=function(u,f){return"".concat(f,"-")},s=function(u,f){return f===void 0&&(f={}),l(u)?u:(u=u.toLowerCase(),f.reactCompat?u=u.replace(i,a):u=u.replace(r,a),u.replace(n,o))};return $t.camelCase=s,$t}var jt,hi;function Sa(){if(hi)return jt;hi=1;var e=jt&&jt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},n=e(xa()),t=wa();function r(i,l){var o={};return!i||typeof i!="string"||(0,n.default)(i,function(a,s){a&&s&&(o[(0,t.camelCase)(a,l)]=s)}),o}return r.default=r,jt=r,jt}var Ca=Sa();const va=jn(Ca),di=mi("end"),Un=mi("start");function mi(e){return n;function n(t){const r=t&&t.position&&t.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Ea(e){const n=Un(e),t=di(e);if(n&&t)return{start:n,end:t}}function Ht(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?gi(e.position):"start"in e||"end"in e?gi(e):"line"in e||"column"in e?Vn(e):""}function Vn(e){return bi(e&&e.line)+":"+bi(e&&e.column)}function gi(e){return Vn(e&&e.start)+"-"+Vn(e&&e.end)}function bi(e){return e&&typeof e=="number"?e:1}class Le extends Error{constructor(n,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",l={},o=!1;if(t&&("line"in t&&"column"in t?l={place:t}:"start"in t&&"end"in t?l={place:t}:"type"in t?l={ancestors:[t],place:t.position}:l={...t}),typeof n=="string"?i=n:!l.cause&&n&&(o=!0,i=n.message,l.cause=n),!l.ruleId&&!l.source&&typeof r=="string"){const s=r.indexOf(":");s===-1?l.ruleId=r:(l.source=r.slice(0,s),l.ruleId=r.slice(s+1))}if(!l.place&&l.ancestors&&l.ancestors){const s=l.ancestors[l.ancestors.length-1];s&&(l.place=s.position)}const a=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=Ht(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=o&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Le.prototype.file="",Le.prototype.name="",Le.prototype.reason="",Le.prototype.message="",Le.prototype.stack="",Le.prototype.column=void 0,Le.prototype.line=void 0,Le.prototype.ancestors=void 0,Le.prototype.cause=void 0,Le.prototype.fatal=void 0,Le.prototype.place=void 0,Le.prototype.ruleId=void 0,Le.prototype.source=void 0;const qn={}.hasOwnProperty,Ta=new Map,Aa=/[A-Z]/g,_a=new Set(["table","tbody","thead","tfoot","tr"]),Ia=new Set(["td","th"]),yi="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function La(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const t=n.filePath||void 0;let r;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Fa(t,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Ra(t,n.jsx,n.jsxs)}const i={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:r,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:t,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?$n:ba,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},l=ki(i,e,void 0);return l&&typeof l!="string"?l:i.create(e,i.Fragment,{children:l||void 0},void 0)}function ki(e,n,t){if(n.type==="element")return Pa(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return Na(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return za(e,n,t);if(n.type==="mdxjsEsm")return Da(e,n);if(n.type==="root")return Ma(e,n,t);if(n.type==="text")return Oa(e,n)}function Pa(e,n,t){const r=e.schema;let i=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=$n,e.schema=i),e.ancestors.push(n);const l=wi(e,n.tagName,!1),o=Ba(e,n);let a=Gn(e,n);return _a.has(n.tagName)&&(a=a.filter(function(s){return typeof s=="string"?!aa(s):!0})),xi(e,o,l,n),Wn(o,a),e.ancestors.pop(),e.schema=r,e.create(n,l,o,t)}function Na(e,n){if(n.data&&n.data.estree&&e.evaluater){const r=n.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Ut(e,n.position)}function Da(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);Ut(e,n.position)}function za(e,n,t){const r=e.schema;let i=r;n.name==="svg"&&r.space==="html"&&(i=$n,e.schema=i),e.ancestors.push(n);const l=n.name===null?e.Fragment:wi(e,n.name,!0),o=$a(e,n),a=Gn(e,n);return xi(e,o,l,n),Wn(o,a),e.ancestors.pop(),e.schema=r,e.create(n,l,o,t)}function Ma(e,n,t){const r={};return Wn(r,Gn(e,n)),e.create(n,e.Fragment,r,t)}function Oa(e,n){return n.value}function xi(e,n,t,r){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=r)}function Wn(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function Ra(e,n,t){return r;function r(i,l,o,a){const u=Array.isArray(o.children)?t:n;return a?u(l,o,a):u(l,o)}}function Fa(e,n){return t;function t(r,i,l,o){const a=Array.isArray(l.children),s=Un(r);return n(i,l,o,a,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function Ba(e,n){const t={};let r,i;for(i in n.properties)if(i!=="children"&&qn.call(n.properties,i)){const l=ja(e,i,n.properties[i]);if(l){const[o,a]=l;e.tableCellAlignToStyle&&o==="align"&&typeof a=="string"&&Ia.has(n.tagName)?r=a:t[o]=a}}if(r){const l=t.style||(t.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function $a(e,n){const t={};for(const r of n.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const l=r.data.estree.body[0];l.type;const o=l.expression;o.type;const a=o.properties[0];a.type,Object.assign(t,e.evaluater.evaluateExpression(a.argument))}else Ut(e,n.position);else{const i=r.name;let l;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];a.type,l=e.evaluater.evaluateExpression(a.expression)}else Ut(e,n.position);else l=r.value===null?!0:r.value;t[i]=l}return t}function Gn(e,n){const t=[];let r=-1;const i=e.passKeys?new Map:Ta;for(;++r<n.children.length;){const l=n.children[r];let o;if(e.passKeys){const s=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(s){const u=i.get(s)||0;o=s+"-"+u,i.set(s,u+1)}}const a=ki(e,l,o);a!==void 0&&t.push(a)}return t}function ja(e,n,t){const r=da(e.schema,n);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=r.commaSeparated?na(t):ya(t)),r.property==="style"){let i=typeof t=="object"?t:Ha(e,String(t));return e.stylePropertyNameCase==="css"&&(i=Ua(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?fa[r.property]||r.property:r.attribute,t]}}function Ha(e,n){try{return va(n,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const r=t,i=new Le("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=yi+"#cannot-parse-style-attribute",i}}function wi(e,n,t){let r;if(!t)r={type:"Literal",value:n};else if(n.includes(".")){const i=n.split(".");let l=-1,o;for(;++l<i.length;){const a=Jr(i[l])?{type:"Identifier",name:i[l]}:{type:"Literal",value:i[l]};o=o?{type:"MemberExpression",object:o,property:a,computed:!!(l&&a.type==="Literal"),optional:!1}:a}r=o}else r=Jr(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(r.type==="Literal"){const i=r.value;return qn.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Ut(e)}function Ut(e,n){const t=new Le("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=yi+"#cannot-handle-mdx-estrees-without-createevaluater",t}function Ua(e){const n={};let t;for(t in e)qn.call(e,t)&&(n[Va(t)]=e[t]);return n}function Va(e){let n=e.replace(Aa,qa);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function qa(e){return"-"+e.toLowerCase()}const Yn={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"]},Wa={};function Xn(e,n){const t=Wa,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return Si(e,r,i)}function Si(e,n,t){if(Ga(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Ci(e.children,n,t)}return Array.isArray(e)?Ci(e,n,t):""}function Ci(e,n,t){const r=[];let i=-1;for(;++i<e.length;)r[i]=Si(e[i],n,t);return r.join("")}function Ga(e){return!!(e&&typeof e=="object")}const vi=document.createElement("i");function Qn(e){const n="&"+e+";";vi.innerHTML=n;const t=vi.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function je(e,n,t,r){const i=e.length;let l=0,o;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)o=Array.from(r),o.unshift(n,t),e.splice(...o);else for(t&&e.splice(n,t);l<r.length;)o=r.slice(l,l+1e4),o.unshift(n,0),e.splice(...o),l+=1e4,n+=1e4}function He(e,n){return e.length>0?(je(e,e.length,0,n),e):n}const Ei={}.hasOwnProperty;function Ti(e){const n={};let t=-1;for(;++t<e.length;)Ya(n,e[t]);return n}function Ya(e,n){let t;for(t in n){const i=(Ei.call(e,t)?e[t]:void 0)||(e[t]={}),l=n[t];let o;if(l)for(o in l){Ei.call(i,o)||(i[o]=[]);const a=l[o];Xa(i[o],Array.isArray(a)?a:a?[a]:[])}}}function Xa(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);je(e,0,0,r)}function Ai(e,n){const t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function Ue(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ze=ot(/[A-Za-z]/),Pe=ot(/[\dA-Za-z]/),Qa=ot(/[#-'*+\--9=?A-Z^-~]/);function an(e){return e!==null&&(e<32||e===127)}const Kn=ot(/\d/),Ka=ot(/[\dA-Fa-f]/),Za=ot(/[!-/:-@[-`{-~]/);function U(e){return e!==null&&e<-2}function se(e){return e!==null&&(e<0||e===32)}function ee(e){return e===-2||e===-1||e===32}const sn=ot(new RegExp("\\p{P}|\\p{S}","u")),gt=ot(/\s/);function ot(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function At(e){const n=[];let t=-1,r=0,i=0;for(;++t<e.length;){const l=e.charCodeAt(t);let o="";if(l===37&&Pe(e.charCodeAt(t+1))&&Pe(e.charCodeAt(t+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(o=String.fromCharCode(l));else if(l>55295&&l<57344){const a=e.charCodeAt(t+1);l<56320&&a>56319&&a<57344?(o=String.fromCharCode(l,a),i=1):o="�"}else o=String.fromCharCode(l);o&&(n.push(e.slice(r,t),encodeURIComponent(o)),r=t+i+1,o=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}function re(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(s){return ee(s)?(e.enter(t),a(s)):n(s)}function a(s){return ee(s)&&l++<i?(e.consume(s),a):(e.exit(t),n(s))}}const Ja={tokenize:es};function es(e){const n=e.attempt(this.parser.constructs.contentInitial,r,i);let t;return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),re(e,n,"linePrefix")}function i(a){return e.enter("paragraph"),l(a)}function l(a){const s=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=s),t=s,o(a)}function o(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return U(a)?(e.consume(a),e.exit("chunkText"),l):(e.consume(a),o)}}const ts={tokenize:ns},_i={tokenize:rs};function ns(e){const n=this,t=[];let r=0,i,l,o;return a;function a(v){if(r<t.length){const H=t[r];return n.containerState=H[1],e.attempt(H[0].continuation,s,u)(v)}return u(v)}function s(v){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&T();const H=n.events.length;let R=H,S;for(;R--;)if(n.events[R][0]==="exit"&&n.events[R][1].type==="chunkFlow"){S=n.events[R][1].end;break}x(r);let W=H;for(;W<n.events.length;)n.events[W][1].end={...S},W++;return je(n.events,R+1,0,n.events.slice(H)),n.events.length=W,u(v)}return a(v)}function u(v){if(r===t.length){if(!i)return h(v);if(i.currentConstruct&&i.currentConstruct.concrete)return b(v);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(_i,f,c)(v)}function f(v){return i&&T(),x(r),h(v)}function c(v){return n.parser.lazy[n.now().line]=r!==t.length,o=n.now().offset,b(v)}function h(v){return n.containerState={},e.attempt(_i,p,b)(v)}function p(v){return r++,t.push([n.currentConstruct,n.containerState]),h(v)}function b(v){if(v===null){i&&T(),x(0),e.consume(v);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:l}),C(v)}function C(v){if(v===null){k(e.exit("chunkFlow"),!0),x(0),e.consume(v);return}return U(v)?(e.consume(v),k(e.exit("chunkFlow")),r=0,n.interrupt=void 0,a):(e.consume(v),C)}function k(v,H){const R=n.sliceStream(v);if(H&&R.push(null),v.previous=l,l&&(l.next=v),l=v,i.defineSkip(v.start),i.write(R),n.parser.lazy[v.start.line]){let S=i.events.length;for(;S--;)if(i.events[S][1].start.offset<o&&(!i.events[S][1].end||i.events[S][1].end.offset>o))return;const W=n.events.length;let E=W,V,y;for(;E--;)if(n.events[E][0]==="exit"&&n.events[E][1].type==="chunkFlow"){if(V){y=n.events[E][1].end;break}V=!0}for(x(r),S=W;S<n.events.length;)n.events[S][1].end={...y},S++;je(n.events,E+1,0,n.events.slice(W)),n.events.length=S}}function x(v){let H=t.length;for(;H-- >v;){const R=t[H];n.containerState=R[1],R[0].exit.call(n,e)}t.length=v}function T(){i.write([null]),l=void 0,i=void 0,n.containerState._closeFlow=void 0}}function rs(e,n,t){return re(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function _t(e){if(e===null||se(e)||gt(e))return 1;if(sn(e))return 2}function un(e,n,t){const r=[];let i=-1;for(;++i<e.length;){const l=e[i].resolveAll;l&&!r.includes(l)&&(n=l(n,t),r.push(l))}return n}const Zn={name:"attention",resolveAll:is,tokenize:os};function is(e,n){let t=-1,r,i,l,o,a,s,u,f;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const c={...e[r][1].end},h={...e[t][1].start};Ii(c,-s),Ii(h,s),o={type:s>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},a={type:s>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:h},l={type:s>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[t][1].start}},i={type:s>1?"strong":"emphasis",start:{...o.start},end:{...a.end}},e[r][1].end={...o.start},e[t][1].start={...a.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=He(u,[["enter",e[r][1],n],["exit",e[r][1],n]])),u=He(u,[["enter",i,n],["enter",o,n],["exit",o,n],["enter",l,n]]),u=He(u,un(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),u=He(u,[["exit",l,n],["enter",a,n],["exit",a,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(f=2,u=He(u,[["enter",e[t][1],n],["exit",e[t][1],n]])):f=0,je(e,r-1,t-r+3,u),t=r+u.length-f-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function os(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=_t(r);let l;return o;function o(s){return l=s,e.enter("attentionSequence"),a(s)}function a(s){if(s===l)return e.consume(s),a;const u=e.exit("attentionSequence"),f=_t(s),c=!f||f===2&&i||t.includes(s),h=!i||i===2&&f||t.includes(r);return u._open=!!(l===42?c:c&&(i||!h)),u._close=!!(l===42?h:h&&(f||!c)),n(s)}}function Ii(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const ls={name:"autolink",tokenize:as};function as(e,n,t){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(p){return ze(p)?(e.consume(p),o):p===64?t(p):u(p)}function o(p){return p===43||p===45||p===46||Pe(p)?(r=1,a(p)):u(p)}function a(p){return p===58?(e.consume(p),r=0,s):(p===43||p===45||p===46||Pe(p))&&r++<32?(e.consume(p),a):(r=0,u(p))}function s(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),n):p===null||p===32||p===60||an(p)?t(p):(e.consume(p),s)}function u(p){return p===64?(e.consume(p),f):Qa(p)?(e.consume(p),u):t(p)}function f(p){return Pe(p)?c(p):t(p)}function c(p){return p===46?(e.consume(p),r=0,f):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),n):h(p)}function h(p){if((p===45||Pe(p))&&r++<63){const b=p===45?h:c;return e.consume(p),b}return t(p)}}const Vt={partial:!0,tokenize:ss};function ss(e,n,t){return r;function r(l){return ee(l)?re(e,i,"linePrefix")(l):i(l)}function i(l){return l===null||U(l)?n(l):t(l)}}const Li={continuation:{tokenize:cs},exit:fs,name:"blockQuote",tokenize:us};function us(e,n,t){const r=this;return i;function i(o){if(o===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),l}return t(o)}function l(o){return ee(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(o))}}function cs(e,n,t){const r=this;return i;function i(o){return ee(o)?re(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):l(o)}function l(o){return e.attempt(Li,n,t)(o)}}function fs(e){e.exit("blockQuote")}const Pi={name:"characterEscape",tokenize:ps};function ps(e,n,t){return r;function r(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),i}function i(l){return Za(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(l)}}const Ni={name:"characterReference",tokenize:hs};function hs(e,n,t){const r=this;let i=0,l,o;return a;function a(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),s}function s(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),l=31,o=Pe,f(c))}function u(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,o=Ka,f):(e.enter("characterReferenceValue"),l=7,o=Kn,f(c))}function f(c){if(c===59&&i){const h=e.exit("characterReferenceValue");return o===Pe&&!Qn(r.sliceSerialize(h))?t(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return o(c)&&i++<l?(e.consume(c),f):t(c)}}const Di={partial:!0,tokenize:ms},zi={concrete:!0,name:"codeFenced",tokenize:ds};function ds(e,n,t){const r=this,i={partial:!0,tokenize:R};let l=0,o=0,a;return s;function s(S){return u(S)}function u(S){const W=r.events[r.events.length-1];return l=W&&W[1].type==="linePrefix"?W[2].sliceSerialize(W[1],!0).length:0,a=S,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(S)}function f(S){return S===a?(o++,e.consume(S),f):o<3?t(S):(e.exit("codeFencedFenceSequence"),ee(S)?re(e,c,"whitespace")(S):c(S))}function c(S){return S===null||U(S)?(e.exit("codeFencedFence"),r.interrupt?n(S):e.check(Di,C,H)(S)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(S))}function h(S){return S===null||U(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(S)):ee(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),re(e,p,"whitespace")(S)):S===96&&S===a?t(S):(e.consume(S),h)}function p(S){return S===null||U(S)?c(S):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(S))}function b(S){return S===null||U(S)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(S)):S===96&&S===a?t(S):(e.consume(S),b)}function C(S){return e.attempt(i,H,k)(S)}function k(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),x}function x(S){return l>0&&ee(S)?re(e,T,"linePrefix",l+1)(S):T(S)}function T(S){return S===null||U(S)?e.check(Di,C,H)(S):(e.enter("codeFlowValue"),v(S))}function v(S){return S===null||U(S)?(e.exit("codeFlowValue"),T(S)):(e.consume(S),v)}function H(S){return e.exit("codeFenced"),n(S)}function R(S,W,E){let V=0;return y;function y(L){return S.enter("lineEnding"),S.consume(L),S.exit("lineEnding"),D}function D(L){return S.enter("codeFencedFence"),ee(L)?re(S,P,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):P(L)}function P(L){return L===a?(S.enter("codeFencedFenceSequence"),Y(L)):E(L)}function Y(L){return L===a?(V++,S.consume(L),Y):V>=o?(S.exit("codeFencedFenceSequence"),ee(L)?re(S,z,"whitespace")(L):z(L)):E(L)}function z(L){return L===null||U(L)?(S.exit("codeFencedFence"),W(L)):E(L)}}}function ms(e,n,t){const r=this;return i;function i(o){return o===null?t(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l)}function l(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}const Jn={name:"codeIndented",tokenize:bs},gs={partial:!0,tokenize:ys};function bs(e,n,t){const r=this;return i;function i(u){return e.enter("codeIndented"),re(e,l,"linePrefix",5)(u)}function l(u){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?o(u):t(u)}function o(u){return u===null?s(u):U(u)?e.attempt(gs,o,s)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||U(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),a)}function s(u){return e.exit("codeIndented"),n(u)}}function ys(e,n,t){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?t(o):U(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):re(e,l,"linePrefix",5)(o)}function l(o){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(o):U(o)?i(o):t(o)}}const ks={name:"codeText",previous:ws,resolve:xs,tokenize:Ss};function xs(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)i===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(i=r):(r===n||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),n-=r-i-2,r=i+2),i=void 0);return e}function ws(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Ss(e,n,t){let r=0,i,l;return o;function o(c){return e.enter("codeText"),e.enter("codeTextSequence"),a(c)}function a(c){return c===96?(e.consume(c),r++,a):(e.exit("codeTextSequence"),s(c))}function s(c){return c===null?t(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),s):c===96?(l=e.enter("codeTextSequence"),i=0,f(c)):U(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):(e.enter("codeTextData"),u(c))}function u(c){return c===null||c===32||c===96||U(c)?(e.exit("codeTextData"),s(c)):(e.consume(c),u)}function f(c){return c===96?(e.consume(c),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(c)):(l.type="codeTextData",u(c))}}class Cs{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,t){const r=t??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){const i=t||0;this.setCursor(Math.trunc(n));const l=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&qt(this.left,r),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),qt(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),qt(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const t=this.left.splice(n,Number.POSITIVE_INFINITY);qt(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);qt(this.left,t.reverse())}}}function qt(e,n){let t=0;if(n.length<1e4)e.push(...n);else for(;t<n.length;)e.push(...n.slice(t,t+1e4)),t+=1e4}function Mi(e){const n={};let t=-1,r,i,l,o,a,s,u;const f=new Cs(e);for(;++t<f.length;){for(;t in n;)t=n[t];if(r=f.get(t),t&&r[1].type==="chunkFlow"&&f.get(t-1)[1].type==="listItemPrefix"&&(s=r[1]._tokenizer.events,l=0,l<s.length&&s[l][1].type==="lineEndingBlank"&&(l+=2),l<s.length&&s[l][1].type==="content"))for(;++l<s.length&&s[l][1].type!=="content";)s[l][1].type==="chunkText"&&(s[l][1]._isInFirstContentOfListItem=!0,l++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,vs(f,t)),t=n[t],u=!0);else if(r[1]._container){for(l=t,i=void 0;l--;)if(o=f.get(l),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=l);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(r[1].end={...f.get(i)[1].start},a=f.slice(i,t),a.unshift(r),f.splice(i,t-i+1,a))}}return je(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!u}function vs(e,n){const t=e.get(n)[1],r=e.get(n)[2];let i=n-1;const l=[];let o=t._tokenizer;o||(o=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const a=o.events,s=[],u={};let f,c,h=-1,p=t,b=0,C=0;const k=[C];for(;p;){for(;e.get(++i)[1]!==p;);l.push(i),p._tokenizer||(f=r.sliceStream(p),p.next||f.push(null),c&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(f),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),c=p,p=p.next}for(p=t;++h<a.length;)a[h][0]==="exit"&&a[h-1][0]==="enter"&&a[h][1].type===a[h-1][1].type&&a[h][1].start.line!==a[h][1].end.line&&(C=h+1,k.push(C),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):k.pop(),h=k.length;h--;){const x=a.slice(k[h],k[h+1]),T=l.pop();s.push([T,T+x.length-1]),e.splice(T,2,x)}for(s.reverse(),h=-1;++h<s.length;)u[b+s[h][0]]=b+s[h][1],b+=s[h][1]-s[h][0]-1;return u}const Es={resolve:As,tokenize:_s},Ts={partial:!0,tokenize:Is};function As(e){return Mi(e),e}function _s(e,n){let t;return r;function r(a){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?l(a):U(a)?e.check(Ts,o,l)(a):(e.consume(a),i)}function l(a){return e.exit("chunkContent"),e.exit("content"),n(a)}function o(a){return e.consume(a),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function Is(e,n,t){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),re(e,l,"linePrefix")}function l(o){if(o===null||U(o))return t(o);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(o):e.interrupt(r.parser.constructs.flow,t,n)(o)}}function Oi(e,n,t,r,i,l,o,a,s){const u=s||Number.POSITIVE_INFINITY;let f=0;return c;function c(x){return x===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(x),e.exit(l),h):x===null||x===32||x===41||an(x)?t(x):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),C(x))}function h(x){return x===62?(e.enter(l),e.consume(x),e.exit(l),e.exit(i),e.exit(r),n):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(x))}function p(x){return x===62?(e.exit("chunkString"),e.exit(a),h(x)):x===null||x===60||U(x)?t(x):(e.consume(x),x===92?b:p)}function b(x){return x===60||x===62||x===92?(e.consume(x),p):p(x)}function C(x){return!f&&(x===null||x===41||se(x))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),n(x)):f<u&&x===40?(e.consume(x),f++,C):x===41?(e.consume(x),f--,C):x===null||x===32||x===40||an(x)?t(x):(e.consume(x),x===92?k:C)}function k(x){return x===40||x===41||x===92?(e.consume(x),C):C(x)}}function Ri(e,n,t,r,i,l){const o=this;let a=0,s;return u;function u(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(l),f}function f(p){return a>999||p===null||p===91||p===93&&!s||p===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?t(p):p===93?(e.exit(l),e.enter(i),e.consume(p),e.exit(i),e.exit(r),n):U(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===null||p===91||p===93||U(p)||a++>999?(e.exit("chunkString"),f(p)):(e.consume(p),s||(s=!ee(p)),p===92?h:c)}function h(p){return p===91||p===92||p===93?(e.consume(p),a++,c):c(p)}}function Fi(e,n,t,r,i,l){let o;return a;function a(h){return h===34||h===39||h===40?(e.enter(r),e.enter(i),e.consume(h),e.exit(i),o=h===40?41:h,s):t(h)}function s(h){return h===o?(e.enter(i),e.consume(h),e.exit(i),e.exit(r),n):(e.enter(l),u(h))}function u(h){return h===o?(e.exit(l),s(o)):h===null?t(h):U(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),re(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===o||h===null||U(h)?(e.exit("chunkString"),u(h)):(e.consume(h),h===92?c:f)}function c(h){return h===o||h===92?(e.consume(h),f):f(h)}}function Wt(e,n){let t;return r;function r(i){return U(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):ee(i)?re(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const Ls={name:"definition",tokenize:Ns},Ps={partial:!0,tokenize:Ds};function Ns(e,n,t){const r=this;let i;return l;function l(p){return e.enter("definition"),o(p)}function o(p){return Ri.call(r,e,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return i=Ue(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),s):t(p)}function s(p){return se(p)?Wt(e,u)(p):u(p)}function u(p){return Oi(e,f,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function f(p){return e.attempt(Ps,c,c)(p)}function c(p){return ee(p)?re(e,h,"whitespace")(p):h(p)}function h(p){return p===null||U(p)?(e.exit("definition"),r.parser.defined.push(i),n(p)):t(p)}}function Ds(e,n,t){return r;function r(a){return se(a)?Wt(e,i)(a):t(a)}function i(a){return Fi(e,l,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function l(a){return ee(a)?re(e,o,"whitespace")(a):o(a)}function o(a){return a===null||U(a)?n(a):t(a)}}const zs={name:"hardBreakEscape",tokenize:Ms};function Ms(e,n,t){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return U(l)?(e.exit("hardBreakEscape"),n(l)):t(l)}}const Os={name:"headingAtx",resolve:Rs,tokenize:Fs};function Rs(e,n){let t=e.length-2,r=3,i,l;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},l={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},je(e,r,t-r+1,[["enter",i,n],["enter",l,n],["exit",l,n],["exit",i,n]])),e}function Fs(e,n,t){let r=0;return i;function i(f){return e.enter("atxHeading"),l(f)}function l(f){return e.enter("atxHeadingSequence"),o(f)}function o(f){return f===35&&r++<6?(e.consume(f),o):f===null||se(f)?(e.exit("atxHeadingSequence"),a(f)):t(f)}function a(f){return f===35?(e.enter("atxHeadingSequence"),s(f)):f===null||U(f)?(e.exit("atxHeading"),n(f)):ee(f)?re(e,a,"whitespace")(f):(e.enter("atxHeadingText"),u(f))}function s(f){return f===35?(e.consume(f),s):(e.exit("atxHeadingSequence"),a(f))}function u(f){return f===null||f===35||se(f)?(e.exit("atxHeadingText"),a(f)):(e.consume(f),u)}}const Bs=["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"],Bi=["pre","script","style","textarea"],$s={concrete:!0,name:"htmlFlow",resolveTo:Us,tokenize:Vs},js={partial:!0,tokenize:Ws},Hs={partial:!0,tokenize:qs};function Us(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function Vs(e,n,t){const r=this;let i,l,o,a,s;return u;function u(m){return f(m)}function f(m){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(m),c}function c(m){return m===33?(e.consume(m),h):m===47?(e.consume(m),l=!0,C):m===63?(e.consume(m),i=3,r.interrupt?n:d):ze(m)?(e.consume(m),o=String.fromCharCode(m),k):t(m)}function h(m){return m===45?(e.consume(m),i=2,p):m===91?(e.consume(m),i=5,a=0,b):ze(m)?(e.consume(m),i=4,r.interrupt?n:d):t(m)}function p(m){return m===45?(e.consume(m),r.interrupt?n:d):t(m)}function b(m){const he="CDATA[";return m===he.charCodeAt(a++)?(e.consume(m),a===he.length?r.interrupt?n:P:b):t(m)}function C(m){return ze(m)?(e.consume(m),o=String.fromCharCode(m),k):t(m)}function k(m){if(m===null||m===47||m===62||se(m)){const he=m===47,ue=o.toLowerCase();return!he&&!l&&Bi.includes(ue)?(i=1,r.interrupt?n(m):P(m)):Bs.includes(o.toLowerCase())?(i=6,he?(e.consume(m),x):r.interrupt?n(m):P(m)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(m):l?T(m):v(m))}return m===45||Pe(m)?(e.consume(m),o+=String.fromCharCode(m),k):t(m)}function x(m){return m===62?(e.consume(m),r.interrupt?n:P):t(m)}function T(m){return ee(m)?(e.consume(m),T):y(m)}function v(m){return m===47?(e.consume(m),y):m===58||m===95||ze(m)?(e.consume(m),H):ee(m)?(e.consume(m),v):y(m)}function H(m){return m===45||m===46||m===58||m===95||Pe(m)?(e.consume(m),H):R(m)}function R(m){return m===61?(e.consume(m),S):ee(m)?(e.consume(m),R):v(m)}function S(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),s=m,W):ee(m)?(e.consume(m),S):E(m)}function W(m){return m===s?(e.consume(m),s=null,V):m===null||U(m)?t(m):(e.consume(m),W)}function E(m){return m===null||m===34||m===39||m===47||m===60||m===61||m===62||m===96||se(m)?R(m):(e.consume(m),E)}function V(m){return m===47||m===62||ee(m)?v(m):t(m)}function y(m){return m===62?(e.consume(m),D):t(m)}function D(m){return m===null||U(m)?P(m):ee(m)?(e.consume(m),D):t(m)}function P(m){return m===45&&i===2?(e.consume(m),q):m===60&&i===1?(e.consume(m),ie):m===62&&i===4?(e.consume(m),xe):m===63&&i===3?(e.consume(m),d):m===93&&i===5?(e.consume(m),Te):U(m)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(js,Ce,Y)(m)):m===null||U(m)?(e.exit("htmlFlowData"),Y(m)):(e.consume(m),P)}function Y(m){return e.check(Hs,z,Ce)(m)}function z(m){return e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),L}function L(m){return m===null||U(m)?Y(m):(e.enter("htmlFlowData"),P(m))}function q(m){return m===45?(e.consume(m),d):P(m)}function ie(m){return m===47?(e.consume(m),o="",de):P(m)}function de(m){if(m===62){const he=o.toLowerCase();return Bi.includes(he)?(e.consume(m),xe):P(m)}return ze(m)&&o.length<8?(e.consume(m),o+=String.fromCharCode(m),de):P(m)}function Te(m){return m===93?(e.consume(m),d):P(m)}function d(m){return m===62?(e.consume(m),xe):m===45&&i===2?(e.consume(m),d):P(m)}function xe(m){return m===null||U(m)?(e.exit("htmlFlowData"),Ce(m)):(e.consume(m),xe)}function Ce(m){return e.exit("htmlFlow"),n(m)}}function qs(e,n,t){const r=this;return i;function i(o){return U(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):t(o)}function l(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}function Ws(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Vt,n,t)}}const Gs={name:"htmlText",tokenize:Ys};function Ys(e,n,t){const r=this;let i,l,o;return a;function a(d){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(d),s}function s(d){return d===33?(e.consume(d),u):d===47?(e.consume(d),R):d===63?(e.consume(d),v):ze(d)?(e.consume(d),E):t(d)}function u(d){return d===45?(e.consume(d),f):d===91?(e.consume(d),l=0,b):ze(d)?(e.consume(d),T):t(d)}function f(d){return d===45?(e.consume(d),p):t(d)}function c(d){return d===null?t(d):d===45?(e.consume(d),h):U(d)?(o=c,ie(d)):(e.consume(d),c)}function h(d){return d===45?(e.consume(d),p):c(d)}function p(d){return d===62?q(d):d===45?h(d):c(d)}function b(d){const xe="CDATA[";return d===xe.charCodeAt(l++)?(e.consume(d),l===xe.length?C:b):t(d)}function C(d){return d===null?t(d):d===93?(e.consume(d),k):U(d)?(o=C,ie(d)):(e.consume(d),C)}function k(d){return d===93?(e.consume(d),x):C(d)}function x(d){return d===62?q(d):d===93?(e.consume(d),x):C(d)}function T(d){return d===null||d===62?q(d):U(d)?(o=T,ie(d)):(e.consume(d),T)}function v(d){return d===null?t(d):d===63?(e.consume(d),H):U(d)?(o=v,ie(d)):(e.consume(d),v)}function H(d){return d===62?q(d):v(d)}function R(d){return ze(d)?(e.consume(d),S):t(d)}function S(d){return d===45||Pe(d)?(e.consume(d),S):W(d)}function W(d){return U(d)?(o=W,ie(d)):ee(d)?(e.consume(d),W):q(d)}function E(d){return d===45||Pe(d)?(e.consume(d),E):d===47||d===62||se(d)?V(d):t(d)}function V(d){return d===47?(e.consume(d),q):d===58||d===95||ze(d)?(e.consume(d),y):U(d)?(o=V,ie(d)):ee(d)?(e.consume(d),V):q(d)}function y(d){return d===45||d===46||d===58||d===95||Pe(d)?(e.consume(d),y):D(d)}function D(d){return d===61?(e.consume(d),P):U(d)?(o=D,ie(d)):ee(d)?(e.consume(d),D):V(d)}function P(d){return d===null||d===60||d===61||d===62||d===96?t(d):d===34||d===39?(e.consume(d),i=d,Y):U(d)?(o=P,ie(d)):ee(d)?(e.consume(d),P):(e.consume(d),z)}function Y(d){return d===i?(e.consume(d),i=void 0,L):d===null?t(d):U(d)?(o=Y,ie(d)):(e.consume(d),Y)}function z(d){return d===null||d===34||d===39||d===60||d===61||d===96?t(d):d===47||d===62||se(d)?V(d):(e.consume(d),z)}function L(d){return d===47||d===62||se(d)?V(d):t(d)}function q(d){return d===62?(e.consume(d),e.exit("htmlTextData"),e.exit("htmlText"),n):t(d)}function ie(d){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),de}function de(d){return ee(d)?re(e,Te,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d):Te(d)}function Te(d){return e.enter("htmlTextData"),o(d)}}const er={name:"labelEnd",resolveAll:Zs,resolveTo:Js,tokenize:eu},Xs={tokenize:tu},Qs={tokenize:nu},Ks={tokenize:ru};function Zs(e){let n=-1;const t=[];for(;++n<e.length;){const r=e[n][1];if(t.push(e[n]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",n+=i}}return e.length!==t.length&&je(e,0,e.length,t),e}function Js(e,n){let t=e.length,r=0,i,l,o,a;for(;t--;)if(i=e[t][1],l){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[t][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[t][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(l=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=t);const s={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[l][1].start},end:{...e[o][1].end}},f={type:"labelText",start:{...e[l+r+2][1].end},end:{...e[o-2][1].start}};return a=[["enter",s,n],["enter",u,n]],a=He(a,e.slice(l+1,l+r+3)),a=He(a,[["enter",f,n]]),a=He(a,un(n.parser.constructs.insideSpan.null,e.slice(l+r+4,o-3),n)),a=He(a,[["exit",f,n],e[o-2],e[o-1],["exit",u,n]]),a=He(a,e.slice(o+1)),a=He(a,[["exit",s,n]]),je(e,l,e.length,a),e}function eu(e,n,t){const r=this;let i=r.events.length,l,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){l=r.events[i][1];break}return a;function a(h){return l?l._inactive?c(h):(o=r.parser.defined.includes(Ue(r.sliceSerialize({start:l.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),s):t(h)}function s(h){return h===40?e.attempt(Xs,f,o?f:c)(h):h===91?e.attempt(Qs,f,o?u:c)(h):o?f(h):c(h)}function u(h){return e.attempt(Ks,f,c)(h)}function f(h){return n(h)}function c(h){return l._balanced=!0,t(h)}}function tu(e,n,t){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return se(c)?Wt(e,l)(c):l(c)}function l(c){return c===41?f(c):Oi(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function o(c){return se(c)?Wt(e,s)(c):f(c)}function a(c){return t(c)}function s(c){return c===34||c===39||c===40?Fi(e,u,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function u(c){return se(c)?Wt(e,f)(c):f(c)}function f(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),n):t(c)}}function nu(e,n,t){const r=this;return i;function i(a){return Ri.call(r,e,l,o,"reference","referenceMarker","referenceString")(a)}function l(a){return r.parser.defined.includes(Ue(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(a):t(a)}function o(a){return t(a)}}function ru(e,n,t){return r;function r(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),i}function i(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),n):t(l)}}const iu={name:"labelStartImage",resolveAll:er.resolveAll,tokenize:ou};function ou(e,n,t){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),l}function l(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),o):t(a)}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(a):n(a)}}const lu={name:"labelStartLink",resolveAll:er.resolveAll,tokenize:au};function au(e,n,t){const r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),l}function l(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(o):n(o)}}const tr={name:"lineEnding",tokenize:su};function su(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),re(e,n,"linePrefix")}}const cn={name:"thematicBreak",tokenize:uu};function uu(e,n,t){let r=0,i;return l;function l(u){return e.enter("thematicBreak"),o(u)}function o(u){return i=u,a(u)}function a(u){return u===i?(e.enter("thematicBreakSequence"),s(u)):r>=3&&(u===null||U(u))?(e.exit("thematicBreak"),n(u)):t(u)}function s(u){return u===i?(e.consume(u),r++,s):(e.exit("thematicBreakSequence"),ee(u)?re(e,a,"whitespace")(u):a(u))}}const Fe={continuation:{tokenize:hu},exit:mu,name:"list",tokenize:pu},cu={partial:!0,tokenize:gu},fu={partial:!0,tokenize:du};function pu(e,n,t){const r=this,i=r.events[r.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return a;function a(p){const b=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:Kn(p)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(cn,t,u)(p):u(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(p)}return t(p)}function s(p){return Kn(p)&&++o<10?(e.consume(p),s):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):t(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Vt,r.interrupt?t:f,e.attempt(cu,h,c))}function f(p){return r.containerState.initialBlankLine=!0,l++,h(p)}function c(p){return ee(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),h):t(p)}function h(p){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(p)}}function hu(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(Vt,i,l);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,re(e,n,"listItemIndent",r.containerState.size+1)(a)}function l(a){return r.containerState.furtherBlankLines||!ee(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(fu,n,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,re(e,e.attempt(Fe,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function du(e,n,t){const r=this;return re(e,i,"listItemIndent",r.containerState.size+1);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?n(l):t(l)}}function mu(e){e.exit(this.containerState.type)}function gu(e,n,t){const r=this;return re(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(l){const o=r.events[r.events.length-1];return!ee(l)&&o&&o[1].type==="listItemPrefixWhitespace"?n(l):t(l)}}const $i={name:"setextUnderline",resolveTo:bu,tokenize:yu};function bu(e,n){let t=e.length,r,i,l;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(i=t)}else e[t][1].type==="content"&&e.splice(t,1),!l&&e[t][1].type==="definition"&&(l=t);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",l?(e.splice(i,0,["enter",o,n]),e.splice(l+1,0,["exit",e[r][1],n]),e[r][1].end={...e[l][1].end}):e[r][1]=o,e.push(["exit",o,n]),e}function yu(e,n,t){const r=this;let i;return l;function l(u){let f=r.events.length,c;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){c=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),i=u,o(u)):t(u)}function o(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===i?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),ee(u)?re(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||U(u)?(e.exit("setextHeadingLine"),n(u)):t(u)}}const ku={tokenize:xu};function xu(e){const n=this,t=e.attempt(Vt,r,e.attempt(this.parser.constructs.flowInitial,i,re(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Es,i)),"linePrefix")));return t;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const wu={resolveAll:Hi()},Su=ji("string"),Cu=ji("text");function ji(e){return{resolveAll:Hi(e==="text"?vu:void 0),tokenize:n};function n(t){const r=this,i=this.parser.constructs[e],l=t.attempt(i,o,a);return o;function o(f){return u(f)?l(f):a(f)}function a(f){if(f===null){t.consume(f);return}return t.enter("data"),t.consume(f),s}function s(f){return u(f)?(t.exit("data"),l(f)):(t.consume(f),s)}function u(f){if(f===null)return!0;const c=i[f];let h=-1;if(c)for(;++h<c.length;){const p=c[h];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function Hi(e){return n;function n(t,r){let i=-1,l;for(;++i<=t.length;)l===void 0?t[i]&&t[i][1].type==="data"&&(l=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==l+2&&(t[l][1].end=t[i-1][1].end,t.splice(l+2,i-l-2),i=l+2),l=void 0);return e?e(t,r):t}}function vu(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){const r=e[t-1][1],i=n.sliceStream(r);let l=i.length,o=-1,a=0,s;for(;l--;){const u=i[l];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)a++,o--;if(o)break;o=-1}else if(u===-2)s=!0,a++;else if(u!==-1){l++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(a=0),a){const u={type:t===e.length||s||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?o:r.start._bufferIndex+o,_index:r.start._index+l,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(t,0,["enter",u,n],["exit",u,n]),t+=2)}t++}return e}const Eu=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:Ls},disable:{null:[]},document:{42:Fe,43:Fe,45:Fe,48:Fe,49:Fe,50:Fe,51:Fe,52:Fe,53:Fe,54:Fe,55:Fe,56:Fe,57:Fe,62:Li},flow:{35:Os,42:cn,45:[$i,cn],60:$s,61:$i,95:cn,96:zi,126:zi},flowInitial:{[-2]:Jn,[-1]:Jn,32:Jn},insideSpan:{null:[Zn,wu]},string:{38:Ni,92:Pi},text:{[-5]:tr,[-4]:tr,[-3]:tr,33:iu,38:Ni,42:Zn,60:[ls,Gs],91:lu,92:[zs,Pi],93:er,95:Zn,96:ks}},Symbol.toStringTag,{value:"Module"}));function Tu(e,n,t){let r={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0};const i={},l=[];let o=[],a=[];const s={attempt:W(R),check:W(S),consume:T,enter:v,exit:H,interrupt:W(S,{interrupt:!0})},u={code:null,containerState:{},defineSkip:C,events:[],now:b,parser:e,previous:null,sliceSerialize:h,sliceStream:p,write:c};let f=n.tokenize.call(u,s);return n.resolveAll&&l.push(n),u;function c(D){return o=He(o,D),k(),o[o.length-1]!==null?[]:(E(n,0),u.events=un(l,u.events,u),u.events)}function h(D,P){return _u(p(D),P)}function p(D){return Au(o,D)}function b(){const{_bufferIndex:D,_index:P,line:Y,column:z,offset:L}=r;return{_bufferIndex:D,_index:P,line:Y,column:z,offset:L}}function C(D){i[D.line]=D.column,y()}function k(){let D;for(;r._index<o.length;){const P=o[r._index];if(typeof P=="string")for(D=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===D&&r._bufferIndex<P.length;)x(P.charCodeAt(r._bufferIndex));else x(P)}}function x(D){f=f(D)}function T(D){U(D)?(r.line++,r.column=1,r.offset+=D===-3?2:1,y()):D!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=D}function v(D,P){const Y=P||{};return Y.type=D,Y.start=b(),u.events.push(["enter",Y,u]),a.push(Y),Y}function H(D){const P=a.pop();return P.end=b(),u.events.push(["exit",P,u]),P}function R(D,P){E(D,P.from)}function S(D,P){P.restore()}function W(D,P){return Y;function Y(z,L,q){let ie,de,Te,d;return Array.isArray(z)?Ce(z):"tokenize"in z?Ce([z]):xe(z);function xe(j){return fe;function fe(le){const oe=le!==null&&j[le],Ne=le!==null&&j.null,Ve=[...Array.isArray(oe)?oe:oe?[oe]:[],...Array.isArray(Ne)?Ne:Ne?[Ne]:[]];return Ce(Ve)(le)}}function Ce(j){return ie=j,de=0,j.length===0?q:m(j[de])}function m(j){return fe;function fe(le){return d=V(),Te=j,j.partial||(u.currentConstruct=j),j.name&&u.parser.constructs.disable.null.includes(j.name)?ue():j.tokenize.call(P?Object.assign(Object.create(u),P):u,s,he,ue)(le)}}function he(j){return D(Te,d),L}function ue(j){return d.restore(),++de<ie.length?m(ie[de]):q}}}function E(D,P){D.resolveAll&&!l.includes(D)&&l.push(D),D.resolve&&je(u.events,P,u.events.length-P,D.resolve(u.events.slice(P),u)),D.resolveTo&&(u.events=D.resolveTo(u.events,u))}function V(){const D=b(),P=u.previous,Y=u.currentConstruct,z=u.events.length,L=Array.from(a);return{from:z,restore:q};function q(){r=D,u.previous=P,u.currentConstruct=Y,u.events.length=z,a=L,y()}}function y(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Au(e,n){const t=n.start._index,r=n.start._bufferIndex,i=n.end._index,l=n.end._bufferIndex;let o;if(t===i)o=[e[t].slice(r,l)];else{if(o=e.slice(t,i),r>-1){const a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}l>0&&o.push(e[i].slice(0,l))}return o}function _u(e,n){let t=-1;const r=[];let i;for(;++t<e.length;){const l=e[t];let o;if(typeof l=="string")o=l;else switch(l){case-5:{o="\r";break}case-4:{o=`
3
3
  `;break}case-3:{o=`\r
4
- `;break}case-2:{o=n?" ":" ";break}case-1:{if(!n&&i)continue;o=" ";break}default:o=String.fromCharCode(l)}i=l===-2,r.push(o)}return r.join("")}function vu(e){const r={constructs:Ei([wu,...(e||{}).extensions||[]]),content:i(Xa),defined:[],document:i(Qa),flow:i(mu),lazy:{},string:i(yu),text:i(xu)};return r;function i(l){return o;function o(a){return Su(r,l,a)}}}function Tu(e){for(;!Di(e););return e}const ji=/[\0\t\n\r]/g;function Au(){let e=1,n="",t=!0,r;return i;function i(l,o,a){const s=[];let u,f,c,h,p;for(l=n+(typeof l=="string"?l.toString():new TextDecoder(o||void 0).decode(l)),c=0,n="",t&&(l.charCodeAt(0)===65279&&c++,t=void 0);c<l.length;){if(ji.lastIndex=c,u=ji.exec(l),h=u&&u.index!==void 0?u.index:l.length,p=l.charCodeAt(h),!u){n=l.slice(c);break}if(p===10&&c===h&&r)s.push(-3),r=void 0;else switch(r&&(s.push(-5),r=void 0),c<h&&(s.push(l.slice(c,h)),e+=h-c),p){case 0:{s.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,s.push(-2);e++<f;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:r=!0,e=1}c=h+1}return a&&(r&&s.push(-5),n&&s.push(n),s.push(null)),s}}const _u=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Iu(e){return e.replace(_u,Lu)}function Lu(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),l=i===120||i===88;return Ci(t.slice(l?2:1),l?16:10)}return Yn(t)||e}const Ui={}.hasOwnProperty;function Pu(e,n,t){return n&&typeof n=="object"&&(t=n,n=void 0),Du(t)(Tu(vu(t).document().write(Au()(e,n,!0))))}function Du(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Jt),autolinkProtocol:V,autolinkEmail:V,atxHeading:l(Zt),blockQuote:l(Ue),characterEscape:V,characterReference:V,codeFenced:l(He),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:l(He,o),codeText:l(ut,o),codeTextData:V,data:V,codeFlowValue:V,definition:l(ct),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:l(ft),hardBreakEscape:l(pt),hardBreakTrailing:l(pt),htmlFlow:l(Cn,o),htmlFlowData:V,htmlText:l(Cn,o),htmlTextData:V,image:l(Dr),label:o,link:l(Jt),listItem:l(Or),listItemValue:h,listOrdered:l(en,c),listUnordered:l(en),paragraph:l(Z),reference:m,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:l(Zt),strong:l(B),thematicBreak:l(G)},exit:{atxHeading:s(),atxHeadingSequence:M,autolink:s(),autolinkEmail:ae,autolinkProtocol:Fe,blockQuote:s(),characterEscapeValue:b,characterReferenceMarkerHexadecimal:ue,characterReferenceMarkerNumeric:ue,characterReferenceValue:te,characterReference:je,codeFenced:s(E),codeFencedFence:S,codeFencedFenceInfo:p,codeFencedFenceMeta:y,codeFlowValue:b,codeIndented:s(x),codeText:s(L),codeTextData:b,data:b,definition:s(),definitionDestinationString:$,definitionLabelString:A,definitionTitleString:v,emphasis:s(),hardBreakEscape:s(P),hardBreakTrailing:s(P),htmlFlow:s(X),htmlFlowData:b,htmlText:s(R),htmlTextData:b,image:s(re),label:ie,labelText:pe,lineEnding:O,link:s(W),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:me,resourceDestinationString:d,resourceTitleString:fe,resource:_e,setextHeading:s(C),setextHeadingLineSequence:H,setextHeadingText:w,strong:s(),thematicBreak:s()}};$i(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(k){let T={type:"root",children:[]};const q={stack:[T],tokenStack:[],config:n,enter:a,exit:u,buffer:o,resume:f,data:t},Q=[];let oe=-1;for(;++oe<k.length;)if(k[oe][1].type==="listOrdered"||k[oe][1].type==="listUnordered")if(k[oe][0]==="enter")Q.push(oe);else{const Ee=Q.pop();oe=i(k,Ee,oe)}for(oe=-1;++oe<k.length;){const Ee=n[k[oe][0]];Ui.call(Ee,k[oe][1].type)&&Ee[k[oe][1].type].call(Object.assign({sliceSerialize:k[oe][2].sliceSerialize},q),k[oe][1])}if(q.tokenStack.length>0){const Ee=q.tokenStack[q.tokenStack.length-1];(Ee[1]||Hi).call(q,void 0,Ee[0])}for(T.position={start:ot(k.length>0?k[0][1].start:{line:1,column:1,offset:0}),end:ot(k.length>0?k[k.length-2][1].end:{line:1,column:1,offset:0})},oe=-1;++oe<n.transforms.length;)T=n.transforms[oe](T)||T;return T}function i(k,T,q){let Q=T-1,oe=-1,Ee=!1,Je,Ve,xt,Ye;for(;++Q<=q;){const ye=k[Q];switch(ye[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ye[0]==="enter"?oe++:oe--,Ye=void 0;break}case"lineEndingBlank":{ye[0]==="enter"&&(Je&&!Ye&&!oe&&!xt&&(xt=Q),Ye=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ye=void 0}if(!oe&&ye[0]==="enter"&&ye[1].type==="listItemPrefix"||oe===-1&&ye[0]==="exit"&&(ye[1].type==="listUnordered"||ye[1].type==="listOrdered")){if(Je){let ht=Q;for(Ve=void 0;ht--;){const qe=k[ht];if(qe[1].type==="lineEnding"||qe[1].type==="lineEndingBlank"){if(qe[0]==="exit")continue;Ve&&(k[Ve][1].type="lineEndingBlank",Ee=!0),qe[1].type="lineEnding",Ve=ht}else if(!(qe[1].type==="linePrefix"||qe[1].type==="blockQuotePrefix"||qe[1].type==="blockQuotePrefixWhitespace"||qe[1].type==="blockQuoteMarker"||qe[1].type==="listItemIndent"))break}xt&&(!Ve||xt<Ve)&&(Je._spread=!0),Je.end=Object.assign({},Ve?k[Ve][1].start:ye[1].end),k.splice(Ve||Q,0,["exit",Je,ye[2]]),Q++,q++}if(ye[1].type==="listItemPrefix"){const ht={type:"listItem",_spread:!1,start:Object.assign({},ye[1].start),end:void 0};Je=ht,k.splice(Q,0,["enter",ht,ye[2]]),Q++,q++,xt=void 0,Ye=!0}}}return k[T][1]._spread=Ee,q}function l(k,T){return q;function q(Q){a.call(this,k(Q),Q),T&&T.call(this,Q)}}function o(){this.stack.push({type:"fragment",children:[]})}function a(k,T,q){this.stack[this.stack.length-1].children.push(k),this.stack.push(k),this.tokenStack.push([T,q||void 0]),k.position={start:ot(T.start),end:void 0}}function s(k){return T;function T(q){k&&k.call(this,q),u.call(this,q)}}function u(k,T){const q=this.stack.pop(),Q=this.tokenStack.pop();if(Q)Q[0].type!==k.type&&(T?T.call(this,k,Q[0]):(Q[1]||Hi).call(this,k,Q[0]));else throw new Error("Cannot close `"+k.type+"` ("+Bt({start:k.start,end:k.end})+"): it’s not open");q.position.end=ot(k.end)}function f(){return Gn(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function h(k){if(this.data.expectingFirstListItemValue){const T=this.stack[this.stack.length-2];T.start=Number.parseInt(this.sliceSerialize(k),10),this.data.expectingFirstListItemValue=void 0}}function p(){const k=this.resume(),T=this.stack[this.stack.length-1];T.lang=k}function y(){const k=this.resume(),T=this.stack[this.stack.length-1];T.meta=k}function S(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function E(){const k=this.resume(),T=this.stack[this.stack.length-1];T.value=k.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const k=this.resume(),T=this.stack[this.stack.length-1];T.value=k.replace(/(\r?\n|\r)$/g,"")}function A(k){const T=this.resume(),q=this.stack[this.stack.length-1];q.label=T,q.identifier=$e(this.sliceSerialize(k)).toLowerCase()}function v(){const k=this.resume(),T=this.stack[this.stack.length-1];T.title=k}function $(){const k=this.resume(),T=this.stack[this.stack.length-1];T.url=k}function M(k){const T=this.stack[this.stack.length-1];if(!T.depth){const q=this.sliceSerialize(k).length;T.depth=q}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function H(k){const T=this.stack[this.stack.length-1];T.depth=this.sliceSerialize(k).codePointAt(0)===61?1:2}function C(){this.data.setextHeadingSlurpLineEnding=void 0}function V(k){const q=this.stack[this.stack.length-1].children;let Q=q[q.length-1];(!Q||Q.type!=="text")&&(Q=ee(),Q.position={start:ot(k.start),end:void 0},q.push(Q)),this.stack.push(Q)}function b(k){const T=this.stack.pop();T.value+=this.sliceSerialize(k),T.position.end=ot(k.end)}function O(k){const T=this.stack[this.stack.length-1];if(this.data.atHardBreak){const q=T.children[T.children.length-1];q.position.end=ot(k.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(T.type)&&(V.call(this,k),b.call(this,k))}function P(){this.data.atHardBreak=!0}function X(){const k=this.resume(),T=this.stack[this.stack.length-1];T.value=k}function R(){const k=this.resume(),T=this.stack[this.stack.length-1];T.value=k}function L(){const k=this.resume(),T=this.stack[this.stack.length-1];T.value=k}function W(){const k=this.stack[this.stack.length-1];if(this.data.inReference){const T=this.data.referenceType||"shortcut";k.type+="Reference",k.referenceType=T,delete k.url,delete k.title}else delete k.identifier,delete k.label;this.data.referenceType=void 0}function re(){const k=this.stack[this.stack.length-1];if(this.data.inReference){const T=this.data.referenceType||"shortcut";k.type+="Reference",k.referenceType=T,delete k.url,delete k.title}else delete k.identifier,delete k.label;this.data.referenceType=void 0}function pe(k){const T=this.sliceSerialize(k),q=this.stack[this.stack.length-2];q.label=Iu(T),q.identifier=$e(T).toLowerCase()}function ie(){const k=this.stack[this.stack.length-1],T=this.resume(),q=this.stack[this.stack.length-1];if(this.data.inReference=!0,q.type==="link"){const Q=k.children;q.children=Q}else q.alt=T}function d(){const k=this.resume(),T=this.stack[this.stack.length-1];T.url=k}function fe(){const k=this.resume(),T=this.stack[this.stack.length-1];T.title=k}function _e(){this.data.inReference=void 0}function m(){this.data.referenceType="collapsed"}function me(k){const T=this.resume(),q=this.stack[this.stack.length-1];q.label=T,q.identifier=$e(this.sliceSerialize(k)).toLowerCase(),this.data.referenceType="full"}function ue(k){this.data.characterReferenceType=k.type}function te(k){const T=this.sliceSerialize(k),q=this.data.characterReferenceType;let Q;q?(Q=Ci(T,q==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Q=Yn(T);const oe=this.stack[this.stack.length-1];oe.value+=Q}function je(k){const T=this.stack.pop();T.position.end=ot(k.end)}function Fe(k){b.call(this,k);const T=this.stack[this.stack.length-1];T.url=this.sliceSerialize(k)}function ae(k){b.call(this,k);const T=this.stack[this.stack.length-1];T.url="mailto:"+this.sliceSerialize(k)}function Ue(){return{type:"blockquote",children:[]}}function He(){return{type:"code",lang:null,meta:null,value:""}}function ut(){return{type:"inlineCode",value:""}}function ct(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ft(){return{type:"emphasis",children:[]}}function Zt(){return{type:"heading",depth:0,children:[]}}function pt(){return{type:"break"}}function Cn(){return{type:"html",value:""}}function Dr(){return{type:"image",title:null,url:"",alt:null}}function Jt(){return{type:"link",title:null,url:"",children:[]}}function en(k){return{type:"list",ordered:k.type==="listOrdered",start:null,spread:k._spread,children:[]}}function Or(k){return{type:"listItem",spread:k._spread,checked:null,children:[]}}function Z(){return{type:"paragraph",children:[]}}function B(){return{type:"strong",children:[]}}function ee(){return{type:"text",value:""}}function G(){return{type:"thematicBreak"}}}function ot(e){return{line:e.line,column:e.column,offset:e.offset}}function $i(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?$i(e,r):Ou(e,r)}}function Ou(e,n){let t;for(t in n)if(Ui.call(n,t))switch(t){case"canContainEols":{const r=n[t];r&&e[t].push(...r);break}case"transforms":{const r=n[t];r&&e[t].push(...r);break}case"enter":case"exit":{const r=n[t];r&&Object.assign(e[t],r);break}}}function Hi(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Bt({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Bt({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Bt({start:n.start,end:n.end})+") is still open")}function zu(e){const n=this;n.parser=t;function t(r){return Pu(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function Nu(e,n){const t={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,t),e.applyData(n,t)}function Mu(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:`
5
- `}]}function Ru(e,n){const t=n.value?n.value+`
6
- `:"",r={},i=n.lang?n.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let l={type:"element",tagName:"code",properties:r,children:[{type:"text",value:t}]};return n.meta&&(l.data={meta:n.meta}),e.patch(n,l),l=e.applyData(n,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(n,l),l}function Fu(e,n){const t={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Bu(e,n){const t={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function ju(e,n){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(n.identifier).toUpperCase(),i=vt(r.toLowerCase()),l=e.footnoteOrder.indexOf(r);let o,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=l+1,a+=1,e.footnoteCounts.set(r,a);const s={type:"element",tagName:"a",properties:{href:"#"+t+"fn-"+i,id:t+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(n,s);const u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(n,u),e.applyData(n,u)}function Uu(e,n){const t={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function $u(e,n){if(e.options.allowDangerousHtml){const t={type:"raw",value:n.value};return e.patch(n,t),e.applyData(n,t)}}function Vi(e,n){const t=n.referenceType;let r="]";if(t==="collapsed"?r+="[]":t==="full"&&(r+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+r}];const i=e.all(n),l=i[0];l&&l.type==="text"?l.value="["+l.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function Hu(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return Vi(e,n);const i={src:vt(r.url||""),alt:n.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(n,l),e.applyData(n,l)}function Vu(e,n){const t={src:vt(n.url)};n.alt!==null&&n.alt!==void 0&&(t.alt=n.alt),n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"img",properties:t,children:[]};return e.patch(n,r),e.applyData(n,r)}function qu(e,n){const t={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,t);const r={type:"element",tagName:"code",properties:{},children:[t]};return e.patch(n,r),e.applyData(n,r)}function Wu(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return Vi(e,n);const i={href:vt(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"a",properties:i,children:e.all(n)};return e.patch(n,l),e.applyData(n,l)}function Gu(e,n){const t={href:vt(n.url)};n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"a",properties:t,children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Yu(e,n,t){const r=e.all(n),i=t?Xu(t):qi(n),l={},o=[];if(typeof n.checked=="boolean"){const f=r[0];let c;f&&f.type==="element"&&f.tagName==="p"?c=f:(c={type:"element",tagName:"p",properties:{},children:[]},r.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const f=r[a];(i||a!==0||f.type!=="element"||f.tagName!=="p")&&o.push({type:"text",value:`
4
+ `;break}case-2:{o=n?" ":" ";break}case-1:{if(!n&&i)continue;o=" ";break}default:o=String.fromCharCode(l)}i=l===-2,r.push(o)}return r.join("")}function Iu(e){const r={constructs:Ti([Eu,...(e||{}).extensions||[]]),content:i(Ja),defined:[],document:i(ts),flow:i(ku),lazy:{},string:i(Su),text:i(Cu)};return r;function i(l){return o;function o(a){return Tu(r,l,a)}}}function Lu(e){for(;!Mi(e););return e}const Ui=/[\0\t\n\r]/g;function Pu(){let e=1,n="",t=!0,r;return i;function i(l,o,a){const s=[];let u,f,c,h,p;for(l=n+(typeof l=="string"?l.toString():new TextDecoder(o||void 0).decode(l)),c=0,n="",t&&(l.charCodeAt(0)===65279&&c++,t=void 0);c<l.length;){if(Ui.lastIndex=c,u=Ui.exec(l),h=u&&u.index!==void 0?u.index:l.length,p=l.charCodeAt(h),!u){n=l.slice(c);break}if(p===10&&c===h&&r)s.push(-3),r=void 0;else switch(r&&(s.push(-5),r=void 0),c<h&&(s.push(l.slice(c,h)),e+=h-c),p){case 0:{s.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,s.push(-2);e++<f;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:r=!0,e=1}c=h+1}return a&&(r&&s.push(-5),n&&s.push(n),s.push(null)),s}}const Nu=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Du(e){return e.replace(Nu,zu)}function zu(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),l=i===120||i===88;return Ai(t.slice(l?2:1),l?16:10)}return Qn(t)||e}const Vi={}.hasOwnProperty;function Mu(e,n,t){return n&&typeof n=="object"&&(t=n,n=void 0),Ou(t)(Lu(Iu(t).document().write(Pu()(e,n,!0))))}function Ou(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(en),autolinkProtocol:V,autolinkEmail:V,atxHeading:l(Jt),blockQuote:l(Ne),characterEscape:V,characterReference:V,codeFenced:l(Ve),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:l(Ve,o),codeText:l(ct,o),codeTextData:V,data:V,codeFlowValue:V,definition:l(ft),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:l(pt),hardBreakEscape:l(ht),hardBreakTrailing:l(ht),htmlFlow:l(Tn,o),htmlFlowData:V,htmlText:l(Tn,o),htmlTextData:V,image:l(Mr),label:o,link:l(en),listItem:l(Or),listItemValue:h,listOrdered:l(tn,c),listUnordered:l(tn),paragraph:l(J),reference:m,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:l(Jt),strong:l(B),thematicBreak:l(X)},exit:{atxHeading:s(),atxHeadingSequence:R,autolink:s(),autolinkEmail:oe,autolinkProtocol:le,blockQuote:s(),characterEscapeValue:y,characterReferenceMarkerHexadecimal:ue,characterReferenceMarkerNumeric:ue,characterReferenceValue:j,characterReference:fe,codeFenced:s(k),codeFencedFence:C,codeFencedFenceInfo:p,codeFencedFenceMeta:b,codeFlowValue:y,codeIndented:s(x),codeText:s(L),codeTextData:y,data:y,definition:s(),definitionDestinationString:H,definitionLabelString:T,definitionTitleString:v,emphasis:s(),hardBreakEscape:s(P),hardBreakTrailing:s(P),htmlFlow:s(Y),htmlFlowData:y,htmlText:s(z),htmlTextData:y,image:s(ie),label:Te,labelText:de,lineEnding:D,link:s(q),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:he,resourceDestinationString:d,resourceTitleString:xe,resource:Ce,setextHeading:s(E),setextHeadingLineSequence:W,setextHeadingText:S,strong:s(),thematicBreak:s()}};qi(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(w){let A={type:"root",children:[]};const G={stack:[A],tokenStack:[],config:n,enter:a,exit:u,buffer:o,resume:f,data:t},Z=[];let ae=-1;for(;++ae<w.length;)if(w[ae][1].type==="listOrdered"||w[ae][1].type==="listUnordered")if(w[ae][0]==="enter")Z.push(ae);else{const Ae=Z.pop();ae=i(w,Ae,ae)}for(ae=-1;++ae<w.length;){const Ae=n[w[ae][0]];Vi.call(Ae,w[ae][1].type)&&Ae[w[ae][1].type].call(Object.assign({sliceSerialize:w[ae][2].sliceSerialize},G),w[ae][1])}if(G.tokenStack.length>0){const Ae=G.tokenStack[G.tokenStack.length-1];(Ae[1]||Wi).call(G,void 0,Ae[0])}for(A.position={start:lt(w.length>0?w[0][1].start:{line:1,column:1,offset:0}),end:lt(w.length>0?w[w.length-2][1].end:{line:1,column:1,offset:0})},ae=-1;++ae<n.transforms.length;)A=n.transforms[ae](A)||A;return A}function i(w,A,G){let Z=A-1,ae=-1,Ae=!1,et,qe,wt,Xe;for(;++Z<=G;){const we=w[Z];switch(we[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{we[0]==="enter"?ae++:ae--,Xe=void 0;break}case"lineEndingBlank":{we[0]==="enter"&&(et&&!Xe&&!ae&&!wt&&(wt=Z),Xe=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Xe=void 0}if(!ae&&we[0]==="enter"&&we[1].type==="listItemPrefix"||ae===-1&&we[0]==="exit"&&(we[1].type==="listUnordered"||we[1].type==="listOrdered")){if(et){let dt=Z;for(qe=void 0;dt--;){const We=w[dt];if(We[1].type==="lineEnding"||We[1].type==="lineEndingBlank"){if(We[0]==="exit")continue;qe&&(w[qe][1].type="lineEndingBlank",Ae=!0),We[1].type="lineEnding",qe=dt}else if(!(We[1].type==="linePrefix"||We[1].type==="blockQuotePrefix"||We[1].type==="blockQuotePrefixWhitespace"||We[1].type==="blockQuoteMarker"||We[1].type==="listItemIndent"))break}wt&&(!qe||wt<qe)&&(et._spread=!0),et.end=Object.assign({},qe?w[qe][1].start:we[1].end),w.splice(qe||Z,0,["exit",et,we[2]]),Z++,G++}if(we[1].type==="listItemPrefix"){const dt={type:"listItem",_spread:!1,start:Object.assign({},we[1].start),end:void 0};et=dt,w.splice(Z,0,["enter",dt,we[2]]),Z++,G++,wt=void 0,Xe=!0}}}return w[A][1]._spread=Ae,G}function l(w,A){return G;function G(Z){a.call(this,w(Z),Z),A&&A.call(this,Z)}}function o(){this.stack.push({type:"fragment",children:[]})}function a(w,A,G){this.stack[this.stack.length-1].children.push(w),this.stack.push(w),this.tokenStack.push([A,G||void 0]),w.position={start:lt(A.start),end:void 0}}function s(w){return A;function A(G){w&&w.call(this,G),u.call(this,G)}}function u(w,A){const G=this.stack.pop(),Z=this.tokenStack.pop();if(Z)Z[0].type!==w.type&&(A?A.call(this,w,Z[0]):(Z[1]||Wi).call(this,w,Z[0]));else throw new Error("Cannot close `"+w.type+"` ("+Ht({start:w.start,end:w.end})+"): it’s not open");G.position.end=lt(w.end)}function f(){return Xn(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function h(w){if(this.data.expectingFirstListItemValue){const A=this.stack[this.stack.length-2];A.start=Number.parseInt(this.sliceSerialize(w),10),this.data.expectingFirstListItemValue=void 0}}function p(){const w=this.resume(),A=this.stack[this.stack.length-1];A.lang=w}function b(){const w=this.resume(),A=this.stack[this.stack.length-1];A.meta=w}function C(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function k(){const w=this.resume(),A=this.stack[this.stack.length-1];A.value=w.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const w=this.resume(),A=this.stack[this.stack.length-1];A.value=w.replace(/(\r?\n|\r)$/g,"")}function T(w){const A=this.resume(),G=this.stack[this.stack.length-1];G.label=A,G.identifier=Ue(this.sliceSerialize(w)).toLowerCase()}function v(){const w=this.resume(),A=this.stack[this.stack.length-1];A.title=w}function H(){const w=this.resume(),A=this.stack[this.stack.length-1];A.url=w}function R(w){const A=this.stack[this.stack.length-1];if(!A.depth){const G=this.sliceSerialize(w).length;A.depth=G}}function S(){this.data.setextHeadingSlurpLineEnding=!0}function W(w){const A=this.stack[this.stack.length-1];A.depth=this.sliceSerialize(w).codePointAt(0)===61?1:2}function E(){this.data.setextHeadingSlurpLineEnding=void 0}function V(w){const G=this.stack[this.stack.length-1].children;let Z=G[G.length-1];(!Z||Z.type!=="text")&&(Z=ne(),Z.position={start:lt(w.start),end:void 0},G.push(Z)),this.stack.push(Z)}function y(w){const A=this.stack.pop();A.value+=this.sliceSerialize(w),A.position.end=lt(w.end)}function D(w){const A=this.stack[this.stack.length-1];if(this.data.atHardBreak){const G=A.children[A.children.length-1];G.position.end=lt(w.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(A.type)&&(V.call(this,w),y.call(this,w))}function P(){this.data.atHardBreak=!0}function Y(){const w=this.resume(),A=this.stack[this.stack.length-1];A.value=w}function z(){const w=this.resume(),A=this.stack[this.stack.length-1];A.value=w}function L(){const w=this.resume(),A=this.stack[this.stack.length-1];A.value=w}function q(){const w=this.stack[this.stack.length-1];if(this.data.inReference){const A=this.data.referenceType||"shortcut";w.type+="Reference",w.referenceType=A,delete w.url,delete w.title}else delete w.identifier,delete w.label;this.data.referenceType=void 0}function ie(){const w=this.stack[this.stack.length-1];if(this.data.inReference){const A=this.data.referenceType||"shortcut";w.type+="Reference",w.referenceType=A,delete w.url,delete w.title}else delete w.identifier,delete w.label;this.data.referenceType=void 0}function de(w){const A=this.sliceSerialize(w),G=this.stack[this.stack.length-2];G.label=Du(A),G.identifier=Ue(A).toLowerCase()}function Te(){const w=this.stack[this.stack.length-1],A=this.resume(),G=this.stack[this.stack.length-1];if(this.data.inReference=!0,G.type==="link"){const Z=w.children;G.children=Z}else G.alt=A}function d(){const w=this.resume(),A=this.stack[this.stack.length-1];A.url=w}function xe(){const w=this.resume(),A=this.stack[this.stack.length-1];A.title=w}function Ce(){this.data.inReference=void 0}function m(){this.data.referenceType="collapsed"}function he(w){const A=this.resume(),G=this.stack[this.stack.length-1];G.label=A,G.identifier=Ue(this.sliceSerialize(w)).toLowerCase(),this.data.referenceType="full"}function ue(w){this.data.characterReferenceType=w.type}function j(w){const A=this.sliceSerialize(w),G=this.data.characterReferenceType;let Z;G?(Z=Ai(A,G==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Z=Qn(A);const ae=this.stack[this.stack.length-1];ae.value+=Z}function fe(w){const A=this.stack.pop();A.position.end=lt(w.end)}function le(w){y.call(this,w);const A=this.stack[this.stack.length-1];A.url=this.sliceSerialize(w)}function oe(w){y.call(this,w);const A=this.stack[this.stack.length-1];A.url="mailto:"+this.sliceSerialize(w)}function Ne(){return{type:"blockquote",children:[]}}function Ve(){return{type:"code",lang:null,meta:null,value:""}}function ct(){return{type:"inlineCode",value:""}}function ft(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function pt(){return{type:"emphasis",children:[]}}function Jt(){return{type:"heading",depth:0,children:[]}}function ht(){return{type:"break"}}function Tn(){return{type:"html",value:""}}function Mr(){return{type:"image",title:null,url:"",alt:null}}function en(){return{type:"link",title:null,url:"",children:[]}}function tn(w){return{type:"list",ordered:w.type==="listOrdered",start:null,spread:w._spread,children:[]}}function Or(w){return{type:"listItem",spread:w._spread,checked:null,children:[]}}function J(){return{type:"paragraph",children:[]}}function B(){return{type:"strong",children:[]}}function ne(){return{type:"text",value:""}}function X(){return{type:"thematicBreak"}}}function lt(e){return{line:e.line,column:e.column,offset:e.offset}}function qi(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?qi(e,r):Ru(e,r)}}function Ru(e,n){let t;for(t in n)if(Vi.call(n,t))switch(t){case"canContainEols":{const r=n[t];r&&e[t].push(...r);break}case"transforms":{const r=n[t];r&&e[t].push(...r);break}case"enter":case"exit":{const r=n[t];r&&Object.assign(e[t],r);break}}}function Wi(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Ht({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Ht({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Ht({start:n.start,end:n.end})+") is still open")}function Fu(e){const n=this;n.parser=t;function t(r){return Mu(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function Bu(e,n){const t={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,t),e.applyData(n,t)}function $u(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:`
5
+ `}]}function ju(e,n){const t=n.value?n.value+`
6
+ `:"",r={},i=n.lang?n.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let l={type:"element",tagName:"code",properties:r,children:[{type:"text",value:t}]};return n.meta&&(l.data={meta:n.meta}),e.patch(n,l),l=e.applyData(n,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(n,l),l}function Hu(e,n){const t={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Uu(e,n){const t={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Vu(e,n){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(n.identifier).toUpperCase(),i=At(r.toLowerCase()),l=e.footnoteOrder.indexOf(r);let o,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=l+1,a+=1,e.footnoteCounts.set(r,a);const s={type:"element",tagName:"a",properties:{href:"#"+t+"fn-"+i,id:t+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(n,s);const u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(n,u),e.applyData(n,u)}function qu(e,n){const t={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Wu(e,n){if(e.options.allowDangerousHtml){const t={type:"raw",value:n.value};return e.patch(n,t),e.applyData(n,t)}}function Gi(e,n){const t=n.referenceType;let r="]";if(t==="collapsed"?r+="[]":t==="full"&&(r+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+r}];const i=e.all(n),l=i[0];l&&l.type==="text"?l.value="["+l.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function Gu(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return Gi(e,n);const i={src:At(r.url||""),alt:n.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(n,l),e.applyData(n,l)}function Yu(e,n){const t={src:At(n.url)};n.alt!==null&&n.alt!==void 0&&(t.alt=n.alt),n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"img",properties:t,children:[]};return e.patch(n,r),e.applyData(n,r)}function Xu(e,n){const t={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,t);const r={type:"element",tagName:"code",properties:{},children:[t]};return e.patch(n,r),e.applyData(n,r)}function Qu(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return Gi(e,n);const i={href:At(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"a",properties:i,children:e.all(n)};return e.patch(n,l),e.applyData(n,l)}function Ku(e,n){const t={href:At(n.url)};n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"a",properties:t,children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Zu(e,n,t){const r=e.all(n),i=t?Ju(t):Yi(n),l={},o=[];if(typeof n.checked=="boolean"){const f=r[0];let c;f&&f.type==="element"&&f.tagName==="p"?c=f:(c={type:"element",tagName:"p",properties:{},children:[]},r.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const f=r[a];(i||a!==0||f.type!=="element"||f.tagName!=="p")&&o.push({type:"text",value:`
7
7
  `}),f.type==="element"&&f.tagName==="p"&&!i?o.push(...f.children):o.push(f)}const s=r[r.length-1];s&&(i||s.type!=="element"||s.tagName!=="p")&&o.push({type:"text",value:`
8
- `});const u={type:"element",tagName:"li",properties:l,children:o};return e.patch(n,u),e.applyData(n,u)}function Xu(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const t=e.children;let r=-1;for(;!n&&++r<t.length;)n=qi(t[r])}return n}function qi(e){const n=e.spread;return n??e.children.length>1}function Ku(e,n){const t={},r=e.all(n);let i=-1;for(typeof n.start=="number"&&n.start!==1&&(t.start=n.start);++i<r.length;){const o=r[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){t.className=["contains-task-list"];break}}const l={type:"element",tagName:n.ordered?"ol":"ul",properties:t,children:e.wrap(r,!0)};return e.patch(n,l),e.applyData(n,l)}function Qu(e,n){const t={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Zu(e,n){const t={type:"root",children:e.wrap(e.all(n))};return e.patch(n,t),e.applyData(n,t)}function Ju(e,n){const t={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function ec(e,n){const t=e.all(n),r=t.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(n.children[0],o),i.push(o)}if(t.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(t,!0)},a=Un(n.children[1]),s=fi(n.children[n.children.length-1]);a&&s&&(o.position={start:a,end:s}),i.push(o)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(n,l),e.applyData(n,l)}function tc(e,n,t){const r=t?t.children:void 0,l=(r?r.indexOf(n):1)===0?"th":"td",o=t&&t.type==="table"?t.align:void 0,a=o?o.length:n.children.length;let s=-1;const u=[];for(;++s<a;){const c=n.children[s],h={},p=o?o[s]:void 0;p&&(h.align=p);let y={type:"element",tagName:l,properties:h,children:[]};c&&(y.children=e.all(c),e.patch(c,y),y=e.applyData(c,y)),u.push(y)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(n,f),e.applyData(n,f)}function nc(e,n){const t={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}const Wi=9,Gi=32;function rc(e){const n=String(e),t=/\r?\n|\r/g;let r=t.exec(n),i=0;const l=[];for(;r;)l.push(Yi(n.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=t.exec(n);return l.push(Yi(n.slice(i),i>0,!1)),l.join("")}function Yi(e,n,t){let r=0,i=e.length;if(n){let l=e.codePointAt(r);for(;l===Wi||l===Gi;)r++,l=e.codePointAt(r)}if(t){let l=e.codePointAt(i-1);for(;l===Wi||l===Gi;)i--,l=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function ic(e,n){const t={type:"text",value:rc(String(n.value))};return e.patch(n,t),e.applyData(n,t)}function oc(e,n){const t={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,t),e.applyData(n,t)}const lc={blockquote:Nu,break:Mu,code:Ru,delete:Fu,emphasis:Bu,footnoteReference:ju,heading:Uu,html:$u,imageReference:Hu,image:Vu,inlineCode:qu,linkReference:Wu,link:Gu,listItem:Yu,list:Ku,paragraph:Qu,root:Zu,strong:Ju,table:ec,tableCell:nc,tableRow:tc,text:ic,thematicBreak:oc,toml:cn,yaml:cn,definition:cn,footnoteDefinition:cn};function cn(){}const Xi=-1,fn=0,Vt=1,pn=2,er=3,tr=4,nr=5,rr=6,Ki=7,Qi=8,Zi=typeof self=="object"?self:globalThis,ac=(e,n)=>{const t=(i,l)=>(e.set(l,i),i),r=i=>{if(e.has(i))return e.get(i);const[l,o]=n[i];switch(l){case fn:case Xi:return t(o,i);case Vt:{const a=t([],i);for(const s of o)a.push(r(s));return a}case pn:{const a=t({},i);for(const[s,u]of o)a[r(s)]=r(u);return a}case er:return t(new Date(o),i);case tr:{const{source:a,flags:s}=o;return t(new RegExp(a,s),i)}case nr:{const a=t(new Map,i);for(const[s,u]of o)a.set(r(s),r(u));return a}case rr:{const a=t(new Set,i);for(const s of o)a.add(r(s));return a}case Ki:{const{name:a,message:s}=o;return t(new Zi[a](s),i)}case Qi:return t(BigInt(o),i);case"BigInt":return t(Object(BigInt(o)),i);case"ArrayBuffer":return t(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:a}=new Uint8Array(o);return t(new DataView(a),o)}}return t(new Zi[l](o),i)};return r},Ji=e=>ac(new Map,e)(0),At="",{toString:sc}={},{keys:uc}=Object,qt=e=>{const n=typeof e;if(n!=="object"||!e)return[fn,n];const t=sc.call(e).slice(8,-1);switch(t){case"Array":return[Vt,At];case"Object":return[pn,At];case"Date":return[er,At];case"RegExp":return[tr,At];case"Map":return[nr,At];case"Set":return[rr,At];case"DataView":return[Vt,t]}return t.includes("Array")?[Vt,t]:t.includes("Error")?[Ki,t]:[pn,t]},hn=([e,n])=>e===fn&&(n==="function"||n==="symbol"),cc=(e,n,t,r)=>{const i=(o,a)=>{const s=r.push(o)-1;return t.set(a,s),s},l=o=>{if(t.has(o))return t.get(o);let[a,s]=qt(o);switch(a){case fn:{let f=o;switch(s){case"bigint":a=Qi,f=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);f=null;break;case"undefined":return i([Xi],o)}return i([a,f],o)}case Vt:{if(s){let h=o;return s==="DataView"?h=new Uint8Array(o.buffer):s==="ArrayBuffer"&&(h=new Uint8Array(o)),i([s,[...h]],o)}const f=[],c=i([a,f],o);for(const h of o)f.push(l(h));return c}case pn:{if(s)switch(s){case"BigInt":return i([s,o.toString()],o);case"Boolean":case"Number":case"String":return i([s,o.valueOf()],o)}if(n&&"toJSON"in o)return l(o.toJSON());const f=[],c=i([a,f],o);for(const h of uc(o))(e||!hn(qt(o[h])))&&f.push([l(h),l(o[h])]);return c}case er:return i([a,o.toISOString()],o);case tr:{const{source:f,flags:c}=o;return i([a,{source:f,flags:c}],o)}case nr:{const f=[],c=i([a,f],o);for(const[h,p]of o)(e||!(hn(qt(h))||hn(qt(p))))&&f.push([l(h),l(p)]);return c}case rr:{const f=[],c=i([a,f],o);for(const h of o)(e||!hn(qt(h)))&&f.push(l(h));return c}}const{message:u}=o;return i([a,{name:s,message:u}],o)};return l},eo=(e,{json:n,lossy:t}={})=>{const r=[];return cc(!(n||t),!!n,new Map,r)(e),r},dn=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?Ji(eo(e,n)):structuredClone(e):(e,n)=>Ji(eo(e,n));function fc(e,n){const t=[{type:"text",value:"↩"}];return n>1&&t.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),t}function pc(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function hc(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",t=e.options.footnoteBackContent||fc,r=e.options.footnoteBackLabel||pc,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let s=-1;for(;++s<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[s]);if(!u)continue;const f=e.all(u),c=String(u.identifier).toUpperCase(),h=vt(c.toLowerCase());let p=0;const y=[],S=e.footnoteCounts.get(c);for(;S!==void 0&&++p<=S;){y.length>0&&y.push({type:"text",value:" "});let A=typeof t=="string"?t:t(s,p);typeof A=="string"&&(A={type:"text",value:A}),y.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+h+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(s,p),className:["data-footnote-backref"]},children:Array.isArray(A)?A:[A]})}const E=f[f.length-1];if(E&&E.type==="element"&&E.tagName==="p"){const A=E.children[E.children.length-1];A&&A.type==="text"?A.value+=" ":E.children.push({type:"text",value:" "}),E.children.push(...y)}else f.push(...y);const x={type:"element",tagName:"li",properties:{id:n+"fn-"+h},children:e.wrap(f,!0)};e.patch(u,x),a.push(x)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...dn(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
8
+ `});const u={type:"element",tagName:"li",properties:l,children:o};return e.patch(n,u),e.applyData(n,u)}function Ju(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const t=e.children;let r=-1;for(;!n&&++r<t.length;)n=Yi(t[r])}return n}function Yi(e){const n=e.spread;return n??e.children.length>1}function ec(e,n){const t={},r=e.all(n);let i=-1;for(typeof n.start=="number"&&n.start!==1&&(t.start=n.start);++i<r.length;){const o=r[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){t.className=["contains-task-list"];break}}const l={type:"element",tagName:n.ordered?"ol":"ul",properties:t,children:e.wrap(r,!0)};return e.patch(n,l),e.applyData(n,l)}function tc(e,n){const t={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function nc(e,n){const t={type:"root",children:e.wrap(e.all(n))};return e.patch(n,t),e.applyData(n,t)}function rc(e,n){const t={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function ic(e,n){const t=e.all(n),r=t.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(n.children[0],o),i.push(o)}if(t.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(t,!0)},a=Un(n.children[1]),s=di(n.children[n.children.length-1]);a&&s&&(o.position={start:a,end:s}),i.push(o)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(n,l),e.applyData(n,l)}function oc(e,n,t){const r=t?t.children:void 0,l=(r?r.indexOf(n):1)===0?"th":"td",o=t&&t.type==="table"?t.align:void 0,a=o?o.length:n.children.length;let s=-1;const u=[];for(;++s<a;){const c=n.children[s],h={},p=o?o[s]:void 0;p&&(h.align=p);let b={type:"element",tagName:l,properties:h,children:[]};c&&(b.children=e.all(c),e.patch(c,b),b=e.applyData(c,b)),u.push(b)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(n,f),e.applyData(n,f)}function lc(e,n){const t={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}const Xi=9,Qi=32;function ac(e){const n=String(e),t=/\r?\n|\r/g;let r=t.exec(n),i=0;const l=[];for(;r;)l.push(Ki(n.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=t.exec(n);return l.push(Ki(n.slice(i),i>0,!1)),l.join("")}function Ki(e,n,t){let r=0,i=e.length;if(n){let l=e.codePointAt(r);for(;l===Xi||l===Qi;)r++,l=e.codePointAt(r)}if(t){let l=e.codePointAt(i-1);for(;l===Xi||l===Qi;)i--,l=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function sc(e,n){const t={type:"text",value:ac(String(n.value))};return e.patch(n,t),e.applyData(n,t)}function uc(e,n){const t={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,t),e.applyData(n,t)}const cc={blockquote:Bu,break:$u,code:ju,delete:Hu,emphasis:Uu,footnoteReference:Vu,heading:qu,html:Wu,imageReference:Gu,image:Yu,inlineCode:Xu,linkReference:Qu,link:Ku,listItem:Zu,list:ec,paragraph:tc,root:nc,strong:rc,table:ic,tableCell:lc,tableRow:oc,text:sc,thematicBreak:uc,toml:fn,yaml:fn,definition:fn,footnoteDefinition:fn};function fn(){}const Zi=-1,pn=0,Gt=1,hn=2,nr=3,rr=4,ir=5,or=6,Ji=7,eo=8,to=typeof self=="object"?self:globalThis,fc=(e,n)=>{const t=(i,l)=>(e.set(l,i),i),r=i=>{if(e.has(i))return e.get(i);const[l,o]=n[i];switch(l){case pn:case Zi:return t(o,i);case Gt:{const a=t([],i);for(const s of o)a.push(r(s));return a}case hn:{const a=t({},i);for(const[s,u]of o)a[r(s)]=r(u);return a}case nr:return t(new Date(o),i);case rr:{const{source:a,flags:s}=o;return t(new RegExp(a,s),i)}case ir:{const a=t(new Map,i);for(const[s,u]of o)a.set(r(s),r(u));return a}case or:{const a=t(new Set,i);for(const s of o)a.add(r(s));return a}case Ji:{const{name:a,message:s}=o;return t(new to[a](s),i)}case eo:return t(BigInt(o),i);case"BigInt":return t(Object(BigInt(o)),i);case"ArrayBuffer":return t(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:a}=new Uint8Array(o);return t(new DataView(a),o)}}return t(new to[l](o),i)};return r},no=e=>fc(new Map,e)(0),It="",{toString:pc}={},{keys:hc}=Object,Yt=e=>{const n=typeof e;if(n!=="object"||!e)return[pn,n];const t=pc.call(e).slice(8,-1);switch(t){case"Array":return[Gt,It];case"Object":return[hn,It];case"Date":return[nr,It];case"RegExp":return[rr,It];case"Map":return[ir,It];case"Set":return[or,It];case"DataView":return[Gt,t]}return t.includes("Array")?[Gt,t]:t.includes("Error")?[Ji,t]:[hn,t]},dn=([e,n])=>e===pn&&(n==="function"||n==="symbol"),dc=(e,n,t,r)=>{const i=(o,a)=>{const s=r.push(o)-1;return t.set(a,s),s},l=o=>{if(t.has(o))return t.get(o);let[a,s]=Yt(o);switch(a){case pn:{let f=o;switch(s){case"bigint":a=eo,f=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);f=null;break;case"undefined":return i([Zi],o)}return i([a,f],o)}case Gt:{if(s){let h=o;return s==="DataView"?h=new Uint8Array(o.buffer):s==="ArrayBuffer"&&(h=new Uint8Array(o)),i([s,[...h]],o)}const f=[],c=i([a,f],o);for(const h of o)f.push(l(h));return c}case hn:{if(s)switch(s){case"BigInt":return i([s,o.toString()],o);case"Boolean":case"Number":case"String":return i([s,o.valueOf()],o)}if(n&&"toJSON"in o)return l(o.toJSON());const f=[],c=i([a,f],o);for(const h of hc(o))(e||!dn(Yt(o[h])))&&f.push([l(h),l(o[h])]);return c}case nr:return i([a,o.toISOString()],o);case rr:{const{source:f,flags:c}=o;return i([a,{source:f,flags:c}],o)}case ir:{const f=[],c=i([a,f],o);for(const[h,p]of o)(e||!(dn(Yt(h))||dn(Yt(p))))&&f.push([l(h),l(p)]);return c}case or:{const f=[],c=i([a,f],o);for(const h of o)(e||!dn(Yt(h)))&&f.push(l(h));return c}}const{message:u}=o;return i([a,{name:s,message:u}],o)};return l},ro=(e,{json:n,lossy:t}={})=>{const r=[];return dc(!(n||t),!!n,new Map,r)(e),r},mn=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?no(ro(e,n)):structuredClone(e):(e,n)=>no(ro(e,n));function mc(e,n){const t=[{type:"text",value:"↩"}];return n>1&&t.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),t}function gc(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function bc(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",t=e.options.footnoteBackContent||mc,r=e.options.footnoteBackLabel||gc,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let s=-1;for(;++s<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[s]);if(!u)continue;const f=e.all(u),c=String(u.identifier).toUpperCase(),h=At(c.toLowerCase());let p=0;const b=[],C=e.footnoteCounts.get(c);for(;C!==void 0&&++p<=C;){b.length>0&&b.push({type:"text",value:" "});let T=typeof t=="string"?t:t(s,p);typeof T=="string"&&(T={type:"text",value:T}),b.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+h+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(s,p),className:["data-footnote-backref"]},children:Array.isArray(T)?T:[T]})}const k=f[f.length-1];if(k&&k.type==="element"&&k.tagName==="p"){const T=k.children[k.children.length-1];T&&T.type==="text"?T.value+=" ":k.children.push({type:"text",value:" "}),k.children.push(...b)}else f.push(...b);const x={type:"element",tagName:"li",properties:{id:n+"fn-"+h},children:e.wrap(f,!0)};e.patch(u,x),a.push(x)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...mn(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
9
9
  `},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
10
- `}]}}const mn=(function(e){if(e==null)return bc;if(typeof e=="function")return gn(e);if(typeof e=="object")return Array.isArray(e)?dc(e):mc(e);if(typeof e=="string")return gc(e);throw new Error("Expected function, string, or object as test")});function dc(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=mn(e[t]);return gn(r);function r(...i){let l=-1;for(;++l<n.length;)if(n[l].apply(this,i))return!0;return!1}}function mc(e){const n=e;return gn(t);function t(r){const i=r;let l;for(l in e)if(i[l]!==n[l])return!1;return!0}}function gc(e){return gn(n);function n(t){return t&&t.type===e}}function gn(e){return n;function n(t,r,i){return!!(yc(t)&&e.call(this,t,typeof r=="number"?r:void 0,i||void 0))}}function bc(){return!0}function yc(e){return e!==null&&typeof e=="object"&&"type"in e}function hm(e){return e}const to=[],xc=!0,ir=!1,kc="skip";function no(e,n,t,r){let i;typeof n=="function"&&typeof t!="function"?(r=t,t=n):i=n;const l=mn(i),o=r?-1:1;a(e,void 0,[])();function a(s,u,f){const c=s&&typeof s=="object"?s:{};if(typeof c.type=="string"){const p=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(h,"name",{value:"node ("+(s.type+(p?"<"+p+">":""))+")"})}return h;function h(){let p=to,y,S,E;if((!n||l(s,u,f[f.length-1]||void 0))&&(p=wc(t(s,f)),p[0]===ir))return p;if("children"in s&&s.children){const x=s;if(x.children&&p[0]!==kc)for(S=(r?x.children.length:-1)+o,E=f.concat(x);S>-1&&S<x.children.length;){const A=x.children[S];if(y=a(A,S,E)(),y[0]===ir)return y;S=typeof y[1]=="number"?y[1]:S+o}}return p}}}function wc(e){return Array.isArray(e)?e:typeof e=="number"?[xc,e]:e==null?to:[e]}function or(e,n,t,r){let i,l,o;typeof n=="function"&&typeof t!="function"?(l=void 0,o=n,i=t):(l=n,o=t,i=r),no(e,l,a,i);function a(s,u){const f=u[u.length-1],c=f?f.children.indexOf(s):void 0;return o(s,c,f)}}const lr={}.hasOwnProperty,Sc={};function Ec(e,n){const t=n||Sc,r=new Map,i=new Map,l=new Map,o={...lc,...t.handlers},a={all:u,applyData:vc,definitionById:r,footnoteById:i,footnoteCounts:l,footnoteOrder:[],handlers:o,one:s,options:t,patch:Cc,wrap:Ac};return or(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const c=f.type==="definition"?r:i,h=String(f.identifier).toUpperCase();c.has(h)||c.set(h,f)}}),a;function s(f,c){const h=f.type,p=a.handlers[h];if(lr.call(a.handlers,h)&&p)return p(a,f,c);if(a.options.passThrough&&a.options.passThrough.includes(h)){if("children"in f){const{children:S,...E}=f,x=dn(E);return x.children=a.all(f),x}return dn(f)}return(a.options.unknownHandler||Tc)(a,f,c)}function u(f){const c=[];if("children"in f){const h=f.children;let p=-1;for(;++p<h.length;){const y=a.one(h[p],f);if(y){if(p&&h[p-1].type==="break"&&(!Array.isArray(y)&&y.type==="text"&&(y.value=ro(y.value)),!Array.isArray(y)&&y.type==="element")){const S=y.children[0];S&&S.type==="text"&&(S.value=ro(S.value))}Array.isArray(y)?c.push(...y):c.push(y)}}}return c}}function Cc(e,n){e.position&&(n.position=wa(e))}function vc(e,n){let t=n;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,l=e.data.hProperties;if(typeof r=="string")if(t.type==="element")t.tagName=r;else{const o="children"in t?t.children:[t];t={type:"element",tagName:r,properties:{},children:o}}t.type==="element"&&l&&Object.assign(t.properties,dn(l)),"children"in t&&t.children&&i!==null&&i!==void 0&&(t.children=i)}return t}function Tc(e,n){const t=n.data||{},r="value"in n&&!(lr.call(t,"hProperties")||lr.call(t,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Ac(e,n){const t=[];let r=-1;for(n&&t.push({type:"text",value:`
10
+ `}]}}const gn=(function(e){if(e==null)return wc;if(typeof e=="function")return bn(e);if(typeof e=="object")return Array.isArray(e)?yc(e):kc(e);if(typeof e=="string")return xc(e);throw new Error("Expected function, string, or object as test")});function yc(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=gn(e[t]);return bn(r);function r(...i){let l=-1;for(;++l<n.length;)if(n[l].apply(this,i))return!0;return!1}}function kc(e){const n=e;return bn(t);function t(r){const i=r;let l;for(l in e)if(i[l]!==n[l])return!1;return!0}}function xc(e){return bn(n);function n(t){return t&&t.type===e}}function bn(e){return n;function n(t,r,i){return!!(Sc(t)&&e.call(this,t,typeof r=="number"?r:void 0,i||void 0))}}function wc(){return!0}function Sc(e){return e!==null&&typeof e=="object"&&"type"in e}function Dm(e){return e}const io=[],Cc=!0,lr=!1,vc="skip";function oo(e,n,t,r){let i;typeof n=="function"&&typeof t!="function"?(r=t,t=n):i=n;const l=gn(i),o=r?-1:1;a(e,void 0,[])();function a(s,u,f){const c=s&&typeof s=="object"?s:{};if(typeof c.type=="string"){const p=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(h,"name",{value:"node ("+(s.type+(p?"<"+p+">":""))+")"})}return h;function h(){let p=io,b,C,k;if((!n||l(s,u,f[f.length-1]||void 0))&&(p=Ec(t(s,f)),p[0]===lr))return p;if("children"in s&&s.children){const x=s;if(x.children&&p[0]!==vc)for(C=(r?x.children.length:-1)+o,k=f.concat(x);C>-1&&C<x.children.length;){const T=x.children[C];if(b=a(T,C,k)(),b[0]===lr)return b;C=typeof b[1]=="number"?b[1]:C+o}}return p}}}function Ec(e){return Array.isArray(e)?e:typeof e=="number"?[Cc,e]:e==null?io:[e]}function ar(e,n,t,r){let i,l,o;typeof n=="function"&&typeof t!="function"?(l=void 0,o=n,i=t):(l=n,o=t,i=r),oo(e,l,a,i);function a(s,u){const f=u[u.length-1],c=f?f.children.indexOf(s):void 0;return o(s,c,f)}}const sr={}.hasOwnProperty,Tc={};function Ac(e,n){const t=n||Tc,r=new Map,i=new Map,l=new Map,o={...cc,...t.handlers},a={all:u,applyData:Ic,definitionById:r,footnoteById:i,footnoteCounts:l,footnoteOrder:[],handlers:o,one:s,options:t,patch:_c,wrap:Pc};return ar(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const c=f.type==="definition"?r:i,h=String(f.identifier).toUpperCase();c.has(h)||c.set(h,f)}}),a;function s(f,c){const h=f.type,p=a.handlers[h];if(sr.call(a.handlers,h)&&p)return p(a,f,c);if(a.options.passThrough&&a.options.passThrough.includes(h)){if("children"in f){const{children:C,...k}=f,x=mn(k);return x.children=a.all(f),x}return mn(f)}return(a.options.unknownHandler||Lc)(a,f,c)}function u(f){const c=[];if("children"in f){const h=f.children;let p=-1;for(;++p<h.length;){const b=a.one(h[p],f);if(b){if(p&&h[p-1].type==="break"&&(!Array.isArray(b)&&b.type==="text"&&(b.value=lo(b.value)),!Array.isArray(b)&&b.type==="element")){const C=b.children[0];C&&C.type==="text"&&(C.value=lo(C.value))}Array.isArray(b)?c.push(...b):c.push(b)}}}return c}}function _c(e,n){e.position&&(n.position=Ea(e))}function Ic(e,n){let t=n;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,l=e.data.hProperties;if(typeof r=="string")if(t.type==="element")t.tagName=r;else{const o="children"in t?t.children:[t];t={type:"element",tagName:r,properties:{},children:o}}t.type==="element"&&l&&Object.assign(t.properties,mn(l)),"children"in t&&t.children&&i!==null&&i!==void 0&&(t.children=i)}return t}function Lc(e,n){const t=n.data||{},r="value"in n&&!(sr.call(t,"hProperties")||sr.call(t,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Pc(e,n){const t=[];let r=-1;for(n&&t.push({type:"text",value:`
11
11
  `});++r<e.length;)r&&t.push({type:"text",value:`
12
12
  `}),t.push(e[r]);return n&&e.length>0&&t.push({type:"text",value:`
13
- `}),t}function ro(e){let n=0,t=e.charCodeAt(n);for(;t===9||t===32;)n++,t=e.charCodeAt(n);return e.slice(n)}function io(e,n){const t=Ec(e,n),r=t.one(e,void 0),i=hc(t),l=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&l.children.push({type:"text",value:`
14
- `},i),l}function _c(e,n){return e&&"run"in e?async function(t,r){const i=io(t,{file:r,...n});await e.run(i,r)}:function(t,r){return io(t,{file:r,...e||n})}}function oo(e){if(e)throw e}var ar,lo;function Ic(){if(lo)return ar;lo=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(u){return typeof Array.isArray=="function"?Array.isArray(u):n.call(u)==="[object Array]"},l=function(u){if(!u||n.call(u)!=="[object Object]")return!1;var f=e.call(u,"constructor"),c=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!f&&!c)return!1;var h;for(h in u);return typeof h>"u"||e.call(u,h)},o=function(u,f){t&&f.name==="__proto__"?t(u,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):u[f.name]=f.newValue},a=function(u,f){if(f==="__proto__")if(e.call(u,f)){if(r)return r(u,f).value}else return;return u[f]};return ar=function s(){var u,f,c,h,p,y,S=arguments[0],E=1,x=arguments.length,A=!1;for(typeof S=="boolean"&&(A=S,S=arguments[1]||{},E=2),(S==null||typeof S!="object"&&typeof S!="function")&&(S={});E<x;++E)if(u=arguments[E],u!=null)for(f in u)c=a(S,f),h=a(u,f),S!==h&&(A&&h&&(l(h)||(p=i(h)))?(p?(p=!1,y=c&&i(c)?c:[]):y=c&&l(c)?c:{},o(S,{name:f,newValue:s(A,y,h)})):typeof h<"u"&&o(S,{name:f,newValue:h}));return S},ar}var Lc=Ic();const sr=Bn(Lc);function ur(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Pc(){const e=[],n={run:t,use:r};return n;function t(...i){let l=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);a(null,...i);function a(s,...u){const f=e[++l];let c=-1;if(s){o(s);return}for(;++c<i.length;)(u[c]===null||u[c]===void 0)&&(u[c]=i[c]);i=u,f?Dc(f,a)(...u):o(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),n}}function Dc(e,n){let t;return r;function r(...o){const a=e.length>o.length;let s;a&&o.push(i);try{s=e.apply(this,o)}catch(u){const f=u;if(a&&t)throw f;return i(f)}a||(s&&s.then&&typeof s.then=="function"?s.then(l,i):s instanceof Error?i(s):l(s))}function i(o,...a){t||(t=!0,n(o,...a))}function l(o){i(null,o)}}const We={basename:Oc,dirname:zc,extname:Nc,join:Mc,sep:"/"};function Oc(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');Wt(e);let t=0,r=-1,i=e.length,l;if(n===void 0||n.length===0||n.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(l){t=i+1;break}}else r<0&&(l=!0,r=i+1);return r<0?"":e.slice(t,r)}if(n===e)return"";let o=-1,a=n.length-1;for(;i--;)if(e.codePointAt(i)===47){if(l){t=i+1;break}}else o<0&&(l=!0,o=i+1),a>-1&&(e.codePointAt(i)===n.codePointAt(a--)?a<0&&(r=i):(a=-1,r=o));return t===r?r=o:r<0&&(r=e.length),e.slice(t,r)}function zc(e){if(Wt(e),e.length===0)return".";let n=-1,t=e.length,r;for(;--t;)if(e.codePointAt(t)===47){if(r){n=t;break}}else r||(r=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function Nc(e){Wt(e);let n=e.length,t=-1,r=0,i=-1,l=0,o;for(;n--;){const a=e.codePointAt(n);if(a===47){if(o){r=n+1;break}continue}t<0&&(o=!0,t=n+1),a===46?i<0?i=n:l!==1&&(l=1):i>-1&&(l=-1)}return i<0||t<0||l===0||l===1&&i===t-1&&i===r+1?"":e.slice(i,t)}function Mc(...e){let n=-1,t;for(;++n<e.length;)Wt(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":Rc(t)}function Rc(e){Wt(e);const n=e.codePointAt(0)===47;let t=Fc(e,!n);return t.length===0&&!n&&(t="."),t.length>0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function Fc(e,n){let t="",r=0,i=-1,l=0,o=-1,a,s;for(;++o<=e.length;){if(o<e.length)a=e.codePointAt(o);else{if(a===47)break;a=47}if(a===47){if(!(i===o-1||l===1))if(i!==o-1&&l===2){if(t.length<2||r!==2||t.codePointAt(t.length-1)!==46||t.codePointAt(t.length-2)!==46){if(t.length>2){if(s=t.lastIndexOf("/"),s!==t.length-1){s<0?(t="",r=0):(t=t.slice(0,s),r=t.length-1-t.lastIndexOf("/")),i=o,l=0;continue}}else if(t.length>0){t="",r=0,i=o,l=0;continue}}n&&(t=t.length>0?t+"/..":"..",r=2)}else t.length>0?t+="/"+e.slice(i+1,o):t=e.slice(i+1,o),r=o-i-1;i=o,l=0}else a===46&&l>-1?l++:l=-1}return t}function Wt(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Bc={cwd:jc};function jc(){return"/"}function cr(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Uc(e){if(typeof e=="string")e=new URL(e);else if(!cr(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return $c(e)}function $c(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const n=e.pathname;let t=-1;for(;++t<n.length;)if(n.codePointAt(t)===37&&n.codePointAt(t+1)===50){const r=n.codePointAt(t+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(n)}const fr=["history","path","basename","stem","extname","dirname"];class ao{constructor(n){let t;n?cr(n)?t={path:n}:typeof n=="string"||Hc(n)?t={value:n}:t=n:t={},this.cwd="cwd"in t?"":Bc.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<fr.length;){const l=fr[r];l in t&&t[l]!==void 0&&t[l]!==null&&(this[l]=l==="history"?[...t[l]]:t[l])}let i;for(i in t)fr.includes(i)||(this[i]=t[i])}get basename(){return typeof this.path=="string"?We.basename(this.path):void 0}set basename(n){hr(n,"basename"),pr(n,"basename"),this.path=We.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?We.dirname(this.path):void 0}set dirname(n){so(this.basename,"dirname"),this.path=We.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?We.extname(this.path):void 0}set extname(n){if(pr(n,"extname"),so(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=We.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){cr(n)&&(n=Uc(n)),hr(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?We.basename(this.path,this.extname):void 0}set stem(n){hr(n,"stem"),pr(n,"stem"),this.path=We.join(this.dirname||"",n+(this.extname||""))}fail(n,t,r){const i=this.message(n,t,r);throw i.fatal=!0,i}info(n,t,r){const i=this.message(n,t,r);return i.fatal=void 0,i}message(n,t,r){const i=new Te(n,t,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function pr(e,n){if(e&&e.includes(We.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+We.sep+"`")}function hr(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function so(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function Hc(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Vc=(function(e){const r=this.constructor.prototype,i=r[e],l=function(){return i.apply(l,arguments)};return Object.setPrototypeOf(l,r),l}),qc={}.hasOwnProperty;class dr extends Vc{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=Pc()}copy(){const n=new dr;let t=-1;for(;++t<this.attachers.length;){const r=this.attachers[t];n.use(...r)}return n.data(sr(!0,{},this.namespace)),n}data(n,t){return typeof n=="string"?arguments.length===2?(br("data",this.frozen),this.namespace[n]=t,this):qc.call(this.namespace,n)&&this.namespace[n]||void 0:n?(br("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=t.call(n,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const t=bn(n),r=this.parser||this.Parser;return mr("parse",r),r(String(t),t)}process(n,t){const r=this;return this.freeze(),mr("process",this.parser||this.Parser),gr("process",this.compiler||this.Compiler),t?i(void 0,t):new Promise(i);function i(l,o){const a=bn(n),s=r.parse(a);r.run(s,a,function(f,c,h){if(f||!c||!h)return u(f);const p=c,y=r.stringify(p,h);Yc(y)?h.value=y:h.result=y,u(f,h)});function u(f,c){f||!c?o(f):l?l(c):t(void 0,c)}}}processSync(n){let t=!1,r;return this.freeze(),mr("processSync",this.parser||this.Parser),gr("processSync",this.compiler||this.Compiler),this.process(n,i),co("processSync","process",t),r;function i(l,o){t=!0,oo(l),r=o}}run(n,t,r){uo(n),this.freeze();const i=this.transformers;return!r&&typeof t=="function"&&(r=t,t=void 0),r?l(void 0,r):new Promise(l);function l(o,a){const s=bn(t);i.run(n,s,u);function u(f,c,h){const p=c||n;f?a(f):o?o(p):r(void 0,p,h)}}}runSync(n,t){let r=!1,i;return this.run(n,t,l),co("runSync","run",r),i;function l(o,a){oo(o),i=a,r=!0}}stringify(n,t){this.freeze();const r=bn(t),i=this.compiler||this.Compiler;return gr("stringify",i),uo(n),i(n,r)}use(n,...t){const r=this.attachers,i=this.namespace;if(br("use",this.frozen),n!=null)if(typeof n=="function")s(n,t);else if(typeof n=="object")Array.isArray(n)?a(n):o(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function l(u){if(typeof u=="function")s(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[f,...c]=u;s(f,c)}else o(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function o(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(u.plugins),u.settings&&(i.settings=sr(!0,i.settings,u.settings))}function a(u){let f=-1;if(u!=null)if(Array.isArray(u))for(;++f<u.length;){const c=u[f];l(c)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function s(u,f){let c=-1,h=-1;for(;++c<r.length;)if(r[c][0]===u){h=c;break}if(h===-1)r.push([u,...f]);else if(f.length>0){let[p,...y]=f;const S=r[h][1];ur(S)&&ur(p)&&(p=sr(!0,S,p)),r[h]=[u,p,...y]}}}}const Wc=new dr().freeze();function mr(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function gr(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function br(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function uo(e){if(!ur(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function co(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function bn(e){return Gc(e)?e:new ao(e)}function Gc(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Yc(e){return typeof e=="string"||Xc(e)}function Xc(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Kc="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",fo=[],po={allowDangerousHtml:!0},Qc=/^(https?|ircs?|mailto|xmpp)$/i,Zc=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Jc(e){const n=ef(e),t=tf(e);return nf(n.runSync(n.parse(t),t),e)}function ef(e){const n=e.rehypePlugins||fo,t=e.remarkPlugins||fo,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...po}:po;return Wc().use(zu).use(t).use(_c,r).use(n)}function tf(e){const n=e.children||"",t=new ao;return typeof n=="string"&&(t.value=n),t}function nf(e,n){const t=n.allowedElements,r=n.allowElement,i=n.components,l=n.disallowedElements,o=n.skipHtml,a=n.unwrapDisallowed,s=n.urlTransform||rf;for(const f of Zc)Object.hasOwn(n,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+Kc+f.id,void 0);return or(e,u),Ta(e,{Fragment:D.Fragment,components:i,ignoreInvalidStyle:!0,jsx:D.jsx,jsxs:D.jsxs,passKeys:!0,passNode:!0});function u(f,c,h){if(f.type==="raw"&&h&&typeof c=="number")return o?h.children.splice(c,1):h.children[c]={type:"text",value:f.value},c;if(f.type==="element"){let p;for(p in Wn)if(Object.hasOwn(Wn,p)&&Object.hasOwn(f.properties,p)){const y=f.properties[p],S=Wn[p];(S===null||S.includes(f.tagName))&&(f.properties[p]=s(String(y||""),p,f))}}if(f.type==="element"){let p=t?!t.includes(f.tagName):l?l.includes(f.tagName):!1;if(!p&&r&&typeof c=="number"&&(p=!r(f,c,h)),p&&h&&typeof c=="number")return a&&f.children?h.children.splice(c,1,...f.children):h.children.splice(c,1),c}}}function rf(e){const n=e.indexOf(":"),t=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return n===-1||i!==-1&&n>i||t!==-1&&n>t||r!==-1&&n>r||Qc.test(e.slice(0,n))?e:""}function ho(e,n){const t=String(e);if(typeof n!="string")throw new TypeError("Expected character");let r=0,i=t.indexOf(n);for(;i!==-1;)r++,i=t.indexOf(n,i+n.length);return r}function of(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function lf(e,n,t){const i=mn((t||{}).ignore||[]),l=af(n);let o=-1;for(;++o<l.length;)no(e,"text",a);function a(u,f){let c=-1,h;for(;++c<f.length;){const p=f[c],y=h?h.children:void 0;if(i(p,y?y.indexOf(p):void 0,h))return;h=p}if(h)return s(u,f)}function s(u,f){const c=f[f.length-1],h=l[o][0],p=l[o][1];let y=0;const E=c.children.indexOf(u);let x=!1,A=[];h.lastIndex=0;let v=h.exec(u.value);for(;v;){const $=v.index,M={index:v.index,input:v.input,stack:[...f,u]};let w=p(...v,M);if(typeof w=="string"&&(w=w.length>0?{type:"text",value:w}:void 0),w===!1?h.lastIndex=$+1:(y!==$&&A.push({type:"text",value:u.value.slice(y,$)}),Array.isArray(w)?A.push(...w):w&&A.push(w),y=$+v[0].length,x=!0),!h.global)break;v=h.exec(u.value)}return x?(y<u.value.length&&A.push({type:"text",value:u.value.slice(y)}),c.children.splice(E,1,...A)):A=[u],E+A.length}}function af(e){const n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const t=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<t.length;){const i=t[r];n.push([sf(i[0]),uf(i[1])])}return n}function sf(e){return typeof e=="string"?new RegExp(of(e),"g"):e}function uf(e){return typeof e=="function"?e:function(){return e}}const yr="phrasing",xr=["autolink","link","image","label"];function cf(){return{transforms:[bf],enter:{literalAutolink:pf,literalAutolinkEmail:kr,literalAutolinkHttp:kr,literalAutolinkWww:kr},exit:{literalAutolink:gf,literalAutolinkEmail:mf,literalAutolinkHttp:hf,literalAutolinkWww:df}}}function ff(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:yr,notInConstruct:xr},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:yr,notInConstruct:xr},{character:":",before:"[ps]",after:"\\/",inConstruct:yr,notInConstruct:xr}]}}function pf(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function kr(e){this.config.enter.autolinkProtocol.call(this,e)}function hf(e){this.config.exit.autolinkProtocol.call(this,e)}function df(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function mf(e){this.config.exit.autolinkEmail.call(this,e)}function gf(e){this.exit(e)}function bf(e){lf(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,yf],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),xf]],{ignore:["link","linkReference"]})}function yf(e,n,t,r,i){let l="";if(!mo(i)||(/^w/i.test(n)&&(t=n+t,n="",l="http://"),!kf(t)))return!1;const o=wf(t+r);if(!o[0])return!1;const a={type:"link",title:null,url:l+n+o[0],children:[{type:"text",value:n+o[0]}]};return o[1]?[a,{type:"text",value:o[1]}]:a}function xf(e,n,t,r){return!mo(r,!0)||/[-\d_]$/.test(t)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+t,children:[{type:"text",value:n+"@"+t}]}}function kf(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function wf(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let t=n[0],r=t.indexOf(")");const i=ho(e,"(");let l=ho(e,")");for(;r!==-1&&i>l;)e+=t.slice(0,r+1),t=t.slice(r+1),r=t.indexOf(")"),l++;return[e,t]}function mo(e,n){const t=e.input.charCodeAt(e.index-1);return(e.index===0||mt(t)||an(t))&&(!n||t!==47)}go.peek=Lf;function Sf(){this.buffer()}function Ef(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Cf(){this.buffer()}function vf(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Tf(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=$e(this.sliceSerialize(e)).toLowerCase(),t.label=n}function Af(e){this.exit(e)}function _f(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=$e(this.sliceSerialize(e)).toLowerCase(),t.label=n}function If(e){this.exit(e)}function Lf(){return"["}function go(e,n,t,r){const i=t.createTracker(r);let l=i.move("[^");const o=t.enter("footnoteReference"),a=t.enter("reference");return l+=i.move(t.safe(t.associationId(e),{after:"]",before:l})),a(),o(),l+=i.move("]"),l}function Pf(){return{enter:{gfmFootnoteCallString:Sf,gfmFootnoteCall:Ef,gfmFootnoteDefinitionLabelString:Cf,gfmFootnoteDefinition:vf},exit:{gfmFootnoteCallString:Tf,gfmFootnoteCall:Af,gfmFootnoteDefinitionLabelString:_f,gfmFootnoteDefinition:If}}}function Df(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:t,footnoteReference:go},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function t(r,i,l,o){const a=l.createTracker(o);let s=a.move("[^");const u=l.enter("footnoteDefinition"),f=l.enter("label");return s+=a.move(l.safe(l.associationId(r),{before:s,after:"]"})),f(),s+=a.move("]:"),r.children&&r.children.length>0&&(a.shift(4),s+=a.move((n?`
15
- `:" ")+l.indentLines(l.containerFlow(r,a.current()),n?bo:Of))),u(),s}}function Of(e,n,t){return n===0?e:bo(e,n,t)}function bo(e,n,t){return(t?"":" ")+e}const zf=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];yo.peek=Bf;function Nf(){return{canContainEols:["delete"],enter:{strikethrough:Rf},exit:{strikethrough:Ff}}}function Mf(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:zf}],handlers:{delete:yo}}}function Rf(e){this.enter({type:"delete",children:[]},e)}function Ff(e){this.exit(e)}function yo(e,n,t,r){const i=t.createTracker(r),l=t.enter("strikethrough");let o=i.move("~~");return o+=t.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),l(),o}function Bf(){return"~"}function jf(e){return e.length}function Uf(e,n){const t=n||{},r=(t.align||[]).concat(),i=t.stringLength||jf,l=[],o=[],a=[],s=[];let u=0,f=-1;for(;++f<e.length;){const S=[],E=[];let x=-1;for(e[f].length>u&&(u=e[f].length);++x<e[f].length;){const A=$f(e[f][x]);if(t.alignDelimiters!==!1){const v=i(A);E[x]=v,(s[x]===void 0||v>s[x])&&(s[x]=v)}S.push(A)}o[f]=S,a[f]=E}let c=-1;if(typeof r=="object"&&"length"in r)for(;++c<u;)l[c]=xo(r[c]);else{const S=xo(r);for(;++c<u;)l[c]=S}c=-1;const h=[],p=[];for(;++c<u;){const S=l[c];let E="",x="";S===99?(E=":",x=":"):S===108?E=":":S===114&&(x=":");let A=t.alignDelimiters===!1?1:Math.max(1,s[c]-E.length-x.length);const v=E+"-".repeat(A)+x;t.alignDelimiters!==!1&&(A=E.length+A+x.length,A>s[c]&&(s[c]=A),p[c]=A),h[c]=v}o.splice(1,0,h),a.splice(1,0,p),f=-1;const y=[];for(;++f<o.length;){const S=o[f],E=a[f];c=-1;const x=[];for(;++c<u;){const A=S[c]||"";let v="",$="";if(t.alignDelimiters!==!1){const M=s[c]-(E[c]||0),w=l[c];w===114?v=" ".repeat(M):w===99?M%2?(v=" ".repeat(M/2+.5),$=" ".repeat(M/2-.5)):(v=" ".repeat(M/2),$=v):$=" ".repeat(M)}t.delimiterStart!==!1&&!c&&x.push("|"),t.padding!==!1&&!(t.alignDelimiters===!1&&A==="")&&(t.delimiterStart!==!1||c)&&x.push(" "),t.alignDelimiters!==!1&&x.push(v),x.push(A),t.alignDelimiters!==!1&&x.push($),t.padding!==!1&&x.push(" "),(t.delimiterEnd!==!1||c!==u-1)&&x.push("|")}y.push(t.delimiterEnd===!1?x.join("").replace(/ +$/,""):x.join(""))}return y.join(`
16
- `)}function $f(e){return e==null?"":String(e)}function xo(e){const n=typeof e=="string"?e.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}function Hf(e,n,t,r){const i=t.enter("blockquote"),l=t.createTracker(r);l.move("> "),l.shift(2);const o=t.indentLines(t.containerFlow(e,l.current()),Vf);return i(),o}function Vf(e,n,t){return">"+(t?"":" ")+e}function qf(e,n){return ko(e,n.inConstruct,!0)&&!ko(e,n.notInConstruct,!1)}function ko(e,n,t){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return t;let r=-1;for(;++r<n.length;)if(e.includes(n[r]))return!0;return!1}function wo(e,n,t,r){let i=-1;for(;++i<t.unsafe.length;)if(t.unsafe[i].character===`
17
- `&&qf(t.stack,t.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
18
- `}function Wf(e,n){const t=String(e);let r=t.indexOf(n),i=r,l=0,o=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++l>o&&(o=l):l=1,i=r+n.length,r=t.indexOf(n,i);return o}function Gf(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function Yf(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function Xf(e,n,t,r){const i=Yf(t),l=e.value||"",o=i==="`"?"GraveAccent":"Tilde";if(Gf(e,t)){const c=t.enter("codeIndented"),h=t.indentLines(l,Kf);return c(),h}const a=t.createTracker(r),s=i.repeat(Math.max(Wf(l,i)+1,3)),u=t.enter("codeFenced");let f=a.move(s);if(e.lang){const c=t.enter(`codeFencedLang${o}`);f+=a.move(t.safe(e.lang,{before:f,after:" ",encode:["`"],...a.current()})),c()}if(e.lang&&e.meta){const c=t.enter(`codeFencedMeta${o}`);f+=a.move(" "),f+=a.move(t.safe(e.meta,{before:f,after:`
13
+ `}),t}function lo(e){let n=0,t=e.charCodeAt(n);for(;t===9||t===32;)n++,t=e.charCodeAt(n);return e.slice(n)}function ao(e,n){const t=Ac(e,n),r=t.one(e,void 0),i=bc(t),l=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&l.children.push({type:"text",value:`
14
+ `},i),l}function Nc(e,n){return e&&"run"in e?async function(t,r){const i=ao(t,{file:r,...n});await e.run(i,r)}:function(t,r){return ao(t,{file:r,...e||n})}}function so(e){if(e)throw e}var ur,uo;function Dc(){if(uo)return ur;uo=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(u){return typeof Array.isArray=="function"?Array.isArray(u):n.call(u)==="[object Array]"},l=function(u){if(!u||n.call(u)!=="[object Object]")return!1;var f=e.call(u,"constructor"),c=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!f&&!c)return!1;var h;for(h in u);return typeof h>"u"||e.call(u,h)},o=function(u,f){t&&f.name==="__proto__"?t(u,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):u[f.name]=f.newValue},a=function(u,f){if(f==="__proto__")if(e.call(u,f)){if(r)return r(u,f).value}else return;return u[f]};return ur=function s(){var u,f,c,h,p,b,C=arguments[0],k=1,x=arguments.length,T=!1;for(typeof C=="boolean"&&(T=C,C=arguments[1]||{},k=2),(C==null||typeof C!="object"&&typeof C!="function")&&(C={});k<x;++k)if(u=arguments[k],u!=null)for(f in u)c=a(C,f),h=a(u,f),C!==h&&(T&&h&&(l(h)||(p=i(h)))?(p?(p=!1,b=c&&i(c)?c:[]):b=c&&l(c)?c:{},o(C,{name:f,newValue:s(T,b,h)})):typeof h<"u"&&o(C,{name:f,newValue:h}));return C},ur}var zc=Dc();const cr=jn(zc);function fr(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Mc(){const e=[],n={run:t,use:r};return n;function t(...i){let l=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);a(null,...i);function a(s,...u){const f=e[++l];let c=-1;if(s){o(s);return}for(;++c<i.length;)(u[c]===null||u[c]===void 0)&&(u[c]=i[c]);i=u,f?Oc(f,a)(...u):o(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),n}}function Oc(e,n){let t;return r;function r(...o){const a=e.length>o.length;let s;a&&o.push(i);try{s=e.apply(this,o)}catch(u){const f=u;if(a&&t)throw f;return i(f)}a||(s&&s.then&&typeof s.then=="function"?s.then(l,i):s instanceof Error?i(s):l(s))}function i(o,...a){t||(t=!0,n(o,...a))}function l(o){i(null,o)}}const Ge={basename:Rc,dirname:Fc,extname:Bc,join:$c,sep:"/"};function Rc(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');Xt(e);let t=0,r=-1,i=e.length,l;if(n===void 0||n.length===0||n.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(l){t=i+1;break}}else r<0&&(l=!0,r=i+1);return r<0?"":e.slice(t,r)}if(n===e)return"";let o=-1,a=n.length-1;for(;i--;)if(e.codePointAt(i)===47){if(l){t=i+1;break}}else o<0&&(l=!0,o=i+1),a>-1&&(e.codePointAt(i)===n.codePointAt(a--)?a<0&&(r=i):(a=-1,r=o));return t===r?r=o:r<0&&(r=e.length),e.slice(t,r)}function Fc(e){if(Xt(e),e.length===0)return".";let n=-1,t=e.length,r;for(;--t;)if(e.codePointAt(t)===47){if(r){n=t;break}}else r||(r=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function Bc(e){Xt(e);let n=e.length,t=-1,r=0,i=-1,l=0,o;for(;n--;){const a=e.codePointAt(n);if(a===47){if(o){r=n+1;break}continue}t<0&&(o=!0,t=n+1),a===46?i<0?i=n:l!==1&&(l=1):i>-1&&(l=-1)}return i<0||t<0||l===0||l===1&&i===t-1&&i===r+1?"":e.slice(i,t)}function $c(...e){let n=-1,t;for(;++n<e.length;)Xt(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":jc(t)}function jc(e){Xt(e);const n=e.codePointAt(0)===47;let t=Hc(e,!n);return t.length===0&&!n&&(t="."),t.length>0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function Hc(e,n){let t="",r=0,i=-1,l=0,o=-1,a,s;for(;++o<=e.length;){if(o<e.length)a=e.codePointAt(o);else{if(a===47)break;a=47}if(a===47){if(!(i===o-1||l===1))if(i!==o-1&&l===2){if(t.length<2||r!==2||t.codePointAt(t.length-1)!==46||t.codePointAt(t.length-2)!==46){if(t.length>2){if(s=t.lastIndexOf("/"),s!==t.length-1){s<0?(t="",r=0):(t=t.slice(0,s),r=t.length-1-t.lastIndexOf("/")),i=o,l=0;continue}}else if(t.length>0){t="",r=0,i=o,l=0;continue}}n&&(t=t.length>0?t+"/..":"..",r=2)}else t.length>0?t+="/"+e.slice(i+1,o):t=e.slice(i+1,o),r=o-i-1;i=o,l=0}else a===46&&l>-1?l++:l=-1}return t}function Xt(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Uc={cwd:Vc};function Vc(){return"/"}function pr(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function qc(e){if(typeof e=="string")e=new URL(e);else if(!pr(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return Wc(e)}function Wc(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const n=e.pathname;let t=-1;for(;++t<n.length;)if(n.codePointAt(t)===37&&n.codePointAt(t+1)===50){const r=n.codePointAt(t+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(n)}const hr=["history","path","basename","stem","extname","dirname"];class co{constructor(n){let t;n?pr(n)?t={path:n}:typeof n=="string"||Gc(n)?t={value:n}:t=n:t={},this.cwd="cwd"in t?"":Uc.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<hr.length;){const l=hr[r];l in t&&t[l]!==void 0&&t[l]!==null&&(this[l]=l==="history"?[...t[l]]:t[l])}let i;for(i in t)hr.includes(i)||(this[i]=t[i])}get basename(){return typeof this.path=="string"?Ge.basename(this.path):void 0}set basename(n){mr(n,"basename"),dr(n,"basename"),this.path=Ge.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?Ge.dirname(this.path):void 0}set dirname(n){fo(this.basename,"dirname"),this.path=Ge.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?Ge.extname(this.path):void 0}set extname(n){if(dr(n,"extname"),fo(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Ge.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){pr(n)&&(n=qc(n)),mr(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?Ge.basename(this.path,this.extname):void 0}set stem(n){mr(n,"stem"),dr(n,"stem"),this.path=Ge.join(this.dirname||"",n+(this.extname||""))}fail(n,t,r){const i=this.message(n,t,r);throw i.fatal=!0,i}info(n,t,r){const i=this.message(n,t,r);return i.fatal=void 0,i}message(n,t,r){const i=new Le(n,t,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function dr(e,n){if(e&&e.includes(Ge.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+Ge.sep+"`")}function mr(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function fo(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function Gc(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Yc=(function(e){const r=this.constructor.prototype,i=r[e],l=function(){return i.apply(l,arguments)};return Object.setPrototypeOf(l,r),l}),Xc={}.hasOwnProperty;class gr extends Yc{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=Mc()}copy(){const n=new gr;let t=-1;for(;++t<this.attachers.length;){const r=this.attachers[t];n.use(...r)}return n.data(cr(!0,{},this.namespace)),n}data(n,t){return typeof n=="string"?arguments.length===2?(kr("data",this.frozen),this.namespace[n]=t,this):Xc.call(this.namespace,n)&&this.namespace[n]||void 0:n?(kr("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=t.call(n,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const t=yn(n),r=this.parser||this.Parser;return br("parse",r),r(String(t),t)}process(n,t){const r=this;return this.freeze(),br("process",this.parser||this.Parser),yr("process",this.compiler||this.Compiler),t?i(void 0,t):new Promise(i);function i(l,o){const a=yn(n),s=r.parse(a);r.run(s,a,function(f,c,h){if(f||!c||!h)return u(f);const p=c,b=r.stringify(p,h);Zc(b)?h.value=b:h.result=b,u(f,h)});function u(f,c){f||!c?o(f):l?l(c):t(void 0,c)}}}processSync(n){let t=!1,r;return this.freeze(),br("processSync",this.parser||this.Parser),yr("processSync",this.compiler||this.Compiler),this.process(n,i),ho("processSync","process",t),r;function i(l,o){t=!0,so(l),r=o}}run(n,t,r){po(n),this.freeze();const i=this.transformers;return!r&&typeof t=="function"&&(r=t,t=void 0),r?l(void 0,r):new Promise(l);function l(o,a){const s=yn(t);i.run(n,s,u);function u(f,c,h){const p=c||n;f?a(f):o?o(p):r(void 0,p,h)}}}runSync(n,t){let r=!1,i;return this.run(n,t,l),ho("runSync","run",r),i;function l(o,a){so(o),i=a,r=!0}}stringify(n,t){this.freeze();const r=yn(t),i=this.compiler||this.Compiler;return yr("stringify",i),po(n),i(n,r)}use(n,...t){const r=this.attachers,i=this.namespace;if(kr("use",this.frozen),n!=null)if(typeof n=="function")s(n,t);else if(typeof n=="object")Array.isArray(n)?a(n):o(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function l(u){if(typeof u=="function")s(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[f,...c]=u;s(f,c)}else o(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function o(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(u.plugins),u.settings&&(i.settings=cr(!0,i.settings,u.settings))}function a(u){let f=-1;if(u!=null)if(Array.isArray(u))for(;++f<u.length;){const c=u[f];l(c)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function s(u,f){let c=-1,h=-1;for(;++c<r.length;)if(r[c][0]===u){h=c;break}if(h===-1)r.push([u,...f]);else if(f.length>0){let[p,...b]=f;const C=r[h][1];fr(C)&&fr(p)&&(p=cr(!0,C,p)),r[h]=[u,p,...b]}}}}const Qc=new gr().freeze();function br(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function yr(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function kr(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function po(e){if(!fr(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function ho(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function yn(e){return Kc(e)?e:new co(e)}function Kc(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Zc(e){return typeof e=="string"||Jc(e)}function Jc(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const ef="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",mo=[],go={allowDangerousHtml:!0},tf=/^(https?|ircs?|mailto|xmpp)$/i,nf=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function rf(e){const n=of(e),t=lf(e);return af(n.runSync(n.parse(t),t),e)}function of(e){const n=e.rehypePlugins||mo,t=e.remarkPlugins||mo,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...go}:go;return Qc().use(Fu).use(t).use(Nc,r).use(n)}function lf(e){const n=e.children||"",t=new co;return typeof n=="string"&&(t.value=n),t}function af(e,n){const t=n.allowedElements,r=n.allowElement,i=n.components,l=n.disallowedElements,o=n.skipHtml,a=n.unwrapDisallowed,s=n.urlTransform||sf;for(const f of nf)Object.hasOwn(n,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+ef+f.id,void 0);return ar(e,u),La(e,{Fragment:N.Fragment,components:i,ignoreInvalidStyle:!0,jsx:N.jsx,jsxs:N.jsxs,passKeys:!0,passNode:!0});function u(f,c,h){if(f.type==="raw"&&h&&typeof c=="number")return o?h.children.splice(c,1):h.children[c]={type:"text",value:f.value},c;if(f.type==="element"){let p;for(p in Yn)if(Object.hasOwn(Yn,p)&&Object.hasOwn(f.properties,p)){const b=f.properties[p],C=Yn[p];(C===null||C.includes(f.tagName))&&(f.properties[p]=s(String(b||""),p,f))}}if(f.type==="element"){let p=t?!t.includes(f.tagName):l?l.includes(f.tagName):!1;if(!p&&r&&typeof c=="number"&&(p=!r(f,c,h)),p&&h&&typeof c=="number")return a&&f.children?h.children.splice(c,1,...f.children):h.children.splice(c,1),c}}}function sf(e){const n=e.indexOf(":"),t=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return n===-1||i!==-1&&n>i||t!==-1&&n>t||r!==-1&&n>r||tf.test(e.slice(0,n))?e:""}function bo(e,n){const t=String(e);if(typeof n!="string")throw new TypeError("Expected character");let r=0,i=t.indexOf(n);for(;i!==-1;)r++,i=t.indexOf(n,i+n.length);return r}function uf(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function cf(e,n,t){const i=gn((t||{}).ignore||[]),l=ff(n);let o=-1;for(;++o<l.length;)oo(e,"text",a);function a(u,f){let c=-1,h;for(;++c<f.length;){const p=f[c],b=h?h.children:void 0;if(i(p,b?b.indexOf(p):void 0,h))return;h=p}if(h)return s(u,f)}function s(u,f){const c=f[f.length-1],h=l[o][0],p=l[o][1];let b=0;const k=c.children.indexOf(u);let x=!1,T=[];h.lastIndex=0;let v=h.exec(u.value);for(;v;){const H=v.index,R={index:v.index,input:v.input,stack:[...f,u]};let S=p(...v,R);if(typeof S=="string"&&(S=S.length>0?{type:"text",value:S}:void 0),S===!1?h.lastIndex=H+1:(b!==H&&T.push({type:"text",value:u.value.slice(b,H)}),Array.isArray(S)?T.push(...S):S&&T.push(S),b=H+v[0].length,x=!0),!h.global)break;v=h.exec(u.value)}return x?(b<u.value.length&&T.push({type:"text",value:u.value.slice(b)}),c.children.splice(k,1,...T)):T=[u],k+T.length}}function ff(e){const n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const t=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<t.length;){const i=t[r];n.push([pf(i[0]),hf(i[1])])}return n}function pf(e){return typeof e=="string"?new RegExp(uf(e),"g"):e}function hf(e){return typeof e=="function"?e:function(){return e}}const xr="phrasing",wr=["autolink","link","image","label"];function df(){return{transforms:[wf],enter:{literalAutolink:gf,literalAutolinkEmail:Sr,literalAutolinkHttp:Sr,literalAutolinkWww:Sr},exit:{literalAutolink:xf,literalAutolinkEmail:kf,literalAutolinkHttp:bf,literalAutolinkWww:yf}}}function mf(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:xr,notInConstruct:wr},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:xr,notInConstruct:wr},{character:":",before:"[ps]",after:"\\/",inConstruct:xr,notInConstruct:wr}]}}function gf(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Sr(e){this.config.enter.autolinkProtocol.call(this,e)}function bf(e){this.config.exit.autolinkProtocol.call(this,e)}function yf(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function kf(e){this.config.exit.autolinkEmail.call(this,e)}function xf(e){this.exit(e)}function wf(e){cf(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Sf],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Cf]],{ignore:["link","linkReference"]})}function Sf(e,n,t,r,i){let l="";if(!yo(i)||(/^w/i.test(n)&&(t=n+t,n="",l="http://"),!vf(t)))return!1;const o=Ef(t+r);if(!o[0])return!1;const a={type:"link",title:null,url:l+n+o[0],children:[{type:"text",value:n+o[0]}]};return o[1]?[a,{type:"text",value:o[1]}]:a}function Cf(e,n,t,r){return!yo(r,!0)||/[-\d_]$/.test(t)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+t,children:[{type:"text",value:n+"@"+t}]}}function vf(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function Ef(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let t=n[0],r=t.indexOf(")");const i=bo(e,"(");let l=bo(e,")");for(;r!==-1&&i>l;)e+=t.slice(0,r+1),t=t.slice(r+1),r=t.indexOf(")"),l++;return[e,t]}function yo(e,n){const t=e.input.charCodeAt(e.index-1);return(e.index===0||gt(t)||sn(t))&&(!n||t!==47)}ko.peek=zf;function Tf(){this.buffer()}function Af(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function _f(){this.buffer()}function If(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Lf(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=Ue(this.sliceSerialize(e)).toLowerCase(),t.label=n}function Pf(e){this.exit(e)}function Nf(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=Ue(this.sliceSerialize(e)).toLowerCase(),t.label=n}function Df(e){this.exit(e)}function zf(){return"["}function ko(e,n,t,r){const i=t.createTracker(r);let l=i.move("[^");const o=t.enter("footnoteReference"),a=t.enter("reference");return l+=i.move(t.safe(t.associationId(e),{after:"]",before:l})),a(),o(),l+=i.move("]"),l}function Mf(){return{enter:{gfmFootnoteCallString:Tf,gfmFootnoteCall:Af,gfmFootnoteDefinitionLabelString:_f,gfmFootnoteDefinition:If},exit:{gfmFootnoteCallString:Lf,gfmFootnoteCall:Pf,gfmFootnoteDefinitionLabelString:Nf,gfmFootnoteDefinition:Df}}}function Of(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:t,footnoteReference:ko},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function t(r,i,l,o){const a=l.createTracker(o);let s=a.move("[^");const u=l.enter("footnoteDefinition"),f=l.enter("label");return s+=a.move(l.safe(l.associationId(r),{before:s,after:"]"})),f(),s+=a.move("]:"),r.children&&r.children.length>0&&(a.shift(4),s+=a.move((n?`
15
+ `:" ")+l.indentLines(l.containerFlow(r,a.current()),n?xo:Rf))),u(),s}}function Rf(e,n,t){return n===0?e:xo(e,n,t)}function xo(e,n,t){return(t?"":" ")+e}const Ff=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];wo.peek=Uf;function Bf(){return{canContainEols:["delete"],enter:{strikethrough:jf},exit:{strikethrough:Hf}}}function $f(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Ff}],handlers:{delete:wo}}}function jf(e){this.enter({type:"delete",children:[]},e)}function Hf(e){this.exit(e)}function wo(e,n,t,r){const i=t.createTracker(r),l=t.enter("strikethrough");let o=i.move("~~");return o+=t.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),l(),o}function Uf(){return"~"}function Vf(e){return e.length}function qf(e,n){const t=n||{},r=(t.align||[]).concat(),i=t.stringLength||Vf,l=[],o=[],a=[],s=[];let u=0,f=-1;for(;++f<e.length;){const C=[],k=[];let x=-1;for(e[f].length>u&&(u=e[f].length);++x<e[f].length;){const T=Wf(e[f][x]);if(t.alignDelimiters!==!1){const v=i(T);k[x]=v,(s[x]===void 0||v>s[x])&&(s[x]=v)}C.push(T)}o[f]=C,a[f]=k}let c=-1;if(typeof r=="object"&&"length"in r)for(;++c<u;)l[c]=So(r[c]);else{const C=So(r);for(;++c<u;)l[c]=C}c=-1;const h=[],p=[];for(;++c<u;){const C=l[c];let k="",x="";C===99?(k=":",x=":"):C===108?k=":":C===114&&(x=":");let T=t.alignDelimiters===!1?1:Math.max(1,s[c]-k.length-x.length);const v=k+"-".repeat(T)+x;t.alignDelimiters!==!1&&(T=k.length+T+x.length,T>s[c]&&(s[c]=T),p[c]=T),h[c]=v}o.splice(1,0,h),a.splice(1,0,p),f=-1;const b=[];for(;++f<o.length;){const C=o[f],k=a[f];c=-1;const x=[];for(;++c<u;){const T=C[c]||"";let v="",H="";if(t.alignDelimiters!==!1){const R=s[c]-(k[c]||0),S=l[c];S===114?v=" ".repeat(R):S===99?R%2?(v=" ".repeat(R/2+.5),H=" ".repeat(R/2-.5)):(v=" ".repeat(R/2),H=v):H=" ".repeat(R)}t.delimiterStart!==!1&&!c&&x.push("|"),t.padding!==!1&&!(t.alignDelimiters===!1&&T==="")&&(t.delimiterStart!==!1||c)&&x.push(" "),t.alignDelimiters!==!1&&x.push(v),x.push(T),t.alignDelimiters!==!1&&x.push(H),t.padding!==!1&&x.push(" "),(t.delimiterEnd!==!1||c!==u-1)&&x.push("|")}b.push(t.delimiterEnd===!1?x.join("").replace(/ +$/,""):x.join(""))}return b.join(`
16
+ `)}function Wf(e){return e==null?"":String(e)}function So(e){const n=typeof e=="string"?e.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}function Gf(e,n,t,r){const i=t.enter("blockquote"),l=t.createTracker(r);l.move("> "),l.shift(2);const o=t.indentLines(t.containerFlow(e,l.current()),Yf);return i(),o}function Yf(e,n,t){return">"+(t?"":" ")+e}function Xf(e,n){return Co(e,n.inConstruct,!0)&&!Co(e,n.notInConstruct,!1)}function Co(e,n,t){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return t;let r=-1;for(;++r<n.length;)if(e.includes(n[r]))return!0;return!1}function vo(e,n,t,r){let i=-1;for(;++i<t.unsafe.length;)if(t.unsafe[i].character===`
17
+ `&&Xf(t.stack,t.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
18
+ `}function Qf(e,n){const t=String(e);let r=t.indexOf(n),i=r,l=0,o=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++l>o&&(o=l):l=1,i=r+n.length,r=t.indexOf(n,i);return o}function Kf(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function Zf(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function Jf(e,n,t,r){const i=Zf(t),l=e.value||"",o=i==="`"?"GraveAccent":"Tilde";if(Kf(e,t)){const c=t.enter("codeIndented"),h=t.indentLines(l,ep);return c(),h}const a=t.createTracker(r),s=i.repeat(Math.max(Qf(l,i)+1,3)),u=t.enter("codeFenced");let f=a.move(s);if(e.lang){const c=t.enter(`codeFencedLang${o}`);f+=a.move(t.safe(e.lang,{before:f,after:" ",encode:["`"],...a.current()})),c()}if(e.lang&&e.meta){const c=t.enter(`codeFencedMeta${o}`);f+=a.move(" "),f+=a.move(t.safe(e.meta,{before:f,after:`
19
19
  `,encode:["`"],...a.current()})),c()}return f+=a.move(`
20
20
  `),l&&(f+=a.move(l+`
21
- `)),f+=a.move(s),u(),f}function Kf(e,n,t){return(t?"":" ")+e}function wr(e){const n=e.options.quote||'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize title with `"+n+"` for `options.quote`, expected `\"`, or `'`");return n}function Qf(e,n,t,r){const i=wr(t),l=i==='"'?"Quote":"Apostrophe",o=t.enter("definition");let a=t.enter("label");const s=t.createTracker(r);let u=s.move("[");return u+=s.move(t.safe(t.associationId(e),{before:u,after:"]",...s.current()})),u+=s.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=t.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(t.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(a=t.enter("destinationRaw"),u+=s.move(t.safe(e.url,{before:u,after:e.title?" ":`
22
- `,...s.current()}))),a(),e.title&&(a=t.enter(`title${l}`),u+=s.move(" "+i),u+=s.move(t.safe(e.title,{before:u,after:i,...s.current()})),u+=s.move(i),a()),o(),u}function Zf(e){const n=e.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}function Gt(e){return"&#x"+e.toString(16).toUpperCase()+";"}function yn(e,n,t){const r=Tt(e),i=Tt(n);return r===void 0?i===void 0?t==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}So.peek=Jf;function So(e,n,t,r){const i=Zf(t),l=t.enter("emphasis"),o=t.createTracker(r),a=o.move(i);let s=o.move(t.containerPhrasing(e,{after:i,before:a,...o.current()}));const u=s.charCodeAt(0),f=yn(r.before.charCodeAt(r.before.length-1),u,i);f.inside&&(s=Gt(u)+s.slice(1));const c=s.charCodeAt(s.length-1),h=yn(r.after.charCodeAt(0),c,i);h.inside&&(s=s.slice(0,-1)+Gt(c));const p=o.move(i);return l(),t.attentionEncodeSurroundingInfo={after:h.outside,before:f.outside},a+s+p}function Jf(e,n,t){return t.options.emphasis||"*"}function ep(e,n){let t=!1;return or(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return t=!0,ir}),!!((!e.depth||e.depth<3)&&Gn(e)&&(n.options.setext||t))}function tp(e,n,t,r){const i=Math.max(Math.min(6,e.depth||1),1),l=t.createTracker(r);if(ep(e,t)){const f=t.enter("headingSetext"),c=t.enter("phrasing"),h=t.containerPhrasing(e,{...l.current(),before:`
21
+ `)),f+=a.move(s),u(),f}function ep(e,n,t){return(t?"":" ")+e}function Cr(e){const n=e.options.quote||'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize title with `"+n+"` for `options.quote`, expected `\"`, or `'`");return n}function tp(e,n,t,r){const i=Cr(t),l=i==='"'?"Quote":"Apostrophe",o=t.enter("definition");let a=t.enter("label");const s=t.createTracker(r);let u=s.move("[");return u+=s.move(t.safe(t.associationId(e),{before:u,after:"]",...s.current()})),u+=s.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=t.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(t.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(a=t.enter("destinationRaw"),u+=s.move(t.safe(e.url,{before:u,after:e.title?" ":`
22
+ `,...s.current()}))),a(),e.title&&(a=t.enter(`title${l}`),u+=s.move(" "+i),u+=s.move(t.safe(e.title,{before:u,after:i,...s.current()})),u+=s.move(i),a()),o(),u}function np(e){const n=e.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}function Qt(e){return"&#x"+e.toString(16).toUpperCase()+";"}function kn(e,n,t){const r=_t(e),i=_t(n);return r===void 0?i===void 0?t==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Eo.peek=rp;function Eo(e,n,t,r){const i=np(t),l=t.enter("emphasis"),o=t.createTracker(r),a=o.move(i);let s=o.move(t.containerPhrasing(e,{after:i,before:a,...o.current()}));const u=s.charCodeAt(0),f=kn(r.before.charCodeAt(r.before.length-1),u,i);f.inside&&(s=Qt(u)+s.slice(1));const c=s.charCodeAt(s.length-1),h=kn(r.after.charCodeAt(0),c,i);h.inside&&(s=s.slice(0,-1)+Qt(c));const p=o.move(i);return l(),t.attentionEncodeSurroundingInfo={after:h.outside,before:f.outside},a+s+p}function rp(e,n,t){return t.options.emphasis||"*"}function ip(e,n){let t=!1;return ar(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return t=!0,lr}),!!((!e.depth||e.depth<3)&&Xn(e)&&(n.options.setext||t))}function op(e,n,t,r){const i=Math.max(Math.min(6,e.depth||1),1),l=t.createTracker(r);if(ip(e,t)){const f=t.enter("headingSetext"),c=t.enter("phrasing"),h=t.containerPhrasing(e,{...l.current(),before:`
23
23
  `,after:`
24
24
  `});return c(),f(),h+`
25
25
  `+(i===1?"=":"-").repeat(h.length-(Math.max(h.lastIndexOf("\r"),h.lastIndexOf(`
26
26
  `))+1))}const o="#".repeat(i),a=t.enter("headingAtx"),s=t.enter("phrasing");l.move(o+" ");let u=t.containerPhrasing(e,{before:"# ",after:`
27
- `,...l.current()});return/^[\t ]/.test(u)&&(u=Gt(u.charCodeAt(0))+u.slice(1)),u=u?o+" "+u:o,t.options.closeAtx&&(u+=" "+o),s(),a(),u}Eo.peek=np;function Eo(e){return e.value||""}function np(){return"<"}Co.peek=rp;function Co(e,n,t,r){const i=wr(t),l=i==='"'?"Quote":"Apostrophe",o=t.enter("image");let a=t.enter("label");const s=t.createTracker(r);let u=s.move("![");return u+=s.move(t.safe(e.alt,{before:u,after:"]",...s.current()})),u+=s.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=t.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(t.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(a=t.enter("destinationRaw"),u+=s.move(t.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),a(),e.title&&(a=t.enter(`title${l}`),u+=s.move(" "+i),u+=s.move(t.safe(e.title,{before:u,after:i,...s.current()})),u+=s.move(i),a()),u+=s.move(")"),o(),u}function rp(){return"!"}vo.peek=ip;function vo(e,n,t,r){const i=e.referenceType,l=t.enter("imageReference");let o=t.enter("label");const a=t.createTracker(r);let s=a.move("![");const u=t.safe(e.alt,{before:s,after:"]",...a.current()});s+=a.move(u+"]["),o();const f=t.stack;t.stack=[],o=t.enter("reference");const c=t.safe(t.associationId(e),{before:s,after:"]",...a.current()});return o(),t.stack=f,l(),i==="full"||!u||u!==c?s+=a.move(c+"]"):i==="shortcut"?s=s.slice(0,-1):s+=a.move("]"),s}function ip(){return"!"}To.peek=op;function To(e,n,t){let r=e.value||"",i="`",l=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++l<t.unsafe.length;){const o=t.unsafe[l],a=t.compilePattern(o);let s;if(o.atBreak)for(;s=a.exec(r);){let u=s.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(s.index+1)}}return i+r+i}function op(){return"`"}function Ao(e,n){const t=Gn(e);return!!(!n.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(t===e.url||"mailto:"+t===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}_o.peek=lp;function _o(e,n,t,r){const i=wr(t),l=i==='"'?"Quote":"Apostrophe",o=t.createTracker(r);let a,s;if(Ao(e,t)){const f=t.stack;t.stack=[],a=t.enter("autolink");let c=o.move("<");return c+=o.move(t.containerPhrasing(e,{before:c,after:">",...o.current()})),c+=o.move(">"),a(),t.stack=f,c}a=t.enter("link"),s=t.enter("label");let u=o.move("[");return u+=o.move(t.containerPhrasing(e,{before:u,after:"](",...o.current()})),u+=o.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=t.enter("destinationLiteral"),u+=o.move("<"),u+=o.move(t.safe(e.url,{before:u,after:">",...o.current()})),u+=o.move(">")):(s=t.enter("destinationRaw"),u+=o.move(t.safe(e.url,{before:u,after:e.title?" ":")",...o.current()}))),s(),e.title&&(s=t.enter(`title${l}`),u+=o.move(" "+i),u+=o.move(t.safe(e.title,{before:u,after:i,...o.current()})),u+=o.move(i),s()),u+=o.move(")"),a(),u}function lp(e,n,t){return Ao(e,t)?"<":"["}Io.peek=ap;function Io(e,n,t,r){const i=e.referenceType,l=t.enter("linkReference");let o=t.enter("label");const a=t.createTracker(r);let s=a.move("[");const u=t.containerPhrasing(e,{before:s,after:"]",...a.current()});s+=a.move(u+"]["),o();const f=t.stack;t.stack=[],o=t.enter("reference");const c=t.safe(t.associationId(e),{before:s,after:"]",...a.current()});return o(),t.stack=f,l(),i==="full"||!u||u!==c?s+=a.move(c+"]"):i==="shortcut"?s=s.slice(0,-1):s+=a.move("]"),s}function ap(){return"["}function Sr(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function sp(e){const n=Sr(e),t=e.options.bulletOther;if(!t)return n==="*"?"-":"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(t===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+t+"`) to be different");return t}function up(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}function Lo(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}function cp(e,n,t,r){const i=t.enter("list"),l=t.bulletCurrent;let o=e.ordered?up(t):Sr(t);const a=e.ordered?o==="."?")":".":sp(t);let s=n&&t.bulletLastUsed?o===t.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&f&&(!f.children||!f.children[0])&&t.stack[t.stack.length-1]==="list"&&t.stack[t.stack.length-2]==="listItem"&&t.stack[t.stack.length-3]==="list"&&t.stack[t.stack.length-4]==="listItem"&&t.indexStack[t.indexStack.length-1]===0&&t.indexStack[t.indexStack.length-2]===0&&t.indexStack[t.indexStack.length-3]===0&&(s=!0),Lo(t)===o&&f){let c=-1;for(;++c<e.children.length;){const h=e.children[c];if(h&&h.type==="listItem"&&h.children&&h.children[0]&&h.children[0].type==="thematicBreak"){s=!0;break}}}}s&&(o=a),t.bulletCurrent=o;const u=t.containerFlow(e,r);return t.bulletLastUsed=o,t.bulletCurrent=l,i(),u}function fp(e){const n=e.options.listItemIndent||"one";if(n!=="tab"&&n!=="one"&&n!=="mixed")throw new Error("Cannot serialize items with `"+n+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return n}function pp(e,n,t,r){const i=fp(t);let l=t.bulletCurrent||Sr(t);n&&n.type==="list"&&n.ordered&&(l=(typeof n.start=="number"&&n.start>-1?n.start:1)+(t.options.incrementListMarker===!1?0:n.children.indexOf(e))+l);let o=l.length+1;(i==="tab"||i==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(o=Math.ceil(o/4)*4);const a=t.createTracker(r);a.move(l+" ".repeat(o-l.length)),a.shift(o);const s=t.enter("listItem"),u=t.indentLines(t.containerFlow(e,a.current()),f);return s(),u;function f(c,h,p){return h?(p?"":" ".repeat(o))+c:(p?l:l+" ".repeat(o-l.length))+c}}function hp(e,n,t,r){const i=t.enter("paragraph"),l=t.enter("phrasing"),o=t.containerPhrasing(e,r);return l(),i(),o}const dp=mn(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function mp(e,n,t,r){return(e.children.some(function(o){return dp(o)})?t.containerPhrasing:t.containerFlow).call(t,e,r)}function gp(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}Po.peek=bp;function Po(e,n,t,r){const i=gp(t),l=t.enter("strong"),o=t.createTracker(r),a=o.move(i+i);let s=o.move(t.containerPhrasing(e,{after:i,before:a,...o.current()}));const u=s.charCodeAt(0),f=yn(r.before.charCodeAt(r.before.length-1),u,i);f.inside&&(s=Gt(u)+s.slice(1));const c=s.charCodeAt(s.length-1),h=yn(r.after.charCodeAt(0),c,i);h.inside&&(s=s.slice(0,-1)+Gt(c));const p=o.move(i+i);return l(),t.attentionEncodeSurroundingInfo={after:h.outside,before:f.outside},a+s+p}function bp(e,n,t){return t.options.strong||"*"}function yp(e,n,t,r){return t.safe(e.value,r)}function xp(e){const n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}function kp(e,n,t){const r=(Lo(t)+(t.options.ruleSpaces?" ":"")).repeat(xp(t));return t.options.ruleSpaces?r.slice(0,-1):r}const Do={blockquote:Hf,break:wo,code:Xf,definition:Qf,emphasis:So,hardBreak:wo,heading:tp,html:Eo,image:Co,imageReference:vo,inlineCode:To,link:_o,linkReference:Io,list:cp,listItem:pp,paragraph:hp,root:mp,strong:Po,text:yp,thematicBreak:kp};function wp(){return{enter:{table:Sp,tableData:Oo,tableHeader:Oo,tableRow:Cp},exit:{codeText:vp,table:Ep,tableData:Er,tableHeader:Er,tableRow:Er}}}function Sp(e){const n=e._align;this.enter({type:"table",align:n.map(function(t){return t==="none"?null:t}),children:[]},e),this.data.inTable=!0}function Ep(e){this.exit(e),this.data.inTable=void 0}function Cp(e){this.enter({type:"tableRow",children:[]},e)}function Er(e){this.exit(e)}function Oo(e){this.enter({type:"tableCell",children:[]},e)}function vp(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,Tp));const t=this.stack[this.stack.length-1];t.type,t.value=n,this.exit(e)}function Tp(e,n){return n==="|"?n:e}function Ap(e){const n=e||{},t=n.tableCellPadding,r=n.tablePipeAlign,i=n.stringLength,l=t?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
28
- `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:h,table:o,tableCell:s,tableRow:a}};function o(p,y,S,E){return u(f(p,S,E),p.align)}function a(p,y,S,E){const x=c(p,S,E),A=u([x]);return A.slice(0,A.indexOf(`
29
- `))}function s(p,y,S,E){const x=S.enter("tableCell"),A=S.enter("phrasing"),v=S.containerPhrasing(p,{...E,before:l,after:l});return A(),x(),v}function u(p,y){return Uf(p,{align:y,alignDelimiters:r,padding:t,stringLength:i})}function f(p,y,S){const E=p.children;let x=-1;const A=[],v=y.enter("table");for(;++x<E.length;)A[x]=c(E[x],y,S);return v(),A}function c(p,y,S){const E=p.children;let x=-1;const A=[],v=y.enter("tableRow");for(;++x<E.length;)A[x]=s(E[x],p,y,S);return v(),A}function h(p,y,S){let E=Do.inlineCode(p,y,S);return S.stack.includes("tableCell")&&(E=E.replace(/\|/g,"\\$&")),E}}function _p(){return{exit:{taskListCheckValueChecked:zo,taskListCheckValueUnchecked:zo,paragraph:Lp}}}function Ip(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Pp}}}function zo(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function Lp(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const t=this.stack[this.stack.length-1];t.type;const r=t.children[0];if(r&&r.type==="text"){const i=n.children;let l=-1,o;for(;++l<i.length;){const a=i[l];if(a.type==="paragraph"){o=a;break}}o===t&&(r.value=r.value.slice(1),r.value.length===0?t.children.shift():t.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,t.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Pp(e,n,t,r){const i=e.children[0],l=typeof e.checked=="boolean"&&i&&i.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",a=t.createTracker(r);l&&a.move(o);let s=Do.listItem(e,n,t,{...r,...a.current()});return l&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),s;function u(f){return f+o}}function Dp(){return[cf(),Pf(),Nf(),wp(),_p()]}function Op(e){return{extensions:[ff(),Df(e),Mf(),Ap(e),Ip()]}}const zp={tokenize:jp,partial:!0},No={tokenize:Up,partial:!0},Mo={tokenize:$p,partial:!0},Ro={tokenize:Hp,partial:!0},Np={tokenize:Vp,partial:!0},Fo={name:"wwwAutolink",tokenize:Fp,previous:jo},Bo={name:"protocolAutolink",tokenize:Bp,previous:Uo},Qe={name:"emailAutolink",tokenize:Rp,previous:$o},Ge={};function Mp(){return{text:Ge}}let gt=48;for(;gt<123;)Ge[gt]=Qe,gt++,gt===58?gt=65:gt===91&&(gt=97);Ge[43]=Qe,Ge[45]=Qe,Ge[46]=Qe,Ge[95]=Qe,Ge[72]=[Qe,Bo],Ge[104]=[Qe,Bo],Ge[87]=[Qe,Fo],Ge[119]=[Qe,Fo];function Rp(e,n,t){const r=this;let i,l;return o;function o(c){return!Cr(c)||!$o.call(r,r.previous)||vr(r.events)?t(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(c))}function a(c){return Cr(c)?(e.consume(c),a):c===64?(e.consume(c),s):t(c)}function s(c){return c===46?e.check(Np,f,u)(c):c===45||c===95||Ae(c)?(l=!0,e.consume(c),s):f(c)}function u(c){return e.consume(c),i=!0,s}function f(c){return l&&i&&Le(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(c)):t(c)}}function Fp(e,n,t){const r=this;return i;function i(o){return o!==87&&o!==119||!jo.call(r,r.previous)||vr(r.events)?t(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(zp,e.attempt(No,e.attempt(Mo,l),t),t)(o))}function l(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(o)}}function Bp(e,n,t){const r=this;let i="",l=!1;return o;function o(c){return(c===72||c===104)&&Uo.call(r,r.previous)&&!vr(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),a):t(c)}function a(c){if(Le(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),a;if(c===58){const h=i.toLowerCase();if(h==="http"||h==="https")return e.consume(c),s}return t(c)}function s(c){return c===47?(e.consume(c),l?u:(l=!0,s)):t(c)}function u(c){return c===null||ln(c)||le(c)||mt(c)||an(c)?t(c):e.attempt(No,e.attempt(Mo,f),t)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(c)}}function jp(e,n,t){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),l):t(o)}function l(o){return o===null?t(o):n(o)}}function Up(e,n,t){let r,i,l;return o;function o(u){return u===46||u===95?e.check(Ro,s,a)(u):u===null||le(u)||mt(u)||u!==45&&an(u)?s(u):(l=!0,e.consume(u),o)}function a(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),o}function s(u){return i||r||!l?t(u):n(u)}}function $p(e,n){let t=0,r=0;return i;function i(o){return o===40?(t++,e.consume(o),i):o===41&&r<t?l(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(Ro,n,l)(o):o===null||le(o)||mt(o)?n(o):(e.consume(o),i)}function l(o){return o===41&&r++,e.consume(o),i}}function Hp(e,n,t){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),r):a===38?(e.consume(a),l):a===93?(e.consume(a),i):a===60||a===null||le(a)||mt(a)?n(a):t(a)}function i(a){return a===null||a===40||a===91||le(a)||mt(a)?n(a):r(a)}function l(a){return Le(a)?o(a):t(a)}function o(a){return a===59?(e.consume(a),r):Le(a)?(e.consume(a),o):t(a)}}function Vp(e,n,t){return r;function r(l){return e.consume(l),i}function i(l){return Ae(l)?t(l):n(l)}}function jo(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||le(e)}function Uo(e){return!Le(e)}function $o(e){return!(e===47||Cr(e))}function Cr(e){return e===43||e===45||e===46||e===95||Ae(e)}function vr(e){let n=e.length,t=!1;for(;n--;){const r=e[n][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){t=!0;break}if(r._gfmAutolinkLiteralWalkedInto){t=!1;break}}return e.length>0&&!t&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),t}const qp={tokenize:Jp,partial:!0};function Wp(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Kp,continuation:{tokenize:Qp},exit:Zp}},text:{91:{name:"gfmFootnoteCall",tokenize:Xp},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Gp,resolveTo:Yp}}}}function Gp(e,n,t){const r=this;let i=r.events.length;const l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const s=r.events[i][1];if(s.type==="labelImage"){o=s;break}if(s.type==="gfmFootnoteCall"||s.type==="labelLink"||s.type==="label"||s.type==="image"||s.type==="link")break}return a;function a(s){if(!o||!o._balanced)return t(s);const u=$e(r.sliceSerialize({start:o.end,end:r.now()}));return u.codePointAt(0)!==94||!l.includes(u.slice(1))?t(s):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),n(s))}}function Yp(e,n){let t=e.length;for(;t--;)if(e[t][1].type==="labelImage"&&e[t][0]==="enter"){e[t][1];break}e[t+1][1].type="data",e[t+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[t+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[t+3][1].end),end:Object.assign({},e[t+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const l={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},a=[e[t+1],e[t+2],["enter",r,n],e[t+3],e[t+4],["enter",i,n],["exit",i,n],["enter",l,n],["enter",o,n],["exit",o,n],["exit",l,n],e[e.length-2],e[e.length-1],["exit",r,n]];return e.splice(t,e.length-t+1,...a),e}function Xp(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l=0,o;return a;function a(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),s}function s(c){return c!==94?t(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(c){if(l>999||c===93&&!o||c===null||c===91||le(c))return t(c);if(c===93){e.exit("chunkString");const h=e.exit("gfmFootnoteCallString");return i.includes($e(r.sliceSerialize(h)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):t(c)}return le(c)||(o=!0),l++,e.consume(c),c===92?f:u}function f(c){return c===91||c===92||c===93?(e.consume(c),l++,u):u(c)}}function Kp(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l,o=0,a;return s;function s(y){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(y){return y===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):t(y)}function f(y){if(o>999||y===93&&!a||y===null||y===91||le(y))return t(y);if(y===93){e.exit("chunkString");const S=e.exit("gfmFootnoteDefinitionLabelString");return l=$e(r.sliceSerialize(S)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return le(y)||(a=!0),o++,e.consume(y),y===92?c:f}function c(y){return y===91||y===92||y===93?(e.consume(y),o++,f):f(y)}function h(y){return y===58?(e.enter("definitionMarker"),e.consume(y),e.exit("definitionMarker"),i.includes(l)||i.push(l),ne(e,p,"gfmFootnoteDefinitionWhitespace")):t(y)}function p(y){return n(y)}}function Qp(e,n,t){return e.check(Ut,n,e.attempt(qp,n,t))}function Zp(e){e.exit("gfmFootnoteDefinition")}function Jp(e,n,t){const r=this;return ne(e,i,"gfmFootnoteDefinitionIndent",5);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?n(l):t(l)}}function eh(e){let t=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:l,resolveAll:i};return t==null&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,a){let s=-1;for(;++s<o.length;)if(o[s][0]==="enter"&&o[s][1].type==="strikethroughSequenceTemporary"&&o[s][1]._close){let u=s;for(;u--;)if(o[u][0]==="exit"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._open&&o[s][1].end.offset-o[s][1].start.offset===o[u][1].end.offset-o[u][1].start.offset){o[s][1].type="strikethroughSequence",o[u][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},o[u][1].start),end:Object.assign({},o[s][1].end)},c={type:"strikethroughText",start:Object.assign({},o[u][1].end),end:Object.assign({},o[s][1].start)},h=[["enter",f,a],["enter",o[u][1],a],["exit",o[u][1],a],["enter",c,a]],p=a.parser.constructs.insideSpan.null;p&&Re(h,h.length,0,sn(p,o.slice(u+1,s),a)),Re(h,h.length,0,[["exit",c,a],["enter",o[s][1],a],["exit",o[s][1],a],["exit",f,a]]),Re(o,u-1,s-u+3,h),s=u+h.length-2;break}}for(s=-1;++s<o.length;)o[s][1].type==="strikethroughSequenceTemporary"&&(o[s][1].type="data");return o}function l(o,a,s){const u=this.previous,f=this.events;let c=0;return h;function h(y){return u===126&&f[f.length-1][1].type!=="characterEscape"?s(y):(o.enter("strikethroughSequenceTemporary"),p(y))}function p(y){const S=Tt(u);if(y===126)return c>1?s(y):(o.consume(y),c++,p);if(c<2&&!t)return s(y);const E=o.exit("strikethroughSequenceTemporary"),x=Tt(y);return E._open=!x||x===2&&!!S,E._close=!S||S===2&&!!x,a(y)}}}class th{constructor(){this.map=[]}add(n,t,r){nh(this,n,t,r)}consume(n){if(this.map.sort(function(l,o){return l[0]-o[0]}),this.map.length===0)return;let t=this.map.length;const r=[];for(;t>0;)t-=1,r.push(n.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),n.length=this.map[t][0];r.push(n.slice()),n.length=0;let i=r.pop();for(;i;){for(const l of i)n.push(l);i=r.pop()}this.map.length=0}}function nh(e,n,t,r){let i=0;if(!(t===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===n){e.map[i][1]+=t,e.map[i][2].push(...r);return}i+=1}e.map.push([n,t,r])}}function rh(e,n){let t=!1;const r=[];for(;n<e.length;){const i=e[n];if(t){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const l=r.length-1;r[l]=r[l]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(t=!0);n+=1}return r}function ih(){return{flow:{null:{name:"table",tokenize:oh,resolveAll:lh}}}}function oh(e,n,t){const r=this;let i=0,l=0,o;return a;function a(b){let O=r.events.length-1;for(;O>-1;){const R=r.events[O][1].type;if(R==="lineEnding"||R==="linePrefix")O--;else break}const P=O>-1?r.events[O][1].type:null,X=P==="tableHead"||P==="tableRow"?w:s;return X===w&&r.parser.lazy[r.now().line]?t(b):X(b)}function s(b){return e.enter("tableHead"),e.enter("tableRow"),u(b)}function u(b){return b===124||(o=!0,l+=1),f(b)}function f(b){return b===null?t(b):U(b)?l>1?(l=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),p):t(b):J(b)?ne(e,f,"whitespace")(b):(l+=1,o&&(o=!1,i+=1),b===124?(e.enter("tableCellDivider"),e.consume(b),e.exit("tableCellDivider"),o=!0,f):(e.enter("data"),c(b)))}function c(b){return b===null||b===124||le(b)?(e.exit("data"),f(b)):(e.consume(b),b===92?h:c)}function h(b){return b===92||b===124?(e.consume(b),c):c(b)}function p(b){return r.interrupt=!1,r.parser.lazy[r.now().line]?t(b):(e.enter("tableDelimiterRow"),o=!1,J(b)?ne(e,y,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(b):y(b))}function y(b){return b===45||b===58?E(b):b===124?(o=!0,e.enter("tableCellDivider"),e.consume(b),e.exit("tableCellDivider"),S):M(b)}function S(b){return J(b)?ne(e,E,"whitespace")(b):E(b)}function E(b){return b===58?(l+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(b),e.exit("tableDelimiterMarker"),x):b===45?(l+=1,x(b)):b===null||U(b)?$(b):M(b)}function x(b){return b===45?(e.enter("tableDelimiterFiller"),A(b)):M(b)}function A(b){return b===45?(e.consume(b),A):b===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(b),e.exit("tableDelimiterMarker"),v):(e.exit("tableDelimiterFiller"),v(b))}function v(b){return J(b)?ne(e,$,"whitespace")(b):$(b)}function $(b){return b===124?y(b):b===null||U(b)?!o||i!==l?M(b):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(b)):M(b)}function M(b){return t(b)}function w(b){return e.enter("tableRow"),H(b)}function H(b){return b===124?(e.enter("tableCellDivider"),e.consume(b),e.exit("tableCellDivider"),H):b===null||U(b)?(e.exit("tableRow"),n(b)):J(b)?ne(e,H,"whitespace")(b):(e.enter("data"),C(b))}function C(b){return b===null||b===124||le(b)?(e.exit("data"),H(b)):(e.consume(b),b===92?V:C)}function V(b){return b===92||b===124?(e.consume(b),C):C(b)}}function lh(e,n){let t=-1,r=!0,i=0,l=[0,0,0,0],o=[0,0,0,0],a=!1,s=0,u,f,c;const h=new th;for(;++t<e.length;){const p=e[t],y=p[1];p[0]==="enter"?y.type==="tableHead"?(a=!1,s!==0&&(Ho(h,n,s,u,f),f=void 0,s=0),u={type:"table",start:Object.assign({},y.start),end:Object.assign({},y.end)},h.add(t,0,[["enter",u,n]])):y.type==="tableRow"||y.type==="tableDelimiterRow"?(r=!0,c=void 0,l=[0,0,0,0],o=[0,t+1,0,0],a&&(a=!1,f={type:"tableBody",start:Object.assign({},y.start),end:Object.assign({},y.end)},h.add(t,0,[["enter",f,n]])),i=y.type==="tableDelimiterRow"?2:f?3:1):i&&(y.type==="data"||y.type==="tableDelimiterMarker"||y.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(l[1]!==0&&(o[0]=o[1],c=xn(h,n,l,i,void 0,c),l=[0,0,0,0]),o[2]=t)):y.type==="tableCellDivider"&&(r?r=!1:(l[1]!==0&&(o[0]=o[1],c=xn(h,n,l,i,void 0,c)),l=o,o=[l[1],t,0,0])):y.type==="tableHead"?(a=!0,s=t):y.type==="tableRow"||y.type==="tableDelimiterRow"?(s=t,l[1]!==0?(o[0]=o[1],c=xn(h,n,l,i,t,c)):o[1]!==0&&(c=xn(h,n,o,i,t,c)),i=0):i&&(y.type==="data"||y.type==="tableDelimiterMarker"||y.type==="tableDelimiterFiller")&&(o[3]=t)}for(s!==0&&Ho(h,n,s,u,f),h.consume(n.events),t=-1;++t<n.events.length;){const p=n.events[t];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=rh(n.events,t))}return e}function xn(e,n,t,r,i,l){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";t[0]!==0&&(l.end=Object.assign({},_t(n.events,t[0])),e.add(t[0],0,[["exit",l,n]]));const s=_t(n.events,t[1]);if(l={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(t[1],0,[["enter",l,n]]),t[2]!==0){const u=_t(n.events,t[2]),f=_t(n.events,t[3]),c={type:a,start:Object.assign({},u),end:Object.assign({},f)};if(e.add(t[2],0,[["enter",c,n]]),r!==2){const h=n.events[t[2]],p=n.events[t[3]];if(h[1].end=Object.assign({},p[1].end),h[1].type="chunkText",h[1].contentType="text",t[3]>t[2]+1){const y=t[2]+1,S=t[3]-t[2]-1;e.add(y,S,[])}}e.add(t[3]+1,0,[["exit",c,n]])}return i!==void 0&&(l.end=Object.assign({},_t(n.events,i)),e.add(i,0,[["exit",l,n]]),l=void 0),l}function Ho(e,n,t,r,i){const l=[],o=_t(n.events,t);i&&(i.end=Object.assign({},o),l.push(["exit",i,n])),r.end=Object.assign({},o),l.push(["exit",r,n]),e.add(t+1,0,l)}function _t(e,n){const t=e[n],r=t[0]==="enter"?"start":"end";return t[1][r]}const ah={name:"tasklistCheck",tokenize:uh};function sh(){return{text:{91:ah}}}function uh(e,n,t){const r=this;return i;function i(s){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?t(s):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),l)}function l(s){return le(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),o):s===88||s===120?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),o):t(s)}function o(s){return s===93?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):t(s)}function a(s){return U(s)?n(s):J(s)?e.check({tokenize:ch},n,t)(s):t(s)}}function ch(e,n,t){return ne(e,r,"whitespace");function r(i){return i===null?t(i):n(i)}}function fh(e){return Ei([Mp(),Wp(),eh(e),ih(),sh()])}const ph={};function hh(e){const n=this,t=e||ph,r=n.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),l=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(fh(t)),l.push(Dp()),o.push(Op(t))}/**
27
+ `,...l.current()});return/^[\t ]/.test(u)&&(u=Qt(u.charCodeAt(0))+u.slice(1)),u=u?o+" "+u:o,t.options.closeAtx&&(u+=" "+o),s(),a(),u}To.peek=lp;function To(e){return e.value||""}function lp(){return"<"}Ao.peek=ap;function Ao(e,n,t,r){const i=Cr(t),l=i==='"'?"Quote":"Apostrophe",o=t.enter("image");let a=t.enter("label");const s=t.createTracker(r);let u=s.move("![");return u+=s.move(t.safe(e.alt,{before:u,after:"]",...s.current()})),u+=s.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=t.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(t.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(a=t.enter("destinationRaw"),u+=s.move(t.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),a(),e.title&&(a=t.enter(`title${l}`),u+=s.move(" "+i),u+=s.move(t.safe(e.title,{before:u,after:i,...s.current()})),u+=s.move(i),a()),u+=s.move(")"),o(),u}function ap(){return"!"}_o.peek=sp;function _o(e,n,t,r){const i=e.referenceType,l=t.enter("imageReference");let o=t.enter("label");const a=t.createTracker(r);let s=a.move("![");const u=t.safe(e.alt,{before:s,after:"]",...a.current()});s+=a.move(u+"]["),o();const f=t.stack;t.stack=[],o=t.enter("reference");const c=t.safe(t.associationId(e),{before:s,after:"]",...a.current()});return o(),t.stack=f,l(),i==="full"||!u||u!==c?s+=a.move(c+"]"):i==="shortcut"?s=s.slice(0,-1):s+=a.move("]"),s}function sp(){return"!"}Io.peek=up;function Io(e,n,t){let r=e.value||"",i="`",l=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++l<t.unsafe.length;){const o=t.unsafe[l],a=t.compilePattern(o);let s;if(o.atBreak)for(;s=a.exec(r);){let u=s.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(s.index+1)}}return i+r+i}function up(){return"`"}function Lo(e,n){const t=Xn(e);return!!(!n.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(t===e.url||"mailto:"+t===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Po.peek=cp;function Po(e,n,t,r){const i=Cr(t),l=i==='"'?"Quote":"Apostrophe",o=t.createTracker(r);let a,s;if(Lo(e,t)){const f=t.stack;t.stack=[],a=t.enter("autolink");let c=o.move("<");return c+=o.move(t.containerPhrasing(e,{before:c,after:">",...o.current()})),c+=o.move(">"),a(),t.stack=f,c}a=t.enter("link"),s=t.enter("label");let u=o.move("[");return u+=o.move(t.containerPhrasing(e,{before:u,after:"](",...o.current()})),u+=o.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=t.enter("destinationLiteral"),u+=o.move("<"),u+=o.move(t.safe(e.url,{before:u,after:">",...o.current()})),u+=o.move(">")):(s=t.enter("destinationRaw"),u+=o.move(t.safe(e.url,{before:u,after:e.title?" ":")",...o.current()}))),s(),e.title&&(s=t.enter(`title${l}`),u+=o.move(" "+i),u+=o.move(t.safe(e.title,{before:u,after:i,...o.current()})),u+=o.move(i),s()),u+=o.move(")"),a(),u}function cp(e,n,t){return Lo(e,t)?"<":"["}No.peek=fp;function No(e,n,t,r){const i=e.referenceType,l=t.enter("linkReference");let o=t.enter("label");const a=t.createTracker(r);let s=a.move("[");const u=t.containerPhrasing(e,{before:s,after:"]",...a.current()});s+=a.move(u+"]["),o();const f=t.stack;t.stack=[],o=t.enter("reference");const c=t.safe(t.associationId(e),{before:s,after:"]",...a.current()});return o(),t.stack=f,l(),i==="full"||!u||u!==c?s+=a.move(c+"]"):i==="shortcut"?s=s.slice(0,-1):s+=a.move("]"),s}function fp(){return"["}function vr(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function pp(e){const n=vr(e),t=e.options.bulletOther;if(!t)return n==="*"?"-":"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(t===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+t+"`) to be different");return t}function hp(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}function Do(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}function dp(e,n,t,r){const i=t.enter("list"),l=t.bulletCurrent;let o=e.ordered?hp(t):vr(t);const a=e.ordered?o==="."?")":".":pp(t);let s=n&&t.bulletLastUsed?o===t.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&f&&(!f.children||!f.children[0])&&t.stack[t.stack.length-1]==="list"&&t.stack[t.stack.length-2]==="listItem"&&t.stack[t.stack.length-3]==="list"&&t.stack[t.stack.length-4]==="listItem"&&t.indexStack[t.indexStack.length-1]===0&&t.indexStack[t.indexStack.length-2]===0&&t.indexStack[t.indexStack.length-3]===0&&(s=!0),Do(t)===o&&f){let c=-1;for(;++c<e.children.length;){const h=e.children[c];if(h&&h.type==="listItem"&&h.children&&h.children[0]&&h.children[0].type==="thematicBreak"){s=!0;break}}}}s&&(o=a),t.bulletCurrent=o;const u=t.containerFlow(e,r);return t.bulletLastUsed=o,t.bulletCurrent=l,i(),u}function mp(e){const n=e.options.listItemIndent||"one";if(n!=="tab"&&n!=="one"&&n!=="mixed")throw new Error("Cannot serialize items with `"+n+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return n}function gp(e,n,t,r){const i=mp(t);let l=t.bulletCurrent||vr(t);n&&n.type==="list"&&n.ordered&&(l=(typeof n.start=="number"&&n.start>-1?n.start:1)+(t.options.incrementListMarker===!1?0:n.children.indexOf(e))+l);let o=l.length+1;(i==="tab"||i==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(o=Math.ceil(o/4)*4);const a=t.createTracker(r);a.move(l+" ".repeat(o-l.length)),a.shift(o);const s=t.enter("listItem"),u=t.indentLines(t.containerFlow(e,a.current()),f);return s(),u;function f(c,h,p){return h?(p?"":" ".repeat(o))+c:(p?l:l+" ".repeat(o-l.length))+c}}function bp(e,n,t,r){const i=t.enter("paragraph"),l=t.enter("phrasing"),o=t.containerPhrasing(e,r);return l(),i(),o}const yp=gn(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function kp(e,n,t,r){return(e.children.some(function(o){return yp(o)})?t.containerPhrasing:t.containerFlow).call(t,e,r)}function xp(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}zo.peek=wp;function zo(e,n,t,r){const i=xp(t),l=t.enter("strong"),o=t.createTracker(r),a=o.move(i+i);let s=o.move(t.containerPhrasing(e,{after:i,before:a,...o.current()}));const u=s.charCodeAt(0),f=kn(r.before.charCodeAt(r.before.length-1),u,i);f.inside&&(s=Qt(u)+s.slice(1));const c=s.charCodeAt(s.length-1),h=kn(r.after.charCodeAt(0),c,i);h.inside&&(s=s.slice(0,-1)+Qt(c));const p=o.move(i+i);return l(),t.attentionEncodeSurroundingInfo={after:h.outside,before:f.outside},a+s+p}function wp(e,n,t){return t.options.strong||"*"}function Sp(e,n,t,r){return t.safe(e.value,r)}function Cp(e){const n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}function vp(e,n,t){const r=(Do(t)+(t.options.ruleSpaces?" ":"")).repeat(Cp(t));return t.options.ruleSpaces?r.slice(0,-1):r}const Mo={blockquote:Gf,break:vo,code:Jf,definition:tp,emphasis:Eo,hardBreak:vo,heading:op,html:To,image:Ao,imageReference:_o,inlineCode:Io,link:Po,linkReference:No,list:dp,listItem:gp,paragraph:bp,root:kp,strong:zo,text:Sp,thematicBreak:vp};function Ep(){return{enter:{table:Tp,tableData:Oo,tableHeader:Oo,tableRow:_p},exit:{codeText:Ip,table:Ap,tableData:Er,tableHeader:Er,tableRow:Er}}}function Tp(e){const n=e._align;this.enter({type:"table",align:n.map(function(t){return t==="none"?null:t}),children:[]},e),this.data.inTable=!0}function Ap(e){this.exit(e),this.data.inTable=void 0}function _p(e){this.enter({type:"tableRow",children:[]},e)}function Er(e){this.exit(e)}function Oo(e){this.enter({type:"tableCell",children:[]},e)}function Ip(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,Lp));const t=this.stack[this.stack.length-1];t.type,t.value=n,this.exit(e)}function Lp(e,n){return n==="|"?n:e}function Pp(e){const n=e||{},t=n.tableCellPadding,r=n.tablePipeAlign,i=n.stringLength,l=t?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
28
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:h,table:o,tableCell:s,tableRow:a}};function o(p,b,C,k){return u(f(p,C,k),p.align)}function a(p,b,C,k){const x=c(p,C,k),T=u([x]);return T.slice(0,T.indexOf(`
29
+ `))}function s(p,b,C,k){const x=C.enter("tableCell"),T=C.enter("phrasing"),v=C.containerPhrasing(p,{...k,before:l,after:l});return T(),x(),v}function u(p,b){return qf(p,{align:b,alignDelimiters:r,padding:t,stringLength:i})}function f(p,b,C){const k=p.children;let x=-1;const T=[],v=b.enter("table");for(;++x<k.length;)T[x]=c(k[x],b,C);return v(),T}function c(p,b,C){const k=p.children;let x=-1;const T=[],v=b.enter("tableRow");for(;++x<k.length;)T[x]=s(k[x],p,b,C);return v(),T}function h(p,b,C){let k=Mo.inlineCode(p,b,C);return C.stack.includes("tableCell")&&(k=k.replace(/\|/g,"\\$&")),k}}function Np(){return{exit:{taskListCheckValueChecked:Ro,taskListCheckValueUnchecked:Ro,paragraph:zp}}}function Dp(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Mp}}}function Ro(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function zp(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const t=this.stack[this.stack.length-1];t.type;const r=t.children[0];if(r&&r.type==="text"){const i=n.children;let l=-1,o;for(;++l<i.length;){const a=i[l];if(a.type==="paragraph"){o=a;break}}o===t&&(r.value=r.value.slice(1),r.value.length===0?t.children.shift():t.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,t.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Mp(e,n,t,r){const i=e.children[0],l=typeof e.checked=="boolean"&&i&&i.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",a=t.createTracker(r);l&&a.move(o);let s=Mo.listItem(e,n,t,{...r,...a.current()});return l&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),s;function u(f){return f+o}}function Op(){return[df(),Mf(),Bf(),Ep(),Np()]}function Rp(e){return{extensions:[mf(),Of(e),$f(),Pp(e),Dp()]}}const Fp={tokenize:Vp,partial:!0},Fo={tokenize:qp,partial:!0},Bo={tokenize:Wp,partial:!0},$o={tokenize:Gp,partial:!0},Bp={tokenize:Yp,partial:!0},jo={name:"wwwAutolink",tokenize:Hp,previous:Uo},Ho={name:"protocolAutolink",tokenize:Up,previous:Vo},Ze={name:"emailAutolink",tokenize:jp,previous:qo},Ye={};function $p(){return{text:Ye}}let bt=48;for(;bt<123;)Ye[bt]=Ze,bt++,bt===58?bt=65:bt===91&&(bt=97);Ye[43]=Ze,Ye[45]=Ze,Ye[46]=Ze,Ye[95]=Ze,Ye[72]=[Ze,Ho],Ye[104]=[Ze,Ho],Ye[87]=[Ze,jo],Ye[119]=[Ze,jo];function jp(e,n,t){const r=this;let i,l;return o;function o(c){return!Tr(c)||!qo.call(r,r.previous)||Ar(r.events)?t(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(c))}function a(c){return Tr(c)?(e.consume(c),a):c===64?(e.consume(c),s):t(c)}function s(c){return c===46?e.check(Bp,f,u)(c):c===45||c===95||Pe(c)?(l=!0,e.consume(c),s):f(c)}function u(c){return e.consume(c),i=!0,s}function f(c){return l&&i&&ze(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(c)):t(c)}}function Hp(e,n,t){const r=this;return i;function i(o){return o!==87&&o!==119||!Uo.call(r,r.previous)||Ar(r.events)?t(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Fp,e.attempt(Fo,e.attempt(Bo,l),t),t)(o))}function l(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(o)}}function Up(e,n,t){const r=this;let i="",l=!1;return o;function o(c){return(c===72||c===104)&&Vo.call(r,r.previous)&&!Ar(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),a):t(c)}function a(c){if(ze(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),a;if(c===58){const h=i.toLowerCase();if(h==="http"||h==="https")return e.consume(c),s}return t(c)}function s(c){return c===47?(e.consume(c),l?u:(l=!0,s)):t(c)}function u(c){return c===null||an(c)||se(c)||gt(c)||sn(c)?t(c):e.attempt(Fo,e.attempt(Bo,f),t)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(c)}}function Vp(e,n,t){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),l):t(o)}function l(o){return o===null?t(o):n(o)}}function qp(e,n,t){let r,i,l;return o;function o(u){return u===46||u===95?e.check($o,s,a)(u):u===null||se(u)||gt(u)||u!==45&&sn(u)?s(u):(l=!0,e.consume(u),o)}function a(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),o}function s(u){return i||r||!l?t(u):n(u)}}function Wp(e,n){let t=0,r=0;return i;function i(o){return o===40?(t++,e.consume(o),i):o===41&&r<t?l(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check($o,n,l)(o):o===null||se(o)||gt(o)?n(o):(e.consume(o),i)}function l(o){return o===41&&r++,e.consume(o),i}}function Gp(e,n,t){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),r):a===38?(e.consume(a),l):a===93?(e.consume(a),i):a===60||a===null||se(a)||gt(a)?n(a):t(a)}function i(a){return a===null||a===40||a===91||se(a)||gt(a)?n(a):r(a)}function l(a){return ze(a)?o(a):t(a)}function o(a){return a===59?(e.consume(a),r):ze(a)?(e.consume(a),o):t(a)}}function Yp(e,n,t){return r;function r(l){return e.consume(l),i}function i(l){return Pe(l)?t(l):n(l)}}function Uo(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||se(e)}function Vo(e){return!ze(e)}function qo(e){return!(e===47||Tr(e))}function Tr(e){return e===43||e===45||e===46||e===95||Pe(e)}function Ar(e){let n=e.length,t=!1;for(;n--;){const r=e[n][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){t=!0;break}if(r._gfmAutolinkLiteralWalkedInto){t=!1;break}}return e.length>0&&!t&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),t}const Xp={tokenize:rh,partial:!0};function Qp(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:eh,continuation:{tokenize:th},exit:nh}},text:{91:{name:"gfmFootnoteCall",tokenize:Jp},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Kp,resolveTo:Zp}}}}function Kp(e,n,t){const r=this;let i=r.events.length;const l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const s=r.events[i][1];if(s.type==="labelImage"){o=s;break}if(s.type==="gfmFootnoteCall"||s.type==="labelLink"||s.type==="label"||s.type==="image"||s.type==="link")break}return a;function a(s){if(!o||!o._balanced)return t(s);const u=Ue(r.sliceSerialize({start:o.end,end:r.now()}));return u.codePointAt(0)!==94||!l.includes(u.slice(1))?t(s):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),n(s))}}function Zp(e,n){let t=e.length;for(;t--;)if(e[t][1].type==="labelImage"&&e[t][0]==="enter"){e[t][1];break}e[t+1][1].type="data",e[t+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[t+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[t+3][1].end),end:Object.assign({},e[t+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const l={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},a=[e[t+1],e[t+2],["enter",r,n],e[t+3],e[t+4],["enter",i,n],["exit",i,n],["enter",l,n],["enter",o,n],["exit",o,n],["exit",l,n],e[e.length-2],e[e.length-1],["exit",r,n]];return e.splice(t,e.length-t+1,...a),e}function Jp(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l=0,o;return a;function a(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),s}function s(c){return c!==94?t(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(c){if(l>999||c===93&&!o||c===null||c===91||se(c))return t(c);if(c===93){e.exit("chunkString");const h=e.exit("gfmFootnoteCallString");return i.includes(Ue(r.sliceSerialize(h)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):t(c)}return se(c)||(o=!0),l++,e.consume(c),c===92?f:u}function f(c){return c===91||c===92||c===93?(e.consume(c),l++,u):u(c)}}function eh(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l,o=0,a;return s;function s(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):t(b)}function f(b){if(o>999||b===93&&!a||b===null||b===91||se(b))return t(b);if(b===93){e.exit("chunkString");const C=e.exit("gfmFootnoteDefinitionLabelString");return l=Ue(r.sliceSerialize(C)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return se(b)||(a=!0),o++,e.consume(b),b===92?c:f}function c(b){return b===91||b===92||b===93?(e.consume(b),o++,f):f(b)}function h(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),i.includes(l)||i.push(l),re(e,p,"gfmFootnoteDefinitionWhitespace")):t(b)}function p(b){return n(b)}}function th(e,n,t){return e.check(Vt,n,e.attempt(Xp,n,t))}function nh(e){e.exit("gfmFootnoteDefinition")}function rh(e,n,t){const r=this;return re(e,i,"gfmFootnoteDefinitionIndent",5);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?n(l):t(l)}}function ih(e){let t=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:l,resolveAll:i};return t==null&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,a){let s=-1;for(;++s<o.length;)if(o[s][0]==="enter"&&o[s][1].type==="strikethroughSequenceTemporary"&&o[s][1]._close){let u=s;for(;u--;)if(o[u][0]==="exit"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._open&&o[s][1].end.offset-o[s][1].start.offset===o[u][1].end.offset-o[u][1].start.offset){o[s][1].type="strikethroughSequence",o[u][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},o[u][1].start),end:Object.assign({},o[s][1].end)},c={type:"strikethroughText",start:Object.assign({},o[u][1].end),end:Object.assign({},o[s][1].start)},h=[["enter",f,a],["enter",o[u][1],a],["exit",o[u][1],a],["enter",c,a]],p=a.parser.constructs.insideSpan.null;p&&je(h,h.length,0,un(p,o.slice(u+1,s),a)),je(h,h.length,0,[["exit",c,a],["enter",o[s][1],a],["exit",o[s][1],a],["exit",f,a]]),je(o,u-1,s-u+3,h),s=u+h.length-2;break}}for(s=-1;++s<o.length;)o[s][1].type==="strikethroughSequenceTemporary"&&(o[s][1].type="data");return o}function l(o,a,s){const u=this.previous,f=this.events;let c=0;return h;function h(b){return u===126&&f[f.length-1][1].type!=="characterEscape"?s(b):(o.enter("strikethroughSequenceTemporary"),p(b))}function p(b){const C=_t(u);if(b===126)return c>1?s(b):(o.consume(b),c++,p);if(c<2&&!t)return s(b);const k=o.exit("strikethroughSequenceTemporary"),x=_t(b);return k._open=!x||x===2&&!!C,k._close=!C||C===2&&!!x,a(b)}}}class oh{constructor(){this.map=[]}add(n,t,r){lh(this,n,t,r)}consume(n){if(this.map.sort(function(l,o){return l[0]-o[0]}),this.map.length===0)return;let t=this.map.length;const r=[];for(;t>0;)t-=1,r.push(n.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),n.length=this.map[t][0];r.push(n.slice()),n.length=0;let i=r.pop();for(;i;){for(const l of i)n.push(l);i=r.pop()}this.map.length=0}}function lh(e,n,t,r){let i=0;if(!(t===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===n){e.map[i][1]+=t,e.map[i][2].push(...r);return}i+=1}e.map.push([n,t,r])}}function ah(e,n){let t=!1;const r=[];for(;n<e.length;){const i=e[n];if(t){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const l=r.length-1;r[l]=r[l]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(t=!0);n+=1}return r}function sh(){return{flow:{null:{name:"table",tokenize:uh,resolveAll:ch}}}}function uh(e,n,t){const r=this;let i=0,l=0,o;return a;function a(y){let D=r.events.length-1;for(;D>-1;){const z=r.events[D][1].type;if(z==="lineEnding"||z==="linePrefix")D--;else break}const P=D>-1?r.events[D][1].type:null,Y=P==="tableHead"||P==="tableRow"?S:s;return Y===S&&r.parser.lazy[r.now().line]?t(y):Y(y)}function s(y){return e.enter("tableHead"),e.enter("tableRow"),u(y)}function u(y){return y===124||(o=!0,l+=1),f(y)}function f(y){return y===null?t(y):U(y)?l>1?(l=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),p):t(y):ee(y)?re(e,f,"whitespace")(y):(l+=1,o&&(o=!1,i+=1),y===124?(e.enter("tableCellDivider"),e.consume(y),e.exit("tableCellDivider"),o=!0,f):(e.enter("data"),c(y)))}function c(y){return y===null||y===124||se(y)?(e.exit("data"),f(y)):(e.consume(y),y===92?h:c)}function h(y){return y===92||y===124?(e.consume(y),c):c(y)}function p(y){return r.interrupt=!1,r.parser.lazy[r.now().line]?t(y):(e.enter("tableDelimiterRow"),o=!1,ee(y)?re(e,b,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(y):b(y))}function b(y){return y===45||y===58?k(y):y===124?(o=!0,e.enter("tableCellDivider"),e.consume(y),e.exit("tableCellDivider"),C):R(y)}function C(y){return ee(y)?re(e,k,"whitespace")(y):k(y)}function k(y){return y===58?(l+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(y),e.exit("tableDelimiterMarker"),x):y===45?(l+=1,x(y)):y===null||U(y)?H(y):R(y)}function x(y){return y===45?(e.enter("tableDelimiterFiller"),T(y)):R(y)}function T(y){return y===45?(e.consume(y),T):y===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(y),e.exit("tableDelimiterMarker"),v):(e.exit("tableDelimiterFiller"),v(y))}function v(y){return ee(y)?re(e,H,"whitespace")(y):H(y)}function H(y){return y===124?b(y):y===null||U(y)?!o||i!==l?R(y):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(y)):R(y)}function R(y){return t(y)}function S(y){return e.enter("tableRow"),W(y)}function W(y){return y===124?(e.enter("tableCellDivider"),e.consume(y),e.exit("tableCellDivider"),W):y===null||U(y)?(e.exit("tableRow"),n(y)):ee(y)?re(e,W,"whitespace")(y):(e.enter("data"),E(y))}function E(y){return y===null||y===124||se(y)?(e.exit("data"),W(y)):(e.consume(y),y===92?V:E)}function V(y){return y===92||y===124?(e.consume(y),E):E(y)}}function ch(e,n){let t=-1,r=!0,i=0,l=[0,0,0,0],o=[0,0,0,0],a=!1,s=0,u,f,c;const h=new oh;for(;++t<e.length;){const p=e[t],b=p[1];p[0]==="enter"?b.type==="tableHead"?(a=!1,s!==0&&(Wo(h,n,s,u,f),f=void 0,s=0),u={type:"table",start:Object.assign({},b.start),end:Object.assign({},b.end)},h.add(t,0,[["enter",u,n]])):b.type==="tableRow"||b.type==="tableDelimiterRow"?(r=!0,c=void 0,l=[0,0,0,0],o=[0,t+1,0,0],a&&(a=!1,f={type:"tableBody",start:Object.assign({},b.start),end:Object.assign({},b.end)},h.add(t,0,[["enter",f,n]])),i=b.type==="tableDelimiterRow"?2:f?3:1):i&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(l[1]!==0&&(o[0]=o[1],c=xn(h,n,l,i,void 0,c),l=[0,0,0,0]),o[2]=t)):b.type==="tableCellDivider"&&(r?r=!1:(l[1]!==0&&(o[0]=o[1],c=xn(h,n,l,i,void 0,c)),l=o,o=[l[1],t,0,0])):b.type==="tableHead"?(a=!0,s=t):b.type==="tableRow"||b.type==="tableDelimiterRow"?(s=t,l[1]!==0?(o[0]=o[1],c=xn(h,n,l,i,t,c)):o[1]!==0&&(c=xn(h,n,o,i,t,c)),i=0):i&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")&&(o[3]=t)}for(s!==0&&Wo(h,n,s,u,f),h.consume(n.events),t=-1;++t<n.events.length;){const p=n.events[t];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=ah(n.events,t))}return e}function xn(e,n,t,r,i,l){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";t[0]!==0&&(l.end=Object.assign({},Lt(n.events,t[0])),e.add(t[0],0,[["exit",l,n]]));const s=Lt(n.events,t[1]);if(l={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(t[1],0,[["enter",l,n]]),t[2]!==0){const u=Lt(n.events,t[2]),f=Lt(n.events,t[3]),c={type:a,start:Object.assign({},u),end:Object.assign({},f)};if(e.add(t[2],0,[["enter",c,n]]),r!==2){const h=n.events[t[2]],p=n.events[t[3]];if(h[1].end=Object.assign({},p[1].end),h[1].type="chunkText",h[1].contentType="text",t[3]>t[2]+1){const b=t[2]+1,C=t[3]-t[2]-1;e.add(b,C,[])}}e.add(t[3]+1,0,[["exit",c,n]])}return i!==void 0&&(l.end=Object.assign({},Lt(n.events,i)),e.add(i,0,[["exit",l,n]]),l=void 0),l}function Wo(e,n,t,r,i){const l=[],o=Lt(n.events,t);i&&(i.end=Object.assign({},o),l.push(["exit",i,n])),r.end=Object.assign({},o),l.push(["exit",r,n]),e.add(t+1,0,l)}function Lt(e,n){const t=e[n],r=t[0]==="enter"?"start":"end";return t[1][r]}const fh={name:"tasklistCheck",tokenize:hh};function ph(){return{text:{91:fh}}}function hh(e,n,t){const r=this;return i;function i(s){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?t(s):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),l)}function l(s){return se(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),o):s===88||s===120?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),o):t(s)}function o(s){return s===93?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):t(s)}function a(s){return U(s)?n(s):ee(s)?e.check({tokenize:dh},n,t)(s):t(s)}}function dh(e,n,t){return re(e,r,"whitespace");function r(i){return i===null?t(i):n(i)}}function mh(e){return Ti([$p(),Qp(),ih(e),sh(),ph()])}const gh={};function bh(e){const n=this,t=e||gh,r=n.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),l=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(mh(t)),l.push(Op()),o.push(Rp(t))}/**
30
30
  * @license lucide-react v0.511.0 - ISC
31
31
  *
32
32
  * This source code is licensed under the ISC license.
33
33
  * See the LICENSE file in the root directory of this source tree.
34
- */const dh=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),mh=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,t,r)=>r?r.toUpperCase():t.toLowerCase()),Vo=e=>{const n=mh(e);return n.charAt(0).toUpperCase()+n.slice(1)},qo=(...e)=>e.filter((n,t,r)=>!!n&&n.trim()!==""&&r.indexOf(n)===t).join(" ").trim(),gh=e=>{for(const n in e)if(n.startsWith("aria-")||n==="role"||n==="title")return!0};/**
34
+ */const yh=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),kh=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,t,r)=>r?r.toUpperCase():t.toLowerCase()),Go=e=>{const n=kh(e);return n.charAt(0).toUpperCase()+n.slice(1)},Yo=(...e)=>e.filter((n,t,r)=>!!n&&n.trim()!==""&&r.indexOf(n)===t).join(" ").trim(),xh=e=>{for(const n in e)if(n.startsWith("aria-")||n==="role"||n==="title")return!0};/**
35
35
  * @license lucide-react v0.511.0 - ISC
36
36
  *
37
37
  * This source code is licensed under the ISC license.
38
38
  * See the LICENSE file in the root directory of this source tree.
39
- */var bh={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
39
+ */var wh={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
40
40
  * @license lucide-react v0.511.0 - ISC
41
41
  *
42
42
  * This source code is licensed under the ISC license.
43
43
  * See the LICENSE file in the root directory of this source tree.
44
- */const yh=ke.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:t=2,absoluteStrokeWidth:r,className:i="",children:l,iconNode:o,...a},s)=>ke.createElement("svg",{ref:s,...bh,width:n,height:n,stroke:e,strokeWidth:r?Number(t)*24/Number(n):t,className:qo("lucide",i),...!l&&!gh(a)&&{"aria-hidden":"true"},...a},[...o.map(([u,f])=>ke.createElement(u,f)),...Array.isArray(l)?l:[l]]));/**
44
+ */const Sh=te.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:t=2,absoluteStrokeWidth:r,className:i="",children:l,iconNode:o,...a},s)=>te.createElement("svg",{ref:s,...wh,width:n,height:n,stroke:e,strokeWidth:r?Number(t)*24/Number(n):t,className:Yo("lucide",i),...!l&&!xh(a)&&{"aria-hidden":"true"},...a},[...o.map(([u,f])=>te.createElement(u,f)),...Array.isArray(l)?l:[l]]));/**
45
45
  * @license lucide-react v0.511.0 - ISC
46
46
  *
47
47
  * This source code is licensed under the ISC license.
48
48
  * See the LICENSE file in the root directory of this source tree.
49
- */const Yt=(e,n)=>{const t=ke.forwardRef(({className:r,...i},l)=>ke.createElement(yh,{ref:l,iconNode:n,className:qo(`lucide-${dh(Vo(e))}`,`lucide-${e}`,r),...i}));return t.displayName=Vo(e),t};/**
49
+ */const be=(e,n)=>{const t=te.forwardRef(({className:r,...i},l)=>te.createElement(Sh,{ref:l,iconNode:n,className:Yo(`lucide-${yh(Go(e))}`,`lucide-${e}`,r),...i}));return t.displayName=Go(e),t};/**
50
50
  * @license lucide-react v0.511.0 - ISC
51
51
  *
52
52
  * This source code is licensed under the ISC license.
53
53
  * See the LICENSE file in the root directory of this source tree.
54
- */const xh=Yt("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
54
+ */const Ch=be("bold",[["path",{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",key:"mg9rjx"}]]);/**
55
55
  * @license lucide-react v0.511.0 - ISC
56
56
  *
57
57
  * This source code is licensed under the ISC license.
58
58
  * See the LICENSE file in the root directory of this source tree.
59
- */const kh=Yt("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]);/**
59
+ */const vh=be("code",[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]]);/**
60
60
  * @license lucide-react v0.511.0 - ISC
61
61
  *
62
62
  * This source code is licensed under the ISC license.
63
63
  * See the LICENSE file in the root directory of this source tree.
64
- */const wh=Yt("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
64
+ */const Eh=be("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
65
65
  * @license lucide-react v0.511.0 - ISC
66
66
  *
67
67
  * This source code is licensed under the ISC license.
68
68
  * See the LICENSE file in the root directory of this source tree.
69
- */const Sh=Yt("split",[["path",{d:"M16 3h5v5",key:"1806ms"}],["path",{d:"M8 3H3v5",key:"15dfkv"}],["path",{d:"M12 22v-8.3a4 4 0 0 0-1.172-2.872L3 3",key:"1qrqzj"}],["path",{d:"m15 9 6-6",key:"ko1vev"}]]);/**
69
+ */const Th=be("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]);/**
70
70
  * @license lucide-react v0.511.0 - ISC
71
71
  *
72
72
  * This source code is licensed under the ISC license.
73
73
  * See the LICENSE file in the root directory of this source tree.
74
- */const Eh=Yt("square-pen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]);/*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */var Tr,Wo;function Go(){if(Wo)return Tr;Wo=1;const{entries:e,setPrototypeOf:n,isFrozen:t,getPrototypeOf:r,getOwnPropertyDescriptor:i}=Object;let{freeze:l,seal:o,create:a}=Object,{apply:s,construct:u}=typeof Reflect<"u"&&Reflect;l||(l=function(B){return B}),o||(o=function(B){return B}),s||(s=function(B,ee){for(var G=arguments.length,k=new Array(G>2?G-2:0),T=2;T<G;T++)k[T-2]=arguments[T];return B.apply(ee,k)}),u||(u=function(B){for(var ee=arguments.length,G=new Array(ee>1?ee-1:0),k=1;k<ee;k++)G[k-1]=arguments[k];return new B(...G)});const f=C(Array.prototype.forEach),c=C(Array.prototype.lastIndexOf),h=C(Array.prototype.pop),p=C(Array.prototype.push),y=C(Array.prototype.splice),S=C(String.prototype.toLowerCase),E=C(String.prototype.toString),x=C(String.prototype.match),A=C(String.prototype.replace),v=C(String.prototype.indexOf),$=C(String.prototype.trim),M=C(Object.prototype.hasOwnProperty),w=C(RegExp.prototype.test),H=V(TypeError);function C(Z){return function(B){B instanceof RegExp&&(B.lastIndex=0);for(var ee=arguments.length,G=new Array(ee>1?ee-1:0),k=1;k<ee;k++)G[k-1]=arguments[k];return s(Z,B,G)}}function V(Z){return function(){for(var B=arguments.length,ee=new Array(B),G=0;G<B;G++)ee[G]=arguments[G];return u(Z,ee)}}function b(Z,B){let ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:S;n&&n(Z,null);let G=B.length;for(;G--;){let k=B[G];if(typeof k=="string"){const T=ee(k);T!==k&&(t(B)||(B[G]=T),k=T)}Z[k]=!0}return Z}function O(Z){for(let B=0;B<Z.length;B++)M(Z,B)||(Z[B]=null);return Z}function P(Z){const B=a(null);for(const[ee,G]of e(Z))M(Z,ee)&&(Array.isArray(G)?B[ee]=O(G):G&&typeof G=="object"&&G.constructor===Object?B[ee]=P(G):B[ee]=G);return B}function X(Z,B){for(;Z!==null;){const G=i(Z,B);if(G){if(G.get)return C(G.get);if(typeof G.value=="function")return C(G.value)}Z=r(Z)}function ee(){return null}return ee}const R=l(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),L=l(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),W=l(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),re=l(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),pe=l(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),ie=l(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),d=l(["#text"]),fe=l(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),_e=l(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),m=l(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),me=l(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ue=o(/\{\{[\w\W]*|[\w\W]*\}\}/gm),te=o(/<%[\w\W]*|[\w\W]*%>/gm),je=o(/\$\{[\w\W]*/gm),Fe=o(/^data-[\-\w.\u00B7-\uFFFF]+$/),ae=o(/^aria-[\-\w]+$/),Ue=o(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),He=o(/^(?:\w+script|data):/i),ut=o(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ct=o(/^html$/i),ft=o(/^[a-z][.\w]*(-[.\w]+)+$/i);var Zt=Object.freeze({__proto__:null,ARIA_ATTR:ae,ATTR_WHITESPACE:ut,CUSTOM_ELEMENT:ft,DATA_ATTR:Fe,DOCTYPE_NAME:ct,ERB_EXPR:te,IS_ALLOWED_URI:Ue,IS_SCRIPT_OR_DATA:He,MUSTACHE_EXPR:ue,TMPLIT_EXPR:je});const pt={element:1,text:3,progressingInstruction:7,comment:8,document:9},Cn=function(){return typeof window>"u"?null:window},Dr=function(B,ee){if(typeof B!="object"||typeof B.createPolicy!="function")return null;let G=null;const k="data-tt-policy-suffix";ee&&ee.hasAttribute(k)&&(G=ee.getAttribute(k));const T="dompurify"+(G?"#"+G:"");try{return B.createPolicy(T,{createHTML(q){return q},createScriptURL(q){return q}})}catch{return console.warn("TrustedTypes policy "+T+" could not be created."),null}},Jt=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function en(){let Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Cn();const B=j=>en(j);if(B.version="3.3.1",B.removed=[],!Z||!Z.document||Z.document.nodeType!==pt.document||!Z.Element)return B.isSupported=!1,B;let{document:ee}=Z;const G=ee,k=G.currentScript,{DocumentFragment:T,HTMLTemplateElement:q,Node:Q,Element:oe,NodeFilter:Ee,NamedNodeMap:Je=Z.NamedNodeMap||Z.MozNamedAttrMap,HTMLFormElement:Ve,DOMParser:xt,trustedTypes:Ye}=Z,ye=oe.prototype,ht=X(ye,"cloneNode"),qe=X(ye,"remove"),Fd=X(ye,"nextSibling"),Bd=X(ye,"childNodes"),vn=X(ye,"parentNode");if(typeof q=="function"){const j=ee.createElement("template");j.content&&j.content.ownerDocument&&(ee=j.content.ownerDocument)}let Pe,tn="";const{implementation:zr,createNodeIterator:jd,createDocumentFragment:Ud,getElementsByTagName:$d}=ee,{importNode:Hd}=G;let De=Jt();B.isSupported=typeof e=="function"&&typeof vn=="function"&&zr&&zr.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Nr,ERB_EXPR:Mr,TMPLIT_EXPR:Rr,DATA_ATTR:Vd,ARIA_ATTR:qd,IS_SCRIPT_OR_DATA:Wd,ATTR_WHITESPACE:Al,CUSTOM_ELEMENT:Gd}=Zt;let{IS_ALLOWED_URI:_l}=Zt,we=null;const Il=b({},[...R,...L,...W,...pe,...d]);let Ce=null;const Ll=b({},[...fe,..._e,...m,...me]);let he=Object.seal(a(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),nn=null,Fr=null;const It=Object.seal(a(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Pl=!0,Br=!0,Dl=!1,Ol=!0,Lt=!1,Tn=!0,kt=!1,jr=!1,Ur=!1,Pt=!1,An=!1,_n=!1,zl=!0,Nl=!1;const Yd="user-content-";let $r=!0,rn=!1,Dt={},Xe=null;const Hr=b({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ml=null;const Rl=b({},["audio","video","img","source","image","track"]);let Vr=null;const Fl=b({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),In="http://www.w3.org/1998/Math/MathML",Ln="http://www.w3.org/2000/svg",et="http://www.w3.org/1999/xhtml";let Ot=et,qr=!1,Wr=null;const Xd=b({},[In,Ln,et],E);let Pn=b({},["mi","mo","mn","ms","mtext"]),Dn=b({},["annotation-xml"]);const Kd=b({},["title","style","font","a","script"]);let on=null;const Qd=["application/xhtml+xml","text/html"],Zd="text/html";let xe=null,zt=null;const Jd=ee.createElement("form"),Bl=function(g){return g instanceof RegExp||g instanceof Function},Gr=function(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(zt&&zt===g)){if((!g||typeof g!="object")&&(g={}),g=P(g),on=Qd.indexOf(g.PARSER_MEDIA_TYPE)===-1?Zd:g.PARSER_MEDIA_TYPE,xe=on==="application/xhtml+xml"?E:S,we=M(g,"ALLOWED_TAGS")?b({},g.ALLOWED_TAGS,xe):Il,Ce=M(g,"ALLOWED_ATTR")?b({},g.ALLOWED_ATTR,xe):Ll,Wr=M(g,"ALLOWED_NAMESPACES")?b({},g.ALLOWED_NAMESPACES,E):Xd,Vr=M(g,"ADD_URI_SAFE_ATTR")?b(P(Fl),g.ADD_URI_SAFE_ATTR,xe):Fl,Ml=M(g,"ADD_DATA_URI_TAGS")?b(P(Rl),g.ADD_DATA_URI_TAGS,xe):Rl,Xe=M(g,"FORBID_CONTENTS")?b({},g.FORBID_CONTENTS,xe):Hr,nn=M(g,"FORBID_TAGS")?b({},g.FORBID_TAGS,xe):P({}),Fr=M(g,"FORBID_ATTR")?b({},g.FORBID_ATTR,xe):P({}),Dt=M(g,"USE_PROFILES")?g.USE_PROFILES:!1,Pl=g.ALLOW_ARIA_ATTR!==!1,Br=g.ALLOW_DATA_ATTR!==!1,Dl=g.ALLOW_UNKNOWN_PROTOCOLS||!1,Ol=g.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Lt=g.SAFE_FOR_TEMPLATES||!1,Tn=g.SAFE_FOR_XML!==!1,kt=g.WHOLE_DOCUMENT||!1,Pt=g.RETURN_DOM||!1,An=g.RETURN_DOM_FRAGMENT||!1,_n=g.RETURN_TRUSTED_TYPE||!1,Ur=g.FORCE_BODY||!1,zl=g.SANITIZE_DOM!==!1,Nl=g.SANITIZE_NAMED_PROPS||!1,$r=g.KEEP_CONTENT!==!1,rn=g.IN_PLACE||!1,_l=g.ALLOWED_URI_REGEXP||Ue,Ot=g.NAMESPACE||et,Pn=g.MATHML_TEXT_INTEGRATION_POINTS||Pn,Dn=g.HTML_INTEGRATION_POINTS||Dn,he=g.CUSTOM_ELEMENT_HANDLING||{},g.CUSTOM_ELEMENT_HANDLING&&Bl(g.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(he.tagNameCheck=g.CUSTOM_ELEMENT_HANDLING.tagNameCheck),g.CUSTOM_ELEMENT_HANDLING&&Bl(g.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(he.attributeNameCheck=g.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),g.CUSTOM_ELEMENT_HANDLING&&typeof g.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(he.allowCustomizedBuiltInElements=g.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Lt&&(Br=!1),An&&(Pt=!0),Dt&&(we=b({},d),Ce=[],Dt.html===!0&&(b(we,R),b(Ce,fe)),Dt.svg===!0&&(b(we,L),b(Ce,_e),b(Ce,me)),Dt.svgFilters===!0&&(b(we,W),b(Ce,_e),b(Ce,me)),Dt.mathMl===!0&&(b(we,pe),b(Ce,m),b(Ce,me))),g.ADD_TAGS&&(typeof g.ADD_TAGS=="function"?It.tagCheck=g.ADD_TAGS:(we===Il&&(we=P(we)),b(we,g.ADD_TAGS,xe))),g.ADD_ATTR&&(typeof g.ADD_ATTR=="function"?It.attributeCheck=g.ADD_ATTR:(Ce===Ll&&(Ce=P(Ce)),b(Ce,g.ADD_ATTR,xe))),g.ADD_URI_SAFE_ATTR&&b(Vr,g.ADD_URI_SAFE_ATTR,xe),g.FORBID_CONTENTS&&(Xe===Hr&&(Xe=P(Xe)),b(Xe,g.FORBID_CONTENTS,xe)),g.ADD_FORBID_CONTENTS&&(Xe===Hr&&(Xe=P(Xe)),b(Xe,g.ADD_FORBID_CONTENTS,xe)),$r&&(we["#text"]=!0),kt&&b(we,["html","head","body"]),we.table&&(b(we,["tbody"]),delete nn.tbody),g.TRUSTED_TYPES_POLICY){if(typeof g.TRUSTED_TYPES_POLICY.createHTML!="function")throw H('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof g.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw H('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Pe=g.TRUSTED_TYPES_POLICY,tn=Pe.createHTML("")}else Pe===void 0&&(Pe=Dr(Ye,k)),Pe!==null&&typeof tn=="string"&&(tn=Pe.createHTML(""));l&&l(g),zt=g}},jl=b({},[...L,...W,...re]),Ul=b({},[...pe,...ie]),em=function(g){let I=vn(g);(!I||!I.tagName)&&(I={namespaceURI:Ot,tagName:"template"});const F=S(g.tagName),ce=S(I.tagName);return Wr[g.namespaceURI]?g.namespaceURI===Ln?I.namespaceURI===et?F==="svg":I.namespaceURI===In?F==="svg"&&(ce==="annotation-xml"||Pn[ce]):!!jl[F]:g.namespaceURI===In?I.namespaceURI===et?F==="math":I.namespaceURI===Ln?F==="math"&&Dn[ce]:!!Ul[F]:g.namespaceURI===et?I.namespaceURI===Ln&&!Dn[ce]||I.namespaceURI===In&&!Pn[ce]?!1:!Ul[F]&&(Kd[F]||!jl[F]):!!(on==="application/xhtml+xml"&&Wr[g.namespaceURI]):!1},Ke=function(g){p(B.removed,{element:g});try{vn(g).removeChild(g)}catch{qe(g)}},wt=function(g,I){try{p(B.removed,{attribute:I.getAttributeNode(g),from:I})}catch{p(B.removed,{attribute:null,from:I})}if(I.removeAttribute(g),g==="is")if(Pt||An)try{Ke(I)}catch{}else try{I.setAttribute(g,"")}catch{}},$l=function(g){let I=null,F=null;if(Ur)g="<remove></remove>"+g;else{const ge=x(g,/^[\r\n\t ]+/);F=ge&&ge[0]}on==="application/xhtml+xml"&&Ot===et&&(g='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+g+"</body></html>");const ce=Pe?Pe.createHTML(g):g;if(Ot===et)try{I=new xt().parseFromString(ce,on)}catch{}if(!I||!I.documentElement){I=zr.createDocument(Ot,"template",null);try{I.documentElement.innerHTML=qr?tn:ce}catch{}}const Ie=I.body||I.documentElement;return g&&F&&Ie.insertBefore(ee.createTextNode(F),Ie.childNodes[0]||null),Ot===et?$d.call(I,kt?"html":"body")[0]:kt?I.documentElement:Ie},Hl=function(g){return jd.call(g.ownerDocument||g,g,Ee.SHOW_ELEMENT|Ee.SHOW_COMMENT|Ee.SHOW_TEXT|Ee.SHOW_PROCESSING_INSTRUCTION|Ee.SHOW_CDATA_SECTION,null)},Yr=function(g){return g instanceof Ve&&(typeof g.nodeName!="string"||typeof g.textContent!="string"||typeof g.removeChild!="function"||!(g.attributes instanceof Je)||typeof g.removeAttribute!="function"||typeof g.setAttribute!="function"||typeof g.namespaceURI!="string"||typeof g.insertBefore!="function"||typeof g.hasChildNodes!="function")},Vl=function(g){return typeof Q=="function"&&g instanceof Q};function tt(j,g,I){f(j,F=>{F.call(B,g,I,zt)})}const ql=function(g){let I=null;if(tt(De.beforeSanitizeElements,g,null),Yr(g))return Ke(g),!0;const F=xe(g.nodeName);if(tt(De.uponSanitizeElement,g,{tagName:F,allowedTags:we}),Tn&&g.hasChildNodes()&&!Vl(g.firstElementChild)&&w(/<[/\w!]/g,g.innerHTML)&&w(/<[/\w!]/g,g.textContent)||g.nodeType===pt.progressingInstruction||Tn&&g.nodeType===pt.comment&&w(/<[/\w]/g,g.data))return Ke(g),!0;if(!(It.tagCheck instanceof Function&&It.tagCheck(F))&&(!we[F]||nn[F])){if(!nn[F]&&Gl(F)&&(he.tagNameCheck instanceof RegExp&&w(he.tagNameCheck,F)||he.tagNameCheck instanceof Function&&he.tagNameCheck(F)))return!1;if($r&&!Xe[F]){const ce=vn(g)||g.parentNode,Ie=Bd(g)||g.childNodes;if(Ie&&ce){const ge=Ie.length;for(let Ne=ge-1;Ne>=0;--Ne){const nt=ht(Ie[Ne],!0);nt.__removalCount=(g.__removalCount||0)+1,ce.insertBefore(nt,Fd(g))}}}return Ke(g),!0}return g instanceof oe&&!em(g)||(F==="noscript"||F==="noembed"||F==="noframes")&&w(/<\/no(script|embed|frames)/i,g.innerHTML)?(Ke(g),!0):(Lt&&g.nodeType===pt.text&&(I=g.textContent,f([Nr,Mr,Rr],ce=>{I=A(I,ce," ")}),g.textContent!==I&&(p(B.removed,{element:g.cloneNode()}),g.textContent=I)),tt(De.afterSanitizeElements,g,null),!1)},Wl=function(g,I,F){if(zl&&(I==="id"||I==="name")&&(F in ee||F in Jd))return!1;if(!(Br&&!Fr[I]&&w(Vd,I))){if(!(Pl&&w(qd,I))){if(!(It.attributeCheck instanceof Function&&It.attributeCheck(I,g))){if(!Ce[I]||Fr[I]){if(!(Gl(g)&&(he.tagNameCheck instanceof RegExp&&w(he.tagNameCheck,g)||he.tagNameCheck instanceof Function&&he.tagNameCheck(g))&&(he.attributeNameCheck instanceof RegExp&&w(he.attributeNameCheck,I)||he.attributeNameCheck instanceof Function&&he.attributeNameCheck(I,g))||I==="is"&&he.allowCustomizedBuiltInElements&&(he.tagNameCheck instanceof RegExp&&w(he.tagNameCheck,F)||he.tagNameCheck instanceof Function&&he.tagNameCheck(F))))return!1}else if(!Vr[I]){if(!w(_l,A(F,Al,""))){if(!((I==="src"||I==="xlink:href"||I==="href")&&g!=="script"&&v(F,"data:")===0&&Ml[g])){if(!(Dl&&!w(Wd,A(F,Al,"")))){if(F)return!1}}}}}}}return!0},Gl=function(g){return g!=="annotation-xml"&&x(g,Gd)},Yl=function(g){tt(De.beforeSanitizeAttributes,g,null);const{attributes:I}=g;if(!I||Yr(g))return;const F={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ce,forceKeepAttr:void 0};let ce=I.length;for(;ce--;){const Ie=I[ce],{name:ge,namespaceURI:Ne,value:nt}=Ie,Nt=xe(ge),Xr=nt;let ve=ge==="value"?Xr:$(Xr);if(F.attrName=Nt,F.attrValue=ve,F.keepAttr=!0,F.forceKeepAttr=void 0,tt(De.uponSanitizeAttribute,g,F),ve=F.attrValue,Nl&&(Nt==="id"||Nt==="name")&&(wt(ge,g),ve=Yd+ve),Tn&&w(/((--!?|])>)|<\/(style|title|textarea)/i,ve)){wt(ge,g);continue}if(Nt==="attributename"&&x(ve,"href")){wt(ge,g);continue}if(F.forceKeepAttr)continue;if(!F.keepAttr){wt(ge,g);continue}if(!Ol&&w(/\/>/i,ve)){wt(ge,g);continue}Lt&&f([Nr,Mr,Rr],Kl=>{ve=A(ve,Kl," ")});const Xl=xe(g.nodeName);if(!Wl(Xl,Nt,ve)){wt(ge,g);continue}if(Pe&&typeof Ye=="object"&&typeof Ye.getAttributeType=="function"&&!Ne)switch(Ye.getAttributeType(Xl,Nt)){case"TrustedHTML":{ve=Pe.createHTML(ve);break}case"TrustedScriptURL":{ve=Pe.createScriptURL(ve);break}}if(ve!==Xr)try{Ne?g.setAttributeNS(Ne,ge,ve):g.setAttribute(ge,ve),Yr(g)?Ke(g):h(B.removed)}catch{wt(ge,g)}}tt(De.afterSanitizeAttributes,g,null)},tm=function j(g){let I=null;const F=Hl(g);for(tt(De.beforeSanitizeShadowDOM,g,null);I=F.nextNode();)tt(De.uponSanitizeShadowNode,I,null),ql(I),Yl(I),I.content instanceof T&&j(I.content);tt(De.afterSanitizeShadowDOM,g,null)};return B.sanitize=function(j){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},I=null,F=null,ce=null,Ie=null;if(qr=!j,qr&&(j="<!-->"),typeof j!="string"&&!Vl(j))if(typeof j.toString=="function"){if(j=j.toString(),typeof j!="string")throw H("dirty is not a string, aborting")}else throw H("toString is not a function");if(!B.isSupported)return j;if(jr||Gr(g),B.removed=[],typeof j=="string"&&(rn=!1),rn){if(j.nodeName){const nt=xe(j.nodeName);if(!we[nt]||nn[nt])throw H("root node is forbidden and cannot be sanitized in-place")}}else if(j instanceof Q)I=$l("<!---->"),F=I.ownerDocument.importNode(j,!0),F.nodeType===pt.element&&F.nodeName==="BODY"||F.nodeName==="HTML"?I=F:I.appendChild(F);else{if(!Pt&&!Lt&&!kt&&j.indexOf("<")===-1)return Pe&&_n?Pe.createHTML(j):j;if(I=$l(j),!I)return Pt?null:_n?tn:""}I&&Ur&&Ke(I.firstChild);const ge=Hl(rn?j:I);for(;ce=ge.nextNode();)ql(ce),Yl(ce),ce.content instanceof T&&tm(ce.content);if(rn)return j;if(Pt){if(An)for(Ie=Ud.call(I.ownerDocument);I.firstChild;)Ie.appendChild(I.firstChild);else Ie=I;return(Ce.shadowroot||Ce.shadowrootmode)&&(Ie=Hd.call(G,Ie,!0)),Ie}let Ne=kt?I.outerHTML:I.innerHTML;return kt&&we["!doctype"]&&I.ownerDocument&&I.ownerDocument.doctype&&I.ownerDocument.doctype.name&&w(ct,I.ownerDocument.doctype.name)&&(Ne="<!DOCTYPE "+I.ownerDocument.doctype.name+`>
75
- `+Ne),Lt&&f([Nr,Mr,Rr],nt=>{Ne=A(Ne,nt," ")}),Pe&&_n?Pe.createHTML(Ne):Ne},B.setConfig=function(){let j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Gr(j),jr=!0},B.clearConfig=function(){zt=null,jr=!1},B.isValidAttribute=function(j,g,I){zt||Gr({});const F=xe(j),ce=xe(g);return Wl(F,ce,I)},B.addHook=function(j,g){typeof g=="function"&&p(De[j],g)},B.removeHook=function(j,g){if(g!==void 0){const I=c(De[j],g);return I===-1?void 0:y(De[j],I,1)[0]}return h(De[j])},B.removeHooks=function(j){De[j]=[]},B.removeAllHooks=function(){De=Jt()},B}var Or=en();return Tr=Or,Tr}var Ar,Yo;function Ch(){return Yo||(Yo=1,Ar=self.DOMPurify||(self.DOMPurify=Go().default||Go())),Ar}var vh=Ch();const Th=Bn(vh);function Xo(e,n){if(typeof e=="function")return e(n);e!=null&&(e.current=n)}function Ah(...e){return n=>{let t=!1;const r=e.map(i=>{const l=Xo(i,n);return!t&&typeof l=="function"&&(t=!0),l});if(t)return()=>{for(let i=0;i<r.length;i++){const l=r[i];typeof l=="function"?l():Xo(e[i],null)}}}}var _h=Symbol.for("react.lazy"),kn=Se[" use ".trim().toString()];function Ih(e){return typeof e=="object"&&e!==null&&"then"in e}function Ko(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===_h&&"_payload"in e&&Ih(e._payload)}function Qo(e){const n=Lh(e),t=Se.forwardRef((r,i)=>{let{children:l,...o}=r;Ko(l)&&typeof kn=="function"&&(l=kn(l._payload));const a=Se.Children.toArray(l),s=a.find(Dh);if(s){const u=s.props.children,f=a.map(c=>c===s?Se.Children.count(u)>1?Se.Children.only(null):Se.isValidElement(u)?u.props.children:null:c);return D.jsx(n,{...o,ref:i,children:Se.isValidElement(u)?Se.cloneElement(u,void 0,f):null})}return D.jsx(n,{...o,ref:i,children:l})});return t.displayName=`${e}.Slot`,t}var Zo=Qo("Slot");function Lh(e){const n=Se.forwardRef((t,r)=>{let{children:i,...l}=t;if(Ko(i)&&typeof kn=="function"&&(i=kn(i._payload)),Se.isValidElement(i)){const o=zh(i),a=Oh(l,i.props);return i.type!==Se.Fragment&&(a.ref=r?Ah(r,o):o),Se.cloneElement(i,a)}return Se.Children.count(i)>1?Se.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var Ph=Symbol("radix.slottable");function Dh(e){return Se.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ph}function Oh(e,n){const t={...n};for(const r in n){const i=e[r],l=n[r];/^on[A-Z]/.test(r)?i&&l?t[r]=(...a)=>{const s=l(...a);return i(...a),s}:i&&(t[r]=i):r==="style"?t[r]={...i,...l}:r==="className"&&(t[r]=[i,l].filter(Boolean).join(" "))}return{...e,...t}}function zh(e){var r,i;let n=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,t=n&&"isReactWarning"in n&&n.isReactWarning;return t?e.ref:(n=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,t=n&&"isReactWarning"in n&&n.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}function Jo(e){var n,t,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(n=0;n<i;n++)e[n]&&(t=Jo(e[n]))&&(r&&(r+=" "),r+=t)}else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function el(){for(var e,n,t=0,r="",i=arguments.length;t<i;t++)(e=arguments[t])&&(n=Jo(e))&&(r&&(r+=" "),r+=n);return r}const tl=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,nl=el,rl=(e,n)=>t=>{var r;if((n==null?void 0:n.variants)==null)return nl(e,t==null?void 0:t.class,t==null?void 0:t.className);const{variants:i,defaultVariants:l}=n,o=Object.keys(i).map(u=>{const f=t==null?void 0:t[u],c=l==null?void 0:l[u];if(f===null)return null;const h=tl(f)||tl(c);return i[u][h]}),a=t&&Object.entries(t).reduce((u,f)=>{let[c,h]=f;return h===void 0||(u[c]=h),u},{}),s=n==null||(r=n.compoundVariants)===null||r===void 0?void 0:r.reduce((u,f)=>{let{class:c,className:h,...p}=f;return Object.entries(p).every(y=>{let[S,E]=y;return Array.isArray(E)?E.includes({...l,...a}[S]):{...l,...a}[S]===E})?[...u,c,h]:u},[]);return nl(e,o,s,t==null?void 0:t.class,t==null?void 0:t.className)},Nh=(e,n)=>{const t=new Array(e.length+n.length);for(let r=0;r<e.length;r++)t[r]=e[r];for(let r=0;r<n.length;r++)t[e.length+r]=n[r];return t},Mh=(e,n)=>({classGroupId:e,validator:n}),il=(e=new Map,n=null,t)=>({nextPart:e,validators:n,classGroupId:t}),wn="-",ol=[],Rh="arbitrary..",Fh=e=>{const n=jh(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return Bh(o);const a=o.split(wn),s=a[0]===""&&a.length>1?1:0;return ll(a,s,n)},getConflictingClassGroupIds:(o,a)=>{if(a){const s=r[o],u=t[o];return s?u?Nh(u,s):s:u||ol}return t[o]||ol}}},ll=(e,n,t)=>{if(e.length-n===0)return t.classGroupId;const i=e[n],l=t.nextPart.get(i);if(l){const u=ll(e,n+1,l);if(u)return u}const o=t.validators;if(o===null)return;const a=n===0?e.join(wn):e.slice(n).join(wn),s=o.length;for(let u=0;u<s;u++){const f=o[u];if(f.validator(a))return f.classGroupId}},Bh=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const n=e.slice(1,-1),t=n.indexOf(":"),r=n.slice(0,t);return r?Rh+r:void 0})(),jh=e=>{const{theme:n,classGroups:t}=e;return Uh(t,n)},Uh=(e,n)=>{const t=il();for(const r in e){const i=e[r];_r(i,t,r,n)}return t},_r=(e,n,t,r)=>{const i=e.length;for(let l=0;l<i;l++){const o=e[l];$h(o,n,t,r)}},$h=(e,n,t,r)=>{if(typeof e=="string"){Hh(e,n,t);return}if(typeof e=="function"){Vh(e,n,t,r);return}qh(e,n,t,r)},Hh=(e,n,t)=>{const r=e===""?n:al(n,e);r.classGroupId=t},Vh=(e,n,t,r)=>{if(Wh(e)){_r(e(r),n,t,r);return}n.validators===null&&(n.validators=[]),n.validators.push(Mh(t,e))},qh=(e,n,t,r)=>{const i=Object.entries(e),l=i.length;for(let o=0;o<l;o++){const[a,s]=i[o];_r(s,al(n,a),t,r)}},al=(e,n)=>{let t=e;const r=n.split(wn),i=r.length;for(let l=0;l<i;l++){const o=r[l];let a=t.nextPart.get(o);a||(a=il(),t.nextPart.set(o,a)),t=a}return t},Wh=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Gh=e=>{if(e<1)return{get:()=>{},set:()=>{}};let n=0,t=Object.create(null),r=Object.create(null);const i=(l,o)=>{t[l]=o,n++,n>e&&(n=0,r=t,t=Object.create(null))};return{get(l){let o=t[l];if(o!==void 0)return o;if((o=r[l])!==void 0)return i(l,o),o},set(l,o){l in t?t[l]=o:i(l,o)}}},Ir="!",sl=":",Yh=[],ul=(e,n,t,r,i)=>({modifiers:e,hasImportantModifier:n,baseClassName:t,maybePostfixModifierPosition:r,isExternal:i}),Xh=e=>{const{prefix:n,experimentalParseClassName:t}=e;let r=i=>{const l=[];let o=0,a=0,s=0,u;const f=i.length;for(let S=0;S<f;S++){const E=i[S];if(o===0&&a===0){if(E===sl){l.push(i.slice(s,S)),s=S+1;continue}if(E==="/"){u=S;continue}}E==="["?o++:E==="]"?o--:E==="("?a++:E===")"&&a--}const c=l.length===0?i:i.slice(s);let h=c,p=!1;c.endsWith(Ir)?(h=c.slice(0,-1),p=!0):c.startsWith(Ir)&&(h=c.slice(1),p=!0);const y=u&&u>s?u-s:void 0;return ul(l,p,h,y)};if(n){const i=n+sl,l=r;r=o=>o.startsWith(i)?l(o.slice(i.length)):ul(Yh,!1,o,void 0,!0)}if(t){const i=r;r=l=>t({className:l,parseClassName:i})}return r},Kh=e=>{const n=new Map;return e.orderSensitiveModifiers.forEach((t,r)=>{n.set(t,1e6+r)}),t=>{const r=[];let i=[];for(let l=0;l<t.length;l++){const o=t[l],a=o[0]==="[",s=n.has(o);a||s?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(o)):i.push(o)}return i.length>0&&(i.sort(),r.push(...i)),r}},Qh=e=>({cache:Gh(e.cacheSize),parseClassName:Xh(e),sortModifiers:Kh(e),...Fh(e)}),Zh=/\s+/,Jh=(e,n)=>{const{parseClassName:t,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:l}=n,o=[],a=e.trim().split(Zh);let s="";for(let u=a.length-1;u>=0;u-=1){const f=a[u],{isExternal:c,modifiers:h,hasImportantModifier:p,baseClassName:y,maybePostfixModifierPosition:S}=t(f);if(c){s=f+(s.length>0?" "+s:s);continue}let E=!!S,x=r(E?y.substring(0,S):y);if(!x){if(!E){s=f+(s.length>0?" "+s:s);continue}if(x=r(y),!x){s=f+(s.length>0?" "+s:s);continue}E=!1}const A=h.length===0?"":h.length===1?h[0]:l(h).join(":"),v=p?A+Ir:A,$=v+x;if(o.indexOf($)>-1)continue;o.push($);const M=i(x,E);for(let w=0;w<M.length;++w){const H=M[w];o.push(v+H)}s=f+(s.length>0?" "+s:s)}return s},ed=(...e)=>{let n=0,t,r,i="";for(;n<e.length;)(t=e[n++])&&(r=cl(t))&&(i&&(i+=" "),i+=r);return i},cl=e=>{if(typeof e=="string")return e;let n,t="";for(let r=0;r<e.length;r++)e[r]&&(n=cl(e[r]))&&(t&&(t+=" "),t+=n);return t},td=(e,...n)=>{let t,r,i,l;const o=s=>{const u=n.reduce((f,c)=>c(f),e());return t=Qh(u),r=t.cache.get,i=t.cache.set,l=a,a(s)},a=s=>{const u=r(s);if(u)return u;const f=Jh(s,t);return i(s,f),f};return l=o,(...s)=>l(ed(...s))},nd=[],be=e=>{const n=t=>t[e]||nd;return n.isThemeGetter=!0,n},fl=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,pl=/^\((?:(\w[\w-]*):)?(.+)\)$/i,rd=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,id=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,od=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ld=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ad=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,sd=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,lt=e=>rd.test(e),K=e=>!!e&&!Number.isNaN(Number(e)),at=e=>!!e&&Number.isInteger(Number(e)),Lr=e=>e.endsWith("%")&&K(e.slice(0,-1)),Ze=e=>id.test(e),hl=()=>!0,ud=e=>od.test(e)&&!ld.test(e),Pr=()=>!1,cd=e=>ad.test(e),fd=e=>sd.test(e),pd=e=>!z(e)&&!N(e),hd=e=>st(e,xl,Pr),z=e=>fl.test(e),bt=e=>st(e,kl,ud),dl=e=>st(e,wd,K),dd=e=>st(e,Sl,hl),md=e=>st(e,wl,Pr),ml=e=>st(e,bl,Pr),gd=e=>st(e,yl,fd),Sn=e=>st(e,El,cd),N=e=>pl.test(e),Xt=e=>yt(e,kl),bd=e=>yt(e,wl),gl=e=>yt(e,bl),yd=e=>yt(e,xl),xd=e=>yt(e,yl),En=e=>yt(e,El,!0),kd=e=>yt(e,Sl,!0),st=(e,n,t)=>{const r=fl.exec(e);return r?r[1]?n(r[1]):t(r[2]):!1},yt=(e,n,t=!1)=>{const r=pl.exec(e);return r?r[1]?n(r[1]):t:!1},bl=e=>e==="position"||e==="percentage",yl=e=>e==="image"||e==="url",xl=e=>e==="length"||e==="size"||e==="bg-size",kl=e=>e==="length",wd=e=>e==="number",wl=e=>e==="family-name",Sl=e=>e==="number"||e==="weight",El=e=>e==="shadow",Sd=td(()=>{const e=be("color"),n=be("font"),t=be("text"),r=be("font-weight"),i=be("tracking"),l=be("leading"),o=be("breakpoint"),a=be("container"),s=be("spacing"),u=be("radius"),f=be("shadow"),c=be("inset-shadow"),h=be("text-shadow"),p=be("drop-shadow"),y=be("blur"),S=be("perspective"),E=be("aspect"),x=be("ease"),A=be("animate"),v=()=>["auto","avoid","all","avoid-page","page","left","right","column"],$=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],M=()=>[...$(),N,z],w=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto","contain","none"],C=()=>[N,z,s],V=()=>[lt,"full","auto",...C()],b=()=>[at,"none","subgrid",N,z],O=()=>["auto",{span:["full",at,N,z]},at,N,z],P=()=>[at,"auto",N,z],X=()=>["auto","min","max","fr",N,z],R=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],L=()=>["start","end","center","stretch","center-safe","end-safe"],W=()=>["auto",...C()],re=()=>[lt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],pe=()=>[lt,"screen","full","dvw","lvw","svw","min","max","fit",...C()],ie=()=>[lt,"screen","full","lh","dvh","lvh","svh","min","max","fit",...C()],d=()=>[e,N,z],fe=()=>[...$(),gl,ml,{position:[N,z]}],_e=()=>["no-repeat",{repeat:["","x","y","space","round"]}],m=()=>["auto","cover","contain",yd,hd,{size:[N,z]}],me=()=>[Lr,Xt,bt],ue=()=>["","none","full",u,N,z],te=()=>["",K,Xt,bt],je=()=>["solid","dashed","dotted","double"],Fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ae=()=>[K,Lr,gl,ml],Ue=()=>["","none",y,N,z],He=()=>["none",K,N,z],ut=()=>["none",K,N,z],ct=()=>[K,N,z],ft=()=>[lt,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ze],breakpoint:[Ze],color:[hl],container:[Ze],"drop-shadow":[Ze],ease:["in","out","in-out"],font:[pd],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ze],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ze],shadow:[Ze],spacing:["px",K],text:[Ze],"text-shadow":[Ze],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",lt,z,N,E]}],container:["container"],columns:[{columns:[K,z,N,a]}],"break-after":[{"break-after":v()}],"break-before":[{"break-before":v()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:M()}],overflow:[{overflow:w()}],"overflow-x":[{"overflow-x":w()}],"overflow-y":[{"overflow-y":w()}],overscroll:[{overscroll:H()}],"overscroll-x":[{"overscroll-x":H()}],"overscroll-y":[{"overscroll-y":H()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:V()}],"inset-x":[{"inset-x":V()}],"inset-y":[{"inset-y":V()}],start:[{"inset-s":V(),start:V()}],end:[{"inset-e":V(),end:V()}],"inset-bs":[{"inset-bs":V()}],"inset-be":[{"inset-be":V()}],top:[{top:V()}],right:[{right:V()}],bottom:[{bottom:V()}],left:[{left:V()}],visibility:["visible","invisible","collapse"],z:[{z:[at,"auto",N,z]}],basis:[{basis:[lt,"full","auto",a,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[K,lt,"auto","initial","none",z]}],grow:[{grow:["",K,N,z]}],shrink:[{shrink:["",K,N,z]}],order:[{order:[at,"first","last","none",N,z]}],"grid-cols":[{"grid-cols":b()}],"col-start-end":[{col:O()}],"col-start":[{"col-start":P()}],"col-end":[{"col-end":P()}],"grid-rows":[{"grid-rows":b()}],"row-start-end":[{row:O()}],"row-start":[{"row-start":P()}],"row-end":[{"row-end":P()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":X()}],"auto-rows":[{"auto-rows":X()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...R(),"normal"]}],"justify-items":[{"justify-items":[...L(),"normal"]}],"justify-self":[{"justify-self":["auto",...L()]}],"align-content":[{content:["normal",...R()]}],"align-items":[{items:[...L(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...L(),{baseline:["","last"]}]}],"place-content":[{"place-content":R()}],"place-items":[{"place-items":[...L(),"baseline"]}],"place-self":[{"place-self":["auto",...L()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pbs:[{pbs:C()}],pbe:[{pbe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:W()}],mx:[{mx:W()}],my:[{my:W()}],ms:[{ms:W()}],me:[{me:W()}],mbs:[{mbs:W()}],mbe:[{mbe:W()}],mt:[{mt:W()}],mr:[{mr:W()}],mb:[{mb:W()}],ml:[{ml:W()}],"space-x":[{"space-x":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:re()}],"inline-size":[{inline:["auto",...pe()]}],"min-inline-size":[{"min-inline":["auto",...pe()]}],"max-inline-size":[{"max-inline":["none",...pe()]}],"block-size":[{block:["auto",...ie()]}],"min-block-size":[{"min-block":["auto",...ie()]}],"max-block-size":[{"max-block":["none",...ie()]}],w:[{w:[a,"screen",...re()]}],"min-w":[{"min-w":[a,"screen","none",...re()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[o]},...re()]}],h:[{h:["screen","lh",...re()]}],"min-h":[{"min-h":["screen","lh","none",...re()]}],"max-h":[{"max-h":["screen","lh",...re()]}],"font-size":[{text:["base",t,Xt,bt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,kd,dd]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Lr,z]}],"font-family":[{font:[bd,md,n]}],"font-features":[{"font-features":[z]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,N,z]}],"line-clamp":[{"line-clamp":[K,"none",N,dl]}],leading:[{leading:[l,...C()]}],"list-image":[{"list-image":["none",N,z]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",N,z]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:d()}],"text-color":[{text:d()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...je(),"wavy"]}],"text-decoration-thickness":[{decoration:[K,"from-font","auto",N,bt]}],"text-decoration-color":[{decoration:d()}],"underline-offset":[{"underline-offset":[K,"auto",N,z]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",N,z]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",N,z]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:fe()}],"bg-repeat":[{bg:_e()}],"bg-size":[{bg:m()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},at,N,z],radial:["",N,z],conic:[at,N,z]},xd,gd]}],"bg-color":[{bg:d()}],"gradient-from-pos":[{from:me()}],"gradient-via-pos":[{via:me()}],"gradient-to-pos":[{to:me()}],"gradient-from":[{from:d()}],"gradient-via":[{via:d()}],"gradient-to":[{to:d()}],rounded:[{rounded:ue()}],"rounded-s":[{"rounded-s":ue()}],"rounded-e":[{"rounded-e":ue()}],"rounded-t":[{"rounded-t":ue()}],"rounded-r":[{"rounded-r":ue()}],"rounded-b":[{"rounded-b":ue()}],"rounded-l":[{"rounded-l":ue()}],"rounded-ss":[{"rounded-ss":ue()}],"rounded-se":[{"rounded-se":ue()}],"rounded-ee":[{"rounded-ee":ue()}],"rounded-es":[{"rounded-es":ue()}],"rounded-tl":[{"rounded-tl":ue()}],"rounded-tr":[{"rounded-tr":ue()}],"rounded-br":[{"rounded-br":ue()}],"rounded-bl":[{"rounded-bl":ue()}],"border-w":[{border:te()}],"border-w-x":[{"border-x":te()}],"border-w-y":[{"border-y":te()}],"border-w-s":[{"border-s":te()}],"border-w-e":[{"border-e":te()}],"border-w-bs":[{"border-bs":te()}],"border-w-be":[{"border-be":te()}],"border-w-t":[{"border-t":te()}],"border-w-r":[{"border-r":te()}],"border-w-b":[{"border-b":te()}],"border-w-l":[{"border-l":te()}],"divide-x":[{"divide-x":te()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":te()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...je(),"hidden","none"]}],"divide-style":[{divide:[...je(),"hidden","none"]}],"border-color":[{border:d()}],"border-color-x":[{"border-x":d()}],"border-color-y":[{"border-y":d()}],"border-color-s":[{"border-s":d()}],"border-color-e":[{"border-e":d()}],"border-color-bs":[{"border-bs":d()}],"border-color-be":[{"border-be":d()}],"border-color-t":[{"border-t":d()}],"border-color-r":[{"border-r":d()}],"border-color-b":[{"border-b":d()}],"border-color-l":[{"border-l":d()}],"divide-color":[{divide:d()}],"outline-style":[{outline:[...je(),"none","hidden"]}],"outline-offset":[{"outline-offset":[K,N,z]}],"outline-w":[{outline:["",K,Xt,bt]}],"outline-color":[{outline:d()}],shadow:[{shadow:["","none",f,En,Sn]}],"shadow-color":[{shadow:d()}],"inset-shadow":[{"inset-shadow":["none",c,En,Sn]}],"inset-shadow-color":[{"inset-shadow":d()}],"ring-w":[{ring:te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:d()}],"ring-offset-w":[{"ring-offset":[K,bt]}],"ring-offset-color":[{"ring-offset":d()}],"inset-ring-w":[{"inset-ring":te()}],"inset-ring-color":[{"inset-ring":d()}],"text-shadow":[{"text-shadow":["none",h,En,Sn]}],"text-shadow-color":[{"text-shadow":d()}],opacity:[{opacity:[K,N,z]}],"mix-blend":[{"mix-blend":[...Fe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Fe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[K]}],"mask-image-linear-from-pos":[{"mask-linear-from":ae()}],"mask-image-linear-to-pos":[{"mask-linear-to":ae()}],"mask-image-linear-from-color":[{"mask-linear-from":d()}],"mask-image-linear-to-color":[{"mask-linear-to":d()}],"mask-image-t-from-pos":[{"mask-t-from":ae()}],"mask-image-t-to-pos":[{"mask-t-to":ae()}],"mask-image-t-from-color":[{"mask-t-from":d()}],"mask-image-t-to-color":[{"mask-t-to":d()}],"mask-image-r-from-pos":[{"mask-r-from":ae()}],"mask-image-r-to-pos":[{"mask-r-to":ae()}],"mask-image-r-from-color":[{"mask-r-from":d()}],"mask-image-r-to-color":[{"mask-r-to":d()}],"mask-image-b-from-pos":[{"mask-b-from":ae()}],"mask-image-b-to-pos":[{"mask-b-to":ae()}],"mask-image-b-from-color":[{"mask-b-from":d()}],"mask-image-b-to-color":[{"mask-b-to":d()}],"mask-image-l-from-pos":[{"mask-l-from":ae()}],"mask-image-l-to-pos":[{"mask-l-to":ae()}],"mask-image-l-from-color":[{"mask-l-from":d()}],"mask-image-l-to-color":[{"mask-l-to":d()}],"mask-image-x-from-pos":[{"mask-x-from":ae()}],"mask-image-x-to-pos":[{"mask-x-to":ae()}],"mask-image-x-from-color":[{"mask-x-from":d()}],"mask-image-x-to-color":[{"mask-x-to":d()}],"mask-image-y-from-pos":[{"mask-y-from":ae()}],"mask-image-y-to-pos":[{"mask-y-to":ae()}],"mask-image-y-from-color":[{"mask-y-from":d()}],"mask-image-y-to-color":[{"mask-y-to":d()}],"mask-image-radial":[{"mask-radial":[N,z]}],"mask-image-radial-from-pos":[{"mask-radial-from":ae()}],"mask-image-radial-to-pos":[{"mask-radial-to":ae()}],"mask-image-radial-from-color":[{"mask-radial-from":d()}],"mask-image-radial-to-color":[{"mask-radial-to":d()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":$()}],"mask-image-conic-pos":[{"mask-conic":[K]}],"mask-image-conic-from-pos":[{"mask-conic-from":ae()}],"mask-image-conic-to-pos":[{"mask-conic-to":ae()}],"mask-image-conic-from-color":[{"mask-conic-from":d()}],"mask-image-conic-to-color":[{"mask-conic-to":d()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:fe()}],"mask-repeat":[{mask:_e()}],"mask-size":[{mask:m()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",N,z]}],filter:[{filter:["","none",N,z]}],blur:[{blur:Ue()}],brightness:[{brightness:[K,N,z]}],contrast:[{contrast:[K,N,z]}],"drop-shadow":[{"drop-shadow":["","none",p,En,Sn]}],"drop-shadow-color":[{"drop-shadow":d()}],grayscale:[{grayscale:["",K,N,z]}],"hue-rotate":[{"hue-rotate":[K,N,z]}],invert:[{invert:["",K,N,z]}],saturate:[{saturate:[K,N,z]}],sepia:[{sepia:["",K,N,z]}],"backdrop-filter":[{"backdrop-filter":["","none",N,z]}],"backdrop-blur":[{"backdrop-blur":Ue()}],"backdrop-brightness":[{"backdrop-brightness":[K,N,z]}],"backdrop-contrast":[{"backdrop-contrast":[K,N,z]}],"backdrop-grayscale":[{"backdrop-grayscale":["",K,N,z]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[K,N,z]}],"backdrop-invert":[{"backdrop-invert":["",K,N,z]}],"backdrop-opacity":[{"backdrop-opacity":[K,N,z]}],"backdrop-saturate":[{"backdrop-saturate":[K,N,z]}],"backdrop-sepia":[{"backdrop-sepia":["",K,N,z]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",N,z]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[K,"initial",N,z]}],ease:[{ease:["linear","initial",x,N,z]}],delay:[{delay:[K,N,z]}],animate:[{animate:["none",A,N,z]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,N,z]}],"perspective-origin":[{"perspective-origin":M()}],rotate:[{rotate:He()}],"rotate-x":[{"rotate-x":He()}],"rotate-y":[{"rotate-y":He()}],"rotate-z":[{"rotate-z":He()}],scale:[{scale:ut()}],"scale-x":[{"scale-x":ut()}],"scale-y":[{"scale-y":ut()}],"scale-z":[{"scale-z":ut()}],"scale-3d":["scale-3d"],skew:[{skew:ct()}],"skew-x":[{"skew-x":ct()}],"skew-y":[{"skew-y":ct()}],transform:[{transform:[N,z,"","none","gpu","cpu"]}],"transform-origin":[{origin:M()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ft()}],"translate-x":[{"translate-x":ft()}],"translate-y":[{"translate-y":ft()}],"translate-z":[{"translate-z":ft()}],"translate-none":["translate-none"],accent:[{accent:d()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:d()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",N,z]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mbs":[{"scroll-mbs":C()}],"scroll-mbe":[{"scroll-mbe":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pbs":[{"scroll-pbs":C()}],"scroll-pbe":[{"scroll-pbe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",N,z]}],fill:[{fill:["none",...d()]}],"stroke-w":[{stroke:[K,Xt,bt,dl]}],stroke:[{stroke:["none",...d()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function Kt(...e){return Sd(el(e))}const Ed=rl("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Cd({className:e,variant:n,asChild:t=!1,...r}){const i=t?Zo:"span";return D.jsx(i,{"data-slot":"badge",className:Kt(Ed({variant:n}),e),...r})}const vd=rl("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function Qt({className:e,variant:n,size:t,asChild:r=!1,...i}){const l=r?Zo:"button";return D.jsx(l,{"data-slot":"button",className:Kt(vd({variant:n,size:t,className:e})),...i})}var Td=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ad=Td.reduce((e,n)=>{const t=Qo(`Primitive.${n}`),r=Se.forwardRef((i,l)=>{const{asChild:o,...a}=i,s=o?t:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),D.jsx(s,{...a,ref:l})});return r.displayName=`Primitive.${n}`,{...e,[n]:r}},{}),_d="Separator",Cl="horizontal",Id=["horizontal","vertical"],vl=Se.forwardRef((e,n)=>{const{decorative:t,orientation:r=Cl,...i}=e,l=Ld(r)?r:Cl,a=t?{role:"none"}:{"aria-orientation":l==="vertical"?l:void 0,role:"separator"};return D.jsx(Ad.div,{"data-orientation":l,...a,...i,ref:n})});vl.displayName=_d;function Ld(e){return Id.includes(e)}var Pd=vl;function Dd({className:e,orientation:n="horizontal",decorative:t=!0,...r}){return D.jsx(Pd,{"data-slot":"separator",decorative:t,orientation:n,className:Kt("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...r})}function Od({className:e,...n}){return D.jsx("div",{"data-slot":"card",className:Kt("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...n})}function zd({className:e,...n}){return D.jsx("div",{"data-slot":"card-content",className:Kt("px-6",e),...n})}const Nd={heading:"#569cd6",headingText:"#c792ea",bold:"#ce9178",boldText:"#ffd700",italic:"#6a9955",italicText:"#b5cea8",strikethrough:"#f44747",strikethroughText:"#f44747",inlineCode:"#f92672",inlineCodeText:"#f8f8f2",inlineCodeBg:"rgba(255,255,255,0.1)",link:"#569cd6",linkText:"#4ec9b0",linkUrl:"#9cdcfe",image:"#d19a66",imageAlt:"#98c379",imagePath:"#e5c07b",listBullet:"#569cd6",listText:"#222",orderedList:"#c792ea",blockquote:"#6a9955",blockquoteText:"#6a9955",codeBlock:"#c792ea",codeBlockText:"#d4d4d4",codeBlockBg:"rgba(255,255,255,0.05)",horizontalRule:"#4a4a4a"},Md=(e,n={})=>{const t={...Nd,...n};let r=e.replace(/</g,"&lt;").replace(/>/g,"&gt;");return r=r.replace(/^(#{1,6})\s+(.+)$/gm,`<span style="color:${t.heading};font-weight:bold">$1</span> <span style="color:${t.headingText};font-weight:600">$2</span>`).replace(/\*\*(.*?)\*\*/g,`<span style="color:${t.bold}">**</span><span style="color:${t.boldText};font-weight:bold">$1</span><span style="color:${t.bold}">**</span>`).replace(/\*(.*?)\*/g,`<span style="color:${t.italic}">*</span><span style="color:${t.italicText};font-style:italic">$1</span><span style="color:${t.italic}">*</span>`).replace(/~~(.*?)~~/g,`<span style="color:${t.strikethrough}">~~</span><span style="color:${t.strikethroughText};text-decoration:line-through">$1</span><span style="color:${t.strikethrough}">~~</span>`).replace(/`([^`]+)`/g,`<span style="color:${t.inlineCode}">\`</span><span style="color:${t.inlineCodeText};background:${t.inlineCodeBg};padding:0 3px;border-radius:3px;font-family:monospace">$1</span><span style="color:${t.inlineCode}">\`</span>`).replace(/!\[([^\]]*)\]\(([^)]+)\)/g,`<span style="color:${t.image}">!</span><span style="color:${t.image}">[</span><span style="color:${t.imageAlt}">$1</span><span style="color:${t.image}">](</span><span style="color:${t.imagePath}">$2</span><span style="color:${t.image}">)</span>`).replace(/\[([^\]]+)\]\(([^)]+)\)/g,`<span style="color:${t.link}">[</span><span style="color:${t.linkText};text-decoration:underline">$1</span><span style="color:${t.link}">](</span><span style="color:${t.linkUrl}">$2</span><span style="color:${t.link}">)</span>`).replace(/^(\s*)([-*+])\s+(.+)$/gm,`$1<span style="color:${t.listBullet};font-weight:bold">$2</span> <span style="color:${t.listText}">$3</span>`).replace(/^(\s*)(\d+\.)\s+(.+)$/gm,`$1<span style="color:${t.orderedList};font-weight:bold">$2</span> <span style="color:${t.listText}">$3</span>`).replace(/^&gt;\s+(.+)$/gm,`<span style="color:${t.blockquote};font-weight:bold">&gt;</span> <span style="color:${t.blockquoteText};font-style:italic">$1</span>`).replace(/```(\w+)?\n([\s\S]*?)\n```/g,`<span style="color:${t.codeBlock}">\`\`\`$1</span>
74
+ */const Ah=be("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
75
+ * @license lucide-react v0.511.0 - ISC
76
+ *
77
+ * This source code is licensed under the ISC license.
78
+ * See the LICENSE file in the root directory of this source tree.
79
+ */const _h=be("file-code",[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]]);/**
80
+ * @license lucide-react v0.511.0 - ISC
81
+ *
82
+ * This source code is licensed under the ISC license.
83
+ * See the LICENSE file in the root directory of this source tree.
84
+ */const Ih=be("heading-1",[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"m17 12 3-2v8",key:"1hhhft"}]]);/**
85
+ * @license lucide-react v0.511.0 - ISC
86
+ *
87
+ * This source code is licensed under the ISC license.
88
+ * See the LICENSE file in the root directory of this source tree.
89
+ */const Lh=be("heading-2",[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1",key:"9jr5yi"}]]);/**
90
+ * @license lucide-react v0.511.0 - ISC
91
+ *
92
+ * This source code is licensed under the ISC license.
93
+ * See the LICENSE file in the root directory of this source tree.
94
+ */const Ph=be("heading-3",[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2",key:"68ncm8"}],["path",{d:"M17 17.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2",key:"1ejuhz"}]]);/**
95
+ * @license lucide-react v0.511.0 - ISC
96
+ *
97
+ * This source code is licensed under the ISC license.
98
+ * See the LICENSE file in the root directory of this source tree.
99
+ */const Nh=be("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
100
+ * @license lucide-react v0.511.0 - ISC
101
+ *
102
+ * This source code is licensed under the ISC license.
103
+ * See the LICENSE file in the root directory of this source tree.
104
+ */const Dh=be("italic",[["line",{x1:"19",x2:"10",y1:"4",y2:"4",key:"15jd3p"}],["line",{x1:"14",x2:"5",y1:"20",y2:"20",key:"bu0au3"}],["line",{x1:"15",x2:"9",y1:"4",y2:"20",key:"uljnxc"}]]);/**
105
+ * @license lucide-react v0.511.0 - ISC
106
+ *
107
+ * This source code is licensed under the ISC license.
108
+ * See the LICENSE file in the root directory of this source tree.
109
+ */const zh=be("link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);/**
110
+ * @license lucide-react v0.511.0 - ISC
111
+ *
112
+ * This source code is licensed under the ISC license.
113
+ * See the LICENSE file in the root directory of this source tree.
114
+ */const Mh=be("list-ordered",[["path",{d:"M10 12h11",key:"6m4ad9"}],["path",{d:"M10 18h11",key:"11hvi2"}],["path",{d:"M10 6h11",key:"c7qv1k"}],["path",{d:"M4 10h2",key:"16xx2s"}],["path",{d:"M4 6h1v4",key:"cnovpq"}],["path",{d:"M6 18H4c0-1 2-2 2-3s-1-1.5-2-1",key:"m9a95d"}]]);/**
115
+ * @license lucide-react v0.511.0 - ISC
116
+ *
117
+ * This source code is licensed under the ISC license.
118
+ * See the LICENSE file in the root directory of this source tree.
119
+ */const Oh=be("list",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]]);/**
120
+ * @license lucide-react v0.511.0 - ISC
121
+ *
122
+ * This source code is licensed under the ISC license.
123
+ * See the LICENSE file in the root directory of this source tree.
124
+ */const Rh=be("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
125
+ * @license lucide-react v0.511.0 - ISC
126
+ *
127
+ * This source code is licensed under the ISC license.
128
+ * See the LICENSE file in the root directory of this source tree.
129
+ */const Fh=be("quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]]);/**
130
+ * @license lucide-react v0.511.0 - ISC
131
+ *
132
+ * This source code is licensed under the ISC license.
133
+ * See the LICENSE file in the root directory of this source tree.
134
+ */const Bh=be("split",[["path",{d:"M16 3h5v5",key:"1806ms"}],["path",{d:"M8 3H3v5",key:"15dfkv"}],["path",{d:"M12 22v-8.3a4 4 0 0 0-1.172-2.872L3 3",key:"1qrqzj"}],["path",{d:"m15 9 6-6",key:"ko1vev"}]]);/**
135
+ * @license lucide-react v0.511.0 - ISC
136
+ *
137
+ * This source code is licensed under the ISC license.
138
+ * See the LICENSE file in the root directory of this source tree.
139
+ */const $h=be("square-pen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]);/**
140
+ * @license lucide-react v0.511.0 - ISC
141
+ *
142
+ * This source code is licensed under the ISC license.
143
+ * See the LICENSE file in the root directory of this source tree.
144
+ */const jh=be("strikethrough",[["path",{d:"M16 4H9a3 3 0 0 0-2.83 4",key:"43sutm"}],["path",{d:"M14 12a4 4 0 0 1 0 8H6",key:"nlfj13"}],["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}]]);/**
145
+ * @license lucide-react v0.511.0 - ISC
146
+ *
147
+ * This source code is licensed under the ISC license.
148
+ * See the LICENSE file in the root directory of this source tree.
149
+ */const Hh=be("table",[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]]);/*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */var _r,Xo;function Qo(){if(Xo)return _r;Xo=1;const{entries:e,setPrototypeOf:n,isFrozen:t,getPrototypeOf:r,getOwnPropertyDescriptor:i}=Object;let{freeze:l,seal:o,create:a}=Object,{apply:s,construct:u}=typeof Reflect<"u"&&Reflect;l||(l=function(B){return B}),o||(o=function(B){return B}),s||(s=function(B,ne){for(var X=arguments.length,w=new Array(X>2?X-2:0),A=2;A<X;A++)w[A-2]=arguments[A];return B.apply(ne,w)}),u||(u=function(B){for(var ne=arguments.length,X=new Array(ne>1?ne-1:0),w=1;w<ne;w++)X[w-1]=arguments[w];return new B(...X)});const f=E(Array.prototype.forEach),c=E(Array.prototype.lastIndexOf),h=E(Array.prototype.pop),p=E(Array.prototype.push),b=E(Array.prototype.splice),C=E(String.prototype.toLowerCase),k=E(String.prototype.toString),x=E(String.prototype.match),T=E(String.prototype.replace),v=E(String.prototype.indexOf),H=E(String.prototype.trim),R=E(Object.prototype.hasOwnProperty),S=E(RegExp.prototype.test),W=V(TypeError);function E(J){return function(B){B instanceof RegExp&&(B.lastIndex=0);for(var ne=arguments.length,X=new Array(ne>1?ne-1:0),w=1;w<ne;w++)X[w-1]=arguments[w];return s(J,B,X)}}function V(J){return function(){for(var B=arguments.length,ne=new Array(B),X=0;X<B;X++)ne[X]=arguments[X];return u(J,ne)}}function y(J,B){let ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:C;n&&n(J,null);let X=B.length;for(;X--;){let w=B[X];if(typeof w=="string"){const A=ne(w);A!==w&&(t(B)||(B[X]=A),w=A)}J[w]=!0}return J}function D(J){for(let B=0;B<J.length;B++)R(J,B)||(J[B]=null);return J}function P(J){const B=a(null);for(const[ne,X]of e(J))R(J,ne)&&(Array.isArray(X)?B[ne]=D(X):X&&typeof X=="object"&&X.constructor===Object?B[ne]=P(X):B[ne]=X);return B}function Y(J,B){for(;J!==null;){const X=i(J,B);if(X){if(X.get)return E(X.get);if(typeof X.value=="function")return E(X.value)}J=r(J)}function ne(){return null}return ne}const z=l(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),L=l(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),q=l(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),ie=l(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),de=l(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Te=l(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),d=l(["#text"]),xe=l(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Ce=l(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),m=l(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),he=l(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ue=o(/\{\{[\w\W]*|[\w\W]*\}\}/gm),j=o(/<%[\w\W]*|[\w\W]*%>/gm),fe=o(/\$\{[\w\W]*/gm),le=o(/^data-[\-\w.\u00B7-\uFFFF]+$/),oe=o(/^aria-[\-\w]+$/),Ne=o(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ve=o(/^(?:\w+script|data):/i),ct=o(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ft=o(/^html$/i),pt=o(/^[a-z][.\w]*(-[.\w]+)+$/i);var Jt=Object.freeze({__proto__:null,ARIA_ATTR:oe,ATTR_WHITESPACE:ct,CUSTOM_ELEMENT:pt,DATA_ATTR:le,DOCTYPE_NAME:ft,ERB_EXPR:j,IS_ALLOWED_URI:Ne,IS_SCRIPT_OR_DATA:Ve,MUSTACHE_EXPR:ue,TMPLIT_EXPR:fe});const ht={element:1,text:3,progressingInstruction:7,comment:8,document:9},Tn=function(){return typeof window>"u"?null:window},Mr=function(B,ne){if(typeof B!="object"||typeof B.createPolicy!="function")return null;let X=null;const w="data-tt-policy-suffix";ne&&ne.hasAttribute(w)&&(X=ne.getAttribute(w));const A="dompurify"+(X?"#"+X:"");try{return B.createPolicy(A,{createHTML(G){return G},createScriptURL(G){return G}})}catch{return console.warn("TrustedTypes policy "+A+" could not be created."),null}},en=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function tn(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Tn();const B=$=>tn($);if(B.version="3.3.1",B.removed=[],!J||!J.document||J.document.nodeType!==ht.document||!J.Element)return B.isSupported=!1,B;let{document:ne}=J;const X=ne,w=X.currentScript,{DocumentFragment:A,HTMLTemplateElement:G,Node:Z,Element:ae,NodeFilter:Ae,NamedNodeMap:et=J.NamedNodeMap||J.MozNamedAttrMap,HTMLFormElement:qe,DOMParser:wt,trustedTypes:Xe}=J,we=ae.prototype,dt=Y(we,"cloneNode"),We=Y(we,"remove"),im=Y(we,"nextSibling"),om=Y(we,"childNodes"),An=Y(we,"parentNode");if(typeof G=="function"){const $=ne.createElement("template");$.content&&$.content.ownerDocument&&(ne=$.content.ownerDocument)}let Me,nn="";const{implementation:Rr,createNodeIterator:lm,createDocumentFragment:am,getElementsByTagName:sm}=ne,{importNode:um}=X;let Oe=en();B.isSupported=typeof e=="function"&&typeof An=="function"&&Rr&&Rr.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Fr,ERB_EXPR:Br,TMPLIT_EXPR:$r,DATA_ATTR:cm,ARIA_ATTR:fm,IS_SCRIPT_OR_DATA:pm,ATTR_WHITESPACE:Pl,CUSTOM_ELEMENT:hm}=Jt;let{IS_ALLOWED_URI:Nl}=Jt,ve=null;const Dl=y({},[...z,...L,...q,...de,...d]);let _e=null;const zl=y({},[...xe,...Ce,...m,...he]);let me=Object.seal(a(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),rn=null,jr=null;const Nt=Object.seal(a(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Ml=!0,Hr=!0,Ol=!1,Rl=!0,Dt=!1,_n=!0,St=!1,Ur=!1,Vr=!1,zt=!1,In=!1,Ln=!1,Fl=!0,Bl=!1;const dm="user-content-";let qr=!0,on=!1,Mt={},Qe=null;const Wr=y({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let $l=null;const jl=y({},["audio","video","img","source","image","track"]);let Gr=null;const Hl=y({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Pn="http://www.w3.org/1998/Math/MathML",Nn="http://www.w3.org/2000/svg",tt="http://www.w3.org/1999/xhtml";let Ot=tt,Yr=!1,Xr=null;const mm=y({},[Pn,Nn,tt],k);let Dn=y({},["mi","mo","mn","ms","mtext"]),zn=y({},["annotation-xml"]);const gm=y({},["title","style","font","a","script"]);let ln=null;const bm=["application/xhtml+xml","text/html"],ym="text/html";let Se=null,Rt=null;const km=ne.createElement("form"),Ul=function(g){return g instanceof RegExp||g instanceof Function},Qr=function(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Rt&&Rt===g)){if((!g||typeof g!="object")&&(g={}),g=P(g),ln=bm.indexOf(g.PARSER_MEDIA_TYPE)===-1?ym:g.PARSER_MEDIA_TYPE,Se=ln==="application/xhtml+xml"?k:C,ve=R(g,"ALLOWED_TAGS")?y({},g.ALLOWED_TAGS,Se):Dl,_e=R(g,"ALLOWED_ATTR")?y({},g.ALLOWED_ATTR,Se):zl,Xr=R(g,"ALLOWED_NAMESPACES")?y({},g.ALLOWED_NAMESPACES,k):mm,Gr=R(g,"ADD_URI_SAFE_ATTR")?y(P(Hl),g.ADD_URI_SAFE_ATTR,Se):Hl,$l=R(g,"ADD_DATA_URI_TAGS")?y(P(jl),g.ADD_DATA_URI_TAGS,Se):jl,Qe=R(g,"FORBID_CONTENTS")?y({},g.FORBID_CONTENTS,Se):Wr,rn=R(g,"FORBID_TAGS")?y({},g.FORBID_TAGS,Se):P({}),jr=R(g,"FORBID_ATTR")?y({},g.FORBID_ATTR,Se):P({}),Mt=R(g,"USE_PROFILES")?g.USE_PROFILES:!1,Ml=g.ALLOW_ARIA_ATTR!==!1,Hr=g.ALLOW_DATA_ATTR!==!1,Ol=g.ALLOW_UNKNOWN_PROTOCOLS||!1,Rl=g.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Dt=g.SAFE_FOR_TEMPLATES||!1,_n=g.SAFE_FOR_XML!==!1,St=g.WHOLE_DOCUMENT||!1,zt=g.RETURN_DOM||!1,In=g.RETURN_DOM_FRAGMENT||!1,Ln=g.RETURN_TRUSTED_TYPE||!1,Vr=g.FORCE_BODY||!1,Fl=g.SANITIZE_DOM!==!1,Bl=g.SANITIZE_NAMED_PROPS||!1,qr=g.KEEP_CONTENT!==!1,on=g.IN_PLACE||!1,Nl=g.ALLOWED_URI_REGEXP||Ne,Ot=g.NAMESPACE||tt,Dn=g.MATHML_TEXT_INTEGRATION_POINTS||Dn,zn=g.HTML_INTEGRATION_POINTS||zn,me=g.CUSTOM_ELEMENT_HANDLING||{},g.CUSTOM_ELEMENT_HANDLING&&Ul(g.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(me.tagNameCheck=g.CUSTOM_ELEMENT_HANDLING.tagNameCheck),g.CUSTOM_ELEMENT_HANDLING&&Ul(g.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(me.attributeNameCheck=g.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),g.CUSTOM_ELEMENT_HANDLING&&typeof g.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(me.allowCustomizedBuiltInElements=g.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Dt&&(Hr=!1),In&&(zt=!0),Mt&&(ve=y({},d),_e=[],Mt.html===!0&&(y(ve,z),y(_e,xe)),Mt.svg===!0&&(y(ve,L),y(_e,Ce),y(_e,he)),Mt.svgFilters===!0&&(y(ve,q),y(_e,Ce),y(_e,he)),Mt.mathMl===!0&&(y(ve,de),y(_e,m),y(_e,he))),g.ADD_TAGS&&(typeof g.ADD_TAGS=="function"?Nt.tagCheck=g.ADD_TAGS:(ve===Dl&&(ve=P(ve)),y(ve,g.ADD_TAGS,Se))),g.ADD_ATTR&&(typeof g.ADD_ATTR=="function"?Nt.attributeCheck=g.ADD_ATTR:(_e===zl&&(_e=P(_e)),y(_e,g.ADD_ATTR,Se))),g.ADD_URI_SAFE_ATTR&&y(Gr,g.ADD_URI_SAFE_ATTR,Se),g.FORBID_CONTENTS&&(Qe===Wr&&(Qe=P(Qe)),y(Qe,g.FORBID_CONTENTS,Se)),g.ADD_FORBID_CONTENTS&&(Qe===Wr&&(Qe=P(Qe)),y(Qe,g.ADD_FORBID_CONTENTS,Se)),qr&&(ve["#text"]=!0),St&&y(ve,["html","head","body"]),ve.table&&(y(ve,["tbody"]),delete rn.tbody),g.TRUSTED_TYPES_POLICY){if(typeof g.TRUSTED_TYPES_POLICY.createHTML!="function")throw W('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof g.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw W('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Me=g.TRUSTED_TYPES_POLICY,nn=Me.createHTML("")}else Me===void 0&&(Me=Mr(Xe,w)),Me!==null&&typeof nn=="string"&&(nn=Me.createHTML(""));l&&l(g),Rt=g}},Vl=y({},[...L,...q,...ie]),ql=y({},[...de,...Te]),xm=function(g){let I=An(g);(!I||!I.tagName)&&(I={namespaceURI:Ot,tagName:"template"});const F=C(g.tagName),pe=C(I.tagName);return Xr[g.namespaceURI]?g.namespaceURI===Nn?I.namespaceURI===tt?F==="svg":I.namespaceURI===Pn?F==="svg"&&(pe==="annotation-xml"||Dn[pe]):!!Vl[F]:g.namespaceURI===Pn?I.namespaceURI===tt?F==="math":I.namespaceURI===Nn?F==="math"&&zn[pe]:!!ql[F]:g.namespaceURI===tt?I.namespaceURI===Nn&&!zn[pe]||I.namespaceURI===Pn&&!Dn[pe]?!1:!ql[F]&&(gm[F]||!Vl[F]):!!(ln==="application/xhtml+xml"&&Xr[g.namespaceURI]):!1},Ke=function(g){p(B.removed,{element:g});try{An(g).removeChild(g)}catch{We(g)}},Ct=function(g,I){try{p(B.removed,{attribute:I.getAttributeNode(g),from:I})}catch{p(B.removed,{attribute:null,from:I})}if(I.removeAttribute(g),g==="is")if(zt||In)try{Ke(I)}catch{}else try{I.setAttribute(g,"")}catch{}},Wl=function(g){let I=null,F=null;if(Vr)g="<remove></remove>"+g;else{const ye=x(g,/^[\r\n\t ]+/);F=ye&&ye[0]}ln==="application/xhtml+xml"&&Ot===tt&&(g='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+g+"</body></html>");const pe=Me?Me.createHTML(g):g;if(Ot===tt)try{I=new wt().parseFromString(pe,ln)}catch{}if(!I||!I.documentElement){I=Rr.createDocument(Ot,"template",null);try{I.documentElement.innerHTML=Yr?nn:pe}catch{}}const De=I.body||I.documentElement;return g&&F&&De.insertBefore(ne.createTextNode(F),De.childNodes[0]||null),Ot===tt?sm.call(I,St?"html":"body")[0]:St?I.documentElement:De},Gl=function(g){return lm.call(g.ownerDocument||g,g,Ae.SHOW_ELEMENT|Ae.SHOW_COMMENT|Ae.SHOW_TEXT|Ae.SHOW_PROCESSING_INSTRUCTION|Ae.SHOW_CDATA_SECTION,null)},Kr=function(g){return g instanceof qe&&(typeof g.nodeName!="string"||typeof g.textContent!="string"||typeof g.removeChild!="function"||!(g.attributes instanceof et)||typeof g.removeAttribute!="function"||typeof g.setAttribute!="function"||typeof g.namespaceURI!="string"||typeof g.insertBefore!="function"||typeof g.hasChildNodes!="function")},Yl=function(g){return typeof Z=="function"&&g instanceof Z};function nt($,g,I){f($,F=>{F.call(B,g,I,Rt)})}const Xl=function(g){let I=null;if(nt(Oe.beforeSanitizeElements,g,null),Kr(g))return Ke(g),!0;const F=Se(g.nodeName);if(nt(Oe.uponSanitizeElement,g,{tagName:F,allowedTags:ve}),_n&&g.hasChildNodes()&&!Yl(g.firstElementChild)&&S(/<[/\w!]/g,g.innerHTML)&&S(/<[/\w!]/g,g.textContent)||g.nodeType===ht.progressingInstruction||_n&&g.nodeType===ht.comment&&S(/<[/\w]/g,g.data))return Ke(g),!0;if(!(Nt.tagCheck instanceof Function&&Nt.tagCheck(F))&&(!ve[F]||rn[F])){if(!rn[F]&&Kl(F)&&(me.tagNameCheck instanceof RegExp&&S(me.tagNameCheck,F)||me.tagNameCheck instanceof Function&&me.tagNameCheck(F)))return!1;if(qr&&!Qe[F]){const pe=An(g)||g.parentNode,De=om(g)||g.childNodes;if(De&&pe){const ye=De.length;for(let Be=ye-1;Be>=0;--Be){const rt=dt(De[Be],!0);rt.__removalCount=(g.__removalCount||0)+1,pe.insertBefore(rt,im(g))}}}return Ke(g),!0}return g instanceof ae&&!xm(g)||(F==="noscript"||F==="noembed"||F==="noframes")&&S(/<\/no(script|embed|frames)/i,g.innerHTML)?(Ke(g),!0):(Dt&&g.nodeType===ht.text&&(I=g.textContent,f([Fr,Br,$r],pe=>{I=T(I,pe," ")}),g.textContent!==I&&(p(B.removed,{element:g.cloneNode()}),g.textContent=I)),nt(Oe.afterSanitizeElements,g,null),!1)},Ql=function(g,I,F){if(Fl&&(I==="id"||I==="name")&&(F in ne||F in km))return!1;if(!(Hr&&!jr[I]&&S(cm,I))){if(!(Ml&&S(fm,I))){if(!(Nt.attributeCheck instanceof Function&&Nt.attributeCheck(I,g))){if(!_e[I]||jr[I]){if(!(Kl(g)&&(me.tagNameCheck instanceof RegExp&&S(me.tagNameCheck,g)||me.tagNameCheck instanceof Function&&me.tagNameCheck(g))&&(me.attributeNameCheck instanceof RegExp&&S(me.attributeNameCheck,I)||me.attributeNameCheck instanceof Function&&me.attributeNameCheck(I,g))||I==="is"&&me.allowCustomizedBuiltInElements&&(me.tagNameCheck instanceof RegExp&&S(me.tagNameCheck,F)||me.tagNameCheck instanceof Function&&me.tagNameCheck(F))))return!1}else if(!Gr[I]){if(!S(Nl,T(F,Pl,""))){if(!((I==="src"||I==="xlink:href"||I==="href")&&g!=="script"&&v(F,"data:")===0&&$l[g])){if(!(Ol&&!S(pm,T(F,Pl,"")))){if(F)return!1}}}}}}}return!0},Kl=function(g){return g!=="annotation-xml"&&x(g,hm)},Zl=function(g){nt(Oe.beforeSanitizeAttributes,g,null);const{attributes:I}=g;if(!I||Kr(g))return;const F={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:_e,forceKeepAttr:void 0};let pe=I.length;for(;pe--;){const De=I[pe],{name:ye,namespaceURI:Be,value:rt}=De,Ft=Se(ye),Zr=rt;let Ie=ye==="value"?Zr:H(Zr);if(F.attrName=Ft,F.attrValue=Ie,F.keepAttr=!0,F.forceKeepAttr=void 0,nt(Oe.uponSanitizeAttribute,g,F),Ie=F.attrValue,Bl&&(Ft==="id"||Ft==="name")&&(Ct(ye,g),Ie=dm+Ie),_n&&S(/((--!?|])>)|<\/(style|title|textarea)/i,Ie)){Ct(ye,g);continue}if(Ft==="attributename"&&x(Ie,"href")){Ct(ye,g);continue}if(F.forceKeepAttr)continue;if(!F.keepAttr){Ct(ye,g);continue}if(!Rl&&S(/\/>/i,Ie)){Ct(ye,g);continue}Dt&&f([Fr,Br,$r],ea=>{Ie=T(Ie,ea," ")});const Jl=Se(g.nodeName);if(!Ql(Jl,Ft,Ie)){Ct(ye,g);continue}if(Me&&typeof Xe=="object"&&typeof Xe.getAttributeType=="function"&&!Be)switch(Xe.getAttributeType(Jl,Ft)){case"TrustedHTML":{Ie=Me.createHTML(Ie);break}case"TrustedScriptURL":{Ie=Me.createScriptURL(Ie);break}}if(Ie!==Zr)try{Be?g.setAttributeNS(Be,ye,Ie):g.setAttribute(ye,Ie),Kr(g)?Ke(g):h(B.removed)}catch{Ct(ye,g)}}nt(Oe.afterSanitizeAttributes,g,null)},wm=function $(g){let I=null;const F=Gl(g);for(nt(Oe.beforeSanitizeShadowDOM,g,null);I=F.nextNode();)nt(Oe.uponSanitizeShadowNode,I,null),Xl(I),Zl(I),I.content instanceof A&&$(I.content);nt(Oe.afterSanitizeShadowDOM,g,null)};return B.sanitize=function($){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},I=null,F=null,pe=null,De=null;if(Yr=!$,Yr&&($="<!-->"),typeof $!="string"&&!Yl($))if(typeof $.toString=="function"){if($=$.toString(),typeof $!="string")throw W("dirty is not a string, aborting")}else throw W("toString is not a function");if(!B.isSupported)return $;if(Ur||Qr(g),B.removed=[],typeof $=="string"&&(on=!1),on){if($.nodeName){const rt=Se($.nodeName);if(!ve[rt]||rn[rt])throw W("root node is forbidden and cannot be sanitized in-place")}}else if($ instanceof Z)I=Wl("<!---->"),F=I.ownerDocument.importNode($,!0),F.nodeType===ht.element&&F.nodeName==="BODY"||F.nodeName==="HTML"?I=F:I.appendChild(F);else{if(!zt&&!Dt&&!St&&$.indexOf("<")===-1)return Me&&Ln?Me.createHTML($):$;if(I=Wl($),!I)return zt?null:Ln?nn:""}I&&Vr&&Ke(I.firstChild);const ye=Gl(on?$:I);for(;pe=ye.nextNode();)Xl(pe),Zl(pe),pe.content instanceof A&&wm(pe.content);if(on)return $;if(zt){if(In)for(De=am.call(I.ownerDocument);I.firstChild;)De.appendChild(I.firstChild);else De=I;return(_e.shadowroot||_e.shadowrootmode)&&(De=um.call(X,De,!0)),De}let Be=St?I.outerHTML:I.innerHTML;return St&&ve["!doctype"]&&I.ownerDocument&&I.ownerDocument.doctype&&I.ownerDocument.doctype.name&&S(ft,I.ownerDocument.doctype.name)&&(Be="<!DOCTYPE "+I.ownerDocument.doctype.name+`>
150
+ `+Be),Dt&&f([Fr,Br,$r],rt=>{Be=T(Be,rt," ")}),Me&&Ln?Me.createHTML(Be):Be},B.setConfig=function(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Qr($),Ur=!0},B.clearConfig=function(){Rt=null,Ur=!1},B.isValidAttribute=function($,g,I){Rt||Qr({});const F=Se($),pe=Se(g);return Ql(F,pe,I)},B.addHook=function($,g){typeof g=="function"&&p(Oe[$],g)},B.removeHook=function($,g){if(g!==void 0){const I=c(Oe[$],g);return I===-1?void 0:b(Oe[$],I,1)[0]}return h(Oe[$])},B.removeHooks=function($){Oe[$]=[]},B.removeAllHooks=function(){Oe=en()},B}var Or=tn();return _r=Or,_r}var Ir,Ko;function Uh(){return Ko||(Ko=1,Ir=self.DOMPurify||(self.DOMPurify=Qo().default||Qo())),Ir}var Vh=Uh();const qh=jn(Vh);function Zo(e,n){if(typeof e=="function")return e(n);e!=null&&(e.current=n)}function Wh(...e){return n=>{let t=!1;const r=e.map(i=>{const l=Zo(i,n);return!t&&typeof l=="function"&&(t=!0),l});if(t)return()=>{for(let i=0;i<r.length;i++){const l=r[i];typeof l=="function"?l():Zo(e[i],null)}}}}var Gh=Symbol.for("react.lazy"),wn=Ee[" use ".trim().toString()];function Yh(e){return typeof e=="object"&&e!==null&&"then"in e}function Jo(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Gh&&"_payload"in e&&Yh(e._payload)}function el(e){const n=Xh(e),t=Ee.forwardRef((r,i)=>{let{children:l,...o}=r;Jo(l)&&typeof wn=="function"&&(l=wn(l._payload));const a=Ee.Children.toArray(l),s=a.find(Kh);if(s){const u=s.props.children,f=a.map(c=>c===s?Ee.Children.count(u)>1?Ee.Children.only(null):Ee.isValidElement(u)?u.props.children:null:c);return N.jsx(n,{...o,ref:i,children:Ee.isValidElement(u)?Ee.cloneElement(u,void 0,f):null})}return N.jsx(n,{...o,ref:i,children:l})});return t.displayName=`${e}.Slot`,t}var tl=el("Slot");function Xh(e){const n=Ee.forwardRef((t,r)=>{let{children:i,...l}=t;if(Jo(i)&&typeof wn=="function"&&(i=wn(i._payload)),Ee.isValidElement(i)){const o=Jh(i),a=Zh(l,i.props);return i.type!==Ee.Fragment&&(a.ref=r?Wh(r,o):o),Ee.cloneElement(i,a)}return Ee.Children.count(i)>1?Ee.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var Qh=Symbol("radix.slottable");function Kh(e){return Ee.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Qh}function Zh(e,n){const t={...n};for(const r in n){const i=e[r],l=n[r];/^on[A-Z]/.test(r)?i&&l?t[r]=(...a)=>{const s=l(...a);return i(...a),s}:i&&(t[r]=i):r==="style"?t[r]={...i,...l}:r==="className"&&(t[r]=[i,l].filter(Boolean).join(" "))}return{...e,...t}}function Jh(e){var r,i;let n=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,t=n&&"isReactWarning"in n&&n.isReactWarning;return t?e.ref:(n=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,t=n&&"isReactWarning"in n&&n.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}function nl(e){var n,t,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(n=0;n<i;n++)e[n]&&(t=nl(e[n]))&&(r&&(r+=" "),r+=t)}else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function rl(){for(var e,n,t=0,r="",i=arguments.length;t<i;t++)(e=arguments[t])&&(n=nl(e))&&(r&&(r+=" "),r+=n);return r}const il=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ol=rl,ll=(e,n)=>t=>{var r;if((n==null?void 0:n.variants)==null)return ol(e,t==null?void 0:t.class,t==null?void 0:t.className);const{variants:i,defaultVariants:l}=n,o=Object.keys(i).map(u=>{const f=t==null?void 0:t[u],c=l==null?void 0:l[u];if(f===null)return null;const h=il(f)||il(c);return i[u][h]}),a=t&&Object.entries(t).reduce((u,f)=>{let[c,h]=f;return h===void 0||(u[c]=h),u},{}),s=n==null||(r=n.compoundVariants)===null||r===void 0?void 0:r.reduce((u,f)=>{let{class:c,className:h,...p}=f;return Object.entries(p).every(b=>{let[C,k]=b;return Array.isArray(k)?k.includes({...l,...a}[C]):{...l,...a}[C]===k})?[...u,c,h]:u},[]);return ol(e,o,s,t==null?void 0:t.class,t==null?void 0:t.className)},ed=(e,n)=>{const t=new Array(e.length+n.length);for(let r=0;r<e.length;r++)t[r]=e[r];for(let r=0;r<n.length;r++)t[e.length+r]=n[r];return t},td=(e,n)=>({classGroupId:e,validator:n}),al=(e=new Map,n=null,t)=>({nextPart:e,validators:n,classGroupId:t}),Sn="-",sl=[],nd="arbitrary..",rd=e=>{const n=od(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return id(o);const a=o.split(Sn),s=a[0]===""&&a.length>1?1:0;return ul(a,s,n)},getConflictingClassGroupIds:(o,a)=>{if(a){const s=r[o],u=t[o];return s?u?ed(u,s):s:u||sl}return t[o]||sl}}},ul=(e,n,t)=>{if(e.length-n===0)return t.classGroupId;const i=e[n],l=t.nextPart.get(i);if(l){const u=ul(e,n+1,l);if(u)return u}const o=t.validators;if(o===null)return;const a=n===0?e.join(Sn):e.slice(n).join(Sn),s=o.length;for(let u=0;u<s;u++){const f=o[u];if(f.validator(a))return f.classGroupId}},id=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const n=e.slice(1,-1),t=n.indexOf(":"),r=n.slice(0,t);return r?nd+r:void 0})(),od=e=>{const{theme:n,classGroups:t}=e;return ld(t,n)},ld=(e,n)=>{const t=al();for(const r in e){const i=e[r];Lr(i,t,r,n)}return t},Lr=(e,n,t,r)=>{const i=e.length;for(let l=0;l<i;l++){const o=e[l];ad(o,n,t,r)}},ad=(e,n,t,r)=>{if(typeof e=="string"){sd(e,n,t);return}if(typeof e=="function"){ud(e,n,t,r);return}cd(e,n,t,r)},sd=(e,n,t)=>{const r=e===""?n:cl(n,e);r.classGroupId=t},ud=(e,n,t,r)=>{if(fd(e)){Lr(e(r),n,t,r);return}n.validators===null&&(n.validators=[]),n.validators.push(td(t,e))},cd=(e,n,t,r)=>{const i=Object.entries(e),l=i.length;for(let o=0;o<l;o++){const[a,s]=i[o];Lr(s,cl(n,a),t,r)}},cl=(e,n)=>{let t=e;const r=n.split(Sn),i=r.length;for(let l=0;l<i;l++){const o=r[l];let a=t.nextPart.get(o);a||(a=al(),t.nextPart.set(o,a)),t=a}return t},fd=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,pd=e=>{if(e<1)return{get:()=>{},set:()=>{}};let n=0,t=Object.create(null),r=Object.create(null);const i=(l,o)=>{t[l]=o,n++,n>e&&(n=0,r=t,t=Object.create(null))};return{get(l){let o=t[l];if(o!==void 0)return o;if((o=r[l])!==void 0)return i(l,o),o},set(l,o){l in t?t[l]=o:i(l,o)}}},Pr="!",fl=":",hd=[],pl=(e,n,t,r,i)=>({modifiers:e,hasImportantModifier:n,baseClassName:t,maybePostfixModifierPosition:r,isExternal:i}),dd=e=>{const{prefix:n,experimentalParseClassName:t}=e;let r=i=>{const l=[];let o=0,a=0,s=0,u;const f=i.length;for(let C=0;C<f;C++){const k=i[C];if(o===0&&a===0){if(k===fl){l.push(i.slice(s,C)),s=C+1;continue}if(k==="/"){u=C;continue}}k==="["?o++:k==="]"?o--:k==="("?a++:k===")"&&a--}const c=l.length===0?i:i.slice(s);let h=c,p=!1;c.endsWith(Pr)?(h=c.slice(0,-1),p=!0):c.startsWith(Pr)&&(h=c.slice(1),p=!0);const b=u&&u>s?u-s:void 0;return pl(l,p,h,b)};if(n){const i=n+fl,l=r;r=o=>o.startsWith(i)?l(o.slice(i.length)):pl(hd,!1,o,void 0,!0)}if(t){const i=r;r=l=>t({className:l,parseClassName:i})}return r},md=e=>{const n=new Map;return e.orderSensitiveModifiers.forEach((t,r)=>{n.set(t,1e6+r)}),t=>{const r=[];let i=[];for(let l=0;l<t.length;l++){const o=t[l],a=o[0]==="[",s=n.has(o);a||s?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(o)):i.push(o)}return i.length>0&&(i.sort(),r.push(...i)),r}},gd=e=>({cache:pd(e.cacheSize),parseClassName:dd(e),sortModifiers:md(e),...rd(e)}),bd=/\s+/,yd=(e,n)=>{const{parseClassName:t,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:l}=n,o=[],a=e.trim().split(bd);let s="";for(let u=a.length-1;u>=0;u-=1){const f=a[u],{isExternal:c,modifiers:h,hasImportantModifier:p,baseClassName:b,maybePostfixModifierPosition:C}=t(f);if(c){s=f+(s.length>0?" "+s:s);continue}let k=!!C,x=r(k?b.substring(0,C):b);if(!x){if(!k){s=f+(s.length>0?" "+s:s);continue}if(x=r(b),!x){s=f+(s.length>0?" "+s:s);continue}k=!1}const T=h.length===0?"":h.length===1?h[0]:l(h).join(":"),v=p?T+Pr:T,H=v+x;if(o.indexOf(H)>-1)continue;o.push(H);const R=i(x,k);for(let S=0;S<R.length;++S){const W=R[S];o.push(v+W)}s=f+(s.length>0?" "+s:s)}return s},kd=(...e)=>{let n=0,t,r,i="";for(;n<e.length;)(t=e[n++])&&(r=hl(t))&&(i&&(i+=" "),i+=r);return i},hl=e=>{if(typeof e=="string")return e;let n,t="";for(let r=0;r<e.length;r++)e[r]&&(n=hl(e[r]))&&(t&&(t+=" "),t+=n);return t},xd=(e,...n)=>{let t,r,i,l;const o=s=>{const u=n.reduce((f,c)=>c(f),e());return t=gd(u),r=t.cache.get,i=t.cache.set,l=a,a(s)},a=s=>{const u=r(s);if(u)return u;const f=yd(s,t);return i(s,f),f};return l=o,(...s)=>l(kd(...s))},wd=[],ke=e=>{const n=t=>t[e]||wd;return n.isThemeGetter=!0,n},dl=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ml=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Sd=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Cd=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,vd=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ed=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Td=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ad=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,at=e=>Sd.test(e),K=e=>!!e&&!Number.isNaN(Number(e)),st=e=>!!e&&Number.isInteger(Number(e)),Nr=e=>e.endsWith("%")&&K(e.slice(0,-1)),Je=e=>Cd.test(e),gl=()=>!0,_d=e=>vd.test(e)&&!Ed.test(e),Dr=()=>!1,Id=e=>Td.test(e),Ld=e=>Ad.test(e),Pd=e=>!M(e)&&!O(e),Nd=e=>ut(e,Sl,Dr),M=e=>dl.test(e),yt=e=>ut(e,Cl,_d),bl=e=>ut(e,$d,K),Dd=e=>ut(e,El,gl),zd=e=>ut(e,vl,Dr),yl=e=>ut(e,xl,Dr),Md=e=>ut(e,wl,Ld),Cn=e=>ut(e,Tl,Id),O=e=>ml.test(e),Kt=e=>kt(e,Cl),Od=e=>kt(e,vl),kl=e=>kt(e,xl),Rd=e=>kt(e,Sl),Fd=e=>kt(e,wl),vn=e=>kt(e,Tl,!0),Bd=e=>kt(e,El,!0),ut=(e,n,t)=>{const r=dl.exec(e);return r?r[1]?n(r[1]):t(r[2]):!1},kt=(e,n,t=!1)=>{const r=ml.exec(e);return r?r[1]?n(r[1]):t:!1},xl=e=>e==="position"||e==="percentage",wl=e=>e==="image"||e==="url",Sl=e=>e==="length"||e==="size"||e==="bg-size",Cl=e=>e==="length",$d=e=>e==="number",vl=e=>e==="family-name",El=e=>e==="number"||e==="weight",Tl=e=>e==="shadow",jd=xd(()=>{const e=ke("color"),n=ke("font"),t=ke("text"),r=ke("font-weight"),i=ke("tracking"),l=ke("leading"),o=ke("breakpoint"),a=ke("container"),s=ke("spacing"),u=ke("radius"),f=ke("shadow"),c=ke("inset-shadow"),h=ke("text-shadow"),p=ke("drop-shadow"),b=ke("blur"),C=ke("perspective"),k=ke("aspect"),x=ke("ease"),T=ke("animate"),v=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],R=()=>[...H(),O,M],S=()=>["auto","hidden","clip","visible","scroll"],W=()=>["auto","contain","none"],E=()=>[O,M,s],V=()=>[at,"full","auto",...E()],y=()=>[st,"none","subgrid",O,M],D=()=>["auto",{span:["full",st,O,M]},st,O,M],P=()=>[st,"auto",O,M],Y=()=>["auto","min","max","fr",O,M],z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],L=()=>["start","end","center","stretch","center-safe","end-safe"],q=()=>["auto",...E()],ie=()=>[at,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...E()],de=()=>[at,"screen","full","dvw","lvw","svw","min","max","fit",...E()],Te=()=>[at,"screen","full","lh","dvh","lvh","svh","min","max","fit",...E()],d=()=>[e,O,M],xe=()=>[...H(),kl,yl,{position:[O,M]}],Ce=()=>["no-repeat",{repeat:["","x","y","space","round"]}],m=()=>["auto","cover","contain",Rd,Nd,{size:[O,M]}],he=()=>[Nr,Kt,yt],ue=()=>["","none","full",u,O,M],j=()=>["",K,Kt,yt],fe=()=>["solid","dashed","dotted","double"],le=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],oe=()=>[K,Nr,kl,yl],Ne=()=>["","none",b,O,M],Ve=()=>["none",K,O,M],ct=()=>["none",K,O,M],ft=()=>[K,O,M],pt=()=>[at,"full",...E()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Je],breakpoint:[Je],color:[gl],container:[Je],"drop-shadow":[Je],ease:["in","out","in-out"],font:[Pd],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Je],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Je],shadow:[Je],spacing:["px",K],text:[Je],"text-shadow":[Je],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",at,M,O,k]}],container:["container"],columns:[{columns:[K,M,O,a]}],"break-after":[{"break-after":v()}],"break-before":[{"break-before":v()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:R()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:V()}],"inset-x":[{"inset-x":V()}],"inset-y":[{"inset-y":V()}],start:[{"inset-s":V(),start:V()}],end:[{"inset-e":V(),end:V()}],"inset-bs":[{"inset-bs":V()}],"inset-be":[{"inset-be":V()}],top:[{top:V()}],right:[{right:V()}],bottom:[{bottom:V()}],left:[{left:V()}],visibility:["visible","invisible","collapse"],z:[{z:[st,"auto",O,M]}],basis:[{basis:[at,"full","auto",a,...E()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[K,at,"auto","initial","none",M]}],grow:[{grow:["",K,O,M]}],shrink:[{shrink:["",K,O,M]}],order:[{order:[st,"first","last","none",O,M]}],"grid-cols":[{"grid-cols":y()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":P()}],"col-end":[{"col-end":P()}],"grid-rows":[{"grid-rows":y()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":P()}],"row-end":[{"row-end":P()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Y()}],"auto-rows":[{"auto-rows":Y()}],gap:[{gap:E()}],"gap-x":[{"gap-x":E()}],"gap-y":[{"gap-y":E()}],"justify-content":[{justify:[...z(),"normal"]}],"justify-items":[{"justify-items":[...L(),"normal"]}],"justify-self":[{"justify-self":["auto",...L()]}],"align-content":[{content:["normal",...z()]}],"align-items":[{items:[...L(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...L(),{baseline:["","last"]}]}],"place-content":[{"place-content":z()}],"place-items":[{"place-items":[...L(),"baseline"]}],"place-self":[{"place-self":["auto",...L()]}],p:[{p:E()}],px:[{px:E()}],py:[{py:E()}],ps:[{ps:E()}],pe:[{pe:E()}],pbs:[{pbs:E()}],pbe:[{pbe:E()}],pt:[{pt:E()}],pr:[{pr:E()}],pb:[{pb:E()}],pl:[{pl:E()}],m:[{m:q()}],mx:[{mx:q()}],my:[{my:q()}],ms:[{ms:q()}],me:[{me:q()}],mbs:[{mbs:q()}],mbe:[{mbe:q()}],mt:[{mt:q()}],mr:[{mr:q()}],mb:[{mb:q()}],ml:[{ml:q()}],"space-x":[{"space-x":E()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":E()}],"space-y-reverse":["space-y-reverse"],size:[{size:ie()}],"inline-size":[{inline:["auto",...de()]}],"min-inline-size":[{"min-inline":["auto",...de()]}],"max-inline-size":[{"max-inline":["none",...de()]}],"block-size":[{block:["auto",...Te()]}],"min-block-size":[{"min-block":["auto",...Te()]}],"max-block-size":[{"max-block":["none",...Te()]}],w:[{w:[a,"screen",...ie()]}],"min-w":[{"min-w":[a,"screen","none",...ie()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[o]},...ie()]}],h:[{h:["screen","lh",...ie()]}],"min-h":[{"min-h":["screen","lh","none",...ie()]}],"max-h":[{"max-h":["screen","lh",...ie()]}],"font-size":[{text:["base",t,Kt,yt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Bd,Dd]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Nr,M]}],"font-family":[{font:[Od,zd,n]}],"font-features":[{"font-features":[M]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,O,M]}],"line-clamp":[{"line-clamp":[K,"none",O,bl]}],leading:[{leading:[l,...E()]}],"list-image":[{"list-image":["none",O,M]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",O,M]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:d()}],"text-color":[{text:d()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...fe(),"wavy"]}],"text-decoration-thickness":[{decoration:[K,"from-font","auto",O,yt]}],"text-decoration-color":[{decoration:d()}],"underline-offset":[{"underline-offset":[K,"auto",O,M]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",O,M]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",O,M]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:xe()}],"bg-repeat":[{bg:Ce()}],"bg-size":[{bg:m()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},st,O,M],radial:["",O,M],conic:[st,O,M]},Fd,Md]}],"bg-color":[{bg:d()}],"gradient-from-pos":[{from:he()}],"gradient-via-pos":[{via:he()}],"gradient-to-pos":[{to:he()}],"gradient-from":[{from:d()}],"gradient-via":[{via:d()}],"gradient-to":[{to:d()}],rounded:[{rounded:ue()}],"rounded-s":[{"rounded-s":ue()}],"rounded-e":[{"rounded-e":ue()}],"rounded-t":[{"rounded-t":ue()}],"rounded-r":[{"rounded-r":ue()}],"rounded-b":[{"rounded-b":ue()}],"rounded-l":[{"rounded-l":ue()}],"rounded-ss":[{"rounded-ss":ue()}],"rounded-se":[{"rounded-se":ue()}],"rounded-ee":[{"rounded-ee":ue()}],"rounded-es":[{"rounded-es":ue()}],"rounded-tl":[{"rounded-tl":ue()}],"rounded-tr":[{"rounded-tr":ue()}],"rounded-br":[{"rounded-br":ue()}],"rounded-bl":[{"rounded-bl":ue()}],"border-w":[{border:j()}],"border-w-x":[{"border-x":j()}],"border-w-y":[{"border-y":j()}],"border-w-s":[{"border-s":j()}],"border-w-e":[{"border-e":j()}],"border-w-bs":[{"border-bs":j()}],"border-w-be":[{"border-be":j()}],"border-w-t":[{"border-t":j()}],"border-w-r":[{"border-r":j()}],"border-w-b":[{"border-b":j()}],"border-w-l":[{"border-l":j()}],"divide-x":[{"divide-x":j()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":j()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...fe(),"hidden","none"]}],"divide-style":[{divide:[...fe(),"hidden","none"]}],"border-color":[{border:d()}],"border-color-x":[{"border-x":d()}],"border-color-y":[{"border-y":d()}],"border-color-s":[{"border-s":d()}],"border-color-e":[{"border-e":d()}],"border-color-bs":[{"border-bs":d()}],"border-color-be":[{"border-be":d()}],"border-color-t":[{"border-t":d()}],"border-color-r":[{"border-r":d()}],"border-color-b":[{"border-b":d()}],"border-color-l":[{"border-l":d()}],"divide-color":[{divide:d()}],"outline-style":[{outline:[...fe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[K,O,M]}],"outline-w":[{outline:["",K,Kt,yt]}],"outline-color":[{outline:d()}],shadow:[{shadow:["","none",f,vn,Cn]}],"shadow-color":[{shadow:d()}],"inset-shadow":[{"inset-shadow":["none",c,vn,Cn]}],"inset-shadow-color":[{"inset-shadow":d()}],"ring-w":[{ring:j()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:d()}],"ring-offset-w":[{"ring-offset":[K,yt]}],"ring-offset-color":[{"ring-offset":d()}],"inset-ring-w":[{"inset-ring":j()}],"inset-ring-color":[{"inset-ring":d()}],"text-shadow":[{"text-shadow":["none",h,vn,Cn]}],"text-shadow-color":[{"text-shadow":d()}],opacity:[{opacity:[K,O,M]}],"mix-blend":[{"mix-blend":[...le(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":le()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[K]}],"mask-image-linear-from-pos":[{"mask-linear-from":oe()}],"mask-image-linear-to-pos":[{"mask-linear-to":oe()}],"mask-image-linear-from-color":[{"mask-linear-from":d()}],"mask-image-linear-to-color":[{"mask-linear-to":d()}],"mask-image-t-from-pos":[{"mask-t-from":oe()}],"mask-image-t-to-pos":[{"mask-t-to":oe()}],"mask-image-t-from-color":[{"mask-t-from":d()}],"mask-image-t-to-color":[{"mask-t-to":d()}],"mask-image-r-from-pos":[{"mask-r-from":oe()}],"mask-image-r-to-pos":[{"mask-r-to":oe()}],"mask-image-r-from-color":[{"mask-r-from":d()}],"mask-image-r-to-color":[{"mask-r-to":d()}],"mask-image-b-from-pos":[{"mask-b-from":oe()}],"mask-image-b-to-pos":[{"mask-b-to":oe()}],"mask-image-b-from-color":[{"mask-b-from":d()}],"mask-image-b-to-color":[{"mask-b-to":d()}],"mask-image-l-from-pos":[{"mask-l-from":oe()}],"mask-image-l-to-pos":[{"mask-l-to":oe()}],"mask-image-l-from-color":[{"mask-l-from":d()}],"mask-image-l-to-color":[{"mask-l-to":d()}],"mask-image-x-from-pos":[{"mask-x-from":oe()}],"mask-image-x-to-pos":[{"mask-x-to":oe()}],"mask-image-x-from-color":[{"mask-x-from":d()}],"mask-image-x-to-color":[{"mask-x-to":d()}],"mask-image-y-from-pos":[{"mask-y-from":oe()}],"mask-image-y-to-pos":[{"mask-y-to":oe()}],"mask-image-y-from-color":[{"mask-y-from":d()}],"mask-image-y-to-color":[{"mask-y-to":d()}],"mask-image-radial":[{"mask-radial":[O,M]}],"mask-image-radial-from-pos":[{"mask-radial-from":oe()}],"mask-image-radial-to-pos":[{"mask-radial-to":oe()}],"mask-image-radial-from-color":[{"mask-radial-from":d()}],"mask-image-radial-to-color":[{"mask-radial-to":d()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":H()}],"mask-image-conic-pos":[{"mask-conic":[K]}],"mask-image-conic-from-pos":[{"mask-conic-from":oe()}],"mask-image-conic-to-pos":[{"mask-conic-to":oe()}],"mask-image-conic-from-color":[{"mask-conic-from":d()}],"mask-image-conic-to-color":[{"mask-conic-to":d()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:xe()}],"mask-repeat":[{mask:Ce()}],"mask-size":[{mask:m()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",O,M]}],filter:[{filter:["","none",O,M]}],blur:[{blur:Ne()}],brightness:[{brightness:[K,O,M]}],contrast:[{contrast:[K,O,M]}],"drop-shadow":[{"drop-shadow":["","none",p,vn,Cn]}],"drop-shadow-color":[{"drop-shadow":d()}],grayscale:[{grayscale:["",K,O,M]}],"hue-rotate":[{"hue-rotate":[K,O,M]}],invert:[{invert:["",K,O,M]}],saturate:[{saturate:[K,O,M]}],sepia:[{sepia:["",K,O,M]}],"backdrop-filter":[{"backdrop-filter":["","none",O,M]}],"backdrop-blur":[{"backdrop-blur":Ne()}],"backdrop-brightness":[{"backdrop-brightness":[K,O,M]}],"backdrop-contrast":[{"backdrop-contrast":[K,O,M]}],"backdrop-grayscale":[{"backdrop-grayscale":["",K,O,M]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[K,O,M]}],"backdrop-invert":[{"backdrop-invert":["",K,O,M]}],"backdrop-opacity":[{"backdrop-opacity":[K,O,M]}],"backdrop-saturate":[{"backdrop-saturate":[K,O,M]}],"backdrop-sepia":[{"backdrop-sepia":["",K,O,M]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":E()}],"border-spacing-x":[{"border-spacing-x":E()}],"border-spacing-y":[{"border-spacing-y":E()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",O,M]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[K,"initial",O,M]}],ease:[{ease:["linear","initial",x,O,M]}],delay:[{delay:[K,O,M]}],animate:[{animate:["none",T,O,M]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[C,O,M]}],"perspective-origin":[{"perspective-origin":R()}],rotate:[{rotate:Ve()}],"rotate-x":[{"rotate-x":Ve()}],"rotate-y":[{"rotate-y":Ve()}],"rotate-z":[{"rotate-z":Ve()}],scale:[{scale:ct()}],"scale-x":[{"scale-x":ct()}],"scale-y":[{"scale-y":ct()}],"scale-z":[{"scale-z":ct()}],"scale-3d":["scale-3d"],skew:[{skew:ft()}],"skew-x":[{"skew-x":ft()}],"skew-y":[{"skew-y":ft()}],transform:[{transform:[O,M,"","none","gpu","cpu"]}],"transform-origin":[{origin:R()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:pt()}],"translate-x":[{"translate-x":pt()}],"translate-y":[{"translate-y":pt()}],"translate-z":[{"translate-z":pt()}],"translate-none":["translate-none"],accent:[{accent:d()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:d()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",O,M]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mbs":[{"scroll-mbs":E()}],"scroll-mbe":[{"scroll-mbe":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pbs":[{"scroll-pbs":E()}],"scroll-pbe":[{"scroll-pbe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",O,M]}],fill:[{fill:["none",...d()]}],"stroke-w":[{stroke:[K,Kt,yt,bl]}],stroke:[{stroke:["none",...d()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function Zt(...e){return jd(rl(e))}const Hd=ll("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Ud({className:e,variant:n,asChild:t=!1,...r}){const i=t?tl:"span";return N.jsx(i,{"data-slot":"badge",className:Zt(Hd({variant:n}),e),...r})}const Vd=ll("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function Pt({className:e,variant:n,size:t,asChild:r=!1,...i}){const l=r?tl:"button";return N.jsx(l,{"data-slot":"button",className:Zt(Vd({variant:n,size:t,className:e})),...i})}var qd=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Wd=qd.reduce((e,n)=>{const t=el(`Primitive.${n}`),r=Ee.forwardRef((i,l)=>{const{asChild:o,...a}=i,s=o?t:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),N.jsx(s,{...a,ref:l})});return r.displayName=`Primitive.${n}`,{...e,[n]:r}},{}),Gd="Separator",Al="horizontal",Yd=["horizontal","vertical"],_l=Ee.forwardRef((e,n)=>{const{decorative:t,orientation:r=Al,...i}=e,l=Xd(r)?r:Al,a=t?{role:"none"}:{"aria-orientation":l==="vertical"?l:void 0,role:"separator"};return N.jsx(Wd.div,{"data-orientation":l,...a,...i,ref:n})});_l.displayName=Gd;function Xd(e){return Yd.includes(e)}var Qd=_l;function Il({className:e,orientation:n="horizontal",decorative:t=!0,...r}){return N.jsx(Qd,{"data-slot":"separator",decorative:t,orientation:n,className:Zt("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...r})}function Kd({className:e,...n}){return N.jsx("div",{"data-slot":"card",className:Zt("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...n})}function Zd({className:e,...n}){return N.jsx("div",{"data-slot":"card-content",className:Zt("px-6",e),...n})}function Jd({actions:e}){const n=[{icon:Ch,title:"Bold (Ctrl+B)",action:e.insertBold},{icon:Dh,title:"Italic (Ctrl+I)",action:e.insertItalic},{icon:jh,title:"Strikethrough",action:e.insertStrikethrough}],t=[{icon:Ih,title:"Heading 1",action:()=>e.insertHeading(1)},{icon:Lh,title:"Heading 2",action:()=>e.insertHeading(2)},{icon:Ph,title:"Heading 3",action:()=>e.insertHeading(3)}],r=[{icon:Oh,title:"Unordered List",action:e.insertUnorderedList},{icon:Mh,title:"Ordered List",action:e.insertOrderedList}],i=[{icon:Fh,title:"Blockquote",action:e.insertBlockquote},{icon:vh,title:"Inline Code",action:e.insertInlineCode},{icon:_h,title:"Code Block",action:e.insertCodeBlock},{icon:Rh,title:"Horizontal Rule",action:e.insertHorizontalRule}],l=[{icon:zh,title:"Link",action:e.insertLink},{icon:Nh,title:"Image",action:e.insertImage},{icon:Hh,title:"Table",action:e.insertTable}],o=[n,t,r,i,l];return N.jsx("div",{className:"flex items-center gap-0.5 px-3 py-1.5 border-b bg-muted/30 overflow-x-auto",children:o.map((a,s)=>N.jsxs("div",{className:"flex items-center gap-0.5",children:[s>0&&N.jsx(Il,{orientation:"vertical",className:"h-5 mx-1"}),a.map((u,f)=>N.jsx(Pt,{variant:"ghost",size:"sm",onClick:c=>{c.preventDefault(),u.action()},title:u.title,className:"h-7 w-7 p-0",type:"button",children:N.jsx(u.icon,{className:"w-4 h-4"})},f))]},s))})}function xt(e,n,t,r,i){const{selectionStart:l,selectionEnd:o,value:a}=e,u=a.substring(l,o)||i,f=a.substring(0,l)+t+u+r+a.substring(o);n(f),requestAnimationFrame(()=>{e.focus();const c=l+t.length,h=c+u.length;e.setSelectionRange(c,h)})}function En(e,n,t){const{selectionStart:r,value:i}=e,l=i.lastIndexOf(`
151
+ `,r-1)+1,o=i.substring(0,l)+t+i.substring(l);n(o),requestAnimationFrame(()=>{e.focus(),e.setSelectionRange(r+t.length,r+t.length)})}function zr(e,n,t,r){const{selectionStart:i,selectionEnd:l,value:o}=e,s=i>0&&o[i-1]!==`
152
+ `?`
153
+ `:"",u=o.substring(0,i)+s+t+o.substring(l);n(u),requestAnimationFrame(()=>{e.focus();const f=i+s.length+r;e.setSelectionRange(f,f)})}function em(e,n){const t=te.useCallback(()=>e.current,[e]),r=te.useCallback(()=>{const k=t();k&&xt(k,n,"**","**","bold text")},[t,n]),i=te.useCallback(()=>{const k=t();k&&xt(k,n,"*","*","italic text")},[t,n]),l=te.useCallback(()=>{const k=t();k&&xt(k,n,"~~","~~","strikethrough text")},[t,n]),o=te.useCallback(()=>{const k=t();k&&xt(k,n,"`","`","code")},[t,n]),a=te.useCallback(k=>{const x=t();if(!x)return;const T="#".repeat(k)+" ";En(x,n,T)},[t,n]),s=te.useCallback(()=>{const k=t();k&&En(k,n,"> ")},[t,n]),u=te.useCallback(()=>{const k=t();k&&En(k,n,"- ")},[t,n]),f=te.useCallback(()=>{const k=t();k&&En(k,n,"1. ")},[t,n]),c=te.useCallback(()=>{const k=t();if(!k)return;zr(k,n,"```\ncode here\n```\n",4)},[t,n]),h=te.useCallback(()=>{const k=t();if(!k)return;const{selectionStart:x,selectionEnd:T,value:v}=k;v.substring(x,T)?xt(k,n,"[","](url)",""):xt(k,n,"[","](url)","link text")},[t,n]),p=te.useCallback(()=>{const k=t();k&&xt(k,n,"![","](image-url)","alt text")},[t,n]),b=te.useCallback(()=>{const k=t();k&&zr(k,n,`
154
+ ---
155
+
156
+ `,5)},[t,n]),C=te.useCallback(()=>{const k=t();if(!k)return;zr(k,n,`| Header 1 | Header 2 |
157
+ | -------- | -------- |
158
+ | Cell 1 | Cell 2 |
159
+ | Cell 3 | Cell 4 |
160
+ `,2)},[t,n]);return{insertBold:r,insertItalic:i,insertStrikethrough:l,insertInlineCode:o,insertHeading:a,insertBlockquote:s,insertUnorderedList:u,insertOrderedList:f,insertCodeBlock:c,insertLink:h,insertImage:p,insertHorizontalRule:b,insertTable:C}}const tm={heading:"#569cd6",headingText:"#c792ea",bold:"#ce9178",boldText:"#ffd700",italic:"#6a9955",italicText:"#b5cea8",strikethrough:"#f44747",strikethroughText:"#f44747",inlineCode:"#f92672",inlineCodeText:"#f8f8f2",inlineCodeBg:"rgba(255,255,255,0.1)",link:"#569cd6",linkText:"#4ec9b0",linkUrl:"#9cdcfe",image:"#d19a66",imageAlt:"#98c379",imagePath:"#e5c07b",listBullet:"#569cd6",listText:"#222",orderedList:"#c792ea",blockquote:"#6a9955",blockquoteText:"#6a9955",codeBlock:"#c792ea",codeBlockText:"#d4d4d4",codeBlockBg:"rgba(255,255,255,0.05)",horizontalRule:"#4a4a4a",tablePipe:"#569cd6",tableCellText:"#d4d4d4",tableSeparator:"#4a4a4a"},nm=(e,n={})=>{const t={...tm,...n};let r=e.replace(/</g,"&lt;").replace(/>/g,"&gt;");return r=r.replace(/^(#{1,6})\s+(.+)$/gm,`<span style="color:${t.heading};font-weight:bold">$1</span> <span style="color:${t.headingText};font-weight:600">$2</span>`).replace(/\*\*(.*?)\*\*/g,`<span style="color:${t.bold}">**</span><span style="color:${t.boldText};font-weight:bold">$1</span><span style="color:${t.bold}">**</span>`).replace(/\*(.*?)\*/g,`<span style="color:${t.italic}">*</span><span style="color:${t.italicText};font-style:italic">$1</span><span style="color:${t.italic}">*</span>`).replace(/~~(.*?)~~/g,`<span style="color:${t.strikethrough}">~~</span><span style="color:${t.strikethroughText};text-decoration:line-through">$1</span><span style="color:${t.strikethrough}">~~</span>`).replace(/`([^`]+)`/g,`<span style="color:${t.inlineCode}">\`</span><span style="color:${t.inlineCodeText};background:${t.inlineCodeBg};padding:0 3px;border-radius:3px;font-family:monospace">$1</span><span style="color:${t.inlineCode}">\`</span>`).replace(/!\[([^\]]*)\]\(([^)]+)\)/g,`<span style="color:${t.image}">!</span><span style="color:${t.image}">[</span><span style="color:${t.imageAlt}">$1</span><span style="color:${t.image}">](</span><span style="color:${t.imagePath}">$2</span><span style="color:${t.image}">)</span>`).replace(/\[([^\]]+)\]\(([^)]+)\)/g,`<span style="color:${t.link}">[</span><span style="color:${t.linkText};text-decoration:underline">$1</span><span style="color:${t.link}">](</span><span style="color:${t.linkUrl}">$2</span><span style="color:${t.link}">)</span>`).replace(/^(\s*)([-*+])\s+(.+)$/gm,`$1<span style="color:${t.listBullet};font-weight:bold">$2</span> <span style="color:${t.listText}">$3</span>`).replace(/^(\s*)(\d+\.)\s+(.+)$/gm,`$1<span style="color:${t.orderedList};font-weight:bold">$2</span> <span style="color:${t.listText}">$3</span>`).replace(/^&gt;\s+(.+)$/gm,`<span style="color:${t.blockquote};font-weight:bold">&gt;</span> <span style="color:${t.blockquoteText};font-style:italic">$1</span>`).replace(/```(\w+)?\n([\s\S]*?)\n```/g,`<span style="color:${t.codeBlock}">\`\`\`$1</span>
76
161
  <span style="color:${t.codeBlockText};background:${t.codeBlockBg};display:block;padding:6px 8px;border-radius:4px;font-family:monospace;font-size:0.875em">$2</span>
77
- <span style="color:${t.codeBlock}">\`\`\`</span>`).replace(/^---+$/gm,`<span style="color:${t.horizontalRule};font-weight:bold">$&</span>`),Th.sanitize(r)},Rd={h1:({children:e})=>D.jsx("h1",{className:"text-3xl font-bold mb-4 mt-6 first:mt-0 text-foreground border-b pb-2",children:e}),h2:({children:e})=>D.jsx("h2",{className:"text-2xl font-semibold mb-3 mt-5 text-foreground border-b pb-1",children:e}),h3:({children:e})=>D.jsx("h3",{className:"text-xl font-semibold mb-2 mt-4 text-foreground",children:e}),h4:({children:e})=>D.jsx("h4",{className:"text-lg font-medium mb-2 mt-3 text-foreground",children:e}),h5:({children:e})=>D.jsx("h5",{className:"text-base font-medium mb-2 mt-3 text-foreground",children:e}),h6:({children:e})=>D.jsx("h6",{className:"text-sm font-medium mb-2 mt-3 text-muted-foreground",children:e}),p:({children:e})=>D.jsx("p",{className:"mb-4 text-foreground leading-relaxed",children:e}),ul:({children:e})=>D.jsx("ul",{className:"list-disc list-inside mb-4 space-y-1 text-foreground",children:e}),ol:({children:e})=>D.jsx("ol",{className:"list-decimal list-inside mb-4 space-y-1 text-foreground",children:e}),li:({children:e})=>D.jsx("li",{className:"text-foreground leading-relaxed",children:e}),blockquote:({children:e})=>D.jsx("blockquote",{className:"border-l-4 border-muted-foreground/30 pl-4 py-2 mb-4 italic text-muted-foreground bg-muted/50 rounded-r",children:e}),code:({children:e,className:n})=>n?D.jsx("code",{className:"block bg-muted p-4 rounded-lg text-sm font-mono text-foreground overflow-x-auto",children:e}):D.jsx("code",{className:"bg-muted px-1.5 py-0.5 rounded text-sm font-mono text-foreground",children:e}),pre:({children:e})=>D.jsx("pre",{className:"bg-muted p-4 rounded-lg mb-4 overflow-x-auto",children:e}),table:({children:e})=>D.jsx("div",{className:"overflow-x-auto mb-4",children:D.jsx("table",{className:"min-w-full border-collapse border border-border",children:e})}),th:({children:e})=>D.jsx("th",{className:"border border-border bg-muted px-4 py-2 text-left font-semibold text-foreground",children:e}),td:({children:e})=>D.jsx("td",{className:"border border-border px-4 py-2 text-foreground",children:e}),hr:()=>D.jsx("hr",{className:"my-6 border-t border-border"}),a:({href:e,children:n})=>D.jsx("a",{href:e,className:"text-primary hover:text-primary/80 underline underline-offset-2",target:"_blank",rel:"noopener noreferrer",children:n}),strong:({children:e})=>D.jsx("strong",{className:"font-bold text-foreground",children:e}),em:({children:e})=>D.jsx("em",{className:"italic text-foreground",children:e})},Tl=ke.forwardRef(({value:e,defaultValue:n=`# Markdown Editor
162
+ <span style="color:${t.codeBlock}">\`\`\`</span>`).replace(/^---+$/gm,`<span style="color:${t.horizontalRule};font-weight:bold">$&</span>`).replace(/^(\|[\s-:]+)+\|$/gm,i=>`<span style="color:${t.tableSeparator}">${i}</span>`).replace(/^(\|.+)+\|$/gm,i=>i.replace(/(\|)([^|]*)/g,`<span style="color:${t.tablePipe}">$1</span><span style="color:${t.tableCellText}">$2</span>`)),qh.sanitize(r)},rm={h1:({children:e})=>N.jsx("h1",{className:"text-3xl font-bold mb-4 mt-6 first:mt-0 text-foreground border-b pb-2",children:e}),h2:({children:e})=>N.jsx("h2",{className:"text-2xl font-semibold mb-3 mt-5 text-foreground border-b pb-1",children:e}),h3:({children:e})=>N.jsx("h3",{className:"text-xl font-semibold mb-2 mt-4 text-foreground",children:e}),h4:({children:e})=>N.jsx("h4",{className:"text-lg font-medium mb-2 mt-3 text-foreground",children:e}),h5:({children:e})=>N.jsx("h5",{className:"text-base font-medium mb-2 mt-3 text-foreground",children:e}),h6:({children:e})=>N.jsx("h6",{className:"text-sm font-medium mb-2 mt-3 text-muted-foreground",children:e}),p:({children:e})=>N.jsx("p",{className:"mb-4 text-foreground leading-relaxed",children:e}),ul:({children:e})=>N.jsx("ul",{className:"list-disc list-inside mb-4 space-y-1 text-foreground",children:e}),ol:({children:e})=>N.jsx("ol",{className:"list-decimal list-inside mb-4 space-y-1 text-foreground",children:e}),li:({children:e})=>N.jsx("li",{className:"text-foreground leading-relaxed",children:e}),blockquote:({children:e})=>N.jsx("blockquote",{className:"border-l-4 border-muted-foreground/30 pl-4 py-2 mb-4 italic text-muted-foreground bg-muted/50 rounded-r",children:e}),code:({children:e,className:n})=>n?N.jsx("code",{className:"block bg-muted p-4 rounded-lg text-sm font-mono text-foreground overflow-x-auto",children:e}):N.jsx("code",{className:"bg-muted px-1.5 py-0.5 rounded text-sm font-mono text-foreground",children:e}),pre:({children:e})=>N.jsx("pre",{className:"bg-muted p-4 rounded-lg mb-4 overflow-x-auto",children:e}),table:({children:e})=>N.jsx("div",{className:"overflow-x-auto mb-4",children:N.jsx("table",{className:"min-w-full border-collapse border border-border",children:e})}),th:({children:e})=>N.jsx("th",{className:"border border-border bg-muted px-4 py-2 text-left font-semibold text-foreground",children:e}),td:({children:e})=>N.jsx("td",{className:"border border-border px-4 py-2 text-foreground",children:e}),hr:()=>N.jsx("hr",{className:"my-6 border-t border-border"}),a:({href:e,children:n})=>N.jsx("a",{href:e,className:"text-primary hover:text-primary/80 underline underline-offset-2",target:"_blank",rel:"noopener noreferrer",children:n}),strong:({children:e})=>N.jsx("strong",{className:"font-bold text-foreground",children:e}),em:({children:e})=>N.jsx("em",{className:"italic text-foreground",children:e})},Ll=te.forwardRef(({value:e,defaultValue:n=`# Markdown Editor
78
163
 
79
- Welcome to the **Markdown Editor**!`,onChange:t,viewMode:r,defaultViewMode:i="split",onViewModeChange:l,className:o,editorClassName:a,previewClassName:s,hideToolbar:u=!1,hideWordCount:f=!1,enableDownload:c=!0,enableCopy:h=!0,placeholder:p="Start typing your markdown here...",readOnly:y=!1,maxLength:S,components:E,syntaxColors:x},A)=>{const[v,$]=ke.useState(n),[M,w]=ke.useState(i),H=e!==void 0,C=H?e:v,V=r!==void 0,b=V?r:M,O=ke.useRef(null),P=ke.useRef(null);ke.useImperativeHandle(A,()=>({focus:()=>{var ie;(ie=O.current)==null||ie.focus()},getValue:()=>C}));const X=ke.useCallback(ie=>{const d=ie.target.value;H||$(d),t==null||t(d)},[H,t]),R=ke.useCallback(ie=>{V||w(ie),l==null||l(ie)},[V,l]),L=ke.useCallback(ie=>{P.current&&(P.current.scrollTop=ie.currentTarget.scrollTop,P.current.scrollLeft=ie.currentTarget.scrollLeft)},[]),W=ke.useCallback(async()=>{try{await navigator.clipboard.writeText(C),console.log("Copied to clipboard!")}catch(ie){console.error("Failed to copy:",ie)}},[C]),re=ke.useCallback(()=>{const ie=new Blob([C],{type:"text/markdown"}),d=URL.createObjectURL(ie),fe=document.createElement("a");fe.href=d,fe.download="document.md",document.body.appendChild(fe),fe.click(),document.body.removeChild(fe),URL.revokeObjectURL(d)},[C]),pe=ke.useMemo(()=>({...Rd,...E}),[E]);return D.jsxs(Od,{className:`w-full h-screen max-h-screen flex flex-col ${o||""}`,children:[u?null:D.jsxs("div",{className:"flex items-center justify-between p-4 border-b bg-muted/50",children:[D.jsxs("div",{className:"flex items-center gap-2",children:[D.jsx("h2",{className:"text-lg font-semibold",children:"Markdown Editor"}),f?null:D.jsxs(Cd,{variant:"secondary",className:"text-xs",children:[C.length," characters"]})]}),D.jsxs("div",{className:"flex items-center gap-2",children:[D.jsxs("div",{className:"flex items-center border rounded-lg p-1",children:[D.jsxs(Qt,{variant:b==="edit"?"default":"ghost",size:"sm",onClick:()=>R("edit"),className:"h-8 px-3",children:[D.jsx(Eh,{className:"w-4 h-4 mr-1"}),"Edit"]}),D.jsxs(Qt,{variant:b==="split"?"default":"ghost",size:"sm",onClick:()=>R("split"),className:"h-8 px-3",children:[D.jsx(Sh,{className:"w-4 h-4 mr-1"}),"Split"]}),D.jsxs(Qt,{variant:b==="preview"?"default":"ghost",size:"sm",onClick:()=>R("preview"),className:"h-8 px-3",children:[D.jsx(wh,{className:"w-4 h-4 mr-1"}),"Preview"]})]}),D.jsx(Dd,{orientation:"vertical",className:"h-6"}),h?D.jsxs(Qt,{variant:"outline",size:"sm",onClick:W,children:[D.jsx(xh,{className:"w-4 h-4 mr-1"}),"Copy"]}):null,c?D.jsxs(Qt,{variant:"outline",size:"sm",onClick:re,children:[D.jsx(kh,{className:"w-4 h-4 mr-1"}),"Download"]}):null]})]}),D.jsx(zd,{className:"flex-1 p-0 overflow-hidden",children:D.jsxs("div",{className:"flex h-full",children:[b==="edit"||b==="split"?D.jsxs("div",{className:`${b==="split"?"w-1/2":"w-full"} border-r h-full flex flex-col ${a||""}`,children:[D.jsx("div",{className:"p-4 border-b bg-muted/30",children:D.jsx("h3",{className:"font-medium text-sm text-muted-foreground",children:"Syntax-Highlighted Editor"})}),D.jsxs("div",{className:"relative flex-1 w-full bg-transparent overflow-hidden",children:[D.jsx("div",{ref:P,className:"absolute inset-0 p-4 font-mono text-sm leading-relaxed pointer-events-none overflow-auto whitespace-pre-wrap wrap-break-word",style:{scrollbarWidth:"none",msOverflowStyle:"none"},dangerouslySetInnerHTML:{__html:Md(C,x)}}),D.jsx("textarea",{ref:O,value:C,onChange:X,onScroll:L,placeholder:p,readOnly:y,maxLength:S,spellCheck:!1,className:"absolute inset-0 w-full h-full p-4 border-none outline-none resize-none bg-transparent font-mono text-sm leading-relaxed z-10 wrap-break-word",style:{color:"transparent",caretColor:"var(--foreground, #d4d4d4)"}})]})]}):null,b==="preview"||b==="split"?D.jsxs("div",{className:`${b==="split"?"w-1/2":"w-full"} h-full flex flex-col ${s||""}`,children:[D.jsx("div",{className:"p-4 border-b bg-muted/30",children:D.jsx("h3",{className:"font-medium text-sm text-muted-foreground",children:"Preview"})}),D.jsx("div",{className:"p-4 flex-1 overflow-auto",children:D.jsx("div",{className:"prose prose-slate dark:prose-invert max-w-none",children:D.jsx(Jc,{components:pe,remarkPlugins:[hh],children:C})})})]}):null]})})]})});Tl.displayName="MarkdownEditor",rt.MarkdownEditor=Tl,Object.defineProperty(rt,Symbol.toStringTag,{value:"Module"})}));
164
+ Welcome to the **Markdown Editor**!`,onChange:t,viewMode:r,defaultViewMode:i="split",onViewModeChange:l,className:o,editorClassName:a,previewClassName:s,showToolbar:u=!0,showWordCount:f=!0,showMarkdownToolbar:c=!0,enableDownload:h=!0,enableCopy:p=!0,enableScrollSync:b=!0,placeholder:C="Start typing your markdown here...",readOnly:k=!1,maxLength:x,components:T,syntaxColors:v},H)=>{const[R,S]=te.useState(n),[W,E]=te.useState(i),V=e!==void 0,y=V?e:R,D=r!==void 0,P=D?r:W,Y=te.useRef(null),z=te.useRef(null),L=te.useRef(null),q=te.useRef(!1);te.useImperativeHandle(H,()=>({focus:()=>{var j;(j=Y.current)==null||j.focus()},getValue:()=>y}));const ie=te.useCallback(j=>{V||S(j),t==null||t(j)},[V,t]),de=te.useCallback(j=>{ie(j.target.value)},[ie]),Te=em(Y,ie),d=te.useCallback(j=>{D||E(j),l==null||l(j)},[D,l]),xe=te.useCallback(j=>{const fe=j.currentTarget;if(z.current&&(z.current.scrollTop=fe.scrollTop,z.current.scrollLeft=fe.scrollLeft),!b||q.current)return;q.current=!0;const le=L.current;if(le){const oe=fe.scrollHeight-fe.clientHeight,Ne=oe>0?fe.scrollTop/oe:0;le.scrollTop=Ne*(le.scrollHeight-le.clientHeight)}requestAnimationFrame(()=>{q.current=!1})},[b]),Ce=te.useCallback(j=>{if(!b||q.current)return;q.current=!0;const fe=j.currentTarget,le=Y.current;if(le){const oe=fe.scrollHeight-fe.clientHeight,Ne=oe>0?fe.scrollTop/oe:0;le.scrollTop=Ne*(le.scrollHeight-le.clientHeight),z.current&&(z.current.scrollTop=le.scrollTop)}requestAnimationFrame(()=>{q.current=!1})},[b]),m=te.useCallback(async()=>{try{await navigator.clipboard.writeText(y),console.log("Copied to clipboard!")}catch(j){console.error("Failed to copy:",j)}},[y]),he=te.useCallback(()=>{const j=new Blob([y],{type:"text/markdown"}),fe=URL.createObjectURL(j),le=document.createElement("a");le.href=fe,le.download="document.md",document.body.appendChild(le),le.click(),document.body.removeChild(le),URL.revokeObjectURL(fe)},[y]),ue=te.useMemo(()=>({...rm,...T}),[T]);return N.jsxs(Kd,{className:`w-full h-screen max-h-screen flex flex-col gap-0 py-0 ${o||""}`,children:[u?N.jsxs("div",{className:"flex items-center justify-between p-4 border-b bg-muted/50",children:[N.jsxs("div",{className:"flex items-center gap-2",children:[N.jsx("h2",{className:"text-lg font-semibold",children:"Markdown Editor"}),f?N.jsxs(Ud,{variant:"secondary",className:"text-xs",children:[y.length," characters"]}):null]}),N.jsxs("div",{className:"flex items-center gap-2",children:[N.jsxs("div",{className:"flex items-center border rounded-lg p-1",children:[N.jsxs(Pt,{variant:P==="edit"?"default":"ghost",size:"sm",onClick:()=>d("edit"),className:"h-8 px-3",children:[N.jsx($h,{className:"w-4 h-4 mr-1"}),"Edit"]}),N.jsxs(Pt,{variant:P==="split"?"default":"ghost",size:"sm",onClick:()=>d("split"),className:"h-8 px-3",children:[N.jsx(Bh,{className:"w-4 h-4 mr-1"}),"Split"]}),N.jsxs(Pt,{variant:P==="preview"?"default":"ghost",size:"sm",onClick:()=>d("preview"),className:"h-8 px-3",children:[N.jsx(Ah,{className:"w-4 h-4 mr-1"}),"Preview"]})]}),N.jsx(Il,{orientation:"vertical",className:"h-6"}),p?N.jsxs(Pt,{variant:"outline",size:"sm",onClick:m,children:[N.jsx(Eh,{className:"w-4 h-4 mr-1"}),"Copy"]}):null,h?N.jsxs(Pt,{variant:"outline",size:"sm",onClick:he,children:[N.jsx(Th,{className:"w-4 h-4 mr-1"}),"Download"]}):null]})]}):null,N.jsx(Zd,{className:"flex-1 p-0 min-h-0 overflow-hidden",children:N.jsxs("div",{className:"flex h-full min-h-0",children:[P==="edit"||P==="split"?N.jsxs("div",{className:`${P==="split"?"w-1/2":"w-full"} border-r h-full min-h-0 flex flex-col ${a||""}`,children:[N.jsx("div",{className:"p-4 border-b bg-muted/30",children:N.jsx("h3",{className:"font-medium text-sm text-muted-foreground",children:"Syntax-Highlighted Editor"})}),c&&!k&&N.jsx(Jd,{actions:Te}),N.jsxs("div",{className:"relative flex-1 w-full bg-transparent overflow-hidden",children:[N.jsx("div",{ref:z,className:"absolute inset-0 p-4 font-mono text-sm leading-relaxed pointer-events-none overflow-auto whitespace-pre-wrap wrap-break-word",style:{scrollbarWidth:"none",msOverflowStyle:"none"},dangerouslySetInnerHTML:{__html:nm(y,v)}}),N.jsx("textarea",{ref:Y,value:y,onChange:de,onScroll:xe,placeholder:C,readOnly:k,maxLength:x,spellCheck:!1,className:"absolute inset-0 w-full h-full p-4 border-none outline-none resize-none bg-transparent font-mono text-sm leading-relaxed z-10 wrap-break-word",style:{color:"transparent",caretColor:"var(--foreground, #d4d4d4)"}})]})]}):null,P==="preview"||P==="split"?N.jsxs("div",{className:`${P==="split"?"w-1/2":"w-full"} h-full min-h-0 flex flex-col ${s||""}`,children:[N.jsx("div",{className:"p-4 border-b bg-muted/30",children:N.jsx("h3",{className:"font-medium text-sm text-muted-foreground",children:"Preview"})}),N.jsx("div",{ref:L,onScroll:Ce,className:"p-4 flex-1 overflow-auto min-h-0",children:N.jsx("div",{className:"prose prose-slate dark:prose-invert max-w-none",children:N.jsx(rf,{components:ue,remarkPlugins:[bh],children:y})})})]}):null]})})]})});Ll.displayName="MarkdownEditor",it.MarkdownEditor=Ll,Object.defineProperty(it,Symbol.toStringTag,{value:"Module"})}));