PageSourceSearch

https://ronheichman-recipe-app.hf.space/app/assets/ChatDrawer-RddJObT9.js

js ronheichman-recipe-app.hf.space collected 2026-10-03 17:18:45 UTC 175,070 bytes, 30 lines download raw bytes

vendor: 4,460 bytes, line 1
1import{y as pr,j as T,r as j,z as at,a as Me,A as ze,B as Ti}from"./index-XVMXvNIo.js";import{D as Ai}from"./DrawerWrapper-YRUgp4ii.js";function Ii(e,n){const t={};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const vi=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Di=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Pi={};function En(e,n){return(Pi.jsx?Di:vi).test(e)}const _i=/[ \t\n\f\r]/g;function Li(e){return typeof e=="object"?e.type==="text"?Tn(e.value):!1:Tn(e)}function Tn(e){return e.replace(_i,"")===""}class it{constructor(n,t,r){this.normal=t,this.property=n,r&&(this.space=r)}}it.prototype.normal={};it.prototype.property={};it.prototype.space=void 0;function mr(e,n){const t={},r={};for(const i of e)Object.assign(t,i.property),Object.assign(r,i.normal);return new it(t,r,n)}function Ut(e){return e.toLowerCase()}class me{constructor(n,t){this.attribute=t,this.property=n}}me.prototype.attribute="";me.prototype.booleanish=!1;me.prototype.boolean=!1;me.prototype.commaOrSpaceSeparated=!1;me.prototype.commaSeparated=!1;me.prototype.defined=!1;me.prototype.mustUseProperty=!1;me.prototype.number=!1;me.prototype.overloadedBoolean=!1;me.prototype.property="";me.prototype.spaceSeparated=!1;me.prototype.space=void 0;let zi=0;const B=Ne(),ie=Ne(),Ht=Ne(),E=Ne(),ee=Ne(),He=Ne(),ye=Ne();function Ne(){return 2**++zi}const $t=Object.freeze(Object.defineProperty({__proto__:null,boolean:B,booleanish:ie,commaOrSpaceSeparated:ye,commaSeparated:He,number:E,overloadedBoolean:Ht,spaceSeparated:ee},Symbol.toStringTag,{value:"Module"})),St=Object.keys($t);class en extends me{constructor(n,t,r,i){let o=-1;if(super(n,t),An(this,"space",i),typeof r=="number")for(;++o<St.length;){const l=St[o];An(this,St[o],(r&$t[l])===$t[l])}}}en.prototype.defined=!0;function An(e,n,t){t&&(e[n]=t)}function Ve(e){const n={},t={};for(const[r,i]of Object.entries(e.properties)){const o=new en(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),n[r]=o,t[Ut(r)]=r,t[Ut(o.attribute)]=r}return new it(n,t,e.space)}const dr=Ve({properties:{ariaActiveDescendant:null,ariaAtomic:ie,ariaAutoComplete:null,ariaBusy:ie,ariaChecked:ie,ariaColCount:E,ariaColIndex:E,ariaColSpan:E,ariaControls:ee,ariaCurrent:null,ariaDescribedBy:ee,ariaDetails:null,ariaDisabled:ie,ariaDropEffect:ee,ariaErrorMessage:null,ariaExpanded:ie,ariaFlowTo:ee,ariaGrabbed:ie,ariaHasPopup:null,ariaHidden:ie,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ee,ariaLevel:E,ariaLive:null,ariaModal:ie,ariaMultiLine:ie,ariaMultiSelectable:ie,ariaOrientation:null,ariaOwns:ee,ariaPlaceholder:null,ariaPosInSet:E,ariaPressed:ie,ariaReadOnly:ie,ariaRelevant:null,ariaRequired:ie,ariaRoleDescription:ee,ariaRowCount:E,ariaRowIndex:E,ariaRowSpan:E,ariaSelected:ie,ariaSetSize:E,ariaSort:null,ariaValueMax:E,ariaValueMin:E,ariaValueNow:E,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function gr(e,n){return n in e?e[n]:n}function yr(e,n){return gr(e,n.toLowerCase())}const Ri=Ve({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:He,acceptCharset:ee,accessKey:ee,action:null,allow:null,allowFullScreen:B,allowPaymentRequest:B,allowUserMedia:B,alt:null,as:null,async:B,autoCapitalize:null,autoComplete:ee,autoFocus:B,autoPlay:B,blocking:ee,capture:null,charSet:null,checked:B,cite:null,className:ee,cols:E,colSpan:null,content:null,contentEditable:ie,controls:B,controlsList:ee,coords:E|He,crossOrigin:null,data:null,dateTime:null,decoding:null,default:B,defer:B,dir:null,dirName:null,disabled:B,download:Ht,draggable:ie,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:B,formTarget:null,headers:ee,height:E,hidden:Ht,high:E,href:null,hrefLang:null,htmlFor:ee,httpEquiv:ee,id:null,imageSizes:null,imageSrcSet:null,inert:B,inputMode:null,integrity:null,is:null,isMap:B,itemId:null,itemProp:ee,itemRef:ee,itemScope:B,itemType:ee,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:B,low:E,manifest:null,max:null,maxLength:E,media:null,method:null,min:null,minLength:E,multiple:B,muted:B,name:null,nonce:null,noModule:B,noValidate:B,onAbort:null,onAfterPrint:null,onAuxCl
1ick: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:B,optimum:E,pattern:null,ping:ee,placeholder:null,playsInline:B,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:B,referrerPolicy:null,rel:ee,required:B,reversed:B,rows:E,rowSpan:E,sandbox:ee,scope:null,scoped:B,seamless:B,selected:B,shadowRootClonable:B,shadowRootDelegatesFocus:B,shadowRootMode:null,shape:null,size:E,sizes:null,slot:null,span:E,spellCheck:ie,src:null,srcDoc:null,srcLang:null,srcSet:null,start:E,step:null,style:null,tabIndex:E,target:null,title:null,translate:null,type:null,typeMustMatch:B,useMap:null,value:ie,width:E,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ee,axis:null,background:null,bgColor:null,border:E,borderColor:null,bottomMargin:E,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:B,declare:B,event:null,face:null,frame:null,frameBorder:null,hSpace:E,leftMargin:E,link:null,longDesc:null,lowSrc:null,marginHeight:E,marginWidth:E,noResize:B,noHref:B,noShade:B,noWrap:B,object:null,profile:null,prompt:null,rev:null,rightMargin:E,rules:null,scheme:null,scrolling:ie,standby:null,summary:null,text:null,topMargin:E,valueType:null,version:null,vAlign:null,vLink:null,vSpace:E,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:B,disableRemotePlayback:B,prefix:null,property:null,results:E,security:null,unselectable:null},space:"html",transform:yr}),Fi=Ve({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
1-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:ye,accentHeight:E,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:E,amplitude:E,arabicForm:null,ascent:E,attributeName:null,attributeType:null,azimuth:E,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:E,by:null,calcMode:null,capHeight:E,className:ee,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:E,diffuseConstant:E,direction:null,display:null,dur:null,divisor:E,dominantBaseline:null,download:B,dx:null,dy:null,edgeMode:null,editable:null,elevation:E,enableBackground:null,end:null,event:null,exponent:E,externalResourcesRequired:null,fill:null,fillOpacity:E,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:He,g2:He,glyphName:He,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:E,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:E,horizOriginX:E,horizOriginY:E,id:null,ideographic:E,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:E,k:E,k1:E,k2:E,k3:E,k4:E,kernelMatrix:ye,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:E,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:E,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,on
vendor: 4,581 bytes, lines 1-2
1Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:E,overlineThickness:E,paintOrder:null,panose1:null,path:null,pathLength:E,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ee,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:E,pointsAtY:E,pointsAtZ:E,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ye,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ye,rev:ye,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ye,requiredFeatures:ye,requiredFonts:ye,requiredFormats:ye,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:E,specularExponent:E,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:E,strikethroughThickness:E,string:null,stroke:null,strokeDashArray:ye,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:E,strokeOpacity:E,strokeWidth:null,style:null,surfaceScale:E,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ye,tabIndex:E,tableValues:null,target:null,targetX:E,targetY:E,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ye,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:E,underlineThickness:E,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:E,values:null,vAlphabetic:E,vMathematical:E,vectorEffect:null,vHanging:E,vIdeographic:E,version:null,vertAdvY:E,vertOriginX:E,vertOriginY:E,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:E,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:gr}),kr=Ve({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()}}),xr=Ve({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:yr}),br=Ve({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),Ni={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"},Oi=/[A-Z]/g,In=/-[a-z]/g,Mi=/^data[-\w.:]+$/i;function ji(e,n){const t=Ut(n);let r=n,i=me;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&Mi.test(n)){if(n.charAt(4)==="-"){const o=n.slice(5).replace(In,Ui);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=n.slice(4);if(!In.test(o)){let l=o.replace(Oi,Bi);l.charAt(0)!=="-"&&(l="-"+l),n="data"+l}}i=en}return new i(r,n)}function Bi(e){return"-"+e.toLowerCase()}function Ui(e){return e.charAt(1).toUpperCase()}const Hi=mr([dr,Ri,kr,xr,br],"html"),tn=mr([dr,Fi,kr,xr,br],"svg");function $i(e){return e.join(" ").trim()}var je={},Et,vn;function Vi(){if(vn)return Et;vn=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,t=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,a=/^\s+|\s+$/g,s=`
2`,u="/",f="*",c="",p="comment",h="declaration";function g(C,y){if(typeof C!="string")throw new TypeError("First argument must be a string");if(!C)return[];y=y||{};var A=1,S=1;function R(z){var v=z.match(n);v&&(A+=v.length);var L=z.lastIndexOf(s);S=~L?z.length-L:S+z.length}function F(){var z={line:A,column:S};return function(v){return v.position=new x(z),U(),v}}function x(z){this.start=z,this.end={line:A,column:S},this.source=y.source}x.prototype.content=C;function O(z){var v=new Error(y.source+":"+A+":"+S+": "+z);if(v.reason=z,v.filename=y.source,v.line=A,v.column=S,v.source=C,!y.silent)throw v}function $(z){var v=z.exec(C);if(v){var L=v[0];return R(L),C=C.slice(L.length),v}}function U(){$(t)}function k(z){var v;
vendor: 4,482 bytes, line 2
2for(z=z||[];v=D();)v!==!1&&z.push(v);return z}function D(){var z=F();if(!(u!=C.charAt(0)||f!=C.charAt(1))){for(var v=2;c!=C.charAt(v)&&(f!=C.charAt(v)||u!=C.charAt(v+1));)++v;if(v+=2,c===C.charAt(v-1))return O("End of comment missing");var L=C.slice(2,v-2);return S+=2,R(L),C=C.slice(v),S+=2,z({type:p,comment:L})}}function _(){var z=F(),v=$(r);if(v){if(D(),!$(i))return O("property missing ':'");var L=$(o),H=z({type:h,property:w(v[0].replace(e,c)),value:L?w(L[0].replace(e,c)):c});return $(l),H}}function W(){var z=[];k(z);for(var v;v=_();)v!==!1&&(z.push(v),k(z));return z}return U(),W()}function w(C){return C?C.replace(a,c):c}return Et=g,Et}var Dn;function qi(){if(Dn)return je;Dn=1;var e=je&&je.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(je,"__esModule",{value:!0}),je.default=t;const n=e(Vi());function t(r,i){let o=null;if(!r||typeof r!="string")return o;const l=(0,n.default)(r),a=typeof i=="function";return l.forEach(s=>{if(s.type!=="declaration")return;const{property:u,value:f}=s;a?i(u,f,s):f&&(o=o||{},o[u]=f)}),o}return je}var Ye={},Pn;function Wi(){if(Pn)return Ye;Pn=1,Object.defineProperty(Ye,"__esModule",{value:!0}),Ye.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,t=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,o=function(u){return!u||t.test(u)||e.test(u)},l=function(u,f){return f.toUpperCase()},a=function(u,f){return"".concat(f,"-")},s=function(u,f){return f===void 0&&(f={}),o(u)?u:(u=u.toLowerCase(),f.reactCompat?u=u.replace(i,a):u=u.replace(r,a),u.replace(n,l))};return Ye.camelCase=s,Ye}var Ge,_n;function Ki(){if(_n)return Ge;_n=1;var e=Ge&&Ge.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},n=e(qi()),t=Wi();function r(i,o){var l={};return!i||typeof i!="string"||(0,n.default)(i,function(a,s){a&&s&&(l[(0,t.camelCase)(a,o)]=s)}),l}return r.default=r,Ge=r,Ge}var Yi=Ki();const Gi=pr(Yi),wr=Cr("end"),nn=Cr("start");function Cr(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 Ji(e){const n=nn(e),t=wr(e);if(n&&t)return{start:n,end:t}}function Ze(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Ln(e.position):"start"in e||"end"in e?Ln(e):"line"in e||"column"in e?Vt(e):""}function Vt(e){return zn(e&&e.line)+":"+zn(e&&e.column)}function Ln(e){return Vt(e&&e.start)+"-"+Vt(e&&e.end)}function zn(e){return e&&typeof e=="number"?e:1}class ce extends Error{constructor(n,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",o={},l=!1;if(t&&("line"in t&&"column"in t?o={place:t}:"start"in t&&"end"in t?o={place:t}:"type"in t?o={ancestors:[t],place:t.position}:o={...t}),typeof n=="string"?i=n:!o.cause&&n&&(l=!0,i=n.message,o.cause=n),!o.ruleId&&!o.source&&typeof r=="string"){const s=r.indexOf(":");s===-1?o.ruleId=r:(o.source=r.slice(0,s),o.ruleId=r.slice(s+1))}if(!o.place&&o.ancestors&&o.ancestors){const s=o.ancestors[o.ancestors.length-1];s&&(o.place=s.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=Ze(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=l&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}ce.prototype.file="";ce.prototype.name="";ce.prototype.reason="";ce.prototype.message="";ce.prototype.stack="";ce.prototype.column=void 0;ce.prototype.line=void 0;ce.prototype.ancestors=void 0;ce.prototype.cause=void 0;ce.prototype.fatal=void 0;ce.prototype.place=void 0;ce.prototype.ruleId=void 0;ce.prototype.source=void 0;const rn={}.hasOwnProperty,Xi=new Map,Qi=/[A-Z]/g,Zi=new Set(["table","tbody","thead","tfoot","tr"]),el=new Set(["td","th"]),Sr="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function tl(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=ul(t,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");
vendor: 8,886 bytes, line 2
2if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=sl(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"?tn:Hi,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},o=Er(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function Er(e,n,t){if(n.type==="element")return nl(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return rl(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return ll(e,n,t);if(n.type==="mdxjsEsm")return il(e,n);if(n.type==="root")return ol(e,n,t);if(n.type==="text")return al(e,n)}function nl(e,n,t){const r=e.schema;let i=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=tn,e.schema=i),e.ancestors.push(n);const o=Ar(e,n.tagName,!1),l=cl(e,n);let a=on(e,n);return Zi.has(n.tagName)&&(a=a.filter(function(s){return typeof s=="string"?!Li(s):!0})),Tr(e,l,o,n),ln(l,a),e.ancestors.pop(),e.schema=r,e.create(n,o,l,t)}function rl(e,n){if(n.data&&n.data.estree&&e.evaluater){const r=n.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}nt(e,n.position)}function il(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);nt(e,n.position)}function ll(e,n,t){const r=e.schema;let i=r;n.name==="svg"&&r.space==="html"&&(i=tn,e.schema=i),e.ancestors.push(n);const o=n.name===null?e.Fragment:Ar(e,n.name,!0),l=fl(e,n),a=on(e,n);return Tr(e,l,o,n),ln(l,a),e.ancestors.pop(),e.schema=r,e.create(n,o,l,t)}function ol(e,n,t){const r={};return ln(r,on(e,n)),e.create(n,e.Fragment,r,t)}function al(e,n){return n.value}function Tr(e,n,t,r){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=r)}function ln(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function sl(e,n,t){return r;function r(i,o,l,a){const u=Array.isArray(l.children)?t:n;return a?u(o,l,a):u(o,l)}}function ul(e,n){return t;function t(r,i,o,l){const a=Array.isArray(o.children),s=nn(r);return n(i,o,l,a,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function cl(e,n){const t={};let r,i;for(i in n.properties)if(i!=="children"&&rn.call(n.properties,i)){const o=hl(e,i,n.properties[i]);if(o){const[l,a]=o;e.tableCellAlignToStyle&&l==="align"&&typeof a=="string"&&el.has(n.tagName)?r=a:t[l]=a}}if(r){const o=t.style||(t.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function fl(e,n){const t={};for(const r of n.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const l=o.expression;l.type;const a=l.properties[0];a.type,Object.assign(t,e.evaluater.evaluateExpression(a.argument))}else nt(e,n.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];a.type,o=e.evaluater.evaluateExpression(a.expression)}else nt(e,n.position);else o=r.value===null?!0:r.value;t[i]=o}return t}function on(e,n){const t=[];let r=-1;const i=e.passKeys?new Map:Xi;for(;++r<n.children.length;){const o=n.children[r];let l;if(e.passKeys){const s=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(s){const u=i.get(s)||0;l=s+"-"+u,i.set(s,u+1)}}const a=Er(e,o,l);a!==void 0&&t.push(a)}return t}function hl(e,n,t){const r=ji(e.schema,n);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=r.commaSeparated?Ii(t):$i(t)),r.property==="style"){let i=typeof t=="object"?t:pl(e,String(t));return e.stylePropertyNameCase==="css"&&(i=ml(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Ni[r.property]||r.property:r.attribute,t]}}function pl(e,n){try{return Gi(n,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const r=t,i=new ce("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=Sr+"#cannot-parse-style-attribute",i}}function Ar(e,n,t){let r;if(!t)r={type:"Literal",value:n};else if(n.includes(".")){const i=n.split(".");let o=-1,l;for(;++o<i.length;){const a=En(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};l=l?{type:"MemberExpression",object:l,property:a,computed:!!(o&&a.type==="Literal"),optional:!1}:a}r=l}else r=En(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(r.type==="Literal"){const i=r.value;return rn.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);nt(e)}function nt(e,n){const t=new ce("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=Sr+"#cannot-handle-mdx-estrees-without-createevaluater",t}function ml(e){const n={};let t;for(t in e)rn.call(e,t)&&(n[dl(t)]=e[t]);return n}function dl(e){let n=e.replace(Qi,gl);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function gl(e){return"-"+e.toLowerCase()}const Tt={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"]},yl={};function an(e,n){const t=yl,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return Ir(e,r,i)}function Ir(e,n,t){if(kl(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Rn(e.children,n,t)}return Array.isArray(e)?Rn(e,n,t):""}function Rn(e,n,t){const r=[];let i=-1;for(;++i<e.length;)r[i]=Ir(e[i],n,t);return r.join("")}function kl(e){return!!(e&&typeof e=="object")}const Fn=document.createElement("i");function sn(e){const n="&"+e+";";Fn.innerHTML=n;const t=Fn.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function ke(e,n,t,r){const i=e.length;let o=0,l;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)l=Array.from(r),l.unshift(n,t),e.splice(...l);else for(t&&e.splice(n,t);o<r.length;)l=r.slice(o,o+1e4),l.unshift(n,0),e.splice(...l),o+=1e4,n+=1e4}function xe(e,n){return e.length>0?(ke(e,e.length,0,n),e):n}const Nn={}.hasOwnProperty;function vr(e){const n={};let t=-1;for(;++t<e.length;)xl(n,e[t]);return n}function xl(e,n){let t;for(t in n){const i=(Nn.call(e,t)?e[t]:void 0)||(e[t]={}),o=n[t];let l;if(o)for(l in o){Nn.call(i,l)||(i[l]=[]);const a=o[l];bl(i[l],Array.isArray(a)?a:a?[a]:[])}}}function bl(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);ke(e,0,0,r)}function Dr(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 Ce(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const he=_e(/[A-Za-z]/),ue=_e(/[\dA-Za-z]/),wl=_e(/[#-'*+\--9=?A-Z^-~]/);function pt(e){return e!==null&&(e<32||e===127)}const qt=_e(/\d/),Cl=_e(/[\dA-Fa-f]/),Sl=_e(/[!-/:-@[-`{-~]/);function N(e){return e!==null&&e<-2}function Z(e){return e!==null&&(e<0||e===32)}function V(e){return e===-2||e===-1||e===32}const yt=_e(new RegExp("\\p{P}|\\p{S}","u")),Fe=_e(/\s/);function _e(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function qe(e){const n=[];let t=-1,r=0,i=0;for(;++t<e.length;){const o=e.charCodeAt(t);let l="";if(o===37&&ue(e.charCodeAt(t+1))&&ue(e.charCodeAt(t+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(l=String.fromCharCode(o));else if(o>55295&&o<57344){const a=e.charCodeAt(t+1);o<56320&&a>56319&&a<57344?(l=String.fromCharCode(o,a),i=1):l="�"}else l=String.fromCharCode(o);l&&(n.push(e.slice(r,t),encodeURIComponent(l)),r=t+i+1,l=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}function K(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return l;function l(s){return V(s)?(e.enter(t),a(s)):n(s)}function a(s){return V(s)&&o++<i?(e.consume(s),a):(e.exit(t),n(s))}}const El={tokenize:Tl};function Tl(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"),K(e,n,"linePrefix")}function i(a){return e.enter("paragraph"),o(a)}function o(a){const s=e.enter("chunkText",{contentType:"text",previous:t});
vendor: 9,386 bytes, line 2
2return t&&(t.next=s),t=s,l(a)}function l(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return N(a)?(e.consume(a),e.exit("chunkText"),o):(e.consume(a),l)}}const Al={tokenize:Il},On={tokenize:vl};function Il(e){const n=this,t=[];let r=0,i,o,l;return a;function a(S){if(r<t.length){const R=t[r];return n.containerState=R[1],e.attempt(R[0].continuation,s,u)(S)}return u(S)}function s(S){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&A();const R=n.events.length;let F=R,x;for(;F--;)if(n.events[F][0]==="exit"&&n.events[F][1].type==="chunkFlow"){x=n.events[F][1].end;break}y(r);let O=R;for(;O<n.events.length;)n.events[O][1].end={...x},O++;return ke(n.events,F+1,0,n.events.slice(R)),n.events.length=O,u(S)}return a(S)}function u(S){if(r===t.length){if(!i)return p(S);if(i.currentConstruct&&i.currentConstruct.concrete)return g(S);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(On,f,c)(S)}function f(S){return i&&A(),y(r),p(S)}function c(S){return n.parser.lazy[n.now().line]=r!==t.length,l=n.now().offset,g(S)}function p(S){return n.containerState={},e.attempt(On,h,g)(S)}function h(S){return r++,t.push([n.currentConstruct,n.containerState]),p(S)}function g(S){if(S===null){i&&A(),y(0),e.consume(S);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),w(S)}function w(S){if(S===null){C(e.exit("chunkFlow"),!0),y(0),e.consume(S);return}return N(S)?(e.consume(S),C(e.exit("chunkFlow")),r=0,n.interrupt=void 0,a):(e.consume(S),w)}function C(S,R){const F=n.sliceStream(S);if(R&&F.push(null),S.previous=o,o&&(o.next=S),o=S,i.defineSkip(S.start),i.write(F),n.parser.lazy[S.start.line]){let x=i.events.length;for(;x--;)if(i.events[x][1].start.offset<l&&(!i.events[x][1].end||i.events[x][1].end.offset>l))return;const O=n.events.length;let $=O,U,k;for(;$--;)if(n.events[$][0]==="exit"&&n.events[$][1].type==="chunkFlow"){if(U){k=n.events[$][1].end;break}U=!0}for(y(r),x=O;x<n.events.length;)n.events[x][1].end={...k},x++;ke(n.events,$+1,0,n.events.slice(O)),n.events.length=x}}function y(S){let R=t.length;for(;R-- >S;){const F=t[R];n.containerState=F[1],F[0].exit.call(n,e)}t.length=S}function A(){i.write([null]),o=void 0,i=void 0,n.containerState._closeFlow=void 0}}function vl(e,n,t){return K(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function $e(e){if(e===null||Z(e)||Fe(e))return 1;if(yt(e))return 2}function kt(e,n,t){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(n=o(n,t),r.push(o))}return n}const Wt={name:"attention",resolveAll:Dl,tokenize:Pl};function Dl(e,n){let t=-1,r,i,o,l,a,s,u,f;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const c={...e[r][1].end},p={...e[t][1].start};Mn(c,-s),Mn(p,s),l={type:s>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},a={type:s>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:p},o={type:s>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[t][1].start}},i={type:s>1?"strong":"emphasis",start:{...l.start},end:{...a.end}},e[r][1].end={...l.start},e[t][1].start={...a.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=xe(u,[["enter",e[r][1],n],["exit",e[r][1],n]])),u=xe(u,[["enter",i,n],["enter",l,n],["exit",l,n],["enter",o,n]]),u=xe(u,kt(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),u=xe(u,[["exit",o,n],["enter",a,n],["exit",a,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(f=2,u=xe(u,[["enter",e[t][1],n],["exit",e[t][1],n]])):f=0,ke(e,r-1,t-r+3,u),t=r+u.length-f-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function Pl(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=$e(r);let o;return l;function l(s){return o=s,e.enter("attentionSequence"),a(s)}function a(s){if(s===o)return e.consume(s),a;const u=e.exit("attentionSequence"),f=$e(s),c=!f||f===2&&i||t.includes(s),p=!i||i===2&&f||t.includes(r);return u._open=!!(o===42?c:c&&(i||!p)),u._close=!!(o===42?p:p&&(f||!c)),n(s)}}function Mn(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const _l={name:"autolink",tokenize:Ll};function Ll(e,n,t){let r=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(h){return he(h)?(e.consume(h),l):h===64?t(h):u(h)}function l(h){return h===43||h===45||h===46||ue(h)?(r=1,a(h)):u(h)}function a(h){return h===58?(e.consume(h),r=0,s):(h===43||h===45||h===46||ue(h))&&r++<32?(e.consume(h),a):(r=0,u(h))}function s(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),n):h===null||h===32||h===60||pt(h)?t(h):(e.consume(h),s)}function u(h){return h===64?(e.consume(h),f):wl(h)?(e.consume(h),u):t(h)}function f(h){return ue(h)?c(h):t(h)}function c(h){return h===46?(e.consume(h),r=0,f):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),n):p(h)}function p(h){if((h===45||ue(h))&&r++<63){const g=h===45?p:c;return e.consume(h),g}return t(h)}}const lt={partial:!0,tokenize:zl};function zl(e,n,t){return r;function r(o){return V(o)?K(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||N(o)?n(o):t(o)}}const Pr={continuation:{tokenize:Fl},exit:Nl,name:"blockQuote",tokenize:Rl};function Rl(e,n,t){const r=this;return i;function i(l){if(l===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),o}return t(l)}function o(l){return V(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(l))}}function Fl(e,n,t){const r=this;return i;function i(l){return V(l)?K(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):o(l)}function o(l){return e.attempt(Pr,n,t)(l)}}function Nl(e){e.exit("blockQuote")}const _r={name:"characterEscape",tokenize:Ol};function Ol(e,n,t){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return Sl(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(o)}}const Lr={name:"characterReference",tokenize:Ml};function Ml(e,n,t){const r=this;let i=0,o,l;return a;function a(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),s}function s(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),o=31,l=ue,f(c))}function u(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,l=Cl,f):(e.enter("characterReferenceValue"),o=7,l=qt,f(c))}function f(c){if(c===59&&i){const p=e.exit("characterReferenceValue");return l===ue&&!sn(r.sliceSerialize(p))?t(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return l(c)&&i++<o?(e.consume(c),f):t(c)}}const jn={partial:!0,tokenize:Bl},Bn={concrete:!0,name:"codeFenced",tokenize:jl};function jl(e,n,t){const r=this,i={partial:!0,tokenize:F};let o=0,l=0,a;return s;function s(x){return u(x)}function u(x){const O=r.events[r.events.length-1];return o=O&&O[1].type==="linePrefix"?O[2].sliceSerialize(O[1],!0).length:0,a=x,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(x)}function f(x){return x===a?(l++,e.consume(x),f):l<3?t(x):(e.exit("codeFencedFenceSequence"),V(x)?K(e,c,"whitespace")(x):c(x))}function c(x){return x===null||N(x)?(e.exit("codeFencedFence"),r.interrupt?n(x):e.check(jn,w,R)(x)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(x))}function p(x){return x===null||N(x)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(x)):V(x)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),K(e,h,"whitespace")(x)):x===96&&x===a?t(x):(e.consume(x),p)}function h(x){return x===null||N(x)?c(x):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(x))}function g(x){return x===null||N(x)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(x)):x===96&&x===a?t(x):(e.consume(x),g)}function w(x){return e.attempt(i,R,C)(x)}function C(x){return e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),y}function y(x){return o>0&&V(x)?K(e,A,"linePrefix",o+1)(x):A(x)}function A(x){return x===null||N(x)?e.check(jn,w,R)(x):(e.enter("co
2deFlowValue"),S(x))}function S(x){return x===null||N(x)?(e.exit("codeFlowValue"),A(x)):(e.consume(x),S)}function R(x){return e.exit("codeFenced"),n(x)}function F(x,O,$){let U=0;return k;function k(v){return x.enter("lineEnding"),x.consume(v),x.exit("lineEnding"),D}function D(v){return x.enter("codeFencedFence"),V(v)?K(x,_,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(v):_(v)}function _(v){return v===a?(x.enter("codeFencedFenceSequence"),W(v)):$(v)}function W(v){return v===a?(U++,x.consume(v),W):U>=l?(x.exit("codeFencedFenceSequence"),V(v)?K(x,z,"whitespace")(v):z(v)):$(v)}function z(v){return v===null||N(v)?(x.exit("codeFencedFence"),O(v)):$(v)}}}function Bl(e,n,t){const r=this;return i;function i(l){return l===null?t(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return r.parser.lazy[r.now().line]?t(l):n(l)}}const At={name:"codeIndented",tokenize:Hl},Ul={partial:!0,tokenize:$l};function Hl(e,n,t){const r=this;return i;function i(u){return e.enter("codeIndented"),K(e,o,"linePrefix",5)(u)}function o(u){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?l(u):t(u)}function l(u){return u===null?s(u):N(u)?e.attempt(Ul,l,s)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||N(u)?(e.exit("codeFlowValue"),l(u)):(e.consume(u),a)}function s(u){return e.exit("codeIndented"),n(u)}}function $l(e,n,t){const r=this;return i;function i(l){return r.parser.lazy[r.now().line]?t(l):N(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):K(e,o,"linePrefix",5)(l)}function o(l){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(l):N(l)?i(l):t(l)}}const Vl={name:"codeText",previous:Wl,resolve:ql,tokenize:Kl};function ql(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 Wl(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Kl(e,n,t){let r=0,i,o;return l;function l(c){return e.enter("codeText"),e.enter("codeTextSequence"),a(c)}function a(c){return c===96?(e.consume(c),r++,a):(e.exit("codeTextSequence"),s(c))}function s(c){return c===null?t(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),s):c===96?(o=e.enter("codeTextSequence"),i=0,f(c)):N(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):(e.enter("codeTextData"),u(c))}function u(c){return c===null||c===32||c===96||N(c)?(e.exit("codeTextData"),s(c)):(e.consume(c),u)}function f(c){return c===96?(e.consume(c),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(c)):(o.type="codeTextData",u(c))}}class Yl{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 o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Je(this.left,r),o.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),Je(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Je(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);Je(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);Je(this.left,t.reverse())}}}function Je(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 zr(e){const n={};let t=-1,r,i,o,l,a,s,u;const f=new Yl(e);for(;++t<f.length;){for(;t in n;)t=n[t];if(r=f.get(t),t&&r[1].type==="chunkFlow"&&f.get(t-1)[1].type==="listItemPrefix"&&(s=r[1]._tokenizer.events,o=0,o<s.length&&s[o][1].type==="lineEndingBlank"&&(o+=2),o<s.length&&s[o][1].type==="content"))for(;++o<s.length&&s[o][1].type!=="content";)s[o][1].type==="chunkText"&&(s[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,Gl(f,t)),t=n[t],u=!0);else if(r[1]._container){for(o=t,i=void 0;o--;)if(l=f.get(o),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),l[1].type="lineEnding",i=o);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;i&&(r[1].end={...f.get(i)[1].start},a=f.slice(i,t),a.unshift(r),f.splice(i,t-i+1,a))}}return ke(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!u}function Gl(e,n){const t=e.get(n)[1],r=e.get(n)[2];let i=n-1;const o=[];let l=t._tokenizer;l||(l=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const a=l.events,s=[],u={};let f,c,p=-1,h=t,g=0,w=0;const C=[w];for(;h;){for(;e.get(++i)[1]!==h;);
vendor: 22,898 bytes, line 2
2o.push(i),h._tokenizer||(f=r.sliceStream(h),h.next||f.push(null),c&&l.defineSkip(h.start),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(f),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),c=h,h=h.next}for(h=t;++p<a.length;)a[p][0]==="exit"&&a[p-1][0]==="enter"&&a[p][1].type===a[p-1][1].type&&a[p][1].start.line!==a[p][1].end.line&&(w=p+1,C.push(w),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(l.events=[],h?(h._tokenizer=void 0,h.previous=void 0):C.pop(),p=C.length;p--;){const y=a.slice(C[p],C[p+1]),A=o.pop();s.push([A,A+y.length-1]),e.splice(A,2,y)}for(s.reverse(),p=-1;++p<s.length;)u[g+s[p][0]]=g+s[p][1],g+=s[p][1]-s[p][0]-1;return u}const Jl={resolve:Ql,tokenize:Zl},Xl={partial:!0,tokenize:eo};function Ql(e){return zr(e),e}function Zl(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?o(a):N(a)?e.check(Xl,l,o)(a):(e.consume(a),i)}function o(a){return e.exit("chunkContent"),e.exit("content"),n(a)}function l(a){return e.consume(a),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function eo(e,n,t){const r=this;return i;function i(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),K(e,o,"linePrefix")}function o(l){if(l===null||N(l))return t(l);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(l):e.interrupt(r.parser.constructs.flow,t,n)(l)}}function Rr(e,n,t,r,i,o,l,a,s){const u=s||Number.POSITIVE_INFINITY;let f=0;return c;function c(y){return y===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(y),e.exit(o),p):y===null||y===32||y===41||pt(y)?t(y):(e.enter(r),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),w(y))}function p(y){return y===62?(e.enter(o),e.consume(y),e.exit(o),e.exit(i),e.exit(r),n):(e.enter(a),e.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===62?(e.exit("chunkString"),e.exit(a),p(y)):y===null||y===60||N(y)?t(y):(e.consume(y),y===92?g:h)}function g(y){return y===60||y===62||y===92?(e.consume(y),h):h(y)}function w(y){return!f&&(y===null||y===41||Z(y))?(e.exit("chunkString"),e.exit(a),e.exit(l),e.exit(r),n(y)):f<u&&y===40?(e.consume(y),f++,w):y===41?(e.consume(y),f--,w):y===null||y===32||y===40||pt(y)?t(y):(e.consume(y),y===92?C:w)}function C(y){return y===40||y===41||y===92?(e.consume(y),w):w(y)}}function Fr(e,n,t,r,i,o){const l=this;let a=0,s;return u;function u(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(o),f}function f(h){return a>999||h===null||h===91||h===93&&!s||h===94&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?t(h):h===93?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),n):N(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===null||h===91||h===93||N(h)||a++>999?(e.exit("chunkString"),f(h)):(e.consume(h),s||(s=!V(h)),h===92?p:c)}function p(h){return h===91||h===92||h===93?(e.consume(h),a++,c):c(h)}}function Nr(e,n,t,r,i,o){let l;return a;function a(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),l=p===40?41:p,s):t(p)}function s(p){return p===l?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),n):(e.enter(o),u(p))}function u(p){return p===l?(e.exit(o),s(l)):p===null?t(p):N(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),K(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===l||p===null||N(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?c:f)}function c(p){return p===l||p===92?(e.consume(p),f):f(p)}}function et(e,n){let t;return r;function r(i){return N(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):V(i)?K(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const to={name:"definition",tokenize:ro},no={partial:!0,tokenize:io};function ro(e,n,t){const r=this;let i;return o;function o(h){return e.enter("definition"),l(h)}function l(h){return Fr.call(r,e,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return i=Ce(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),s):t(h)}function s(h){return Z(h)?et(e,u)(h):u(h)}function u(h){return Rr(e,f,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function f(h){return e.attempt(no,c,c)(h)}function c(h){return V(h)?K(e,p,"whitespace")(h):p(h)}function p(h){return h===null||N(h)?(e.exit("definition"),r.parser.defined.push(i),n(h)):t(h)}}function io(e,n,t){return r;function r(a){return Z(a)?et(e,i)(a):t(a)}function i(a){return Nr(e,o,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return V(a)?K(e,l,"whitespace")(a):l(a)}function l(a){return a===null||N(a)?n(a):t(a)}}const lo={name:"hardBreakEscape",tokenize:oo};function oo(e,n,t){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return N(o)?(e.exit("hardBreakEscape"),n(o)):t(o)}}const ao={name:"headingAtx",resolve:so,tokenize:uo};function so(e,n){let t=e.length-2,r=3,i,o;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},o={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},ke(e,r,t-r+1,[["enter",i,n],["enter",o,n],["exit",o,n],["exit",i,n]])),e}function uo(e,n,t){let r=0;return i;function i(f){return e.enter("atxHeading"),o(f)}function o(f){return e.enter("atxHeadingSequence"),l(f)}function l(f){return f===35&&r++<6?(e.consume(f),l):f===null||Z(f)?(e.exit("atxHeadingSequence"),a(f)):t(f)}function a(f){return f===35?(e.enter("atxHeadingSequence"),s(f)):f===null||N(f)?(e.exit("atxHeading"),n(f)):V(f)?K(e,a,"whitespace")(f):(e.enter("atxHeadingText"),u(f))}function s(f){return f===35?(e.consume(f),s):(e.exit("atxHeadingSequence"),a(f))}function u(f){return f===null||f===35||Z(f)?(e.exit("atxHeadingText"),a(f)):(e.consume(f),u)}}const co=["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"],Un=["pre","script","style","textarea"],fo={concrete:!0,name:"htmlFlow",resolveTo:mo,tokenize:go},ho={partial:!0,tokenize:ko},po={partial:!0,tokenize:yo};function mo(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 go(e,n,t){const r=this;let i,o,l,a,s;return u;function u(d){return f(d)}function f(d){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(d),c}function c(d){return d===33?(e.consume(d),p):d===47?(e.consume(d),o=!0,w):d===63?(e.consume(d),i=3,r.interrupt?n:m):he(d)?(e.consume(d),l=String.fromCharCode(d),C):t(d)}function p(d){return d===45?(e.consume(d),i=2,h):d===91?(e.consume(d),i=5,a=0,g):he(d)?(e.consume(d),i=4,r.interrupt?n:m):t(d)}function h(d){return d===45?(e.consume(d),r.interrupt?n:m):t(d)}function g(d){const G="CDATA[";return d===G.charCodeAt(a++)?(e.consume(d),a===G.length?r.interrupt?n:_:g):t(d)}function w(d){return he(d)?(e.consume(d),l=String.fromCharCode(d),C):t(d)}function C(d){if(d===null||d===47||d===62||Z(d)){const G=d===47,de=l.toLowerCase();return!G&&!o&&Un.includes(de)?(i=1,r.interrupt?n(d):_(d)):co.includes(l.toLowerCase())?(i=6,G?(e.consume(d),y):r.interrupt?n(d):_(d)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(d):o?A(d):S(d))}return d===45||ue(d)?(e.consume(d),l+=String.fromCharCode(d),C):t(d)}function y(d){return d===62?(e.consume(d),r.interrupt?n:_):t(d)}function A(d){return V(d)?(e.consume(d),A):k(d)}function S(d){return d===47?(e.consume(d),k):d===58||d===95||he(d)?(e.consume(d),R):V(d)?(e.consume(d),S):k(d)}function R(d){return d===45||d===46||d===58||d===95||ue(d)?(e.consume(d),R):F(d)}function F(d){return d===61?(e.consume(d),x):V(d)?(e.consume(d),F):S(d)}function x(d){return d===null||d===60||d===61||d===62||d===96?t(d):d===34||d===39?(e.consume(d),s=d,O):V(d)?(e.consume(d),x):$(d)}function O(d){return d===s?(e.consume(d),s=null,U):d===null||N(d)?t(d):(e.consume(d),O)}function $(d){return d===null||d===34||d===39||d===47||d===60||d===61||d===62||d===96||Z(d)?F(d):(e.consume(d),$)}function U(d){return d===47||d===62||V(d)?S(d):t(d)}function k(d){return d===62?(e.consume(d),D):t(d)}function D(d){return d===null||N(d)?_(d):V(d)?(e.consume(d),D):t(d)}function _(d){return d===45&&i===2?(e.consume(d),L):d===60&&i===1?(e.consume(d),H):d===62&&i===4?(e.consume(d),oe):d===63&&i===3?(e.consume(d),m):d===93&&i===5?(e.consume(d),ne):N(d)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(ho,se,W)(d)):d===null||N(d)?(e.exit("htmlFlowData"),W(d)):(e.consume(d),_)}function W(d){return e.check(po,z,se)(d)}function z(d){return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),v}function v(d){return d===null||N(d)?W(d):(e.enter("htmlFlowData"),_(d))}function L(d){return d===45?(e.consume(d),m):_(d)}function H(d){return d===47?(e.consume(d),l="",Y):_(d)}function Y(d){if(d===62){const G=l.toLowerCase();return Un.includes(G)?(e.consume(d),oe):_(d)}return he(d)&&l.length<8?(e.consume(d),l+=String.fromCharCode(d),Y):_(d)}function ne(d){return d===93?(e.consume(d),m):_(d)}function m(d){return d===62?(e.consume(d),oe):d===45&&i===2?(e.consume(d),m):_(d)}function oe(d){return d===null||N(d)?(e.exit("htmlFlowData"),se(d)):(e.consume(d),oe)}function se(d){return e.exit("htmlFlow"),n(d)}}function yo(e,n,t){const r=this;return i;function i(l){return N(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):t(l)}function o(l){return r.parser.lazy[r.now().line]?t(l):n(l)}}function ko(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(lt,n,t)}}const xo={name:"htmlText",tokenize:bo};function bo(e,n,t){const r=this;let i,o,l;return a;function a(m){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(m),s}function s(m){return m===33?(e.consume(m),u):m===47?(e.consume(m),F):m===63?(e.consume(m),S):he(m)?(e.consume(m),$):t(m)}function u(m){return m===45?(e.consume(m),f):m===91?(e.consume(m),o=0,g):he(m)?(e.consume(m),A):t(m)}function f(m){return m===45?(e.consume(m),h):t(m)}function c(m){return m===null?t(m):m===45?(e.consume(m),p):N(m)?(l=c,H(m)):(e.consume(m),c)}function p(m){return m===45?(e.consume(m),h):c(m)}function h(m){return m===62?L(m):m===45?p(m):c(m)}function g(m){const oe="CDATA[";return m===oe.charCodeAt(o++)?(e.consume(m),o===oe.length?w:g):t(m)}function w(m){return m===null?t(m):m===93?(e.consume(m),C):N(m)?(l=w,H(m)):(e.consume(m),w)}function C(m){return m===93?(e.consume(m),y):w(m)}function y(m){return m===62?L(m):m===93?(e.consume(m),y):w(m)}function A(m){return m===null||m===62?L(m):N(m)?(l=A,H(m)):(e.consume(m),A)}function S(m){return m===null?t(m):m===63?(e.consume(m),R):N(m)?(l=S,H(m)):(e.consume(m),S)}function R(m){return m===62?L(m):S(m)}function F(m){return he(m)?(e.consume(m),x):t(m)}function x(m){return m===45||ue(m)?(e.consume(m),x):O(m)}function O(m){return N(m)?(l=O,H(m)):V(m)?(e.consume(m),O):L(m)}function $(m){return m===45||ue(m)?(e.consume(m),$):m===47||m===62||Z(m)?U(m):t(m)}function U(m){return m===47?(e.consume(m),L):m===58||m===95||he(m)?(e.consume(m),k):N(m)?(l=U,H(m)):V(m)?(e.consume(m),U):L(m)}function k(m){return m===45||m===46||m===58||m===95||ue(m)?(e.consume(m),k):D(m)}function D(m){return m===61?(e.consume(m),_):N(m)?(l=D,H(m)):V(m)?(e.consume(m),D):U(m)}function _(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),i=m,W):N(m)?(l=_,H(m)):V(m)?(e.consume(m),_):(e.consume(m),z)}function W(m){return m===i?(e.consume(m),i=void 0,v):m===null?t(m):N(m)?(l=W,H(m)):(e.consume(m),W)}function z(m){return m===null||m===34||m===39||m===60||m===61||m===96?t(m):m===47||m===62||Z(m)?U(m):(e.consume(m),z)}function v(m){return m===47||m===62||Z(m)?U(m):t(m)}function L(m){return m===62?(e.consume(m),e.exit("htmlTextData"),e.exit("htmlText"),n):t(m)}function H(m){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),Y}function Y(m){return V(m)?K(e,ne,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m):ne(m)}function ne(m){return e.enter("htmlTextData"),l(m)}}const un={name:"labelEnd",resolveAll:Eo,resolveTo:To,tokenize:Ao},wo={tokenize:Io},Co={tokenize:vo},So={tokenize:Do};function Eo(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&&ke(e,0,e.length,t),e}function To(e,n){let t=e.length,r=0,i,o,l,a;for(;t--;)if(i=e[t][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[t][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(l){if(e[t][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(l=t);const s={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[o][1].start},end:{...e[l][1].end}},f={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[l-2][1].start}};return a=[["enter",s,n],["enter",u,n]],a=xe(a,e.slice(o+1,o+r+3)),a=xe(a,[["enter",f,n]]),a=xe(a,kt(n.parser.constructs.insideSpan.null,e.slice(o+r+4,l-3),n)),a=xe(a,[["exit",f,n],e[l-2],e[l-1],["exit",u,n]]),a=xe(a,e.slice(l+1)),a=xe(a,[["exit",s,n]]),ke(e,o,e.length,a),e}function Ao(e,n,t){const r=this;let i=r.events.length,o,l;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return a;function a(p){return o?o._inactive?c(p):(l=r.parser.defined.includes(Ce(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),s):t(p)}function s(p){return p===40?e.attempt(wo,f,l?f:c)(p):p===91?e.attempt(Co,f,l?u:c)(p):l?f(p):c(p)}function u(p){return e.attempt(So,f,c)(p)}function f(p){return n(p)}function c(p){return o._balanced=!0,t(p)}}function Io(e,n,t){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return Z(c)?et(e,o)(c):o(c)}function o(c){return c===41?f(c):Rr(e,l,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function l(c){return Z(c)?et(e,s)(c):f(c)}function a(c){return t(c)}function s(c){return c===34||c===39||c===40?Nr(e,u,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function u(c){return Z(c)?et(e,f)(c):f(c)}function f(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),n):t(c)}}function vo(e,n,t){const r=this;return i;function i(a){return Fr.call(r,e,o,l,"reference","referenceMarker","referenceString")(a)}function o(a){return r.parser.defined.includes(Ce(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(a):t(a)}function l(a){return t(a)}}function Do(e,n,t){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),n):t(o)}}const Po={name:"labelStartImage",resolveAll:un.resolveAll,tokenize:_o};function _o(e,n,t){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),o}function o(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),l):t(a)}function l(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(a):n(a)}}const Lo={name:"labelStartLink",resolveAll:un.resolveAll,tokenize:zo};function zo(e,n,t){const r=this;return i;function i(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),o}function o(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(l):n(l)}}const It={name:"lineEnding",tokenize:Ro};function Ro(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),K(e,n,"linePrefix")}}const ht={name:"thematicBreak",tokenize:Fo};function Fo(e,n,t){let r=0,i;return o;function o(u){return e.enter("thematicBreak"),l(u)}function l(u){return i=u,a(u)}function a(u){return u===i?(e.enter("thematicBreakSequence"),s(u)):r>=3&&(u===null||N(u))?(e.exit("thematicBreak"),n(u)):t(u)}function s(u){return u===i?(e.consume(u),r++,s):(e.exit("thematicBreakSequence"),V(u)?K(e,a,"whitespace")(u):a(u))}}const pe={continuation:{tokenize:jo},exit:Uo,name:"list",tokenize:Mo},No={partial:!0,tokenize:Ho},Oo={partial:!0,tokenize:Bo};function Mo(e,n,t){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,l=0;return a;function a(h){const g=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:qt(h)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(ht,t,u)(h):u(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(h)}return t(h)}function s(h){return qt(h)&&++l<10?(e.consume(h),s):(!r.interrupt||l<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):t(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(lt,r.interrupt?t:f,e.attempt(No,p,c))}function f(h){return r.containerState.initialBlankLine=!0,o++,p(h)}function c(h){return V(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):t(h)}function p(h){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(h)}}function jo(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(lt,i,o);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,K(e,n,"listItemIndent",r.containerState.size+1)(a)}function o(a){return r.containerState.furtherBlankLines||!V(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Oo,n,l)(a))}function l(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,K(e,e.attempt(pe,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function Bo(e,n,t){const r=this;return K(e,i,"listItemIndent",r.containerState.size+1);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?n(o):t(o)}}function Uo(e){e.exit(this.containerState.type)}function Ho(e,n,t){const r=this;return K(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const l=r.events[r.events.length-1];return!V(o)&&l&&l[1].type==="listItemPrefixWhitespace"?n(o):t(o)}}const Hn={name:"setextUnderline",resolveTo:$o,tokenize:Vo};function $o(e,n){let t=e.length,r,i,o;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),!o&&e[t][1].type==="definition"&&(o=t);const l={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",l,n]),e.splice(o+1,0,["exit",e[r][1],n]),e[r][1].end={...e[o][1].end}):e[r][1]=l,e.push(["exit",l,n]),e}function Vo(e,n,t){const r=this;let i;return o;function o(u){let f=r.events.length,c;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){c=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),i=u,l(u)):t(u)}function l(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===i?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),V(u)?K(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||N(u)?(e.exit("setextHeadingLine"),n(u)):t(u)}}const qo={tokenize:Wo};function Wo(e){const n=this,t=e.attempt(lt,r,e.attempt(this.parser.constructs.flowInitial,i,K(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Jl,i)),"linePrefix")));return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const Ko={resolveAll:Mr()},Yo=Or("string"),Go=Or("text");function Or(e){return{resolveAll:Mr(e==="text"?Jo:void 0),tokenize:n};function n(t){const r=this,i=this.parser.constructs[e],o=t.attempt(i,l,a);return l;function l(f){return u(f)?o(f):a(f)}function a(f){if(f===null){t.consume(f);return}return t.enter("data"),t.consume(f),s}function s(f){return u(f)?(t.exit("data"),o(f)):(t.consume(f),s)}function u(f){if(f===null)return!0;const c=i[f];let p=-1;if(c)for(;++p<c.length;){const h=c[p];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function Mr(e){return n;function n(t,r){let i=-1,o;for(;++i<=t.length;)o===void 0?t[i]&&t[i][1].type==="data"&&(o=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==o+2&&(t[o][1].end=t[i-1][1].end,t.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(t,r):t}}function Jo(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 o=i.length,l=-1,a=0,s;for(;o--;){const u=i[o];if(typeof u=="string"){for(l=u.length;u.charCodeAt(l-1)===32;)a++,l--;if(l)break;l=-1}else if(u===-2)s=!0,a++;else if(u!==-1){o++;break}}
vendor: 4,474 bytes, lines 2-4
2if(n._contentTypeTextTrailing&&t===e.length&&(a=0),a){const u={type:t===e.length||s||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?l:r.start._bufferIndex+l,_index:r.start._index+o,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 Xo={42:pe,43:pe,45:pe,48:pe,49:pe,50:pe,51:pe,52:pe,53:pe,54:pe,55:pe,56:pe,57:pe,62:Pr},Qo={91:to},Zo={[-2]:At,[-1]:At,32:At},ea={35:ao,42:ht,45:[Hn,ht],60:fo,61:Hn,95:ht,96:Bn,126:Bn},ta={38:Lr,92:_r},na={[-5]:It,[-4]:It,[-3]:It,33:Po,38:Lr,42:Wt,60:[_l,xo],91:Lo,92:[lo,_r],93:un,95:Wt,96:Vl},ra={null:[Wt,Ko]},ia={null:[42,95]},la={null:[]},oa=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:ia,contentInitial:Qo,disable:la,document:Xo,flow:ea,flowInitial:Zo,insideSpan:ra,string:ta,text:na},Symbol.toStringTag,{value:"Module"}));function aa(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={},o=[];let l=[],a=[];const s={attempt:O(F),check:O(x),consume:A,enter:S,exit:R,interrupt:O(x,{interrupt:!0})},u={code:null,containerState:{},defineSkip:w,events:[],now:g,parser:e,previous:null,sliceSerialize:p,sliceStream:h,write:c};let f=n.tokenize.call(u,s);return n.resolveAll&&o.push(n),u;function c(D){return l=xe(l,D),C(),l[l.length-1]!==null?[]:($(n,0),u.events=kt(o,u.events,u),u.events)}function p(D,_){return ua(h(D),_)}function h(D){return sa(l,D)}function g(){const{_bufferIndex:D,_index:_,line:W,column:z,offset:v}=r;return{_bufferIndex:D,_index:_,line:W,column:z,offset:v}}function w(D){i[D.line]=D.column,k()}function C(){let D;for(;r._index<l.length;){const _=l[r._index];if(typeof _=="string")for(D=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===D&&r._bufferIndex<_.length;)y(_.charCodeAt(r._bufferIndex));else y(_)}}function y(D){f=f(D)}function A(D){N(D)?(r.line++,r.column=1,r.offset+=D===-3?2:1,k()):D!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=D}function S(D,_){const W=_||{};return W.type=D,W.start=g(),u.events.push(["enter",W,u]),a.push(W),W}function R(D){const _=a.pop();return _.end=g(),u.events.push(["exit",_,u]),_}function F(D,_){$(D,_.from)}function x(D,_){_.restore()}function O(D,_){return W;function W(z,v,L){let H,Y,ne,m;return Array.isArray(z)?se(z):"tokenize"in z?se([z]):oe(z);function oe(te){return re;function re(J){const X=J!==null&&te[J],ae=J!==null&&te.null,be=[...Array.isArray(X)?X:X?[X]:[],...Array.isArray(ae)?ae:ae?[ae]:[]];return se(be)(J)}}function se(te){return H=te,Y=0,te.length===0?L:d(te[Y])}function d(te){return re;function re(J){return m=U(),ne=te,te.partial||(u.currentConstruct=te),te.name&&u.parser.constructs.disable.null.includes(te.name)?de():te.tokenize.call(_?Object.assign(Object.create(u),_):u,s,G,de)(J)}}function G(te){return D(ne,m),v}function de(te){return m.restore(),++Y<H.length?d(H[Y]):L}}}function $(D,_){D.resolveAll&&!o.includes(D)&&o.push(D),D.resolve&&ke(u.events,_,u.events.length-_,D.resolve(u.events.slice(_),u)),D.resolveTo&&(u.events=D.resolveTo(u.events,u))}function U(){const D=g(),_=u.previous,W=u.currentConstruct,z=u.events.length,v=Array.from(a);return{from:z,restore:L};function L(){r=D,u.previous=_,u.currentConstruct=W,u.events.length=z,a=v,k()}}function k(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function sa(e,n){const t=n.start._index,r=n.start._bufferIndex,i=n.end._index,o=n.end._bufferIndex;let l;if(t===i)l=[e[t].slice(r,o)];else{if(l=e.slice(t,i),r>-1){const a=l[0];typeof a=="string"?l[0]=a.slice(r):l.shift()}o>0&&l.push(e[i].slice(0,o))}return l}function ua(e,n){let t=-1;const r=[];let i;for(;++t<e.length;){const o=e[t];let l;if(typeof o=="string")l=o;else switch(o){case-5:{l="\r";break}case-4:{l=`
3`;break}case-3:{l=`\r
4`;break}case-2:{l=n?" ":"	";break}case-1:{if(!n&&i)continue;l=" ";break}default:l=String.fromCharCode(o)}i=o===-2,r.push(l)}return r.join("")}function ca(e){const r={constructs:vr([oa,...(e||{}).extensions||[]]),content:i(El),defined:[],document:i(Al),flow:i(qo),lazy:{},string:i(Yo),text:i(Go)};return r;function i(o){return l;function l(a){return aa(r,o,a)}}}function fa(e){for(;!zr(e););return e}const $n=/[\0\t\n\r]/g;function ha(){let e=1,n="",t=!0,r;return i;function i(o,l,a){const s=[];let u,f,c,p,h;
vendor: 11,058 bytes, line 4
4for(o=n+(typeof o=="string"?o.toString():new TextDecoder(l||void 0).decode(o)),c=0,n="",t&&(o.charCodeAt(0)===65279&&c++,t=void 0);c<o.length;){if($n.lastIndex=c,u=$n.exec(o),p=u&&u.index!==void 0?u.index:o.length,h=o.charCodeAt(p),!u){n=o.slice(c);break}if(h===10&&c===p&&r)s.push(-3),r=void 0;else switch(r&&(s.push(-5),r=void 0),c<p&&(s.push(o.slice(c,p)),e+=p-c),h){case 0:{s.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,s.push(-2);e++<f;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:r=!0,e=1}c=p+1}return a&&(r&&s.push(-5),n&&s.push(n),s.push(null)),s}}const pa=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ma(e){return e.replace(pa,da)}function da(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),o=i===120||i===88;return Dr(t.slice(o?2:1),o?16:10)}return sn(t)||e}const jr={}.hasOwnProperty;function ga(e,n,t){return n&&typeof n=="object"&&(t=n,n=void 0),ya(t)(fa(ca(t).document().write(ha()(e,n,!0))))}function ya(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Cn),autolinkProtocol:U,autolinkEmail:U,atxHeading:o(xn),blockQuote:o(ae),characterEscape:U,characterReference:U,codeFenced:o(be),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:o(be,l),codeText:o(Ct,l),codeTextData:U,data:U,codeFlowValue:U,definition:o(P),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:o(le),hardBreakEscape:o(bn),hardBreakTrailing:o(bn),htmlFlow:o(wn,l),htmlFlowData:U,htmlText:o(wn,l),htmlTextData:U,image:o(xi),label:l,link:o(Cn),listItem:o(bi),listItemValue:p,listOrdered:o(Sn,c),listUnordered:o(Sn),paragraph:o(wi),reference:d,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:o(xn),strong:o(Ci),thematicBreak:o(Ei)},exit:{atxHeading:s(),atxHeadingSequence:F,autolink:s(),autolinkEmail:X,autolinkProtocol:J,blockQuote:s(),characterEscapeValue:k,characterReferenceMarkerHexadecimal:de,characterReferenceMarkerNumeric:de,characterReferenceValue:te,characterReference:re,codeFenced:s(C),codeFencedFence:w,codeFencedFenceInfo:h,codeFencedFenceMeta:g,codeFlowValue:k,codeIndented:s(y),codeText:s(v),codeTextData:k,data:k,definition:s(),definitionDestinationString:R,definitionLabelString:A,definitionTitleString:S,emphasis:s(),hardBreakEscape:s(_),hardBreakTrailing:s(_),htmlFlow:s(W),htmlFlowData:k,htmlText:s(z),htmlTextData:k,image:s(H),label:ne,labelText:Y,lineEnding:D,link:s(L),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:G,resourceDestinationString:m,resourceTitleString:oe,resource:se,setextHeading:s($),setextHeadingLineSequence:O,setextHeadingText:x,strong:s(),thematicBreak:s()}};Br(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(b){let I={type:"root",children:[]};const M={stack:[I],tokenStack:[],config:n,enter:a,exit:u,buffer:l,resume:f,data:t},q=[];let Q=-1;for(;++Q<b.length;)if(b[Q][1].type==="listOrdered"||b[Q][1].type==="listUnordered")if(b[Q][0]==="enter")q.push(Q);else{const we=q.pop();Q=i(b,we,Q)}for(Q=-1;++Q<b.length;){const we=n[b[Q][0]];jr.call(we,b[Q][1].type)&&we[b[Q][1].type].call(Object.assign({sliceSerialize:b[Q][2].sliceSerialize},M),b[Q][1])}if(M.tokenStack.length>0){const we=M.tokenStack[M.tokenStack.length-1];(we[1]||Vn).call(M,void 0,we[0])}for(I.position={start:Pe(b.length>0?b[0][1].start:{line:1,column:1,offset:0}),end:Pe(b.length>0?b[b.length-2][1].end:{line:1,column:1,offset:0})},Q=-1;++Q<n.transforms.length;)I=n.transforms[Q](I)||I;return I}function i(b,I,M){let q=I-1,Q=-1,we=!1,Le,Ae,We,Ke;for(;++q<=M;){const ge=b[q];switch(ge[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ge[0]==="enter"?Q++:Q--,Ke=void 0;break}case"lineEndingBlank":{ge[0]==="enter"&&(Le&&!Ke&&!Q&&!We&&(We=q),Ke=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ke=void 0}if(!Q&&ge[0]==="enter"&&ge[1].type==="listItemPrefix"||Q===-1&&ge[0]==="exit"&&(ge[1].type==="listUnordered"||ge[1].type==="listOrdered")){if(Le){let Oe=q;for(Ae=void 0;Oe--;){const Ie=b[Oe];if(Ie[1].type==="lineEnding"||Ie[1].type==="lineEndingBlank"){if(Ie[0]==="exit")continue;Ae&&(b[Ae][1].type="lineEndingBlank",we=!0),Ie[1].type="lineEnding",Ae=Oe}else if(!(Ie[1].type==="linePrefix"||Ie[1].type==="blockQuotePrefix"||Ie[1].type==="blockQuotePrefixWhitespace"||Ie[1].type==="blockQuoteMarker"||Ie[1].type==="listItemIndent"))break}We&&(!Ae||We<Ae)&&(Le._spread=!0),Le.end=Object.assign({},Ae?b[Ae][1].start:ge[1].end),b.splice(Ae||q,0,["exit",Le,ge[2]]),q++,M++}if(ge[1].type==="listItemPrefix"){const Oe={type:"listItem",_spread:!1,start:Object.assign({},ge[1].start),end:void 0};Le=Oe,b.splice(q,0,["enter",Oe,ge[2]]),q++,M++,We=void 0,Ke=!0}}}return b[I][1]._spread=we,M}function o(b,I){return M;function M(q){a.call(this,b(q),q),I&&I.call(this,q)}}function l(){this.stack.push({type:"fragment",children:[]})}function a(b,I,M){this.stack[this.stack.length-1].children.push(b),this.stack.push(b),this.tokenStack.push([I,M||void 0]),b.position={start:Pe(I.start),end:void 0}}function s(b){return I;function I(M){b&&b.call(this,M),u.call(this,M)}}function u(b,I){const M=this.stack.pop(),q=this.tokenStack.pop();if(q)q[0].type!==b.type&&(I?I.call(this,b,q[0]):(q[1]||Vn).call(this,b,q[0]));else throw new Error("Cannot close `"+b.type+"` ("+Ze({start:b.start,end:b.end})+"): it’s not open");M.position.end=Pe(b.end)}function f(){return an(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function p(b){if(this.data.expectingFirstListItemValue){const I=this.stack[this.stack.length-2];I.start=Number.parseInt(this.sliceSerialize(b),10),this.data.expectingFirstListItemValue=void 0}}function h(){const b=this.resume(),I=this.stack[this.stack.length-1];I.lang=b}function g(){const b=this.resume(),I=this.stack[this.stack.length-1];I.meta=b}function w(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const b=this.resume(),I=this.stack[this.stack.length-1];I.value=b.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const b=this.resume(),I=this.stack[this.stack.length-1];I.value=b.replace(/(\r?\n|\r)$/g,"")}function A(b){const I=this.resume(),M=this.stack[this.stack.length-1];M.label=I,M.identifier=Ce(this.sliceSerialize(b)).toLowerCase()}function S(){const b=this.resume(),I=this.stack[this.stack.length-1];I.title=b}function R(){const b=this.resume(),I=this.stack[this.stack.length-1];I.url=b}function F(b){const I=this.stack[this.stack.length-1];if(!I.depth){const M=this.sliceSerialize(b).length;I.depth=M}}function x(){this.data.setextHeadingSlurpLineEnding=!0}function O(b){const I=this.stack[this.stack.length-1];I.depth=this.sliceSerialize(b).codePointAt(0)===61?1:2}function $(){this.data.setextHeadingSlurpLineEnding=void 0}function U(b){const M=this.stack[this.stack.length-1].children;let q=M[M.length-1];(!q||q.type!=="text")&&(q=Si(),q.position={start:Pe(b.start),end:void 0},M.push(q)),this.stack.push(q)}function k(b){const I=this.stack.pop();I.value+=this.sliceSerialize(b),I.position.end=Pe(b.end)}function D(b){const I=this.stack[this.stack.length-1];if(this.data.atHardBreak){const M=I.children[I.children.length-1];M.position.end=Pe(b.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(I.type)&&(U.call(this,b),k.call(this,b))}function _(){this.data.atHardBreak=!0}function W(){const b=this.resume(),I=this.stack[this.stack.length-1];I.value=b}function z(){const b=this.resume(),I=this.stack[this.stack.length-1];I.value=b}function v(){const b=this.resume(),I=this.stack[this.stack.length-1];I.value=b}function L(){const b=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";b.type+="Reference",b.referenceType=I,delete b.url,delete b.title}else delete b.identifier,delete b.label;this.data.referenceType=void 0}function H(){const b=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";b.type+="Reference",b.referenceType=I,delete b.url,delete b.title}else delete b.identifier,delete b.label;this.data.referenceType=void 0}function Y(b){const I=this.sliceSerialize(b),M=this.stack[this.stack.length-2];M.label=ma(I),M.identifier=Ce(I).toLowerCase()}function ne(){const b=this.stack[this.stack.length-1],I=this.resume(),M=this.stack[this.stack.length-1];if(this.data.inReference=!0,M.type==="link"){const q=b.children;M.children=q}else M.alt=I}function m(){const b=this.resume(),I=this.stack[this.stack.length-1];I.url=b}function oe(){const b=this.resume(),I=this.stack[this.stack.length-1];I.title=b}function se(){this.data.inReference=void 0}function d(){this.data.referenceType="collapsed"}function G(b){const I=this.resume(),M=this.stack[this.stack.length-1];M.label=I,M.identifier=Ce(this.sliceSerialize(b)).toLowerCase(),this.data.referenceType="full"}function de(b){this.data.characterReferenceType=b.type}function te(b){const I=this.sliceSerialize(b),M=this.data.characterReferenceType;let q;M?(q=Dr(I,M==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):q=sn(I);const Q=this.stack[this.stack.length-1];Q.value+=q}function re(b){const I=this.stack.pop();I.position.end=Pe(b.end)}function J(b){k.call(this,b);const I=this.stack[this.stack.length-1];I.url=this.sliceSerialize(b)}function X(b){k.call(this,b);const I=this.stack[this.stack.length-1];I.url="mailto:"+this.sliceSerialize(b)}function ae(){return{type:"blockquote",children:[]}}function be(){return{type:"code",lang:null,meta:null,value:""}}function Ct(){return{type:"inlineCode",value:""}}function P(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function le(){return{type:"emphasis",children:[]}}function xn(){return{type:"heading",depth:0,children:[]}}function bn(){return{type:"break"}}function wn(){return{type:"html",value:""}}function xi(){return{type:"image",title:null,url:"",alt:null}}function Cn(){return{type:"link",title:null,url:"",children:[]}}function Sn(b){return{type:"list",ordered:b.type==="listOrdered",start:null,spread:b._spread,children:[]}}function bi(b){return{type:"listItem",spread:b._spread,checked:null,children:[]}}function wi(){return{type:"paragraph",children:[]}}function Ci(){return{type:"strong",children:[]}}function Si(){return{type:"text",value:""}}function Ei(){return{type:"thematicBreak"}}}function Pe(e){return{line:e.line,column:e.column,offset:e.offset}}function Br(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?Br(e,r):ka(e,r)}}function ka(e,n){let t;for(t in n)if(jr.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 Vn(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Ze({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Ze({start:n.start,end:n.end}
vendor: 9,730 bytes, lines 4-8
4)+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Ze({start:n.start,end:n.end})+") is still open")}function xa(e){const n=this;n.parser=t;function t(r){return ga(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function ba(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 wa(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:`
5`}]}function Ca(e,n){const t=n.value?n.value+`
6`:"",r={},i=n.lang?n.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:t}]};return n.meta&&(o.data={meta:n.meta}),e.patch(n,o),o=e.applyData(n,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(n,o),o}function Sa(e,n){const t={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Ea(e,n){const t={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Ta(e,n){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(n.identifier).toUpperCase(),i=qe(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let l,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=o+1,a+=1,e.footnoteCounts.set(r,a);const s={type:"element",tagName:"a",properties:{href:"#"+t+"fn-"+i,id:t+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(n,s);const u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(n,u),e.applyData(n,u)}function Aa(e,n){const t={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Ia(e,n){if(e.options.allowDangerousHtml){const t={type:"raw",value:n.value};return e.patch(n,t),e.applyData(n,t)}}function Ur(e,n){const t=n.referenceType;let r="]";if(t==="collapsed"?r+="[]":t==="full"&&(r+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+r}];const i=e.all(n),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const l=i[i.length-1];return l&&l.type==="text"?l.value+=r:i.push({type:"text",value:r}),i}function va(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return Ur(e,n);const i={src:qe(r.url||""),alt:n.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(n,o),e.applyData(n,o)}function Da(e,n){const t={src:qe(n.url)};n.alt!==null&&n.alt!==void 0&&(t.alt=n.alt),n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"img",properties:t,children:[]};return e.patch(n,r),e.applyData(n,r)}function Pa(e,n){const t={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,t);const r={type:"element",tagName:"code",properties:{},children:[t]};return e.patch(n,r),e.applyData(n,r)}function _a(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return Ur(e,n);const i={href:qe(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(n)};return e.patch(n,o),e.applyData(n,o)}function La(e,n){const t={href:qe(n.url)};n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"a",properties:t,children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function za(e,n,t){const r=e.all(n),i=t?Ra(t):Hr(n),o={},l=[];if(typeof n.checked=="boolean"){const f=r[0];let c;f&&f.type==="element"&&f.tagName==="p"?c=f:(c={type:"element",tagName:"p",properties:{},children:[]},r.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const f=r[a];(i||a!==0||f.type!=="element"||f.tagName!=="p")&&l.push({type:"text",value:`
7`}),f.type==="element"&&f.tagName==="p"&&!i?l.push(...f.children):l.push(f)}const s=r[r.length-1];s&&(i||s.type!=="element"||s.tagName!=="p")&&l.push({type:"text",value:`
8`});const u={type:"element",tagName:"li",properties:o,children:l};return e.patch(n,u),e.applyData(n,u)}function Ra(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const t=e.children;let r=-1;for(;!n&&++r<t.length;)n=Hr(t[r])}return n}function Hr(e){const n=e.spread;return n??e.children.length>1}function Fa(e,n){const t={},r=e.all(n);let i=-1;for(typeof n.start=="number"&&n.start!==1&&(t.start=n.start);++i<r.length;){const l=r[i];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){t.className=["contains-task-list"];break}}const o={type:"element",tagName:n.ordered?"ol":"ul",properties:t,children:e.wrap(r,!0)};return e.patch(n,o),e.applyData(n,o)}function Na(e,n){const t={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Oa(e,n){const t={type:"root",children:e.wrap(e.all(n))};return e.patch(n,t),e.applyData(n,t)}function Ma(e,n){const t={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function ja(e,n){const t=e.all(n),r=t.shift(),i=[];if(r){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(n.children[0],l),i.push(l)}if(t.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(t,!0)},a=nn(n.children[1]),s=wr(n.children[n.children.length-1]);a&&s&&(l.position={start:a,end:s}),i.push(l)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(n,o),e.applyData(n,o)}function Ba(e,n,t){const r=t?t.children:void 0,o=(r?r.indexOf(n):1)===0?"th":"td",l=t&&t.type==="table"?t.align:void 0,a=l?l.length:n.children.length;let s=-1;const u=[];for(;++s<a;){const c=n.children[s],p={},h=l?l[s]:void 0;h&&(p.align=h);let g={type:"element",tagName:o,properties:p,children:[]};c&&(g.children=e.all(c),e.patch(c,g),g=e.applyData(c,g)),u.push(g)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(n,f),e.applyData(n,f)}function Ua(e,n){const t={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}const qn=9,Wn=32;function Ha(e){const n=String(e),t=/\r?\n|\r/g;let r=t.exec(n),i=0;const o=[];for(;r;)o.push(Kn(n.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=t.exec(n);return o.push(Kn(n.slice(i),i>0,!1)),o.join("")}function Kn(e,n,t){let r=0,i=e.length;if(n){let o=e.codePointAt(r);for(;o===qn||o===Wn;)r++,o=e.codePointAt(r)}if(t){let o=e.codePointAt(i-1);for(;o===qn||o===Wn;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function $a(e,n){const t={type:"text",value:Ha(String(n.value))};return e.patch(n,t),e.applyData(n,t)}function Va(e,n){const t={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,t),e.applyData(n,t)}const qa={blockquote:ba,break:wa,code:Ca,delete:Sa,emphasis:Ea,footnoteReference:Ta,heading:Aa,html:Ia,imageReference:va,image:Da,inlineCode:Pa,linkReference:_a,link:La,listItem:za,list:Fa,paragraph:Na,root:Oa,strong:Ma,table:ja,tableCell:Ua,tableRow:Ba,text:$a,thematicBreak:Va,toml:st,yaml:st,definition:st,footnoteDefinition:st};function st(){}const $r=-1,xt=0,tt=1,mt=2,cn=3,fn=4,hn=5,pn=6,Vr=7,qr=8,Yn=typeof self=="object"?self:globalThis,Wa=(e,n)=>{const t=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,l]=n[i];switch(o){case xt:case $r:return t(l,i);case tt:{const a=t([],i);for(const s of l)a.push(r(s));return a}case mt:{const a=t({},i);for(const[s,u]of l)a[r(s)]=r(u);return a}case cn:return t(new Date(l),i);case fn:{const{source:a,flags:s}=l;return t(new RegExp(a,s),i)}case hn:{const a=t(new Map,i);for(const[s,u]of l)a.set(r(s),r(u));return a}case pn:{const a=t(new Set,i);for(const s of l)a.add(r(s));return a}case Vr:{const{name:a,message:s}=l;return t(new Yn[a](s),i)}case qr:return t(BigInt(l),i);case"BigInt":return t(Object(BigInt(l)),i);case"ArrayBuffer":return t(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:a}=new Uint8Array(l);return t(new DataView(a),l)}}return t(new Yn[o](l),i)};return r},Gn=e=>Wa(new Map,e)(0),Be="",{toString:Ka}={},{keys:Ya}=Object,Xe=e=>{const n=typeof e;if(n!=="object"||!e)return[xt,n];const t=Ka.call(e).slice(8,-1);switch(t){case"Array":return[tt,Be];case"Object":return[mt,Be];case"Date":return[cn,Be];case"RegExp":return[fn,Be];case"Map":return[hn,Be];case"Set":return[pn,Be];case"DataView":return[tt,t]}return t.includes("Array")?[tt,t]:t.includes("Error")?[Vr,t]:[mt,t]},ut=([e,n])=>e===xt&&(n==="function"||n==="symbol"),Ga=(e,n,t,r)=>{const i=(l,a)=>{const s=r.push(l)-1;return t.set(a,s),s},o=l=>{if(t.has(l))return t.get(l);let[a,s]=Xe(l);switch(a){case xt:{let f=l;switch(s){case"bigint":a=qr,f=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);f=null;break;case"undefined":return i([$r],l)}return i([a,f],l)}case tt:{if(s){let p=l;return s==="DataView"?p=new Uint8Array(l.buffer):s==="ArrayBuffer"&&(p=new Uint8Array(l)),i([s,[...p]],l)}const f=[],c=i([a,f],l);for(const p of l)f.push(o(p));return c}case mt:{if(s)switch(s){case"BigInt":return i([s,l.toString()],l);case"Boolean":case"Number":case"String":return i([s,l.valueOf()],l)}if(n&&"toJSON"in l)return o(l.toJSON());const f=[],c=i([a,f],l);
vendor: 2,426 bytes, lines 8-9
8for(const p of Ya(l))(e||!ut(Xe(l[p])))&&f.push([o(p),o(l[p])]);return c}case cn:return i([a,l.toISOString()],l);case fn:{const{source:f,flags:c}=l;return i([a,{source:f,flags:c}],l)}case hn:{const f=[],c=i([a,f],l);for(const[p,h]of l)(e||!(ut(Xe(p))||ut(Xe(h))))&&f.push([o(p),o(h)]);return c}case pn:{const f=[],c=i([a,f],l);for(const p of l)(e||!ut(Xe(p)))&&f.push(o(p));return c}}const{message:u}=l;return i([a,{name:s,message:u}],l)};return o},Jn=(e,{json:n,lossy:t}={})=>{const r=[];return Ga(!(n||t),!!n,new Map,r)(e),r},dt=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?Gn(Jn(e,n)):structuredClone(e):(e,n)=>Gn(Jn(e,n));function Ja(e,n){const t=[{type:"text",value:"↩"}];return n>1&&t.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),t}function Xa(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function Qa(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",t=e.options.footnoteBackContent||Ja,r=e.options.footnoteBackLabel||Xa,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let s=-1;for(;++s<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[s]);if(!u)continue;const f=e.all(u),c=String(u.identifier).toUpperCase(),p=qe(c.toLowerCase());let h=0;const g=[],w=e.footnoteCounts.get(c);for(;w!==void 0&&++h<=w;){g.length>0&&g.push({type:"text",value:" "});let A=typeof t=="string"?t:t(s,h);typeof A=="string"&&(A={type:"text",value:A}),g.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+p+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(s,h),className:["data-footnote-backref"]},children:Array.isArray(A)?A:[A]})}const C=f[f.length-1];if(C&&C.type==="element"&&C.tagName==="p"){const A=C.children[C.children.length-1];A&&A.type==="text"?A.value+=" ":C.children.push({type:"text",value:" "}),C.children.push(...g)}else f.push(...g);const y={type:"element",tagName:"li",properties:{id:n+"fn-"+p},children:e.wrap(f,!0)};e.patch(u,y),a.push(y)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...dt(l),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
9`},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)}
vendor: 5,561 bytes, lines 9-14
9,{type:"text",value:`
10`}]}}const bt=(function(e){if(e==null)return ns;if(typeof e=="function")return wt(e);if(typeof e=="object")return Array.isArray(e)?Za(e):es(e);if(typeof e=="string")return ts(e);throw new Error("Expected function, string, or object as test")});function Za(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=bt(e[t]);return wt(r);function r(...i){let o=-1;for(;++o<n.length;)if(n[o].apply(this,i))return!0;return!1}}function es(e){const n=e;return wt(t);function t(r){const i=r;let o;for(o in e)if(i[o]!==n[o])return!1;return!0}}function ts(e){return wt(n);function n(t){return t&&t.type===e}}function wt(e){return n;function n(t,r,i){return!!(rs(t)&&e.call(this,t,typeof r=="number"?r:void 0,i||void 0))}}function ns(){return!0}function rs(e){return e!==null&&typeof e=="object"&&"type"in e}const Wr=[],is=!0,Kt=!1,ls="skip";function Kr(e,n,t,r){let i;typeof n=="function"&&typeof t!="function"?(r=t,t=n):i=n;const o=bt(i),l=r?-1:1;a(e,void 0,[])();function a(s,u,f){const c=s&&typeof s=="object"?s:{};if(typeof c.type=="string"){const h=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(s.type+(h?"<"+h+">":""))+")"})}return p;function p(){let h=Wr,g,w,C;if((!n||o(s,u,f[f.length-1]||void 0))&&(h=os(t(s,f)),h[0]===Kt))return h;if("children"in s&&s.children){const y=s;if(y.children&&h[0]!==ls)for(w=(r?y.children.length:-1)+l,C=f.concat(y);w>-1&&w<y.children.length;){const A=y.children[w];if(g=a(A,w,C)(),g[0]===Kt)return g;w=typeof g[1]=="number"?g[1]:w+l}}return h}}}function os(e){return Array.isArray(e)?e:typeof e=="number"?[is,e]:e==null?Wr:[e]}function mn(e,n,t,r){let i,o,l;typeof n=="function"&&typeof t!="function"?(o=void 0,l=n,i=t):(o=n,l=t,i=r),Kr(e,o,a,i);function a(s,u){const f=u[u.length-1],c=f?f.children.indexOf(s):void 0;return l(s,c,f)}}const Yt={}.hasOwnProperty,as={};function ss(e,n){const t=n||as,r=new Map,i=new Map,o=new Map,l={...qa,...t.handlers},a={all:u,applyData:cs,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:l,one:s,options:t,patch:us,wrap:hs};return mn(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const c=f.type==="definition"?r:i,p=String(f.identifier).toUpperCase();c.has(p)||c.set(p,f)}}),a;function s(f,c){const p=f.type,h=a.handlers[p];if(Yt.call(a.handlers,p)&&h)return h(a,f,c);if(a.options.passThrough&&a.options.passThrough.includes(p)){if("children"in f){const{children:w,...C}=f,y=dt(C);return y.children=a.all(f),y}return dt(f)}return(a.options.unknownHandler||fs)(a,f,c)}function u(f){const c=[];if("children"in f){const p=f.children;let h=-1;for(;++h<p.length;){const g=a.one(p[h],f);if(g){if(h&&p[h-1].type==="break"&&(!Array.isArray(g)&&g.type==="text"&&(g.value=Xn(g.value)),!Array.isArray(g)&&g.type==="element")){const w=g.children[0];w&&w.type==="text"&&(w.value=Xn(w.value))}Array.isArray(g)?c.push(...g):c.push(g)}}}return c}}function us(e,n){e.position&&(n.position=Ji(e))}function cs(e,n){let t=n;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(t.type==="element")t.tagName=r;else{const l="children"in t?t.children:[t];t={type:"element",tagName:r,properties:{},children:l}}t.type==="element"&&o&&Object.assign(t.properties,dt(o)),"children"in t&&t.children&&i!==null&&i!==void 0&&(t.children=i)}return t}function fs(e,n){const t=n.data||{},r="value"in n&&!(Yt.call(t,"hProperties")||Yt.call(t,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function hs(e,n){const t=[];let r=-1;for(n&&t.push({type:"text",value:`
11`});++r<e.length;)r&&t.push({type:"text",value:`
12`}),t.push(e[r]);return n&&e.length>0&&t.push({type:"text",value:`
13`}),t}function Xn(e){let n=0,t=e.charCodeAt(n);for(;t===9||t===32;)n++,t=e.charCodeAt(n);return e.slice(n)}function Qn(e,n){const t=ss(e,n),r=t.one(e,void 0),i=Qa(t),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
14`},i),o}function ps(e,n){return e&&"run"in e?async function(t,r){const i=Qn(t,{file:r,...n});await e.run(i,r)}:function(t,r){return Qn(t,{file:r,...e||n})}}function Zn(e){if(e)throw e}var vt,er;function ms(){if(er)return vt;er=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(u){return typeof Array.isArray=="function"?Array.isArray(u):n.call(u)==="[object Array]"},o=function(u){if(!u||n.call(u)!=="[object Object]")return!1;var f=e.call(u,"constructor"),c=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!f&&!c)return!1;var p;for(p in u);return typeof p>"u"||e.call(u,p)},l=function(u,f){t&&f.name==="__proto__"?t(u,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):u[f.name]=f.newValue},a=function(u,f){if(f==="__proto__")if(e.call(u,f)){if(r)return r(u,f).value}else return;return u[f]};return vt=function s(){var u,f,c,p,h,g,w=arguments[0],C=1,y=arguments.length,A=!1;for(typeof w=="boolean"&&(A=w,w=arguments[1]||{},C=2),(w==null||typeof w!="object"&&typeof w!="function")&&(w={});C<y;++C)if(u=arguments[C],u!=null)for(f in u)c=a(w,f),p=a(u,f),w!==p&&(A&&p&&(o(p)||(h=i(p)))?(h?(h=!1,g=c&&i(c)?c:[]):g=c&&o(c)?c:{},l(w,{name:f,newValue:s(A,g,p)})):typeof p<"u"&&l(w,{name:f,newValue:p}));return w},vt}var ds=ms();const Dt=pr(ds);function Gt(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);
vendor: 3,673 bytes, line 14
14return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function gs(){const e=[],n={run:t,use:r};return n;function t(...i){let o=-1;const l=i.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);a(null,...i);function a(s,...u){const f=e[++o];let c=-1;if(s){l(s);return}for(;++c<i.length;)(u[c]===null||u[c]===void 0)&&(u[c]=i[c]);i=u,f?ys(f,a)(...u):l(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),n}}function ys(e,n){let t;return r;function r(...l){const a=e.length>l.length;let s;a&&l.push(i);try{s=e.apply(this,l)}catch(u){const f=u;if(a&&t)throw f;return i(f)}a||(s&&s.then&&typeof s.then=="function"?s.then(o,i):s instanceof Error?i(s):o(s))}function i(l,...a){t||(t=!0,n(l,...a))}function o(l){i(null,l)}}const Ee={basename:ks,dirname:xs,extname:bs,join:ws,sep:"/"};function ks(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');ot(e);let t=0,r=-1,i=e.length,o;if(n===void 0||n.length===0||n.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){t=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(t,r)}if(n===e)return"";let l=-1,a=n.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){t=i+1;break}}else l<0&&(o=!0,l=i+1),a>-1&&(e.codePointAt(i)===n.codePointAt(a--)?a<0&&(r=i):(a=-1,r=l));return t===r?r=l:r<0&&(r=e.length),e.slice(t,r)}function xs(e){if(ot(e),e.length===0)return".";let n=-1,t=e.length,r;for(;--t;)if(e.codePointAt(t)===47){if(r){n=t;break}}else r||(r=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function bs(e){ot(e);let n=e.length,t=-1,r=0,i=-1,o=0,l;for(;n--;){const a=e.codePointAt(n);if(a===47){if(l){r=n+1;break}continue}t<0&&(l=!0,t=n+1),a===46?i<0?i=n:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||t<0||o===0||o===1&&i===t-1&&i===r+1?"":e.slice(i,t)}function ws(...e){let n=-1,t;for(;++n<e.length;)ot(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":Cs(t)}function Cs(e){ot(e);const n=e.codePointAt(0)===47;let t=Ss(e,!n);return t.length===0&&!n&&(t="."),t.length>0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function Ss(e,n){let t="",r=0,i=-1,o=0,l=-1,a,s;for(;++l<=e.length;){if(l<e.length)a=e.codePointAt(l);else{if(a===47)break;a=47}if(a===47){if(!(i===l-1||o===1))if(i!==l-1&&o===2){if(t.length<2||r!==2||t.codePointAt(t.length-1)!==46||t.codePointAt(t.length-2)!==46){if(t.length>2){if(s=t.lastIndexOf("/"),s!==t.length-1){s<0?(t="",r=0):(t=t.slice(0,s),r=t.length-1-t.lastIndexOf("/")),i=l,o=0;continue}}else if(t.length>0){t="",r=0,i=l,o=0;continue}}n&&(t=t.length>0?t+"/..":"..",r=2)}else t.length>0?t+="/"+e.slice(i+1,l):t=e.slice(i+1,l),r=l-i-1;i=l,o=0}else a===46&&o>-1?o++:o=-1}return t}function ot(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Es={cwd:Ts};function Ts(){return"/"}function Jt(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function As(e){if(typeof e=="string")e=new URL(e);else if(!Jt(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return Is(e)}function Is(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const n=e.pathname;let t=-1;for(;++t<n.length;
vendor: 18,124 bytes, lines 14-18
14)if(n.codePointAt(t)===37&&n.codePointAt(t+1)===50){const r=n.codePointAt(t+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(n)}const Pt=["history","path","basename","stem","extname","dirname"];class Yr{constructor(n){let t;n?Jt(n)?t={path:n}:typeof n=="string"||vs(n)?t={value:n}:t=n:t={},this.cwd="cwd"in t?"":Es.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Pt.length;){const o=Pt[r];o in t&&t[o]!==void 0&&t[o]!==null&&(this[o]=o==="history"?[...t[o]]:t[o])}let i;for(i in t)Pt.includes(i)||(this[i]=t[i])}get basename(){return typeof this.path=="string"?Ee.basename(this.path):void 0}set basename(n){Lt(n,"basename"),_t(n,"basename"),this.path=Ee.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?Ee.dirname(this.path):void 0}set dirname(n){tr(this.basename,"dirname"),this.path=Ee.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?Ee.extname(this.path):void 0}set extname(n){if(_t(n,"extname"),tr(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Ee.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){Jt(n)&&(n=As(n)),Lt(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?Ee.basename(this.path,this.extname):void 0}set stem(n){Lt(n,"stem"),_t(n,"stem"),this.path=Ee.join(this.dirname||"",n+(this.extname||""))}fail(n,t,r){const i=this.message(n,t,r);throw i.fatal=!0,i}info(n,t,r){const i=this.message(n,t,r);return i.fatal=void 0,i}message(n,t,r){const i=new ce(n,t,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function _t(e,n){if(e&&e.includes(Ee.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+Ee.sep+"`")}function Lt(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function tr(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function vs(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Ds=(function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o}),Ps={}.hasOwnProperty;class dn extends Ds{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=gs()}copy(){const n=new dn;let t=-1;for(;++t<this.attachers.length;){const r=this.attachers[t];n.use(...r)}return n.data(Dt(!0,{},this.namespace)),n}data(n,t){return typeof n=="string"?arguments.length===2?(Ft("data",this.frozen),this.namespace[n]=t,this):Ps.call(this.namespace,n)&&this.namespace[n]||void 0:n?(Ft("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=t.call(n,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const t=ct(n),r=this.parser||this.Parser;return zt("parse",r),r(String(t),t)}process(n,t){const r=this;return this.freeze(),zt("process",this.parser||this.Parser),Rt("process",this.compiler||this.Compiler),t?i(void 0,t):new Promise(i);function i(o,l){const a=ct(n),s=r.parse(a);r.run(s,a,function(f,c,p){if(f||!c||!p)return u(f);const h=c,g=r.stringify(h,p);zs(g)?p.value=g:p.result=g,u(f,p)});function u(f,c){f||!c?l(f):o?o(c):t(void 0,c)}}}processSync(n){let t=!1,r;return this.freeze(),zt("processSync",this.parser||this.Parser),Rt("processSync",this.compiler||this.Compiler),this.process(n,i),rr("processSync","process",t),r;function i(o,l){t=!0,Zn(o),r=l}}run(n,t,r){nr(n),this.freeze();const i=this.transformers;return!r&&typeof t=="function"&&(r=t,t=void 0),r?o(void 0,r):new Promise(o);function o(l,a){const s=ct(t);i.run(n,s,u);function u(f,c,p){const h=c||n;f?a(f):l?l(h):r(void 0,h,p)}}}runSync(n,t){let r=!1,i;return this.run(n,t,o),rr("runSync","run",r),i;function o(l,a){Zn(l),i=a,r=!0}}stringify(n,t){this.freeze();const r=ct(t),i=this.compiler||this.Compiler;return Rt("stringify",i),nr(n),i(n,r)}use(n,...t){const r=this.attachers,i=this.namespace;if(Ft("use",this.frozen),n!=null)if(typeof n=="function")s(n,t);else if(typeof n=="object")Array.isArray(n)?a(n):l(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function o(u){if(typeof u=="function")s(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[f,...c]=u;s(f,c)}else l(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function l(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(u.plugins),u.settings&&(i.settings=Dt(!0,i.settings,u.settings))}function a(u){let f=-1;if(u!=null)if(Array.isArray(u))for(;++f<u.length;){const c=u[f];o(c)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function s(u,f){let c=-1,p=-1;for(;++c<r.length;)if(r[c][0]===u){p=c;break}if(p===-1)r.push([u,...f]);else if(f.length>0){let[h,...g]=f;const w=r[p][1];Gt(w)&&Gt(h)&&(h=Dt(!0,w,h)),r[p]=[u,h,...g]}}}}const _s=new dn().freeze();function zt(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Rt(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Ft(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function nr(e){if(!Gt(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function rr(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function ct(e){return Ls(e)?e:new Yr(e)}function Ls(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function zs(e){return typeof e=="string"||Rs(e)}function Rs(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Fs="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",ir=[],lr={allowDangerousHtml:!0},Ns=/^(https?|ircs?|mailto|xmpp)$/i,Os=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Ms(e){const n=js(e),t=Bs(e);return Us(n.runSync(n.parse(t),t),e)}function js(e){const n=e.rehypePlugins||ir,t=e.remarkPlugins||ir,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...lr}:lr;return _s().use(xa).use(t).use(ps,r).use(n)}function Bs(e){const n=e.children||"",t=new Yr;return typeof n=="string"&&(t.value=n),t}function Us(e,n){const t=n.allowedElements,r=n.allowElement,i=n.components,o=n.disallowedElements,l=n.skipHtml,a=n.unwrapDisallowed,s=n.urlTransform||Hs;for(const f of Os)Object.hasOwn(n,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+Fs+f.id,void 0);return mn(e,u),tl(e,{Fragment:T.Fragment,components:i,ignoreInvalidStyle:!0,jsx:T.jsx,jsxs:T.jsxs,passKeys:!0,passNode:!0});function u(f,c,p){if(f.type==="raw"&&p&&typeof c=="number")return l?p.children.splice(c,1):p.children[c]={type:"text",value:f.value},c;if(f.type==="element"){let h;for(h in Tt)if(Object.hasOwn(Tt,h)&&Object.hasOwn(f.properties,h)){const g=f.properties[h],w=Tt[h];(w===null||w.includes(f.tagName))&&(f.properties[h]=s(String(g||""),h,f))}}if(f.type==="element"){let h=t?!t.includes(f.tagName):o?o.includes(f.tagName):!1;if(!h&&r&&typeof c=="number"&&(h=!r(f,c,p)),h&&p&&typeof c=="number")return a&&f.children?p.children.splice(c,1,...f.children):p.children.splice(c,1),c}}}function Hs(e){const n=e.indexOf(":"),t=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return n===-1||i!==-1&&n>i||t!==-1&&n>t||r!==-1&&n>r||Ns.test(e.slice(0,n))?e:""}function or(e,n){const t=String(e);if(typeof n!="string")throw new TypeError("Expected character");let r=0,i=t.indexOf(n);for(;i!==-1;)r++,i=t.indexOf(n,i+n.length);return r}function $s(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Vs(e,n,t){const i=bt((t||{}).ignore||[]),o=qs(n);let l=-1;for(;++l<o.length;)Kr(e,"text",a);function a(u,f){let c=-1,p;for(;++c<f.length;){const h=f[c],g=p?p.children:void 0;if(i(h,g?g.indexOf(h):void 0,p))return;p=h}if(p)return s(u,f)}function s(u,f){const c=f[f.length-1],p=o[l][0],h=o[l][1];let g=0;const C=c.children.indexOf(u);let y=!1,A=[];p.lastIndex=0;let S=p.exec(u.value);for(;S;){const R=S.index,F={index:S.index,input:S.input,stack:[...f,u]};let x=h(...S,F);if(typeof x=="string"&&(x=x.length>0?{type:"text",value:x}:void 0),x===!1?p.lastIndex=R+1:(g!==R&&A.push({type:"text",value:u.value.slice(g,R)}),Array.isArray(x)?A.push(...x):x&&A.push(x),g=R+S[0].length,y=!0),!p.global)break;S=p.exec(u.value)}return y?(g<u.value.length&&A.push({type:"text",value:u.value.slice(g)}),c.children.splice(C,1,...A)):A=[u],C+A.length}}function qs(e){const n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const t=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<t.length;){const i=t[r];n.push([Ws(i[0]),Ks(i[1])])}return n}function Ws(e){return typeof e=="string"?new RegExp($s(e),"g"):e}function Ks(e){return typeof e=="function"?e:function(){return e}}const Nt="phrasing",Ot=["autolink","link","image","label"];function Ys(){return{transforms:[tu],enter:{literalAutolink:Js,literalAutolinkEmail:Mt,literalAutolinkHttp:Mt,literalAutolinkWww:Mt},exit:{literalAutolink:eu,literalAutolinkEmail:Zs,literalAutolinkHttp:Xs,literalAutolinkWww:Qs}}}function Gs(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Nt,notInConstruct:Ot},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Nt,notInConstruct:Ot},{character:":",before:"[ps]",after:"\\/",inConstruct:Nt,notInConstruct:Ot}]}}function Js(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Mt(e){this.config.enter.autolinkProtocol.call(this,e)}function Xs(e){this.config.exit.autolinkProtocol.call(this,e)}function Qs(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function Zs(e){this.config.exit.autolinkEmail.call(this,e)}function eu(e){this.exit(e)}function tu(e){Vs(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,nu],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),ru]],{ignore:["link","linkReference"]})}function nu(e,n,t,r,i){let o="";if(!Gr(i)||(/^w/i.test(n)&&(t=n+t,n="",o="http://"),!iu(t)))return!1;const l=lu(t+r);if(!l[0])return!1;const a={type:"link",title:null,url:o+n+l[0],children:[{type:"text",value:n+l[0]}]};return l[1]?[a,{type:"text",value:l[1]}]:a}function ru(e,n,t,r){return!Gr(r,!0)||/[-\d_]$/.test(t)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+t,children:[{type:"text",value:n+"@"+t}]}}function iu(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function lu(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let t=n[0],r=t.indexOf(")");const i=or(e,"(");let o=or(e,")");for(;r!==-1&&i>o;)e+=t.slice(0,r+1),t=t.slice(r+1),r=t.indexOf(")"),o++;return[e,t]}function Gr(e,n){const t=e.input.charCodeAt(e.index-1);return(e.index===0||Fe(t)||yt(t))&&(!n||t!==47)}Jr.peek=mu;function ou(){this.buffer()}function au(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function su(){this.buffer()}function uu(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function cu(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=Ce(this.sliceSerialize(e)).toLowerCase(),t.label=n}function fu(e){this.exit(e)}function hu(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=Ce(this.sliceSerialize(e)).toLowerCase(),t.label=n}function pu(e){this.exit(e)}function mu(){return"["}function Jr(e,n,t,r){const i=t.createTracker(r);let o=i.move("[^");const l=t.enter("footnoteReference"),a=t.enter("reference");return o+=i.move(t.safe(t.associationId(e),{after:"]",before:o})),a(),l(),o+=i.move("]"),o}function du(){return{enter:{gfmFootnoteCallString:ou,gfmFootnoteCall:au,gfmFootnoteDefinitionLabelString:su,gfmFootnoteDefinition:uu},exit:{gfmFootnoteCallString:cu,gfmFootnoteCall:fu,gfmFootnoteDefinitionLabelString:hu,gfmFootnoteDefinition:pu}}}function gu(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:t,footnoteReference:Jr},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function t(r,i,o,l){const a=o.createTracker(l);let s=a.move("[^");const u=o.enter("footnoteDefinition"),f=o.enter("label");return s+=a.move(o.safe(o.associationId(r),{before:s,after:"]"})),f(),s+=a.move("]:"),r.children&&r.children.length>0&&(a.shift(4),s+=a.move((n?`
15`:" ")+o.indentLines(o.containerFlow(r,a.current()),n?Xr:yu))),u(),s}}function yu(e,n,t){return n===0?e:Xr(e,n,t)}function Xr(e,n,t){return(t?"":"    ")+e}const ku=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Qr.peek=Su;function xu(){return{canContainEols:["delete"],enter:{strikethrough:wu},exit:{strikethrough:Cu}}}function bu(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:ku}],handlers:{delete:Qr}}}function wu(e){this.enter({type:"delete",children:[]},e)}function Cu(e){this.exit(e)}function Qr(e,n,t,r){const i=t.createTracker(r),o=t.enter("strikethrough");let l=i.move("~~");return l+=t.containerPhrasing(e,{...i.current(),before:l,after:"~"}),l+=i.move("~~"),o(),l}function Su(){return"~"}function Eu(e){return e.length}function Tu(e,n){const t=n||{},r=(t.align||[]).concat(),i=t.stringLength||Eu,o=[],l=[],a=[],s=[];let u=0,f=-1;for(;++f<e.length;){const w=[],C=[];let y=-1;for(e[f].length>u&&(u=e[f].length);++y<e[f].length;){const A=Au(e[f][y]);if(t.alignDelimiters!==!1){const S=i(A);C[y]=S,(s[y]===void 0||S>s[y])&&(s[y]=S)}w.push(A)}l[f]=w,a[f]=C}let c=-1;if(typeof r=="object"&&"length"in r)for(;++c<u;)o[c]=ar(r[c]);else{const w=ar(r);for(;++c<u;)o[c]=w}c=-1;const p=[],h=[];for(;++c<u;){const w=o[c];let C="",y="";w===99?(C=":",y=":"):w===108?C=":":w===114&&(y=":");let A=t.alignDelimiters===!1?1:Math.max(1,s[c]-C.length-y.length);const S=C+"-".repeat(A)+y;t.alignDelimiters!==!1&&(A=C.length+A+y.length,A>s[c]&&(s[c]=A),h[c]=A),p[c]=S}l.splice(1,0,p),a.splice(1,0,h),f=-1;const g=[];for(;++f<l.length;){const w=l[f],C=a[f];c=-1;const y=[];for(;++c<u;){const A=w[c]||"";let S="",R="";if(t.alignDelimiters!==!1){const F=s[c]-(C[c]||0),x=o[c];x===114?S=" ".repeat(F):x===99?F%2?(S=" ".repeat(F/2+.5),R=" ".repeat(F/2-.5)):(S=" ".repeat(F/2),R=S):R=" ".repeat(F)}t.delimiterStart!==!1&&!c&&y.push("|"),t.padding!==!1&&!(t.alignDelimiters===!1&&A==="")&&(t.delimiterStart!==!1||c)&&y.push(" "),t.alignDelimiters!==!1&&y.push(S),y.push(A),t.alignDelimiters!==!1&&y.push(R),t.padding!==!1&&y.push(" "),(t.delimiterEnd!==!1||c!==u-1)&&y.push("|")}g.push(t.delimiterEnd===!1?y.join("").replace(/ +$/,""):y.join(""))}return g.join(`
16`)}function Au(e){return e==null?"":String(e)}function ar(e){const n=typeof e=="string"?e.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}function Iu(e,n,t,r){const i=t.enter("blockquote"),o=t.createTracker(r);o.move("> "),o.shift(2);const l=t.indentLines(t.containerFlow(e,o.current()),vu);return i(),l}function vu(e,n,t){return">"+(t?"":" ")+e}function Du(e,n){return sr(e,n.inConstruct,!0)&&!sr(e,n.notInConstruct,!1)}function sr(e,n,t){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return t;let r=-1;for(;++r<n.length;)if(e.includes(n[r]))return!0;return!1}function ur(e,n,t,r){let i=-1;for(;++i<t.unsafe.length;)if(t.unsafe[i].character===`
17`&&Du(t.stack,t.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
18`}function Pu(e,n){const t=String(e);let r=t.indexOf(n),i=r,o=0,l=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++o>l&&(l=o):o=1,i=r+n.length,r=t.indexOf(n,i);return l}function _u(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function Lu(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function zu(e,n,t,r){const i=Lu(t),o=e.value||"",l=i==="`"?"GraveAccent":"Tilde";
vendor: 8,752 bytes, lines 18-27
18if(_u(e,t)){const c=t.enter("codeIndented"),p=t.indentLines(o,Ru);return c(),p}const a=t.createTracker(r),s=i.repeat(Math.max(Pu(o,i)+1,3)),u=t.enter("codeFenced");let f=a.move(s);if(e.lang){const c=t.enter(`codeFencedLang${l}`);f+=a.move(t.safe(e.lang,{before:f,after:" ",encode:["`"],...a.current()})),c()}if(e.lang&&e.meta){const c=t.enter(`codeFencedMeta${l}`);f+=a.move(" "),f+=a.move(t.safe(e.meta,{before:f,after:`
19`,encode:["`"],...a.current()})),c()}return f+=a.move(`
20`),o&&(f+=a.move(o+`
21`)),f+=a.move(s),u(),f}function Ru(e,n,t){return(t?"":"    ")+e}function gn(e){const n=e.options.quote||'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize title with `"+n+"` for `options.quote`, expected `\"`, or `'`");return n}function Fu(e,n,t,r){const i=gn(t),o=i==='"'?"Quote":"Apostrophe",l=t.enter("definition");let a=t.enter("label");const s=t.createTracker(r);let u=s.move("[");return u+=s.move(t.safe(t.associationId(e),{before:u,after:"]",...s.current()})),u+=s.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=t.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(t.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(a=t.enter("destinationRaw"),u+=s.move(t.safe(e.url,{before:u,after:e.title?" ":`
22`,...s.current()}))),a(),e.title&&(a=t.enter(`title${o}`),u+=s.move(" "+i),u+=s.move(t.safe(e.title,{before:u,after:i,...s.current()})),u+=s.move(i),a()),l(),u}function Nu(e){const n=e.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}function rt(e){return"&#x"+e.toString(16).toUpperCase()+";"}function gt(e,n,t){const r=$e(e),i=$e(n);return r===void 0?i===void 0?t==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Zr.peek=Ou;function Zr(e,n,t,r){const i=Nu(t),o=t.enter("emphasis"),l=t.createTracker(r),a=l.move(i);let s=l.move(t.containerPhrasing(e,{after:i,before:a,...l.current()}));const u=s.charCodeAt(0),f=gt(r.before.charCodeAt(r.before.length-1),u,i);f.inside&&(s=rt(u)+s.slice(1));const c=s.charCodeAt(s.length-1),p=gt(r.after.charCodeAt(0),c,i);p.inside&&(s=s.slice(0,-1)+rt(c));const h=l.move(i);return o(),t.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},a+s+h}function Ou(e,n,t){return t.options.emphasis||"*"}function Mu(e,n){let t=!1;return mn(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return t=!0,Kt}),!!((!e.depth||e.depth<3)&&an(e)&&(n.options.setext||t))}function ju(e,n,t,r){const i=Math.max(Math.min(6,e.depth||1),1),o=t.createTracker(r);if(Mu(e,t)){const f=t.enter("headingSetext"),c=t.enter("phrasing"),p=t.containerPhrasing(e,{...o.current(),before:`
23`,after:`
24`});return c(),f(),p+`
25`+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
26`))+1))}const l="#".repeat(i),a=t.enter("headingAtx"),s=t.enter("phrasing");o.move(l+" ");let u=t.containerPhrasing(e,{before:"# ",after:`
27`,...o.current()});return/^[\t ]/.test(u)&&(u=rt(u.charCodeAt(0))+u.slice(1)),u=u?l+" "+u:l,t.options.closeAtx&&(u+=" "+l),s(),a(),u}ei.peek=Bu;function ei(e){return e.value||""}function Bu(){return"<"}ti.peek=Uu;function ti(e,n,t,r){const i=gn(t),o=i==='"'?"Quote":"Apostrophe",l=t.enter("image");let a=t.enter("label");const s=t.createTracker(r);let u=s.move("![");return u+=s.move(t.safe(e.alt,{before:u,after:"]",...s.current()})),u+=s.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=t.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(t.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(a=t.enter("destinationRaw"),u+=s.move(t.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),a(),e.title&&(a=t.enter(`title${o}`),u+=s.move(" "+i),u+=s.move(t.safe(e.title,{before:u,after:i,...s.current()})),u+=s.move(i),a()),u+=s.move(")"),l(),u}function Uu(){return"!"}ni.peek=Hu;function ni(e,n,t,r){const i=e.referenceType,o=t.enter("imageReference");let l=t.enter("label");const a=t.createTracker(r);let s=a.move("![");const u=t.safe(e.alt,{before:s,after:"]",...a.current()});s+=a.move(u+"]["),l();const f=t.stack;t.stack=[],l=t.enter("reference");const c=t.safe(t.associationId(e),{before:s,after:"]",...a.current()});return l(),t.stack=f,o(),i==="full"||!u||u!==c?s+=a.move(c+"]"):i==="shortcut"?s=s.slice(0,-1):s+=a.move("]"),s}function Hu(){return"!"}ri.peek=$u;function ri(e,n,t){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<t.unsafe.length;){const l=t.unsafe[o],a=t.compilePattern(l);let s;if(l.atBreak)for(;s=a.exec(r);){let u=s.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(s.index+1)}}return i+r+i}function $u(){return"`"}function ii(e,n){const t=an(e);return!!(!n.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(t===e.url||"mailto:"+t===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}li.peek=Vu;function li(e,n,t,r){const i=gn(t),o=i==='"'?"Quote":"Apostrophe",l=t.createTracker(r);let a,s;if(ii(e,t)){const f=t.stack;t.stack=[],a=t.enter("autolink");let c=l.move("<");return c+=l.move(t.containerPhrasing(e,{before:c,after:">",...l.current()})),c+=l.move(">"),a(),t.stack=f,c}a=t.enter("link"),s=t.enter("label");let u=l.move("[");return u+=l.move(t.containerPhrasing(e,{before:u,after:"](",...l.current()})),u+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=t.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(t.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=t.enter("destinationRaw"),u+=l.move(t.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=t.enter(`title${o}`),u+=l.move(" "+i),u+=l.move(t.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),s()),u+=l.move(")"),a(),u}function Vu(e,n,t){return ii(e,t)?"<":"["}oi.peek=qu;function oi(e,n,t,r){const i=e.referenceType,o=t.enter("linkReference");let l=t.enter("label");const a=t.createTracker(r);let s=a.move("[");const u=t.containerPhrasing(e,{before:s,after:"]",...a.current()});s+=a.move(u+"]["),l();const f=t.stack;t.stack=[],l=t.enter("reference");const c=t.safe(t.associationId(e),{before:s,after:"]",...a.current()});return l(),t.stack=f,o(),i==="full"||!u||u!==c?s+=a.move(c+"]"):i==="shortcut"?s=s.slice(0,-1):s+=a.move("]"),s}function qu(){return"["}function yn(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function Wu(e){const n=yn(e),t=e.options.bulletOther;if(!t)return n==="*"?"-":"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(t===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+t+"`) to be different");return t}function Ku(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}function ai(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}function Yu(e,n,t,r){const i=t.enter("list"),o=t.bulletCurrent;let l=e.ordered?Ku(t):yn(t);const a=e.ordered?l==="."?")":".":Wu(t);let s=n&&t.bulletLastUsed?l===t.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&f&&(!f.children||!f.children[0])&&t.stack[t.stack.length-1]==="list"&&t.stack[t.stack.length-2]==="listItem"&&t.stack[t.stack.length-3]==="list"&&t.stack[t.stack.length-4]==="listItem"&&t.indexStack[t.indexStack.length-1]===0&&t.indexStack[t.indexStack.length-2]===0&&t.indexStack[t.indexStack.length-3]===0&&(s=!0),ai(t)===l&&f){let c=-1;for(;++c<e.children.length;){const p=e.children[c];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){s=!0;break}}}}s&&(l=a),t.bulletCurrent=l;const u=t.containerFlow(e,r);return t.bulletLastUsed=l,t.bulletCurrent=o,i(),u}function Gu(e){const n=e.options.listItemIndent||"one";if(n!=="tab"&&n!=="one"&&n!=="mixed")throw new Error("Cannot serialize items with `"+n+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return n}function Ju(e,n,t,r){const i=Gu(t);let o=t.bulletCurrent||yn(t);n&&n.type==="list"&&n.ordered&&(o=(typeof n.start=="number"&&n.start>
vendor: 13,880 bytes, lines 27-29
27-1?n.start:1)+(t.options.incrementListMarker===!1?0:n.children.indexOf(e))+o);let l=o.length+1;(i==="tab"||i==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(l=Math.ceil(l/4)*4);const a=t.createTracker(r);a.move(o+" ".repeat(l-o.length)),a.shift(l);const s=t.enter("listItem"),u=t.indentLines(t.containerFlow(e,a.current()),f);return s(),u;function f(c,p,h){return p?(h?"":" ".repeat(l))+c:(h?o:o+" ".repeat(l-o.length))+c}}function Xu(e,n,t,r){const i=t.enter("paragraph"),o=t.enter("phrasing"),l=t.containerPhrasing(e,r);return o(),i(),l}const Qu=bt(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Zu(e,n,t,r){return(e.children.some(function(l){return Qu(l)})?t.containerPhrasing:t.containerFlow).call(t,e,r)}function ec(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}si.peek=tc;function si(e,n,t,r){const i=ec(t),o=t.enter("strong"),l=t.createTracker(r),a=l.move(i+i);let s=l.move(t.containerPhrasing(e,{after:i,before:a,...l.current()}));const u=s.charCodeAt(0),f=gt(r.before.charCodeAt(r.before.length-1),u,i);f.inside&&(s=rt(u)+s.slice(1));const c=s.charCodeAt(s.length-1),p=gt(r.after.charCodeAt(0),c,i);p.inside&&(s=s.slice(0,-1)+rt(c));const h=l.move(i+i);return o(),t.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},a+s+h}function tc(e,n,t){return t.options.strong||"*"}function nc(e,n,t,r){return t.safe(e.value,r)}function rc(e){const n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}function ic(e,n,t){const r=(ai(t)+(t.options.ruleSpaces?" ":"")).repeat(rc(t));return t.options.ruleSpaces?r.slice(0,-1):r}const ui={blockquote:Iu,break:ur,code:zu,definition:Fu,emphasis:Zr,hardBreak:ur,heading:ju,html:ei,image:ti,imageReference:ni,inlineCode:ri,link:li,linkReference:oi,list:Yu,listItem:Ju,paragraph:Xu,root:Zu,strong:si,text:nc,thematicBreak:ic};function lc(){return{enter:{table:oc,tableData:cr,tableHeader:cr,tableRow:sc},exit:{codeText:uc,table:ac,tableData:jt,tableHeader:jt,tableRow:jt}}}function oc(e){const n=e._align;this.enter({type:"table",align:n.map(function(t){return t==="none"?null:t}),children:[]},e),this.data.inTable=!0}function ac(e){this.exit(e),this.data.inTable=void 0}function sc(e){this.enter({type:"tableRow",children:[]},e)}function jt(e){this.exit(e)}function cr(e){this.enter({type:"tableCell",children:[]},e)}function uc(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,cc));const t=this.stack[this.stack.length-1];t.type,t.value=n,this.exit(e)}function cc(e,n){return n==="|"?n:e}function fc(e){const n=e||{},t=n.tableCellPadding,r=n.tablePipeAlign,i=n.stringLength,o=t?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
28`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[	 :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:l,tableCell:s,tableRow:a}};function l(h,g,w,C){return u(f(h,w,C),h.align)}function a(h,g,w,C){const y=c(h,w,C),A=u([y]);return A.slice(0,A.indexOf(`
29`))}function s(h,g,w,C){const y=w.enter("tableCell"),A=w.enter("phrasing"),S=w.containerPhrasing(h,{...C,before:o,after:o});return A(),y(),S}function u(h,g){return Tu(h,{align:g,alignDelimiters:r,padding:t,stringLength:i})}function f(h,g,w){const C=h.children;let y=-1;const A=[],S=g.enter("table");for(;++y<C.length;)A[y]=c(C[y],g,w);return S(),A}function c(h,g,w){const C=h.children;let y=-1;const A=[],S=g.enter("tableRow");for(;++y<C.length;)A[y]=s(C[y],h,g,w);return S(),A}function p(h,g,w){let C=ui.inlineCode(h,g,w);return w.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}function hc(){return{exit:{taskListCheckValueChecked:fr,taskListCheckValueUnchecked:fr,paragraph:mc}}}function pc(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:dc}}}function fr(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function mc(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const t=this.stack[this.stack.length-1];t.type;const r=t.children[0];if(r&&r.type==="text"){const i=n.children;let o=-1,l;for(;++o<i.length;){const a=i[o];if(a.type==="paragraph"){l=a;break}}l===t&&(r.value=r.value.slice(1),r.value.length===0?t.children.shift():t.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,t.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function dc(e,n,t,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",a=t.createTracker(r);o&&a.move(l);let s=ui.listItem(e,n,t,{...r,...a.current()});return o&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),s;function u(f){return f+l}}function gc(){return[Ys(),du(),xu(),lc(),hc()]}function yc(e){return{extensions:[Gs(),gu(e),bu(),fc(e),pc()]}}const kc={tokenize:Ec,partial:!0},ci={tokenize:Tc,partial:!0},fi={tokenize:Ac,partial:!0},hi={tokenize:Ic,partial:!0},xc={tokenize:vc,partial:!0},pi={name:"wwwAutolink",tokenize:Cc,previous:di},mi={name:"protocolAutolink",tokenize:Sc,previous:gi},De={name:"emailAutolink",tokenize:wc,previous:yi},Te={};function bc(){return{text:Te}}let Re=48;for(;Re<123;)Te[Re]=De,Re++,Re===58?Re=65:Re===91&&(Re=97);Te[43]=De;Te[45]=De;Te[46]=De;Te[95]=De;Te[72]=[De,mi];Te[104]=[De,mi];Te[87]=[De,pi];Te[119]=[De,pi];function wc(e,n,t){const r=this;let i,o;return l;function l(c){return!Xt(c)||!yi.call(r,r.previous)||kn(r.events)?t(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(c))}function a(c){return Xt(c)?(e.consume(c),a):c===64?(e.consume(c),s):t(c)}function s(c){return c===46?e.check(xc,f,u)(c):c===45||c===95||ue(c)?(o=!0,e.consume(c),s):f(c)}function u(c){return e.consume(c),i=!0,s}function f(c){return o&&i&&he(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(c)):t(c)}}function Cc(e,n,t){const r=this;return i;function i(l){return l!==87&&l!==119||!di.call(r,r.previous)||kn(r.events)?t(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(kc,e.attempt(ci,e.attempt(fi,o),t),t)(l))}function o(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(l)}}function Sc(e,n,t){const r=this;let i="",o=!1;return l;function l(c){return(c===72||c===104)&&gi.call(r,r.previous)&&!kn(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),a):t(c)}function a(c){if(he(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),a;if(c===58){const p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(c),s}return t(c)}function s(c){return c===47?(e.consume(c),o?u:(o=!0,s)):t(c)}function u(c){return c===null||pt(c)||Z(c)||Fe(c)||yt(c)?t(c):e.attempt(ci,e.attempt(fi,f),t)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(c)}}function Ec(e,n,t){let r=0;return i;function i(l){return(l===87||l===119)&&r<3?(r++,e.consume(l),i):l===46&&r===3?(e.consume(l),o):t(l)}function o(l){return l===null?t(l):n(l)}}function Tc(e,n,t){let r,i,o;return l;function l(u){return u===46||u===95?e.check(hi,s,a)(u):u===null||Z(u)||Fe(u)||u!==45&&yt(u)?s(u):(o=!0,e.consume(u),l)}function a(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),l}function s(u){return i||r||!o?t(u):n(u)}}function Ac(e,n){let t=0,r=0;return i;function i(l){return l===40?(t++,e.consume(l),i):l===41&&r<t?o(l):l===33||l===34||l===38||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===60||l===63||l===93||l===95||l===126?e.check(hi,n,o)(l):l===null||Z(l)||Fe(l)?n(l):(e.consume(l),i)}function o(l){return l===41&&r++,e.consume(l),i}}function Ic(e,n,t){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),r):a===38?(e.consume(a),o):a===93?(e.consume(a),i):a===60||a===null||Z(a)||Fe(a)?n(a):t(a)}function i(a){return a===null||a===40||a===91||Z(a)||Fe(a)?n(a):r(a)}function o(a){return he(a)?l(a):t(a)}function l(a){return a===59?(e.consume(a),r):he(a)?(e.consume(a),l):t(a)}}function vc(e,n,t){return r;function r(o){return e.consume(o),i}function i(o){return ue(o)?t(o):n(o)}}function di(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Z(e)}function gi(e){return!he(e)}function yi(e){return!(e===47||Xt(e))}function Xt(e){return e===43||e===45||e===46||e===95||ue(e)}function kn(e){let n=e.length,t=!1;for(;n--;){const r=e[n][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){t=!0;break}if(r._gfmAutolinkLiteralWalkedInto){t=!1;break}}return e.length>0&&!t&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),t}const Dc={tokenize:Oc,partial:!0};function Pc(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Rc,continuation:{tokenize:Fc},exit:Nc}},text:{91:{name:"gfmFootnoteCall",tokenize:zc},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:_c,resolveTo:Lc}}}}function _c(e,n,t){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;i--;){const s=r.events[i][1];if(s.type==="labelImage"){l=s;break}if(s.type==="gfmFootnoteCall"||s.type==="labelLink"||s.type==="label"||s.type==="image"||s.type==="link")break}return a;function a(s){if(!l||!l._balanced)return t(s);const u=Ce(r.sliceSerialize({start:l.end,end:r.now()}));return u.codePointAt(0)!==94||!o.includes(u.slice(1))?t(s):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),n(s))}}function Lc(e,n){let t=e.length;for(;t--;)if(e[t][1].type==="labelImage"&&e[t][0]==="enter"){e[t][1];break}e[t+1][1].type="data",e[t+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[t+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[t+3][1].end),end:Object.assign({},e[t+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},a=[e[t+1],e[t+2],["enter",r,n],e[t+3],e[t+4],["enter",i,n],["exit",i,n],["enter",o,n],["enter",l,n],["exit",l,n],["exit",o,n],e[e.length-2],e[e.length-1],["exit",r,n]];return e.splice(t,e.length-t+1,...a),e}function zc(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,l;return a;function a(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),s}function s(c){return c!==94?t(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(c){if(o>999||c===93&&!l||c===null||c===91||Z(c))return t(c);if(c===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(Ce(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):t(c)}return Z(c)||(l=!0),o++,e.consume(c),c===92?f:u}function f(c){return c===91||c===92||c===93?(e.consume(c),o++,u):u(c)}}function Rc(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,l=0,a;return s;function s(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):t(g)}function f(g){if(l>999||g===93&&!a||g===null||g===91||Z(g))return t(g);if(g===93){e.exit("chunkString");const w=e.exit("gfmFootnoteDefinitionLabelString");return o=Ce(r.sliceSerialize(w)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return Z(g)||(a=!0),l++,e.consume(g),g===92?c:f}function c(g){return g===91||g===92||g===93?(e.consume(g),l++,f):f(g)}function p(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),i.includes(o)||i.push(o),K(e,h,"gfmFootnoteDefinitionWhitespace")):t(g)}function h(g){return n(g)}}function Fc(e,n,t){return e.check(lt,n,e.attempt(Dc,n,t))}function Nc(e){e.exit("gfmFootnoteDefinition")}function Oc(e,n,t){const r=this;return K(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?n(o):t(o)}}function Mc(e){let t=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:i};return t==null&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(l,a){let s=-1;for(;++s<l.length;)if(l[s][0]==="enter"&&l[s][1].type==="strikethroughSequenceTemporary"&&l[s][1]._close){let u=s;for(;u--;)if(l[u][0]==="exit"&&l[u][1].type==="strikethroughSequenceTemporary"&&l[u][1]._open&&l[s][1].end.offset-l[s][1].start.offset===l[u][1].end.offset-l[u][1].start.offset){l[s][1].type="strikethroughSequence",l[u][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},l[u][1].start),end:Object.assign({},l[s][1].end)},c={type:"strikethroughText",start:Object.assign({},l[u][1].end),end:Object.assign({},l[s][1].start)}
vendor: 4,671 bytes, line 29
29,p=[["enter",f,a],["enter",l[u][1],a],["exit",l[u][1],a],["enter",c,a]],h=a.parser.constructs.insideSpan.null;h&&ke(p,p.length,0,kt(h,l.slice(u+1,s),a)),ke(p,p.length,0,[["exit",c,a],["enter",l[s][1],a],["exit",l[s][1],a],["exit",f,a]]),ke(l,u-1,s-u+3,p),s=u+p.length-2;break}}for(s=-1;++s<l.length;)l[s][1].type==="strikethroughSequenceTemporary"&&(l[s][1].type="data");return l}function o(l,a,s){const u=this.previous,f=this.events;let c=0;return p;function p(g){return u===126&&f[f.length-1][1].type!=="characterEscape"?s(g):(l.enter("strikethroughSequenceTemporary"),h(g))}function h(g){const w=$e(u);if(g===126)return c>1?s(g):(l.consume(g),c++,h);if(c<2&&!t)return s(g);const C=l.exit("strikethroughSequenceTemporary"),y=$e(g);return C._open=!y||y===2&&!!w,C._close=!w||w===2&&!!y,a(g)}}}class jc{constructor(){this.map=[]}add(n,t,r){Bc(this,n,t,r)}consume(n){if(this.map.sort(function(o,l){return o[0]-l[0]}),this.map.length===0)return;let t=this.map.length;const r=[];for(;t>0;)t-=1,r.push(n.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),n.length=this.map[t][0];r.push(n.slice()),n.length=0;let i=r.pop();for(;i;){for(const o of i)n.push(o);i=r.pop()}this.map.length=0}}function Bc(e,n,t,r){let i=0;if(!(t===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===n){e.map[i][1]+=t,e.map[i][2].push(...r);return}i+=1}e.map.push([n,t,r])}}function Uc(e,n){let t=!1;const r=[];for(;n<e.length;){const i=e[n];if(t){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(t=!0);n+=1}return r}function Hc(){return{flow:{null:{name:"table",tokenize:$c,resolveAll:Vc}}}}function $c(e,n,t){const r=this;let i=0,o=0,l;return a;function a(k){let D=r.events.length-1;for(;D>-1;){const z=r.events[D][1].type;if(z==="lineEnding"||z==="linePrefix")D--;else break}const _=D>-1?r.events[D][1].type:null,W=_==="tableHead"||_==="tableRow"?x:s;return W===x&&r.parser.lazy[r.now().line]?t(k):W(k)}function s(k){return e.enter("tableHead"),e.enter("tableRow"),u(k)}function u(k){return k===124||(l=!0,o+=1),f(k)}function f(k){return k===null?t(k):N(k)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),h):t(k):V(k)?K(e,f,"whitespace")(k):(o+=1,l&&(l=!1,i+=1),k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),l=!0,f):(e.enter("data"),c(k)))}function c(k){return k===null||k===124||Z(k)?(e.exit("data"),f(k)):(e.consume(k),k===92?p:c)}function p(k){return k===92||k===124?(e.consume(k),c):c(k)}function h(k){return r.interrupt=!1,r.parser.lazy[r.now().line]?t(k):(e.enter("tableDelimiterRow"),l=!1,V(k)?K(e,g,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):g(k))}function g(k){return k===45||k===58?C(k):k===124?(l=!0,e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),w):F(k)}function w(k){return V(k)?K(e,C,"whitespace")(k):C(k)}function C(k){return k===58?(o+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),y):k===45?(o+=1,y(k)):k===null||N(k)?R(k):F(k)}function y(k){return k===45?(e.enter("tableDelimiterFiller"),A(k)):F(k)}function A(k){return k===45?(e.consume(k),A):k===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),S):(e.exit("tableDelimiterFiller"),S(k))}function S(k){return V(k)?K(e,R,"whitespace")(k):R(k)}function R(k){return k===124?g(k):k===null||N(k)?!l||i!==o?F(k):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(k)):F(k)}function F(k){return t(k)}function x(k){return e.enter("tableRow"),O(k)}function O(k){return k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),O):k===null||N(k)?(e.exit("tableRow"),n(k)):V(k)?K(e,O,"whitespace")(k):(e.enter("data"),$(k))}function $(k){return k===null||k===124||Z(k)?(e.exit("data"),O(k)):(e.consume(k),k===92?U:$)}function U(k){return k===92||k===124?(e.consume(k),$):$(k)}}function Vc(e,n){let t=-1,r=!0,i=0,o=[0,0,0,0],l=[0,0,0,0],a=!1,s=0,u,f,c;const p=new jc;for(;++t<e.length;){const h=e[t],g=h[1];h[0]==="enter"?g.type==="tableHead"?(a=!1,s!==0&&(hr(p,n,s,u,f),f=void 0,s=0),u={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(t,0,[["enter",u,n]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(r=!0,c=void 0,o=[0,0,0,0],l=[0,t+1,0,0],a&&(a=!1,f={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)}
29,p.add(t,0,[["enter",f,n]])),i=g.type==="tableDelimiterRow"?2:f?3:1):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(r=!1,l[2]===0&&(o[1]!==0&&(l[0]=l[1],c=ft(p,n,o,i,void 0,c),o=[0,0,0,0]),l[2]=t)):g.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(l[0]=l[1],c=ft(p,n,o,i,void 0,c)),o=l,l=[o[1],t,0,0])):g.type==="tableHead"?(a=!0,s=t):g.type==="tableRow"||g.type==="tableDelimiterRow"?(s=t,o[1]!==0?(l[0]=l[1],c=ft(p,n,o,i,t,c)):l[1]!==0&&(c=ft(p,n,l,i,t,c)),i=0):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(l[3]=t)}for(s!==0&&hr(p,n,s,u,f),p.consume(n.events),t=-1;++t<n.events.length;){const h=n.events[t];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=Uc(n.events,t))}return e}function ft(e,n,t,r,i,o){const l=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";t[0]!==0&&(o.end=Object.assign({},Ue(n.events,t[0])),e.add(t[0],0,[["exit",o,n]]));const s=Ue(n.events,t[1]);if(o={type:l,start:Object.assign({},s),end:Object.assign({},s)},e.add(t[1],0,[["enter",o,n]]),t[2]!==0){const u=Ue(n.events,t[2]),f=Ue(n.events,t[3]),c={type:a,start:Object.assign({},u),end:Object.assign({},f)};if(e.add(t[2],0,[["enter",c,n]]),r!==2){const p=n.events[t[2]],h=n.events[t[3]];if(p[1].end=Object.assign({},h[1].end),p[1].type="chunkText",p[1].contentType="text",t[3]>t[2]+1){const g=t[2]+1,w=t[3]-t[2]-1;e.add(g,w,[])}}e.add(t[3]+1,0,[["exit",c,n]])}return i!==void 0&&(o.end=Object.assign({},Ue(n.events,i)),e.add(i,0,[["exit",o,n]]),o=void 0),o}function hr(e,n,t,r,i){const o=[],l=Ue(n.events,t);i&&(i.end=Object.assign({},l),o.push(["exit",i,n])),r.end=Object.assign({},l),o.push(["exit",r,n]),e.add(t+1,0,o)}function Ue(e,n){const t=e[n],r=t[0]==="enter"?"start":"end";return t[1][r]}const qc={name:"tasklistCheck",tokenize:Kc};function Wc(){return{text:{91:qc}}}function Kc(e,n,t){const r=this;return i;function i(s){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?t(s):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),o)}function o(s){return Z(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),l):s===88||s===120?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),l):t(s)}function l(s){return s===93?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):t(s)}function a(s){return N(s)?n(s):V(s)?e.check({tokenize:Yc},n,t)(s):t(s)}}function Yc(e,n,t){return K(e,r,"whitespace");function r(i){return i===null?t(i):n(i)}}function Gc(e){return vr([bc(),Pc(),Mc(e),Hc(),Wc()])}const Jc={};function Xc(e){const n=this,t=e||Jc,r=n.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(Gc(t)),o.push(gc()),l.push(yc(t))}const Qt="chat-user-api-key";function Qc(){try{return localStorage.getItem(Qt)??""}catch{return""}}function Zc(e){try{e?localStorage.setItem(Qt,e):localStorage.removeItem(Qt)}catch{}}function Se(){return globalThis.crypto.randomUUID()}function ef(){return`guest-${Se()}`}function ve(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function fe(e,n){const t=e[n];return typeof t=="string"?t:null}function Qe(e,n){const t=e[n];return typeof t=="number"&&Number.isFinite(t)?t:null}function tf(e){if(!ve(e))return null;const n=Qe(e,"threads_used_today"),t=Qe(e,"threads_limit"),r=Qe(e,"messages_in_thread"),i=Qe(e,"messages_limit");return n===null||t===null||r===null||i===null?null:{threadsUsedToday:n,threadsLimit:t,messagesInThread:r,messagesLimit:i}}function nf(e){if(!ve(e))return null;const n=fe(e,"conversation_id"),t=fe(e,"title"),r=Qe(e,"archived"),i=fe(e,"created_at"),o=fe(e,"updated_at");return n===null||t===null||r===null||i===null||o===null?null:{conversation_id:n,title:t,archived:r,created_at:i,updated_at:o}}function rf(e){if(!Array.isArray(e))return[];const n=[];for(const t of e){const r=nf(t);r!==null&&n.push(r)}return n}function lf(e){return ve(e)?fe(e,"conversation_id"):null}function of(e){if(!ve(e))return null;const n=fe(e,"message_id"),t=fe(e,"role"),r=fe(e,"content"),i=fe(e,"created_at");return n===null||t===null||r===null||i===null||t!=="user"&&t!=="assistant"&&t!=="tool"?null:{id:n,role:t,content:r,timestamp:i}}function af(e){if(!ve(e))return[];const n=e.messages;if(!Array.isArray(n))return[];const t=[];for(const r of n){const i=of(r);i!==null&&t.push(i)}return t}function sf(e){let n;try{n=JSON.parse(e)}catch{return console.warn("useAgentChat: malformed SSE JSON payload",e.
29slice(0,200)),null}return ve(n)?n:null}function uf(e){return e.endsWith("\r")?e.slice(0,-1):e}function Bt(e){return!e.id.startsWith("toolstart-")}async function cf(e,n){const t=new TextDecoder;let r="",i="message",o="";for(;;){const{done:l,value:a}=await e.read();if(l)break;r+=t.decode(a,{stream:!0});const s=r.split(`
30`);r=s.pop()??"";for(const u of s){const f=uf(u);f.startsWith("event: ")?i=f.slice(7).trim():f.startsWith("data: ")?o=f.slice(6):f===""&&(o&&n({event:i,data:o}),i="message",o="")}}o&&n({event:i,data:o})}function ff(e){const n=e.ui_actions;if(!Array.isArray(n))return[];const t=[];for(const r of n)ve(r)&&typeof r.action_type=="string"&&t.push({action_type:r.action_type,params:ve(r.params)?r.params:{}});return t}const hf=new Set(["pantry_upsert","pantry_add","pantry_update","pantry_remove","pantry_remove_batch","pantry_clear"]);function pf(e){return typeof e.action_type=="string"?e.action_type:typeof e.action=="string"?e.action:null}function mf(e){const n=e.actions;return Array.isArray(n)?n.some(t=>{if(!ve(t))return!1;const r=pf(t);return r!==null&&hf.has(r)}):!1}function df(e={}){const{onAgentStateMutated:n}=e,[t,r]=j.useState([]),[i,o]=j.useState([]),[l,a]=j.useState(null),[s,u]=j.useState(!1),[f,c]=j.useState(null),[p,h]=j.useState(null),[g,w]=j.useState([]),C=j.useRef(null),[y,A]=j.useState(Qc),S=j.useCallback(L=>{A(L),Zc(L)},[]),R=j.useCallback(async L=>{if(at()===null){h(null);return}const H=await Me(`/api/agent/threads/usage?conversation_id=${L??""}`,{headers:ze()});if(H.ok){const Y=await H.json(),ne=tf(Y);ne!==null&&h(ne)}},[]),F=j.useCallback(async()=>{if(at()===null){o([]),h(null);return}const L=await Me("/api/agent/threads",{headers:ze()});if(L.ok){const H=await L.json();o(rf(H))}await R(l)},[R,l]),x=j.useRef(null),O=j.useCallback(async L=>{if(x.current=null,at()===null)return x.current="No auth token found. Please sign in.",null;const Y=await Me("/api/agent/threads",{method:"POST",headers:{"Content-Type":"application/json",...ze()},body:JSON.stringify({title:L})});if(!Y.ok){const oe=await Y.text();return console.error("[chat] createThread failed:",Y.status,oe),Y.status===401||Y.status===403?x.current="Your session has expired. Please log out and log in again.":x.current=`Could not start conversation (${Y.status}). Try again.`,null}const ne=await Y.json(),m=lf(ne);return m===null?(x.current="Could not read new conversation ID. Try again.",null):(a(m),await F(),m)},[F]),$=j.useCallback(async L=>{const H=await Me(`/api/agent/threads/${L}`,{headers:ze()});if(!H.ok)return;const Y=await H.json();a(L);const ne=af(Y);r(ne),await R(L)},[R]),U=j.useCallback(async L=>{await Me(`/api/agent/threads/${L}`,{method:"DELETE",headers:ze()}),l===L&&(a(null),r([])),await F()},[l,F]),k=j.useCallback(async(L,H)=>{await Me(`/api/agent/threads/${L}`,{method:"PATCH",headers:{"Content-Type":"application/json",...ze()},body:JSON.stringify({title:H})}),await F()},[F]),D=j.useCallback(async(L,H)=>{if(L!==null)return L;const Y=at()!==null,ne=y.trim().length>0;if(!Y&&ne){const m=ef();return a(m),m}return O(H.slice(0,50))},[O,y]),_=j.useCallback(async(L,H)=>{if(s)return;const Y=L.trim();if(!Y)return;u(!0),c("Connecting...");const ne={id:Se(),role:"user",content:Y,timestamp:new Date().toISOString()};r(G=>[...G,ne]);const m=await D(l,Y);if(m===null){r(G=>[...G,{id:Se(),role:"assistant",content:x.current??"Could not start conversation. Please try again.",timestamp:new Date().toISOString()}]),u(!1),c(null);return}const oe=new AbortController;C.current=oe;let se="";const d=[];try{const G=await fetch("/api/agent/chat",{method:"POST",headers:{"Content-Type":"application/json",...ze()},body:JSON.stringify({conversation_id:m,message:Y,images:H.length>0?H:null,user_api_key:y||null}),signal:oe.signal});if(!G.ok||!G.body){const te=await G.text();r(re=>[...re,{id:Se(),role:"assistant",content:`Error: ${te}`,timestamp:new Date().toISOString()}]),u(!1);return}const de=G.body.getReader();await cf(de,te=>{const re=sf(te.data);if(re!==null)switch(te.event){case"status":{const J=fe(re,"text");c(J);break}case"chunk":{const J=fe(re,"text");se+=J??"",r(X=>{if(X.length>0){const ae=X[X.length-1];if(ae.role==="assistant"&&ae.id.startsWith("stream-"))return[...X.slice(0,-1),{...ae,content:se}]}return[...X,{id:`stream-${Se()}`,role:"assistant",content:se,timestamp:new Date().toISOString()}]});break}case"tool_start":{const J=fe(re,"command")??"...";r(X=>[...X,{id:`toolstart-${Se()}`,role:"tool",content:JSON.stringify({type:"tool_start",command:J}),timestamp:new Date().toISOString()}]),c(null);break}case"tool_result":{if(mf(re)&&n!==void 0){const X=Promise.resolve(n()).catch(ae=>{console.error("[chat] state refresh after tool result failed:",ae)});d.push(X)}const J=ff(re);J.length>0&&w(X=>[...X,...J]),r(X=>
30[...X.filter(Bt),{id:Se(),role:"tool",content:JSON.stringify({type:"tool_result",...re}),timestamp:new Date().toISOString()}]);break}case"done":r(J=>{let X=-1;for(let be=J.length-1;be>=0;be--)if(J[be].id.startsWith("stream-")){X=be;break}const ae=fe(re,"message_id");return X>=0&&ae!==null?[...J.slice(0,X),{...J[X],id:ae},...J.slice(X+1)]:J}),c(null);break;case"rate_limit":r(J=>[...J.filter(Bt),{id:Se(),role:"assistant",content:fe(re,"error")??"Rate limit reached. Please try again later.",timestamp:new Date().toISOString()}]);break;case"error":r(J=>[...J.filter(Bt),{id:Se(),role:"assistant",content:`Error: ${fe(re,"error")??"Unknown error"}`,timestamp:new Date().toISOString()}]);break}}),await Promise.all(d)}catch(G){if(G instanceof DOMException&&G.name==="AbortError"){c(null),u(!1),C.current=null;return}r(de=>[...de,{id:Se(),role:"assistant",content:`Connection error: ${G instanceof Error?G.message:"Unknown"}`,timestamp:new Date().toISOString()}])}finally{u(!1),c(null),C.current=null,await R(m)}},[l,s,n,R,D,y]),W=j.useCallback(()=>{C.current?.abort(),C.current=null,u(!1),c(null)},[]),z=j.useCallback(L=>{a(L),L===null&&r([])},[]),v=j.useCallback(()=>{w([])},[]);return{messages:t,threads:i,currentThreadId:l,isStreaming:s,ephemeralStatus:f,usage:p,pendingUiActions:g,clearPendingUiActions:v,sendMessage:_,stopStreaming:W,loadThread:$,createThread:O,setCurrentThreadId:z,listThreads:F,deleteThread:U,renameThread:k,userApiKey:y,setUserApiKey:S}}const gf=["What can I make with chicken and rice?","Find me a quick pasta recipe","What's a good substitution for butter?","Help me plan meals for the week"],ki="chat-debug-mode";function Zt(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function yf(){try{return localStorage.getItem(ki)==="1"}catch{return!1}}function kf(e){try{localStorage.setItem(ki,e?"1":"0")}catch{}}function xf(e){const n=typeof e.action_type=="string"?e.action_type:"action",t=e.result;let r="done";return typeof t=="string"?r=t.slice(0,120):Array.isArray(t)&&(r=`${t.length} result(s)`),{label:n,summary:r}}function bf(e){try{const n=JSON.parse(e);if(!Zt(n))return{kind:"raw",text:e.length>200?`${e.slice(0,200)}...`:e};if(n.type==="tool_start"&&typeof n.command=="string")return{kind:"start",command:n.command};const t=[],r=n.actions;if(Array.isArray(r))for(const o of r)Zt(o)&&t.push(xf(o));const i=typeof n.error=="string"?n.error:null;if(t.length>0||i!==null)return{kind:"result",actions:t,error:i}}catch{}return{kind:"raw",text:e.length>200?`${e.slice(0,200)}...`:e}}function wf(e){const n=bf(e.content);return n.kind==="start"?T.jsxs("div",{className:"ChatToolStatus",children:[T.jsx("span",{className:"ChatToolStatusIcon"}),T.jsxs("span",{className:"ChatToolStatusText",children:["Searching: ",n.command]})]}):n.kind==="result"?T.jsxs("div",{className:"ChatToolResult",children:[n.actions.map((t,r)=>T.jsxs("div",{className:"ChatToolResultRow",children:[T.jsx("span",{className:"ChatToolResultLabel",children:t.label}),T.jsx("span",{className:"ChatToolResultValue",children:t.summary})]},`${r}-${t.label}`)),n.error!==null&&T.jsx("div",{className:"ChatToolResultError",children:n.error})]}):T.jsx(T.Fragment,{children:n.text})}function Cf(e){let n=null;try{const t=JSON.parse(e);Zt(t)&&(n=t)}catch{}return n===null?null:{actions:Array.isArray(n.actions)?n.actions:[],codeGenerated:Array.isArray(n.code_generated)?n.code_generated:[],turnsUsed:typeof n.turns_used=="number"?n.turns_used:null,error:typeof n.error=="string"?n.error:null}}function Sf(e){const n=Cf(e);if(n===null)return T.jsx("pre",{className:"ChatDebugPre",children:e.slice(0,2e3)});const{actions:t,codeGenerated:r,turnsUsed:i,error:o}=n,a=i!==null?` (${i} turn${i!==null&&i!==1?"s":""})`:"";return T.jsxs("div",{className:"ChatDebugToolResult",children:[T.jsxs("span",{className:"ChatDebugLabel",children:["result",a]}),o!==null?T.jsx("div",{className:"ChatDebugError",children:o}):null,t.length>0?T.jsxs("details",{className:"ChatDebugDetails",children:[T.jsxs("summary",{children:[t.length," action",t.length!==1?"s":""," executed"]}),T.jsx("pre",{className:"ChatDebugPre",children:JSON.stringify(t,null,2)})]}):null,r.length>0?T.jsxs("details",{className:"ChatDebugDetails",open:!0,children:[T.jsxs("summary",{children:["codegen (",r.length," block",r.length!==1?"s":"",")"]}),r.map((s,u)=>T.jsx("pre",{className:"ChatDebugCodeBlock",children:typeof s=="string"?s:String(s)},u))]}):null]})}function Ef(e){const n=e.endsWith("Z")?e:e+"Z",t=new Date(n),i=new Date().getTime()-t.getTime();if(i<0)return"Just now";const o=Math.floor(i/864e5);return o===0?"Today":o===1?"Yesterday":o<7?`${o}d ago`:t.toLocaleDateString(void 0,{month:"short",day:"numeric"})}function If(e){const{isOpen:n,onClose:t,onAgentStateMutated:r,onOpenDrawer:i,onSelectRecipe:o}
30=e,{messages:l,threads:a,currentThreadId:s,isStreaming:u,ephemeralStatus:f,usage:c,pendingUiActions:p,clearPendingUiActions:h,sendMessage:g,stopStreaming:w,loadThread:C,setCurrentThreadId:y,listThreads:A,deleteThread:S,userApiKey:R,setUserApiKey:F}=df({onAgentStateMutated:r}),[x,O]=j.useState(""),[$,U]=j.useState(!1),[k,D]=j.useState(yf),_=j.useRef(null),W=j.useRef(null),z=j.useRef(null),v=j.useRef(!1),[L,H]=j.useState(!1),[Y,ne]=j.useState(R);j.useEffect(()=>{if(p.length!==0){for(const P of p)if(P.action_type==="ui_open_drawer"&&i!==void 0){const le=P.params.drawer_name;typeof le=="string"&&i(le)}else if(P.action_type==="ui_navigate_recipe"&&o!==void 0){const le=P.params.recipe_id;typeof le=="number"&&o(le)}h()}},[p,h,i,o]);const m=j.useCallback(()=>{D(P=>{const le=!P;return kf(le),le})},[]);j.useEffect(()=>{n&&A().catch(()=>{})},[n,A]),j.useEffect(()=>{v.current||_.current?.scrollIntoView({behavior:"smooth"})},[l,f]);const oe=j.useCallback(()=>{const P=W.current;if(!P)return;const le=P.scrollHeight-P.scrollTop-P.clientHeight;v.current=le>80},[]),se=j.useCallback(()=>{const P=z.current;P&&(P.style.height="auto",P.style.height=`${Math.min(P.scrollHeight,120)}px`)},[]),d=j.useCallback(P=>{O(P.target.value),se()},[se]),G=j.useCallback(P=>{if(!P.trim()||u)return;g(P,[]).catch(()=>{}),O(""),v.current=!1,U(!1),z.current&&(z.current.style.height="auto")},[u,g]),de=j.useCallback(P=>{P.key==="Enter"&&!P.shiftKey&&(P.preventDefault(),G(x))},[G,x]),te=j.useCallback(()=>{y(null),U(!1)},[y]),re=j.useCallback(P=>{C(P).catch(()=>{}),U(!1)},[C]),J=j.useCallback((P,le)=>{P.stopPropagation(),S(le).catch(()=>{})},[S]),X=l.length>0?l[l.length-1]:null,ae=X!==null&&X.role==="assistant"&&X.id.startsWith("stream-"),be=u&&!ae,Ct=l.length===0&&!u;return T.jsx(Ai,{isOpen:n,onClose:t,title:"Chat",ariaLabel:"Chat assistant",panelClassName:"ChatDrawerPanel",children:T.jsxs("div",{className:"ChatDrawerBody",children:[T.jsxs("div",{className:`ChatSidebar${$?" ChatSidebarOpen":""}`,children:[T.jsxs("button",{type:"button",className:"ChatNewChatBtn",onClick:te,children:[T.jsx("span",{className:"ChatNewChatIcon",children:"+"}),"New chat"]}),T.jsxs("div",{className:"ChatThreadList",children:[a.length===0&&T.jsx("p",{className:"ChatThreadEmpty",children:"No conversations yet"}),a.map(P=>T.jsxs("button",{type:"button",className:`ChatThreadItem${P.conversation_id===s?" ChatThreadItemActive":""}`,onClick:()=>re(P.conversation_id),children:[T.jsx("span",{className:"ChatThreadTitle",children:P.title}),T.jsx("span",{className:"ChatThreadDate",children:Ef(P.updated_at)}),T.jsx("button",{type:"button",className:"ChatThreadDeleteBtn",onClick:le=>J(le,P.conversation_id),"aria-label":`Delete ${P.title}`,children:"×"})]},P.conversation_id))]}),c&&!R&&T.jsxs("div",{className:"ChatSidebarUsage",children:[T.jsxs("span",{children:[c.threadsUsedToday,"/",c.threadsLimit," chats today"]}),s!==null&&T.jsxs("span",{children:[c.messagesInThread,"/",c.messagesLimit," messages"]})]})]}),$&&T.jsx("div",{className:"ChatSidebarBackdrop",onClick:()=>U(!1),role:"presentation"}),T.jsxs("div",{className:"ChatMain",children:[T.jsxs("div",{className:"ChatMainHeader",children:[T.jsx("button",{type:"button",className:"ChatSidebarToggle",onClick:()=>U(!$),"aria-label":"Toggle conversations",children:T.jsx("span",{className:"ChatHamburger"})}),T.jsx("span",{className:"ChatMainTitle",children:s!==null?a.find(P=>P.conversation_id===s)?.title??"Chat":"New chat"}),T.jsx("button",{type:"button",className:`ChatDebugToggle${k?" ChatDebugToggleOn":""}`,onClick:m,"aria-label":"Toggle debug view","aria-pressed":k,title:k?"Debug: ON":"Debug: OFF",children:T.jsx(Ti,{})})]}),T.jsxs("div",{className:"ChatApiKeySection",children:[T.jsxs("button",{type:"button",className:`ChatApiKeyToggle${R?" ChatApiKeyToggleActive":""}`,onClick:()=>H(!L),children:[T.jsx("span",{className:"ChatApiKeyToggleIcon",children:L?"▲":"▼"}),T.jsx("span",{children:R?"API key configured":"Use your own API key (optional)"})]}),L&&T.jsxs("div",{className:"ChatApiKeyBody",children:[T.jsx("p",{className:"ChatApiKeyInstructions",children:"Provide your own free Mistral API key for unlimited use:"}),T.jsxs("ol",{className:"ChatApiKeySteps",children:[T.jsxs("li",{children:["Go to ",T.jsx("a",{href:"https://console.mistral.ai/",target:"_blank",rel:"noopener noreferrer",children:"console.mistral.ai"})," and create an account"]}),T.jsx("li",{children:"Verify your phone number when prompted"}),T.jsxs("li",{children:["Click ",T.jsx("strong",{children:"API Keys"})," in the left sidebar, then ",T.jsx("strong",{children:"Create new key"})]}),T.jsx("li",{children:"Copy the key and paste it below"})]}),T.jsx("p",{className:"ChatApiKeyNote",children:"The free plan has generous limits (1B tokens/month) and requires no credit card. Your key is stored only in your browser."}),T.jsxs("div",{className:"ChatApiKeyInputRow",children:[T.jsx("input",{type:"password",className:"ChatApiKeyInput",placeholder:"Paste your Mistral API key here",value:Y,onChange:P=>ne(P.target.value)}),T.jsx("button",{type:"button",className:"Btn ChatApiKeySaveBtn",onClick:()=>{F(Y.trim()),H(!1)},children:"Save"}),R&&T.jsx("button",{type:"button",className:"Btn ChatApiKeyClearBtn",onClick:()=>{ne(""),F("")},children:"Clear"})]})]})]}),T.jsxs("div",{className:"ChatMessageList",ref:W,onScroll:oe,children:[Ct&&T.jsxs("div",{className:"ChatEmptyState",children:[T.jsx("p",{className:"ChatEmptyTitle",children:"What can I help with?"}),T.jsx("div",{className:"ChatStarterPrompts",children:gf.map(P=>T.jsx("button",{type:"button",className:"ChatStarterBtn",onClick:()=>G(P),children:P},P))})]}),l.map(P=>{if(P.role==="tool")return k?T.jsx("div",{className:"ChatMessage ChatMessageDebug",children:Sf(P.content)},P.id):T.jsx("div",{className:"ChatMessage ChatMessageTool",children:T.jsx(wf,{content:P.content})},P.id);if(P.role==="assistant"&&P.content.trimStart().startsWith("[action]"))return k?T.jsxs("div",{className:"ChatMessage ChatMessageDebug",children:[T.jsx("span",{className:"ChatDebugLabel",children:"action"}),T.jsx("span",{className:"ChatDebugCommand",children:P.content.replace("[action]","").trim()})]},P.id):null;const le=P.role==="user"?"ChatMessageUser":"ChatMessageAssistant";return T.jsx("div",{className:`ChatMessage ${le}`,children:P.role==="assistant"?T.jsx(Ms,{remarkPlugins:[Xc],children:P.content}):P.content},P.id)}),be&&T.jsx("div",{className:"ChatMessage ChatMessageAssistant ChatTypingIndicator",children:f!==null&&f.length>0?T.jsx("span",{className:"ChatTypingStatusText",children:f}):T.jsxs("span",{className:"ChatTypingDots",children:[T.jsx("span",{}),T.jsx("span",{}),T.jsx("span",{})]})}),T.jsx("div",{ref:_})]}),T.jsxs("div",{className:"ChatInputArea",children:[T.jsx("textarea",{ref:z,value:x,onChange:d,onKeyDown:de,placeholder:"Ask about recipes...",rows:1}),u?T.jsx("button",{type:"button",className:"Btn ChatStopBtn",onClick:w,children:"Stop"}):T.jsx("button",{type:"button",className:"Btn ChatSendBtn",onClick:()=>G(x),disabled:!x.trim(),children:"Send"})]})]})]})})}export{If as ChatDrawer};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.