neo-md 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2473 -2448
- package/dist/index.umd.cjs +54 -49
- package/dist/neo-md.css +1 -1
- package/package.json +1 -1
package/dist/index.umd.cjs
CHANGED
|
@@ -1,164 +1,169 @@
|
|
|
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=`
|
|
1
|
+
(function(st,P){typeof exports=="object"&&typeof module<"u"?P(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],P):(st=typeof globalThis<"u"?globalThis:st||self,P(st.NeoMd={},st.jsxRuntime,st.React))})(this,(function(st,P,Q){"use strict";function na(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 Ae=na(Q);function Cm(){}function vm(){}function ra(e,n){const t={};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const ia=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,oa=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,la={};function Jr(e,n){return(la.jsx?oa:ia).test(e)}const aa=/[ \t\n\f\r]/g;function sa(e){return typeof e=="object"?e.type==="text"?ei(e.value):!1:ei(e)}function ei(e){return e.replace(aa,"")===""}class $t{constructor(n,t,r){this.normal=t,this.property=n,r&&(this.space=r)}}$t.prototype.normal={},$t.prototype.property={},$t.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 $t(t,r,n)}function zn(e){return e.toLowerCase()}class Fe{constructor(n,t){this.attribute=t,this.property=n}}Fe.prototype.attribute="",Fe.prototype.booleanish=!1,Fe.prototype.boolean=!1,Fe.prototype.commaOrSpaceSeparated=!1,Fe.prototype.commaSeparated=!1,Fe.prototype.defined=!1,Fe.prototype.mustUseProperty=!1,Fe.prototype.number=!1,Fe.prototype.overloadedBoolean=!1,Fe.prototype.property="",Fe.prototype.spaceSeparated=!1,Fe.prototype.space=void 0;let ua=0;const X=gt(),ye=gt(),On=gt(),_=gt(),ce=gt(),Et=gt(),Ve=gt();function gt(){return 2**++ua}const Rn=Object.freeze(Object.defineProperty({__proto__:null,boolean:X,booleanish:ye,commaOrSpaceSeparated:Ve,commaSeparated:Et,number:_,overloadedBoolean:On,spaceSeparated:ce},Symbol.toStringTag,{value:"Module"})),Fn=Object.keys(Rn);class Bn extends Fe{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 Tt(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[zn(r)]=r,t[zn(l.attribute)]=r}return new $t(n,t,e.space)}const ri=Tt({properties:{ariaActiveDescendant:null,ariaAtomic:ye,ariaAutoComplete:null,ariaBusy:ye,ariaChecked:ye,ariaColCount:_,ariaColIndex:_,ariaColSpan:_,ariaControls:ce,ariaCurrent:null,ariaDescribedBy:ce,ariaDetails:null,ariaDisabled:ye,ariaDropEffect:ce,ariaErrorMessage:null,ariaExpanded:ye,ariaFlowTo:ce,ariaGrabbed:ye,ariaHasPopup:null,ariaHidden:ye,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ce,ariaLevel:_,ariaLive:null,ariaModal:ye,ariaMultiLine:ye,ariaMultiSelectable:ye,ariaOrientation:null,ariaOwns:ce,ariaPlaceholder:null,ariaPosInSet:_,ariaPressed:ye,ariaReadOnly:ye,ariaRelevant:null,ariaRequired:ye,ariaRoleDescription:ce,ariaRowCount:_,ariaRowIndex:_,ariaRowSpan:_,ariaSelected:ye,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 ca=Tt({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Et,acceptCharset:ce,accessKey:ce,action:null,allow:null,allowFullScreen:X,allowPaymentRequest:X,allowUserMedia:X,alt:null,as:null,async:X,autoCapitalize:null,autoComplete:ce,autoFocus:X,autoPlay:X,blocking:ce,capture:null,charSet:null,checked:X,cite:null,className:ce,cols:_,colSpan:null,content:null,contentEditable:ye,controls:X,controlsList:ce,coords:_|Et,crossOrigin:null,data:null,dateTime:null,decoding:null,default:X,defer:X,dir:null,dirName:null,disabled:X,download:On,draggable:ye,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:X,formTarget:null,headers:ce,height:_,hidden:On,high:_,href:null,hrefLang:null,htmlFor:ce,httpEquiv:ce,id:null,imageSizes:null,imageSrcSet:null,inert:X,inputMode:null,integrity:null,is:null,isMap:X,itemId:null,itemProp:ce,itemRef:ce,itemScope:X,itemType:ce,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:X,low:_,manifest:null,max:null,maxLength:_,media:null,method:null,min:null,minLength:_,multiple:X,muted:X,name:null,nonce:null,noModule:X,noValidate:X,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:X,optimum:_,pattern:null,ping:ce,placeholder:null,playsInline:X,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:X,referrerPolicy:null,rel:ce,required:X,reversed:X,rows:_,rowSpan:_,sandbox:ce,scope:null,scoped:X,seamless:X,selected:X,shadowRootClonable:X,shadowRootDelegatesFocus:X,shadowRootMode:null,shape:null,size:_,sizes:null,slot:null,span:_,spellCheck:ye,src:null,srcDoc:null,srcLang:null,srcSet:null,start:_,step:null,style:null,tabIndex:_,target:null,title:null,translate:null,type:null,typeMustMatch:X,useMap:null,value:ye,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:X,declare:X,event:null,face:null,frame:null,frameBorder:null,hSpace:_,leftMargin:_,link:null,longDesc:null,lowSrc:null,marginHeight:_,marginWidth:_,noResize:X,noHref:X,noShade:X,noWrap:X,object:null,profile:null,prompt:null,rev:null,rightMargin:_,rules:null,scheme:null,scrolling:ye,standby:null,summary:null,text:null,topMargin:_,valueType:null,version:null,vAlign:null,vLink:null,vSpace:_,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:X,disableRemotePlayback:X,prefix:null,property:null,results:_,security:null,unselectable:null},space:"html",transform:oi}),fa=Tt({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:Ve,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:X,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:Et,g2:Et,glyphName:Et,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:Ve,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:Ve,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ve,rev:Ve,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ve,requiredFeatures:Ve,requiredFonts:Ve,requiredFormats:Ve,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:Ve,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:_,strokeOpacity:_,strokeWidth:null,style:null,surfaceScale:_,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ve,tabIndex:_,tableValues:null,target:null,targetX:_,targetY:_,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ve,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=Tt({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=Tt({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:oi}),si=Tt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),pa={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"},ha=/[A-Z]/g,ui=/-[a-z]/g,da=/^data[-\w.:]+$/i;function ma(e,n){const t=zn(n);let r=n,i=Fe;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&da.test(n)){if(n.charAt(4)==="-"){const l=n.slice(5).replace(ui,ba);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=n.slice(4);if(!ui.test(l)){let o=l.replace(ha,ga);o.charAt(0)!=="-"&&(o="-"+o),n="data"+o}}i=Bn}return new i(r,n)}function ga(e){return"-"+e.toLowerCase()}function ba(e){return e.charAt(1).toUpperCase()}const ya=ti([ri,ca,li,ai,si],"html"),$n=ti([ri,fa,li,ai,si],"svg");function ka(e){return e.join(" ").trim()}function jn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var At={},Hn,ci;function xa(){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 j(M){var L=M.match(n);L&&(T+=L.length);var V=M.lastIndexOf(s);v=~V?M.length-V:v+M.length}function R(){var M={line:T,column:v};return function(L){return L.position=new S(M),U(),L}}function S(M){this.start=M,this.end={line:T,column:v},this.source=x.source}S.prototype.content=k;function q(M){var L=new Error(x.source+":"+T+":"+v+": "+M);if(L.reason=M,L.filename=x.source,L.line=T,L.column=v,L.source=k,!x.silent)throw L}function E(M){var L=M.exec(k);if(L){var V=L[0];return j(V),k=k.slice(V.length),L}}function U(){E(t)}function y(M){var L;for(M=M||[];L=D();)L!==!1&&M.push(L);return M}function D(){var M=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 q("End of comment missing");var V=k.slice(2,L-2);return v+=2,j(V),k=k.slice(L),v+=2,M({type:h,comment:V})}}function N(){var M=R(),L=E(r);if(L){if(D(),!E(i))return q("property missing ':'");var V=E(l),ne=M({type:p,property:C(L[0].replace(e,c)),value:V?C(V[0].replace(e,c)):c});return E(o),ne}}function G(){var M=[];y(M);for(var L;L=N();)L!==!1&&(M.push(L),y(M));return M}return U(),G()}function C(k){return k?k.replace(a,c):c}return Hn=b,Hn}var fi;function wa(){if(fi)return At;fi=1;var e=At&&At.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(At,"__esModule",{value:!0}),At.default=t;const n=e(xa());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 At}var jt={},pi;function Sa(){if(pi)return jt;pi=1,Object.defineProperty(jt,"__esModule",{value:!0}),jt.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 jt.camelCase=s,jt}var Ht,hi;function Ca(){if(hi)return Ht;hi=1;var e=Ht&&Ht.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},n=e(wa()),t=Sa();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,Ht=r,Ht}var va=Ca();const Ea=jn(va),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 Ta(e){const n=Un(e),t=di(e);if(n&&t)return{start:n,end:t}}function Ut(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 Ne 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=Ut(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}}Ne.prototype.file="",Ne.prototype.name="",Ne.prototype.reason="",Ne.prototype.message="",Ne.prototype.stack="",Ne.prototype.column=void 0,Ne.prototype.line=void 0,Ne.prototype.ancestors=void 0,Ne.prototype.cause=void 0,Ne.prototype.fatal=void 0,Ne.prototype.place=void 0,Ne.prototype.ruleId=void 0,Ne.prototype.source=void 0;const qn={}.hasOwnProperty,Aa=new Map,_a=/[A-Z]/g,Ia=new Set(["table","tbody","thead","tfoot","tr"]),La=new Set(["td","th"]),yi="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Na(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=Ba(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=Fa(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:ya,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 Da(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return za(e,n,t);if(n.type==="mdxjsEsm")return Ma(e,n);if(n.type==="root")return Oa(e,n,t);if(n.type==="text")return Ra(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=$a(e,n);let a=Gn(e,n);return Ia.has(n.tagName)&&(a=a.filter(function(s){return typeof s=="string"?!sa(s):!0})),xi(e,o,l,n),Wn(o,a),e.ancestors.pop(),e.schema=r,e.create(n,l,o,t)}function Da(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)}Vt(e,n.position)}function Ma(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);Vt(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=ja(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 Oa(e,n,t){const r={};return Wn(r,Gn(e,n)),e.create(n,e.Fragment,r,t)}function Ra(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 Fa(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 Ba(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 $a(e,n){const t={};let r,i;for(i in n.properties)if(i!=="children"&&qn.call(n.properties,i)){const l=Ha(e,i,n.properties[i]);if(l){const[o,a]=l;e.tableCellAlignToStyle&&o==="align"&&typeof a=="string"&&La.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 ja(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 Vt(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 Vt(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:Aa;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 Ha(e,n,t){const r=ma(e.schema,n);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=r.commaSeparated?ra(t):ka(t)),r.property==="style"){let i=typeof t=="object"?t:Ua(e,String(t));return e.stylePropertyNameCase==="css"&&(i=Va(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?pa[r.property]||r.property:r.attribute,t]}}function Ua(e,n){try{return Ea(n,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const r=t,i=new Ne("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);Vt(e)}function Vt(e,n){const t=new Ne("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 Va(e){const n={};let t;for(t in e)qn.call(e,t)&&(n[qa(t)]=e[t]);return n}function qa(e){let n=e.replace(_a,Wa);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function Wa(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"]},Ga={};function Xn(e,n){const t=Ga,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(Ya(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 Ya(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 qe(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 We(e,n){return e.length>0?(qe(e,e.length,0,n),e):n}const Ei={}.hasOwnProperty;function Ti(e){const n={};let t=-1;for(;++t<e.length;)Xa(n,e[t]);return n}function Xa(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];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]);qe(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 Ge(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Me=ut(/[A-Za-z]/),Pe=ut(/[\dA-Za-z]/),Ka=ut(/[#-'*+\--9=?A-Z^-~]/);function an(e){return e!==null&&(e<32||e===127)}const Kn=ut(/\d/),Za=ut(/[\dA-Fa-f]/),Ja=ut(/[!-/:-@[-`{-~]/);function H(e){return e!==null&&e<-2}function ue(e){return e!==null&&(e<0||e===32)}function ee(e){return e===-2||e===-1||e===32}const sn=ut(new RegExp("\\p{P}|\\p{S}","u")),bt=ut(/\s/);function ut(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function _t(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 ie(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 es={tokenize:ts};function ts(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"),ie(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 H(a)?(e.consume(a),e.exit("chunkText"),l):(e.consume(a),o)}}const ns={tokenize:rs},_i={tokenize:is};function rs(e){const n=this,t=[];let r=0,i,l,o;return a;function a(v){if(r<t.length){const j=t[r];return n.containerState=j[1],e.attempt(j[0].continuation,s,u)(v)}return u(v)}function s(v){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&T();const j=n.events.length;let R=j,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 q=j;for(;q<n.events.length;)n.events[q][1].end={...S},q++;return qe(n.events,R+1,0,n.events.slice(j)),n.events.length=q,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 H(v)?(e.consume(v),k(e.exit("chunkFlow")),r=0,n.interrupt=void 0,a):(e.consume(v),C)}function k(v,j){const R=n.sliceStream(v);if(j&&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 q=n.events.length;let E=q,U,y;for(;E--;)if(n.events[E][0]==="exit"&&n.events[E][1].type==="chunkFlow"){if(U){y=n.events[E][1].end;break}U=!0}for(x(r),S=q;S<n.events.length;)n.events[S][1].end={...y},S++;qe(n.events,E+1,0,n.events.slice(q)),n.events.length=S}}function x(v){let j=t.length;for(;j-- >v;){const R=t[j];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 is(e,n,t){return ie(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function It(e){if(e===null||ue(e)||bt(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:os,tokenize:ls};function os(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=We(u,[["enter",e[r][1],n],["exit",e[r][1],n]])),u=We(u,[["enter",i,n],["enter",o,n],["exit",o,n],["enter",l,n]]),u=We(u,un(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),u=We(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=We(u,[["enter",e[t][1],n],["exit",e[t][1],n]])):f=0,qe(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 ls(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=It(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=It(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 as={name:"autolink",tokenize:ss};function ss(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 Me(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):Ka(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 qt={partial:!0,tokenize:us};function us(e,n,t){return r;function r(l){return ee(l)?ie(e,i,"linePrefix")(l):i(l)}function i(l){return l===null||H(l)?n(l):t(l)}}const Li={continuation:{tokenize:fs},exit:ps,name:"blockQuote",tokenize:cs};function cs(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 fs(e,n,t){const r=this;return i;function i(o){return ee(o)?ie(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 ps(e){e.exit("blockQuote")}const Ni={name:"characterEscape",tokenize:hs};function hs(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 Ja(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(l)}}const Pi={name:"characterReference",tokenize:ds};function ds(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=Za,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:gs},Mi={concrete:!0,name:"codeFenced",tokenize:ms};function ms(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 q=r.events[r.events.length-1];return l=q&&q[1].type==="linePrefix"?q[2].sliceSerialize(q[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)?ie(e,c,"whitespace")(S):c(S))}function c(S){return S===null||H(S)?(e.exit("codeFencedFence"),r.interrupt?n(S):e.check(Di,C,j)(S)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(S))}function h(S){return S===null||H(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(S)):ee(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ie(e,p,"whitespace")(S)):S===96&&S===a?t(S):(e.consume(S),h)}function p(S){return S===null||H(S)?c(S):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(S))}function b(S){return S===null||H(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,j,k)(S)}function k(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),x}function x(S){return l>0&&ee(S)?ie(e,T,"linePrefix",l+1)(S):T(S)}function T(S){return S===null||H(S)?e.check(Di,C,j)(S):(e.enter("codeFlowValue"),v(S))}function v(S){return S===null||H(S)?(e.exit("codeFlowValue"),T(S)):(e.consume(S),v)}function j(S){return e.exit("codeFenced"),n(S)}function R(S,q,E){let U=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)?ie(S,N,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):N(L)}function N(L){return L===a?(S.enter("codeFencedFenceSequence"),G(L)):E(L)}function G(L){return L===a?(U++,S.consume(L),G):U>=o?(S.exit("codeFencedFenceSequence"),ee(L)?ie(S,M,"whitespace")(L):M(L)):E(L)}function M(L){return L===null||H(L)?(S.exit("codeFencedFence"),q(L)):E(L)}}}function gs(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:ys},bs={partial:!0,tokenize:ks};function ys(e,n,t){const r=this;return i;function i(u){return e.enter("codeIndented"),ie(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):H(u)?e.attempt(bs,o,s)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||H(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),a)}function s(u){return e.exit("codeIndented"),n(u)}}function ks(e,n,t){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?t(o):H(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):ie(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):H(o)?i(o):t(o)}}const xs={name:"codeText",previous:Ss,resolve:ws,tokenize:Cs};function ws(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 Ss(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Cs(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)):H(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||H(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 vs{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&&Wt(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),Wt(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Wt(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);Wt(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);Wt(this.left,t.reverse())}}}function Wt(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 zi(e){const n={};let t=-1,r,i,l,o,a,s,u;const f=new vs(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,Es(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 qe(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!u}function Es(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 Ts={resolve:_s,tokenize:Is},As={partial:!0,tokenize:Ls};function _s(e){return zi(e),e}function Is(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):H(a)?e.check(As,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 Ls(e,n,t){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),ie(e,l,"linePrefix")}function l(o){if(o===null||H(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||H(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||ue(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):H(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||H(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):H(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),ie(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===o||h===null||H(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 Gt(e,n){let t;return r;function r(i){return H(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):ee(i)?ie(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const Ns={name:"definition",tokenize:Ds},Ps={partial:!0,tokenize:Ms};function Ds(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=Ge(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 ue(p)?Gt(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)?ie(e,h,"whitespace")(p):h(p)}function h(p){return p===null||H(p)?(e.exit("definition"),r.parser.defined.push(i),n(p)):t(p)}}function Ms(e,n,t){return r;function r(a){return ue(a)?Gt(e,i)(a):t(a)}function i(a){return Fi(e,l,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function l(a){return ee(a)?ie(e,o,"whitespace")(a):o(a)}function o(a){return a===null||H(a)?n(a):t(a)}}const zs={name:"hardBreakEscape",tokenize:Os};function Os(e,n,t){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return H(l)?(e.exit("hardBreakEscape"),n(l)):t(l)}}const Rs={name:"headingAtx",resolve:Fs,tokenize:Bs};function Fs(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"},qe(e,r,t-r+1,[["enter",i,n],["enter",l,n],["exit",l,n],["exit",i,n]])),e}function Bs(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||ue(f)?(e.exit("atxHeadingSequence"),a(f)):t(f)}function a(f){return f===35?(e.enter("atxHeadingSequence"),s(f)):f===null||H(f)?(e.exit("atxHeading"),n(f)):ee(f)?ie(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||ue(f)?(e.exit("atxHeadingText"),a(f)):(e.consume(f),u)}}const $s=["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"],js={concrete:!0,name:"htmlFlow",resolveTo:Vs,tokenize:qs},Hs={partial:!0,tokenize:Gs},Us={partial:!0,tokenize:Ws};function Vs(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 qs(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):Me(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):Me(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 de="CDATA[";return m===de.charCodeAt(a++)?(e.consume(m),a===de.length?r.interrupt?n:N:b):t(m)}function C(m){return Me(m)?(e.consume(m),o=String.fromCharCode(m),k):t(m)}function k(m){if(m===null||m===47||m===62||ue(m)){const de=m===47,ae=o.toLowerCase();return!de&&!l&&Bi.includes(ae)?(i=1,r.interrupt?n(m):N(m)):$s.includes(o.toLowerCase())?(i=6,de?(e.consume(m),x):r.interrupt?n(m):N(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:N):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||Me(m)?(e.consume(m),j):ee(m)?(e.consume(m),v):y(m)}function j(m){return m===45||m===46||m===58||m===95||Pe(m)?(e.consume(m),j):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,q):ee(m)?(e.consume(m),S):E(m)}function q(m){return m===s?(e.consume(m),s=null,U):m===null||H(m)?t(m):(e.consume(m),q)}function E(m){return m===null||m===34||m===39||m===47||m===60||m===61||m===62||m===96||ue(m)?R(m):(e.consume(m),E)}function U(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||H(m)?N(m):ee(m)?(e.consume(m),D):t(m)}function N(m){return m===45&&i===2?(e.consume(m),V):m===60&&i===1?(e.consume(m),ne):m===62&&i===4?(e.consume(m),ke):m===63&&i===3?(e.consume(m),d):m===93&&i===5?(e.consume(m),Ee):H(m)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Hs,xe,G)(m)):m===null||H(m)?(e.exit("htmlFlowData"),G(m)):(e.consume(m),N)}function G(m){return e.check(Us,M,xe)(m)}function M(m){return e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),L}function L(m){return m===null||H(m)?G(m):(e.enter("htmlFlowData"),N(m))}function V(m){return m===45?(e.consume(m),d):N(m)}function ne(m){return m===47?(e.consume(m),o="",he):N(m)}function he(m){if(m===62){const de=o.toLowerCase();return Bi.includes(de)?(e.consume(m),ke):N(m)}return Me(m)&&o.length<8?(e.consume(m),o+=String.fromCharCode(m),he):N(m)}function Ee(m){return m===93?(e.consume(m),d):N(m)}function d(m){return m===62?(e.consume(m),ke):m===45&&i===2?(e.consume(m),d):N(m)}function ke(m){return m===null||H(m)?(e.exit("htmlFlowData"),xe(m)):(e.consume(m),ke)}function xe(m){return e.exit("htmlFlow"),n(m)}}function Ws(e,n,t){const r=this;return i;function i(o){return H(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 Gs(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(qt,n,t)}}const Ys={name:"htmlText",tokenize:Xs};function Xs(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):Me(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):Me(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):H(d)?(o=c,ne(d)):(e.consume(d),c)}function h(d){return d===45?(e.consume(d),p):c(d)}function p(d){return d===62?V(d):d===45?h(d):c(d)}function b(d){const ke="CDATA[";return d===ke.charCodeAt(l++)?(e.consume(d),l===ke.length?C:b):t(d)}function C(d){return d===null?t(d):d===93?(e.consume(d),k):H(d)?(o=C,ne(d)):(e.consume(d),C)}function k(d){return d===93?(e.consume(d),x):C(d)}function x(d){return d===62?V(d):d===93?(e.consume(d),x):C(d)}function T(d){return d===null||d===62?V(d):H(d)?(o=T,ne(d)):(e.consume(d),T)}function v(d){return d===null?t(d):d===63?(e.consume(d),j):H(d)?(o=v,ne(d)):(e.consume(d),v)}function j(d){return d===62?V(d):v(d)}function R(d){return Me(d)?(e.consume(d),S):t(d)}function S(d){return d===45||Pe(d)?(e.consume(d),S):q(d)}function q(d){return H(d)?(o=q,ne(d)):ee(d)?(e.consume(d),q):V(d)}function E(d){return d===45||Pe(d)?(e.consume(d),E):d===47||d===62||ue(d)?U(d):t(d)}function U(d){return d===47?(e.consume(d),V):d===58||d===95||Me(d)?(e.consume(d),y):H(d)?(o=U,ne(d)):ee(d)?(e.consume(d),U):V(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),N):H(d)?(o=D,ne(d)):ee(d)?(e.consume(d),D):U(d)}function N(d){return d===null||d===60||d===61||d===62||d===96?t(d):d===34||d===39?(e.consume(d),i=d,G):H(d)?(o=N,ne(d)):ee(d)?(e.consume(d),N):(e.consume(d),M)}function G(d){return d===i?(e.consume(d),i=void 0,L):d===null?t(d):H(d)?(o=G,ne(d)):(e.consume(d),G)}function M(d){return d===null||d===34||d===39||d===60||d===61||d===96?t(d):d===47||d===62||ue(d)?U(d):(e.consume(d),M)}function L(d){return d===47||d===62||ue(d)?U(d):t(d)}function V(d){return d===62?(e.consume(d),e.exit("htmlTextData"),e.exit("htmlText"),n):t(d)}function ne(d){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),he}function he(d){return ee(d)?ie(e,Ee,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d):Ee(d)}function Ee(d){return e.enter("htmlTextData"),o(d)}}const er={name:"labelEnd",resolveAll:Js,resolveTo:eu,tokenize:tu},Qs={tokenize:nu},Ks={tokenize:ru},Zs={tokenize:iu};function Js(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&&qe(e,0,e.length,t),e}function eu(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=We(a,e.slice(l+1,l+r+3)),a=We(a,[["enter",f,n]]),a=We(a,un(n.parser.constructs.insideSpan.null,e.slice(l+r+4,o-3),n)),a=We(a,[["exit",f,n],e[o-2],e[o-1],["exit",u,n]]),a=We(a,e.slice(o+1)),a=We(a,[["exit",s,n]]),qe(e,l,e.length,a),e}function tu(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(Ge(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(Ks,f,o?u:c)(h):o?f(h):c(h)}function u(h){return e.attempt(Zs,f,c)(h)}function f(h){return n(h)}function c(h){return l._balanced=!0,t(h)}}function nu(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 ue(c)?Gt(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 ue(c)?Gt(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 ue(c)?Gt(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 ru(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(Ge(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(a):t(a)}function o(a){return t(a)}}function iu(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 ou={name:"labelStartImage",resolveAll:er.resolveAll,tokenize:lu};function lu(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 au={name:"labelStartLink",resolveAll:er.resolveAll,tokenize:su};function su(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:uu};function uu(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),ie(e,n,"linePrefix")}}const cn={name:"thematicBreak",tokenize:cu};function cu(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||H(u))?(e.exit("thematicBreak"),n(u)):t(u)}function s(u){return u===i?(e.consume(u),r++,s):(e.exit("thematicBreakSequence"),ee(u)?ie(e,a,"whitespace")(u):a(u))}}const Be={continuation:{tokenize:du},exit:gu,name:"list",tokenize:hu},fu={partial:!0,tokenize:bu},pu={partial:!0,tokenize:mu};function hu(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(qt,r.interrupt?t:f,e.attempt(fu,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 du(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(qt,i,l);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ie(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(pu,n,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,ie(e,e.attempt(Be,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function mu(e,n,t){const r=this;return ie(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 gu(e){e.exit(this.containerState.type)}function bu(e,n,t){const r=this;return ie(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:yu,tokenize:ku};function yu(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 ku(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)?ie(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||H(u)?(e.exit("setextHeadingLine"),n(u)):t(u)}}const xu={tokenize:wu};function wu(e){const n=this,t=e.attempt(qt,r,e.attempt(this.parser.constructs.flowInitial,i,ie(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Ts,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 Su={resolveAll:Hi()},Cu=ji("string"),vu=ji("text");function ji(e){return{resolveAll:Hi(e==="text"?Eu: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 Eu(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 Tu=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:Ns},disable:{null:[]},document:{42:Be,43:Be,45:Be,48:Be,49:Be,50:Be,51:Be,52:Be,53:Be,54:Be,55:Be,56:Be,57:Be,62:Li},flow:{35:Rs,42:cn,45:[$i,cn],60:js,61:$i,95:cn,96:Mi,126:Mi},flowInitial:{[-2]:Jn,[-1]:Jn,32:Jn},insideSpan:{null:[Zn,Su]},string:{38:Pi,92:Ni},text:{[-5]:tr,[-4]:tr,[-3]:tr,33:ou,38:Pi,42:Zn,60:[as,Ys],91:au,92:[zs,Ni],93:er,95:Zn,96:xs}},Symbol.toStringTag,{value:"Module"}));function Au(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:q(R),check:q(S),consume:T,enter:v,exit:j,interrupt:q(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=We(o,D),k(),o[o.length-1]!==null?[]:(E(n,0),u.events=un(l,u.events,u),u.events)}function h(D,N){return Iu(p(D),N)}function p(D){return _u(o,D)}function b(){const{_bufferIndex:D,_index:N,line:G,column:M,offset:L}=r;return{_bufferIndex:D,_index:N,line:G,column:M,offset:L}}function C(D){i[D.line]=D.column,y()}function k(){let D;for(;r._index<o.length;){const N=o[r._index];if(typeof N=="string")for(D=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===D&&r._bufferIndex<N.length;)x(N.charCodeAt(r._bufferIndex));else x(N)}}function x(D){f=f(D)}function T(D){H(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,N){const G=N||{};return G.type=D,G.start=b(),u.events.push(["enter",G,u]),a.push(G),G}function j(D){const N=a.pop();return N.end=b(),u.events.push(["exit",N,u]),N}function R(D,N){E(D,N.from)}function S(D,N){N.restore()}function q(D,N){return G;function G(M,L,V){let ne,he,Ee,d;return Array.isArray(M)?xe(M):"tokenize"in M?xe([M]):ke(M);function ke(te){return $e;function $e(ze){const se=ze!==null&&te[ze],je=ze!==null&&te.null,oe=[...Array.isArray(se)?se:se?[se]:[],...Array.isArray(je)?je:je?[je]:[]];return xe(oe)(ze)}}function xe(te){return ne=te,he=0,te.length===0?V:m(te[he])}function m(te){return $e;function $e(ze){return d=U(),Ee=te,te.partial||(u.currentConstruct=te),te.name&&u.parser.constructs.disable.null.includes(te.name)?ae():te.tokenize.call(N?Object.assign(Object.create(u),N):u,s,de,ae)(ze)}}function de(te){return D(Ee,d),L}function ae(te){return d.restore(),++he<ne.length?m(ne[he]):V}}}function E(D,N){D.resolveAll&&!l.includes(D)&&l.push(D),D.resolve&&qe(u.events,N,u.events.length-N,D.resolve(u.events.slice(N),u)),D.resolveTo&&(u.events=D.resolveTo(u.events,u))}function U(){const D=b(),N=u.previous,G=u.currentConstruct,M=u.events.length,L=Array.from(a);return{from:M,restore:V};function V(){r=D,u.previous=N,u.currentConstruct=G,u.events.length=M,a=L,y()}}function y(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function _u(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 Iu(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 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
|
|
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
|
|
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 Lu(e){const r={constructs:Ti([Tu,...(e||{}).extensions||[]]),content:i(es),defined:[],document:i(ns),flow:i(xu),lazy:{},string:i(Cu),text:i(vu)};return r;function i(l){return o;function o(a){return Au(r,l,a)}}}function Nu(e){for(;!zi(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 Du=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Mu(e){return e.replace(Du,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 Ou(e,n,t){return n&&typeof n=="object"&&(t=n,n=void 0),Ru(t)(Nu(Lu(t).document().write(Pu()(e,n,!0))))}function Ru(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(en),autolinkProtocol:U,autolinkEmail:U,atxHeading:l(rt),blockQuote:l(je),characterEscape:U,characterReference:U,codeFenced:l(oe),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:l(oe,o),codeText:l(ge,o),codeTextData:U,data:U,codeFlowValue:U,definition:l(fe),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:l(He),hardBreakEscape:l(dt),hardBreakTrailing:l(dt),htmlFlow:l(Tn,o),htmlFlowData:U,htmlText:l(Tn,o),htmlTextData:U,image:l(zr),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(rt),strong:l(B),thematicBreak:l(Y)},exit:{atxHeading:s(),atxHeadingSequence:R,autolink:s(),autolinkEmail:se,autolinkProtocol:ze,blockQuote:s(),characterEscapeValue:y,characterReferenceMarkerHexadecimal:ae,characterReferenceMarkerNumeric:ae,characterReferenceValue:te,characterReference:$e,codeFenced:s(k),codeFencedFence:C,codeFencedFenceInfo:p,codeFencedFenceMeta:b,codeFlowValue:y,codeIndented:s(x),codeText:s(L),codeTextData:y,data:y,definition:s(),definitionDestinationString:j,definitionLabelString:T,definitionTitleString:v,emphasis:s(),hardBreakEscape:s(N),hardBreakTrailing:s(N),htmlFlow:s(G),htmlFlowData:y,htmlText:s(M),htmlTextData:y,image:s(ne),label:Ee,labelText:he,lineEnding:D,link:s(V),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:de,resourceDestinationString:d,resourceTitleString:ke,resource:xe,setextHeading:s(E),setextHeadingLineSequence:q,setextHeadingText:S,strong:s(),thematicBreak:s()}};qi(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(w){let A={type:"root",children:[]};const W={stack:[A],tokenStack:[],config:n,enter:a,exit:u,buffer:o,resume:f,data:t},Z=[];let le=-1;for(;++le<w.length;)if(w[le][1].type==="listOrdered"||w[le][1].type==="listUnordered")if(w[le][0]==="enter")Z.push(le);else{const _e=Z.pop();le=i(w,_e,le)}for(le=-1;++le<w.length;){const _e=n[w[le][0]];Vi.call(_e,w[le][1].type)&&_e[w[le][1].type].call(Object.assign({sliceSerialize:w[le][2].sliceSerialize},W),w[le][1])}if(W.tokenStack.length>0){const _e=W.tokenStack[W.tokenStack.length-1];(_e[1]||Wi).call(W,void 0,_e[0])}for(A.position={start:ct(w.length>0?w[0][1].start:{line:1,column:1,offset:0}),end:ct(w.length>0?w[w.length-2][1].end:{line:1,column:1,offset:0})},le=-1;++le<n.transforms.length;)A=n.transforms[le](A)||A;return A}function i(w,A,W){let Z=A-1,le=-1,_e=!1,it,Ye,St,Ze;for(;++Z<=W;){const Ce=w[Z];switch(Ce[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ce[0]==="enter"?le++:le--,Ze=void 0;break}case"lineEndingBlank":{Ce[0]==="enter"&&(it&&!Ze&&!le&&!St&&(St=Z),Ze=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ze=void 0}if(!le&&Ce[0]==="enter"&&Ce[1].type==="listItemPrefix"||le===-1&&Ce[0]==="exit"&&(Ce[1].type==="listUnordered"||Ce[1].type==="listOrdered")){if(it){let mt=Z;for(Ye=void 0;mt--;){const Xe=w[mt];if(Xe[1].type==="lineEnding"||Xe[1].type==="lineEndingBlank"){if(Xe[0]==="exit")continue;Ye&&(w[Ye][1].type="lineEndingBlank",_e=!0),Xe[1].type="lineEnding",Ye=mt}else if(!(Xe[1].type==="linePrefix"||Xe[1].type==="blockQuotePrefix"||Xe[1].type==="blockQuotePrefixWhitespace"||Xe[1].type==="blockQuoteMarker"||Xe[1].type==="listItemIndent"))break}St&&(!Ye||St<Ye)&&(it._spread=!0),it.end=Object.assign({},Ye?w[Ye][1].start:Ce[1].end),w.splice(Ye||Z,0,["exit",it,Ce[2]]),Z++,W++}if(Ce[1].type==="listItemPrefix"){const mt={type:"listItem",_spread:!1,start:Object.assign({},Ce[1].start),end:void 0};it=mt,w.splice(Z,0,["enter",mt,Ce[2]]),Z++,W++,St=void 0,Ze=!0}}}return w[A][1]._spread=_e,W}function l(w,A){return W;function W(Z){a.call(this,w(Z),Z),A&&A.call(this,Z)}}function o(){this.stack.push({type:"fragment",children:[]})}function a(w,A,W){this.stack[this.stack.length-1].children.push(w),this.stack.push(w),this.tokenStack.push([A,W||void 0]),w.position={start:ct(A.start),end:void 0}}function s(w){return A;function A(W){w&&w.call(this,W),u.call(this,W)}}function u(w,A){const W=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+"` ("+Ut({start:w.start,end:w.end})+"): it’s not open");W.position.end=ct(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(),W=this.stack[this.stack.length-1];W.label=A,W.identifier=Ge(this.sliceSerialize(w)).toLowerCase()}function v(){const w=this.resume(),A=this.stack[this.stack.length-1];A.title=w}function j(){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 W=this.sliceSerialize(w).length;A.depth=W}}function S(){this.data.setextHeadingSlurpLineEnding=!0}function q(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 U(w){const W=this.stack[this.stack.length-1].children;let Z=W[W.length-1];(!Z||Z.type!=="text")&&(Z=re(),Z.position={start:ct(w.start),end:void 0},W.push(Z)),this.stack.push(Z)}function y(w){const A=this.stack.pop();A.value+=this.sliceSerialize(w),A.position.end=ct(w.end)}function D(w){const A=this.stack[this.stack.length-1];if(this.data.atHardBreak){const W=A.children[A.children.length-1];W.position.end=ct(w.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(A.type)&&(U.call(this,w),y.call(this,w))}function N(){this.data.atHardBreak=!0}function G(){const w=this.resume(),A=this.stack[this.stack.length-1];A.value=w}function M(){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 V(){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 ne(){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 he(w){const A=this.sliceSerialize(w),W=this.stack[this.stack.length-2];W.label=Mu(A),W.identifier=Ge(A).toLowerCase()}function Ee(){const w=this.stack[this.stack.length-1],A=this.resume(),W=this.stack[this.stack.length-1];if(this.data.inReference=!0,W.type==="link"){const Z=w.children;W.children=Z}else W.alt=A}function d(){const w=this.resume(),A=this.stack[this.stack.length-1];A.url=w}function ke(){const w=this.resume(),A=this.stack[this.stack.length-1];A.title=w}function xe(){this.data.inReference=void 0}function m(){this.data.referenceType="collapsed"}function de(w){const A=this.resume(),W=this.stack[this.stack.length-1];W.label=A,W.identifier=Ge(this.sliceSerialize(w)).toLowerCase(),this.data.referenceType="full"}function ae(w){this.data.characterReferenceType=w.type}function te(w){const A=this.sliceSerialize(w),W=this.data.characterReferenceType;let Z;W?(Z=Ai(A,W==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Z=Qn(A);const le=this.stack[this.stack.length-1];le.value+=Z}function $e(w){const A=this.stack.pop();A.position.end=ct(w.end)}function ze(w){y.call(this,w);const A=this.stack[this.stack.length-1];A.url=this.sliceSerialize(w)}function se(w){y.call(this,w);const A=this.stack[this.stack.length-1];A.url="mailto:"+this.sliceSerialize(w)}function je(){return{type:"blockquote",children:[]}}function oe(){return{type:"code",lang:null,meta:null,value:""}}function ge(){return{type:"inlineCode",value:""}}function fe(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function He(){return{type:"emphasis",children:[]}}function rt(){return{type:"heading",depth:0,children:[]}}function dt(){return{type:"break"}}function Tn(){return{type:"html",value:""}}function zr(){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 re(){return{type:"text",value:""}}function Y(){return{type:"thematicBreak"}}}function ct(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):Fu(e,r)}}function Fu(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+"` ("+Ut({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Ut({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Ut({start:n.start,end:n.end})+") is still open")}function Bu(e){const n=this;n.parser=t;function t(r){return Ou(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function $u(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 ju(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:`
|
|
5
|
+
`}]}function Hu(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 Uu(e,n){const t={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Vu(e,n){const t={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function qu(e,n){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(n.identifier).toUpperCase(),i=_t(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 Wu(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 Gu(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 Yu(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return Gi(e,n);const i={src:_t(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 Xu(e,n){const t={src:_t(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 Ku(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return Gi(e,n);const i={href:_t(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 Zu(e,n){const t={href:_t(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 Ju(e,n,t){const r=e.all(n),i=t?ec(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
|
|
8
|
+
`});const u={type:"element",tagName:"li",properties:l,children:o};return e.patch(n,u),e.applyData(n,u)}function ec(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 tc(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 nc(e,n){const t={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function rc(e,n){const t={type:"root",children:e.wrap(e.all(n))};return e.patch(n,t),e.applyData(n,t)}function ic(e,n){const t={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function oc(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 lc(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 ac(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 sc(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 uc(e,n){const t={type:"text",value:sc(String(n.value))};return e.patch(n,t),e.applyData(n,t)}function cc(e,n){const t={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,t),e.applyData(n,t)}const fc={blockquote:$u,break:ju,code:Hu,delete:Uu,emphasis:Vu,footnoteReference:qu,heading:Wu,html:Gu,imageReference:Yu,image:Xu,inlineCode:Qu,linkReference:Ku,link:Zu,listItem:Ju,list:tc,paragraph:nc,root:rc,strong:ic,table:oc,tableCell:ac,tableRow:lc,text:uc,thematicBreak:cc,toml:fn,yaml:fn,definition:fn,footnoteDefinition:fn};function fn(){}const Zi=-1,pn=0,Yt=1,hn=2,nr=3,rr=4,ir=5,or=6,Ji=7,eo=8,to=typeof self=="object"?self:globalThis,pc=(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 Yt:{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=>pc(new Map,e)(0),Lt="",{toString:hc}={},{keys:dc}=Object,Xt=e=>{const n=typeof e;if(n!=="object"||!e)return[pn,n];const t=hc.call(e).slice(8,-1);switch(t){case"Array":return[Yt,Lt];case"Object":return[hn,Lt];case"Date":return[nr,Lt];case"RegExp":return[rr,Lt];case"Map":return[ir,Lt];case"Set":return[or,Lt];case"DataView":return[Yt,t]}return t.includes("Array")?[Yt,t]:t.includes("Error")?[Ji,t]:[hn,t]},dn=([e,n])=>e===pn&&(n==="function"||n==="symbol"),mc=(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]=Xt(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 Yt:{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 dc(o))(e||!dn(Xt(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(Xt(h))||dn(Xt(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(Xt(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 mc(!(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 gc(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 bc(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function yc(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",t=e.options.footnoteBackContent||gc,r=e.options.footnoteBackLabel||bc,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=_t(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 gn=(function(e){if(e==null)return
|
|
10
|
+
`}]}}const gn=(function(e){if(e==null)return Sc;if(typeof e=="function")return bn(e);if(typeof e=="object")return Array.isArray(e)?kc(e):xc(e);if(typeof e=="string")return wc(e);throw new Error("Expected function, string, or object as test")});function kc(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 xc(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 wc(e){return bn(n);function n(t){return t&&t.type===e}}function bn(e){return n;function n(t,r,i){return!!(Cc(t)&&e.call(this,t,typeof r=="number"?r:void 0,i||void 0))}}function Sc(){return!0}function Cc(e){return e!==null&&typeof e=="object"&&"type"in e}function Mm(e){return e}const io=[],vc=!0,lr=!1,Ec="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=Tc(t(s,f)),p[0]===lr))return p;if("children"in s&&s.children){const x=s;if(x.children&&p[0]!==Ec)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 Tc(e){return Array.isArray(e)?e:typeof e=="number"?[vc,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,Ac={};function _c(e,n){const t=n||Ac,r=new Map,i=new Map,l=new Map,o={...fc,...t.handlers},a={all:u,applyData:Lc,definitionById:r,footnoteById:i,footnoteCounts:l,footnoteOrder:[],handlers:o,one:s,options:t,patch:Ic,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||Nc)(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 Ic(e,n){e.position&&(n.position=Ta(e))}function Lc(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 Nc(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 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=
|
|
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:
|
|
16
|
-
`)}function
|
|
17
|
-
`&&
|
|
18
|
-
`}function
|
|
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=_c(e,n),r=t.one(e,void 0),i=yc(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 Dc(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 Mc(){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=Mc();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 Oc(){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?Rc(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 Rc(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 Qe={basename:Fc,dirname:Bc,extname:$c,join:jc,sep:"/"};function Fc(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');Qt(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 Bc(e){if(Qt(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 $c(e){Qt(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 jc(...e){let n=-1,t;for(;++n<e.length;)Qt(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":Hc(t)}function Hc(e){Qt(e);const n=e.codePointAt(0)===47;let t=Uc(e,!n);return t.length===0&&!n&&(t="."),t.length>0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function Uc(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 Qt(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Vc={cwd:qc};function qc(){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 Wc(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 Gc(e)}function Gc(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"||Yc(n)?t={value:n}:t=n:t={},this.cwd="cwd"in t?"":Vc.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"?Qe.basename(this.path):void 0}set basename(n){mr(n,"basename"),dr(n,"basename"),this.path=Qe.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?Qe.dirname(this.path):void 0}set dirname(n){fo(this.basename,"dirname"),this.path=Qe.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?Qe.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=Qe.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){pr(n)&&(n=Wc(n)),mr(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?Qe.basename(this.path,this.extname):void 0}set stem(n){mr(n,"stem"),dr(n,"stem"),this.path=Qe.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 Ne(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(Qe.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+Qe.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 Yc(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Xc=(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 gr extends Xc{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=Oc()}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):Qc.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);Jc(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 Kc=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 Zc(e)?e:new co(e)}function Zc(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Jc(e){return typeof e=="string"||ef(e)}function ef(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const tf="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",mo=[],go={allowDangerousHtml:!0},nf=/^(https?|ircs?|mailto|xmpp)$/i,rf=[{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 of(e){const n=lf(e),t=af(e);return sf(n.runSync(n.parse(t),t),e)}function lf(e){const n=e.rehypePlugins||mo,t=e.remarkPlugins||mo,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...go}:go;return Kc().use(Bu).use(t).use(Dc,r).use(n)}function af(e){const n=e.children||"",t=new co;return typeof n=="string"&&(t.value=n),t}function sf(e,n){const t=n.allowedElements,r=n.allowElement,i=n.components,l=n.disallowedElements,o=n.skipHtml,a=n.unwrapDisallowed,s=n.urlTransform||uf;for(const f of rf)Object.hasOwn(n,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+tf+f.id,void 0);return ar(e,u),Na(e,{Fragment:P.Fragment,components:i,ignoreInvalidStyle:!0,jsx:P.jsx,jsxs:P.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 uf(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||nf.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 cf(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function ff(e,n,t){const i=gn((t||{}).ignore||[]),l=pf(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 j=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=j+1:(b!==j&&T.push({type:"text",value:u.value.slice(b,j)}),Array.isArray(S)?T.push(...S):S&&T.push(S),b=j+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 pf(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([hf(i[0]),df(i[1])])}return n}function hf(e){return typeof e=="string"?new RegExp(cf(e),"g"):e}function df(e){return typeof e=="function"?e:function(){return e}}const xr="phrasing",wr=["autolink","link","image","label"];function mf(){return{transforms:[Sf],enter:{literalAutolink:bf,literalAutolinkEmail:Sr,literalAutolinkHttp:Sr,literalAutolinkWww:Sr},exit:{literalAutolink:wf,literalAutolinkEmail:xf,literalAutolinkHttp:yf,literalAutolinkWww:kf}}}function gf(){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 bf(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Sr(e){this.config.enter.autolinkProtocol.call(this,e)}function yf(e){this.config.exit.autolinkProtocol.call(this,e)}function kf(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 xf(e){this.config.exit.autolinkEmail.call(this,e)}function wf(e){this.exit(e)}function Sf(e){ff(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Cf],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),vf]],{ignore:["link","linkReference"]})}function Cf(e,n,t,r,i){let l="";if(!yo(i)||(/^w/i.test(n)&&(t=n+t,n="",l="http://"),!Ef(t)))return!1;const o=Tf(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 vf(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 Ef(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 Tf(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||bt(t)||sn(t))&&(!n||t!==47)}ko.peek=zf;function Af(){this.buffer()}function _f(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function If(){this.buffer()}function Lf(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Nf(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=Ge(this.sliceSerialize(e)).toLowerCase(),t.label=n}function Pf(e){this.exit(e)}function Df(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=Ge(this.sliceSerialize(e)).toLowerCase(),t.label=n}function Mf(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 Of(){return{enter:{gfmFootnoteCallString:Af,gfmFootnoteCall:_f,gfmFootnoteDefinitionLabelString:If,gfmFootnoteDefinition:Lf},exit:{gfmFootnoteCallString:Nf,gfmFootnoteCall:Pf,gfmFootnoteDefinitionLabelString:Df,gfmFootnoteDefinition:Mf}}}function Rf(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:Ff))),u(),s}}function Ff(e,n,t){return n===0?e:xo(e,n,t)}function xo(e,n,t){return(t?"":" ")+e}const Bf=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];wo.peek=Vf;function $f(){return{canContainEols:["delete"],enter:{strikethrough:Hf},exit:{strikethrough:Uf}}}function jf(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Bf}],handlers:{delete:wo}}}function Hf(e){this.enter({type:"delete",children:[]},e)}function Uf(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 Vf(){return"~"}function qf(e){return e.length}function Wf(e,n){const t=n||{},r=(t.align||[]).concat(),i=t.stringLength||qf,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=Gf(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="",j="";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),j=" ".repeat(R/2-.5)):(v=" ".repeat(R/2),j=v):j=" ".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(j),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 Gf(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 Yf(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()),Xf);return i(),o}function Xf(e,n,t){return">"+(t?"":" ")+e}function Qf(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
|
+
`&&Qf(t.stack,t.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
18
|
+
`}function Kf(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 Zf(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 Jf(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 ep(e,n,t,r){const i=Jf(t),l=e.value||"",o=i==="`"?"GraveAccent":"Tilde";if(Zf(e,t)){const c=t.enter("codeIndented"),h=t.indentLines(l,tp);return c(),h}const a=t.createTracker(r),s=i.repeat(Math.max(Kf(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
|
|
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
|
|
21
|
+
`)),f+=a.move(s),u(),f}function tp(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 np(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 rp(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 Kt(e){return"&#x"+e.toString(16).toUpperCase()+";"}function kn(e,n,t){const r=It(e),i=It(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=ip;function Eo(e,n,t,r){const i=rp(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=Kt(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)+Kt(c));const p=o.move(i);return l(),t.attentionEncodeSurroundingInfo={after:h.outside,before:f.outside},a+s+p}function ip(e,n,t){return t.options.emphasis||"*"}function op(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 lp(e,n,t,r){const i=Math.max(Math.min(6,e.depth||1),1),l=t.createTracker(r);if(op(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=
|
|
27
|
+
`,...l.current()});return/^[\t ]/.test(u)&&(u=Kt(u.charCodeAt(0))+u.slice(1)),u=u?o+" "+u:o,t.options.closeAtx&&(u+=" "+o),s(),a(),u}To.peek=ap;function To(e){return e.value||""}function ap(){return"<"}Ao.peek=sp;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 sp(){return"!"}_o.peek=up;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 up(){return"!"}Io.peek=cp;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 cp(){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))}No.peek=fp;function No(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 fp(e,n,t){return Lo(e,t)?"<":"["}Po.peek=pp;function Po(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 pp(){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 hp(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 dp(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 mp(e,n,t,r){const i=t.enter("list"),l=t.bulletCurrent;let o=e.ordered?dp(t):vr(t);const a=e.ordered?o==="."?")":".":hp(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 gp(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 bp(e,n,t,r){const i=gp(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 yp(e,n,t,r){const i=t.enter("paragraph"),l=t.enter("phrasing"),o=t.containerPhrasing(e,r);return l(),i(),o}const kp=gn(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function xp(e,n,t,r){return(e.children.some(function(o){return kp(o)})?t.containerPhrasing:t.containerFlow).call(t,e,r)}function wp(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}Mo.peek=Sp;function Mo(e,n,t,r){const i=wp(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=Kt(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)+Kt(c));const p=o.move(i+i);return l(),t.attentionEncodeSurroundingInfo={after:h.outside,before:f.outside},a+s+p}function Sp(e,n,t){return t.options.strong||"*"}function Cp(e,n,t,r){return t.safe(e.value,r)}function vp(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 Ep(e,n,t){const r=(Do(t)+(t.options.ruleSpaces?" ":"")).repeat(vp(t));return t.options.ruleSpaces?r.slice(0,-1):r}const zo={blockquote:Yf,break:vo,code:ep,definition:np,emphasis:Eo,hardBreak:vo,heading:lp,html:To,image:Ao,imageReference:_o,inlineCode:Io,link:No,linkReference:Po,list:mp,listItem:bp,paragraph:yp,root:xp,strong:Mo,text:Cp,thematicBreak:Ep};function Tp(){return{enter:{table:Ap,tableData:Oo,tableHeader:Oo,tableRow:Ip},exit:{codeText:Lp,table:_p,tableData:Er,tableHeader:Er,tableRow:Er}}}function Ap(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 _p(e){this.exit(e),this.data.inTable=void 0}function Ip(e){this.enter({type:"tableRow",children:[]},e)}function Er(e){this.exit(e)}function Oo(e){this.enter({type:"tableCell",children:[]},e)}function Lp(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,Np));const t=this.stack[this.stack.length-1];t.type,t.value=n,this.exit(e)}function Np(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
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))}/**
|
|
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 Wf(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=zo.inlineCode(p,b,C);return C.stack.includes("tableCell")&&(k=k.replace(/\|/g,"\\$&")),k}}function Dp(){return{exit:{taskListCheckValueChecked:Ro,taskListCheckValueUnchecked:Ro,paragraph:zp}}}function Mp(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Op}}}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 Op(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=zo.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 Rp(){return[mf(),Of(),$f(),Tp(),Dp()]}function Fp(e){return{extensions:[gf(),Rf(e),jf(),Pp(e),Mp()]}}const Bp={tokenize:qp,partial:!0},Fo={tokenize:Wp,partial:!0},Bo={tokenize:Gp,partial:!0},$o={tokenize:Yp,partial:!0},$p={tokenize:Xp,partial:!0},jo={name:"wwwAutolink",tokenize:Up,previous:Uo},Ho={name:"protocolAutolink",tokenize:Vp,previous:Vo},tt={name:"emailAutolink",tokenize:Hp,previous:qo},Ke={};function jp(){return{text:Ke}}let yt=48;for(;yt<123;)Ke[yt]=tt,yt++,yt===58?yt=65:yt===91&&(yt=97);Ke[43]=tt,Ke[45]=tt,Ke[46]=tt,Ke[95]=tt,Ke[72]=[tt,Ho],Ke[104]=[tt,Ho],Ke[87]=[tt,jo],Ke[119]=[tt,jo];function Hp(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($p,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&&Me(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(c)):t(c)}}function Up(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(Bp,e.attempt(Fo,e.attempt(Bo,l),t),t)(o))}function l(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(o)}}function Vp(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(Me(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)||ue(c)||bt(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 qp(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 Wp(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||ue(u)||bt(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 Gp(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||ue(o)||bt(o)?n(o):(e.consume(o),i)}function l(o){return o===41&&r++,e.consume(o),i}}function Yp(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||ue(a)||bt(a)?n(a):t(a)}function i(a){return a===null||a===40||a===91||ue(a)||bt(a)?n(a):r(a)}function l(a){return Me(a)?o(a):t(a)}function o(a){return a===59?(e.consume(a),r):Me(a)?(e.consume(a),o):t(a)}}function Xp(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||ue(e)}function Vo(e){return!Me(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 Qp={tokenize:ih,partial:!0};function Kp(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:th,continuation:{tokenize:nh},exit:rh}},text:{91:{name:"gfmFootnoteCall",tokenize:eh},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Zp,resolveTo:Jp}}}}function Zp(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=Ge(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 Jp(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 eh(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||ue(c))return t(c);if(c===93){e.exit("chunkString");const h=e.exit("gfmFootnoteCallString");return i.includes(Ge(r.sliceSerialize(h)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):t(c)}return ue(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 th(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||ue(b))return t(b);if(b===93){e.exit("chunkString");const C=e.exit("gfmFootnoteDefinitionLabelString");return l=Ge(r.sliceSerialize(C)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return ue(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),ie(e,p,"gfmFootnoteDefinitionWhitespace")):t(b)}function p(b){return n(b)}}function nh(e,n,t){return e.check(qt,n,e.attempt(Qp,n,t))}function rh(e){e.exit("gfmFootnoteDefinition")}function ih(e,n,t){const r=this;return ie(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 oh(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&&qe(h,h.length,0,un(p,o.slice(u+1,s),a)),qe(h,h.length,0,[["exit",c,a],["enter",o[s][1],a],["exit",o[s][1],a],["exit",f,a]]),qe(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=It(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=It(b);return k._open=!x||x===2&&!!C,k._close=!C||C===2&&!!x,a(b)}}}class lh{constructor(){this.map=[]}add(n,t,r){ah(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 ah(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 sh(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 uh(){return{flow:{null:{name:"table",tokenize:ch,resolveAll:fh}}}}function ch(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 M=r.events[D][1].type;if(M==="lineEnding"||M==="linePrefix")D--;else break}const N=D>-1?r.events[D][1].type:null,G=N==="tableHead"||N==="tableRow"?S:s;return G===S&&r.parser.lazy[r.now().line]?t(y):G(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):H(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)?ie(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||ue(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)?ie(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)?ie(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||H(y)?j(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)?ie(e,j,"whitespace")(y):j(y)}function j(y){return y===124?b(y):y===null||H(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"),q(y)}function q(y){return y===124?(e.enter("tableCellDivider"),e.consume(y),e.exit("tableCellDivider"),q):y===null||H(y)?(e.exit("tableRow"),n(y)):ee(y)?ie(e,q,"whitespace")(y):(e.enter("data"),E(y))}function E(y){return y===null||y===124||ue(y)?(e.exit("data"),q(y)):(e.consume(y),y===92?U:E)}function U(y){return y===92||y===124?(e.consume(y),E):E(y)}}function fh(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 lh;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=sh(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({},Nt(n.events,t[0])),e.add(t[0],0,[["exit",l,n]]));const s=Nt(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=Nt(n.events,t[2]),f=Nt(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({},Nt(n.events,i)),e.add(i,0,[["exit",l,n]]),l=void 0),l}function Wo(e,n,t,r,i){const l=[],o=Nt(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 Nt(e,n){const t=e[n],r=t[0]==="enter"?"start":"end";return t[1][r]}const ph={name:"tasklistCheck",tokenize:dh};function hh(){return{text:{91:ph}}}function dh(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 ue(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 H(s)?n(s):ee(s)?e.check({tokenize:mh},n,t)(s):t(s)}}function mh(e,n,t){return ie(e,r,"whitespace");function r(i){return i===null?t(i):n(i)}}function gh(e){return Ti([jp(),Kp(),oh(e),uh(),hh()])}const bh={};function yh(e){const n=this,t=e||bh,r=n.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),l=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(gh(t)),l.push(Rp()),o.push(Fp(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
|
|
34
|
+
*/const kh=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),xh=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,t,r)=>r?r.toUpperCase():t.toLowerCase()),Go=e=>{const n=xh(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(),wh=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
|
|
39
|
+
*/var Sh={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
|
|
44
|
+
*/const Ch=Q.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:t=2,absoluteStrokeWidth:r,className:i="",children:l,iconNode:o,...a},s)=>Q.createElement("svg",{ref:s,...Sh,width:n,height:n,stroke:e,strokeWidth:r?Number(t)*24/Number(n):t,className:Yo("lucide",i),...!l&&!wh(a)&&{"aria-hidden":"true"},...a},[...o.map(([u,f])=>Q.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
|
|
49
|
+
*/const me=(e,n)=>{const t=Q.forwardRef(({className:r,...i},l)=>Q.createElement(Ch,{ref:l,iconNode:n,className:Yo(`lucide-${kh(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
|
|
54
|
+
*/const vh=me("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
|
|
59
|
+
*/const Xo=me("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
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 Eh=
|
|
64
|
+
*/const Eh=me("code",[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]]);/**
|
|
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 Th=
|
|
69
|
+
*/const Th=me("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"}]]);/**
|
|
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 Ah=
|
|
74
|
+
*/const Ah=me("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"}]]);/**
|
|
75
75
|
* @license lucide-react v0.511.0 - ISC
|
|
76
76
|
*
|
|
77
77
|
* This source code is licensed under the ISC license.
|
|
78
78
|
* See the LICENSE file in the root directory of this source tree.
|
|
79
|
-
*/const _h=
|
|
79
|
+
*/const _h=me("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"}]]);/**
|
|
80
80
|
* @license lucide-react v0.511.0 - ISC
|
|
81
81
|
*
|
|
82
82
|
* This source code is licensed under the ISC license.
|
|
83
83
|
* See the LICENSE file in the root directory of this source tree.
|
|
84
|
-
*/const Ih=
|
|
84
|
+
*/const Ih=me("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"}]]);/**
|
|
85
85
|
* @license lucide-react v0.511.0 - ISC
|
|
86
86
|
*
|
|
87
87
|
* This source code is licensed under the ISC license.
|
|
88
88
|
* See the LICENSE file in the root directory of this source tree.
|
|
89
|
-
*/const Lh=
|
|
89
|
+
*/const Lh=me("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"}]]);/**
|
|
90
90
|
* @license lucide-react v0.511.0 - ISC
|
|
91
91
|
*
|
|
92
92
|
* This source code is licensed under the ISC license.
|
|
93
93
|
* See the LICENSE file in the root directory of this source tree.
|
|
94
|
-
*/const
|
|
94
|
+
*/const Nh=me("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"}]]);/**
|
|
95
95
|
* @license lucide-react v0.511.0 - ISC
|
|
96
96
|
*
|
|
97
97
|
* This source code is licensed under the ISC license.
|
|
98
98
|
* See the LICENSE file in the root directory of this source tree.
|
|
99
|
-
*/const
|
|
99
|
+
*/const Ph=me("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"}]]);/**
|
|
100
100
|
* @license lucide-react v0.511.0 - ISC
|
|
101
101
|
*
|
|
102
102
|
* This source code is licensed under the ISC license.
|
|
103
103
|
* See the LICENSE file in the root directory of this source tree.
|
|
104
|
-
*/const Dh=
|
|
104
|
+
*/const Dh=me("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"}]]);/**
|
|
105
105
|
* @license lucide-react v0.511.0 - ISC
|
|
106
106
|
*
|
|
107
107
|
* This source code is licensed under the ISC license.
|
|
108
108
|
* See the LICENSE file in the root directory of this source tree.
|
|
109
|
-
*/const
|
|
109
|
+
*/const Mh=me("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"}]]);/**
|
|
110
110
|
* @license lucide-react v0.511.0 - ISC
|
|
111
111
|
*
|
|
112
112
|
* This source code is licensed under the ISC license.
|
|
113
113
|
* See the LICENSE file in the root directory of this source tree.
|
|
114
|
-
*/const
|
|
114
|
+
*/const zh=me("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"}]]);/**
|
|
115
115
|
* @license lucide-react v0.511.0 - ISC
|
|
116
116
|
*
|
|
117
117
|
* This source code is licensed under the ISC license.
|
|
118
118
|
* See the LICENSE file in the root directory of this source tree.
|
|
119
|
-
*/const Oh=
|
|
119
|
+
*/const Oh=me("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"}]]);/**
|
|
120
120
|
* @license lucide-react v0.511.0 - ISC
|
|
121
121
|
*
|
|
122
122
|
* This source code is licensed under the ISC license.
|
|
123
123
|
* See the LICENSE file in the root directory of this source tree.
|
|
124
|
-
*/const Rh=
|
|
124
|
+
*/const Rh=me("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"}]]);/**
|
|
125
125
|
* @license lucide-react v0.511.0 - ISC
|
|
126
126
|
*
|
|
127
127
|
* This source code is licensed under the ISC license.
|
|
128
128
|
* See the LICENSE file in the root directory of this source tree.
|
|
129
|
-
*/const Fh=
|
|
129
|
+
*/const Fh=me("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
|
|
130
130
|
* @license lucide-react v0.511.0 - ISC
|
|
131
131
|
*
|
|
132
132
|
* This source code is licensed under the ISC license.
|
|
133
133
|
* See the LICENSE file in the root directory of this source tree.
|
|
134
|
-
*/const Bh=
|
|
134
|
+
*/const Bh=me("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"}]]);/**
|
|
135
135
|
* @license lucide-react v0.511.0 - ISC
|
|
136
136
|
*
|
|
137
137
|
* This source code is licensed under the ISC license.
|
|
138
138
|
* See the LICENSE file in the root directory of this source tree.
|
|
139
|
-
*/const $h=
|
|
139
|
+
*/const $h=me("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"}]]);/**
|
|
140
140
|
* @license lucide-react v0.511.0 - ISC
|
|
141
141
|
*
|
|
142
142
|
* This source code is licensed under the ISC license.
|
|
143
143
|
* See the LICENSE file in the root directory of this source tree.
|
|
144
|
-
*/const jh=
|
|
144
|
+
*/const jh=me("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"}]]);/**
|
|
145
145
|
* @license lucide-react v0.511.0 - ISC
|
|
146
146
|
*
|
|
147
147
|
* This source code is licensed under the ISC license.
|
|
148
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
|
-
|
|
149
|
+
*/const Hh=me("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"}]]);/**
|
|
150
|
+
* @license lucide-react v0.511.0 - ISC
|
|
151
|
+
*
|
|
152
|
+
* This source code is licensed under the ISC license.
|
|
153
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
154
|
+
*/const Uh=me("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,Qo;function Ko(){if(Qo)return _r;Qo=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,re){for(var Y=arguments.length,w=new Array(Y>2?Y-2:0),A=2;A<Y;A++)w[A-2]=arguments[A];return B.apply(re,w)}),u||(u=function(B){for(var re=arguments.length,Y=new Array(re>1?re-1:0),w=1;w<re;w++)Y[w-1]=arguments[w];return new B(...Y)});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),j=E(String.prototype.trim),R=E(Object.prototype.hasOwnProperty),S=E(RegExp.prototype.test),q=U(TypeError);function E(J){return function(B){B instanceof RegExp&&(B.lastIndex=0);for(var re=arguments.length,Y=new Array(re>1?re-1:0),w=1;w<re;w++)Y[w-1]=arguments[w];return s(J,B,Y)}}function U(J){return function(){for(var B=arguments.length,re=new Array(B),Y=0;Y<B;Y++)re[Y]=arguments[Y];return u(J,re)}}function y(J,B){let re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:C;n&&n(J,null);let Y=B.length;for(;Y--;){let w=B[Y];if(typeof w=="string"){const A=re(w);A!==w&&(t(B)||(B[Y]=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 N(J){const B=a(null);for(const[re,Y]of e(J))R(J,re)&&(Array.isArray(Y)?B[re]=D(Y):Y&&typeof Y=="object"&&Y.constructor===Object?B[re]=N(Y):B[re]=Y);return B}function G(J,B){for(;J!==null;){const Y=i(J,B);if(Y){if(Y.get)return E(Y.get);if(typeof Y.value=="function")return E(Y.value)}J=r(J)}function re(){return null}return re}const M=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"]),V=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"]),ne=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"]),he=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"]),Ee=l(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),d=l(["#text"]),ke=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"]),xe=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"]),de=l(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ae=o(/\{\{[\w\W]*|[\w\W]*\}\}/gm),te=o(/<%[\w\W]*|[\w\W]*%>/gm),$e=o(/\$\{[\w\W]*/gm),ze=o(/^data-[\-\w.\u00B7-\uFFFF]+$/),se=o(/^aria-[\-\w]+$/),je=o(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),oe=o(/^(?:\w+script|data):/i),ge=o(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),fe=o(/^html$/i),He=o(/^[a-z][.\w]*(-[.\w]+)+$/i);var rt=Object.freeze({__proto__:null,ARIA_ATTR:se,ATTR_WHITESPACE:ge,CUSTOM_ELEMENT:He,DATA_ATTR:ze,DOCTYPE_NAME:fe,ERB_EXPR:te,IS_ALLOWED_URI:je,IS_SCRIPT_OR_DATA:oe,MUSTACHE_EXPR:ae,TMPLIT_EXPR:$e});const dt={element:1,text:3,progressingInstruction:7,comment:8,document:9},Tn=function(){return typeof window>"u"?null:window},zr=function(B,re){if(typeof B!="object"||typeof B.createPolicy!="function")return null;let Y=null;const w="data-tt-policy-suffix";re&&re.hasAttribute(w)&&(Y=re.getAttribute(w));const A="dompurify"+(Y?"#"+Y:"");try{return B.createPolicy(A,{createHTML(W){return W},createScriptURL(W){return W}})}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!==dt.document||!J.Element)return B.isSupported=!1,B;let{document:re}=J;const Y=re,w=Y.currentScript,{DocumentFragment:A,HTMLTemplateElement:W,Node:Z,Element:le,NodeFilter:_e,NamedNodeMap:it=J.NamedNodeMap||J.MozNamedAttrMap,HTMLFormElement:Ye,DOMParser:St,trustedTypes:Ze}=J,Ce=le.prototype,mt=G(Ce,"cloneNode"),Xe=G(Ce,"remove"),om=G(Ce,"nextSibling"),lm=G(Ce,"childNodes"),An=G(Ce,"parentNode");if(typeof W=="function"){const $=re.createElement("template");$.content&&$.content.ownerDocument&&(re=$.content.ownerDocument)}let Oe,nn="";const{implementation:Rr,createNodeIterator:am,createDocumentFragment:sm,getElementsByTagName:um}=re,{importNode:cm}=Y;let Re=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:fm,ARIA_ATTR:pm,IS_SCRIPT_OR_DATA:hm,ATTR_WHITESPACE:Pl,CUSTOM_ELEMENT:dm}=rt;let{IS_ALLOWED_URI:Dl}=rt,Te=null;const Ml=y({},[...M,...L,...V,...he,...d]);let Ie=null;const zl=y({},[...ke,...xe,...m,...de]);let be=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 Dt=Object.seal(a(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Ol=!0,Hr=!0,Rl=!1,Fl=!0,Mt=!1,_n=!0,Ct=!1,Ur=!1,Vr=!1,zt=!1,In=!1,Ln=!1,Bl=!0,$l=!1;const mm="user-content-";let qr=!0,on=!1,Ot={},Je=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 jl=null;const Hl=y({},["audio","video","img","source","image","track"]);let Gr=null;const Ul=y({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Nn="http://www.w3.org/1998/Math/MathML",Pn="http://www.w3.org/2000/svg",ot="http://www.w3.org/1999/xhtml";let Rt=ot,Yr=!1,Xr=null;const gm=y({},[Nn,Pn,ot],k);let Dn=y({},["mi","mo","mn","ms","mtext"]),Mn=y({},["annotation-xml"]);const bm=y({},["title","style","font","a","script"]);let ln=null;const ym=["application/xhtml+xml","text/html"],km="text/html";let ve=null,Ft=null;const xm=re.createElement("form"),Vl=function(g){return g instanceof RegExp||g instanceof Function},Qr=function(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Ft&&Ft===g)){if((!g||typeof g!="object")&&(g={}),g=N(g),ln=ym.indexOf(g.PARSER_MEDIA_TYPE)===-1?km:g.PARSER_MEDIA_TYPE,ve=ln==="application/xhtml+xml"?k:C,Te=R(g,"ALLOWED_TAGS")?y({},g.ALLOWED_TAGS,ve):Ml,Ie=R(g,"ALLOWED_ATTR")?y({},g.ALLOWED_ATTR,ve):zl,Xr=R(g,"ALLOWED_NAMESPACES")?y({},g.ALLOWED_NAMESPACES,k):gm,Gr=R(g,"ADD_URI_SAFE_ATTR")?y(N(Ul),g.ADD_URI_SAFE_ATTR,ve):Ul,jl=R(g,"ADD_DATA_URI_TAGS")?y(N(Hl),g.ADD_DATA_URI_TAGS,ve):Hl,Je=R(g,"FORBID_CONTENTS")?y({},g.FORBID_CONTENTS,ve):Wr,rn=R(g,"FORBID_TAGS")?y({},g.FORBID_TAGS,ve):N({}),jr=R(g,"FORBID_ATTR")?y({},g.FORBID_ATTR,ve):N({}),Ot=R(g,"USE_PROFILES")?g.USE_PROFILES:!1,Ol=g.ALLOW_ARIA_ATTR!==!1,Hr=g.ALLOW_DATA_ATTR!==!1,Rl=g.ALLOW_UNKNOWN_PROTOCOLS||!1,Fl=g.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Mt=g.SAFE_FOR_TEMPLATES||!1,_n=g.SAFE_FOR_XML!==!1,Ct=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,Bl=g.SANITIZE_DOM!==!1,$l=g.SANITIZE_NAMED_PROPS||!1,qr=g.KEEP_CONTENT!==!1,on=g.IN_PLACE||!1,Dl=g.ALLOWED_URI_REGEXP||je,Rt=g.NAMESPACE||ot,Dn=g.MATHML_TEXT_INTEGRATION_POINTS||Dn,Mn=g.HTML_INTEGRATION_POINTS||Mn,be=g.CUSTOM_ELEMENT_HANDLING||{},g.CUSTOM_ELEMENT_HANDLING&&Vl(g.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(be.tagNameCheck=g.CUSTOM_ELEMENT_HANDLING.tagNameCheck),g.CUSTOM_ELEMENT_HANDLING&&Vl(g.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(be.attributeNameCheck=g.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),g.CUSTOM_ELEMENT_HANDLING&&typeof g.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(be.allowCustomizedBuiltInElements=g.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Mt&&(Hr=!1),In&&(zt=!0),Ot&&(Te=y({},d),Ie=[],Ot.html===!0&&(y(Te,M),y(Ie,ke)),Ot.svg===!0&&(y(Te,L),y(Ie,xe),y(Ie,de)),Ot.svgFilters===!0&&(y(Te,V),y(Ie,xe),y(Ie,de)),Ot.mathMl===!0&&(y(Te,he),y(Ie,m),y(Ie,de))),g.ADD_TAGS&&(typeof g.ADD_TAGS=="function"?Dt.tagCheck=g.ADD_TAGS:(Te===Ml&&(Te=N(Te)),y(Te,g.ADD_TAGS,ve))),g.ADD_ATTR&&(typeof g.ADD_ATTR=="function"?Dt.attributeCheck=g.ADD_ATTR:(Ie===zl&&(Ie=N(Ie)),y(Ie,g.ADD_ATTR,ve))),g.ADD_URI_SAFE_ATTR&&y(Gr,g.ADD_URI_SAFE_ATTR,ve),g.FORBID_CONTENTS&&(Je===Wr&&(Je=N(Je)),y(Je,g.FORBID_CONTENTS,ve)),g.ADD_FORBID_CONTENTS&&(Je===Wr&&(Je=N(Je)),y(Je,g.ADD_FORBID_CONTENTS,ve)),qr&&(Te["#text"]=!0),Ct&&y(Te,["html","head","body"]),Te.table&&(y(Te,["tbody"]),delete rn.tbody),g.TRUSTED_TYPES_POLICY){if(typeof g.TRUSTED_TYPES_POLICY.createHTML!="function")throw q('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof g.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw q('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Oe=g.TRUSTED_TYPES_POLICY,nn=Oe.createHTML("")}else Oe===void 0&&(Oe=zr(Ze,w)),Oe!==null&&typeof nn=="string"&&(nn=Oe.createHTML(""));l&&l(g),Ft=g}},ql=y({},[...L,...V,...ne]),Wl=y({},[...he,...Ee]),wm=function(g){let I=An(g);(!I||!I.tagName)&&(I={namespaceURI:Rt,tagName:"template"});const F=C(g.tagName),pe=C(I.tagName);return Xr[g.namespaceURI]?g.namespaceURI===Pn?I.namespaceURI===ot?F==="svg":I.namespaceURI===Nn?F==="svg"&&(pe==="annotation-xml"||Dn[pe]):!!ql[F]:g.namespaceURI===Nn?I.namespaceURI===ot?F==="math":I.namespaceURI===Pn?F==="math"&&Mn[pe]:!!Wl[F]:g.namespaceURI===ot?I.namespaceURI===Pn&&!Mn[pe]||I.namespaceURI===Nn&&!Dn[pe]?!1:!Wl[F]&&(bm[F]||!ql[F]):!!(ln==="application/xhtml+xml"&&Xr[g.namespaceURI]):!1},et=function(g){p(B.removed,{element:g});try{An(g).removeChild(g)}catch{Xe(g)}},vt=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{et(I)}catch{}else try{I.setAttribute(g,"")}catch{}},Gl=function(g){let I=null,F=null;if(Vr)g="<remove></remove>"+g;else{const we=x(g,/^[\r\n\t ]+/);F=we&&we[0]}ln==="application/xhtml+xml"&&Rt===ot&&(g='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+g+"</body></html>");const pe=Oe?Oe.createHTML(g):g;if(Rt===ot)try{I=new St().parseFromString(pe,ln)}catch{}if(!I||!I.documentElement){I=Rr.createDocument(Rt,"template",null);try{I.documentElement.innerHTML=Yr?nn:pe}catch{}}const De=I.body||I.documentElement;return g&&F&&De.insertBefore(re.createTextNode(F),De.childNodes[0]||null),Rt===ot?um.call(I,Ct?"html":"body")[0]:Ct?I.documentElement:De},Yl=function(g){return am.call(g.ownerDocument||g,g,_e.SHOW_ELEMENT|_e.SHOW_COMMENT|_e.SHOW_TEXT|_e.SHOW_PROCESSING_INSTRUCTION|_e.SHOW_CDATA_SECTION,null)},Kr=function(g){return g instanceof Ye&&(typeof g.nodeName!="string"||typeof g.textContent!="string"||typeof g.removeChild!="function"||!(g.attributes instanceof it)||typeof g.removeAttribute!="function"||typeof g.setAttribute!="function"||typeof g.namespaceURI!="string"||typeof g.insertBefore!="function"||typeof g.hasChildNodes!="function")},Xl=function(g){return typeof Z=="function"&&g instanceof Z};function lt($,g,I){f($,F=>{F.call(B,g,I,Ft)})}const Ql=function(g){let I=null;if(lt(Re.beforeSanitizeElements,g,null),Kr(g))return et(g),!0;const F=ve(g.nodeName);if(lt(Re.uponSanitizeElement,g,{tagName:F,allowedTags:Te}),_n&&g.hasChildNodes()&&!Xl(g.firstElementChild)&&S(/<[/\w!]/g,g.innerHTML)&&S(/<[/\w!]/g,g.textContent)||g.nodeType===dt.progressingInstruction||_n&&g.nodeType===dt.comment&&S(/<[/\w]/g,g.data))return et(g),!0;if(!(Dt.tagCheck instanceof Function&&Dt.tagCheck(F))&&(!Te[F]||rn[F])){if(!rn[F]&&Zl(F)&&(be.tagNameCheck instanceof RegExp&&S(be.tagNameCheck,F)||be.tagNameCheck instanceof Function&&be.tagNameCheck(F)))return!1;if(qr&&!Je[F]){const pe=An(g)||g.parentNode,De=lm(g)||g.childNodes;if(De&&pe){const we=De.length;for(let Ue=we-1;Ue>=0;--Ue){const at=mt(De[Ue],!0);at.__removalCount=(g.__removalCount||0)+1,pe.insertBefore(at,om(g))}}}return et(g),!0}return g instanceof le&&!wm(g)||(F==="noscript"||F==="noembed"||F==="noframes")&&S(/<\/no(script|embed|frames)/i,g.innerHTML)?(et(g),!0):(Mt&&g.nodeType===dt.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)),lt(Re.afterSanitizeElements,g,null),!1)},Kl=function(g,I,F){if(Bl&&(I==="id"||I==="name")&&(F in re||F in xm))return!1;if(!(Hr&&!jr[I]&&S(fm,I))){if(!(Ol&&S(pm,I))){if(!(Dt.attributeCheck instanceof Function&&Dt.attributeCheck(I,g))){if(!Ie[I]||jr[I]){if(!(Zl(g)&&(be.tagNameCheck instanceof RegExp&&S(be.tagNameCheck,g)||be.tagNameCheck instanceof Function&&be.tagNameCheck(g))&&(be.attributeNameCheck instanceof RegExp&&S(be.attributeNameCheck,I)||be.attributeNameCheck instanceof Function&&be.attributeNameCheck(I,g))||I==="is"&&be.allowCustomizedBuiltInElements&&(be.tagNameCheck instanceof RegExp&&S(be.tagNameCheck,F)||be.tagNameCheck instanceof Function&&be.tagNameCheck(F))))return!1}else if(!Gr[I]){if(!S(Dl,T(F,Pl,""))){if(!((I==="src"||I==="xlink:href"||I==="href")&&g!=="script"&&v(F,"data:")===0&&jl[g])){if(!(Rl&&!S(hm,T(F,Pl,"")))){if(F)return!1}}}}}}}return!0},Zl=function(g){return g!=="annotation-xml"&&x(g,dm)},Jl=function(g){lt(Re.beforeSanitizeAttributes,g,null);const{attributes:I}=g;if(!I||Kr(g))return;const F={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ie,forceKeepAttr:void 0};let pe=I.length;for(;pe--;){const De=I[pe],{name:we,namespaceURI:Ue,value:at}=De,Bt=ve(we),Zr=at;let Le=we==="value"?Zr:j(Zr);if(F.attrName=Bt,F.attrValue=Le,F.keepAttr=!0,F.forceKeepAttr=void 0,lt(Re.uponSanitizeAttribute,g,F),Le=F.attrValue,$l&&(Bt==="id"||Bt==="name")&&(vt(we,g),Le=mm+Le),_n&&S(/((--!?|])>)|<\/(style|title|textarea)/i,Le)){vt(we,g);continue}if(Bt==="attributename"&&x(Le,"href")){vt(we,g);continue}if(F.forceKeepAttr)continue;if(!F.keepAttr){vt(we,g);continue}if(!Fl&&S(/\/>/i,Le)){vt(we,g);continue}Mt&&f([Fr,Br,$r],ta=>{Le=T(Le,ta," ")});const ea=ve(g.nodeName);if(!Kl(ea,Bt,Le)){vt(we,g);continue}if(Oe&&typeof Ze=="object"&&typeof Ze.getAttributeType=="function"&&!Ue)switch(Ze.getAttributeType(ea,Bt)){case"TrustedHTML":{Le=Oe.createHTML(Le);break}case"TrustedScriptURL":{Le=Oe.createScriptURL(Le);break}}if(Le!==Zr)try{Ue?g.setAttributeNS(Ue,we,Le):g.setAttribute(we,Le),Kr(g)?et(g):h(B.removed)}catch{vt(we,g)}}lt(Re.afterSanitizeAttributes,g,null)},Sm=function $(g){let I=null;const F=Yl(g);for(lt(Re.beforeSanitizeShadowDOM,g,null);I=F.nextNode();)lt(Re.uponSanitizeShadowNode,I,null),Ql(I),Jl(I),I.content instanceof A&&$(I.content);lt(Re.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"&&!Xl($))if(typeof $.toString=="function"){if($=$.toString(),typeof $!="string")throw q("dirty is not a string, aborting")}else throw q("toString is not a function");if(!B.isSupported)return $;if(Ur||Qr(g),B.removed=[],typeof $=="string"&&(on=!1),on){if($.nodeName){const at=ve($.nodeName);if(!Te[at]||rn[at])throw q("root node is forbidden and cannot be sanitized in-place")}}else if($ instanceof Z)I=Gl("<!---->"),F=I.ownerDocument.importNode($,!0),F.nodeType===dt.element&&F.nodeName==="BODY"||F.nodeName==="HTML"?I=F:I.appendChild(F);else{if(!zt&&!Mt&&!Ct&&$.indexOf("<")===-1)return Oe&&Ln?Oe.createHTML($):$;if(I=Gl($),!I)return zt?null:Ln?nn:""}I&&Vr&&et(I.firstChild);const we=Yl(on?$:I);for(;pe=we.nextNode();)Ql(pe),Jl(pe),pe.content instanceof A&&Sm(pe.content);if(on)return $;if(zt){if(In)for(De=sm.call(I.ownerDocument);I.firstChild;)De.appendChild(I.firstChild);else De=I;return(Ie.shadowroot||Ie.shadowrootmode)&&(De=cm.call(Y,De,!0)),De}let Ue=Ct?I.outerHTML:I.innerHTML;return Ct&&Te["!doctype"]&&I.ownerDocument&&I.ownerDocument.doctype&&I.ownerDocument.doctype.name&&S(fe,I.ownerDocument.doctype.name)&&(Ue="<!DOCTYPE "+I.ownerDocument.doctype.name+`>
|
|
155
|
+
`+Ue),Mt&&f([Fr,Br,$r],at=>{Ue=T(Ue,at," ")}),Oe&&Ln?Oe.createHTML(Ue):Ue},B.setConfig=function(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Qr($),Ur=!0},B.clearConfig=function(){Ft=null,Ur=!1},B.isValidAttribute=function($,g,I){Ft||Qr({});const F=ve($),pe=ve(g);return Kl(F,pe,I)},B.addHook=function($,g){typeof g=="function"&&p(Re[$],g)},B.removeHook=function($,g){if(g!==void 0){const I=c(Re[$],g);return I===-1?void 0:b(Re[$],I,1)[0]}return h(Re[$])},B.removeHooks=function($){Re[$]=[]},B.removeAllHooks=function(){Re=en()},B}var Or=tn();return _r=Or,_r}var Ir,Zo;function Vh(){return Zo||(Zo=1,Ir=self.DOMPurify||(self.DOMPurify=Ko().default||Ko())),Ir}var qh=Vh();const Wh=jn(qh);function Jo(e,n){if(typeof e=="function")return e(n);e!=null&&(e.current=n)}function Gh(...e){return n=>{let t=!1;const r=e.map(i=>{const l=Jo(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():Jo(e[i],null)}}}}var Yh=Symbol.for("react.lazy"),wn=Ae[" use ".trim().toString()];function Xh(e){return typeof e=="object"&&e!==null&&"then"in e}function el(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Yh&&"_payload"in e&&Xh(e._payload)}function tl(e){const n=Qh(e),t=Ae.forwardRef((r,i)=>{let{children:l,...o}=r;el(l)&&typeof wn=="function"&&(l=wn(l._payload));const a=Ae.Children.toArray(l),s=a.find(Zh);if(s){const u=s.props.children,f=a.map(c=>c===s?Ae.Children.count(u)>1?Ae.Children.only(null):Ae.isValidElement(u)?u.props.children:null:c);return P.jsx(n,{...o,ref:i,children:Ae.isValidElement(u)?Ae.cloneElement(u,void 0,f):null})}return P.jsx(n,{...o,ref:i,children:l})});return t.displayName=`${e}.Slot`,t}var nl=tl("Slot");function Qh(e){const n=Ae.forwardRef((t,r)=>{let{children:i,...l}=t;if(el(i)&&typeof wn=="function"&&(i=wn(i._payload)),Ae.isValidElement(i)){const o=ed(i),a=Jh(l,i.props);return i.type!==Ae.Fragment&&(a.ref=r?Gh(r,o):o),Ae.cloneElement(i,a)}return Ae.Children.count(i)>1?Ae.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var Kh=Symbol("radix.slottable");function Zh(e){return Ae.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Kh}function Jh(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 ed(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 rl(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=rl(e[n]))&&(r&&(r+=" "),r+=t)}else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function il(){for(var e,n,t=0,r="",i=arguments.length;t<i;t++)(e=arguments[t])&&(n=rl(e))&&(r&&(r+=" "),r+=n);return r}const ol=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ll=il,al=(e,n)=>t=>{var r;if((n==null?void 0:n.variants)==null)return ll(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=ol(f)||ol(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 ll(e,o,s,t==null?void 0:t.class,t==null?void 0:t.className)},td=(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},nd=(e,n)=>({classGroupId:e,validator:n}),sl=(e=new Map,n=null,t)=>({nextPart:e,validators:n,classGroupId:t}),Sn="-",ul=[],rd="arbitrary..",id=e=>{const n=ld(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return od(o);const a=o.split(Sn),s=a[0]===""&&a.length>1?1:0;return cl(a,s,n)},getConflictingClassGroupIds:(o,a)=>{if(a){const s=r[o],u=t[o];return s?u?td(u,s):s:u||ul}return t[o]||ul}}},cl=(e,n,t)=>{if(e.length-n===0)return t.classGroupId;const i=e[n],l=t.nextPart.get(i);if(l){const u=cl(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}},od=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?rd+r:void 0})(),ld=e=>{const{theme:n,classGroups:t}=e;return ad(t,n)},ad=(e,n)=>{const t=sl();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];sd(o,n,t,r)}},sd=(e,n,t,r)=>{if(typeof e=="string"){ud(e,n,t);return}if(typeof e=="function"){cd(e,n,t,r);return}fd(e,n,t,r)},ud=(e,n,t)=>{const r=e===""?n:fl(n,e);r.classGroupId=t},cd=(e,n,t,r)=>{if(pd(e)){Lr(e(r),n,t,r);return}n.validators===null&&(n.validators=[]),n.validators.push(nd(t,e))},fd=(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,fl(n,a),t,r)}},fl=(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=sl(),t.nextPart.set(o,a)),t=a}return t},pd=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,hd=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)}}},Nr="!",pl=":",dd=[],hl=(e,n,t,r,i)=>({modifiers:e,hasImportantModifier:n,baseClassName:t,maybePostfixModifierPosition:r,isExternal:i}),md=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===pl){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(Nr)?(h=c.slice(0,-1),p=!0):c.startsWith(Nr)&&(h=c.slice(1),p=!0);const b=u&&u>s?u-s:void 0;return hl(l,p,h,b)};if(n){const i=n+pl,l=r;r=o=>o.startsWith(i)?l(o.slice(i.length)):hl(dd,!1,o,void 0,!0)}if(t){const i=r;r=l=>t({className:l,parseClassName:i})}return r},gd=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}},bd=e=>({cache:hd(e.cacheSize),parseClassName:md(e),sortModifiers:gd(e),...id(e)}),yd=/\s+/,kd=(e,n)=>{const{parseClassName:t,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:l}=n,o=[],a=e.trim().split(yd);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+Nr:T,j=v+x;if(o.indexOf(j)>-1)continue;o.push(j);const R=i(x,k);for(let S=0;S<R.length;++S){const q=R[S];o.push(v+q)}s=f+(s.length>0?" "+s:s)}return s},xd=(...e)=>{let n=0,t,r,i="";for(;n<e.length;)(t=e[n++])&&(r=dl(t))&&(i&&(i+=" "),i+=r);return i},dl=e=>{if(typeof e=="string")return e;let n,t="";for(let r=0;r<e.length;r++)e[r]&&(n=dl(e[r]))&&(t&&(t+=" "),t+=n);return t},wd=(e,...n)=>{let t,r,i,l;const o=s=>{const u=n.reduce((f,c)=>c(f),e());return t=bd(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=kd(s,t);return i(s,f),f};return l=o,(...s)=>l(xd(...s))},Sd=[],Se=e=>{const n=t=>t[e]||Sd;return n.isThemeGetter=!0,n},ml=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,gl=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Cd=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,vd=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ed=/\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$/,Td=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ad=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,_d=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ft=e=>Cd.test(e),K=e=>!!e&&!Number.isNaN(Number(e)),pt=e=>!!e&&Number.isInteger(Number(e)),Pr=e=>e.endsWith("%")&&K(e.slice(0,-1)),nt=e=>vd.test(e),bl=()=>!0,Id=e=>Ed.test(e)&&!Td.test(e),Dr=()=>!1,Ld=e=>Ad.test(e),Nd=e=>_d.test(e),Pd=e=>!z(e)&&!O(e),Dd=e=>ht(e,Cl,Dr),z=e=>ml.test(e),kt=e=>ht(e,vl,Id),yl=e=>ht(e,jd,K),Md=e=>ht(e,Tl,bl),zd=e=>ht(e,El,Dr),kl=e=>ht(e,wl,Dr),Od=e=>ht(e,Sl,Nd),Cn=e=>ht(e,Al,Ld),O=e=>gl.test(e),Zt=e=>xt(e,vl),Rd=e=>xt(e,El),xl=e=>xt(e,wl),Fd=e=>xt(e,Cl),Bd=e=>xt(e,Sl),vn=e=>xt(e,Al,!0),$d=e=>xt(e,Tl,!0),ht=(e,n,t)=>{const r=ml.exec(e);return r?r[1]?n(r[1]):t(r[2]):!1},xt=(e,n,t=!1)=>{const r=gl.exec(e);return r?r[1]?n(r[1]):t:!1},wl=e=>e==="position"||e==="percentage",Sl=e=>e==="image"||e==="url",Cl=e=>e==="length"||e==="size"||e==="bg-size",vl=e=>e==="length",jd=e=>e==="number",El=e=>e==="family-name",Tl=e=>e==="number"||e==="weight",Al=e=>e==="shadow",Hd=wd(()=>{const e=Se("color"),n=Se("font"),t=Se("text"),r=Se("font-weight"),i=Se("tracking"),l=Se("leading"),o=Se("breakpoint"),a=Se("container"),s=Se("spacing"),u=Se("radius"),f=Se("shadow"),c=Se("inset-shadow"),h=Se("text-shadow"),p=Se("drop-shadow"),b=Se("blur"),C=Se("perspective"),k=Se("aspect"),x=Se("ease"),T=Se("animate"),v=()=>["auto","avoid","all","avoid-page","page","left","right","column"],j=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],R=()=>[...j(),O,z],S=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto","contain","none"],E=()=>[O,z,s],U=()=>[ft,"full","auto",...E()],y=()=>[pt,"none","subgrid",O,z],D=()=>["auto",{span:["full",pt,O,z]},pt,O,z],N=()=>[pt,"auto",O,z],G=()=>["auto","min","max","fr",O,z],M=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],L=()=>["start","end","center","stretch","center-safe","end-safe"],V=()=>["auto",...E()],ne=()=>[ft,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...E()],he=()=>[ft,"screen","full","dvw","lvw","svw","min","max","fit",...E()],Ee=()=>[ft,"screen","full","lh","dvh","lvh","svh","min","max","fit",...E()],d=()=>[e,O,z],ke=()=>[...j(),xl,kl,{position:[O,z]}],xe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],m=()=>["auto","cover","contain",Fd,Dd,{size:[O,z]}],de=()=>[Pr,Zt,kt],ae=()=>["","none","full",u,O,z],te=()=>["",K,Zt,kt],$e=()=>["solid","dashed","dotted","double"],ze=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],se=()=>[K,Pr,xl,kl],je=()=>["","none",b,O,z],oe=()=>["none",K,O,z],ge=()=>["none",K,O,z],fe=()=>[K,O,z],He=()=>[ft,"full",...E()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[nt],breakpoint:[nt],color:[bl],container:[nt],"drop-shadow":[nt],ease:["in","out","in-out"],font:[Pd],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[nt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[nt],shadow:[nt],spacing:["px",K],text:[nt],"text-shadow":[nt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ft,z,O,k]}],container:["container"],columns:[{columns:[K,z,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:q()}],"overscroll-x":[{"overscroll-x":q()}],"overscroll-y":[{"overscroll-y":q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:U()}],"inset-x":[{"inset-x":U()}],"inset-y":[{"inset-y":U()}],start:[{"inset-s":U(),start:U()}],end:[{"inset-e":U(),end:U()}],"inset-bs":[{"inset-bs":U()}],"inset-be":[{"inset-be":U()}],top:[{top:U()}],right:[{right:U()}],bottom:[{bottom:U()}],left:[{left:U()}],visibility:["visible","invisible","collapse"],z:[{z:[pt,"auto",O,z]}],basis:[{basis:[ft,"full","auto",a,...E()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[K,ft,"auto","initial","none",z]}],grow:[{grow:["",K,O,z]}],shrink:[{shrink:["",K,O,z]}],order:[{order:[pt,"first","last","none",O,z]}],"grid-cols":[{"grid-cols":y()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":y()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":G()}],"auto-rows":[{"auto-rows":G()}],gap:[{gap:E()}],"gap-x":[{"gap-x":E()}],"gap-y":[{"gap-y":E()}],"justify-content":[{justify:[...M(),"normal"]}],"justify-items":[{"justify-items":[...L(),"normal"]}],"justify-self":[{"justify-self":["auto",...L()]}],"align-content":[{content:["normal",...M()]}],"align-items":[{items:[...L(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...L(),{baseline:["","last"]}]}],"place-content":[{"place-content":M()}],"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:V()}],mx:[{mx:V()}],my:[{my:V()}],ms:[{ms:V()}],me:[{me:V()}],mbs:[{mbs:V()}],mbe:[{mbe:V()}],mt:[{mt:V()}],mr:[{mr:V()}],mb:[{mb:V()}],ml:[{ml:V()}],"space-x":[{"space-x":E()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":E()}],"space-y-reverse":["space-y-reverse"],size:[{size:ne()}],"inline-size":[{inline:["auto",...he()]}],"min-inline-size":[{"min-inline":["auto",...he()]}],"max-inline-size":[{"max-inline":["none",...he()]}],"block-size":[{block:["auto",...Ee()]}],"min-block-size":[{"min-block":["auto",...Ee()]}],"max-block-size":[{"max-block":["none",...Ee()]}],w:[{w:[a,"screen",...ne()]}],"min-w":[{"min-w":[a,"screen","none",...ne()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[o]},...ne()]}],h:[{h:["screen","lh",...ne()]}],"min-h":[{"min-h":["screen","lh","none",...ne()]}],"max-h":[{"max-h":["screen","lh",...ne()]}],"font-size":[{text:["base",t,Zt,kt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,$d,Md]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Pr,z]}],"font-family":[{font:[Rd,zd,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,O,z]}],"line-clamp":[{"line-clamp":[K,"none",O,yl]}],leading:[{leading:[l,...E()]}],"list-image":[{"list-image":["none",O,z]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",O,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:[...$e(),"wavy"]}],"text-decoration-thickness":[{decoration:[K,"from-font","auto",O,kt]}],"text-decoration-color":[{decoration:d()}],"underline-offset":[{"underline-offset":[K,"auto",O,z]}],"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,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",O,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:ke()}],"bg-repeat":[{bg:xe()}],"bg-size":[{bg:m()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},pt,O,z],radial:["",O,z],conic:[pt,O,z]},Bd,Od]}],"bg-color":[{bg:d()}],"gradient-from-pos":[{from:de()}],"gradient-via-pos":[{via:de()}],"gradient-to-pos":[{to:de()}],"gradient-from":[{from:d()}],"gradient-via":[{via:d()}],"gradient-to":[{to:d()}],rounded:[{rounded:ae()}],"rounded-s":[{"rounded-s":ae()}],"rounded-e":[{"rounded-e":ae()}],"rounded-t":[{"rounded-t":ae()}],"rounded-r":[{"rounded-r":ae()}],"rounded-b":[{"rounded-b":ae()}],"rounded-l":[{"rounded-l":ae()}],"rounded-ss":[{"rounded-ss":ae()}],"rounded-se":[{"rounded-se":ae()}],"rounded-ee":[{"rounded-ee":ae()}],"rounded-es":[{"rounded-es":ae()}],"rounded-tl":[{"rounded-tl":ae()}],"rounded-tr":[{"rounded-tr":ae()}],"rounded-br":[{"rounded-br":ae()}],"rounded-bl":[{"rounded-bl":ae()}],"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:[...$e(),"hidden","none"]}],"divide-style":[{divide:[...$e(),"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:[...$e(),"none","hidden"]}],"outline-offset":[{"outline-offset":[K,O,z]}],"outline-w":[{outline:["",K,Zt,kt]}],"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:te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:d()}],"ring-offset-w":[{"ring-offset":[K,kt]}],"ring-offset-color":[{"ring-offset":d()}],"inset-ring-w":[{"inset-ring":te()}],"inset-ring-color":[{"inset-ring":d()}],"text-shadow":[{"text-shadow":["none",h,vn,Cn]}],"text-shadow-color":[{"text-shadow":d()}],opacity:[{opacity:[K,O,z]}],"mix-blend":[{"mix-blend":[...ze(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ze()}],"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":se()}],"mask-image-linear-to-pos":[{"mask-linear-to":se()}],"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":se()}],"mask-image-t-to-pos":[{"mask-t-to":se()}],"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":se()}],"mask-image-r-to-pos":[{"mask-r-to":se()}],"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":se()}],"mask-image-b-to-pos":[{"mask-b-to":se()}],"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":se()}],"mask-image-l-to-pos":[{"mask-l-to":se()}],"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":se()}],"mask-image-x-to-pos":[{"mask-x-to":se()}],"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":se()}],"mask-image-y-to-pos":[{"mask-y-to":se()}],"mask-image-y-from-color":[{"mask-y-from":d()}],"mask-image-y-to-color":[{"mask-y-to":d()}],"mask-image-radial":[{"mask-radial":[O,z]}],"mask-image-radial-from-pos":[{"mask-radial-from":se()}],"mask-image-radial-to-pos":[{"mask-radial-to":se()}],"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":j()}],"mask-image-conic-pos":[{"mask-conic":[K]}],"mask-image-conic-from-pos":[{"mask-conic-from":se()}],"mask-image-conic-to-pos":[{"mask-conic-to":se()}],"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:ke()}],"mask-repeat":[{mask:xe()}],"mask-size":[{mask:m()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",O,z]}],filter:[{filter:["","none",O,z]}],blur:[{blur:je()}],brightness:[{brightness:[K,O,z]}],contrast:[{contrast:[K,O,z]}],"drop-shadow":[{"drop-shadow":["","none",p,vn,Cn]}],"drop-shadow-color":[{"drop-shadow":d()}],grayscale:[{grayscale:["",K,O,z]}],"hue-rotate":[{"hue-rotate":[K,O,z]}],invert:[{invert:["",K,O,z]}],saturate:[{saturate:[K,O,z]}],sepia:[{sepia:["",K,O,z]}],"backdrop-filter":[{"backdrop-filter":["","none",O,z]}],"backdrop-blur":[{"backdrop-blur":je()}],"backdrop-brightness":[{"backdrop-brightness":[K,O,z]}],"backdrop-contrast":[{"backdrop-contrast":[K,O,z]}],"backdrop-grayscale":[{"backdrop-grayscale":["",K,O,z]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[K,O,z]}],"backdrop-invert":[{"backdrop-invert":["",K,O,z]}],"backdrop-opacity":[{"backdrop-opacity":[K,O,z]}],"backdrop-saturate":[{"backdrop-saturate":[K,O,z]}],"backdrop-sepia":[{"backdrop-sepia":["",K,O,z]}],"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,z]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[K,"initial",O,z]}],ease:[{ease:["linear","initial",x,O,z]}],delay:[{delay:[K,O,z]}],animate:[{animate:["none",T,O,z]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[C,O,z]}],"perspective-origin":[{"perspective-origin":R()}],rotate:[{rotate:oe()}],"rotate-x":[{"rotate-x":oe()}],"rotate-y":[{"rotate-y":oe()}],"rotate-z":[{"rotate-z":oe()}],scale:[{scale:ge()}],"scale-x":[{"scale-x":ge()}],"scale-y":[{"scale-y":ge()}],"scale-z":[{"scale-z":ge()}],"scale-3d":["scale-3d"],skew:[{skew:fe()}],"skew-x":[{"skew-x":fe()}],"skew-y":[{"skew-y":fe()}],transform:[{transform:[O,z,"","none","gpu","cpu"]}],"transform-origin":[{origin:R()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:He()}],"translate-x":[{"translate-x":He()}],"translate-y":[{"translate-y":He()}],"translate-z":[{"translate-z":He()}],"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,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":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,z]}],fill:[{fill:["none",...d()]}],"stroke-w":[{stroke:[K,Zt,kt,yl]}],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 Jt(...e){return Hd(il(e))}const Ud=al("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 Vd({className:e,variant:n,asChild:t=!1,...r}){const i=t?nl:"span";return P.jsx(i,{"data-slot":"badge",className:Jt(Ud({variant:n}),e),...r})}const qd=al("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?nl:"button";return P.jsx(l,{"data-slot":"button",className:Jt(qd({variant:n,size:t,className:e})),...i})}var Wd=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Gd=Wd.reduce((e,n)=>{const t=tl(`Primitive.${n}`),r=Ae.forwardRef((i,l)=>{const{asChild:o,...a}=i,s=o?t:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),P.jsx(s,{...a,ref:l})});return r.displayName=`Primitive.${n}`,{...e,[n]:r}},{}),Yd="Separator",_l="horizontal",Xd=["horizontal","vertical"],Il=Ae.forwardRef((e,n)=>{const{decorative:t,orientation:r=_l,...i}=e,l=Qd(r)?r:_l,a=t?{role:"none"}:{"aria-orientation":l==="vertical"?l:void 0,role:"separator"};return P.jsx(Gd.div,{"data-orientation":l,...a,...i,ref:n})});Il.displayName=Yd;function Qd(e){return Xd.includes(e)}var Kd=Il;function Ll({className:e,orientation:n="horizontal",decorative:t=!0,...r}){return P.jsx(Kd,{"data-slot":"separator",decorative:t,orientation:n,className:Jt("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 Zd({className:e,...n}){return P.jsx("div",{"data-slot":"card",className:Jt("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...n})}function Jd({className:e,...n}){return P.jsx("div",{"data-slot":"card-content",className:Jt("px-6",e),...n})}function em({actions:e}){const n=[{icon:vh,title:"Bold (Ctrl+B)",action:e.insertBold},{icon:Mh,title:"Italic (Ctrl+I)",action:e.insertItalic},{icon:Hh,title:"Strikethrough",action:e.insertStrikethrough}],t=[{icon:Lh,title:"Heading 1",action:()=>e.insertHeading(1)},{icon:Nh,title:"Heading 2",action:()=>e.insertHeading(2)},{icon:Ph,title:"Heading 3",action:()=>e.insertHeading(3)}],r=[{icon:Rh,title:"Unordered List",action:e.insertUnorderedList},{icon:Oh,title:"Ordered List",action:e.insertOrderedList}],i=[{icon:Bh,title:"Blockquote",action:e.insertBlockquote},{icon:Eh,title:"Inline Code",action:e.insertInlineCode},{icon:Ih,title:"Code Block",action:e.insertCodeBlock},{icon:Fh,title:"Horizontal Rule",action:e.insertHorizontalRule}],l=[{icon:zh,title:"Link",action:e.insertLink},{icon:Dh,title:"Image",action:e.insertImage},{icon:Uh,title:"Table",action:e.insertTable}],o=[n,t,r,i,l];return P.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)=>P.jsxs("div",{className:"flex items-center gap-0.5",children:[s>0&&P.jsx(Ll,{orientation:"vertical",className:"h-5 mx-1"}),a.map((u,f)=>P.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:P.jsx(u.icon,{className:"w-4 h-4"})},f))]},s))})}function wt(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(`
|
|
156
|
+
`,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 Mr(e,n,t,r){const{selectionStart:i,selectionEnd:l,value:o}=e,s=i>0&&o[i-1]!==`
|
|
152
157
|
`?`
|
|
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
|
|
158
|
+
`:"",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 tm(e,n){const t=Q.useCallback(()=>e.current,[e]),r=Q.useCallback(()=>{const k=t();k&&wt(k,n,"**","**","bold text")},[t,n]),i=Q.useCallback(()=>{const k=t();k&&wt(k,n,"*","*","italic text")},[t,n]),l=Q.useCallback(()=>{const k=t();k&&wt(k,n,"~~","~~","strikethrough text")},[t,n]),o=Q.useCallback(()=>{const k=t();k&&wt(k,n,"`","`","code")},[t,n]),a=Q.useCallback(k=>{const x=t();if(!x)return;const T="#".repeat(k)+" ";En(x,n,T)},[t,n]),s=Q.useCallback(()=>{const k=t();k&&En(k,n,"> ")},[t,n]),u=Q.useCallback(()=>{const k=t();k&&En(k,n,"- ")},[t,n]),f=Q.useCallback(()=>{const k=t();k&&En(k,n,"1. ")},[t,n]),c=Q.useCallback(()=>{const k=t();if(!k)return;Mr(k,n,"```\ncode here\n```\n",4)},[t,n]),h=Q.useCallback(()=>{const k=t();if(!k)return;const{selectionStart:x,selectionEnd:T,value:v}=k;v.substring(x,T)?wt(k,n,"[","](url)",""):wt(k,n,"[","](url)","link text")},[t,n]),p=Q.useCallback(()=>{const k=t();k&&wt(k,n,"","alt text")},[t,n]),b=Q.useCallback(()=>{const k=t();k&&Mr(k,n,`
|
|
154
159
|
---
|
|
155
160
|
|
|
156
|
-
`,5)},[t,n]),C=
|
|
161
|
+
`,5)},[t,n]),C=Q.useCallback(()=>{const k=t();if(!k)return;Mr(k,n,`| Header 1 | Header 2 |
|
|
157
162
|
| -------- | -------- |
|
|
158
163
|
| Cell 1 | Cell 2 |
|
|
159
164
|
| 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
|
|
161
|
-
<span style="color:${t.codeBlockText};background:${t.codeBlockBg};
|
|
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>`)),
|
|
165
|
+
`,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 nm={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"},rm=(e,n={})=>{const t={...nm,...n};let r=e.replace(/</g,"<").replace(/>/g,">");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};border-radius:3px;">$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(/^>\s+(.+)$/gm,`<span style="color:${t.blockquote};font-weight:bold">></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>
|
|
166
|
+
<span style="color:${t.codeBlockText};background:${t.codeBlockBg};border-radius:3px;">$2</span>
|
|
167
|
+
<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>`)),Wh.sanitize(r)},im={h1:({children:e})=>P.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})=>P.jsx("h2",{className:"text-2xl font-semibold mb-3 mt-5 text-foreground border-b pb-1",children:e}),h3:({children:e})=>P.jsx("h3",{className:"text-xl font-semibold mb-2 mt-4 text-foreground",children:e}),h4:({children:e})=>P.jsx("h4",{className:"text-lg font-medium mb-2 mt-3 text-foreground",children:e}),h5:({children:e})=>P.jsx("h5",{className:"text-base font-medium mb-2 mt-3 text-foreground",children:e}),h6:({children:e})=>P.jsx("h6",{className:"text-sm font-medium mb-2 mt-3 text-muted-foreground",children:e}),p:({children:e})=>P.jsx("p",{className:"mb-4 text-foreground leading-relaxed",children:e}),ul:({children:e})=>P.jsx("ul",{className:"list-disc list-inside mb-4 space-y-1 text-foreground",children:e}),ol:({children:e})=>P.jsx("ol",{className:"list-decimal list-inside mb-4 space-y-1 text-foreground",children:e}),li:({children:e})=>P.jsx("li",{className:"text-foreground leading-relaxed",children:e}),blockquote:({children:e})=>P.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?P.jsx("code",{className:"block bg-muted p-4 rounded-lg text-sm font-mono text-foreground overflow-x-auto",children:e}):P.jsx("code",{className:"bg-muted px-1.5 py-0.5 rounded text-sm font-mono text-foreground",children:e}),pre:({children:e})=>P.jsx("pre",{className:"bg-muted p-4 rounded-lg mb-4 overflow-x-auto",children:e}),table:({children:e})=>P.jsx("div",{className:"overflow-x-auto mb-4",children:P.jsx("table",{className:"min-w-full border-collapse border border-border",children:e})}),th:({children:e})=>P.jsx("th",{className:"border border-border bg-muted px-4 py-2 text-left font-semibold text-foreground",children:e}),td:({children:e})=>P.jsx("td",{className:"border border-border px-4 py-2 text-foreground",children:e}),hr:()=>P.jsx("hr",{className:"my-6 border-t border-border"}),a:({href:e,children:n})=>P.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})=>P.jsx("strong",{className:"font-bold text-foreground",children:e}),em:({children:e})=>P.jsx("em",{className:"italic text-foreground",children:e})},Nl=Q.forwardRef(({value:e,defaultValue:n=`# Markdown Editor
|
|
163
168
|
|
|
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},
|
|
169
|
+
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},j)=>{const[R,S]=Q.useState(n),[q,E]=Q.useState(i),U=e!==void 0,y=U?e:R,D=r!==void 0,N=D?r:q,G=Q.useRef(null),M=Q.useRef(null),L=Q.useRef(null),V=Q.useRef(null),ne=Q.useRef(null),[he,Ee]=Q.useState(!1),[d,ke]=Q.useState(!1);Q.useImperativeHandle(j,()=>({focus:()=>{var oe;(oe=G.current)==null||oe.focus()},getValue:()=>y}));const xe=Q.useCallback(oe=>{U||S(oe),t==null||t(oe)},[U,t]),m=Q.useCallback(oe=>{xe(oe.target.value)},[xe]),de=tm(G,xe),ae=Q.useCallback(oe=>{D||E(oe),l==null||l(oe)},[D,l]),te=Q.useCallback(oe=>{const ge=oe.currentTarget;if(M.current&&(M.current.scrollTop=ge.scrollTop,M.current.scrollLeft=ge.scrollLeft),!b||V.current==="preview")return;V.current="editor";const fe=L.current;if(fe){const He=ge.scrollHeight-ge.clientHeight,rt=He>0?ge.scrollTop/He:0;fe.scrollTop=rt*(fe.scrollHeight-fe.clientHeight)}ne.current&&clearTimeout(ne.current),ne.current=setTimeout(()=>{V.current=null},50)},[b]),$e=Q.useCallback(oe=>{if(!b||V.current==="editor")return;V.current="preview";const ge=oe.currentTarget,fe=G.current;if(fe){const He=ge.scrollHeight-ge.clientHeight,rt=He>0?ge.scrollTop/He:0;fe.scrollTop=rt*(fe.scrollHeight-fe.clientHeight),M.current&&(M.current.scrollTop=fe.scrollTop)}ne.current&&clearTimeout(ne.current),ne.current=setTimeout(()=>{V.current=null},50)},[b]),ze=Q.useCallback(async()=>{try{await navigator.clipboard.writeText(y),Ee(!0),setTimeout(()=>Ee(!1),2e3)}catch(oe){console.error("Failed to copy:",oe)}},[y]),se=Q.useCallback(()=>{const oe=new Blob([y],{type:"text/markdown"}),ge=URL.createObjectURL(oe),fe=document.createElement("a");fe.href=ge,fe.download="document.md",document.body.appendChild(fe),fe.click(),document.body.removeChild(fe),URL.revokeObjectURL(ge),ke(!0),setTimeout(()=>ke(!1),2e3)},[y]),je=Q.useMemo(()=>({...im,...T}),[T]);return P.jsxs(Zd,{className:`w-full h-full flex flex-col gap-0 py-0 ${o||""}`,children:[u?P.jsxs("div",{className:"flex items-center justify-between p-4 border-b bg-muted/50",children:[P.jsxs("div",{className:"flex items-center gap-2",children:[P.jsx("h2",{className:"text-lg font-semibold",children:"Markdown Editor"}),f?P.jsxs(Vd,{variant:"secondary",className:"text-xs",children:[y.length," characters"]}):null]}),P.jsxs("div",{className:"flex items-center gap-2",children:[P.jsxs("div",{className:"flex items-center border rounded-lg p-1",children:[P.jsxs(Pt,{variant:N==="edit"?"default":"ghost",size:"sm",onClick:()=>ae("edit"),className:"h-8 px-3",children:[P.jsx(jh,{className:"w-4 h-4 mr-1"}),"Edit"]}),P.jsxs(Pt,{variant:N==="split"?"default":"ghost",size:"sm",onClick:()=>ae("split"),className:"h-8 px-3",children:[P.jsx($h,{className:"w-4 h-4 mr-1"}),"Split"]}),P.jsxs(Pt,{variant:N==="preview"?"default":"ghost",size:"sm",onClick:()=>ae("preview"),className:"h-8 px-3",children:[P.jsx(_h,{className:"w-4 h-4 mr-1"}),"Preview"]})]}),P.jsx(Ll,{orientation:"vertical",className:"h-6"}),p?P.jsxs(Pt,{variant:"outline",size:"sm",onClick:ze,className:he?"text-green-600 dark:text-green-500 border-green-600 dark:border-green-500":"",children:[he?P.jsx(Xo,{className:"w-4 h-4 mr-1"}):P.jsx(Th,{className:"w-4 h-4 mr-1"}),he?"Copied!":"Copy"]}):null,h?P.jsxs(Pt,{variant:"outline",size:"sm",onClick:se,className:d?"text-green-600 dark:text-green-500 border-green-600 dark:border-green-500":"",children:[d?P.jsx(Xo,{className:"w-4 h-4 mr-1"}):P.jsx(Ah,{className:"w-4 h-4 mr-1"}),d?"Downloaded!":"Download"]}):null]})]}):null,P.jsx(Jd,{className:"flex-1 p-0 min-h-0 overflow-hidden",children:P.jsxs("div",{className:"flex h-full min-h-0",children:[N==="edit"||N==="split"?P.jsxs("div",{className:`${N==="split"?"w-1/2":"w-full"} border-r h-full min-h-0 flex flex-col ${a||""}`,children:[P.jsx("div",{className:"p-4 border-b bg-muted/30",children:P.jsx("h3",{className:"font-medium text-sm text-muted-foreground",children:"Syntax-Highlighted Editor"})}),c&&!k&&P.jsx(em,{actions:de}),P.jsxs("div",{className:"relative flex-1 w-full bg-transparent overflow-hidden",children:[P.jsx("div",{ref:M,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:rm(y,v)}}),P.jsx("textarea",{ref:G,value:y,onChange:m,onScroll:te,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 whitespace-pre-wrap wrap-break-word",style:{color:"transparent",caretColor:"var(--foreground, #d4d4d4)"}})]})]}):null,N==="preview"||N==="split"?P.jsxs("div",{className:`${N==="split"?"w-1/2":"w-full"} h-full min-h-0 flex flex-col ${s||""}`,children:[P.jsx("div",{className:"p-4 border-b bg-muted/30",children:P.jsx("h3",{className:"font-medium text-sm text-muted-foreground",children:"Preview"})}),P.jsx("div",{ref:L,onScroll:$e,className:"p-4 flex-1 overflow-auto min-h-0",children:P.jsx("div",{className:"prose prose-slate dark:prose-invert max-w-none",children:P.jsx(of,{components:je,remarkPlugins:[yh],children:y})})})]}):null]})})]})});Nl.displayName="MarkdownEditor",st.MarkdownEditor=Nl,Object.defineProperty(st,Symbol.toStringTag,{value:"Module"})}));
|