duoops 0.1.7 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +151 -63
- package/data/aws_machine_power_profiles.json +54 -0
- package/data/cpu_physical_specs.json +105 -0
- package/data/cpu_power_profiles.json +275 -0
- package/data/gcp_machine_power_profiles.json +1802 -0
- package/data/runtime-pue-mappings.json +183 -0
- package/dist/commands/ask.d.ts +3 -0
- package/dist/commands/ask.js +9 -3
- package/dist/commands/autofix-ci.d.ts +13 -0
- package/dist/commands/autofix-ci.js +114 -0
- package/dist/commands/autofix.d.ts +5 -0
- package/dist/commands/autofix.js +11 -0
- package/dist/commands/config.d.ts +10 -0
- package/dist/commands/config.js +47 -0
- package/dist/commands/init.js +50 -27
- package/dist/commands/mcp/deploy.d.ts +13 -0
- package/dist/commands/mcp/deploy.js +139 -0
- package/dist/commands/measure/calculate.js +2 -2
- package/dist/commands/portal.js +428 -11
- package/dist/lib/ai/agent.d.ts +6 -2
- package/dist/lib/ai/agent.js +51 -57
- package/dist/lib/ai/tools/editing.js +28 -13
- package/dist/lib/ai/tools/gitlab.d.ts +4 -0
- package/dist/lib/ai/tools/gitlab.js +166 -11
- package/dist/lib/ai/tools/measure.js +7 -3
- package/dist/lib/ai/tools/types.d.ts +3 -0
- package/dist/lib/ai/tools/types.js +1 -0
- package/dist/lib/config.d.ts +10 -0
- package/dist/lib/gcloud.d.ts +7 -0
- package/dist/lib/gcloud.js +105 -0
- package/dist/lib/gitlab/pipelines-service.d.ts +23 -0
- package/dist/lib/gitlab/pipelines-service.js +146 -0
- package/dist/lib/gitlab/runner-service.d.ts +11 -0
- package/dist/lib/gitlab/runner-service.js +15 -0
- package/dist/lib/portal/settings.d.ts +3 -0
- package/dist/lib/portal/settings.js +48 -0
- package/dist/lib/scaffold.d.ts +5 -0
- package/dist/lib/scaffold.js +32 -0
- package/dist/portal/assets/HomeDashboard-DlkwSyKx.js +1 -0
- package/dist/portal/assets/JobDetailsDrawer-7kXXMSH8.js +1 -0
- package/dist/portal/assets/JobsDashboard-D4pNc9TM.js +1 -0
- package/dist/portal/assets/MetricsDashboard-BcgzvzBz.js +1 -0
- package/dist/portal/assets/PipelinesDashboard-BNrSM9GB.js +1 -0
- package/dist/portal/assets/allPaths-CXDKahbk.js +1 -0
- package/dist/portal/assets/allPathsLoader-BF5PAx2c.js +2 -0
- package/dist/portal/assets/cache-YerT0Slh.js +6 -0
- package/dist/portal/assets/core-Cz8f3oSB.js +19 -0
- package/dist/portal/assets/{index-B6bzT1Vv.js → index-B9sNUqEC.js} +1 -1
- package/dist/portal/assets/index-BWa_E8Y7.css +1 -0
- package/dist/portal/assets/index-Bp4RqK05.js +1 -0
- package/dist/portal/assets/index-DW6Qp0d6.js +64 -0
- package/dist/portal/assets/index-Uc4Xhv31.js +1 -0
- package/dist/portal/assets/progressBar-C4SmnGeZ.js +1 -0
- package/dist/portal/assets/splitPathsBySizeLoader-C-T9_API.js +1 -0
- package/dist/portal/index.html +2 -2
- package/oclif.manifest.json +282 -93
- package/package.json +2 -1
- package/templates/.gitlab/duo/flows/duoops.yaml +114 -0
- package/templates/agents/agent.yml +45 -0
- package/templates/duoops-autofix-component.yml +52 -0
- package/templates/flows/flow.yml +283 -0
- package/dist/portal/assets/MetricsDashboard-DIsoz4Sl.js +0 -71
- package/dist/portal/assets/index-BP8FwWqA.css +0 -1
- package/dist/portal/assets/index-DkVG3jel.js +0 -70
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{o as Re,a as ee,f as $,m as v,s as de,c as $n,p as te,r as En,b as ue,d as fn,e as mr,g as M,h as dr,i as gr,j as mn,k as ne,n as Ce,l as Qe,q as yr,t as xr,v as Tt,u as kr}from"./index-CKvD-wbH.js";import{o as Pt,h as Je,q as Ke}from"./index-DkVG3jel.js";function br(e,n){const t={};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const wr=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Sr=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Er={};function Wn(e,n){return(Er.jsx?Sr:wr).test(e)}const Cr=/[ \t\n\f\r]/g;function Ir(e){return typeof e=="object"?e.type==="text"?Yn(e.value):!1:Yn(e)}function Yn(e){return e.replace(Cr,"")===""}class je{constructor(n,t,r){this.normal=t,this.property=n,r&&(this.space=r)}}je.prototype.normal={};je.prototype.property={};je.prototype.space=void 0;function At(e,n){const t={},r={};for(const i of e)Object.assign(t,i.property),Object.assign(r,i.normal);return new je(t,r,n)}function dn(e){return e.toLowerCase()}class J{constructor(n,t){this.attribute=t,this.property=n}}J.prototype.attribute="";J.prototype.booleanish=!1;J.prototype.boolean=!1;J.prototype.commaOrSpaceSeparated=!1;J.prototype.commaSeparated=!1;J.prototype.defined=!1;J.prototype.mustUseProperty=!1;J.prototype.number=!1;J.prototype.overloadedBoolean=!1;J.prototype.property="";J.prototype.spaceSeparated=!1;J.prototype.space=void 0;let Tr=0;const D=xe(),W=xe(),gn=xe(),x=xe(),q=xe(),Ie=xe(),Z=xe();function xe(){return 2**++Tr}const yn=Object.freeze(Object.defineProperty({__proto__:null,boolean:D,booleanish:W,commaOrSpaceSeparated:Z,commaSeparated:Ie,number:x,overloadedBoolean:gn,spaceSeparated:q},Symbol.toStringTag,{value:"Module"})),Ze=Object.keys(yn);class Cn extends J{constructor(n,t,r,i){let l=-1;if(super(n,t),Xn(this,"space",i),typeof r=="number")for(;++l<Ze.length;){const o=Ze[l];Xn(this,Ze[l],(r&yn[o])===yn[o])}}}Cn.prototype.defined=!0;function Xn(e,n,t){t&&(e[n]=t)}function Te(e){const n={},t={};for(const[r,i]of Object.entries(e.properties)){const l=new Cn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),n[r]=l,t[dn(r)]=r,t[dn(l.attribute)]=r}return new je(n,t,e.space)}const vt=Te({properties:{ariaActiveDescendant:null,ariaAtomic:W,ariaAutoComplete:null,ariaBusy:W,ariaChecked:W,ariaColCount:x,ariaColIndex:x,ariaColSpan:x,ariaControls:q,ariaCurrent:null,ariaDescribedBy:q,ariaDetails:null,ariaDisabled:W,ariaDropEffect:q,ariaErrorMessage:null,ariaExpanded:W,ariaFlowTo:q,ariaGrabbed:W,ariaHasPopup:null,ariaHidden:W,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:q,ariaLevel:x,ariaLive:null,ariaModal:W,ariaMultiLine:W,ariaMultiSelectable:W,ariaOrientation:null,ariaOwns:q,ariaPlaceholder:null,ariaPosInSet:x,ariaPressed:W,ariaReadOnly:W,ariaRelevant:null,ariaRequired:W,ariaRoleDescription:q,ariaRowCount:x,ariaRowIndex:x,ariaRowSpan:x,ariaSelected:W,ariaSetSize:x,ariaSort:null,ariaValueMax:x,ariaValueMin:x,ariaValueNow:x,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function zt(e,n){return n in e?e[n]:n}function Lt(e,n){return zt(e,n.toLowerCase())}const Pr=Te({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ie,acceptCharset:q,accessKey:q,action:null,allow:null,allowFullScreen:D,allowPaymentRequest:D,allowUserMedia:D,alt:null,as:null,async:D,autoCapitalize:null,autoComplete:q,autoFocus:D,autoPlay:D,blocking:q,capture:null,charSet:null,checked:D,cite:null,className:q,cols:x,colSpan:null,content:null,contentEditable:W,controls:D,controlsList:q,coords:x|Ie,crossOrigin:null,data:null,dateTime:null,decoding:null,default:D,defer:D,dir:null,dirName:null,disabled:D,download:gn,draggable:W,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:D,formTarget:null,headers:q,height:x,hidden:gn,high:x,href:null,hrefLang:null,htmlFor:q,httpEquiv:q,id:null,imageSizes:null,imageSrcSet:null,inert:D,inputMode:null,integrity:null,is:null,isMap:D,itemId:null,itemProp:q,itemRef:q,itemScope:D,itemType:q,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:D,low:x,manifest:null,max:null,maxLength:x,media:null,method:null,min:null,minLength:x,multiple:D,muted:D,name:null,nonce:null,noModule:D,noValidate:D,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:D,optimum:x,pattern:null,ping:q,placeholder:null,playsInline:D,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:D,referrerPolicy:null,rel:q,required:D,reversed:D,rows:x,rowSpan:x,sandbox:q,scope:null,scoped:D,seamless:D,selected:D,shadowRootClonable:D,shadowRootDelegatesFocus:D,shadowRootMode:null,shape:null,size:x,sizes:null,slot:null,span:x,spellCheck:W,src:null,srcDoc:null,srcLang:null,srcSet:null,start:x,step:null,style:null,tabIndex:x,target:null,title:null,translate:null,type:null,typeMustMatch:D,useMap:null,value:W,width:x,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:q,axis:null,background:null,bgColor:null,border:x,borderColor:null,bottomMargin:x,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:D,declare:D,event:null,face:null,frame:null,frameBorder:null,hSpace:x,leftMargin:x,link:null,longDesc:null,lowSrc:null,marginHeight:x,marginWidth:x,noResize:D,noHref:D,noShade:D,noWrap:D,object:null,profile:null,prompt:null,rev:null,rightMargin:x,rules:null,scheme:null,scrolling:W,standby:null,summary:null,text:null,topMargin:x,valueType:null,version:null,vAlign:null,vLink:null,vSpace:x,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:D,disableRemotePlayback:D,prefix:null,property:null,results:x,security:null,unselectable:null},space:"html",transform:Lt}),Ar=Te({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:Z,accentHeight:x,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:x,amplitude:x,arabicForm:null,ascent:x,attributeName:null,attributeType:null,azimuth:x,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:x,by:null,calcMode:null,capHeight:x,className:q,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:x,diffuseConstant:x,direction:null,display:null,dur:null,divisor:x,dominantBaseline:null,download:D,dx:null,dy:null,edgeMode:null,editable:null,elevation:x,enableBackground:null,end:null,event:null,exponent:x,externalResourcesRequired:null,fill:null,fillOpacity:x,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ie,g2:Ie,glyphName:Ie,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:x,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:x,horizOriginX:x,horizOriginY:x,id:null,ideographic:x,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:x,k:x,k1:x,k2:x,k3:x,k4:x,kernelMatrix:Z,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:x,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:x,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:x,overlineThickness:x,paintOrder:null,panose1:null,path:null,pathLength:x,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:q,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:x,pointsAtY:x,pointsAtZ:x,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Z,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Z,rev:Z,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Z,requiredFeatures:Z,requiredFonts:Z,requiredFormats:Z,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:x,specularExponent:x,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:x,strikethroughThickness:x,string:null,stroke:null,strokeDashArray:Z,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:x,strokeOpacity:x,strokeWidth:null,style:null,surfaceScale:x,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Z,tabIndex:x,tableValues:null,target:null,targetX:x,targetY:x,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Z,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:x,underlineThickness:x,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:x,values:null,vAlphabetic:x,vMathematical:x,vectorEffect:null,vHanging:x,vIdeographic:x,version:null,vertAdvY:x,vertOriginX:x,vertOriginY:x,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:x,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:zt}),Dt=Te({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()}}),Ot=Te({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Lt}),_t=Te({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),vr={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"},zr=/[A-Z]/g,Qn=/-[a-z]/g,Lr=/^data[-\w.:]+$/i;function Dr(e,n){const t=dn(n);let r=n,i=J;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&Lr.test(n)){if(n.charAt(4)==="-"){const l=n.slice(5).replace(Qn,_r);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=n.slice(4);if(!Qn.test(l)){let o=l.replace(zr,Or);o.charAt(0)!=="-"&&(o="-"+o),n="data"+o}}i=Cn}return new i(r,n)}function Or(e){return"-"+e.toLowerCase()}function _r(e){return e.charAt(1).toUpperCase()}const Rr=At([vt,Pr,Dt,Ot,_t],"html"),In=At([vt,Ar,Dt,Ot,_t],"svg");function Fr(e){return e.join(" ").trim()}var Se={},en,Gn;function Nr(){if(Gn)return en;Gn=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,t=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,a=/^\s+|\s+$/g,c=`
|
|
1
|
+
import{o as Re,a as ee,f as $,m as v,s as de,c as $n,p as te,r as En,b as ue,d as fn,e as mr,g as M,h as dr,i as gr,j as mn,k as ne,n as Ce,l as Qe,q as yr,t as xr,v as Tt,u as kr}from"./index-CKvD-wbH.js";import{k as Pt,r as Je,j as Ke}from"./index-DW6Qp0d6.js";function br(e,n){const t={};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const wr=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Sr=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Er={};function Wn(e,n){return(Er.jsx?Sr:wr).test(e)}const Cr=/[ \t\n\f\r]/g;function Ir(e){return typeof e=="object"?e.type==="text"?Yn(e.value):!1:Yn(e)}function Yn(e){return e.replace(Cr,"")===""}class je{constructor(n,t,r){this.normal=t,this.property=n,r&&(this.space=r)}}je.prototype.normal={};je.prototype.property={};je.prototype.space=void 0;function At(e,n){const t={},r={};for(const i of e)Object.assign(t,i.property),Object.assign(r,i.normal);return new je(t,r,n)}function dn(e){return e.toLowerCase()}class J{constructor(n,t){this.attribute=t,this.property=n}}J.prototype.attribute="";J.prototype.booleanish=!1;J.prototype.boolean=!1;J.prototype.commaOrSpaceSeparated=!1;J.prototype.commaSeparated=!1;J.prototype.defined=!1;J.prototype.mustUseProperty=!1;J.prototype.number=!1;J.prototype.overloadedBoolean=!1;J.prototype.property="";J.prototype.spaceSeparated=!1;J.prototype.space=void 0;let Tr=0;const D=xe(),W=xe(),gn=xe(),x=xe(),q=xe(),Ie=xe(),Z=xe();function xe(){return 2**++Tr}const yn=Object.freeze(Object.defineProperty({__proto__:null,boolean:D,booleanish:W,commaOrSpaceSeparated:Z,commaSeparated:Ie,number:x,overloadedBoolean:gn,spaceSeparated:q},Symbol.toStringTag,{value:"Module"})),Ze=Object.keys(yn);class Cn extends J{constructor(n,t,r,i){let l=-1;if(super(n,t),Xn(this,"space",i),typeof r=="number")for(;++l<Ze.length;){const o=Ze[l];Xn(this,Ze[l],(r&yn[o])===yn[o])}}}Cn.prototype.defined=!0;function Xn(e,n,t){t&&(e[n]=t)}function Te(e){const n={},t={};for(const[r,i]of Object.entries(e.properties)){const l=new Cn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),n[r]=l,t[dn(r)]=r,t[dn(l.attribute)]=r}return new je(n,t,e.space)}const vt=Te({properties:{ariaActiveDescendant:null,ariaAtomic:W,ariaAutoComplete:null,ariaBusy:W,ariaChecked:W,ariaColCount:x,ariaColIndex:x,ariaColSpan:x,ariaControls:q,ariaCurrent:null,ariaDescribedBy:q,ariaDetails:null,ariaDisabled:W,ariaDropEffect:q,ariaErrorMessage:null,ariaExpanded:W,ariaFlowTo:q,ariaGrabbed:W,ariaHasPopup:null,ariaHidden:W,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:q,ariaLevel:x,ariaLive:null,ariaModal:W,ariaMultiLine:W,ariaMultiSelectable:W,ariaOrientation:null,ariaOwns:q,ariaPlaceholder:null,ariaPosInSet:x,ariaPressed:W,ariaReadOnly:W,ariaRelevant:null,ariaRequired:W,ariaRoleDescription:q,ariaRowCount:x,ariaRowIndex:x,ariaRowSpan:x,ariaSelected:W,ariaSetSize:x,ariaSort:null,ariaValueMax:x,ariaValueMin:x,ariaValueNow:x,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function zt(e,n){return n in e?e[n]:n}function Lt(e,n){return zt(e,n.toLowerCase())}const Pr=Te({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ie,acceptCharset:q,accessKey:q,action:null,allow:null,allowFullScreen:D,allowPaymentRequest:D,allowUserMedia:D,alt:null,as:null,async:D,autoCapitalize:null,autoComplete:q,autoFocus:D,autoPlay:D,blocking:q,capture:null,charSet:null,checked:D,cite:null,className:q,cols:x,colSpan:null,content:null,contentEditable:W,controls:D,controlsList:q,coords:x|Ie,crossOrigin:null,data:null,dateTime:null,decoding:null,default:D,defer:D,dir:null,dirName:null,disabled:D,download:gn,draggable:W,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:D,formTarget:null,headers:q,height:x,hidden:gn,high:x,href:null,hrefLang:null,htmlFor:q,httpEquiv:q,id:null,imageSizes:null,imageSrcSet:null,inert:D,inputMode:null,integrity:null,is:null,isMap:D,itemId:null,itemProp:q,itemRef:q,itemScope:D,itemType:q,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:D,low:x,manifest:null,max:null,maxLength:x,media:null,method:null,min:null,minLength:x,multiple:D,muted:D,name:null,nonce:null,noModule:D,noValidate:D,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:D,optimum:x,pattern:null,ping:q,placeholder:null,playsInline:D,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:D,referrerPolicy:null,rel:q,required:D,reversed:D,rows:x,rowSpan:x,sandbox:q,scope:null,scoped:D,seamless:D,selected:D,shadowRootClonable:D,shadowRootDelegatesFocus:D,shadowRootMode:null,shape:null,size:x,sizes:null,slot:null,span:x,spellCheck:W,src:null,srcDoc:null,srcLang:null,srcSet:null,start:x,step:null,style:null,tabIndex:x,target:null,title:null,translate:null,type:null,typeMustMatch:D,useMap:null,value:W,width:x,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:q,axis:null,background:null,bgColor:null,border:x,borderColor:null,bottomMargin:x,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:D,declare:D,event:null,face:null,frame:null,frameBorder:null,hSpace:x,leftMargin:x,link:null,longDesc:null,lowSrc:null,marginHeight:x,marginWidth:x,noResize:D,noHref:D,noShade:D,noWrap:D,object:null,profile:null,prompt:null,rev:null,rightMargin:x,rules:null,scheme:null,scrolling:W,standby:null,summary:null,text:null,topMargin:x,valueType:null,version:null,vAlign:null,vLink:null,vSpace:x,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:D,disableRemotePlayback:D,prefix:null,property:null,results:x,security:null,unselectable:null},space:"html",transform:Lt}),Ar=Te({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:Z,accentHeight:x,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:x,amplitude:x,arabicForm:null,ascent:x,attributeName:null,attributeType:null,azimuth:x,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:x,by:null,calcMode:null,capHeight:x,className:q,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:x,diffuseConstant:x,direction:null,display:null,dur:null,divisor:x,dominantBaseline:null,download:D,dx:null,dy:null,edgeMode:null,editable:null,elevation:x,enableBackground:null,end:null,event:null,exponent:x,externalResourcesRequired:null,fill:null,fillOpacity:x,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ie,g2:Ie,glyphName:Ie,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:x,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:x,horizOriginX:x,horizOriginY:x,id:null,ideographic:x,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:x,k:x,k1:x,k2:x,k3:x,k4:x,kernelMatrix:Z,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:x,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:x,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:x,overlineThickness:x,paintOrder:null,panose1:null,path:null,pathLength:x,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:q,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:x,pointsAtY:x,pointsAtZ:x,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Z,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Z,rev:Z,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Z,requiredFeatures:Z,requiredFonts:Z,requiredFormats:Z,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:x,specularExponent:x,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:x,strikethroughThickness:x,string:null,stroke:null,strokeDashArray:Z,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:x,strokeOpacity:x,strokeWidth:null,style:null,surfaceScale:x,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Z,tabIndex:x,tableValues:null,target:null,targetX:x,targetY:x,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Z,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:x,underlineThickness:x,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:x,values:null,vAlphabetic:x,vMathematical:x,vectorEffect:null,vHanging:x,vIdeographic:x,version:null,vertAdvY:x,vertOriginX:x,vertOriginY:x,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:x,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:zt}),Dt=Te({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()}}),Ot=Te({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Lt}),_t=Te({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),vr={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"},zr=/[A-Z]/g,Qn=/-[a-z]/g,Lr=/^data[-\w.:]+$/i;function Dr(e,n){const t=dn(n);let r=n,i=J;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&Lr.test(n)){if(n.charAt(4)==="-"){const l=n.slice(5).replace(Qn,_r);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=n.slice(4);if(!Qn.test(l)){let o=l.replace(zr,Or);o.charAt(0)!=="-"&&(o="-"+o),n="data"+o}}i=Cn}return new i(r,n)}function Or(e){return"-"+e.toLowerCase()}function _r(e){return e.charAt(1).toUpperCase()}const Rr=At([vt,Pr,Dt,Ot,_t],"html"),In=At([vt,Ar,Dt,Ot,_t],"svg");function Fr(e){return e.join(" ").trim()}var Se={},en,Gn;function Nr(){if(Gn)return en;Gn=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,t=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,a=/^\s+|\s+$/g,c=`
|
|
2
2
|
`,u="/",s="*",h="",d="comment",p="declaration";function w(I,k){if(typeof I!="string")throw new TypeError("First argument must be a string");if(!I)return[];k=k||{};var z=1,E=1;function B(A){var S=A.match(n);S&&(z+=S.length);var N=A.lastIndexOf(c);E=~N?A.length-N:E+A.length}function H(){var A={line:z,column:E};return function(S){return S.position=new y(A),R(),S}}function y(A){this.start=A,this.end={line:z,column:E},this.source=k.source}y.prototype.content=I;function _(A){var S=new Error(k.source+":"+z+":"+E+": "+A);if(S.reason=A,S.filename=k.source,S.line=z,S.column=E,S.source=I,!k.silent)throw S}function U(A){var S=A.exec(I);if(S){var N=S[0];return B(N),I=I.slice(N.length),S}}function R(){U(t)}function F(A){var S;for(A=A||[];S=P();)S!==!1&&A.push(S);return A}function P(){var A=H();if(!(u!=I.charAt(0)||s!=I.charAt(1))){for(var S=2;h!=I.charAt(S)&&(s!=I.charAt(S)||u!=I.charAt(S+1));)++S;if(S+=2,h===I.charAt(S-1))return _("End of comment missing");var N=I.slice(2,S-2);return E+=2,B(N),I=I.slice(S),E+=2,A({type:d,comment:N})}}function T(){var A=H(),S=U(r);if(S){if(P(),!U(i))return _("property missing ':'");var N=U(l),Y=A({type:p,property:C(S[0].replace(e,h)),value:N?C(N[0].replace(e,h)):h});return U(o),Y}}function V(){var A=[];F(A);for(var S;S=T();)S!==!1&&(A.push(S),F(A));return A}return R(),V()}function C(I){return I?I.replace(a,h):h}return en=w,en}var Jn;function Mr(){if(Jn)return Se;Jn=1;var e=Se&&Se.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Se,"__esModule",{value:!0}),Se.default=t;const n=e(Nr());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(c=>{if(c.type!=="declaration")return;const{property:u,value:s}=c;a?i(u,s,c):s&&(l=l||{},l[u]=s)}),l}return Se}var Le={},Kn;function Br(){if(Kn)return Le;Kn=1,Object.defineProperty(Le,"__esModule",{value:!0}),Le.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,s){return s.toUpperCase()},a=function(u,s){return"".concat(s,"-")},c=function(u,s){return s===void 0&&(s={}),l(u)?u:(u=u.toLowerCase(),s.reactCompat?u=u.replace(i,a):u=u.replace(r,a),u.replace(n,o))};return Le.camelCase=c,Le}var De,Zn;function jr(){if(Zn)return De;Zn=1;var e=De&&De.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},n=e(Mr()),t=Br();function r(i,l){var o={};return!i||typeof i!="string"||(0,n.default)(i,function(a,c){a&&c&&(o[(0,t.camelCase)(a,l)]=c)}),o}return r.default=r,De=r,De}var Hr=jr();const Ur=Pt(Hr),Rt=Ft("end"),Tn=Ft("start");function Ft(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 Vr(e){const n=Tn(e),t=Rt(e);if(n&&t)return{start:n,end:t}}function Fe(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?et(e.position):"start"in e||"end"in e?et(e):"line"in e||"column"in e?xn(e):""}function xn(e){return nt(e&&e.line)+":"+nt(e&&e.column)}function et(e){return xn(e&&e.start)+"-"+xn(e&&e.end)}function nt(e){return e&&typeof e=="number"?e:1}class Q 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 c=r.indexOf(":");c===-1?l.ruleId=r:(l.source=r.slice(0,c),l.ruleId=r.slice(c+1))}if(!l.place&&l.ancestors&&l.ancestors){const c=l.ancestors[l.ancestors.length-1];c&&(l.place=c.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=Fe(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}}Q.prototype.file="";Q.prototype.name="";Q.prototype.reason="";Q.prototype.message="";Q.prototype.stack="";Q.prototype.column=void 0;Q.prototype.line=void 0;Q.prototype.ancestors=void 0;Q.prototype.cause=void 0;Q.prototype.fatal=void 0;Q.prototype.place=void 0;Q.prototype.ruleId=void 0;Q.prototype.source=void 0;const Pn={}.hasOwnProperty,qr=new Map,$r=/[A-Z]/g,Wr=new Set(["table","tbody","thead","tfoot","tr"]),Yr=new Set(["td","th"]),Nt="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Xr(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=ti(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=ni(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"?In:Rr,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},l=Mt(i,e,void 0);return l&&typeof l!="string"?l:i.create(e,i.Fragment,{children:l||void 0},void 0)}function Mt(e,n,t){if(n.type==="element")return Qr(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return Gr(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return Kr(e,n,t);if(n.type==="mdxjsEsm")return Jr(e,n);if(n.type==="root")return Zr(e,n,t);if(n.type==="text")return ei(e,n)}function Qr(e,n,t){const r=e.schema;let i=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=In,e.schema=i),e.ancestors.push(n);const l=jt(e,n.tagName,!1),o=ri(e,n);let a=vn(e,n);return Wr.has(n.tagName)&&(a=a.filter(function(c){return typeof c=="string"?!Ir(c):!0})),Bt(e,o,l,n),An(o,a),e.ancestors.pop(),e.schema=r,e.create(n,l,o,t)}function Gr(e,n){if(n.data&&n.data.estree&&e.evaluater){const r=n.data.estree.body[0];return Re(r.type==="ExpressionStatement"),e.evaluater.evaluateExpression(r.expression)}Be(e,n.position)}function Jr(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);Be(e,n.position)}function Kr(e,n,t){const r=e.schema;let i=r;n.name==="svg"&&r.space==="html"&&(i=In,e.schema=i),e.ancestors.push(n);const l=n.name===null?e.Fragment:jt(e,n.name,!0),o=ii(e,n),a=vn(e,n);return Bt(e,o,l,n),An(o,a),e.ancestors.pop(),e.schema=r,e.create(n,l,o,t)}function Zr(e,n,t){const r={};return An(r,vn(e,n)),e.create(n,e.Fragment,r,t)}function ei(e,n){return n.value}function Bt(e,n,t,r){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=r)}function An(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function ni(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 ti(e,n){return t;function t(r,i,l,o){const a=Array.isArray(l.children),c=Tn(r);return n(i,l,o,a,{columnNumber:c?c.column-1:void 0,fileName:e,lineNumber:c?c.line:void 0},void 0)}}function ri(e,n){const t={};let r,i;for(i in n.properties)if(i!=="children"&&Pn.call(n.properties,i)){const l=li(e,i,n.properties[i]);if(l){const[o,a]=l;e.tableCellAlignToStyle&&o==="align"&&typeof a=="string"&&Yr.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 ii(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];Re(l.type==="ExpressionStatement");const o=l.expression;Re(o.type==="ObjectExpression");const a=o.properties[0];Re(a.type==="SpreadElement"),Object.assign(t,e.evaluater.evaluateExpression(a.argument))}else Be(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];Re(a.type==="ExpressionStatement"),l=e.evaluater.evaluateExpression(a.expression)}else Be(e,n.position);else l=r.value===null?!0:r.value;t[i]=l}return t}function vn(e,n){const t=[];let r=-1;const i=e.passKeys?new Map:qr;for(;++r<n.children.length;){const l=n.children[r];let o;if(e.passKeys){const c=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(c){const u=i.get(c)||0;o=c+"-"+u,i.set(c,u+1)}}const a=Mt(e,l,o);a!==void 0&&t.push(a)}return t}function li(e,n,t){const r=Dr(e.schema,n);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=r.commaSeparated?br(t):Fr(t)),r.property==="style"){let i=typeof t=="object"?t:oi(e,String(t));return e.stylePropertyNameCase==="css"&&(i=ai(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?vr[r.property]||r.property:r.attribute,t]}}function oi(e,n){try{return Ur(n,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const r=t,i=new Q("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=Nt+"#cannot-parse-style-attribute",i}}function jt(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=Wn(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=Wn(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(r.type==="Literal"){const i=r.value;return Pn.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Be(e)}function Be(e,n){const t=new Q("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=Nt+"#cannot-handle-mdx-estrees-without-createevaluater",t}function ai(e){const n={};let t;for(t in e)Pn.call(e,t)&&(n[ui(t)]=e[t]);return n}function ui(e){let n=e.replace($r,si);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function si(e){return"-"+e.toLowerCase()}const nn={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"]},tt=document.createElement("i");function zn(e){const n="&"+e+";";tt.innerHTML=n;const t=tt.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function Ht(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 Pe(e){const n=[];let t=-1,r=0,i=0;for(;++t<e.length;){const l=e.charCodeAt(t);let o="";if(l===37&&ee(e.charCodeAt(t+1))&&ee(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)}const ci={tokenize:pi};function pi(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"),$(e,n,"linePrefix")}function i(a){return e.enter("paragraph"),l(a)}function l(a){const c=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=c),t=c,o(a)}function o(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return v(a)?(e.consume(a),e.exit("chunkText"),l):(e.consume(a),o)}}const hi={tokenize:fi},rt={tokenize:mi};function fi(e){const n=this,t=[];let r=0,i,l,o;return a;function a(E){if(r<t.length){const B=t[r];return n.containerState=B[1],e.attempt(B[0].continuation,c,u)(E)}return u(E)}function c(E){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&z();const B=n.events.length;let H=B,y;for(;H--;)if(n.events[H][0]==="exit"&&n.events[H][1].type==="chunkFlow"){y=n.events[H][1].end;break}k(r);let _=B;for(;_<n.events.length;)n.events[_][1].end={...y},_++;return de(n.events,H+1,0,n.events.slice(B)),n.events.length=_,u(E)}return a(E)}function u(E){if(r===t.length){if(!i)return d(E);if(i.currentConstruct&&i.currentConstruct.concrete)return w(E);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(rt,s,h)(E)}function s(E){return i&&z(),k(r),d(E)}function h(E){return n.parser.lazy[n.now().line]=r!==t.length,o=n.now().offset,w(E)}function d(E){return n.containerState={},e.attempt(rt,p,w)(E)}function p(E){return r++,t.push([n.currentConstruct,n.containerState]),d(E)}function w(E){if(E===null){i&&z(),k(0),e.consume(E);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:l}),C(E)}function C(E){if(E===null){I(e.exit("chunkFlow"),!0),k(0),e.consume(E);return}return v(E)?(e.consume(E),I(e.exit("chunkFlow")),r=0,n.interrupt=void 0,a):(e.consume(E),C)}function I(E,B){const H=n.sliceStream(E);if(B&&H.push(null),E.previous=l,l&&(l.next=E),l=E,i.defineSkip(E.start),i.write(H),n.parser.lazy[E.start.line]){let y=i.events.length;for(;y--;)if(i.events[y][1].start.offset<o&&(!i.events[y][1].end||i.events[y][1].end.offset>o))return;const _=n.events.length;let U=_,R,F;for(;U--;)if(n.events[U][0]==="exit"&&n.events[U][1].type==="chunkFlow"){if(R){F=n.events[U][1].end;break}R=!0}for(k(r),y=_;y<n.events.length;)n.events[y][1].end={...F},y++;de(n.events,U+1,0,n.events.slice(_)),n.events.length=y}}function k(E){let B=t.length;for(;B-- >E;){const H=t[B];n.containerState=H[1],H[0].exit.call(n,e)}t.length=E}function z(){i.write([null]),l=void 0,i=void 0,n.containerState._closeFlow=void 0}}function mi(e,n,t){return $(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const kn={name:"attention",resolveAll:di,tokenize:gi};function di(e,n){let t=-1,r,i,l,o,a,c,u,s;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;c=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 h={...e[r][1].end},d={...e[t][1].start};it(h,-c),it(d,c),o={type:c>1?"strongSequence":"emphasisSequence",start:h,end:{...e[r][1].end}},a={type:c>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:d},l={type:c>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[t][1].start}},i={type:c>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=te(u,[["enter",e[r][1],n],["exit",e[r][1],n]])),u=te(u,[["enter",i,n],["enter",o,n],["exit",o,n],["enter",l,n]]),u=te(u,En(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),u=te(u,[["exit",l,n],["enter",a,n],["exit",a,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(s=2,u=te(u,[["enter",e[t][1],n],["exit",e[t][1],n]])):s=0,de(e,r-1,t-r+3,u),t=r+u.length-s-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function gi(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=$n(r);let l;return o;function o(c){return l=c,e.enter("attentionSequence"),a(c)}function a(c){if(c===l)return e.consume(c),a;const u=e.exit("attentionSequence"),s=$n(c),h=!s||s===2&&i||t.includes(c),d=!i||i===2&&s||t.includes(r);return u._open=!!(l===42?h:h&&(i||!d)),u._close=!!(l===42?d:d&&(s||!h)),n(c)}}function it(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const yi={name:"autolink",tokenize:xi};function xi(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 ue(p)?(e.consume(p),o):p===64?t(p):u(p)}function o(p){return p===43||p===45||p===46||ee(p)?(r=1,a(p)):u(p)}function a(p){return p===58?(e.consume(p),r=0,c):(p===43||p===45||p===46||ee(p))&&r++<32?(e.consume(p),a):(r=0,u(p))}function c(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||fn(p)?t(p):(e.consume(p),c)}function u(p){return p===64?(e.consume(p),s):mr(p)?(e.consume(p),u):t(p)}function s(p){return ee(p)?h(p):t(p)}function h(p){return p===46?(e.consume(p),r=0,s):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),n):d(p)}function d(p){if((p===45||ee(p))&&r++<63){const w=p===45?d:h;return e.consume(p),w}return t(p)}}const Ut={continuation:{tokenize:bi},exit:wi,name:"blockQuote",tokenize:ki};function ki(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 M(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(o))}}function bi(e,n,t){const r=this;return i;function i(o){return M(o)?$(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):l(o)}function l(o){return e.attempt(Ut,n,t)(o)}}function wi(e){e.exit("blockQuote")}const Vt={name:"characterEscape",tokenize:Si};function Si(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 dr(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(l)}}const qt={name:"characterReference",tokenize:Ei};function Ei(e,n,t){const r=this;let i=0,l,o;return a;function a(h){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),c}function c(h){return h===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(h),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),l=31,o=ee,s(h))}function u(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,o=gr,s):(e.enter("characterReferenceValue"),l=7,o=mn,s(h))}function s(h){if(h===59&&i){const d=e.exit("characterReferenceValue");return o===ee&&!zn(r.sliceSerialize(d))?t(h):(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return o(h)&&i++<l?(e.consume(h),s):t(h)}}const lt={partial:!0,tokenize:Ii},ot={concrete:!0,name:"codeFenced",tokenize:Ci};function Ci(e,n,t){const r=this,i={partial:!0,tokenize:H};let l=0,o=0,a;return c;function c(y){return u(y)}function u(y){const _=r.events[r.events.length-1];return l=_&&_[1].type==="linePrefix"?_[2].sliceSerialize(_[1],!0).length:0,a=y,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),s(y)}function s(y){return y===a?(o++,e.consume(y),s):o<3?t(y):(e.exit("codeFencedFenceSequence"),M(y)?$(e,h,"whitespace")(y):h(y))}function h(y){return y===null||v(y)?(e.exit("codeFencedFence"),r.interrupt?n(y):e.check(lt,C,B)(y)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(y))}function d(y){return y===null||v(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),h(y)):M(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),$(e,p,"whitespace")(y)):y===96&&y===a?t(y):(e.consume(y),d)}function p(y){return y===null||v(y)?h(y):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),w(y))}function w(y){return y===null||v(y)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(y)):y===96&&y===a?t(y):(e.consume(y),w)}function C(y){return e.attempt(i,B,I)(y)}function I(y){return e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),k}function k(y){return l>0&&M(y)?$(e,z,"linePrefix",l+1)(y):z(y)}function z(y){return y===null||v(y)?e.check(lt,C,B)(y):(e.enter("codeFlowValue"),E(y))}function E(y){return y===null||v(y)?(e.exit("codeFlowValue"),z(y)):(e.consume(y),E)}function B(y){return e.exit("codeFenced"),n(y)}function H(y,_,U){let R=0;return F;function F(S){return y.enter("lineEnding"),y.consume(S),y.exit("lineEnding"),P}function P(S){return y.enter("codeFencedFence"),M(S)?$(y,T,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(S):T(S)}function T(S){return S===a?(y.enter("codeFencedFenceSequence"),V(S)):U(S)}function V(S){return S===a?(R++,y.consume(S),V):R>=o?(y.exit("codeFencedFenceSequence"),M(S)?$(y,A,"whitespace")(S):A(S)):U(S)}function A(S){return S===null||v(S)?(y.exit("codeFencedFence"),_(S)):U(S)}}}function Ii(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 tn={name:"codeIndented",tokenize:Pi},Ti={partial:!0,tokenize:Ai};function Pi(e,n,t){const r=this;return i;function i(u){return e.enter("codeIndented"),$(e,l,"linePrefix",5)(u)}function l(u){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?o(u):t(u)}function o(u){return u===null?c(u):v(u)?e.attempt(Ti,o,c)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||v(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),a)}function c(u){return e.exit("codeIndented"),n(u)}}function Ai(e,n,t){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?t(o):v(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):$(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):v(o)?i(o):t(o)}}const vi={name:"codeText",previous:Li,resolve:zi,tokenize:Di};function zi(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 Li(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Di(e,n,t){let r=0,i,l;return o;function o(h){return e.enter("codeText"),e.enter("codeTextSequence"),a(h)}function a(h){return h===96?(e.consume(h),r++,a):(e.exit("codeTextSequence"),c(h))}function c(h){return h===null?t(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),c):h===96?(l=e.enter("codeTextSequence"),i=0,s(h)):v(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("codeTextData"),u(h))}function u(h){return h===null||h===32||h===96||v(h)?(e.exit("codeTextData"),c(h)):(e.consume(h),u)}function s(h){return h===96?(e.consume(h),i++,s):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(h)):(l.type="codeTextData",u(h))}}class Oi{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&&Oe(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),Oe(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Oe(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);Oe(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);Oe(this.left,t.reverse())}}}function Oe(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 $t(e){const n={};let t=-1,r,i,l,o,a,c,u;const s=new Oi(e);for(;++t<s.length;){for(;t in n;)t=n[t];if(r=s.get(t),t&&r[1].type==="chunkFlow"&&s.get(t-1)[1].type==="listItemPrefix"&&(c=r[1]._tokenizer.events,l=0,l<c.length&&c[l][1].type==="lineEndingBlank"&&(l+=2),l<c.length&&c[l][1].type==="content"))for(;++l<c.length&&c[l][1].type!=="content";)c[l][1].type==="chunkText"&&(c[l][1]._isInFirstContentOfListItem=!0,l++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,_i(s,t)),t=n[t],u=!0);else if(r[1]._container){for(l=t,i=void 0;l--;)if(o=s.get(l),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(s.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={...s.get(i)[1].start},a=s.slice(i,t),a.unshift(r),s.splice(i,t-i+1,a))}}return de(e,0,Number.POSITIVE_INFINITY,s.slice(0)),!u}function _i(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,c=[],u={};let s,h,d=-1,p=t,w=0,C=0;const I=[C];for(;p;){for(;e.get(++i)[1]!==p;);l.push(i),p._tokenizer||(s=r.sliceStream(p),p.next||s.push(null),h&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(s),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),h=p,p=p.next}for(p=t;++d<a.length;)a[d][0]==="exit"&&a[d-1][0]==="enter"&&a[d][1].type===a[d-1][1].type&&a[d][1].start.line!==a[d][1].end.line&&(C=d+1,I.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):I.pop(),d=I.length;d--;){const k=a.slice(I[d],I[d+1]),z=l.pop();c.push([z,z+k.length-1]),e.splice(z,2,k)}for(c.reverse(),d=-1;++d<c.length;)u[w+c[d][0]]=w+c[d][1],w+=c[d][1]-c[d][0]-1;return u}const Ri={resolve:Ni,tokenize:Mi},Fi={partial:!0,tokenize:Bi};function Ni(e){return $t(e),e}function Mi(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):v(a)?e.check(Fi,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 Bi(e,n,t){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),$(e,l,"linePrefix")}function l(o){if(o===null||v(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 Wt(e,n,t,r,i,l,o,a,c){const u=c||Number.POSITIVE_INFINITY;let s=0;return h;function h(k){return k===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(k),e.exit(l),d):k===null||k===32||k===41||fn(k)?t(k):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),C(k))}function d(k){return k===62?(e.enter(l),e.consume(k),e.exit(l),e.exit(i),e.exit(r),n):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(k))}function p(k){return k===62?(e.exit("chunkString"),e.exit(a),d(k)):k===null||k===60||v(k)?t(k):(e.consume(k),k===92?w:p)}function w(k){return k===60||k===62||k===92?(e.consume(k),p):p(k)}function C(k){return!s&&(k===null||k===41||ne(k))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),n(k)):s<u&&k===40?(e.consume(k),s++,C):k===41?(e.consume(k),s--,C):k===null||k===32||k===40||fn(k)?t(k):(e.consume(k),k===92?I:C)}function I(k){return k===40||k===41||k===92?(e.consume(k),C):C(k)}}function Yt(e,n,t,r,i,l){const o=this;let a=0,c;return u;function u(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(l),s}function s(p){return a>999||p===null||p===91||p===93&&!c||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):v(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),s):(e.enter("chunkString",{contentType:"string"}),h(p))}function h(p){return p===null||p===91||p===93||v(p)||a++>999?(e.exit("chunkString"),s(p)):(e.consume(p),c||(c=!M(p)),p===92?d:h)}function d(p){return p===91||p===92||p===93?(e.consume(p),a++,h):h(p)}}function Xt(e,n,t,r,i,l){let o;return a;function a(d){return d===34||d===39||d===40?(e.enter(r),e.enter(i),e.consume(d),e.exit(i),o=d===40?41:d,c):t(d)}function c(d){return d===o?(e.enter(i),e.consume(d),e.exit(i),e.exit(r),n):(e.enter(l),u(d))}function u(d){return d===o?(e.exit(l),c(o)):d===null?t(d):v(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),$(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),s(d))}function s(d){return d===o||d===null||v(d)?(e.exit("chunkString"),u(d)):(e.consume(d),d===92?h:s)}function h(d){return d===o||d===92?(e.consume(d),s):s(d)}}function Ne(e,n){let t;return r;function r(i){return v(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):M(i)?$(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const ji={name:"definition",tokenize:Ui},Hi={partial:!0,tokenize:Vi};function Ui(e,n,t){const r=this;let i;return l;function l(p){return e.enter("definition"),o(p)}function o(p){return Yt.call(r,e,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return i=Ce(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),c):t(p)}function c(p){return ne(p)?Ne(e,u)(p):u(p)}function u(p){return Wt(e,s,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function s(p){return e.attempt(Hi,h,h)(p)}function h(p){return M(p)?$(e,d,"whitespace")(p):d(p)}function d(p){return p===null||v(p)?(e.exit("definition"),r.parser.defined.push(i),n(p)):t(p)}}function Vi(e,n,t){return r;function r(a){return ne(a)?Ne(e,i)(a):t(a)}function i(a){return Xt(e,l,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function l(a){return M(a)?$(e,o,"whitespace")(a):o(a)}function o(a){return a===null||v(a)?n(a):t(a)}}const qi={name:"hardBreakEscape",tokenize:$i};function $i(e,n,t){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return v(l)?(e.exit("hardBreakEscape"),n(l)):t(l)}}const Wi={name:"headingAtx",resolve:Yi,tokenize:Xi};function Yi(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"},de(e,r,t-r+1,[["enter",i,n],["enter",l,n],["exit",l,n],["exit",i,n]])),e}function Xi(e,n,t){let r=0;return i;function i(s){return e.enter("atxHeading"),l(s)}function l(s){return e.enter("atxHeadingSequence"),o(s)}function o(s){return s===35&&r++<6?(e.consume(s),o):s===null||ne(s)?(e.exit("atxHeadingSequence"),a(s)):t(s)}function a(s){return s===35?(e.enter("atxHeadingSequence"),c(s)):s===null||v(s)?(e.exit("atxHeading"),n(s)):M(s)?$(e,a,"whitespace")(s):(e.enter("atxHeadingText"),u(s))}function c(s){return s===35?(e.consume(s),c):(e.exit("atxHeadingSequence"),a(s))}function u(s){return s===null||s===35||ne(s)?(e.exit("atxHeadingText"),a(s)):(e.consume(s),u)}}const Qi=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],at=["pre","script","style","textarea"],Gi={concrete:!0,name:"htmlFlow",resolveTo:Zi,tokenize:el},Ji={partial:!0,tokenize:tl},Ki={partial:!0,tokenize:nl};function Zi(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 el(e,n,t){const r=this;let i,l,o,a,c;return u;function u(m){return s(m)}function s(m){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(m),h}function h(m){return m===33?(e.consume(m),d):m===47?(e.consume(m),l=!0,C):m===63?(e.consume(m),i=3,r.interrupt?n:f):ue(m)?(e.consume(m),o=String.fromCharCode(m),I):t(m)}function d(m){return m===45?(e.consume(m),i=2,p):m===91?(e.consume(m),i=5,a=0,w):ue(m)?(e.consume(m),i=4,r.interrupt?n:f):t(m)}function p(m){return m===45?(e.consume(m),r.interrupt?n:f):t(m)}function w(m){const le="CDATA[";return m===le.charCodeAt(a++)?(e.consume(m),a===le.length?r.interrupt?n:T:w):t(m)}function C(m){return ue(m)?(e.consume(m),o=String.fromCharCode(m),I):t(m)}function I(m){if(m===null||m===47||m===62||ne(m)){const le=m===47,ge=o.toLowerCase();return!le&&!l&&at.includes(ge)?(i=1,r.interrupt?n(m):T(m)):Qi.includes(o.toLowerCase())?(i=6,le?(e.consume(m),k):r.interrupt?n(m):T(m)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(m):l?z(m):E(m))}return m===45||ee(m)?(e.consume(m),o+=String.fromCharCode(m),I):t(m)}function k(m){return m===62?(e.consume(m),r.interrupt?n:T):t(m)}function z(m){return M(m)?(e.consume(m),z):F(m)}function E(m){return m===47?(e.consume(m),F):m===58||m===95||ue(m)?(e.consume(m),B):M(m)?(e.consume(m),E):F(m)}function B(m){return m===45||m===46||m===58||m===95||ee(m)?(e.consume(m),B):H(m)}function H(m){return m===61?(e.consume(m),y):M(m)?(e.consume(m),H):E(m)}function y(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),c=m,_):M(m)?(e.consume(m),y):U(m)}function _(m){return m===c?(e.consume(m),c=null,R):m===null||v(m)?t(m):(e.consume(m),_)}function U(m){return m===null||m===34||m===39||m===47||m===60||m===61||m===62||m===96||ne(m)?H(m):(e.consume(m),U)}function R(m){return m===47||m===62||M(m)?E(m):t(m)}function F(m){return m===62?(e.consume(m),P):t(m)}function P(m){return m===null||v(m)?T(m):M(m)?(e.consume(m),P):t(m)}function T(m){return m===45&&i===2?(e.consume(m),N):m===60&&i===1?(e.consume(m),Y):m===62&&i===4?(e.consume(m),ie):m===63&&i===3?(e.consume(m),f):m===93&&i===5?(e.consume(m),se):v(m)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Ji,ce,V)(m)):m===null||v(m)?(e.exit("htmlFlowData"),V(m)):(e.consume(m),T)}function V(m){return e.check(Ki,A,ce)(m)}function A(m){return e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),S}function S(m){return m===null||v(m)?V(m):(e.enter("htmlFlowData"),T(m))}function N(m){return m===45?(e.consume(m),f):T(m)}function Y(m){return m===47?(e.consume(m),o="",re):T(m)}function re(m){if(m===62){const le=o.toLowerCase();return at.includes(le)?(e.consume(m),ie):T(m)}return ue(m)&&o.length<8?(e.consume(m),o+=String.fromCharCode(m),re):T(m)}function se(m){return m===93?(e.consume(m),f):T(m)}function f(m){return m===62?(e.consume(m),ie):m===45&&i===2?(e.consume(m),f):T(m)}function ie(m){return m===null||v(m)?(e.exit("htmlFlowData"),ce(m)):(e.consume(m),ie)}function ce(m){return e.exit("htmlFlow"),n(m)}}function nl(e,n,t){const r=this;return i;function i(o){return v(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 tl(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Qe,n,t)}}const rl={name:"htmlText",tokenize:il};function il(e,n,t){const r=this;let i,l,o;return a;function a(f){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(f),c}function c(f){return f===33?(e.consume(f),u):f===47?(e.consume(f),H):f===63?(e.consume(f),E):ue(f)?(e.consume(f),U):t(f)}function u(f){return f===45?(e.consume(f),s):f===91?(e.consume(f),l=0,w):ue(f)?(e.consume(f),z):t(f)}function s(f){return f===45?(e.consume(f),p):t(f)}function h(f){return f===null?t(f):f===45?(e.consume(f),d):v(f)?(o=h,Y(f)):(e.consume(f),h)}function d(f){return f===45?(e.consume(f),p):h(f)}function p(f){return f===62?N(f):f===45?d(f):h(f)}function w(f){const ie="CDATA[";return f===ie.charCodeAt(l++)?(e.consume(f),l===ie.length?C:w):t(f)}function C(f){return f===null?t(f):f===93?(e.consume(f),I):v(f)?(o=C,Y(f)):(e.consume(f),C)}function I(f){return f===93?(e.consume(f),k):C(f)}function k(f){return f===62?N(f):f===93?(e.consume(f),k):C(f)}function z(f){return f===null||f===62?N(f):v(f)?(o=z,Y(f)):(e.consume(f),z)}function E(f){return f===null?t(f):f===63?(e.consume(f),B):v(f)?(o=E,Y(f)):(e.consume(f),E)}function B(f){return f===62?N(f):E(f)}function H(f){return ue(f)?(e.consume(f),y):t(f)}function y(f){return f===45||ee(f)?(e.consume(f),y):_(f)}function _(f){return v(f)?(o=_,Y(f)):M(f)?(e.consume(f),_):N(f)}function U(f){return f===45||ee(f)?(e.consume(f),U):f===47||f===62||ne(f)?R(f):t(f)}function R(f){return f===47?(e.consume(f),N):f===58||f===95||ue(f)?(e.consume(f),F):v(f)?(o=R,Y(f)):M(f)?(e.consume(f),R):N(f)}function F(f){return f===45||f===46||f===58||f===95||ee(f)?(e.consume(f),F):P(f)}function P(f){return f===61?(e.consume(f),T):v(f)?(o=P,Y(f)):M(f)?(e.consume(f),P):R(f)}function T(f){return f===null||f===60||f===61||f===62||f===96?t(f):f===34||f===39?(e.consume(f),i=f,V):v(f)?(o=T,Y(f)):M(f)?(e.consume(f),T):(e.consume(f),A)}function V(f){return f===i?(e.consume(f),i=void 0,S):f===null?t(f):v(f)?(o=V,Y(f)):(e.consume(f),V)}function A(f){return f===null||f===34||f===39||f===60||f===61||f===96?t(f):f===47||f===62||ne(f)?R(f):(e.consume(f),A)}function S(f){return f===47||f===62||ne(f)?R(f):t(f)}function N(f){return f===62?(e.consume(f),e.exit("htmlTextData"),e.exit("htmlText"),n):t(f)}function Y(f){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),re}function re(f){return M(f)?$(e,se,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f):se(f)}function se(f){return e.enter("htmlTextData"),o(f)}}const Ln={name:"labelEnd",resolveAll:ul,resolveTo:sl,tokenize:cl},ll={tokenize:pl},ol={tokenize:hl},al={tokenize:fl};function ul(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&&de(e,0,e.length,t),e}function sl(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 c={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}},s={type:"labelText",start:{...e[l+r+2][1].end},end:{...e[o-2][1].start}};return a=[["enter",c,n],["enter",u,n]],a=te(a,e.slice(l+1,l+r+3)),a=te(a,[["enter",s,n]]),a=te(a,En(n.parser.constructs.insideSpan.null,e.slice(l+r+4,o-3),n)),a=te(a,[["exit",s,n],e[o-2],e[o-1],["exit",u,n]]),a=te(a,e.slice(o+1)),a=te(a,[["exit",c,n]]),de(e,l,e.length,a),e}function cl(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(d){return l?l._inactive?h(d):(o=r.parser.defined.includes(Ce(r.sliceSerialize({start:l.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),c):t(d)}function c(d){return d===40?e.attempt(ll,s,o?s:h)(d):d===91?e.attempt(ol,s,o?u:h)(d):o?s(d):h(d)}function u(d){return e.attempt(al,s,h)(d)}function s(d){return n(d)}function h(d){return l._balanced=!0,t(d)}}function pl(e,n,t){return r;function r(h){return e.enter("resource"),e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),i}function i(h){return ne(h)?Ne(e,l)(h):l(h)}function l(h){return h===41?s(h):Wt(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function o(h){return ne(h)?Ne(e,c)(h):s(h)}function a(h){return t(h)}function c(h){return h===34||h===39||h===40?Xt(e,u,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):s(h)}function u(h){return ne(h)?Ne(e,s)(h):s(h)}function s(h){return h===41?(e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),e.exit("resource"),n):t(h)}}function hl(e,n,t){const r=this;return i;function i(a){return Yt.call(r,e,l,o,"reference","referenceMarker","referenceString")(a)}function l(a){return r.parser.defined.includes(Ce(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(a):t(a)}function o(a){return t(a)}}function fl(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 ml={name:"labelStartImage",resolveAll:Ln.resolveAll,tokenize:dl};function dl(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 gl={name:"labelStartLink",resolveAll:Ln.resolveAll,tokenize:yl};function yl(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 rn={name:"lineEnding",tokenize:xl};function xl(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),$(e,n,"linePrefix")}}const We={name:"thematicBreak",tokenize:kl};function kl(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"),c(u)):r>=3&&(u===null||v(u))?(e.exit("thematicBreak"),n(u)):t(u)}function c(u){return u===i?(e.consume(u),r++,c):(e.exit("thematicBreakSequence"),M(u)?$(e,a,"whitespace")(u):a(u))}}const G={continuation:{tokenize:El},exit:Il,name:"list",tokenize:Sl},bl={partial:!0,tokenize:Tl},wl={partial:!0,tokenize:Cl};function Sl(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 w=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:mn(p)){if(r.containerState.type||(r.containerState.type=w,e.enter(w,{_container:!0})),w==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(We,t,u)(p):u(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(p)}return t(p)}function c(p){return mn(p)&&++o<10?(e.consume(p),c):(!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(Qe,r.interrupt?t:s,e.attempt(bl,d,h))}function s(p){return r.containerState.initialBlankLine=!0,l++,d(p)}function h(p){return M(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),d):t(p)}function d(p){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(p)}}function El(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(Qe,i,l);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,$(e,n,"listItemIndent",r.containerState.size+1)(a)}function l(a){return r.containerState.furtherBlankLines||!M(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(wl,n,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,$(e,e.attempt(G,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function Cl(e,n,t){const r=this;return $(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 Il(e){e.exit(this.containerState.type)}function Tl(e,n,t){const r=this;return $(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!M(l)&&o&&o[1].type==="listItemPrefixWhitespace"?n(l):t(l)}}const ut={name:"setextUnderline",resolveTo:Pl,tokenize:Al};function Pl(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 Al(e,n,t){const r=this;let i;return l;function l(u){let s=r.events.length,h;for(;s--;)if(r.events[s][1].type!=="lineEnding"&&r.events[s][1].type!=="linePrefix"&&r.events[s][1].type!=="content"){h=r.events[s][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||h)?(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"),M(u)?$(e,c,"lineSuffix")(u):c(u))}function c(u){return u===null||v(u)?(e.exit("setextHeadingLine"),n(u)):t(u)}}const vl={tokenize:zl};function zl(e){const n=this,t=e.attempt(Qe,r,e.attempt(this.parser.constructs.flowInitial,i,$(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Ri,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 Ll={resolveAll:Gt()},Dl=Qt("string"),Ol=Qt("text");function Qt(e){return{resolveAll:Gt(e==="text"?_l: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(s){return u(s)?l(s):a(s)}function a(s){if(s===null){t.consume(s);return}return t.enter("data"),t.consume(s),c}function c(s){return u(s)?(t.exit("data"),l(s)):(t.consume(s),c)}function u(s){if(s===null)return!0;const h=i[s];let d=-1;if(h)for(;++d<h.length;){const p=h[d];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function Gt(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 _l(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,c;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)c=!0,a++;else if(u!==-1){l++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(a=0),a){const u={type:t===e.length||c||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 Rl={42:G,43:G,45:G,48:G,49:G,50:G,51:G,52:G,53:G,54:G,55:G,56:G,57:G,62:Ut},Fl={91:ji},Nl={[-2]:tn,[-1]:tn,32:tn},Ml={35:Wi,42:We,45:[ut,We],60:Gi,61:ut,95:We,96:ot,126:ot},Bl={38:qt,92:Vt},jl={[-5]:rn,[-4]:rn,[-3]:rn,33:ml,38:qt,42:kn,60:[yi,rl],91:gl,92:[qi,Vt],93:Ln,95:kn,96:vi},Hl={null:[kn,Ll]},Ul={null:[42,95]},Vl={null:[]},ql=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Ul,contentInitial:Fl,disable:Vl,document:Rl,flow:Ml,flowInitial:Nl,insideSpan:Hl,string:Bl,text:jl},Symbol.toStringTag,{value:"Module"}));function $l(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 c={attempt:_(H),check:_(y),consume:z,enter:E,exit:B,interrupt:_(y,{interrupt:!0})},u={code:null,containerState:{},defineSkip:C,events:[],now:w,parser:e,previous:null,sliceSerialize:d,sliceStream:p,write:h};let s=n.tokenize.call(u,c);return n.resolveAll&&l.push(n),u;function h(P){return o=te(o,P),I(),o[o.length-1]!==null?[]:(U(n,0),u.events=En(l,u.events,u),u.events)}function d(P,T){return Yl(p(P),T)}function p(P){return Wl(o,P)}function w(){const{_bufferIndex:P,_index:T,line:V,column:A,offset:S}=r;return{_bufferIndex:P,_index:T,line:V,column:A,offset:S}}function C(P){i[P.line]=P.column,F()}function I(){let P;for(;r._index<o.length;){const T=o[r._index];if(typeof T=="string")for(P=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===P&&r._bufferIndex<T.length;)k(T.charCodeAt(r._bufferIndex));else k(T)}}function k(P){s=s(P)}function z(P){v(P)?(r.line++,r.column=1,r.offset+=P===-3?2:1,F()):P!==-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=P}function E(P,T){const V=T||{};return V.type=P,V.start=w(),u.events.push(["enter",V,u]),a.push(V),V}function B(P){const T=a.pop();return T.end=w(),u.events.push(["exit",T,u]),T}function H(P,T){U(P,T.from)}function y(P,T){T.restore()}function _(P,T){return V;function V(A,S,N){let Y,re,se,f;return Array.isArray(A)?ce(A):"tokenize"in A?ce([A]):ie(A);function ie(X){return Ae;function Ae(fe){const ke=fe!==null&&X[fe],be=fe!==null&&X.null,Ue=[...Array.isArray(ke)?ke:ke?[ke]:[],...Array.isArray(be)?be:be?[be]:[]];return ce(Ue)(fe)}}function ce(X){return Y=X,re=0,X.length===0?N:m(X[re])}function m(X){return Ae;function Ae(fe){return f=R(),se=X,X.partial||(u.currentConstruct=X),X.name&&u.parser.constructs.disable.null.includes(X.name)?ge():X.tokenize.call(T?Object.assign(Object.create(u),T):u,c,le,ge)(fe)}}function le(X){return P(se,f),S}function ge(X){return f.restore(),++re<Y.length?m(Y[re]):N}}}function U(P,T){P.resolveAll&&!l.includes(P)&&l.push(P),P.resolve&&de(u.events,T,u.events.length-T,P.resolve(u.events.slice(T),u)),P.resolveTo&&(u.events=P.resolveTo(u.events,u))}function R(){const P=w(),T=u.previous,V=u.currentConstruct,A=u.events.length,S=Array.from(a);return{from:A,restore:N};function N(){r=P,u.previous=T,u.currentConstruct=V,u.events.length=A,a=S,F()}}function F(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Wl(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 Yl(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
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 Xl(e){const r={constructs:yr([ql,...(e||{}).extensions||[]]),content:i(ci),defined:[],document:i(hi),flow:i(vl),lazy:{},string:i(Dl),text:i(Ol)};return r;function i(l){return o;function o(a){return $l(r,l,a)}}}function Ql(e){for(;!$t(e););return e}const st=/[\0\t\n\r]/g;function Gl(){let e=1,n="",t=!0,r;return i;function i(l,o,a){const c=[];let u,s,h,d,p;for(l=n+(typeof l=="string"?l.toString():new TextDecoder(o||void 0).decode(l)),h=0,n="",t&&(l.charCodeAt(0)===65279&&h++,t=void 0);h<l.length;){if(st.lastIndex=h,u=st.exec(l),d=u&&u.index!==void 0?u.index:l.length,p=l.charCodeAt(d),!u){n=l.slice(h);break}if(p===10&&h===d&&r)c.push(-3),r=void 0;else switch(r&&(c.push(-5),r=void 0),h<d&&(c.push(l.slice(h,d)),e+=d-h),p){case 0:{c.push(65533),e++;break}case 9:{for(s=Math.ceil(e/4)*4,c.push(-2);e++<s;)c.push(-1);break}case 10:{c.push(-4),e=1;break}default:r=!0,e=1}h=d+1}return a&&(r&&c.push(-5),n&&c.push(n),c.push(null)),c}}const Jl=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Kl(e){return e.replace(Jl,Zl)}function Zl(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),l=i===120||i===88;return Ht(t.slice(l?2:1),l?16:10)}return zn(t)||e}const Jt={}.hasOwnProperty;function eo(e,n,t){return typeof n!="string"&&(t=n,n=void 0),no(t)(Ql(Xl(t).document().write(Gl()(e,n,!0))))}function no(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Vn),autolinkProtocol:R,autolinkEmail:R,atxHeading:l(jn),blockQuote:l(be),characterEscape:R,characterReference:R,codeFenced:l(Ue),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:l(Ue,o),codeText:l(lr,o),codeTextData:R,data:R,codeFlowValue:R,definition:l(or),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:l(ar),hardBreakEscape:l(Hn),hardBreakTrailing:l(Hn),htmlFlow:l(Un,o),htmlFlowData:R,htmlText:l(Un,o),htmlTextData:R,image:l(ur),label:o,link:l(Vn),listItem:l(sr),listItemValue:d,listOrdered:l(qn,h),listUnordered:l(qn),paragraph:l(cr),reference:m,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:l(jn),strong:l(pr),thematicBreak:l(fr)},exit:{atxHeading:c(),atxHeadingSequence:H,autolink:c(),autolinkEmail:ke,autolinkProtocol:fe,blockQuote:c(),characterEscapeValue:F,characterReferenceMarkerHexadecimal:ge,characterReferenceMarkerNumeric:ge,characterReferenceValue:X,characterReference:Ae,codeFenced:c(I),codeFencedFence:C,codeFencedFenceInfo:p,codeFencedFenceMeta:w,codeFlowValue:F,codeIndented:c(k),codeText:c(S),codeTextData:F,data:F,definition:c(),definitionDestinationString:B,definitionLabelString:z,definitionTitleString:E,emphasis:c(),hardBreakEscape:c(T),hardBreakTrailing:c(T),htmlFlow:c(V),htmlFlowData:F,htmlText:c(A),htmlTextData:F,image:c(Y),label:se,labelText:re,lineEnding:P,link:c(N),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:le,resourceDestinationString:f,resourceTitleString:ie,resource:ce,setextHeading:c(U),setextHeadingLineSequence:_,setextHeadingText:y,strong:c(),thematicBreak:c()}};Kt(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(g){let b={type:"root",children:[]};const L={stack:[b],tokenStack:[],config:n,enter:a,exit:u,buffer:o,resume:s,data:t},O=[];let j=-1;for(;++j<g.length;)if(g[j][1].type==="listOrdered"||g[j][1].type==="listUnordered")if(g[j][0]==="enter")O.push(j);else{const oe=O.pop();j=i(g,oe,j)}for(j=-1;++j<g.length;){const oe=n[g[j][0]];Jt.call(oe,g[j][1].type)&&oe[g[j][1].type].call(Object.assign({sliceSerialize:g[j][2].sliceSerialize},L),g[j][1])}if(L.tokenStack.length>0){const oe=L.tokenStack[L.tokenStack.length-1];(oe[1]||ct).call(L,void 0,oe[0])}for(b.position={start:me(g.length>0?g[0][1].start:{line:1,column:1,offset:0}),end:me(g.length>0?g[g.length-2][1].end:{line:1,column:1,offset:0})},j=-1;++j<n.transforms.length;)b=n.transforms[j](b)||b;return b}function i(g,b,L){let O=b-1,j=-1,oe=!1,ye,pe,ve,ze;for(;++O<=L;){const K=g[O];switch(K[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{K[0]==="enter"?j++:j--,ze=void 0;break}case"lineEndingBlank":{K[0]==="enter"&&(ye&&!ze&&!j&&!ve&&(ve=O),ze=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ze=void 0}if(!j&&K[0]==="enter"&&K[1].type==="listItemPrefix"||j===-1&&K[0]==="exit"&&(K[1].type==="listUnordered"||K[1].type==="listOrdered")){if(ye){let we=O;for(pe=void 0;we--;){const he=g[we];if(he[1].type==="lineEnding"||he[1].type==="lineEndingBlank"){if(he[0]==="exit")continue;pe&&(g[pe][1].type="lineEndingBlank",oe=!0),he[1].type="lineEnding",pe=we}else if(!(he[1].type==="linePrefix"||he[1].type==="blockQuotePrefix"||he[1].type==="blockQuotePrefixWhitespace"||he[1].type==="blockQuoteMarker"||he[1].type==="listItemIndent"))break}ve&&(!pe||ve<pe)&&(ye._spread=!0),ye.end=Object.assign({},pe?g[pe][1].start:K[1].end),g.splice(pe||O,0,["exit",ye,K[2]]),O++,L++}if(K[1].type==="listItemPrefix"){const we={type:"listItem",_spread:!1,start:Object.assign({},K[1].start),end:void 0};ye=we,g.splice(O,0,["enter",we,K[2]]),O++,L++,ve=void 0,ze=!0}}}return g[b][1]._spread=oe,L}function l(g,b){return L;function L(O){a.call(this,g(O),O),b&&b.call(this,O)}}function o(){this.stack.push({type:"fragment",children:[]})}function a(g,b,L){this.stack[this.stack.length-1].children.push(g),this.stack.push(g),this.tokenStack.push([b,L||void 0]),g.position={start:me(b.start),end:void 0}}function c(g){return b;function b(L){g&&g.call(this,L),u.call(this,L)}}function u(g,b){const L=this.stack.pop(),O=this.tokenStack.pop();if(O)O[0].type!==g.type&&(b?b.call(this,g,O[0]):(O[1]||ct).call(this,g,O[0]));else throw new Error("Cannot close `"+g.type+"` ("+Fe({start:g.start,end:g.end})+"): it’s not open");L.position.end=me(g.end)}function s(){return xr(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function d(g){if(this.data.expectingFirstListItemValue){const b=this.stack[this.stack.length-2];b.start=Number.parseInt(this.sliceSerialize(g),10),this.data.expectingFirstListItemValue=void 0}}function p(){const g=this.resume(),b=this.stack[this.stack.length-1];b.lang=g}function w(){const g=this.resume(),b=this.stack[this.stack.length-1];b.meta=g}function C(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function I(){const g=this.resume(),b=this.stack[this.stack.length-1];b.value=g.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function k(){const g=this.resume(),b=this.stack[this.stack.length-1];b.value=g.replace(/(\r?\n|\r)$/g,"")}function z(g){const b=this.resume(),L=this.stack[this.stack.length-1];L.label=b,L.identifier=Ce(this.sliceSerialize(g)).toLowerCase()}function E(){const g=this.resume(),b=this.stack[this.stack.length-1];b.title=g}function B(){const g=this.resume(),b=this.stack[this.stack.length-1];b.url=g}function H(g){const b=this.stack[this.stack.length-1];if(!b.depth){const L=this.sliceSerialize(g).length;b.depth=L}}function y(){this.data.setextHeadingSlurpLineEnding=!0}function _(g){const b=this.stack[this.stack.length-1];b.depth=this.sliceSerialize(g).codePointAt(0)===61?1:2}function U(){this.data.setextHeadingSlurpLineEnding=void 0}function R(g){const L=this.stack[this.stack.length-1].children;let O=L[L.length-1];(!O||O.type!=="text")&&(O=hr(),O.position={start:me(g.start),end:void 0},L.push(O)),this.stack.push(O)}function F(g){const b=this.stack.pop();b.value+=this.sliceSerialize(g),b.position.end=me(g.end)}function P(g){const b=this.stack[this.stack.length-1];if(this.data.atHardBreak){const L=b.children[b.children.length-1];L.position.end=me(g.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(b.type)&&(R.call(this,g),F.call(this,g))}function T(){this.data.atHardBreak=!0}function V(){const g=this.resume(),b=this.stack[this.stack.length-1];b.value=g}function A(){const g=this.resume(),b=this.stack[this.stack.length-1];b.value=g}function S(){const g=this.resume(),b=this.stack[this.stack.length-1];b.value=g}function N(){const g=this.stack[this.stack.length-1];if(this.data.inReference){const b=this.data.referenceType||"shortcut";g.type+="Reference",g.referenceType=b,delete g.url,delete g.title}else delete g.identifier,delete g.label;this.data.referenceType=void 0}function Y(){const g=this.stack[this.stack.length-1];if(this.data.inReference){const b=this.data.referenceType||"shortcut";g.type+="Reference",g.referenceType=b,delete g.url,delete g.title}else delete g.identifier,delete g.label;this.data.referenceType=void 0}function re(g){const b=this.sliceSerialize(g),L=this.stack[this.stack.length-2];L.label=Kl(b),L.identifier=Ce(b).toLowerCase()}function se(){const g=this.stack[this.stack.length-1],b=this.resume(),L=this.stack[this.stack.length-1];if(this.data.inReference=!0,L.type==="link"){const O=g.children;L.children=O}else L.alt=b}function f(){const g=this.resume(),b=this.stack[this.stack.length-1];b.url=g}function ie(){const g=this.resume(),b=this.stack[this.stack.length-1];b.title=g}function ce(){this.data.inReference=void 0}function m(){this.data.referenceType="collapsed"}function le(g){const b=this.resume(),L=this.stack[this.stack.length-1];L.label=b,L.identifier=Ce(this.sliceSerialize(g)).toLowerCase(),this.data.referenceType="full"}function ge(g){this.data.characterReferenceType=g.type}function X(g){const b=this.sliceSerialize(g),L=this.data.characterReferenceType;let O;L?(O=Ht(b,L==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):O=zn(b);const j=this.stack[this.stack.length-1];j.value+=O}function Ae(g){const b=this.stack.pop();b.position.end=me(g.end)}function fe(g){F.call(this,g);const b=this.stack[this.stack.length-1];b.url=this.sliceSerialize(g)}function ke(g){F.call(this,g);const b=this.stack[this.stack.length-1];b.url="mailto:"+this.sliceSerialize(g)}function be(){return{type:"blockquote",children:[]}}function Ue(){return{type:"code",lang:null,meta:null,value:""}}function lr(){return{type:"inlineCode",value:""}}function or(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ar(){return{type:"emphasis",children:[]}}function jn(){return{type:"heading",depth:0,children:[]}}function Hn(){return{type:"break"}}function Un(){return{type:"html",value:""}}function ur(){return{type:"image",title:null,url:"",alt:null}}function Vn(){return{type:"link",title:null,url:"",children:[]}}function qn(g){return{type:"list",ordered:g.type==="listOrdered",start:null,spread:g._spread,children:[]}}function sr(g){return{type:"listItem",spread:g._spread,checked:null,children:[]}}function cr(){return{type:"paragraph",children:[]}}function pr(){return{type:"strong",children:[]}}function hr(){return{type:"text",value:""}}function fr(){return{type:"thematicBreak"}}}function me(e){return{line:e.line,column:e.column,offset:e.offset}}function Kt(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?Kt(e,r):to(e,r)}}function to(e,n){let t;for(t in n)if(Jt.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 ct(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Fe({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Fe({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Fe({start:n.start,end:n.end})+") is still open")}function ro(e){const n=this;n.parser=t;function t(r){return eo(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function io(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 lo(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:`
|