1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[10424],{97853:function(e,t,n){"use strict";var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var l in t=arguments[n])Object.prototype.hasOwnProperty.call(t,l)&&(e[l]=t[l]);return e}).apply(this,arguments)},l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,r=Object.getOwnPropertySymbols(e);l<r.length;l++)0>t.indexOf(r[l])&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(n[r[l]]=e[r[l]]);return n};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t){var n=t.defaultOrigin,o=void 0===n?"":n,s=t.allowedLinkPrefixes,u=void 0===s?[]:s,c=t.allowedImagePrefixes,d=void 0===c?[]:c,h=t.components,p=l(t,["defaultOrigin","allowedLinkPrefixes","allowedImagePrefixes","components"]),m=u.length&&!u.every(function(e){return"*"===e}),g=d.length&&!d.every(function(e){return"*"===e});if(!o&&(m||g))throw Error("defaultOrigin is required when allowedLinkPrefixes or allowedImagePrefixes are provided");var f=function(e){if("string"!=typeof e)return null;try{var t=new URL(e);return t}catch(n){if(o)try{var t=new URL(e,o);return t}catch(e){}return null}},b=function(e){return"string"==typeof e&&e.startsWith("/")},y=function(e,t){if(!e||!f(e))return null;if(t.includes("*")){var n=b(e),r=f(e);return r?n?r.pathname+r.search+r.hash:r.href:null}var l=b(e),i=f(e);return i&&t.some(function(e){var t=f(e);return!!t&&t.origin===i.origin&&i.href.startsWith(t.href)})?l?i.pathname+i.search+i.hash:i.href:null},k=r(r({},h),{a:function(e){var t=e.href,n=e.children,o=e.node,s=l(e,["href","children","node"]),c=y(t,u);return null!==c?(null==h?void 0:h.a)?(0,a.createElement)(h.a,r({href:c,children:n,node:o,target:"_blank",rel:"noopener noreferrer"},s)):(0,i.jsx)("a",r({href:c},s,{target:"_blank",rel:"noopener noreferrer",children:n})):(0,i.jsxs)("span",{className:"text-gray-500",title:"Blocked URL: ".concat(t),children:[n," [blocked]"]})},img:function(e){var t=e.src,n=e.alt,o=e.node,s=l(e,["src","alt","node"]),u=y(t,d);return null!==u?(null==h?void 0:h.img)?(0,a.createElement)(h.img,r({src:u,alt:n,node:o},s)):(0,i.jsx)("img",r({src:u,alt:n},s)):(0,i.jsxs)("span",{className:"inline-block bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-400 px-3 py-1 rounded text-sm",children:["[Image blocked: ",n||"No description","]"]})}}),x=r(r({},p),{components:k});return(0,a.createElement)(e,x)}};var i=n(57437),a=n(2265)},35711:function(){},10424:function(e,t,n){"use strict";let r,l;n.r(t),n.d(t,{ShikiThemeContext:function(){return aA},Streamdown:function(){return aR}});var i,a,o={};n.r(o),n.d(o,{boolean:function(){return A},booleanish:function(){return L},commaOrSpaceSeparated:function(){return I},commaSeparated:function(){return M},number:function(){return E},overloadedBoolean:function(){return R},spaceSeparated:function(){return O}});var s={};n.r(s),n.d(s,{boolean:function(){return tJ},booleanish:function(){return t0},commaOrSpaceSeparated:function(){return t3},commaSeparated:function(){return t8},number:function(){return t2},overloadedBoolean:function(){return t1},spaceSeparated:function(){return t4}});var u=n(2265),c=n(83780),d=n(8579),h=n(54951),p=n(57437),m=n(32044),g=n(60714),f=n(60329),b=n(49168),y=n(78144);let k=[],x={allowDangerousHtml:!0},w=/^(https?|ircs?|mailto|xmpp)$/i,v=[{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 S(e){let t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),l=e.indexOf("/");return -1===t||-1!==l&&t>l||-1!==n&&t>n||-1!==r&&t>r||w.test(e.slice(0,t))?e:""}class _{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function C(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new _(n,r,t)}function P(e){return e.toLowerCase()}_.prototype.normal={},_.prototype.property={},_.prototype.space=void 0;class N{constructor(e,t){this.attribute=t,this.property=e}}N.prototype.attribute="",N.prototype.booleanish=!1,N.prototype.boolean=!1,N.prototype.commaOrSpaceSeparated=!1,N.prototype.commaSeparated=!1,N.prototype.defined=!1,N.prototype.mustUseProperty=!1,N.prototype.number=!1,N.prototype.overloadedBoolean=!1,N.prototype.property="",N.prototype.spaceSeparated=!1,N.prototype.space=void 0;
1let T=0,A=$(),L=$(),R=$(),E=$(),O=$(),M=$(),I=$();function $(){return 2**++T}let D=Object.keys(o);class j extends N{constructor(e,t,n,r){var l,i;let a=-1;if(super(e,t),r&&(this.space=r),"number"==typeof n)for(;++a<D.length;){let e=D[a];l=D[a],(i=(n&o[e])===o[e])&&(this[l]=i)}}}function z(e){let t={},n={};for(let[r,l]of Object.entries(e.properties)){let i=new j(r,e.transform(e.attributes||{},r),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[P(r)]=r,n[P(i.attribute)]=r}return new _(t,n,e.space)}j.prototype.defined=!0;let B=z({properties:{ariaActiveDescendant:null,ariaAtomic:L,ariaAutoComplete:null,ariaBusy:L,ariaChecked:L,ariaColCount:E,ariaColIndex:E,ariaColSpan:E,ariaControls:O,ariaCurrent:null,ariaDescribedBy:O,ariaDetails:null,ariaDisabled:L,ariaDropEffect:O,ariaErrorMessage:null,ariaExpanded:L,ariaFlowTo:O,ariaGrabbed:L,ariaHasPopup:null,ariaHidden:L,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:O,ariaLevel:E,ariaLive:null,ariaModal:L,ariaMultiLine:L,ariaMultiSelectable:L,ariaOrientation:null,ariaOwns:O,ariaPlaceholder:null,ariaPosInSet:E,ariaPressed:L,ariaReadOnly:L,ariaRelevant:null,ariaRequired:L,ariaRoleDescription:O,ariaRowCount:E,ariaRowIndex:E,ariaRowSpan:E,ariaSelected:L,ariaSetSize:E,ariaSort:null,ariaValueMax:E,ariaValueMin:E,ariaValueNow:E,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function G(e,t){return t in e?e[t]:t}function F(e,t){return G(e,t.toLowerCase())}let U=z({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:M,acceptCharset:O,accessKey:O,action:null,allow:null,allowFullScreen:A,allowPaymentRequest:A,allowUserMedia:A,alt:null,as:null,async:A,autoCapitalize:null,autoComplete:O,autoFocus:A,autoPlay:A,blocking:O,capture:null,charSet:null,checked:A,cite:null,className:O,cols:E,colSpan:null,content:null,contentEditable:L,controls:A,controlsList:O,coords:E|M,crossOrigin:null,data:null,dateTime:null,decoding:null,default:A,defer:A,dir:null,dirName:null,disabled:A,download:R,draggable:L,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:A,formTarget:null,headers:O,height:E,hidden:R,high:E,href:null,hrefLang:null,htmlFor:O,httpEquiv:O,id:null,imageSizes:null,imageSrcSet:null,inert:A,inputMode:null,integrity:null,is:null,isMap:A,itemId:null,itemProp:O,itemRef:O,itemScope:A,itemType:O,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:A,low:E,manifest:null,max:null,maxLength:E,media:null,method:null,min:null,minLength:E,multiple:A,muted:A,name:null,nonce:null,noModule:A,noValidate:A,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:A,optimum:E,pattern:null,ping:O,placeholder:null,playsInl
1ine:A,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:A,referrerPolicy:null,rel:O,required:A,reversed:A,rows:E,rowSpan:E,sandbox:O,scope:null,scoped:A,seamless:A,selected:A,shadowRootClonable:A,shadowRootDelegatesFocus:A,shadowRootMode:null,shape:null,size:E,sizes:null,slot:null,span:E,spellCheck:L,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:A,useMap:null,value:L,width:E,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:O,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:A,declare:A,event:null,face:null,frame:null,frameBorder:null,hSpace:E,leftMargin:E,link:null,longDesc:null,lowSrc:null,marginHeight:E,marginWidth:E,noResize:A,noHref:A,noShade:A,noWrap:A,object:null,profile:null,prompt:null,rev:null,rightMargin:E,rules:null,scheme:null,scrolling:L,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:A,disableRemotePlayback:A,prefix:null,property:null,results:E,security:null,unselectable:null},space:"html",transform:F}),q=z({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav
1-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:I,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:O,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:A,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:M,g2:M,glyphName:M,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:I,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
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:O,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:E,pointsAtY:E,pointsAtZ:E,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:I,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:I,rev:I,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:I,requiredFeatures:I,requiredFonts:I,requiredFormats:I,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:I,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:I,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:I,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:G}),H=z({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),W=z({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:F}),V=z({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),K=C([B,U,H,W,V],"html"),X=C([B,q,H,W,V],"svg");function Z(e){let t=[],n=String(e||""),r=n.indexOf(","),l=0,i=!1;for(;!i;){-1===r&&(r=n.length,i=!0);let e=n.slice(l,r).trim();(e||!i)&&t.push(e),l=r+1,r=n.indexOf(",",l)}return t}let Q=/[#.]/g,Y=/[A-Z]/g,J=/-[a-z]/g,ee=/^data[-\w.:]+$/i;function et(e){return"-"+e.toLowerCase()}function en(e){return e.charAt(1).toUpperCase()}function er(e){let t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function el(e,t,n){let r=n?function(e){let t=new Map;for(let n of e)t.set(n.toLowerCase(),n);return t}(n):void 0;return function(n,l,...i){let a;if(null==n)a={type:"root",children:[]},i.unshift(l);else{let o=(a=function(e,t){let n,r;let l=e||"",i={},a=0;for(;a<l.length;){Q.lastIndex=a;let e=Q.exec(l),t=l.slice(a,e?e.index:l.length);t&&(n?"#"===n?i.id=t:Array.isArray(i.className)?i.className.push(t):i.className=[t]:r=t,a+=t.length),e&&(n=e[0],a++)}return{type:"element",tagName:r||t||"div",properties:i,children:[]}}(n,t)).tagName.toLowerCase(),s=r?r.get(o):void 0;if(a.tagName=s||o,function(e){if(null===e||"object"!=typeof e||Array.isArray(e))return!0;if("string"!=typeof e.type)return!1;for(let t of Object.keys(e)){let n=e[t];if(n&&"object"==typeof n){if(!Array.isArray(n))return!0;for(let e of n)if("number"!=typeof e&&"string"!=typeof e)return!0}}return!!("children"in e&&Array.isArray(e.children))}(l))i.unshift(l);else for(let[t,n]of Object.entries(l))!function(e,t,n,r){let l;let i=function(e,t){let n=P(t),r=t,l=N;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&ee.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(J,en);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!J.test(e)){let n=e.replace(Y,et);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}l=j}return new l(r,t)}(e,n);if(null!=r){if("number"==typeof r){if(Number.isNaN(r))return;l=r}else l="boolean"==typeof r?r:"string"==typeof r?i.spaceSeparated?er(r):i.commaSeparated?Z(r):i.commaOrSpaceSeparated?er(Z(r).join(" ")):ei(i,i.property,r):Array.isArray(r)?[...r]:"style"===i.property?function(e){let t=[];for(let[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}(r):String(r);if(Array.isArray(l)){let e=[];for(let t of l)e.push(ei(i,i.property,t));l=e}"className"===i.property&&Array.isArray(t.className)&&(l=t.className.concat(l)),t[i.property]=l}}(e,a.properties,t,n)}for(let e of i)!function e(t,n){if(null==n);else if("number"==typeof n||"string"==typeof n)t.push({type:"text",value:String(n)});else if(Array.isArray(n))for(let r of n)e(t,r);else if("object"==typeof n&&"type"in n)"root"===n.type?e(t,n.children):t.push(n);else throw Error("Expected node, nodes, or string, got `"+n+"`")}(a.children,e);return"element"===a.type&&"template"===a.tagName&&(a.content={type:"root",children:a.children},a.children=[]),a}}
1function ei(e,t,n){if("string"==typeof n){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(""===n||P(n)===P(t)))return!0}return n}let ea=el(K,"div"),eo=el(X,"g",["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]),es="http://www.w3.org/1999/xhtml";function eu(e,t){let n=function(e,t){switch(e.nodeType){case 1:return function(e,t){let n=e.namespaceURI,r=n===es?e.tagName.toLowerCase():e.tagName,l=n===es&&"template"===r?e.content:e,i=e.getAttributeNames(),a={},o=-1;for(;++o<i.length;)a[i[o]]=e.getAttribute(i[o])||"";return("http://www.w3.org/2000/svg"===n?eo:ea)(r,a,ec(l,t))}(e,t);case 3:return{type:"text",value:e.nodeValue||""};case 8:return{type:"comment",value:e.nodeValue||""};case 9:case 11:return{type:"root",children:ec(e,t)};case 10:return{type:"doctype"};default:return}}(e,t);return n&&t.afterTransform&&t.afterTransform(e,n),n}function ec(e,t){let n=e.childNodes,r=[],l=-1;for(;++l<n.length;){let e=eu(n[l],t);void 0!==e&&r.push(e)}return r}let ed=new DOMParser;var eh=n(53574);let ep=function(e,t,n){let r=(0,eh.O)(n);if(!e||!e.type||!e.children)throw Error("Expected parent node");if("number"==typeof t){if(t<0||t===Number.POSITIVE_INFINITY)throw Error("Expected positive finite number as index")}else if((t=e.children.indexOf(t))<0)throw Error("Expected child node or index");for(;++t<e.children.length;)if(r(e.children[t],t,e))return e.children[t]},em=function(e){if(null==e)return ef;if("string"==typeof e)return eg(function(t){return t.tagName===e});if("object"==typeof e)return function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=em(e[n]);return eg(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e);if("function"==typeof e)return eg(e);throw Error("Expected function, string, or array as `test`")};function eg(e){return function(t,n,r){return!!(null!==t&&"object"==typeof t&&"type"in t&&"tagName"in t&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function ef(e){return!!(e&&"object"==typeof e&&"type"in e&&"element"===e.type&&"tagName"in e&&"string"==typeof e.tagName)}let eb=/\n/g,ey=/[\t ]+/g,ek=em("br"),ex=em(function(e){return"td"===e.tagName||"th"===e.tagName}),ew=em("p"),ev=em("tr"),eS=em(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",function(e){return!!(e.properties||{}).hidden},function(e){return"dialog"===e.tagName&&!(e.properties||{}).open}]),e_=em(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function eC(e,t){let n;let r=String(e.value),l=[],i=[],a=0;for(;a<=r.length;){eb.lastIndex=a;let e=eb.exec(r),n=e&&"index"in e?e.index:r.length;l.push(function(e,t,n){let r;let l=[],i=0;for(;i<e.length;){ey.lastIndex=i;let n=ey.exec(e);r=n?n.index:e.length,i||r||!n||t||l.push(""),i!==r&&l.push(e.slice(i,r)),i=n?r+n[0].length:r}return i===r||n||l.push(""),l.join(" ")}(r.slice(a,n).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),0!==a||t.breakBefore,n!==r.length||t.breakAfter)),a=n+1}let o=-1;for(;++o<l.length;
1)8203===l[o].charCodeAt(l[o].length-1)||o<l.length-1&&8203===l[o+1].charCodeAt(0)?(i.push(l[o]),n=void 0):l[o]?("number"==typeof n&&i.push(n),i.push(l[o]),n=0):(0===o||o===l.length-1)&&i.push(0);return i}function eP(e,t){if("element"===e.type){let n=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}var eN=n(75471),eT=n(28548);let eA={},eL=[];var eR=n(88010),eE=n(44190),eO=n(39915),eM=n(11960);let eI={tokenize:function(e,t,n){let r=this,l=r.events[r.events.length-1],i=l&&"linePrefix"===l[1].type?l[2].sliceSerialize(l[1],!0).length:0,a=0;return function(t){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),function t(r){return 36===r?(e.consume(r),a++,t):a<2?n(r):(e.exit("mathFlowFenceSequence"),(0,eO.f)(e,o,"whitespace")(r))}(t)};function o(t){return null===t||(0,eM.Ch)(t)?s(t):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(r){return null===r||(0,eM.Ch)(r)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),s(r)):36===r?n(r):(e.consume(r),t)}(t))}function s(n){return(e.exit("mathFlowFence"),r.interrupt)?t(n):e.attempt(e$,u,h)(n)}function u(t){return e.attempt({tokenize:p,partial:!0},h,c)(t)}function c(t){return(i?(0,eO.f)(e,d,"linePrefix",i+1):d)(t)}function d(t){return null===t?h(t):(0,eM.Ch)(t)?e.attempt(e$,u,h)(t):(e.enter("mathFlowValue"),function t(n){return null===n||(0,eM.Ch)(n)?(e.exit("mathFlowValue"),d(n)):(e.consume(n),t)}(t))}function h(n){return e.exit("mathFlow"),t(n)}function p(e,t,n){let l=0;return(0,eO.f)(e,function(t){return e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),function t(r){return 36===r?(l++,e.consume(r),t):l<a?n(r):(e.exit("mathFlowFenceSequence"),(0,eO.f)(e,i,"whitespace")(r))}(t)},"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function i(r){return null===r||(0,eM.Ch)(r)?(e.exit("mathFlowFence"),t(r)):n(r)}}},concrete:!0,name:"mathFlow"},e$={tokenize:function(e,t,n){let r=this;return function(n){return null===n?t(n):(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),l)};function l(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0};function eD(e){let t,n,r=e.length-4,l=3;if(("lineEnding"===e[3][1].type||"space"===e[l][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=l;++t<r;)if("mathTextData"===e[t][1].type){e[r][1].type="mathTextPadding",e[l][1].type="mathTextPadding",l+=2,r-=2;break}}for(t=l-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="mathTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e}function ej(e){return 36!==e||"characterEscape"===this.events[this.events.length-1][1].type}let ez={};function eB(e){let t;let n=e||ez,r=this.data(),l=r.micromarkExtensions||(r.micromarkExtensions=[]),i=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),a=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);l.push({flow:{36:eI},text:{36:(null==(t=(n||{}).singleDollarTextMath)&&(t=!0),{tokenize:function(e,n,r){let l,i,a=0;return function(n){return e.enter("mathText"),e.enter("mathTextSequence"),function n(l){return 36===l?(e.consume(l),a++,n):a<2&&!t?r(l):(e.exit("mathTextSequence"),o(l))}(n)};function o(t){return null===t?r(t):36===t?(i=e.enter("mathTextSequence"),l=0,function t(r){return 36===r?(e.consume(r),l++,t):l===a?(e.exit("mathTextSequence"),e.exit("mathText"),n(r)):(i.type="mathTextData",s(r))}(t)):32===t?(e.enter("space"),e.consume(t),e.exit("space"),o):(0,eM.Ch)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):(e.enter("mathTextData"),s(t))}function s(t){return null===t||32===t||36===t||(0,eM.Ch)(t)?(e.exit("mathTextData"),o(t)):(e.consume(t),s)}},resolve:eD,previous:ej,name:"mathText"})}}),i.push(function(){return{enter:{mathFlow:function(e){this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[{type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]}]}},e)},mathFlowFenceMeta:function(){this.buffer()},mathText:function(e){this.enter({type:"inlineMath",value:"",data:{hName:"
1code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},e),this.buffer()}},exit:{mathFlow:function(e){let t=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),n=this.stack[this.stack.length-1];(0,c.ok)("math"===n.type),this.exit(e),n.value=t;let r=n.data.hChildren[0];(0,c.ok)("element"===r.type),(0,c.ok)("code"===r.tagName),r.children.push({type:"text",value:t}),this.data.mathFlowInside=void 0},mathFlowFence:function(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)},mathFlowFenceMeta:function(){let e=this.resume(),t=this.stack[this.stack.length-1];(0,c.ok)("math"===t.type),t.meta=e},mathFlowValue:e,mathText:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];(0,c.ok)("inlineMath"===n.type),this.exit(e),n.value=t,n.data.hChildren.push({type:"text",value:t})},mathTextData:e}};function e(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}}()),a.push(function(e){let t=(e||{}).singleDollarTextMath;return null==t&&(t=!0),n.peek=function(){return"$"},{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:"\n",inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:function(e,t,n,r){let l=e.value||"",i=n.createTracker(r),a="$".repeat(Math.max((0,eE.J)(l,"$")+1,2)),o=n.enter("mathFlow"),s=i.move(a);if(e.meta){let t=n.enter("mathFlowMeta");s+=i.move(n.safe(e.meta,{after:"\n",before:s,encode:["$"],...i.current()})),t()}return s+=i.move("\n"),l&&(s+=i.move(l+"\n")),s+=i.move(a),o(),s},inlineMath:n}};function n(e,n,r){let l=e.value||"",i=1;for(!t&&i++;RegExp("(^|[^$])"+"\\$".repeat(i)+"([^$]|$)").test(l);)i++;let a="$".repeat(i);/[^ \r\n]/.test(l)&&(/^[ \r\n]/.test(l)&&/[ \r\n]$/.test(l)||/^\$|\$$/.test(l))&&(l=" "+l+" ");let o=-1;for(;++o<r.unsafe.length;){let e;let t=r.unsafe[o];if(!t.atBreak)continue;let n=r.compilePattern(t);for(;e=n.exec(l);){let t=e.index;10===l.codePointAt(t)&&13===l.codePointAt(t-1)&&t--,l=l.slice(0,t)+" "+l.slice(e.index+1)}}return a+l+a}}(n))}n(35711);var eG=n(97853),eF=n(50226),eU=n(57786);class eq extends Error{constructor(e){super(e),this.name="ShikiError"}}var eH=n(37658);function eW(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}var eV=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,eK=class{static hasCaptures(e){return null!==e&&(eV.lastIndex=0,eV.test(e))}static replaceCaptures(e,t,n){return e.replace(eV,(e,r,l,i)=>{let a=n[parseInt(r||l,10)];if(!a)return e;{let e=t.substring(a.start,a.end);for(;"."===e[0];)e=e.substring(1);switch(i){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}})}};function eX(e,t){if(null===e&&null===t)return 0;if(!e)return -1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let r=0;r<n;r++){var l,i;let n=(l=e[r])<(i=t[r])?-1:l>i?1:0;if(0!==n)return n}return 0}return n-r}function eZ(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function eQ(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var eY=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},eJ=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(function(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let e=0,l=t.length;e<l;e++){let l,i=t[e];if(!i.settings)continue;if("string"==typeof i.scope){let e=i.scope;l=(e=(e=e.replace(/^[,]+/,"")).replace(/[,]+$/,"")).split(",")}else l=Array.isArray(i.scope)?i.scope:[""];let a=-1;if("string"==typeof i.settings.fontStyle){a=0;let e=i.settings.fontStyle.split(" ");for(let t=0,n=e.length;t<n;t++)switch(e[t]){case"italic":a|=1;break;case"bold":a|=2;break;case"underline":a|=4;break;case"strikethrough":a|=8}}let o=null;"string"==typeof i.settings.foreground&&eZ(i.settings.foreground)&&(o=i.settings.foreground);let s=null;"string"==typeof i.settings.background&&eZ(i.settings.background)&&
1(s=i.settings.background);for(let t=0,i=l.length;t<i;t++){let i=l[t].trim().split(" "),u=i[i.length-1],c=null;i.length>1&&(c=i.slice(0,i.length-1)).reverse(),n[r++]=new e2(u,c,e,a,o,s)}}return n}(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort((e,t)=>{var n,r;let l=(n=e.scope)<(r=t.scope)?-1:n>r?1:0;return 0!==l||0!==(l=eX(e.parentScopes,t.parentScopes))?l:e.index-t.index});let n=0,r="#000000",l="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(n=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(l=t.background)}let i=new e8(t),a=new e1(n,i.getId(r),i.getId(l)),o=new e5(new e6(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];o.insert(0,n.scope,n.parentScopes,n.fontStyle,i.getId(n.foreground),i.getId(n.background))}return new eJ(i,a,o)}(e,t)}_cachedMatchRoot=new eY(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>(function(e,t){if(0===t.length)return!0;for(let l=0;l<t.length;l++){var n,r;let i=t[l],a=!1;if(">"===i){if(l===t.length-1)return!1;i=t[++l],a=!0}for(;e&&(n=e.scopeName,!((r=i)===n||n.startsWith(r)&&"."===n[r.length]));){if(a)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0})(e.parent,t.parentScopes));return n?new e1(n.fontStyle,n.foreground,n.background):null}},e0=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,n){for(let r of n)t=new e(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new e(n,t[r]);return n}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e||null!==this.parent&&this.parent.extends(e)}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}},e1=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}},e2=class{constructor(e,t,n,r,l,i){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=l,this.background=i}},e4=((i=e4||{})[i.NotSet=-1]="NotSet",i[i.None=0]="None",i[i.Italic=1]="Italic",i[i.Bold=2]="Bold",i[i.Underline=4]="Underline",i[i.Strikethrough=8]="Strikethrough",i),e8=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},e3=Object.freeze([]),e6=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,l){this.scopeDepth=e,this.parentScopes=t||e3,this.fontStyle=n,this.foreground=r,this.background=l}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==n&&(this.foreground=n),0!==r&&(this.background=r)}},e5=class e{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,r=0;for(;">"===e.parentScopes[n]&&n++,">"===t.parentScopes[r]&&r++,!(n>=e.parentScopes.length)&&!(r>=t.parentScopes.length);){let l=t.parentScopes[r].length-e.parentScopes[n].length;if(0!==l)return l;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(""!==t){let e,n,r=t.indexOf(".");if(-1===r?(e=t,n=""):(e=t.substring(0,r),n=t.substring(r+1)),this._children.hasOwnProperty(e))return this._children[e].match(n)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,l,i,a){let o,s,u;if(""===n){this._doInsertHere(t,r,l,i,a);return}let c=n.indexOf(".");-1===c?(o=n,s=""):(o=n.substring(0,c),s=n.substring(c+1)),this._children.hasOwnProperty(o)?u=this._children[o]:(u=new e(this._mainRule.clone(),e6.cloneArr(this._rulesWithParentScopes)),this._children[o]=u),u.insert(t+1,s,r,l,i,a)}_doInsertHere(e,t,n,r,l){if(null===t){this._mainRule.acceptOverwrite(e,n,r,l);return}for(let i=0,a=this._rulesWithParentScopes.length;i<a;i++){let a=this._rulesWithParentScopes[i];if(0===eX(a.parentScopes,t)){a.acceptOverwrite(e,n,r,l);return}}-1===n&&(n=this._mainRule.fontStyle),0===r&&(r=this._mainRule.foreground),0===l&&(l=this._mainRule.background),this._rulesWithParentScopes.push(new e6(e,t,n,r,l))}},e9=class e{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}
1static print(t){let n=e.getLanguageId(t),r=e.getTokenType(t);console.log({languageId:n,tokenType:r,fontStyle:e.getFontStyle(t),foreground:e.getForeground(t),background:e.getBackground(t)})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return(1024&e)!=0}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(16744448&e)>>>15}static getBackground(e){return(4278190080&e)>>>24}static set(t,n,r,l,i,a,o){let s=e.getLanguageId(t),u=e.getTokenType(t),c=e.containsBalancedBrackets(t)?1:0,d=e.getFontStyle(t),h=e.getForeground(t),p=e.getBackground(t);return 0!==n&&(s=n),8!==r&&(u=r),null!==l&&(c=l?1:0),-1!==i&&(d=i),0!==a&&(h=a),0!==o&&(p=o),(s<<0|u<<8|c<<10|d<<11|h<<15|p<<24)>>>0}};function e7(e,t){let n,r;let l=[],i=(r=(n=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g).exec(e),{next:()=>{if(!r)return null;let t=r[0];return r=n.exec(e),t}}),a=i.next();for(;null!==a;){let e=0;if(2===a.length&&":"===a.charAt(1)){switch(a.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${a} in scope selector`)}a=i.next()}let t=s();if(l.push({matcher:t,priority:e}),","!==a)break;a=i.next()}return l;function o(){if("-"===a){a=i.next();let e=o();return t=>!!e&&!e(t)}if("("===a){a=i.next();let e=function(){let e=[],t=s();for(;t&&(e.push(t),"|"===a||","===a);){do a=i.next();while("|"===a||","===a);t=s()}return t=>e.some(e=>e(t))}();return")"===a&&(a=i.next()),e}if(te(a)){let e=[];do e.push(a),a=i.next();while(te(a));return n=>t(e,n)}return null}function s(){let e=[],t=o();for(;t;)e.push(t),t=o();return t=>e.every(e=>e(t))}}function te(e){return!!e&&!!e.match(/[\w\.:]+/)}var tt=((a=tt||{})[a.None=0]="None",a[a.NotBeginString=1]="NotBeginString",a[a.NotEndString=2]="NotEndString",a[a.NotBeginPosition=4]="NotBeginPosition",a[a.DebugCall=8]="DebugCall",a);function tn(e){"function"==typeof e.dispose&&e.dispose()}var tr=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},tl=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},ti=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},ta=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new tr(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new ti;for(let n of e)!function(e,t,n,r){let l=n.lookup(e.scopeName);if(!l){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let i=n.lookup(t);e instanceof tr?ts({baseGrammar:i,selfGrammar:l},r):to(e.ruleName,{baseGrammar:i,selfGrammar:l,repository:l.repository},r);let a=n.injections(e.scopeName);if(a)for(let e of a)r.add(new tr(e))}(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof tr){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function to(e,t,n){t.repository&&t.repository[e]&&tu([t.repository[e]],t,n)}function ts(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&tu(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&tu(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function tu(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?eW({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&tu(r.patterns,{...t,repository:e},n);
1let l=r.include;if(!l)continue;let i=tg(l);switch(i.kind){case 0:ts({...t,selfGrammar:t.baseGrammar},n);break;case 1:ts(t,n);break;case 2:to(i.ruleName,{...t,repository:e},n);break;case 3:case 4:let a=i.scopeName===t.selfGrammar.scopeName?t.selfGrammar:i.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(a){let r={baseGrammar:t.baseGrammar,selfGrammar:a,repository:e};4===i.kind?to(i.ruleName,r,n):ts(r,n)}else 4===i.kind?n.add(new tl(i.scopeName,i.ruleName)):n.add(new tr(i.scopeName))}}}var tc=class{kind=0},td=class{kind=1},th=class{constructor(e){this.ruleName=e}kind=2},tp=class{constructor(e){this.scopeName=e}kind=3},tm=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function tg(e){if("$base"===e)return new tc;if("$self"===e)return new td;let t=e.indexOf("#");return -1===t?new tp(e):0===t?new th(e.substring(1)):new tm(e.substring(0,t),e.substring(t+1))}var tf=/\\(\d+)/,tb=/\\(\d+)/g;Symbol("RuleId");var ty=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=eK.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=eK.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${function e(t){let n=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===n?t:~n==t.length-1?e(t.substring(0,t.length-1)):t.substr(~n+1)}(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?eK.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?eK.replaceCaptures(this._contentName,e,t):this._contentName}},tk=class extends ty{retokenizeCapturedWithRuleId;constructor(e,t,n,r,l){super(e,t,n,r),this.retokenizeCapturedWithRuleId=l}dispose(){}collectPatterns(e,t){throw Error("Not supported!")}compile(e,t){throw Error("Not supported!")}compileAG(e,t,n,r){throw Error("Not supported!")}},tx=class extends ty{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,l){super(e,t,n,null),this._match=new tC(r,this.id),this.captures=l,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new tP,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},tw=class extends ty{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,l){super(e,t,n,r),this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new tP,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},tv=class extends ty{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,l,i,a,o,s,u){super(e,t,n,r),this._begin=new tC(l,this.id),this.beginCaptures=i,this._end=new tC(a||"ï¿¿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=o,this.applyEndPatternLast=s||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){for(let t of(this._cachedCompiledPatterns=new tP,this.patterns))e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},tS=class extends ty{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,l,i,a,o,s){super(e,t,n,r),this._begin=new tC(l,this.id),this.beginCaptures=i,this.whileCaptures=o,this._while=ne
1w tC(a,-2),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns)for(let t of(this._cachedCompiledPatterns=new tP,this.patterns))e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new tP,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"ï¿¿"),this._cachedCompiledWhilePatterns}
1},t_=class e{static createCaptureRule(e,t,n,r,l){return e.registerRule(e=>new tk(t,e,n,r,l))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(l=>{if(t.id=l,t.match)return new tx(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(void 0===t.begin){t.repository&&(r=eW({},r,t.repository));let l=t.patterns;return void 0===l&&t.include&&(l=[{include:t.include}]),new tw(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(l,n,r))}return t.while?new tS(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,r),e._compilePatterns(t.patterns,n,r)):new tv(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let l=[];if(t){let i=0;for(let e in t){if("$vscodeTextmateLocation"===e)continue;let t=parseInt(e,10);t>i&&(i=t)}for(let e=0;e<=i;e++)l[e]=null;for(let i in t){if("$vscodeTextmateLocation"===i)continue;let a=parseInt(i,10),o=0;t[i].patterns&&(o=e.getCompiledRuleId(t[i],n,r)),l[a]=e.createCaptureRule(n,t[i].$vscodeTextmateLocation,t[i].name,t[i].contentName,o)}}return l}static _compilePatterns(t,n,r){let l=[];if(t)for(let i=0,a=t.length;i<a;i++){let a=t[i],o=-1;if(a.include){let t=tg(a.include);switch(t.kind){case 0:case 1:o=e.getCompiledRuleId(r[a.include],n,r);break;case 2:let l=r[t.ruleName];l&&(o=e.getCompiledRuleId(l,n,r));break;case 3:case 4:let i=t.scopeName,s=4===t.kind?t.ruleName:null,u=n.getExternalGrammar(i,r);if(u){if(s){let t=u.repository[s];t&&(o=e.getCompiledRuleId(t,n,u.repository))}else o=e.getCompiledRuleId(u.repository.$self,n,u.repository)}}}else o=e.getCompiledRuleId(a,n,r);if(-1!==o){let e=n.getRule(o),t=!1;if((e instanceof tw||e instanceof tv||e instanceof tS)&&e.hasMissingPatterns&&0===e.patterns.length&&(t=!0),t)continue;l.push(o)}}return{patterns:l,hasMissingPatterns:(t?t.length:0)!==l.length}}},tC=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&"string"==typeof e){let t=e.length,n=0,r=[],l=!1;for(let i=0;i<t;i++)if("\\"===e.charAt(i)&&i+1<t){let t=e.charAt(i+1);"z"===t?(r.push(e.substring(n,i)),r.push("$(?!\\n)(?<!\\n)"),n=i+2):("A"===t||"G"===t)&&(l=!0),i++}this.hasAnchor=l,0===n?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,"string"==typeof this.source?this.hasBackReferences=tf.test(this.source):this.hasBackReferences=!1}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let n=t.map(t=>e.substring(t.start,t.end));return tb.lastIndex=0,this.source.replace(tb,(e,t)=>eQ(n[parseInt(t,10)]||""))}_buildAnchorCache(){let e,t,n,r;if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let l=[],i=[],a=[],o=[];for(e=0,t=this.source.length;e<t;e++)n=this.source.charAt(e),l[e]=n,i[e]=n,a[e]=n,o[e]=n,"\\"===n&&e+1<t&&("A"===(r=this.source.charAt(e+1))?(l[e+1]="ï¿¿",i[e+1]="ï¿¿",a[e+1]="A",o[e+1]="A"):"G"===r?(l[e+1]="ï¿¿",i[e+1]="G",a[e+1]="ï¿¿",o[e+1]="G"):(l[e+1]=r,i[e+1]=r,a[e+1]=r,o[e+1]=r),e++);return{A0_G0:l.join(""),A0_G1:i.join(""),A1_G0:a.join(""),A1_G1:o.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache&&"string"==typeof this.source?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}},tP=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}
1push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(e=>e.source);this._cached=new tN(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){return new tN(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},tN=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,n){let r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},tT=class{constructor(e,t){this.languageId=e,this.tokenType=t}},tA=class e{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new tT(e,8),this._embeddedLanguagesMatcher=new tL(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return null===t?e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new tT(0,0);_getBasicScopeAttributes=new eY(e=>new tT(this._scopeToLanguage(e),this._toStandardTokenType(e)));_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(t){let n=t.match(e.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},tL=class{values;scopesRegExp;constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);let t=e.map(([e,t])=>eQ(e));t.sort(),t.reverse(),this.scopesRegExp=RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}};void 0!==eH&&eH.env.VSCODE_TEXTMATE_DEBUG;var tR=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function tE(e,t,n,r,l,i,a,o){let s=t.content.length,u=!1,c=-1;if(a){let a=function(e,t,n,r,l,i){let a=l.beginRuleCapturedEOL?0:-1,o=[];for(let t=l;t;t=t.pop()){let n=t.getRule(e);n instanceof tS&&o.push({rule:n,stack:t})}for(let h=o.pop();h;h=o.pop()){var s,u,c,d;let{ruleScanner:o,findOptions:p}=(s=h.rule,u=h.stack.endRule,c=n,d=r===a,{ruleScanner:s.compileWhileAG(e,u,c,d),findOptions:0}),m=o.findNextMatchSync(t,r,p);if(m){if(-2!==m.ruleId){l=h.stack.pop();break}m.captureIndices&&m.captureIndices.length&&(i.produce(h.stack,m.captureIndices[0].start),tM(e,t,n,h.stack,i,h.rule.whileCaptures,m.captureIndices),i.produce(h.stack,m.captureIndices[0].end),a=m.captureIndices[0].end,m.captureIndices[0].end>r&&(r=m.captureIndices[0].end,n=!1))}else{l=h.stack.pop();break}}return{stack:l,linePos:r,anchorPosition:a,isFirstLine:n}}(e,t,n,r,l,i);l=a.stack,r=a.linePos,n=a.isFirstLine,c=a.anchorPosition}let d=Date.now();for(;!u;){if(0!==o&&Date.now()-d>o)return new tR(l,!0);!function(){let a=function(e,t,n,r,l,i){let a=function(e,t,n,r,l,i){let{ruleScanner:a,findOptions:o}=tO(l.getRule(e),e,l.endRule,n,r===i),s=a.findNextMatchSync(t,r,o);return s?{captureIndices:s.captureIndices,matchedRuleId:s.ruleId}:null}(e,t,n,r,l,i),o=e.getInjections();if(0===o.length)return a;let s=function(e,t,n,r,l,i,a){let o,s=Number.MAX_VALUE,u=null,c=0,d=i.contentNameScopesList.getScopeNames();for(let i=0,h=e.length;i<h;i++){let h=e[i];if(!h.matcher(d))continue;let{ruleScanner:p,findOptions:m}=tO(t.getRule(h.ruleId),t,null,r,l===a),g=p.findNextMatchSync(n,l,m);if(!g)continue;let f=g.captureIndices[0].start;if(!(f>=s)&&(s=f,u=g.captureIndices,o=g.ruleId,c=h.priority,s===l))break}return u?{priorityMatch:-1===c,captureIndices:u,matchedRuleId:o}:null}(o,e,t,n,r,l,i);if(!s)return a;
1if(!a)return s;let u=a.captureIndices[0].start,c=s.captureIndices[0].start;return c<u||s.priorityMatch&&c===u?s:a}(e,t,n,r,l,c);if(!a){i.produce(l,s),u=!0;return}let o=a.captureIndices,d=a.matchedRuleId,h=!!o&&o.length>0&&o[0].end>r;if(-1===d){let a=l.getRule(e);i.produce(l,o[0].start),l=l.withContentNameScopesList(l.nameScopesList),tM(e,t,n,l,i,a.endCaptures,o),i.produce(l,o[0].end);let d=l;if(l=l.parent,c=d.getAnchorPos(),!h&&d.getEnterPos()===r){l=d,i.produce(l,s),u=!0;return}}else{let a=e.getRule(d);i.produce(l,o[0].start);let p=l,m=a.getName(t.content,o),g=l.contentNameScopesList.pushAttributed(m,e);if(l=l.push(d,r,c,o[0].end===s,null,g,g),a instanceof tv){tM(e,t,n,l,i,a.beginCaptures,o),i.produce(l,o[0].end),c=o[0].end;let r=a.getContentName(t.content,o),d=g.pushAttributed(r,e);if(l=l.withContentNameScopesList(d),a.endHasBackReferences&&(l=l.withEndRule(a.getEndWithResolvedBackReferences(t.content,o))),!h&&p.hasSameRuleAs(l)){l=l.pop(),i.produce(l,s),u=!0;return}}else if(a instanceof tS){tM(e,t,n,l,i,a.beginCaptures,o),i.produce(l,o[0].end),c=o[0].end;let r=a.getContentName(t.content,o),d=g.pushAttributed(r,e);if(l=l.withContentNameScopesList(d),a.whileHasBackReferences&&(l=l.withEndRule(a.getWhileWithResolvedBackReferences(t.content,o))),!h&&p.hasSameRuleAs(l)){l=l.pop(),i.produce(l,s),u=!0;return}}else if(tM(e,t,n,l,i,a.captures,o),i.produce(l,o[0].end),l=l.pop(),!h){l=l.safePop(),i.produce(l,s),u=!0;return}}o[0].end>r&&(r=o[0].end,n=!1)}()}return new tR(l,!1)}function tO(e,t,n,r,l){return{ruleScanner:e.compileAG(t,n,r,l),findOptions:0}}function tM(e,t,n,r,l,i,a){if(0===i.length)return;let o=t.content,s=Math.min(i.length,a.length),u=[],c=a[0].end;for(let t=0;t<s;t++){let s=i[t];if(null===s)continue;let d=a[t];if(0===d.length)continue;if(d.start>c)break;for(;u.length>0&&u[u.length-1].endPos<=d.start;)l.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop();if(u.length>0?l.produceFromScopes(u[u.length-1].scopes,d.start):l.produce(r,d.start),s.retokenizeCapturedWithRuleId){let t=s.getName(o,a),i=r.contentNameScopesList.pushAttributed(t,e),u=s.getContentName(o,a),c=i.pushAttributed(u,e),h=r.push(s.retokenizeCapturedWithRuleId,d.start,-1,!1,null,i,c),p=e.createOnigString(o.substring(0,d.end));tE(e,p,n&&0===d.start,d.start,h,l,!1,0),tn(p);continue}let h=s.getName(o,a);if(null!==h){let t=(u.length>0?u[u.length-1].scopes:r.contentNameScopesList).pushAttributed(h,e);u.push(new tI(t,d.end))}}for(;u.length>0;)l.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var tI=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function t$(e,t,n,r,l){let i=e7(t,tD),a=t_.getCompiledRuleId(n,r,l.repository);for(let n of i)e.push({debugSelector:t,matcher:n.matcher,ruleId:a,grammar:l,priority:n.priority})}function tD(e,t){if(t.length<e.length)return!1;let n=0;return e.every(e=>{for(let r=n;r<t.length;r++)if(function(e,t){if(!e)return!1;if(e===t)return!0;let n=t.length;return e.length>n&&e.substr(0,n)===t&&"."===e[n]}(t[r],e))return n=r+1,!0;return!1})}var tj=class{constructor(e,t,n,r,l,i,a,o){if(this._rootScopeName=e,this.balancedBracketSelectors=i,this._onigLib=o,this._basicScopeAttributesProvider=new tA(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=a,this._grammar=tz(t,null),this._injections=null,this._tokenTypeMatchers=[],l)for(let e of Object.keys(l))for(let t of e7(e,tD))this._tokenTypeMatchers.push({matcher:t.matcher,type:l[e]})}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e=[],t=this._rootScopeName,n=({lookup:e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),injections:e=>this._grammarRepository.injections(e)}).lookup(t);
1if(n){let r=n.injections;if(r)for(let t in r)t$(e,t,r[t],this,n);let l=this._grammarRepository.injections(t);l&&l.forEach(t=>{let n=this.getExternalGrammar(t);if(n){let t=n.injectionSelector;t&&t$(e,t,n,this,n)}})}return e.sort((e,t)=>e.priority-t.priority),e}getInjections(){return null===this._injections&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=tz(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){let r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){let r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){let l;if(-1===this._rootId&&(this._rootId=t_.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),t&&t!==tG.NULL)l=!1,t.reset();else{let e;l=!0;let n=this._basicScopeAttributesProvider.getDefaultAttributes(),r=this.themeProvider.getDefaults(),i=e9.set(0,n.languageId,n.tokenType,null,r.fontStyle,r.foregroundId,r.backgroundId),a=this.getRule(this._rootId).getName(null,null);e=a?tB.createRootAndLookUpScopeName(a,i,this):tB.createRoot("unknown",i),t=new tG(null,this._rootId,-1,-1,!1,null,e,e)}e+="\n";let i=this.createOnigString(e),a=i.content.length,o=new tU(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),s=tE(this,i,l,0,t,o,!0,r);return tn(i),{lineLength:a,lineTokens:o,ruleStack:s.stack,stoppedEarly:s.stoppedEarly}}};function tz(e,t){return(e=function e(t){return Array.isArray(t)?function(t){let n=[];for(let r=0,l=t.length;r<l;r++)n[r]=e(t[r]);return n}(t):t instanceof RegExp?t:"object"==typeof t?function(t){let n={};for(let r in t)n[r]=e(t[r]);return n}(t):t}(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var tB=class e{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static fromExtension(t,n){let r=t,l=t?.scopePath??null;for(let t of n)r=new e(r,l=e0.push(l,t.scopeNames),t.encodedTokenAttributes);return r}static createRoot(t,n){return new e(null,new e0(null,t),n)}static createRootAndLookUpScopeName(t,n,r){let l=r.getMetadataForScope(t),i=new e0(null,t),a=r.themeProvider.themeMatch(i),o=e.mergeAttributes(n,l,a);return new e(null,i,o)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return e.equals(this,t)}static equals(e,t){for(;;){if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,n){let r=-1,l=0,i=0;return null!==n&&(r=n.fontStyle,l=n.foregroundId,i=n.backgroundId),e9.set(e,t.languageId,t.tokenType,null,r,l,i)}pushAttributed(t,n){if(null===t)return this;if(-1===t.indexOf(" "))return e._pushAttributed(this,t,n);let r=t.split(/ /g),l=this;for(let t of r)l=e._pushAttributed(l,t,n);return l}static _pushAttributed(t,n,r){let l=r.getMetadataForScope(n),i=t.scopePath.push(n),a=r.themeProvider.themeMatch(i),o=e.mergeAttributes(t.tokenAttributes,l,a);return new e(t,i,o)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===e?t.reverse():void 0}},tG=class e{constructor(e,t,n,r,l,i,a,o){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=l,this.endRule=i,this.nameScopesList=a,this.contentNameScopesList=o,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}_stackElementBrand=void 0;static NULL=new e(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return null!==t&&e._equals(this,t)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&tB.equals(e.contentNameScopesList,t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t||!e&&!t)return!0;
1if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){e._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,l,i,a,o){return new e(this,t,n,r,l,i,a,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){let r=tB.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new e(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,tB.fromExtension(r,n.contentNameScopesList))}},tF=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>"*"===e?(this.allowAny=!0,[]):e7(e,tD).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>e7(e,tD).map(e=>e.matcher))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},tU=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e?.tokenAttributes??0,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>
10||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let t=e?.getScopeNames()??[];for(let e of this._tokenTypeOverrides)e.matcher(t)&&(n=e9.set(n,0,e.type,null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(n=e9.set(n,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=t;return}let n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let n=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)n[e]=this._binaryTokens[e];return n}},tq=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,l){if(!this._grammars.has(e)){let i=this._rawGrammars.get(e);if(!i)return null;this._grammars.set(e,new tj(e,i,t,n,r,l,this,this._onigLib))}return this._grammars.get(e)}},tH=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new tq(eJ.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(eJ.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new tF(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,l){let i=new ta(this._syncRegistry,e);for(;i.Q.length>0;)i.Q.map(e=>this._loadSingleGrammar(e.scopeName)),i.processQueue();return this._grammarForScopeName(e,t,n,r,l)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let n="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e,t=[],n=0,r=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,r)}_grammarForScopeName(e,t=0,n=null,r=null,l=null){return this._syncRegistry.grammarForScopeName(e,t,n,r,l)}},tW=tG.NULL;let tV=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class tK{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function tX(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new tK(n,r,t)}function tZ(e){return e.toLowerCase()}tK.prototype.normal={},tK.prototype.property={},tK.prototype.space=void 0;class tQ{constructor(e,t){this.attribute=t,this.property=e}}tQ.prototype.attribute="",tQ.prototype.booleanish=!1,tQ.prototype.boolean=!1,tQ.prototype.commaOrSpaceSeparated=!1,tQ.prototype.commaSeparated=!1,tQ.prototype.defined=!1,tQ.prototype.mustUseProperty=!1,tQ.prototype.number=!1,tQ.prototype.overloadedBoolean=!1,tQ.prototype.property="",tQ.prototype.spaceSeparated=!1,tQ.prototype.space=void 0;
1let tY=0,tJ=t6(),t0=t6(),t1=t6(),t2=t6(),t4=t6(),t8=t6(),t3=t6();function t6(){return 2**++tY}let t5=Object.keys(s);class t9 extends tQ{constructor(e,t,n,r){var l,i;let a=-1;if(super(e,t),r&&(this.space=r),"number"==typeof n)for(;++a<t5.length;){let e=t5[a];l=t5[a],(i=(n&s[e])===s[e])&&(this[l]=i)}}}function t7(e){let t={},n={};for(let[r,l]of Object.entries(e.properties)){let i=new t9(r,e.transform(e.attributes||{},r),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[tZ(r)]=r,n[tZ(i.attribute)]=r}return new tK(t,n,e.space)}t9.prototype.defined=!0;let ne=t7({properties:{ariaActiveDescendant:null,ariaAtomic:t0,ariaAutoComplete:null,ariaBusy:t0,ariaChecked:t0,ariaColCount:t2,ariaColIndex:t2,ariaColSpan:t2,ariaControls:t4,ariaCurrent:null,ariaDescribedBy:t4,ariaDetails:null,ariaDisabled:t0,ariaDropEffect:t4,ariaErrorMessage:null,ariaExpanded:t0,ariaFlowTo:t4,ariaGrabbed:t0,ariaHasPopup:null,ariaHidden:t0,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:t4,ariaLevel:t2,ariaLive:null,ariaModal:t0,ariaMultiLine:t0,ariaMultiSelectable:t0,ariaOrientation:null,ariaOwns:t4,ariaPlaceholder:null,ariaPosInSet:t2,ariaPressed:t0,ariaReadOnly:t0,ariaRelevant:null,ariaRequired:t0,ariaRoleDescription:t4,ariaRowCount:t2,ariaRowIndex:t2,ariaRowSpan:t2,ariaSelected:t0,ariaSetSize:t2,ariaSort:null,ariaValueMax:t2,ariaValueMin:t2,ariaValueNow:t2,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function nt(e,t){return t in e?e[t]:t}function nn(e,t){return nt(e,t.toLowerCase())}let nr=t7({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:t8,acceptCharset:t4,accessKey:t4,action:null,allow:null,allowFullScreen:tJ,allowPaymentRequest:tJ,allowUserMedia:tJ,alt:null,as:null,async:tJ,autoCapitalize:null,autoComplete:t4,autoFocus:tJ,autoPlay:tJ,blocking:t4,capture:null,charSet:null,checked:tJ,cite:null,className:t4,cols:t2,colSpan:null,content:null,contentEditable:t0,controls:tJ,controlsList:t4,coords:t2|t8,crossOrigin:null,data:null,dateTime:null,decoding:null,default:tJ,defer:tJ,dir:null,dirName:null,disabled:tJ,download:t1,draggable:t0,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:tJ,formTarget:null,headers:t4,height:t2,hidden:t1,high:t2,href:null,hrefLang:null,htmlFor:t4,httpEquiv:t4,id:null,imageSizes:null,imageSrcSet:null,inert:tJ,inputMode:null,integrity:null,is:null,isMap:tJ,itemId:null,itemProp:t4,itemRef:t4,itemScope:tJ,itemType:t4,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:tJ,low:t2,manifest:null,max:null,maxLength:t2,media:null,method:null,min:null,minLength:t2,multiple:tJ,muted:tJ,name:null,nonce:null,noModule:tJ,noValidate:tJ,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:tJ,optimum:t2,pattern:null,ping:t4,placeholder:null,playsInl
1ine:tJ,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:tJ,referrerPolicy:null,rel:t4,required:tJ,reversed:tJ,rows:t2,rowSpan:t2,sandbox:t4,scope:null,scoped:tJ,seamless:tJ,selected:tJ,shadowRootClonable:tJ,shadowRootDelegatesFocus:tJ,shadowRootMode:null,shape:null,size:t2,sizes:null,slot:null,span:t2,spellCheck:t0,src:null,srcDoc:null,srcLang:null,srcSet:null,start:t2,step:null,style:null,tabIndex:t2,target:null,title:null,translate:null,type:null,typeMustMatch:tJ,useMap:null,value:t0,width:t2,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:t4,axis:null,background:null,bgColor:null,border:t2,borderColor:null,bottomMargin:t2,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:tJ,declare:tJ,event:null,face:null,frame:null,frameBorder:null,hSpace:t2,leftMargin:t2,link:null,longDesc:null,lowSrc:null,marginHeight:t2,marginWidth:t2,noResize:tJ,noHref:tJ,noShade:tJ,noWrap:tJ,object:null,profile:null,prompt:null,rev:null,rightMargin:t2,rules:null,scheme:null,scrolling:t0,standby:null,summary:null,text:null,topMargin:t2,valueType:null,version:null,vAlign:null,vLink:null,vSpace:t2,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:tJ,disableRemotePlayback:tJ,prefix:null,property:null,results:t2,security:null,unselectable:null},space:"html",transform:nn}),nl=t7({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav
1-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:t3,accentHeight:t2,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:t2,amplitude:t2,arabicForm:null,ascent:t2,attributeName:null,attributeType:null,azimuth:t2,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:t2,by:null,calcMode:null,capHeight:t2,className:t4,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:t2,diffuseConstant:t2,direction:null,display:null,dur:null,divisor:t2,dominantBaseline:null,download:tJ,dx:null,dy:null,edgeMode:null,editable:null,elevation:t2,enableBackground:null,end:null,event:null,exponent:t2,externalResourcesRequired:null,fill:null,fillOpacity:t2,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:t8,g2:t8,glyphName:t8,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:t2,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:t2,horizOriginX:t2,horizOriginY:t2,id:null,ideographic:t2,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:t2,k:t2,k1:t2,k2:t2,k3:t2,k4:t2,kernelMatrix:t3,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:t2,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:t2,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: 3,396 bytes, line 1
1Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:t2,overlineThickness:t2,paintOrder:null,panose1:null,path:null,pathLength:t2,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:t4,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:t2,pointsAtY:t2,pointsAtZ:t2,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:t3,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:t3,rev:t3,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:t3,requiredFeatures:t3,requiredFonts:t3,requiredFormats:t3,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:t2,specularExponent:t2,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:t2,strikethroughThickness:t2,string:null,stroke:null,strokeDashArray:t3,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:t2,strokeOpacity:t2,strokeWidth:null,style:null,surfaceScale:t2,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:t3,tabIndex:t2,tableValues:null,target:null,targetX:t2,targetY:t2,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:t3,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:t2,underlineThickness:t2,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:t2,values:null,vAlphabetic:t2,vMathematical:t2,vectorEffect:null,vHanging:t2,vIdeographic:t2,version:null,vertAdvY:t2,vertOriginX:t2,vertOriginY:t2,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:t2,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:nt}),ni=t7({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),na=t7({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:nn}),no=t7({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),ns=tX([ne,nr,ni,na,no],"html"),nu=tX([ne,nl,ni,na,no],"svg"),nc={}.hasOwnProperty,nd=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","
1sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],nh={nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",fnof:"Æ",Alpha:"Î",Beta:"Î",Gamma:"Î",Delta:"Î",Epsilon:"Î",Zeta:"Î",Eta:"Î",Theta:"Î",Iota:"Î",Kappa:"Î",Lambda:"Î",Mu:"Î",Nu:"Î",Xi:"Î",Omicron:"Î",Pi:"Î ",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Î¥",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"Ï",rho:"Ï",sigmaf:"Ï",sigma:"Ï",tau:"Ï",upsilon:"Ï
",phi:"Ï",chi:"Ï",psi:"Ï",omega:"Ï",thetasym:"Ï",upsih:"Ï",piv:"Ï",bull:"â¢",hellip:"â¦",prime:"â²",Prime:"â³",oline:"â¾",frasl:"â",weierp:"â",image:"â",real:"â",trade:"â¢",alefsym:"âµ",larr:"â",uarr:"â",rarr:"â",darr:"â",harr:"â",crarr:"âµ",lArr:"â",uArr:"â",rArr:"â",dArr:"â",hArr:"â",forall:"â",part:"â",exist:"â",empty:"â
",nabla:"â",isin:"â",notin:"â",ni:"â",prod:"â",sum:"â",minus:"â",lowast:"â",radic:"â",prop:"â",infin:"â",ang:"â ",and:"â§",or:"â¨",cap:"â©",cup:"âª",int:"â«",there4:"â´",sim:"â¼",cong:"â
",asymp:"â",ne:"â ",equiv:"â¡",le:"â¤",ge:"â¥",sub:"â",sup:"â",nsub
1:"â",sube:"â",supe:"â",oplus:"â",otimes:"â",perp:"â¥",sdot:"â
",lceil:"â",rceil:"â",lfloor:"â",rfloor:"â",lang:"â©",rang:"âª",loz:"â",spades:"â ",clubs:"â£",hearts:"â¥",diams:"â¦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Å",oelig:"Å",Scaron:"Å ",scaron:"Å¡",Yuml:"Ÿ",circ:"Ë",tilde:"Ë",ensp:"â",emsp:"â",thinsp:"â",zwnj:"â",zwj:"â",lrm:"â",rlm:"â",ndash:"â",mdash:"â",lsquo:"â",rsquo:"â",sbquo:"â",ldquo:"â",rdquo:"â",bdquo:"â",dagger:"â ",Dagger:"â¡",permil:"â°",lsaquo:"â¹",rsaquo:"âº",euro:"â¬"},np=["cent","copy","divide","gt","lt","not","para","times"],nm={}.hasOwnProperty,ng={};for(r in nh)nm.call(nh,r)&&(ng[nh[r]]=r);function nf(e,t,n){let r,l=function(e,t,n){let r="&#x"+e.toString(16).toUpperCase();return n&&t&&!/[\dA-Fa-f]/.test(String.fromCharCode(t))?r:r+";"}(e,t,n.omitOptionalSemicolons);if((n.useNamedReferences||n.useShortestReferences)&&(r=function(e,t,n,r){let l=String.fromCharCode(e);if(nm.call(ng,l)){let e=ng[l],i="&"+e;return n&&nd.includes(e)&&!np.includes(e)&&(!r||t&&61!==t&&/[^\da-z]/i.test(String.fromCharCode(t)))?i:i+";"}return""}(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!r)&&n.useShortestReferences){let r=function(e,t,n){let r="&#"+String(e);return n&&t&&!/\d/.test(String.fromCharCode(t))?r:r+";"}(e,t,n.omitOptionalSemicolons);r.length<l.length&&(l=r)}return r&&(!n.useShortestReferences||r.length<l.length)?r:l}function nb(e,t){return function(e,t){if(e=e.replace(t.subset?function(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"));return RegExp("(?:"+t.join("|")+")","g")}(t.subset):/["&'<>`]/g,n),t.subset||t.escapeOnly)return e;return e.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,function(e,n,r){return t.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)}).replace(/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,n);function n(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}(e,Object.assign({format:nf},t))}let ny=/^>|^->|<!--|-->|--!>|<!-$/g,nk=[">"],nx=["<",">"];var nw=n(15210);let nv=/[A-Z]/g,nS=/-[a-z]/g,n_=/^data[-\w.:]+$/i;function nC(e){return"-"+e.toLowerCase()}function nP(e){return e.charAt(1).toUpperCase()}var nN=n(12954);let nT=nR(1),nA=nR(-1),nL=[];function nR(e){return function(t,n,r){let l=t?t.children:nL,i=(n||0)+e,a=l[i];if(!r)for(;a&&(0,nN.Q)(a);)i+=e,a=l[i];return a}}let nE={}.hasOwnProperty;function nO(e){return function(t,n,r){return nE.call(e,t.tagName)&&e[t.tagName](t,n,r)}}let nM=nO({body:function(e,t,n){let r=nT(n,t);return!r||"comment"!==r.type},caption:nI,colgroup:nI,dd:function(e,t,n){let r=nT(n,t);return!r||"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName)},dt:function(e,t,n){let r=nT(n,t);return!!(r&&"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName))},head:nI,html:function(e,t,n){let r=nT(n,t);return!r||"comment"!==r.type},li:function(e,t,n){let r=nT(n,t);return!r||"element"===r.type&&"li"===r.tagName},optgroup:function(e,t,n){let r=nT(n,t);return!r||"element"===r.type&&"optgroup"===r.tagName},option:function(e,t,n){let r=nT(n,t);return!r||"element"===r.type&&("option"===r.tagName||"optgroup"===r.tagName)},p:function(e,t,n){let r=nT(n,t);return r?"element"===r.type&&("address"===r.tagName||"article"===r.tagName||"aside"===r.tagName||"blockquote"===r.tagName||"details"===r.tagName||"div"===r.tagName||"dl"===r.tagName||"fieldset"===r.tagName||"figcaption"===r.tagName||"figure"===r.tagName||"footer"===r.tagName||"form"===r.tagName||"h1"===r.tagName||"h2"===r.tagName||"h3"===r.tagName||"h4"===r.tagName||"h5"===r.tagName||"h6"===r.tagName||"header"===r.tagName||"hgroup"===r.tagName||"hr"===r.tagName||"main"===r.tagName||"menu"===r.tagName||"nav"===r.tagName||"ol"===r.tagName||"p"===r.tagName||"pre"===r.tagName||"section"===r.tagName||"table"===r.tagName||"ul"===r.tagName):!n||!("element"===n.type&&("a"===n.tagName||"audio"===n.tagName||"del"===n.tagName||"ins"===n.tagName||"map"===n.tagName||"noscript"===n.tagName||"video"===n.tagName))},rp:n$,rt:n$,tbody:function(e,t,n){let r=nT(n,t);return!r||"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName)},td:nD,tfoot:function(e,t,n){return!nT(n,t)},th:nD,thead:function(e,t,n){let r=nT(n,t);return!!(r&&"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName))},tr:function(e,t,n){let r=nT(n,t);return!r||"element"===r.type&&"tr"===r.tagName}});function nI(e,t,n){let r=nT(n,t,!0);return!r||"comment"!==r.type&&!("text"===r.type&&(0,nN.Q)(r.value.charAt(0)))}function n$(e,t,n){let r=nT(n,t);return!r||"element"===r.type&&("rp"===r.tagName||"rt"===r.tagName)}function nD(e,t,n){let r=nT(n,t);return!r||"element"===r.type&&("td"===r.tagName||"th"===r.tagName)}let nj=nO({body:function(e){let t=nT(e,-1,!0);return!t||"comment"!==t.type&&!("text"===t.type&&(0,nN.Q)(t.value.charAt(0)))&&!("element"===t.type&&("meta"===t.tagName||"link"===t.tagName||"script"===t.tagName||"style"===t.tagName||"template"===t.tagName))},colgroup:function(e,t,n){let r=nA(n,t),l=nT(e,-1,!0);return!(n&&r&&"element"===r.type&&"colgroup"===r.tagName&&nM(r,n.children.indexOf(r),n))&&!!(l&&"element"===l.type&&"col"===l.tagName)},head:function(e){let t=new Set;for(let n of e.children)if("element"===n.type&&("base"===n.tagName||"title"===n.tagName)){if(t.has(n.tagName))return!1;t.add(n.tagName)}let n=e.children[0];return!n||"element"===n.type},html:function(e){let t=nT(e,-1);return!t||"comment"!==t.type},tbody:function(e,t,n){let r=nA(n,t),l=nT(e,-1);return!(n&&r&&"element"===r.type&&("thead"===r.tagName||"tbody"===r.tagName)&&nM(r,n.children.indexOf(r),n))&&!!(l&&"element"===l.type&&"tr"===l.tagName)}}),nz={name:[[" \n\f\r &/=>".split("")," \n\f\r \"&'/=>
1`".split("")],["\0 \n\f\r \"&'/<=>".split(""),"\0 \n\f\r \"&'/<=>`".split("")]],unquoted:[[" \n\f\r &>".split(""),"\0 \n\f\r \"&'<=>`".split("")],["\0 \n\f\r \"&'<=>`".split(""),"\0 \n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]},nB=["<","&"];function nG(e,t,n,r){return n&&"element"===n.type&&("script"===n.tagName||"style"===n.tagName)?e.value:nb(e.value,Object.assign({},r.settings.characterReferences,{subset:nB}))}let nF=function(e,t){let n=t||{};function r(t,...n){let l=r.invalid,i=r.handlers;if(t&&nc.call(t,e)){let n=String(t[e]);l=nc.call(i,n)?i[n]:r.unknown}if(l)return l.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}("type",{invalid:function(e){throw Error("Expected node, not `"+e+"`")},unknown:function(e){throw Error("Cannot compile unknown node `"+e.type+"`")},handlers:{comment:function(e,t,n,r){return r.settings.bogusComments?"<?"+nb(e.value,Object.assign({},r.settings.characterReferences,{subset:nk}))+">":"<!--"+e.value.replace(ny,function(e){return nb(e,Object.assign({},r.settings.characterReferences,{subset:nx}))})+"-->"},doctype:function(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"},element:function(e,t,n,r){let l;let i=r.schema,a="svg"!==i.space&&r.settings.omitOptionalTags,o="svg"===i.space?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase()),s=[];"html"===i.space&&"svg"===e.tagName&&(r.schema=nu);let u=function(e,t){let n;let r=[],l=-1;if(t){for(n in t)if(null!==t[n]&&void 0!==t[n]){let l=function(e,t,n){let r;let l=function(e,t){let n=tZ(t),r=t,l=tQ;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&n_.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(nS,nP);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!nS.test(e)){let n=e.replace(nv,nC);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}l=t9}return new l(r,t)}(e.schema,t),i=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,a=e.settings.allowDangerousCharacters?0:1,o=e.quote;if(l.overloadedBoolean&&(n===l.attribute||""===n)?n=!0:(l.boolean||l.overloadedBoolean)&&("string"!=typeof n||n===l.attribute||""===n)&&(n=!!n),null==n||!1===n||"number"==typeof n&&Number.isNaN(n))return"";let s=nb(l.attribute,Object.assign({},e.settings.characterReferences,{subset:nz.name[i][a]}));return!0===n?s:(n=Array.isArray(n)?(l.commaSeparated?function(e,t){let n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}:function(e){return e.join(" ").trim()})(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?s:(e.settings.preferUnquoted&&(r=nb(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:nz.unquoted[i][a]}))),r!==n&&(e.settings.quoteSmart&&(0,nw.w)(n,o)>(0,nw.w)(n,e.alternative)&&(o=e.alternative),r=o+nb(n,Object.assign({},e.settings.characterReferences,{subset:("'"===o?nz.single:nz.double)[i][a],attribute:!0}))+o),s+(r?"="+r:r))}(e,n,t[n]);l&&r.push(l)}}for(;++l<r.length;){let t=e.settings.tightAttributes?r[l].charAt(r[l].length-1):void 0;l!==r.length-1&&'"'!==t&&"'"!==t&&(r[l]+=" ")}return r.join("")}(r,e.properties),c=r.all("html"===i.space&&"template"===e.tagName?e.content:e);return r.schema=i,c&&(o=!1),!u&&a&&nj(e,t,n)||(s.push("<",e.tagName,u?" "+u:""),o&&("svg"===i.space||r.settings.closeSelfClosing)&&(l=u.charAt(u.length-1),(!r.settings.tightSelfClosing||"/"===l||l&&'"'!==l&&"'"!==l)&&s.push(" "),s.push("/")),s.push(">")),s.push(c),o||a&&nM(e,t,n)||s.push("</"+e.tagName+">"),s.join("")},raw:function(e,t,n,r){return r.settings.allowDangerousHtml?e.value:nG(e,t,n,r)},root:function(e,t,n,r){return r.all(e)},text:nG}}),nU={},nq={},nH=[];function nW(e,t,n){return nF(e,t,n,this)}function nV(e){let t=[],n=e&&e.children||nH,r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function nK(e,t){let n="string"==typeof e?{}:{...e.colorReplacements},r="string"==typeof e?e:e.name;for(let[e,l]of Object.entries(t?.colorReplacements||{}))"string"==typeof l?n[e]=l:e===r&&Object.assign(n,l);return n}function nX(e,t){return e&&t?.[e?.toLowerCase()]||e}async function nZ(e){return Promise.resolve("function"==typeof e?e():e).then(e=>e.default||e)}function nQ(e){return!e||["plaintext","txt","text","plain"].includes(e)}function nY(e){return"ansi"===e||nQ(e)}function nJ(e){return"none"===e}function n0(e,t){if(!t)return e;for(let n of(e.properties||={},e.properties.class||=[],"string"==typeof e.properties.class&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]),Array.isArray(t)?t:t.split(/\s+/g)))n&&!e.properties.class.includes(n)&&e.properties.class.push(n);return e}function n1(e,t=!1){let n=e.split(/(\r?\n)/g),r=0,l=[];for(let e=0;e<n.length;e+=2){let i=t?n[e]+(n[e+1]||""):n[e];l.push([i,r]),r+=n[e].length+(n[e+1]?.length||0)}return l}let n2="light-dark()",n4=["color","background-color"];function n8(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&e4.Italic&&(t["font-style"]="italic"),e.fontStyle&e4.Bold&&(t["font-weight"]="bold");let n=[];e.fontStyle&e4.Underline&&n.push("underline"),e.fontStyle&e4.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function n3(e){return"string"==typeof e?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(";")}let n6=new WeakMap;function n5(e,t){n6.set(e,t)}function n9(e){return n6.get(e)}class n7{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(e,t){return new n7(Object.fromEntries((Array.isArray(t)?t:[t]).map(e=>[e,tW])),e)}constructor(...e){if(2===e.length){let[t,n]=e;this.lang=n,this._stacks=t}else{let[t,n,r]=e;this.lang=n,this._stacks={[r]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return function(e){let t=[],n=new Set;return!function e(r){if(n.has(r))return;n.add(r);let l=r?.nameScopesList?.scopeName;l&&t.push(l),r.parent&&e(r.parent)}(e),t}(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}let re=[function(){let e=new WeakMap;function t(t){if(!e.has(t.meta)){let n=function(e){if("number"==typeof e){if(e<0||e>t.source.length)throw new eq(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);return{...r.indexToPos(e),offset:e}}{let t=r.lines[e.line];if(void 0===t)throw new eq(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${r.lines.length}`);let n=e.character;if(n<0&&(n=t.length+n),n<0||n>t.length)throw new eq(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,character:n,offset:r.posToIndex(e.line,n)}}},r=function(e){let t=n1(e,!0).map(([e])=>e);return{lines:t,indexToPos:function(n){if(n===e.length)return{line:t.length-1,character:t[t.length-1].length};let r=n,l=0;for(let e of t){if(r<e.length)break;r-=e.length,l++}return{line:l,character:r}},posToIndex:function(e,n){let r=0;for(let n=0;n<e;n++)r+=t[n].length;return r+n}}}(t.source),l=(t.options.decorations||[]).map(e=>({...e,start:n(e.start),end:n(e.end)}));(function(e){for(let t=0;t<e.length;t++){let n=e[t];if(n.start.offset>n.end.offset)throw new eq(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){let t=e[r],l=n.start.offset<=t.start.offset&&t.start.offset<n.end.offset,i=n.start.offset<t.end.offset&&t.end.offset<=n.end.offset,a=t.start.offset<=n.start.offset&&n.start.offset<t.end.offset,o=t.start.offset<n.end.offset&&n.end.offset<=t.end.offset;if(l||i||a||o){if(l&&i||a&&o||a&&n.start.offset===n.end.offset||i&&t.start.offset===t.end.offset)continue;throw new eq(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(t.start)} intersect.`)}}}})(l),e.set(t.meta,{decorations:l,converter:r,source:t.source})}return e.get(t.meta)}return{name:"shiki:decorations",tokens(e){if(this.options.decorations?.length)return function(e,t){let n=Array.from(t instanceof Set?t:new Set(t)).sort((e,t)=>
1e-t);return n.length?e.map(e=>e.flatMap(e=>{let t=n.filter(t=>e.offset<t&&t<e.offset+e.content.length).map(t=>t-e.offset).sort((e,t)=>e-t);return t.length?function(e,t){let n=0,r=[];for(let l of t)l>n&&r.push({...e,content:e.content.slice(n,l),offset:e.offset+n}),n=l;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}(e,t):e})):e}(e,t(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]))},code(e){if(!this.options.decorations?.length)return;let n=t(this),r=Array.from(e.children).filter(e=>"element"===e.type&&"span"===e.tagName);if(r.length!==n.converter.lines.length)throw new eq(`Number of lines in code element (${r.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function l(e,t,n,l){let a=r[e],o="",s=-1,u=-1;if(0===t&&(s=0),0===n&&(u=0),n===Number.POSITIVE_INFINITY&&(u=a.children.length),-1===s||-1===u)for(let e=0;e<a.children.length;e++)o+=function e(t){return"text"===t.type?t.value:"element"===t.type?t.children.map(e).join(""):""}(a.children[e]),-1===s&&o.length===t&&(s=e+1),-1===u&&o.length===n&&(u=e+1);if(-1===s)throw new eq(`Failed to find start index for decoration ${JSON.stringify(l.start)}`);if(-1===u)throw new eq(`Failed to find end index for decoration ${JSON.stringify(l.end)}`);let c=a.children.slice(s,u);if(l.alwaysWrap||c.length!==a.children.length){if(l.alwaysWrap||1!==c.length||"element"!==c[0].type){let e={type:"element",tagName:"span",properties:{},children:c};i(e,l,"wrapper"),a.children.splice(s,c.length,e)}else i(c[0],l,"token")}else i(a,l,"line")}function i(e,t,n){let r=t.properties||{},l=t.transform||(e=>e);return e.tagName=t.tagName||"span",e.properties={...e.properties,...r,class:e.properties.class},t.properties?.class&&n0(e,t.properties.class),e=l(e,n)||e}let a=[];for(let e of n.decorations.sort((e,t)=>t.start.offset-e.start.offset||e.end.offset-t.end.offset)){let{start:t,end:n}=e;if(t.line===n.line)l(t.line,t.character,n.character,e);else if(t.line<n.line){l(t.line,t.character,Number.POSITIVE_INFINITY,e);for(let l=t.line+1;l<n.line;l++)a.unshift(()=>{var t;r[t=l]=i(r[t],e,"line")});l(n.line,0,n.character,e)}}a.forEach(e=>e())}}}()];function rt(e){let t=function(e){let t=[],n=[],r=[];for(let l of e)switch(l.enforce){case"pre":t.push(l);break;case"post":n.push(l);break;default:r.push(l)}return{pre:t,post:n,normal:r}}(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...re]}var rn=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],rr={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function rl(e){let t=e.shift();if("2"===t){let t=e.splice(0,3).map(e=>Number.parseInt(e));if(3!==t.length||t.some(e=>Number.isNaN(e)))return;return{type:"rgb",rgb:t}}if("5"===t){let t=e.shift();if(t)return{type:"table",index:Number(t)}}}var ri={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function ra(e,t,n={}){let{lang:r="text",theme:l=e.getLoadedThemes()[0]}=n;if(nQ(r)||nJ(l))return n1(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:i,colorMap:a}=e.setTheme(l);if("ansi"===r)return function(e,t,n){let r,l,i;let a=nK(e,n),o=n1(t),s=function(e=ri){let t;function n(e){return`#${e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0")).join("")}`}return{value:function(r){switch(r.type){case"named":return e[r.name];case"rgb":return n(r.rgb);case"table":var l;return l=r.index,function(){if(t)return t;t=[];for(let n=0;n<rn.length;n++)t.push(e[rn[n]]);let r=[0,95,135,175,215,255];for(let e=0;e<6;e++)for(let l=0;l<6;l++)for(let i=0;i<6;i++)t.push(n([r[e],r[l],r[i]]));let l=8;for(let e=0;e<24;e++,l+=10)t.push(n([l,l,l]));return t}()[l]}}}}(Object.fromEntries(rn.map(t=>[t,e.colors?.[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]]))),u=(r=null,l=null,i=new Set,{parse(e){let t=[],n=0;do{let a=function(e,t){let n=e.indexOf("\x1b",t);if(-1!==n&&"["===e[n+1]){let t=e.indexOf("m",n);if(-1!==t)return{sequence:e.substring(n+2,t).split(";"),startPosition:n,position:t+1}}return{position:e.length}}(e,n),o=a.sequence?e.substring(n,a.startPosition):e.substring(n);if(o.length>0&&t.push({value:o,foreground:r,background:l,decorations:new Set(i)}),a.sequence){let e=function(e){let t=[];for(;e.length>0;){let n=e.shift();if(!n)continue;let r=Number.parseInt(n);if(!Number.isNaN(r)){if(0===r)t.push({type:"resetAll"});else if(r<=9)rr[r]&&t.push({type:"setDecoration",value:rr[r]});else if(r<=29){let e=rr[r-20];e&&(t.push({type:"resetDecoration",value:e}),"dim"===e&&t.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:rn[r-30]}});else if(38===r){let n=rl(e);
1n&&t.push({type:"setForegroundColor",value:n})}else if(39===r)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:rn[r-40]}});else if(48===r){let n=rl(e);n&&t.push({type:"setBackgroundColor",value:n})}else 49===r?t.push({type:"resetBackgroundColor"}):53===r?t.push({type:"setDecoration",value:"overline"}):55===r?t.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:rn[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:rn[r-100+8]}})}}return t}(a.sequence);for(let t of e)"resetAll"===t.type?(r=null,l=null,i.clear()):"resetForegroundColor"===t.type?r=null:"resetBackgroundColor"===t.type?l=null:"resetDecoration"===t.type&&i.delete(t.value);for(let t of e)"setForegroundColor"===t.type?r=t.value:"setBackgroundColor"===t.type?l=t.value:"setDecoration"===t.type&&i.add(t.value)}n=a.position}while(n<e.length);return t}});return o.map(t=>u.parse(t[0]).map(n=>{let r,l;n.decorations.has("reverse")?(r=n.background?s.value(n.background):e.bg,l=n.foreground?s.value(n.foreground):e.fg):(r=n.foreground?s.value(n.foreground):e.fg,l=n.background?s.value(n.background):void 0),r=nX(r,a),l=nX(l,a),n.decorations.has("dim")&&(r=function(e){let t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){let e=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${e}`}return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map(e=>`${e}${e}`).join("")}80`}let n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}(r));let i=e4.None;return n.decorations.has("bold")&&(i|=e4.Bold),n.decorations.has("italic")&&(i|=e4.Italic),n.decorations.has("underline")&&(i|=e4.Underline),n.decorations.has("strikethrough")&&(i|=e4.Strikethrough),{content:n.value,offset:t[1],color:r,bgColor:l,fontStyle:i}}))}(i,t,n);let o=e.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==o.name)throw new eq(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${o.name}"`);if(!n.grammarState.themes.includes(i.name))throw new eq(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${i.name}"`)}return function(e,t,n,r,l){let i=ro(e,t,n,r,l),a=new n7(ro(e,t,n,r,l).stateStack,t.name,n.name);return n5(i.tokens,a),i.tokens}(t,o,i,a,n)}function ro(e,t,n,r,l){let i=nK(n,l),{tokenizeMaxLineLength:a=0,tokenizeTimeLimit:o=500}=l,s=n1(e),u=l.grammarState?function(e,t){if(!(e instanceof n7))throw new eq("Invalid grammar state");return e.getInternalStack(t)}(l.grammarState,n.name)??tW:null!=l.grammarContextCode?ro(l.grammarContextCode,t,n,r,{...l,grammarState:void 0,grammarContextCode:void 0}).stateStack:tW,c=[],d=[];for(let e=0,h=s.length;e<h;e++){let h,p;let[m,g]=s[e];if(""===m){c=[],d.push([]);continue}if(a>0&&m.length>=a){c=[],d.push([{content:m,offset:g,color:"",fontStyle:0}]);continue}l.includeExplanation&&(h=t.tokenizeLine(m,u,o).tokens,p=0);let f=t.tokenizeLine2(m,u,o),b=f.tokens.length/2;for(let e=0;e<b;e++){let t=f.tokens[2*e],a=e+1<b?f.tokens[2*e+2]:m.length;if(t===a)continue;let o=f.tokens[2*e+1],s=nX(r[e9.getForeground(o)],i),u=e9.getFontStyle(o),d={content:m.substring(t,a),offset:g+t,color:s,fontStyle:u};if(l.includeExplanation){let e=[];
1if("scopeName"!==l.includeExplanation)for(let t of n.settings){let n;switch(typeof t.scope){case"string":n=t.scope.split(/,/).map(e=>e.trim());break;case"object":n=t.scope;break;default:continue}e.push({settings:t,selectors:n.map(e=>e.split(/ /))})}d.explanation=[];let r=0;for(;t+r<a;){let t=h[p],n=m.substring(t.startIndex,t.endIndex);r+=n.length,d.explanation.push({content:n,scopes:"scopeName"===l.includeExplanation?t.scopes.map(e=>({scopeName:e})):function(e,t){let n=[];for(let r=0,l=t.length;r<l;r++){let l=t[r];n[r]={scopeName:l,themeMatches:function(e,t,n){let r=[];for(let{selectors:l,settings:i}of e)for(let e of l)if(function(e,t,n){if(!rs(e[e.length-1],t))return!1;let r=e.length-2,l=n.length-1;for(;r>=0&&l>=0;)rs(e[r],n[l])&&(r-=1),l-=1;return -1===r}(e,t,n)){r.push(i);break}return r}(e,l,t.slice(0,r))}}return n}(e,t.scopes)}),p+=1}}c.push(d)}d.push(c),c=[],u=f.ruleStack}return{tokens:d,stateStack:u}}function rs(e,t){return e===t||t.substring(0,e.length)===e&&"."===t[e.length]}function ru(e,t,n){let r=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),l=r.map(r=>{let l=ra(e,t,{...n,theme:r.theme}),i=n9(l);return{tokens:l,state:i,theme:"string"==typeof r.theme?r.theme:r.theme.name}}),i=function(...e){let t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){let l=e.map(e=>e[r]),i=t.map(()=>[]);t.forEach((e,t)=>e.push(i[t]));let a=l.map(()=>0),o=l.map(e=>e[0]);for(;o.every(e=>e);){let e=Math.min(...o.map(e=>e.content.length));for(let t=0;t<n;t++){let n=o[t];n.content.length===e?(i[t].push(n),a[t]+=1,o[t]=l[t][a[t]]):(i[t].push({...n,content:n.content.slice(0,e)}),o[t]={...n,content:n.content.slice(e),offset:n.offset+e})}}}return t}(...l.map(e=>e.tokens)),a=i[0].map((e,t)=>e.map((e,l)=>{let a={content:e.content,variants:{},offset:e.offset};return"includeExplanation"in n&&n.includeExplanation&&(a.explanation=e.explanation),i.forEach((e,n)=>{let{content:i,explanation:o,offset:s,...u}=e[t][l];a.variants[r[n].color]=u}),a})),o=l[0].state?new n7(Object.fromEntries(l.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),l[0].state.lang):void 0;return o&&n5(a,o),a}function rc(e,t,n){let r,l,i,a,o,s;if("themes"in n){let{defaultColor:u="light",cssVariablePrefix:c="--shiki-",colorsRendering:d="css-vars"}=n,h=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===u?-1:t.color===u?1:0);if(0===h.length)throw new eq("`themes` option must not be empty");let p=ru(e,t,n);if(s=n9(p),u&&n2!==u&&!h.find(e=>e.color===u))throw new eq(`\`themes\` option must contain the defaultColor key \`${u}\``);let m=h.map(t=>e.getTheme(t.theme)),g=h.map(e=>e.color);i=p.map(e=>e.map(e=>(function(e,t,n,r,l="css-vars"){let i={content:e.content,explanation:e.explanation,offset:e.offset},a=t.map(t=>n8(e.variants[t])),o=new Set(a.flatMap(e=>Object.keys(e))),s={},u=(e,r)=>{let l="color"===r?"":"background-color"===r?"-bg":`-${r}`;
1return n+t[e]+("color"===r?"":l)};return a.forEach((e,n)=>{for(let i of o){let o=e[i]||"inherit";if(0===n&&r&&n4.includes(i)){if(r===n2&&a.length>1){let e=t.findIndex(e=>"light"===e),r=t.findIndex(e=>"dark"===e);if(-1===e||-1===r)throw new eq('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let c=a[e][i]||"inherit",d=a[r][i]||"inherit";s[i]=`light-dark(${c}, ${d})`,"css-vars"===l&&(s[u(n,i)]=o)}else s[i]=o}else"css-vars"===l&&(s[u(n,i)]=o)}}),i.htmlStyle=s,i})(e,g,c,u,d))),s&&n5(i,s);let f=h.map(e=>nK(e.theme,n));l=rd(h,m,f,c,u,"fg",d),r=rd(h,m,f,c,u,"bg",d),a=`shiki-themes ${m.map(e=>e.name).join(" ")}`,o=u?void 0:[l,r].join(";")}else if("theme"in n){let o=nK(n.theme,n);i=ra(e,t,n);let u=e.getTheme(n.theme);r=nX(u.bg,o),l=nX(u.fg,o),a=u.name,s=n9(i)}else throw new eq("Invalid options, either `theme` or `themes` must be provided");return{tokens:i,fg:l,bg:r,themeName:a,rootStyle:o,grammarState:s}}function rd(e,t,n,r,l,i,a){return e.map((o,s)=>{let u=nX(t[s][i],n[s])||"inherit",c=`${r+o.color}${"bg"===i?"-bg":""}:${u}`;if(0===s&&l){if(l===n2&&e.length>1){let r=e.findIndex(e=>"light"===e.color),l=e.findIndex(e=>"dark"===e.color);if(-1===r||-1===l)throw new eq('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let a=nX(t[r][i],n[r])||"inherit",o=nX(t[l][i],n[l])||"inherit";return`light-dark(${a}, ${o});${c}`}return u}return"css-vars"===a?c:null}).filter(e=>!!e).join(";")}function rh(e,t,n,r={meta:{},options:n,codeToHast:(t,n)=>rh(e,t,n),codeToTokens:(t,n)=>rc(e,t,n)}){let l=t;for(let e of rt(n))l=e.preprocess?.call(r,l,n)||l;let{tokens:i,fg:a,bg:o,themeName:s,rootStyle:u,grammarState:c}=rc(e,l,n),{mergeWhitespaces:d=!0,mergeSameStyleTokens:h=!1}=n;!0===d?i=i.map(e=>{let t=[],n="",r=0;return e.forEach((l,i)=>{let a=!(l.fontStyle&&(l.fontStyle&e4.Underline||l.fontStyle&e4.Strikethrough));a&&l.content.match(/^\s+$/)&&e[i+1]?(r||(r=l.offset),n+=l.content):n?(a?t.push({...l,offset:r,content:n+l.content}):t.push({content:n,offset:r},l),r=0,n=""):t.push(l)}),t}):"never"===d&&(i=i.map(e=>e.flatMap(e=>{if(e.content.match(/^\s+$/))return e;let t=e.content.match(/^(\s*)(.*?)(\s*)$/);if(!t)return e;let[,n,r,l]=t;if(!n&&!l)return e;let i=[{...e,offset:e.offset+n.length,content:r}];return n&&i.unshift({content:n,offset:e.offset}),l&&i.push({content:l,offset:e.offset+n.length+r.length}),i}))),h&&(i=i.map(e=>{let t=[];for(let n of e){if(0===t.length){t.push({...n});continue}let e=t[t.length-1],r=n3(e.htmlStyle||n8(e)),l=n3(n.htmlStyle||n8(n)),i=e.fontStyle&&(e.fontStyle&e4.Underline||e.fontStyle&e4.Strikethrough),a=n.fontStyle&&(n.fontStyle&e4.Underline||n.fontStyle&e4.Strikethrough);i||a||r!==l?t.push({...n}):e.content+=n.content}return t}));let p={...r,get source(){return l}};for(let e of rt(n))i=e.tokens?.call(p,i)||i;return function(e,t,n,r=n9(e)){let l=rt(t),i=[],a={type:"root",children:[]},{structure:o="classic",tabindex:s="0"}=t,u={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,...!1!==s&&null!=s?{tabindex:s.toString()}:{},...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([e])=>!e.startsWith("_")))},children:[]},c={type:"element",tagName:"code",properties:{},children:i},d=[],h={...n,structure:o,addClassToHast:n0,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return a},get pre(){return u},get code(){return c},get lines(){return d}};if(e.forEach((e,t)=>{t&&("inline"===o?a.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===o&&i.push({type:"text",value:"\n"}));let n={type:"element",tagName:"span",properties:{class:"line"},children:[]},r=0;for(let i of e){let e={type:"element",tagName:"span",properties:{...i.htmlAttrs},children:[{type:"text",value:i.content}]},s=n3(i.htmlStyle||n8(i));for(let a of(s&&(e.properties.style=s),l))e=a?.span?.call(h,e,t+1,r,n,i)||e;"inline"===o?a.children.push(e):"classic"===o&&n.children.push(e),r+=i.content.length}if("classic"===o){for(let e of l)n=e?.line?.call(h,n,t+1)||n;d.push(n),i.push(n)}}),"classic"===o){for(let e of l)c=e?.code?.call(h,c)||c;for(let e of(u.children.push(c),l))u=e?.pre?.call(h,u)||u;a.children.push(u)}let p=a;for(let e of l)p=e?.root?.call(h,p)||p;return r&&n5(p,r),p}(i,{...n,fg:a,bg:o,themeName:s,rootStyle:u},p,c)}let rp=function(e,t){let n=t||nU,r=n.quote||'"';if('"'!==r&&"'"!==r)throw Error("Invalid quote `"+r+"`, expected `'` or `\"`");return({one:nW,all:nV,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||tV,characterReferences:n.characterReferences||nq,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:"svg"===n.space?nu:ns,quote:r,alternative:'"'===r?"'":'"'}).one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)},rm={light:"#333333",dark:"#bbbbbb"},rg={light:"#fffffe",dark:"#1e1e1e"},rf="__shiki_resolved";function rb(e){if(e?.[rf])return e;let t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){let e=t.settings?t.settings.find(e=>!e.name&&!e.scope):void 0;e?.settings?.foreground&&(r=e.settings.foreground),e?.settings?.background&&(n=e.settings.background),!r&&t?.colors?.["editor.foreground"]&&(r=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),r||(r="light"===t.type?rm.light:rm.dark),n||(n="light"===t.type?rg.light:rg.dark),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let l=0,i=new Map;function a(e){if(i.has(e))return i.get(e);l+=1;let n=`#${l.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${n}`]?a(e):(i.set(e,n),n)}for(let e of(t.settings=t.settings.map(e=>{let n=e.settings?.foreground&&!e.settings.foreground.startsWith("#"),r=e.settings?.background&&!e.settings.background.startsWith("#");if(!n&&!r)return e;let l={...e,settings:{...e.settings}};if(n){let n=a(e.settings.foreground);t.colorReplacements[n]=e.settings.foreground,l.settings.foreground=n}if(r){let n=a(e.settings.background);t.colorReplacements[n]=e.settings.background,l.settings.background=n}return l}),Object.keys(t.colors||{})))if(("editor.foreground"===e||"editor.background"===e||e.startsWith("terminal.ansi"))&&!t.colors[e]?.startsWith("#")){let n=a(t.colors[e]);t.colorReplacements[n]=t.colors[e],t.colors[e]=n}return Object.defineProperty(t,rf,{enumerable:!1,writable:!1,value:!0}),t}async function ry(e){return Array.from(new Set((await Promise.all(e.filter(e=>!nY(e)).map(async e=>await nZ(e).then(e=>Array.isArray(e)?e:[e])))).flat()))}async function rk(e){return(await Promise.all(e.map(async e=>nJ(e)?null:rb(await nZ(e))))).filter(e=>!!e)}
1class rx extends Error{constructor(e){super(e),this.name="ShikiError"}}class rw extends tH{constructor(e,t,n,r={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=r,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(e){return"string"==typeof e?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=rb(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=eJ.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){if(this._alias[e]){let t=new Set([e]);for(;this._alias[e];){if(e=this._alias[e],t.has(e))throw new rx(`Circular alias \`${Array.from(t).join(" -> ")} -> ${e}\``);t.add(e)}}return this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(t=>t.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let n={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let r=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(r.name=e.name,this._resolvedGrammars.set(e.name,r),e.aliases&&e.aliases.forEach(t=>{this._alias[t]=e.name}),this._loadedLanguagesCache=null,t.size)for(let e of t)this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(e.scopeName),this._syncRegistry?._grammars?.delete(e.scopeName),this.loadLanguage(this._langMap.get(e.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let t of e)this.resolveEmbeddedLanguages(t);let t=Array.from(this._langGraph.entries()),n=t.filter(([e,t])=>!t);if(n.length){let e=t.filter(([e,t])=>t&&t.embeddedLangs?.some(e=>n.map(([e])=>e).includes(e))).filter(e=>!n.includes(e));throw new rx(`Missing languages ${n.map(([e])=>`\`${e}\``).join(", ")}, required by ${e.map(([e])=>`\`${e}\``).join(", ")}`)}for(let[e,n]of t)this._resolver.addLanguage(n);for(let[e,n]of t)this.loadLanguage(n)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){if(this._langMap.set(e.name,e),this._langGraph.set(e.name,e),e.embeddedLangs)for(let t of e.embeddedLangs)this._langGraph.set(t,this._langMap.get(t))}}class rv{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)},t.forEach(e=>this.addLanguage(e))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split("."),n=[];for(let e=1;e<=t.length;e++){let r=t.slice(0,e).join(".");n=[...n,...this._injections.get(r)||[]]}return n}}let rS=0;async function r_(e){e.engine||function(e,t=3){t>3||console.trace(`[SHIKI DEPRECATE]: ${e}`)}("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,r]=await Promise.all([rk(e.themes||[]),ry(e.langs||[]),e.engine]);return function(e){let t;rS+=1,!1!==e.warnings&&rS>=10&&rS%10==0&&console.warn(`[Shiki] ${rS} instances have been created. Shiki is supposed to be used as a singleton, c
1onsider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let n=!1;if(!e.engine)throw new rx("`engine` option is required for synchronous mode");let r=(e.langs||[]).flat(1),l=(e.themes||[]).flat(1).map(rb),i=new rw(new rv(e.engine,r),l,r,e.langAlias);function a(e){if("none"===e)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};u();let t=i.getTheme(e);if(!t)throw new rx(`Theme \`${e}\` not found, you may need to load it first`);return t}function o(...e){u(),i.loadLanguages(e.flat(1))}function s(...e){for(let t of(u(),e.flat(1)))i.loadTheme(t)}function u(){if(n)throw new rx("Shiki instance has been disposed")}function c(){n||(n=!0,i.dispose(),rS-=1)}return{setTheme:function(e){u();let n=a(e);return t!==e&&(i.setTheme(n),t=e),{theme:n,colorMap:i.getColorMap()}},getTheme:a,getLanguage:function(e){u();let t=i.getGrammar("string"==typeof e?e:e.name);if(!t)throw new rx(`Language \`${e}\` not found, you may need to load it first`);return t},getLoadedThemes:function(){return u(),i.getLoadedThemes()},getLoadedLanguages:function(){return u(),i.getLoadedLanguages()},loadLanguage:async function(...e){return o(await ry(e))},loadLanguageSync:o,loadTheme:async function(...e){return u(),s(await rk(e))},loadThemeSync:s,dispose:c,[Symbol.dispose]:c}}({...e,themes:t,langs:n,engine:r})}async function rC(e){let t=await r_(e);return{getLastGrammarState:(...e)=>(function(...e){if(2===e.length)return n9(e[1]);let[t,n,r={}]=e,{lang:l="text",theme:i=t.getLoadedThemes()[0]}=r;if(nQ(l)||nJ(i))throw new eq("Plain language does not have grammar state");if("ansi"===l)throw new eq("ANSI language does not have grammar state");let{theme:a,colorMap:o}=t.setTheme(i),s=t.getLanguage(l);return new n7(ro(n,s,a,o,r).stateStack,s.name,a.name)})(t,...e),codeToTokensBase:(e,n)=>ra(t,e,n),codeToTokensWithThemes:(e,n)=>ru(t,e,n),codeToTokens:(e,n)=>rc(t,e,n),codeToHast:(e,n)=>rh(t,e,n),codeToHtml:(e,n)=>(function(e,t,n){let r={meta:{},options:n,codeToHast:(t,n)=>rh(e,t,n),codeToTokens:(t,n)=>rc(e,t,n)},l=rp(rh(e,t,n,r));for(let e of rt(n))l=e.postprocess?.call(r,l,n)||l;return l})(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}let rP=[{id:"abap",name:"ABAP",import:()=>n.e(62907).then(n.bind(n,62907))},{id:"actionscript-3",name:"ActionScript",import:()=>n.e(28960).then(n.bind(n,28960))},{id:"ada",name:"Ada",import:()=>n.e(78977).then(n.bind(n,78977))},{id:"angular-html",name:"Angular HTML",import:()=>Promise.all([n.e(92685),n.e(43242),n.e(88148),n.e(20957)]).then(n.bind(n,66086))},{id:"angular-ts",name:"Angular TypeScript",import:()=>Promise.all([n.e(92685),n.e(29726),n.e(43242),n.e(88148),n.e(17527),n.e(23088)]).then(n.bind(n,34005))},{id:"apache",name:"Apache Conf",import:()=>n.e(78119).then(n.bind(n,78119))},{id:"apex",name:"Apex",import:()=>n.e(85016).then(n.bind(n,85016))},{id:"apl",name:"APL",import:()=>Promise.all([n.e(92685),n.e(43242),n.e(88148),n.e(22824),n.e(32032)]).then(n.bind(n,32032))},{id:"applescript",name:"AppleScript",import:()=>n.e(22025).then(n.bind(n,22025))},{id:"ara",name:"Ara",import:()=>n.e(37610).then(n.bind(n,37610))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>n.e(32662).then(n.bind(n,32662))},{id:"asm",name:"Assembly",import:()=>n.e(90538).then(n.bind(n,90538))},{id:"astro",name:"Astro",import:()=>Promise.all([n.e(92685),n.e(56015),n.e(83846),n.e(43242),n.e(75868)]).then(n.bind(n,75868))},{id:"awk",name:"AWK",import:()=>n.e(5870).then(n.bind(n,5870))},{id:"ballerina",name:"Ballerina",import:()=>n.e(41247).then(n.bind(n,41247))},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>n.e(74352).then(n.bind(n,74352))},{id:"beancount",name:"Beancount",import:()=>n.e(97160).then(n.bind(n,97160))},{id:"berry",name:"Berry",aliases:["be"],import:()=>n.e(95678).then(n.bind(n,95678))},{id:"bibtex",name:"BibTeX",import:()=>n.e(25307).then(n.bind(n,25307))},{id:"bicep",name:"Bicep",import:()=>n.e(97942).then(n.bind(n,97942))},{id:"blade",name:"Blade",import:()=>Promise.all([n.e(92685),n.e(43242),n.e(88148),n.e(22824),n.e(86430),n.e(27284)]).then(n.bind(n,27284))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>
1n.e(75211).then(n.bind(n,75211))},{id:"c",name:"C",import:()=>n.e(64611).then(n.bind(n,64611))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>n.e(73544).then(n.bind(n,73544))},{id:"cairo",name:"Cairo",import:()=>Promise.all([n.e(68611),n.e(58444)]).then(n.bind(n,58444))},{id:"clarity",name:"Clarity",import:()=>n.e(27295).then(n.bind(n,27295))},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>n.e(33111).then(n.bind(n,33111))},{id:"cmake",name:"CMake",import:()=>n.e(70970).then(n.bind(n,70970))},{id:"cobol",name:"COBOL",import:()=>Promise.all([n.e(92685),n.e(43242),n.e(88148),n.e(22824),n.e(27325)]).then(n.bind(n,27325))},{id:"codeowners",name:"CODEOWNERS",import:()=>n.e(6261).then(n.bind(n,6261))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>n.e(59794).then(n.bind(n,59794))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>Promise.all([n.e(92685),n.e(65812)]).then(n.bind(n,65812))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>n.e(47318).then(n.bind(n,47318))},{id:"coq",name:"Coq",import:()=>n.e(45039).then(n.bind(n,45039))},{id:"cpp",name:"C++",aliases:["c++"],import:()=>Promise.all([n.e(19572),n.e(1245),n.e(86430),n.e(64611),n.e(2673)]).then(n.bind(n,97030))},{id:"crystal",name:"Crystal",import:()=>Promise.all([n.e(92685),n.e(43242),n.e(88148),n.e(86430),n.e(64611),n.e(1979),n.e(34255)]).then(n.bind(n,34255))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>n.e(50856).then(n.bind(n,50856))},{id:"css",name:"CSS",import:()=>n.e(43242).then(n.bind(n,43242))},{id:"csv",name:"CSV",import:()=>n.e(81366).then(n.bind(n,81366))},{id:"cue",name:"CUE",import:()=>n.e(91693).then(n.bind(n,91693))},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>n.e(32648).then(n.bind(n,32648))},{id:"d",name:"D",import:()=>n.e(47025).then(n.bind(n,47025))},{id:"dart",name:"Dart",import:()=>n.e(93298).then(n.bind(n,93298))},{id:"dax",name:"DAX",import:()=>n.e(13476).then(n.bind(n,13476))},{id:"desktop",name:"Desktop",import:()=>n.e(16906).then(n.bind(n,16906))},{id:"diff",name:"Diff",import:()=>n.e(13765).then(n.bind(n,13765))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>n.e(4341).then(n.bind(n,4341))},{id:"dotenv",name:"dotEnv",import:()=>n.e(67250).then(n.bind(n,67250))},{id:"dream-maker",name:"Dream Maker",import:()=>n.e(57971).then(n.bind(n,57971))},{id:"edge",name:"Edge",import:()=>Promise.all([n.e(92685),n.e(56015),n.e(43242),n.e(88148),n.e(97460)]).then(n.bind(n,97460))},{id:"elixir",name:"Elixir",import:()=>Promise.all([n.e(92685),n.e(43242),n.e(88148),n.e(71301)]).then(n.bind(n,71301))},{id:"elm",name:"Elm",import:()=>Promise.all([n.e(64611),n.e(48053)]).then(n.bind(n,48053))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>n.e(16545).then(n.bind(n,84457))},{id:"erb",name:"ERB",import:()=>Promise.all([n.e(92685),n.e(56015),n.e(83846),n.e(75406),n.e(19572),n.e(1245),n.e(43242),n.e(88148),n.e(22824),n.e(86430),n.e(64611),n.e(1979),n.e(79007),n.e(8865),n.e(51123)]).then(n.bind(n,51123))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>Promise.all([n.e(61676),n.e(81019)]).then(n.bind(n,81019))},{id:"fennel",name:"Fennel",import:()=>n.e(13446).then(n.bind(n,13446))},{id:"fish",name:"Fish",import:()=>n.e(45293).then(n.bind(n,45293))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>n.e(52410).then(n.bind(n,52410))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>Promise.all([n.e(11088),n.e(35919)]).then(n.bind(n,35919))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>n.e(11088).then(n.bind(n,11088))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>Promise.all([n.e(61676),n.e(9575)]).then(n.bind(n,9575))},{id:"gdresource",name:"GDResource",import:()=>n.e(7289).then(n.bind(n,7289))},{id:"gdscript",name:"GDScript",import:()=>n.e(75477).then(n.bind(n,75477))},{id:"gdshader",name:"GDShader",import:()=>n.e(30384).then(n.bind(n,30384))},{id:"genie",name:"Genie",import:()=>n.e(41406).then(n.bind(n,41406))},{id:"gherkin",name:"Gherkin",import:()=>n.e(58740).then(n.bind(n,58740))},{id:"git-commit",name:"Git Commit Message",import:()=>n.e(95279).then(n.bind(n,95279))}
1,{id:"git-rebase",name:"Git Rebase Message",import:()=>Promise.all([n.e(1979),n.e(74098)]).then(n.bind(n,74098))},{id:"gleam",name:"Gleam",import:()=>n.e(98845).then(n.bind(n,98845))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>Promise.all([n.e(92685),n.e(56015),n.e(43242),n.e(88148),n.e(9071)]).then(n.bind(n,9071))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>Promise.all([n.e(92685),n.e(56015),n.e(43242),n.e(88148),n.e(29264)]).then(n.bind(n,29264))},{id:"glsl",name:"GLSL",import:()=>Promise.all([n.e(64611),n.e(81932)]).then(n.bind(n,81932))},{id:"gnuplot",name:"Gnuplot",import:()=>n.e(26243).then(n.bind(n,26243))},{id:"go",name:"Go",import:()=>n.e(81447).then(n.bind(n,81447))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>Promise.all([n.e(92685),n.e(56015),n.e(83846),n.e(75406),n.e(79007)]).then(n.bind(n,79007))},{id:"groovy",name:"Groovy",import:()=>n.e(2037).then(n.bind(n,2037))},{id:"hack",name:"Hack",import:()=>Promise.all([n.e(92685),n.e(43242),n.e(88148),n.e(86430),n.e(82729)]).then(n.bind(n,82729))},{id:"haml",name:"Ruby Haml",import:()=>Promise.all([n.e(92685),n.e(43242),n.e(76392)]).then(n.bind(n,76392))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>Promise.all([n.e(92685),n.e(43242),n.e(88148),n.e(78641)]).then(n.bind(n,78641))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>n.e(5052).then(n.bind(n,5052))},{id:"haxe",name:"Haxe",import:()=>n.e(89283).then(n.bind(n,89283))},{id:"hcl",name:"HashiCorp HCL",import:()=>n.e(48591).then(n.bind(n,48591))},{id:"hjson",name:"Hjson",import:()=>n.e(85364).then(n.bind(n,75241))},{id:"hlsl",name:"HLSL",import:()=>n.e(67402).then(n.bind(n,67402))},{id:"html",name:"HTML",import:()=>Promise.all([n.e(92685),n.e(43242),n.e(88148)]).then(n.bind(n,88148))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>Promise.all([n.e(92685),n.e(43242),n.e(88148),n.e(83267)]).then(n.bind(n,83267))},{id:"http",name:"HTTP",import:()=>Promise.all([n.e(92685),n.e(56015),n.e(83846),n.e(75406),n.e(22824),n.e(1979),n.e(79007),n.e(67844)]).then(n.bind(n,67844))},{id:"hxml",name:"HXML",import:()=>n.e(12129).then(n.bind(n,12129))},{id:"hy",name:"Hy",import:()=>n.e(64955).then(n.bind(n,64955))},{id:"imba",name:"Imba",import:()=>n.e(50650).then(n.bind(n,50650))},{id:"ini",name:"INI",aliases:["properties"],import:()=>n.e(7187).then(n.bind(n,7187))},{id:"java",name:"Java",import:()=>n.e(22824).then(n.bind(n,22824))},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>n.e(92685).then(n.bind(n,94132))},{id:"jinja",name:"Jinja",import:()=>Promise.all([n.e(92685),n.e(43242),n.e(88148),n.e(5692)]).then(n.bind(n,5692))},{id:"jison",name:"Jison",import:()=>Promise.all([n.e(92685),n.e(2436)]).then(n.bind(n,2436))},{id:"json",name:"JSON",import:()=>n.e(12972).then(n.bind(n,12972))},{id:"json5",name:"JSON5",import:()=>n.e(16835).then(n.bind(n,16835))},{id:"jsonc",name:"JSON with Comments",import:()=>n.e(44441).then(n.bind(n,44441))},{id:"jsonl",name:"JSON Lines",import:()=>n.e(17832).then(n.bind(n,17832))},{id:"jsonnet",name:"Jsonnet",import:()=>n.e(14372).then(n.bind(n,14372))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>n.e(12622).then(n.bind(n,12622))},{id:"jsx",name:"JSX",import:()=>n.e(75406).then(n.bind(n,41059))},{id:"julia",name:"Julia",aliases:["jl"],import:()=>Promise.all([n.e(92685),n.e(19572),n.e(1245),n.e(86430),n.e(64611),n.e(68611),n.e(14992),n.e(36161)]).then(n.bind(n,84014))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>n.e(27155).then(n.bind(n,27155))},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>n.e(93734).then(n.bind(n,93734))},{id:"latex",name:"LaTeX",import:()=>Promise.all([n.e(14992),n.e(67305)]).then(n.bind(n,67305))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>n.e(80412).then(n.bind(n,80412))},{id:"less",name:"Less",import:()=>n.e(57422).then(n.bind(n,57422))},{id:"liquid",name:"Liquid",import:()=>Promise.all([n.e(92685),n.e(43242),n.e(88148),n.e(46499)]).then(n.bind(n,46499))},{id:"llvm",name:"LLVM IR",import:()=>n.e(43258).then(n.bind(n,43258))},{id:"log",name:"Log file",import:()=>n.e(90320).then(n.bind(n,90320))},{id:"logo",name:"Logo",import:()=>n.e(56348).then(n.bind(n,56348))},{id:"lua",name:"Lua",import:()=>Promise.all([n.e(64611),n.e(29666)]).then(n.bind(n,29666))}
1,{id:"luau",name:"Luau",import:()=>n.e(32586).then(n.bind(n,32586))},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>n.e(92592).then(n.bind(n,92592))},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>n.e(61676).then(n.bind(n,61676))},{id:"marko",name:"Marko",import:()=>Promise.all([n.e(56015),n.e(43242),n.e(17527),n.e(57422),n.e(21253)]).then(n.bind(n,21253))},{id:"matlab",name:"MATLAB",import:()=>n.e(41049).then(n.bind(n,41049))},{id:"mdc",name:"MDC",import:()=>Promise.all([n.e(92685),n.e(43242),n.e(88148),n.e(61676),n.e(53286)]).then(n.bind(n,53286))},{id:"mdx",name:"MDX",import:()=>n.e(28075).then(n.bind(n,28075))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>n.e(97275).then(n.bind(n,97275))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>n.e(18005).then(n.bind(n,18005))},{id:"mojo",name:"Mojo",import:()=>n.e(75556).then(n.bind(n,75556))},{id:"move",name:"Move",import:()=>n.e(9897).then(n.bind(n,9897))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>n.e(18219).then(n.bind(n,18219))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>n.e(97989).then(n.bind(n,97989))},{id:"nginx",name:"Nginx",import:()=>Promise.all([n.e(64611),n.e(6773)]).then(n.bind(n,6773))},{id:"nim",name:"Nim",import:()=>Promise.all([n.e(92685),n.e(43242),n.e(88148),n.e(22824),n.e(64611),n.e(61676),n.e(40248)]).then(n.bind(n,40248))},{id:"nix",name:"Nix",import:()=>n.e(45444).then(n.bind(n,45444))},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>n.e(47144).then(n.bind(n,47144))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>n.e(91983).then(n.bind(n,91983))},{id:"objective-cpp",name:"Objective-C++",import:()=>n.e(23207).then(n.bind(n,83969))},{id:"ocaml",name:"OCaml",import:()=>n.e(14460).then(n.bind(n,14460))},{id:"pascal",name:"Pascal",import:()=>n.e(72986).then(n.bind(n,72986))},{id:"perl",name:"Perl",import:()=>Promise.all([n.e(92685),n.e(43242),n.e(88148),n.e(22824),n.e(86430),n.e(90194)]).then(n.bind(n,90194))},{id:"php",name:"PHP",import:()=>Promise.all([n.e(92685),n.e(43242),n.e(88148),n.e(22824),n.e(86430),n.e(68408),n.e(26494)]).then(n.bind(n,68408))},{id:"plsql",name:"PL/SQL",import:()=>n.e(41290).then(n.bind(n,41290))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>n.e(7891).then(n.bind(n,7891))},{id:"polar",name:"Polar",import:()=>n.e(66901).then(n.bind(n,66901))},{id:"postcss",name:"PostCSS",import:()=>n.e(44145).then(n.bind(n,44145))},{id:"powerquery",name:"PowerQuery",import:()=>n.e(16522).then(n.bind(n,16522))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>n.e(27396).then(n.bind(n,27396))},{id:"prisma",name:"Prisma",import:()=>n.e(43730).then(n.bind(n,43730))},{id:"prolog",name:"Prolog",import:()=>n.e(96807).then(n.bind(n,96807))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>n.e(24767).then(n.bind(n,24767))},{id:"pug",name:"Pug",aliases:["jade"],import:()=>Promise.all([n.e(92685),n.e(43242),n.e(88148),n.e(83542)]).then(n.bind(n,83542))},{id:"puppet",name:"Puppet",import:()=>n.e(45452).then(n.bind(n,45452))},{id:"purescript",name:"PureScript",import:()=>n.e(67975).then(n.bind(n,67975))},{id:"python",name:"Python",aliases:["py"],import:()=>n.e(68611).then(n.bind(n,68611))},{id:"qml",name:"QML",import:()=>Promise.all([n.e(92685),n.e(12708)]).then(n.bind(n,12708))},{id:"qmldir",name:"QML Directory",import:()=>n.e(97946).then(n.bind(n,97946))},{id:"qss",name:"Qt Style Sheets",import:()=>n.e(38602).then(n.bind(n,38602))},{id:"r",name:"R",import:()=>n.e(14992).then(n.bind(n,14992))},{id:"racket",name:"Racket",import:()=>n.e(42209).then(n.bind(n,42209))},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>n.e(82065).then(n.bind(n,82065))},{id:"razor",name:"ASP.NET Razor",import:()=>Promise.all([n.e(92685),n.e(43242),n.e(88148),n.e(50856),n.e(63742)]).then(n.bind(n,16497))},{id:"reg",name:"Windows Registry Script",import:()=>n.e(11139).then(n.bind(n,11139))},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>n.e(32761).then(n.bind(n,32761))},{id:"rel",name:"Rel",import:()=>n.e(11269).then(n.bind(n,11269))},{id:"riscv",name:"RISC-V",import:()=>n.e(83908).then(n.bind(n,89487))}
1,{id:"rst",name:"reStructuredText",import:()=>Promise.all([n.e(92685),n.e(56015),n.e(83846),n.e(75406),n.e(19572),n.e(1245),n.e(43242),n.e(88148),n.e(22824),n.e(86430),n.e(64611),n.e(1979),n.e(79007),n.e(68611),n.e(8865),n.e(15339)]).then(n.bind(n,15339))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>Promise.all([n.e(92685),n.e(56015),n.e(83846),n.e(75406),n.e(19572),n.e(1245),n.e(43242),n.e(88148),n.e(22824),n.e(86430),n.e(64611),n.e(1979),n.e(79007),n.e(8865)]).then(n.bind(n,14200))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>n.e(4986).then(n.bind(n,4986))},{id:"sas",name:"SAS",import:()=>Promise.all([n.e(86430),n.e(50497)]).then(n.bind(n,50497))},{id:"sass",name:"Sass",import:()=>n.e(12834).then(n.bind(n,12834))},{id:"scala",name:"Scala",import:()=>n.e(36797).then(n.bind(n,36797))},{id:"scheme",name:"Scheme",import:()=>n.e(91278).then(n.bind(n,91278))},{id:"scss",name:"SCSS",import:()=>Promise.all([n.e(43242),n.e(17527)]).then(n.bind(n,17527))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>n.e(29394).then(n.bind(n,29394))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>n.e(88484).then(n.bind(n,88484))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>n.e(1979).then(n.bind(n,1979))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>Promise.all([n.e(1979),n.e(18721)]).then(n.bind(n,18721))},{id:"smalltalk",name:"Smalltalk",import:()=>n.e(19863).then(n.bind(n,19863))},{id:"solidity",name:"Solidity",import:()=>n.e(33668).then(n.bind(n,33668))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>Promise.all([n.e(92685),n.e(43242),n.e(88148),n.e(19129)]).then(n.bind(n,19129))},{id:"sparql",name:"SPARQL",import:()=>n.e(47206).then(n.bind(n,47206))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>n.e(90847).then(n.bind(n,90847))},{id:"sql",name:"SQL",import:()=>n.e(86430).then(n.bind(n,86430))},{id:"ssh-config",name:"SSH Config",import:()=>n.e(5727).then(n.bind(n,5727))},{id:"stata",name:"Stata",import:()=>Promise.all([n.e(86430),n.e(60015)]).then(n.bind(n,60015))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>n.e(26255).then(n.bind(n,26255))},{id:"svelte",name:"Svelte",import:()=>Promise.all([n.e(92685),n.e(56015),n.e(43242),n.e(64592)]).then(n.bind(n,64592))},{id:"swift",name:"Swift",import:()=>n.e(44859).then(n.bind(n,44859))},{id:"system-verilog",name:"SystemVerilog",import:()=>n.e(81410).then(n.bind(n,81410))},{id:"systemd",name:"Systemd Units",import:()=>n.e(44838).then(n.bind(n,44838))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>n.e(28803).then(n.bind(n,28803))},{id:"tasl",name:"Tasl",import:()=>n.e(98261).then(n.bind(n,98261))},{id:"tcl",name:"Tcl",import:()=>n.e(14076).then(n.bind(n,14076))},{id:"templ",name:"Templ",import:()=>Promise.all([n.e(92685),n.e(43242),n.e(81447),n.e(76386)]).then(n.bind(n,76386))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>n.e(91389).then(n.bind(n,91389))}
1,{id:"tex",name:"TeX",import:()=>Promise.all([n.e(14992),n.e(78566)]).then(n.bind(n,78566))},{id:"toml",name:"TOML",import:()=>n.e(103).then(n.bind(n,103))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>Promise.all([n.e(92685),n.e(56015),n.e(43242),n.e(88148),n.e(22824),n.e(86430),n.e(64611),n.e(9215)]).then(n.bind(n,9215))},{id:"tsv",name:"TSV",import:()=>n.e(89134).then(n.bind(n,89134))},{id:"tsx",name:"TSX",import:()=>n.e(83846).then(n.bind(n,2137))},{id:"turtle",name:"Turtle",import:()=>n.e(62753).then(n.bind(n,62753))},{id:"twig",name:"Twig",import:()=>Promise.all([n.e(92685),n.e(56015),n.e(83846),n.e(75406),n.e(19572),n.e(1245),n.e(43242),n.e(88148),n.e(22824),n.e(86430),n.e(64611),n.e(1979),n.e(79007),n.e(68611),n.e(17527),n.e(8865),n.e(68408),n.e(95260)]).then(n.bind(n,95260))},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>n.e(56015).then(n.bind(n,92849))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>n.e(61364).then(n.bind(n,61364))},{id:"typst",name:"Typst",aliases:["typ"],import:()=>n.e(85327).then(n.bind(n,85327))}
1,{id:"v",name:"V",import:()=>n.e(10685).then(n.bind(n,10685))},{id:"vala",name:"Vala",import:()=>n.e(3805).then(n.bind(n,3805))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>n.e(58733).then(n.bind(n,58733))},{id:"verilog",name:"Verilog",import:()=>n.e(65514).then(n.bind(n,65514))},{id:"vhdl",name:"VHDL",import:()=>n.e(5577).then(n.bind(n,5577))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>n.e(89478).then(n.bind(n,89478))},{id:"vue",name:"Vue",import:()=>Promise.all([n.e(92685),n.e(56015),n.e(43242),n.e(88148),n.e(28893)]).then(n.bind(n,28893))},{id:"vue-html",name:"Vue HTML",import:()=>Promise.all([n.e(92685),n.e(56015),n.e(43242),n.e(88148),n.e(28893),n.e(73915)]).then(n.bind(n,73915))},{id:"vue-vine",name:"Vue Vine",import:()=>Promise.all([n.e(92685),n.e(56015),n.e(18050),n.e(43242),n.e(88148),n.e(17527),n.e(57422),n.e(28893),n.e(14334)]).then(n.bind(n,35410))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>n.e(74823).then(n.bind(n,74823))},{id:"wasm",name:"WebAssembly",import:()=>n.e(43721).then(n.bind(n,43721))},{id:"wenyan",name:"Wenyan",aliases:["æè¨"],import:()=>n.e(89424).then(n.bind(n,89424))},{id:"wgsl",name:"WGSL",import:()=>n.e(95020).then(n.bind(n,95020))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>n.e(21002).then(n.bind(n,21002))},{id:"wit",name:"WebAssembly Interface Types",import:()=>n.e(6639).then(n.bind(n,6639))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>n.e(8426).then(n.bind(n,71931))},{id:"xml",name:"XML",import:()=>Promise.all([n.e(22824),n.e(41801)]).then(n.bind(n,41801))},{id:"xsl",name:"XSL",import:()=>Promise.all([n.e(22824),n.e(35003)]).then(n.bind(n,35003))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>n.e(52613).then(n.bind(n,52613))},{id:"zenscript",name:"ZenScript",import:()=>n.e(3725).then(n.bind(n,3725))},{id:"zig",name:"Zig",import:()=>n.e(3391).then(n.bind(n,3391))}],rN=Object.fromEntries(rP.map(e=>[e.id,e.import])),rT=Object.fromEntries(rP.flatMap(e=>{var t;return(null===(t=e.aliases)||void 0===t?void 0:t.map(t=>[t,e.import]))||[]})),rA={...rN,...rT},rL=Object.fromEntries([{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>n.e(800).then(n.bind(n,800))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>n.e(88613).then(n.bind(n,88613))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>n.e(51499).then(n.bind(n,51499))},{id:"catppuccin-frappe",displayName:"Catppuccin Frapp\xe9",type:"dark",import:()=>n.e(55548).then(n.bind(n,55548))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>n.e(33434).then(n.bind(n,33434))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>n.e(54947).then(n.bind(n,54947))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>n.e(65006).then(n.bind(n,65006))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>n.e(18899).then(n.bind(n,18899))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>n.e(48330).then(n.bind(n,48330))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>n.e(41574).then(n.bind(n,41574))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>n.e(21311).then(n.bind(n,21311))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>n.e(30658).then(n.bind(n,30658))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>n.e(95439).then(n.bind(n,95439))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>n.e(34081).then(n.bind(n,34081))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>n.e(86472).then(n.bind(n,86472))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>n.e(31694).then(n.bind(n,31694))},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>n.e(76894).then(n.bind(n,76894))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>n.e(57224).then(n.bind(n,57224))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>n.e(44230).then(n.bind(n,44230))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:()=>n.e(76688).then(n.bind(n,76688))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:()=>n.e(53169).then(n.bind(n,53169))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:()=>n.e(95858).then(n.bind(n,95858))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:()=>n.e(3925).then(n.bind(n,3925))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:()=>n.e(4238).then(n.bind(n,4238))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:()=>
1n.e(78521).then(n.bind(n,78521))},{id:"houston",displayName:"Houston",type:"dark",import:()=>n.e(16635).then(n.bind(n,16635))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>n.e(14964).then(n.bind(n,14964))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>n.e(95762).then(n.bind(n,95762))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>n.e(52110).then(n.bind(n,52110))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>n.e(56854).then(n.bind(n,56854))},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>n.e(26427).then(n.bind(n,26427))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>n.e(52973).then(n.bind(n,52973))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>n.e(38368).then(n.bind(n,38368))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>n.e(77364).then(n.bind(n,77364))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>n.e(90105).then(n.bind(n,90105))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>n.e(55055).then(n.bind(n,55055))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>n.e(78039).then(n.bind(n,78039))},{id:"min-light",displayName:"Min Light",type:"light",import:()=>n.e(37271).then(n.bind(n,37271))},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>n.e(79409).then(n.bind(n,79409))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>n.e(70394).then(n.bind(n,70394))},{id:"nord",displayName:"Nord",type:"dark",import:()=>n.e(84836).then(n.bind(n,84836))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>n.e(60705).then(n.bind(n,60705))},{id:"one-light",displayName:"One Light",type:"light",import:()=>n.e(21939).then(n.bind(n,21939))},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>n.e(14579).then(n.bind(n,14579))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>n.e(95233).then(n.bind(n,95233))},{id:"red",displayName:"Red",type:"dark",import:()=>n.e(42311).then(n.bind(n,42311))},{id:"rose-pine",displayName:"Ros\xe9 Pine",type:"dark",import:()=>n.e(23194).then(n.bind(n,23194))},{id:"rose-pine-dawn",displayName:"Ros\xe9 Pine Dawn",type:"light",import:()=>n.e(37400).then(n.bind(n,37400))},{id:"rose-pine-moon",displayName:"Ros\xe9 Pine Moon",type:"dark",import:()=>n.e(92324).then(n.bind(n,92324))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>n.e(15070).then(n.bind(n,15070))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>n.e(15601).then(n.bind(n,15601))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>n.e(75059).then(n.bind(n,75059))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>n.e(79553).then(n.bind(n,79553))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>n.e(28857).then(n.bind(n,28857))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>n.e(65166).then(n.bind(n,65166))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>n.e(37163).then(n.bind(n,37163))},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>n.e(83657).then(n.bind(n,83657))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>n.e(2819).then(n.bind(n,2819))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>n.e(24618).then(n.bind(n,2276))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>n.e(77789).then(n.bind(n,77789))}].map(e=>[e.id,e.import]));var rR=n(94144).Buffer;class rE extends Error{constructor(e){super(e),this.name="ShikiError"}}function rO(){return"undefined"!=typeof performance?performance.now():Date.now()}let rM=(e,t)=>e+(t-e%t)%t;async function rI(e){let t,n;let r={};function l(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}let i="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function a(e,t){return e?function(e,t,n=1024){let r=t+n,l=t;for(;e[l]&&!(l>=r);)++l;if(l-t>16&&e.buffer&&i)return i.decode(e.subarray(t,l));let a="";for(;t<l;){let n=e[t++];if(!(128&n)){a+=String.fromCharCode(n);continue}let r=63&e[t++];if((224&n)==192){a+=String.fromCharCode((31&n)<<6|r);continue}let l=63&e[t++];if((n=(240&n)==224?(15&n)<<12|r<<6|l:(7&n)<<18|r<<12|l<<6|63&e[t++])<65536)a+=String.fromCharCode(n);else{let e=n-65536;a+=String.fromCharCode(55296|e>>10,56320|1023&e)}}return a}(r.HEAPU8,e,t):""}let o={emscripten_get_now:rO,emscripten_memcpy_big:function(e,t,n){r.HEAPU8.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){let i=r.HEAPU8.length;if((e>>>=0)>2147483648)return!1;for(let r=1;r<=4;r*=2){let a=i*(1+.2/r);if(a=Math.min(a,e+100663296),function(e){try{return t.grow(e-n.byteLength+65535>>>16),l(t.buffer),1}catch{}}(Math.min(2147483648,rM(Math.max(e,a),65536))))return!0}return!1},fd_write:()=>0};async function s(){let n=await e({env:o,wasi_snapshot_preview1:o});l((t=n.memory).buffer),Object.assign(r,n),r.UTF8ToString=a}return await s(),r}var r$=Object.defineProperty,rD=(e,t,n)=>t in e?r$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,rj=(e,t,n)=>rD(e,"symbol"!=typeof t?t+"":t,n);let rz=null;class rB{constructor(e){rj(this,"utf16Length"),rj(this,"utf8Length"),rj(this,"utf16Value"),rj(this,"utf8Value"),rj(this,"utf16OffsetToUtf8"),rj(this,"utf8Off
1setToUtf16");let t=e.length,n=rB._utf8ByteLength(e),r=n!==t,l=r?new Uint32Array(t+1):null;r&&(l[t]=n);let i=r?new Uint32Array(n+1):null;r&&(i[n]=t);let a=new Uint8Array(n),o=0;for(let n=0;n<t;n++){let s=e.charCodeAt(n),u=s,c=!1;if(s>=55296&&s<=56319&&n+1<t){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(u=(s-55296<<10)+65536|t-56320,c=!0)}r&&(l[n]=o,c&&(l[n+1]=o),u<=127?i[o+0]=n:u<=2047?(i[o+0]=n,i[o+1]=n):u<=65535?(i[o+0]=n,i[o+1]=n,i[o+2]=n):(i[o+0]=n,i[o+1]=n,i[o+2]=n,i[o+3]=n)),u<=127?a[o++]=u:(u<=2047?a[o++]=192|(1984&u)>>>6:(u<=65535?a[o++]=224|(61440&u)>>>12:(a[o++]=240|(1835008&u)>>>18,a[o++]=128|(258048&u)>>>12),a[o++]=128|(4032&u)>>>6),a[o++]=128|(63&u)>>>0),c&&n++}this.utf16Length=t,this.utf8Length=n,this.utf16Value=e,this.utf8Value=a,this.utf16OffsetToUtf8=l,this.utf8OffsetToUtf16=i}static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){let l=e.charCodeAt(n),i=l,a=!1;if(l>=55296&&l<=56319&&n+1<r){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(i=(l-55296<<10)+65536|t-56320,a=!0)}i<=127?t+=1:i<=2047?t+=2:i<=65535?t+=3:t+=4,a&&n++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}let rG=class e{constructor(t){if(rj(this,"id",++e.LAST_ID),rj(this,"_onigBinding"),rj(this,"content"),rj(this,"utf16Length"),rj(this,"utf8Length"),rj(this,"utf16OffsetToUtf8"),rj(this,"utf8OffsetToUtf16"),rj(this,"ptr"),!rz)throw new rE("Must invoke loadWasm first.");this._onigBinding=rz,this.content=t;let n=new rB(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||(e._sharedPtr=rz.omalloc(1e4)),e._sharedPtrInUse=!0,rz.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(rz)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};rj(rG,"LAST_ID",0),rj(rG,"_sharedPtr",0),rj(rG,"_sharedPtrInUse",!1);class rF{constructor(e){if(rj(this,"_onigBinding"),rj(this,"_ptr"),!rz)throw new rE("Must invoke loadWasm first.");let t=[],n=[];for(let r=0,l=e.length;r<l;r++){let l=new rB(e[r]);t[r]=l.createString(rz),n[r]=l.utf8Length}let r=rz.omalloc(4*e.length);rz.HEAPU32.set(t,r/4);let l=rz.omalloc(4*e.length);rz.HEAPU32.set(n,l/4);let i=rz.createOnigScanner(r,l,e.length);for(let n=0,r=e.length;n<r;n++)rz.ofree(t[n]);rz.ofree(l),rz.ofree(r),0===i&&function(e){throw new rE(e.UTF8ToString(e.getLastO
1nigError()))}(rz),this._onigBinding=rz,this._ptr=i}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=0;if("number"==typeof n&&(r=n),"string"==typeof e){e=new rG(e);let n=this._findNextMatchSync(e,t,!1,r);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,r)}_findNextMatchSync(e,t,n,r){let l=this._onigBinding,i=l.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r);if(0===i)return null;let a=l.HEAPU32,o=i/4,s=a[o++],u=a[o++],c=[];for(let t=0;t<u;t++){let n=e.convertUtf8OffsetToUtf16(a[o++]),r=e.convertUtf8OffsetToUtf16(a[o++]);c[t]={start:n,end:r,length:r-n}}return{index:s,captureIndices:c}}}function rU(e){return t=>WebAssembly.instantiate(e,t)}async function rq(e){return e&&await (l||(l=async function(){rz=await rI(async t=>{let n=e;if("function"==typeof(n=await n)&&(n=await n(t)),"function"==typeof n&&(n=await n(t)),"function"==typeof n.instantiator)n=await n.instantiator(t);else if("function"==typeof n.default)n=await n.default(t);else{var r,l,i,a;(void 0!==n.data&&(n=n.data),r=n,"undefined"!=typeof Response&&r instanceof Response)?"function"==typeof WebAssembly.instantiateStreaming?n=await (i=n,e=>WebAssembly.instantiateStreaming(i,e))(t):n=await (a=n,async e=>{let t=await a.arrayBuffer();return WebAssembly.instantiate(t,e)})(t):(l=n,"undefined"!=typeof ArrayBuffer&&(l instanceof ArrayBuffer||ArrayBuffer.isView(l))||void 0!==rR&&rR.isBuffer?.(l)||"undefined"!=typeof SharedArrayBuffer&&l instanceof SharedArrayBuffer||"undefined"!=typeof Uint32Array&&l instanceof Uint32Array)?n=await rU(n)(t):n instanceof WebAssembly.Module?n=await rU(n)(t):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await rU(n.default)(t))}return"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n})}())),{createScanner:e=>new rF(e.map(e=>"string"==typeof e?e:e.source)),createString:e=>new rG(e)}}let{codeToHtml:rH,codeToHast:rW,codeToTokens:rV,codeToTokensBase:rK,codeToTokensWithThemes:rX,getSingletonHighlighter:rZ,getLastGrammarState:rQ}=function(e,t){let n;let r=async function(t={}){if(!n)return n=e({...t,themes:t.themes||[],langs:t.langs||[]});{let e=await n;return await Promise.all([e.loadTheme(...t.themes||[]),e.loadLanguage(...t.langs||[])]),e}};async function l(e,n){let l=await r({langs:[n.lang],themes:"theme"in n?[n.theme]:Object.values(n.themes)}),i=await t?.guessEmbeddedLanguages?.(e,n.lang,l);return i&&await l.loadLanguage(...i),l}return{getSingletonHighlighter:e=>r(e),codeToHtml:async(e,t)=>(await l(e,t)).codeToHtml(e,t),codeToHast:async(e,t)=>(await l(e,t)).codeToHast(e,t),codeToTokens:async(e,t)=>(await l(e,t)).codeToTokens(e,t),codeToTokensBase:async(e,t)=>(await l(e,t)).codeToTokensBase(e,t),codeToTokensWithThemes:async(e,t)=>(await l(e,t)).codeToTokensWithThemes(e,t),getLastGrammarState:async(e,t)=>(await r({langs:[t.lang],themes:[t.theme]})).getLastGrammarState(e,t)}}(function(e){let t=e.langs,n=e.themes,r=e.engine;return async function(e){function l(n){if("string"==typeof n){if(nY(n))return[];let r=t[n=e.langAlias?.[n]||n];if(!r)throw new eq(`Language \`${n}\` is not included in this bundle. You may want to load it from external source.`);return r}return n}function i(e){if(nJ(e))return"none";if("string"==typeof e){let t=n[e];if(!t)throw new eq(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}let a=(e.themes??[]).map(e=>i(e)),o=(e.langs??[]).map(e=>l(e)),s=await rC({engine:e.engine??r(),...e,themes:a,langs:o});return{...s,loadLanguage:(...e)=>s.loadLanguage(...e.map(l)),loadTheme:(...e)=>s.loadTheme(...e.map(i)),getBundledLanguages:()=>t,getBundledThemes:()=>n}}}({langs:rA,themes:rL,engine:()=>rq(Promise.all([n.e(88295),n.e(91491)]).then(n.bind(n,7769)))}),{guessEmbeddedLanguages:function(e,t,n){let r=new Set;for(let t of e.matchAll(/lang=["']([\w-]+)["']/g))r.add(t[1]);for(let t of e.matchAll(/(?:```|~~~)([\w-]+)/g))r.add(t[1]);for(let t of e.matchAll(/\\begin\{([\w-]+)\}/g))r.add(t[1]);if(!n)return Array.from(r);let l=n.getBundledLanguages();return Array.from(r).filter(e=>e&&l[e])}});var rY=n(98099);let rJ=e=>{let t=r4(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{let n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),r0(n,t)||r2(e)},getConflictingClassGroupIds:(e,t)=>{let l=n[e]||[];return t&&r[e]?[...l,...r[e]]:l}}},r0=(e,t)=>{var n;if(0===e.length)return t.classGroupId;let r=e[0],l=t.nextPart.get(r),i=l?r0(e.slice(1),l):void 0;if(i)return i;if(0===t.validators.length)return;let a=e.join("-");return null===(n=t.validators.find(e=>{let{validator:t}=e;return t(a)}))||void 0===n?void 0:n.classGroupId},r1=/^\[(.+)\]$/,r2=e=>{if(r1.test(e)){let t=r1.exec(e)[1],n=null==t?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},r4=e=>{let{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(let e in n)r8(n[e],r,e,t);return r},r8=(e,t,n,r)=>
1{e.forEach(e=>{if("string"==typeof e){(""===e?t:r3(t,e)).classGroupId=n;return}if("function"==typeof e){if(r6(e)){r8(e(r),t,n,r);return}t.validators.push({validator:e,classGroupId:n});return}Object.entries(e).forEach(e=>{let[l,i]=e;r8(i,r3(t,l),n,r)})})},r3=(e,t)=>{let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},r6=e=>e.isThemeGetter,r5=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=new Map,r=new Map,l=(l,i)=>{n.set(l,i),++t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(l(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):l(e,t)}}},r9=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t;let n=[],r=0,l=0,i=0;for(let a=0;a<e.length;a++){let o=e[a];if(0===r&&0===l){if(":"===o){n.push(e.slice(i,a)),i=a+1;continue}if("/"===o){t=a;continue}}"["===o?r++:"]"===o?r--:"("===o?l++:")"===o&&l--}let a=0===n.length?e:e.substring(i),o=r7(a);return{modifiers:n,hasImportantModifier:o!==a,baseClassName:o,maybePostfixModifierPosition:t&&t>i?t-i:void 0}};if(t){let e=t+":",n=r;r=t=>t.startsWith(e)?n(t.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:t,maybePostfixModifierPosition:void 0}}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},r7=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,le=e=>{let t=Object.fromEntries(e.orderSensitiveModifiers.map(e=>[e,!0]));return e=>{if(e.length<=1)return e;let n=[],r=[];return e.forEach(e=>{"["===e[0]||t[e]?(n.push(...r.sort(),e),r=[]):r.push(e)}),n.push(...r.sort()),n}},lt=e=>({cache:r5(e.cacheSize),parseClassName:r9(e),sortModifiers:le(e),...rJ(e)}),ln=/\s+/,lr=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:l,sortModifiers:i}=t,a=[],o=e.trim().split(ln),s="";for(let e=o.length-1;e>=0;e-=1){let t=o[e],{isExternal:u,modifiers:c,hasImportantModifier:d,baseClassName:h,maybePostfixModifierPosition:p}=n(t);if(u){s=t+(s.length>0?" "+s:s);continue}let m=!!p,g=r(m?h.substring(0,p):h);if(!g){if(!m||!(g=r(h))){s=t+(s.length>0?" "+s:s);continue}m=!1}let f=i(c).join(":"),b=d?f+"!":f,y=b+g;if(a.includes(y))continue;a.push(y);let k=l(g,m);for(let e=0;e<k.length;++e){let t=k[e];a.push(b+t)}s=t+(s.length>0?" "+s:s)}return s};function ll(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=li(e))&&(r&&(r+=" "),r+=t);return r}let li=e=>{let t;if("string"==typeof e)return e;let n="";for(let r=0;r<e.length;r++)e[r]&&(t=li(e[r]))&&(n&&(n+=" "),n+=t);return n},la=e=>{let t=t=>t[e]||[];return t.isThemeGetter=!0,t},lo=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ls=/^\((?:(\w[\w-]*):)?(.+)\)$/i,lu=/^\d+\/\d+$/,lc=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ld=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,lh=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,lp=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,lm=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,lg=e=>lu.test(e),lf=e=>!!e&&!Number.isNaN(Number(e)),lb=e=>!!e&&Number.isInteger(Number(e)),ly=e=>e.endsWith("%")&&lf(e.slice(0,-1)),lk=e=>lc.test(e),lx=()=>!0,lw=e=>ld.test(e)&&!lh.test(e),lv=()=>!1,lS=e=>lp.test(e),l_=e=>lm.test(e),lC=e=>!lN(e)&&!lO(e),lP=e=>lB(e,lq,lv),lN=e=>lo.test(e),lT=e=>lB(e,lH,lw),lA=e=>lB(e,lW,lf),lL=e=>lB(e,lF,lv),lR=e=>lB(e,lU,l_),lE=e=>lB(e,lK,lS),lO=e=>ls.test(e),lM=e=>lG(e,lH),lI=e=>lG(e,lV),l$=e=>lG(e,lF),lD=e=>lG(e,lq),lj=e=>lG(e,lU),lz=e=>lG(e,lK,!0),lB=(e,t,n)=>{let r=lo.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},lG=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=ls.exec(e);return!!r&&(r[1]?t(r[1]):n)},lF=e=>"position"===e||"percentage"===e,lU=e=>"image"===e||"url"===e,lq=e=>"length"===e||"size"===e||"bg-size"===e,lH=e=>"length"===e,lW=e=>"number"===e,lV=e=>"family-name"===e,lK=e=>"shadow"===e,lX=function(e){let t,n,r;for(var l=arguments.length,i=Array(l>1?l-1:0),a=1;a<l;a++)i[a-1]=arguments[a];let o=function(l){return n=(t=lt(i.reduce((e,t)=>
vendor: 4,336 bytes, line 1
1t(e),e()))).cache.get,r=t.cache.set,o=s,s(l)};function s(e){let l=n(e);if(l)return l;let i=lr(e,t);return r(e,i),i}return function(){return o(ll.apply(null,arguments))}}(()=>{let e=la("color"),t=la("font"),n=la("text"),r=la("font-weight"),l=la("tracking"),i=la("leading"),a=la("breakpoint"),o=la("container"),s=la("spacing"),u=la("radius"),c=la("shadow"),d=la("inset-shadow"),h=la("text-shadow"),p=la("drop-shadow"),m=la("blur"),g=la("perspective"),f=la("aspect"),b=la("ease"),y=la("animate"),k=()=>["auto","avoid","all","avoid-page","page","left","right","column"],x=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],w=()=>[...x(),lO,lN],v=()=>["auto","hidden","clip","visible","scroll"],S=()=>["auto","contain","none"],_=()=>[lO,lN,s],C=()=>[lg,"full","auto",..._()],P=()=>[lb,"none","subgrid",lO,lN],N=()=>["auto",{span:["full",lb,lO,lN]},lb,lO,lN],T=()=>[lb,"auto",lO,lN],A=()=>["auto","min","max","fr",lO,lN],L=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],R=()=>["start","end","center","stretch","center-safe","end-safe"],E=()=>["auto",..._()],O=()=>[lg,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",..._()],M=()=>[e,lO,lN],I=()=>[...x(),l$,lL,{position:[lO,lN]}],$=()=>["no-repeat",{repeat:["","x","y","space","round"]}],D=()=>["auto","cover","contain",lD,lP,{size:[lO,lN]}],j=()=>[ly,lM,lT],z=()=>["","none","full",u,lO,lN],B=()=>["",lf,lM,lT],G=()=>["solid","dashed","dotted","double"],F=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],U=()=>[lf,ly,l$,lL],q=()=>["","none",m,lO,lN],H=()=>["none",lf,lO,lN],W=()=>["none",lf,lO,lN],V=()=>[lf,lO,lN],K=()=>[lg,"full",..._()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[lk],breakpoint:[lk],color:[lx],container:[lk],"drop-shadow":[lk],ease:["in","out","in-out"],font:[lC],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[lk],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[lk],shadow:[lk],spacing:["px",lf],text:[lk],"text-shadow":[lk],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",lg,lN,lO,f]}],container:["container"],columns:[{columns:[lf,lN,lO,o]}],"break-after":[{"break-after":k()}],"break-before":[{"break-before":k()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:w()}],overflow:[{overflow:v()}],"overflow-x":[{"overflow-x":v()}],"overflow-y":[{"overflow-y":v()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:C()}],"inset-x":[{"inset-x":C()}],"inset-y":[{"inset-y":C()}],start:[{start:C()}],end:[{end:C()}],top:[{top:C()}],right:[{right:C()}],bottom:[{bottom:C()}],left:[{left:C()}],visibility:["visible","invisible","collapse"],z:[{z:[lb,"auto",lO,lN]}],basis:[{basis:[lg,"full","auto",o,..._()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[lf,lg,"auto","initial","none",lN]}],grow:[{grow:["",lf,lO,lN]}],shrink:[{shrink:["",lf,lO,lN]}],order:[{order:[lb,"first","last","none",lO,lN]}],"grid-cols":[{"grid-cols":P()}],"col-start-end":[{col:N()}],"col-start":[{"col-start":T()}
vendor: 8,829 bytes, line 1
1],"col-end":[{"col-end":T()}],"grid-rows":[{"grid-rows":P()}],"row-start-end":[{row:N()}],"row-start":[{"row-start":T()}],"row-end":[{"row-end":T()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":A()}],"auto-rows":[{"auto-rows":A()}],gap:[{gap:_()}],"gap-x":[{"gap-x":_()}],"gap-y":[{"gap-y":_()}],"justify-content":[{justify:[...L(),"normal"]}],"justify-items":[{"justify-items":[...R(),"normal"]}],"justify-self":[{"justify-self":["auto",...R()]}],"align-content":[{content:["normal",...L()]}],"align-items":[{items:[...R(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...R(),{baseline:["","last"]}]}],"place-content":[{"place-content":L()}],"place-items":[{"place-items":[...R(),"baseline"]}],"place-self":[{"place-self":["auto",...R()]}],p:[{p:_()}],px:[{px:_()}],py:[{py:_()}],ps:[{ps:_()}],pe:[{pe:_()}],pt:[{pt:_()}],pr:[{pr:_()}],pb:[{pb:_()}],pl:[{pl:_()}],m:[{m:E()}],mx:[{mx:E()}],my:[{my:E()}],ms:[{ms:E()}],me:[{me:E()}],mt:[{mt:E()}],mr:[{mr:E()}],mb:[{mb:E()}],ml:[{ml:E()}],"space-x":[{"space-x":_()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":_()}],"space-y-reverse":["space-y-reverse"],size:[{size:O()}],w:[{w:[o,"screen",...O()]}],"min-w":[{"min-w":[o,"screen","none",...O()]}],"max-w":[{"max-w":[o,"screen","none","prose",{screen:[a]},...O()]}],h:[{h:["screen","lh",...O()]}],"min-h":[{"min-h":["screen","lh","none",...O()]}],"max-h":[{"max-h":["screen","lh",...O()]}],"font-size":[{text:["base",n,lM,lT]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,lO,lA]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ly,lN]}],"font-family":[{font:[lI,lN,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[l,lO,lN]}],"line-clamp":[{"line-clamp":[lf,"none",lO,lA]}],leading:[{leading:[i,..._()]}],"list-image":[{"list-image":["none",lO,lN]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",lO,lN]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:M()}],"text-color":[{text:M()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...G(),"wavy"]}],"text-decoration-thickness":[{decoration:[lf,"from-font","auto",lO,lT]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[lf,"auto",lO,lN]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:_()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",lO,lN]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",lO,lN]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:I()}],"bg-repeat":[{bg:$()}],"bg-size":[{bg:D()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},lb,lO,lN],radial:["",lO,lN],conic:[lb,lO,lN]},lj,lR]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:j()}],"gradient-via-pos":[{via:j()}],"gradient-to-pos":[{to:j()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:z()}],"rounded-s":[{"rounded-s":z()}],"rounded-e":[{"rounded-e":z()}],"rounded-t":[{"rounded-t":z()}],"rounded-r":[{"rounded-r":z()}],"rounded-b":[{"rounded-b":z()}],"rounded-l":[{"rounded-l":z()}],"rounded-ss":[{"rounded-ss":z()}],"rounded-se":[{"rounded-se":z()}],"rounded-ee":[{"rounded-ee":z()}],"rounded-es":[{"rounded-es":z()}],"rounded-tl":[{"rounded-tl":z()}],"rounded-tr":[{"rounded-tr":z()}],"rounded-br":[{"rounded-br":z()}],"rounded-bl":[{"rounded-bl":z()}],"border-w":[{border:B()}],"border-w-x":[{"border-x":B()}],"border-w-y":[{"border-y":B()}],"border-w-s":[{"border-s":B()}],"border-w-e":[{"border-e":B()}],"border-w-t":[{"border-t":B()}],"border-w-r":[{"border-r":B()}],"border-w-b":[{"border-b":B()}],"border-w-l":[{"border-l":B()}],"divide-x":[{"divide-x":B()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":B()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...G(),"hidden","none"]}],"divide-style":[{divide:[...G(),"hidden","none"]}],"border-color":[{border:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:[...G(),"none","hidden"]}],"outline-offset":[{"outline-offset":[lf,lO,lN]}],"outline-w":[{outline:["",lf,lM,lT]}],"outline-color":[{outline:M()}],shadow:[{shadow:["","none",c,lz,lE]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":["none",d,lz,lE]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[lf,lT]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":B()}],"inset-ring-color":[{"inset-ring":M()}],"text-shadow":[{"text-shadow":["none",h,lz,lE]}],"text-shadow-color":[{"text-shadow":M()}],opacity:[{opacity:[lf,lO,lN]}],"mix-blend":[{"mix-blend":[...F(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":F()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[lf]}],"mask-image-linear-from-pos":[{"mask-linear-from":U()}],"mask-image-linear-to-pos":[{"mask-linear-to":U()}],"mask-image-linear-from-color":[{"mask-linear-from":M()}],"mask-image-linear-to-color":[{"mask-linear-to":M()}],"mask-image-t-from-pos":[{"mask-t-from":U()}],"mask-image-t-to-pos":[{"mask-t-to":U()}],"mask-image-t-from-color":[{"mask-t-from":M()}],"mask-image-t-to-color":[{"mask-t-to":M()}],"mask-image-r-from-pos":[{"mask-r-from":U()}],"mask-image-r-to-pos":[{"mask-r-to":U()}],"mask-image-r-from-color":[{"mask-r-from":M()}],"mask-image-r-to-color":[{"mask-r-to":M()}],"mask-image-b-from-pos":[{"mask-b-from":U()}],"mask-image-b-to-pos":[{"mask-b-to":U()}],"mask-image-b-from-color":[{"mask-b-from":M()}],"mask-image-b-to-color":[{"mask-b-to":M()}],"mask-image-l-from-pos":[{"mask-l-from":U()}],"mask-image-l-to-pos":[{"mask-l-to":U()}],"mask-image-l-from-color":[{"mask-l-from":M()}],"mask-image-l-to-color":[{"mask-l-to":M()}],"mask-image-x-from-pos":[{"mask-x-from":U()}],"mask-image-x-to-pos":[{"mask-x-to":U()}],"mask-image-x-from-color":[{"mask-x-from":M()}],"mask-image-x-to-color":[{"mask-x-to":M()}],"mask-image-y-from-pos":[{"mask-y-from":U()}],"mask-image-y-to-pos":[{"mask-y-to":U()}],"mask-image-y-from-color":[{"mask-y-from":M()}],"mask-image-y-to-color":[{"mask-y-to":M()}],"mask-image-radial":[{"mask-radial":[lO,lN]}],"mask-image-radial-from-pos":[{"mask-radial-from":U()}],"mask-image-radial-to-pos":[{"mask-radial-to":U()}],"mask-image-radial-from-color":[{"mask-radial-from":M()}],"mask-image-radial-to-color":[{"mask-radial-to":M()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":x()}],"mask-image-conic-pos":[{"mask-conic":[lf]}],"mask-image-conic-from-pos":[{"mask-conic-from":U()}],"mask-image-conic-to-pos":[{"mask-conic-to":U()}],"mask-image-conic-from-color":[{"mask-conic-from":M()}],"mask-image-conic-to-color":[{"mask-conic-to":M()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:I()}],"mask-repeat":[{mask:$()}],"mask-size":[{mask:D()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",lO,lN]}],filter:[{filter:["","none",lO,lN]}],blur:[{blur:q()}],brightness:[{brightness:[lf,lO,lN]}],contrast:[{contrast:[lf,lO,lN]}],"drop-shadow":[{"drop-shadow":["","none",p,lz,lE]}
vendor: 7,578 bytes, line 1
1],"drop-shadow-color":[{"drop-shadow":M()}],grayscale:[{grayscale:["",lf,lO,lN]}],"hue-rotate":[{"hue-rotate":[lf,lO,lN]}],invert:[{invert:["",lf,lO,lN]}],saturate:[{saturate:[lf,lO,lN]}],sepia:[{sepia:["",lf,lO,lN]}],"backdrop-filter":[{"backdrop-filter":["","none",lO,lN]}],"backdrop-blur":[{"backdrop-blur":q()}],"backdrop-brightness":[{"backdrop-brightness":[lf,lO,lN]}],"backdrop-contrast":[{"backdrop-contrast":[lf,lO,lN]}],"backdrop-grayscale":[{"backdrop-grayscale":["",lf,lO,lN]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[lf,lO,lN]}],"backdrop-invert":[{"backdrop-invert":["",lf,lO,lN]}],"backdrop-opacity":[{"backdrop-opacity":[lf,lO,lN]}],"backdrop-saturate":[{"backdrop-saturate":[lf,lO,lN]}],"backdrop-sepia":[{"backdrop-sepia":["",lf,lO,lN]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":_()}],"border-spacing-x":[{"border-spacing-x":_()}],"border-spacing-y":[{"border-spacing-y":_()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",lO,lN]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[lf,"initial",lO,lN]}],ease:[{ease:["linear","initial",b,lO,lN]}],delay:[{delay:[lf,lO,lN]}],animate:[{animate:["none",y,lO,lN]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,lO,lN]}],"perspective-origin":[{"perspective-origin":w()}],rotate:[{rotate:H()}],"rotate-x":[{"rotate-x":H()}],"rotate-y":[{"rotate-y":H()}],"rotate-z":[{"rotate-z":H()}],scale:[{scale:W()}],"scale-x":[{"scale-x":W()}],"scale-y":[{"scale-y":W()}],"scale-z":[{"scale-z":W()}],"scale-3d":["scale-3d"],skew:[{skew:V()}],"skew-x":[{"skew-x":V()}],"skew-y":[{"skew-y":V()}],transform:[{transform:[lO,lN,"","none","gpu","cpu"]}],"transform-origin":[{origin:w()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:K()}],"translate-x":[{"translate-x":K()}],"translate-y":[{"translate-y":K()}],"translate-z":[{"translate-z":K()}],"translate-none":["translate-none"],accent:[{accent:M()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:M()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",lO,lN]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",lO,lN]}],fill:[{fill:["none",...M()]}],"stroke-w":[{stroke:[lf,lM,lT,lA]}],stroke:[{stroke:["none",...M()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function lZ(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var lQ=lZ(),lY={exec:()=>null};function lJ(e,t=""){let n="string"==typeof e?e:e.source,r={replace:(e,t)=>{let l="string"==typeof t?t:t.source;return l=l.replace(l0.caret,"$1"),n=n.replace(e,l),r},getRegex:()=>new RegExp(n,t)};return r}var l0={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine
vendor: 4,163 bytes, line 1
1:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},l1=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,l2=/(?:[*+-]|\d{1,9}[.)])/,l4=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,l8=lJ(l4).replace(/bull/g,l2).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),l3=lJ(l4).replace(/bull/g,l2).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),l6=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,l5=/(?!\s*\])(?:\\.|[^\[\]\\])+/,l9=lJ(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",l5).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),l7=lJ(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,l2).getRegex(),ie="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",it=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ir=lJ("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",it).replace("tag",ie).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),il=lJ(l6).replace("hr",l1).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ie).getRegex(),ii={blockquote:lJ(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",il).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:l9,fences:/^ {0,3}(`{3,}
1(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:l1,html:ir,lheading:l8,list:l7,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:il,table:lY,text:/^[^\n]+/},ia=lJ("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",l1).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ie).getRegex(),io={...ii,lheading:l3,table:ia,paragraph:lJ(l6).replace("hr",l1).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",ia).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ie).getRegex()},is={...ii,html:lJ(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",it).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:lY,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:lJ(l6).replace("hr",l1).replace("heading",` *#{1,6} *[^ 2]`).replace("lheading",l8).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},iu=/^( {2,}|\\)\n(?!\s*$)/,ic=/[\p{P}\p{S}]/u,id=/[\s\p{P}\p{S}]/u,ih=/[^\s\p{P}\p{S}]/u,ip=lJ(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,id).getRegex(),im=/(?!~)[\p{P}\p{S}]/u,ig=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,ib=lJ(ig,"u").replace(/punct/g,ic).getRegex(),iy=lJ(ig,"u").replace(/punct/g,im).getRegex(),ik="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",ix=lJ(ik,"gu").replace(/notPunctSpace/g,ih).replace(/punctSpace/g,id).replace(/punct/g,ic).getRegex(),iw=lJ(ik,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,im).getRegex(),iv=lJ("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,ih).replace(/punctSpace/g,id).replace(/punct/g,ic).getRegex(),iS=lJ(/\\(punct)/,"gu").replace(/punct/g,ic).getRegex(),i_=lJ(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),iC=lJ(it).replace("(?:-->|$)","-->").getRegex(),iP=lJ("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",iC).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),iN=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,iT=lJ(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",iN).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),iA=lJ(/^!?\[(label)\]\[(ref)\]/).replace("label",iN).replace("ref",l5).getRegex(),iL=lJ(/^!?\[(ref)\](?:\[\])?/).replace("ref",l5).getRegex(),iR=lJ("reflink|nolink(?!\\()","g").replace("reflink",iA).replace("nolink",iL).getRegex(),iE={_backpedal:lY,anyPunctuation:iS,autolink:i_,blockSkip:/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,br:iu,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:lY,emStrongLDelim:ib,emStrongRDelimAst:ix,emStrongRDelimUnd:iv,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:iT,nolink:iL,punctuation:ip,reflink:iA,reflinkSearch:iR,tag:iP,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:lY},iO={...iE,link:lJ(/^!?\[(label)\]\((.*?)\)/).replace("label",iN).getRegex(),reflink:lJ(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",iN).getRegex()},iM={...iE,emStrongRDelimAst:iw,emStrongLDelim:iy,url:lJ(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},iI={...iM,br:lJ(iu).replace("{2,}","*").getRegex(),text:lJ(iM.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},i$={normal:ii,gfm:io,pedantic:is},iD={normal:iE,gfm:iM,breaks:iI,pedantic:iO},ij={"&":"&","<":"<",">":">",'"':""","'":"'"},iz=e=>ij[e];function iB(e,t){if(t){if(l0.escapeTest.test(e))return e.replace(l0.escapeReplace,iz)}else if(l0.escapeTestNoEncode.test(e))return e.replace(l0.escapeReplaceNoEncode,iz);return e}function iG(e){try{e=encodeURI(e).replace(l0.percentDecode,"%")}catch{return null}return e}function iF(e,t){let n=e.replace(l0.findPipe,(e,t,n)=>{let r=!1,l=t;for(;--l>=0&&"\\"===n[l];)r=!r;return r?"|":" |"}).split(l0.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t){if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("")}for(;r<n.length;r++)n[r]=n[r].trim().replace(l0.slashPipe,"|");return n}function iU(e,t,n){let r=e.length;if(0===r)return"";let l=0;for(;l<r;){let i=e.charAt(r-l-1);if(i!==t||n){if(i!==t&&n)l++;else break}else l++}return e.slice(0,r-l)}function iq(e,t,n,r,l){let i=t.href,a=t.title||null,o=e[1].replace(l.other.outputLinkReplace,"$1");r.state.inLink=!0;let s={type:"!"===e[0].charAt(0)?"image":"link",raw:n,href:i,title:a,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,s}var iH=class{options;rules;lexer;constructor(e){this.options=e||lQ}
2space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:iU(e,` 3`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=function(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(null===r)return t;let l=r[1];return t.split(` 4`).map(e=>{let t=e.match(n.other.beginningSpace);if(null===t)return e;let[r]=t;return r.length>=l.length?e.slice(l.length):e}).join(` 5`)}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=iU(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:iU(t[0],` 6`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=iU(t[0],` 7`).split(` 8`),n="",r="",l=[];for(;e.length>0;){let t=!1,i=[],a;for(a=0;a<e.length;a++)if(this.rules.other.blockquoteStart.test(e[a]))i.push(e[a]),t=!0;else if(t)break;else i.push(e[a]);e=e.slice(a);let o=i.join(` 9`),s=o.replace(this.rules.other.blockquoteSetextReplace,` 10 $1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n} 11${o}`:o,r=r?`${r} 12${s}`:s;let u=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(s,l,!0),this.lexer.state.top=u,0===e.length)break;let c=l.at(-1);if(c?.type==="code")break;if(c?.type==="blockquote"){let t=c.raw+` 13`+e.join(` 14`),i=this.blockquote(t);l[l.length-1]=i,n=n.substring(0,n.length-c.raw.length)+i.raw,r=r.substring(0,r.length-c.text.length)+i.text;break}if(c?.type==="list"){let t=c.raw+` 15`+e.join(` 16`),i=this.list(t);l[l.length-1]=i,n=n.substring(0,n.length-c.raw.length)+i.raw,r=r.substring(0,r.length-c.raw.length)+i.raw,e=t.substring(l.at(-1).raw.length).split(` 17`);continue}}return{type:"blockquote",raw:n,tokens:l,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,l={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let i=this.rules.other.listItemRegex(n),a=!1;for(;e;){let n=!1,r="",o="";if(!(t=i.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let s=t[2].split(` 18`,1)[0].replace(this.rules.other.listReplaceTabs,e=>" ".repeat(3*e.length)),u=e.split(` 19`,1)[0],c=!s.trim(),d=0;if(this.options.pedantic?(d=2,o=s.trimStart()):c?d=t[1].length+1:(d=(d=t[2].search(this.rules.other.nonSpaceChar))>4?1:d,o=s.slice(d),d+=t[1].length),c&&this.rules.other.blankLine.test(u)&&(r+=u+` 20`,e=e.substring(u.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),l=this.rules.other.fencesBeginRegex(d),i=this.rules.other.headingBeginRegex(d),a=this.rules.other.htmlBeginRegex(d);for(;e;){let h=e.split(` 21`,1)[0],p;if(u=h,p=this.options.pedantic?u=u.replace(this.rules.other.listReplaceNesting," "):u.replace(this.rules.other.tabCharGlobal," "),l.test(u)||i.test(u)||a.test(u)||t.test(u)||n.test(u))break;if(p.search(this.rules.other.nonSpaceChar)>=d||!u.trim())o+=` 22`+p.slice(d);else{if(c||s.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||l.test(s)||i.test(s)||n.test(s))break;o+=` 23`+u}c||u.trim()||(c=!0),r+=h+` 24`,e=e.substring(h.length+1),s=p.slice(d)}}l.loose||(a?l.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(a=!0));let h=null,p;this.options.gfm&&(h=this.rules.other.listIsTask.exec(o))&&(p="[ ] "!==h[0],o=o.replace(this.rules.other.listReplaceTask,"")),l.items.push({type:"list_item",raw:r,task:!!h,checked:p,loose:!1,text:o,tokens:[]}),l.raw+=r}let o=l.items.at(-1);if(!o)return;o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd(),l.raw=l.raw.trimEnd();for(let e=0;e<l.items.length;e++)if(this.lexer.state.top=!1,l.items[e].tokens=this.lexer.blockTokens(l.items[e].text,[]),!l.loose){let t=l.items[e].tokens.filter(e=>
24"space"===e.type),n=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw));l.loose=n}if(l.loose)for(let e=0;e<l.items.length;e++)l.items[e].loose=!0;return l}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=iF(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),l=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(` 25`):[],i={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?i.align.push("right"):this.rules.other.tableAlignCenter.test(e)?i.align.push("center"):this.rules.other.tableAlignLeft.test(e)?i.align.push("left"):i.align.push(null);for(let e=0;e<n.length;e++)i.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:i.align[e]});for(let e of l)i.rows.push(iF(e,i.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:i.align[t]})));return i}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===` 26`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=iU(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e,t){if(-1===e.indexOf(")"))return -1;let n=0;for(let t=0;t<e.length;t++)if("\\"===e[t])t++;else if("("===e[t])n++;else if(")"===e[t]&&--n<0)return t;return n>0?-2:-1}(t[2],"()");if(-2===e)return;if(e>-1){let n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),iq(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return iq(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,l,i,a=n,o=0,s="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(s.lastIndex=0,t=t.slice(-1*e.length+n);null!=(r=s.exec(t));){if(!(l=r[1]||r[2]||r[3]||r[4]||r[5]||r[6]))continue;if(i=[...l].length,r[3]||r[4]){a+=i;continue}if((r[5]||r[6])&&n%3&&!((n+i)%3)){o+=i;continue}if((a-=i)>0)continue;i=Math.min(i,i+a+o);let t=[...r[0]][0].length,s=e.slice(0,n+r.index+t+i);if(Math.min(n,i)%2){let e=s.slice(1,-1);return{type:"em",raw:s,text:e,tokens:this.lexer.inlineTokens(e)}}let u=s.slice(2,-2);return{type:"strong",raw:s,text:u,tokens:this.lexer.inlineTokens(u)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return n="@"===t[2]?"mailto:"+(e=t[1]):e=t[1],{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if("@"===t[2])n="mailto:"+(e=t[0]);else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(r!==t[0]);e=t[0],n="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}},iW=class e{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||lQ,this.options.tokenizer=this.options.tokenizer||new iH,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:l0,block:i$.normal,inline:iD.normal};this.options.pedantic?(t.block=i$.pedantic,t.inline=iD.pedantic):this.options.gfm&&(t.block=i$.gfm,this.options.breaks?t.inline=iD.breaks:t.inline=iD.gfm),this.tokenizer.rules=t}static get rules(){return{block:i$,inline:iD}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(l0.carriageReturn,` 27`),this.blockTokens(e,this.tokens);for(let e=0;
27e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){for(this.options.pedantic&&(e=e.replace(l0.tabCharGlobal," ").replace(l0.spaceLine,""));e;){let r;if(this.options.extensions?.block?.some(n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let n=t.at(-1);1===r.raw.length&&void 0!==n?n.raw+=` 28`:t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type==="paragraph"||n?.type==="text"?(n.raw+=(n.raw.endsWith(` 29`)?"":` 30`)+r.raw,n.text+=` 31`+r.text,this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if((r=this.tokenizer.fences(e))||(r=this.tokenizer.heading(e))||(r=this.tokenizer.hr(e))||(r=this.tokenizer.blockquote(e))||(r=this.tokenizer.list(e))||(r=this.tokenizer.html(e))){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type==="paragraph"||n?.type==="text"?(n.raw+=(n.raw.endsWith(` 32`)?"":` 33`)+r.raw,n.text+=` 34`+r.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},t.push(r));continue}if((r=this.tokenizer.table(e))||(r=this.tokenizer.lheading(e))){e=e.substring(r.raw.length),t.push(r);continue}let l=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{"number"==typeof(r=e.call({lexer:this},n))&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(l=e.substring(0,t+1))}if(this.state.top&&(r=this.tokenizer.paragraph(l))){let i=t.at(-1);n&&i?.type==="paragraph"?(i.raw+=(i.raw.endsWith(` 35`)?"":` 36`)+r.raw,i.text+=` 37`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=i.text):t.push(r),n=l.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type==="text"?(n.raw+=(n.raw.endsWith(` 38`)?"":` 39`)+r.raw,n.text+=` 40`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n=e,r=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(r=this.tokenizer.rules.inline.reflinkSearch.exec(n));)e.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(r=this.tokenizer.rules.inline.anyPunctuation.exec(n));)n=n.slice(0,r.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(r=this.tokenizer.rules.inline.blockSkip.exec(n));)n=n.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let l=!1,i="";for(;e;){let r;if(l||(i=""),l=!1,this.options.extensions?.inline?.some(n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))continue;if((r=this.tokenizer.escape(e))||(r=this.tokenizer.tag(e))||(r=this.tokenizer.link(e))){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);let n=t.at(-1);"text"===r.type&&n?.type==="text"?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if((r=this.tokenizer.emStrong(e,n,i))||(r=this.tokenizer.codespan(e))||(r=this.tokenizer.br(e))||(r=this.tokenizer.del(e))||(r=this.tokenizer.autolink(e))||!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),t.push(r);continue}let a=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{"number"==typeof(r=e.call({lexer:this},n))&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(a=e.substring(0,t+1))}if(r=this.tokenizer.inlineText(a)){e=e.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(i=r.raw.slice(-1)),l=!0;let n=t.at(-1);n?.type==="text"?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return t}},iV=class{options;parser;constructor(e){this.options=e||lQ}
40space(e){return""}code({text:e,lang:t,escaped:n}){let r=(t||"").match(l0.notSpaceStart)?.[0],l=e.replace(l0.endingNewline,"")+` 41`;return r?'<pre><code class="language-'+iB(r)+'">'+(n?l:iB(l,!0))+`</code></pre> 42`:"<pre><code>"+(n?l:iB(l,!0))+`</code></pre> 43`}blockquote({tokens:e}){return`<blockquote> 44${this.parser.parse(e)}</blockquote> 45`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}> 46`}hr(e){return`<hr> 47`}list(e){let t=e.ordered,n=e.start,r="";for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let l=t?"ol":"ul";return"<"+l+(t&&1!==n?' start="'+n+'"':"")+`> 48`+r+"</"+l+`> 49`}listitem(e){let t="";if(e.task){let n=this.checkbox({checked:!!e.checked});e.loose?e.tokens[0]?.type==="paragraph"?(e.tokens[0].text=n+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&"text"===e.tokens[0].tokens[0].type&&(e.tokens[0].tokens[0].text=n+" "+iB(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):t+=n+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li> 50`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p> 51`}table(e){let t="",n="";for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r="";for(let t=0;t<e.rows.length;t++){let l=e.rows[t];n="";for(let e=0;e<l.length;e++)n+=this.tablecell(l[e]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),`<table> 52<thead> 53`+t+`</thead> 54`+r+`</table> 55`}tablerow({text:e}){return`<tr> 56${e}</tr> 57`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}> 58`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${iB(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),l=iG(e);if(null===l)return r;let i='<a href="'+(e=l)+'"';return t&&(i+=' title="'+iB(t)+'"'),i+=">"+r+"</a>"}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let l=iG(e);if(null===l)return iB(n);e=l;let i=`<img src="${e}" alt="${n}"`;return t&&(i+=` title="${iB(t)}"`),i+=">"}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:iB(e.text)}},iK=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},iX=class e{options;renderer;textRenderer;constructor(e){this.options=e||lQ,this.options.renderer=this.options.renderer||new iV,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new iK}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e,t=!0){let n="";for(let r=0;r<e.length;r++){let l=e[r];if(this.options.extensions?.renderers?.[l.type]){let e=this.options.extensions.renderers[l.type].call({parser:this},l);if(!1!==e||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(l.type)){n+=e||"";continue}}switch(l.type){case"space":n+=this.renderer.space(l);continue;case"hr":n+=this.renderer.hr(l);continue;case"heading":n+=this.renderer.heading(l);continue;case"code":n+=this.renderer.code(l);continue;case"table":n+=this.renderer.table(l);continue;case"blockquote":n+=this.renderer.blockquote(l);continue;case"list":n+=this.renderer.list(l);continue;case"html":n+=this.renderer.html(l);continue;case"def":n+=this.renderer.def(l);continue;case"paragraph":n+=this.renderer.paragraph(l);continue;case"text":{let i=l,a=this.renderer.text(i);for(;r+1<e.length&&"text"===e[r+1].type;)i=e[++r],a+=` 59`+this.renderer.text(i);t?n+=this.renderer.paragraph({type:"paragraph",raw:a,text:a,tokens:[{type:"text",raw:a,text:a,escaped:!0}]}):n+=a;continue}default:{let e='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return n}parseInline(e,t=this.renderer){let n="";for(let r=0;r<e.length;r++){let l=e[r];if(this.options.extensions?.renderers?.[l.type]){let e=this.options.extensions.renderers[l.type].call({parser:this},l);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(l.type)){n+=e||"";continue}}switch(l.type){case"escape":case"text":n+=t.text(l);break;case"html":n+=t.html(l);break;case"link":n+=t.link(l);break;case"image":n+=t.image(l);break;case"strong":n+=t.strong(l);break;case"em":n+=t.em(l);break;case"codespan":n+=t.codespan(l);break;case"br":n+=t.br(l);break;case"del":n+=t.del(l);break;default:{let e='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return n}},iZ=class{options;block;constructor(e){this.options=e||lQ}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?iW.lex:iW.lexInline}provideParser(){return this.block?iX.parse:iX.parseInline}},iQ=new class{defaults=lZ();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=iX;
59Renderer=iV;TextRenderer=iK;Lexer=iW;Tokenizer=iH;Hooks=iZ;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case"table":for(let e of r.header)n=n.concat(this.walkTokens(e.tokens,t));for(let e of r.rows)for(let r of e)n=n.concat(this.walkTokens(r.tokens,t));break;case"list":n=n.concat(this.walkTokens(r.items,t));break;default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let l=e[r].flat(1/0);n=n.concat(this.walkTokens(l,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error("extension name required");if("renderer"in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return!1===r&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw Error("extension level must be 'block' or 'inline'");let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new iV(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let r=e.renderer[n],l=t[n];t[n]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=l.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new iH(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let r=e.tokenizer[n],l=t[n];t[n]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=l.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new iZ;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let r=e.hooks[n],l=t[n];iZ.passThroughHooks.has(n)?t[n]=e=>{if(this.defaults.async)return Promise.resolve(r.call(t,e)).then(e=>l.call(t,e));let n=r.call(t,e);return l.call(t,n)}:t[n]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=l.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return iW.lex(e,t??this.defaults)}parser(e,t){return iX.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},l={...this.defaults,...r},i=this.onError(!!l.silent,!!l.async);if(!0===this.defaults.async&&!1===r.async)return i(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||null===t)return i(Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return i(Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));l.hooks&&(l.hooks.options=l,l.hooks.block=e);let a=l.hooks?l.hooks.provideLexer():e?iW.lex:iW.lexInline,o=l.hooks?l.hooks.provideParser():e?iX.parse:iX.parseInline;if(l.async)return Promise.resolve(l.hooks?l.hooks.preprocess(t):t).then(e=>a(e,l)).then(e=>l.hooks?l.hooks.processAllTokens(e):e).then(e=>l.walkTokens?Promise.all(this.walkTokens(e,l.walkTokens)).then(()=>e):e).then(e=>o(e,l)).then(e=>l.hooks?l.hooks.postprocess(e):e).catch(i);try{l.hooks&&(t=l.hooks.preprocess(t));let e=a(t,l);l.hooks&&(e=l.hooks.processAllTokens(e)),l.walkTokens&&this.walkTokens(e,l.walkTokens);let n=o(e,l);return l.hooks&&(n=l.hooks.postprocess(n)),n}catch(e){return i(e)}}}onError(e,t){return n=>{if(n.message+=` 60Please report this to https://github.com/markedjs/marked.`,e){let e="<p>An error occurred:</p><pre>"+iB(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function iY(e,t){return iQ.parse(e,t)}iY.options=iY.setOptions=function(e){return iQ.setOptions(e),iY.defaults=iQ.defaults,lQ=iY.defaults,iY},iY.getDefaults=lZ,iY.defaults=lQ,iY.use=function(...e){return iQ.use(...e),iY.defaults=iQ.defaults,lQ=iY.defaults,iY},iY.walkTokens=function(e,t){return iQ.walkTokens(e,t)},iY.parseInline=iQ.parseInline,iY.Parser=iX,iY.parser=iX.parse,iY.Renderer=iV,iY.TextRenderer=iK,iY.Lexer=iW,iY.lexer=iW.lex,iY.Tokenizer=iH,iY.Hooks=iZ,iY.parse=iY,iY.options,iY.setOptions,iY.use,iY.walkTokens,iY.parseInline,iX.parse,iW.lex;var iJ=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return lX((0,rY.W)(t))},i0=(0,u.createContext)({code:""});async function i1(e,t,n){return Promise.all([await rH(e,{lang:t,theme:n[0]}),await rH(e,{lang:t,theme:n[1]})])}var i2=e=>{let{code:t,language:n,className:r,children:l,...i}=e,[a,o]=(0,u.useState)(""),[s,c]=(0,u.useState)(""),d=(0,u.useRef)(!1),[h,m]=(0,u.useContext)(aA);return(0,u.useEffect)(()=>(i1(t,n,[h,m]).then(e=>{let[t,n]=e;d.current||(o(t),c(n),d.current=!0)}),()=>{d.current=!1}),[t,n,h,m]),(0,p.jsx)(i0.Provider,{value:{code:t},children:(0,p.jsxs)("div",{className:"group relative",children:[(0,p.jsx)("div",{className:iJ("overflow-x-auto dark:hidden [&>pre]:bg-transparent!",r),dangerouslySetInnerHTML:{__html:a},...i}),(0,p.jsx)("div",{className:iJ("hidden overflow-x-auto dark:block [&>pre]:bg-transparent!",r),dangerouslySetInnerHTML:{__html:s},...i}),l]})})},i4=e=>{let{onCopy:t,onError:n,timeout:r=2e3,children:l,className:i,code:a,...o}=e,[s,c]=(0,u.useState)(!1),d=(0,u.useContext)(i0).code,h=null!=a?a:d,m=async()=>{var e;if("undefined"==typeof window||!(null!=(e=null==navigator?void 0:navigator.clipboard)&&e.writeText)){null==n||n(Error("Clipboard API not available"));return}try{await navigator.clipboard.writeText(h),c(!0),null==t||t(),setTimeout(()=>c(!1),r)}catch(e){null==n||n(e)}},g=s?eF.Z:eU.Z;return(0,p.jsx)("button",{className:iJ("absolute top-2 right-2 shrink-0 rounded-md p-3 op
60acity-0 transition-all","hover:bg-secondary group-hover:opacity-100",i),onClick:m,type:"button",...o,children:null!=l?l:(0,p.jsx)(g,{size:14})})},i8=!1,i3=async()=>{if(!i8){let e=(await Promise.all([n.e(91627),n.e(93238),n.e(74346)]).then(n.bind(n,74346))).default;return e.initialize({startOnLoad:!1,theme:"default",securityLevel:"strict",fontFamily:"monospace",suppressErrorRendering:!0}),i8=!0,e}return(await Promise.all([n.e(91627),n.e(93238),n.e(74346)]).then(n.bind(n,74346))).default},i6=e=>{let{chart:t,className:n}=e,[r,l]=(0,u.useState)(null),[i,a]=(0,u.useState)(!0),[o,s]=(0,u.useState)(""),[c,d]=(0,u.useState)("");return((0,u.useEffect)(()=>{(async()=>{try{l(null),a(!0);let e=await i3(),n=t.split("").reduce((e,t)=>(e<<5)-e+t.charCodeAt(0)|0,0),{svg:r}=await e.render("mermaid-".concat(Math.abs(n)),t);s(r),d(r)}catch(e){c||o||l(e instanceof Error?e.message:"Failed to render Mermaid chart")}finally{a(!1)}})()},[t]),!i||o||c)?!r||o||c?(0,p.jsx)("div",{"aria-label":"Mermaid chart",className:iJ("my-4 flex justify-center",n),dangerouslySetInnerHTML:{__html:o||c},role:"img"}):(0,p.jsxs)("div",{className:iJ("rounded-lg border border-red-200 bg-red-50 p-4",n),children:[(0,p.jsxs)("p",{className:"font-mono text-red-700 text-sm",children:["Mermaid Error: ",r]}),(0,p.jsxs)("details",{className:"mt-2",children:[(0,p.jsx)("summary",{className:"cursor-pointer text-red-600 text-xs",children:"Show Code"}),(0,p.jsx)("pre",{className:"mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs",children:t})]})]}):(0,p.jsx)("div",{className:iJ("my-4 flex justify-center p-4",n),children:(0,p.jsxs)("div",{className:"flex items-center space-x-2 text-muted-foreground",children:[(0,p.jsx)("div",{className:"h-4 w-4 animate-spin rounded-full border-current border-b-2"}),(0,p.jsx)("span",{className:"text-sm",children:"Loading diagram..."})]})})},i5=/language-([^\s]+)/,i9={ol:e=>{let{node:t,children:n,className:r,...l}=e;return(0,p.jsx)("ol",{"data-streamdown":"ordered-list",className:iJ("ml-4 list-outside list-decimal",r),...l,children:n})},li:e=>{let{node:t,children:n,className:r,...l}=e;return(0,p.jsx)("li",{"data-streamdown":"list-item",className:iJ("py-1",r),...l,children:n})},ul:e=>{let{node:t,children:n,className:r,...l}=e;return(0,p.jsx)("ul",{"data-streamdown":"unordered-list",className:iJ("ml-4 list-outside list-disc",r),...l,children:n})},hr:e=>{let{node:t,className:n,...r}=e;return(0,p.jsx)("hr",{"data-streamdown":"horizontal-rule",className:iJ("my-6 border-border",n),...r})},strong:e=>{let{node:t,children:n,className:r,...l}=e;return(0,p.jsx)("span",{"data-streamdown":"strong",className:iJ("font-semibold",r),...l,children:n})},a:e=>{let{node:t,children:n,className:r,href:l,...i}=e;return(0,p.jsx)("a",{"data-streamdown":"link",className:iJ("font-medium text-primary underline",r),href:l,rel:"noreferrer",target:"_blank",...i,children:n})},h1:e=>{let{node:t,children:n,className:r,...l}=e;return(0,p.jsx)("h1",{"data-streamdown":"heading-1",className:iJ("mt-6 mb-2 font-semibold text-3xl",r),...l,children:n})},h2:e=>{let{node:t,children:n,className:r,...l}=e;return(0,p.jsx)("h2",{"data-streamdown":"heading-2",className:iJ("mt-6 mb-2 font-semibold text-2xl",r),...l,children:n})},h3:e=>{let{node:t,children:n,className:r,...l}=e;return(0,p.jsx)("h3",{"data-streamdown":"heading-3",className:iJ("mt-6 mb-2 font-semibold text-xl",r),...l,children:n})},h4:e=>{let{node:t,children:n,className:r,...l}=e;return(0,p.jsx)("h4",{"data-streamdown":"heading-4",className:iJ("mt-6 mb-2 font-semibold text-lg",r),...l,children:n})},h5:e=>{let{node:t,children:n,className:r,...l}=e;return(0,p.jsx)("h5",{"data-streamdown":"heading-5",className:iJ("mt-6 mb-2 font-semibold text-base",r),...l,children:n})},h6:e=>{let{node:t,children:n,className:r,...l}=e;return(0,p.jsx)("h6",{"data-streamdown":"heading-6",className:iJ("mt-6 mb-2 font-semibold text-sm",r),...l,children:n})},table:e=>{let{node:t,children:n,className:r,...l}=e;return(0,p.jsx)("div",{"data-streamdown":"table-wrapper",className:"my-4 overflow-x-auto",children:(0,p.jsx)("table",{"data-streamdown":"table",className:iJ("w-full border-collapse border border-border",r),...l,children:n})})},thead:e=>{let{node:t,children:n,className:r,...l}=e;return(0,p.jsx)("thead",{"data-streamdown":"table-header",className:iJ("bg-muted/50",r),...l,children:n})},tbody:e=>{let{node:t,children:n,className:r,...l}=e;return(0,p.jsx)("tbody",{"data-streamdown":"table-body",className:iJ("divide-y divide-border",r),...l,children:n})},tr:e=>{let{node:t,children:n,className:r,...l}=e;return(0,p.jsx)("tr",{"data-streamdown":"table-row",className:iJ("border-border border-b",r),...l,children:n})},th:e=>{let{node:t,children:n,className:r,...l}=e;return(0,p.jsx)("th",{"data-streamdown":"table-header-cell",className:iJ("px-4 py-2 text-left font-semibold text-sm",r),...l,children:n})},td:e=>{let{node:t,children:n,className:r,...l}=e;return(0,p.jsx)("td",{"data-streamdown":"table-cell",className:iJ("px-4 py-2 text-sm",r),...l,children:n})},blockquote:e=>{let{node:t,children:n,className:r,...l}=e;return(0,p.jsx)("blockquote",{"data-streamdown":"blockquote",className:iJ("my-4 border-muted-foreground
60/30 border-l-4 pl-4 text-muted-foreground italic",r),...l,children:n})},code:e=>{var t,n,r;let{node:l,className:i,children:a,...o}=e;if((null==(t=null==l?void 0:l.position)?void 0:t.start.line)===(null==(n=null==l?void 0:l.position)?void 0:n.end.line))return(0,p.jsx)("code",{"data-streamdown":"inline-code",className:iJ("rounded bg-muted px-1.5 py-0.5 font-mono text-sm",i),...o,children:a});let s=null==i?void 0:i.match(i5),c=null!=(r=null==s?void 0:s.at(1))?r:"plaintext",d="";return(0,u.isValidElement)(a)&&a.props&&"object"==typeof a.props&&"children"in a.props&&"string"==typeof a.props.children?d=a.props.children:"string"==typeof a&&(d=a),"mermaid"===c||d.includes("graph")||d.includes("flowchart")||d.includes("sequenceDiagram")||d.includes("classDiagram")||d.includes("gantt")?(0,p.jsxs)("div",{"data-streamdown":"mermaid-block",className:iJ("group relative my-4 h-auto rounded-lg border p-4",i),children:[(0,p.jsx)(i6,{chart:d}),(0,p.jsx)(i4,{code:d})]}):(0,p.jsx)(i2,{"data-streamdown":"code-block","data-language":c,className:iJ("my-4 h-auto rounded-lg border p-4",i),code:d,language:c,children:(0,p.jsx)(i4,{})})},pre:e=>{let{children:t}=e;return t},sup:e=>{let{node:t,children:n,className:r,...l}=e;return(0,p.jsx)("sup",{"data-streamdown":"superscript",className:iJ("text-sm",r),...l,children:n})},sub:e=>{let{node:t,children:n,className:r,...l}=e;return(0,p.jsx)("sub",{"data-streamdown":"subscript",className:iJ("text-sm",r),...l,children:n})}},i7=e=>iY.lexer(e).map(e=>e.raw),ae=/(!?\[)([^\]]*?)$/,at=/(\*\*)([^*]*?)$/,an=/(__)([^_]*?)$/,ar=/(\*\*\*)([^*]*?)$/,al=/(\*)([^*]*?)$/,ai=/(_)([^_]*?)$/,aa=/(`)([^`]*?)$/,ao=/(~~)([^~]*?)$/,as=/(\$)([^$]*?)$/,au=/(\$\$)([^$]*?)$/,ac=e=>{let t=e.match(ae);if(t){let n=e.lastIndexOf(t[1]);return e.substring(0,n)}return e},ad=e=>e.match(at)&&(e.match(/\*\*/g)||[]).length%2==1?"".concat(e,"**"):e,ah=e=>e.match(an)&&(e.match(/__/g)||[]).length%2==1?"".concat(e,"__"):e,ap=e=>e.split("").reduce((t,n,r)=>{if("*"===n){let n=e[r-1],l=e[r+1];if("\\"===n)return t;let i=r;for(let t=r-1;t>=0;t--){if("\n"===e[t]){i=t+1;break}if(0===t){i=0;break}}if(""===e.substring(i,r).trim()&&(" "===l||" "===l))return t;if("*"!==n&&"*"!==l)return t+1}return t},0),am=e=>e.match(al)&&ap(e)%2==1?"".concat(e,"*"):e,ag=(e,t)=>{let n=!1,r=!1;for(let l=0;l<e.length&&l<t;l++){if("\\"===e[l]&&"$"===e[l+1]){l++;continue}"$"===e[l]&&("$"===e[l+1]?(r=!r,l++,n=!1):r||(n=!n))}return n||r},af=e=>e.split("").reduce((t,n,r)=>{if("_"===n){let n=e[r-1],l=e[r+1];if("\\"===n||ag(e,r))return t;if("_"!==n&&"_"!==l)return t+1}return t},0),ab=e=>e.match(ai)&&af(e)%2==1?"".concat(e,"_"):e,ay=(e,t)=>{let n="```"===e.substring(t,t+3),r=t>0&&"```"===e.substring(t-1,t+2),l=t>1&&"```"===e.substring(t-2,t+1);return n||r||l},ak=e=>{let t=0;for(let n=0;n<e.length;n++)"`"===e[n]&&!ay(e,n)&&t++;return t},ax=e=>{if(e.match(/^```[^`\n]*```?$/)&&!e.includes("\n"))return e.endsWith("``")&&!e.endsWith("```")?"".concat(e,"`"):e;let t=(e.match(/```/g)||[]).length;return(e.endsWith("```\n")||e.endsWith("```"))&&t%2==0||t>0&&t%2==0&&e.includes("\n")?e:e.match(aa)&&t%2!=1&&ak(e)%2==1?"".concat(e,"`"):e},aw=e=>e.match(ao)&&(e.match(/~~/g)||[]).length%2==1?"".concat(e,"~~"):e,av=e=>e.split("").reduce((t,n,r)=>{if("$"===n){let n=e[r-1],l=e[r+1];if("\\"===n)return t;if("$"!==n&&"$"!==l)return t+1}return t},0),aS=e=>e.match(au)&&(e.match(/\$\$/g)||[]).length%2==1?"".concat(e,"$$"):e,a_=e=>e.match(as)&&av(e)%2==1?"".concat(e,"$"):e,aC=e=>{let t=0;for(let n of e.match(/\*+/g)||[]){let e=n.length;e>=3&&(t+=Math.floor(e/3))}return t},aP=e=>/^\*{4,}$/.test(e)?e:e.match(ar)&&aC(e)%2==1?"".concat(e,"***"):e,aN=e=>{if(!e||"string"!=typeof e)return e;let t=e;return a_(t=aS(t=aw(t=ax(t=ab(t=am(t=ah(t=ad(t=aP(t=ac(t))))))))))},aT=(eG.default||eG)(function(e){let t=function(e){let t=e.rehypePlugins||k,n=e.remarkPlugins||k,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...x}:x;return(0,f.l)().use(m.Z).use(n).use(g.Z,r).use(t)}(e),n=function(e){let t=e.children||"",n=new y.k;return"string"==typeof t?n.value=t:(0,c.t1)("Unexpected value `"+t+"` for `children` prop, expected `string`"),n}(e);return function(e,t){let n=t.allowedElements,r=t.allowElement,l=t.components,i=t.disallowedElements,a=t.skipHtml,o=t.unwrapDisallowed,s=t.urlTransform||S;for(let e of v)Object.hasOwn(t,e.from)&&(0,c.t1)("Unexpected `"+e.from+"` prop, "+(e.to?"use `"+e.to+"` instead":"remove it")+" (see <https://github.com/remarkjs/react-markdown/blob/main/changelog.md#"+e.id+"> for more info)");return n&&i&&(0,c.t1)("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"),(0,b.Vn)(e,function(e,t,l){if("raw"===e.type&&l&&"number"==typeof t)return a?l.children.splice(t,1):l.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in h.w)if(Object.hasOwn(h.w,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=h.w[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=s(String(n||""),t,e))}}if("element"===e.type){let a=n?!n.includes(e.tagName):!!i&&i.includes(e.tagName);if(!a&&r&&"number"==typeof t&&(a=!r(e,t,l)),a&&l&&"number"==typeof t)return o&&e.children?l.children.splice(t,1,...e.children):l.children.splice(t,1),t}}),(0,d.v)(e,{Fragment:p.Fragment,components:l,ignoreInvalidStyle:!0,jsx:p.jsx,jsxs:p.jsxs,passKeys:!0,passNode:!0})}(t.runSync(t.parse(n),n),e)}),aA=(0,u.createContext)(["github-light","github-dark"]),aL=(0,u.memo)(e=>{let{content:t,shouldParseIncompleteMarkdown:n,...r}=e,l=(0,u.useMemo)(()=>"string"==typeof t&&n?aN(t.trim()):t,[t,n]);return(0,p.jsx)(aT,{...r,children:l})},(e,t)=>e.content===t.content);aL.displayName="Block";var aR=(0,u.memo)(e=>{let{children:t,allowedImagePrefixes:n,allowedLinkPrefixes:r,defaultOrigin:l,parseIncompleteMarkdown:i=!0,components:a,rehypePlugins:o,remarkPlugins:s,className:c,shikiTheme:d=["github-light","github-dark"],...h}=e,m=(0,u.useId)(),g=(0,u.useMemo)(()=>
60i7("string"==typeof t?t:""),[t]),f=(0,u.useMemo)(()=>()=>(function(e){let t=e||eA;return function(e,n){(0,eT.S4)(e,"element",function(e,r){let l;let i=Array.isArray(e.properties.className)?e.properties.className:eL,a=i.includes("language-math"),o=i.includes("math-display"),s=i.includes("math-inline"),u=o;if(!a&&!o&&!s)return;let c=r[r.length-1],d=e;if("code"===e.tagName&&a&&c&&"element"===c.type&&"pre"===c.tagName&&(d=c,c=r[r.length-2],u=!0),!c)return;let h=function(e,t){let n;let r="children"in e?e.children:[],l=e_(e),i=eP(e,{whitespace:(t||{}).whitespace||"normal",breakBefore:!1,breakAfter:!1}),a=[];("text"===e.type||"comment"===e.type)&&a.push(...eC(e,{whitespace:i,breakBefore:!0,breakAfter:!0}));let o=-1;for(;++o<r.length;)a.push(...function e(t,n,r){return"element"===t.type?function(t,n,r){let l,i;let a=eP(t,r),o=t.children||[],s=-1,u=[];if(eS(t))return u;for(ek(t)?i="\n":ev(t)&&ep(n,t,ev)?i="\n":ew(t)?(l=2,i=2):e_(t)&&(l=1,i=1);++s<o.length;)u=u.concat(e(o[s],t,{whitespace:a,breakBefore:s?void 0:l,breakAfter:s<o.length-1?ek(o[s+1]):i}));return ex(t)&&ep(n,t,ex)&&u.push(" "),l&&u.unshift(l),i&&u.push(i),u}(t,n,r):"text"===t.type?"normal"===r.whitespace?eC(t,r):[String(t.value)]:[]}(r[o],e,{whitespace:i,breakBefore:o?void 0:l,breakAfter:o<r.length-1?ek(r[o+1]):l}));let s=[];for(o=-1;++o<a.length;){let e=a[o];"number"==typeof e?void 0!==n&&e>n&&(n=e):e&&(void 0!==n&&n>-1&&s.push("\n".repeat(n)||" "),n=-1,s.push(e))}return s.join("")}(d,{whitespace:"pre"});try{l=eN.default.renderToString(h,{...t,displayMode:u,throwOnError:!0})}catch(a){let i=a.name.toLowerCase();n.message("Could not render math with KaTeX",{ancestors:[...r,e],cause:a,place:e.position,ruleId:i,source:"rehype-katex"});try{l=eN.default.renderToString(h,{...t,displayMode:u,strict:"ignore",throwOnError:!1})}catch{l=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(t.errorColor||"#cc0000"),title:String(a)},children:[{type:"text",value:h}]}]}}if("string"==typeof l){var p,m;l=(p=l,m={fragment:!0},eu(m?.fragment?function(e){let t=document.createElement("template");return t.innerHTML=e,t.content}(p):ed.parseFromString(p,"text/html"),{})||{type:"root",children:[]}).children}let g=c.children.indexOf(d);return c.children.splice(g,1,...l),eT.AM})}})({errorColor:"var(--color-muted-foreground)"}),[]);return(0,p.jsx)(aA.Provider,{value:d,children:(0,p.jsx)("div",{className:iJ("space-y-4",c),...h,children:g.map((e,t)=>(0,p.jsx)(aL,{allowedImagePrefixes:null!=n?n:["*"],allowedLinkPrefixes:null!=r?r:["*"],components:{...i9,...a},content:e,defaultOrigin:l,rehypePlugins:[f,...null!=o?o:[]],remarkPlugins:[eR.Z,eB,...null!=s?s:[]],shouldParseIncompleteMarkdown:i},"".concat(m,"-block_").concat(t)))})})},(e,t)=>e.children===t.children&&e.shikiTheme===t.shikiTheme);aR.displayName="Streamdown"}}]);
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.