@deepseekcode/cli 1.0.20 → 1.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +1301 -1219
- package/package.json +3 -3
- package/web/dist/assets/AutomationView-BbLzZ7Db.js +1 -0
- package/web/dist/assets/ChannelConfigView-CjcMwBSL.js +8 -0
- package/web/dist/assets/ConnectorsView-CTFoG0sF.js +1 -0
- package/web/dist/assets/{FileTreeView-DL66cxki.js → FileTreeView-_N5eobgO.js} +2 -2
- package/web/dist/assets/HookConfigView-DM6IVFGm.js +2 -0
- package/web/dist/assets/ModelsView-CPm2WAbG.js +2 -0
- package/web/dist/assets/PluginsView-D9pzIe-R.js +1 -0
- package/web/dist/assets/SessionGrid-C-Z-kzmG.js +35 -0
- package/web/dist/assets/SettingsPanel-D9kr-sFj.js +4 -0
- package/web/dist/assets/SkillsView-CS0XvZ4N.js +1 -0
- package/web/dist/assets/TemplatesTab-Pwfjxer7.js +1 -0
- package/web/dist/assets/TerminalView-C__4-QSL.js +3 -0
- package/web/dist/assets/ToolsView-Y5MpTnXY.js +1 -0
- package/web/dist/assets/{icons-CrV0VGFQ.js → icons-BXecaLRH.js} +161 -121
- package/web/dist/assets/index-CFxV9r1K.css +1 -0
- package/web/dist/assets/index-CcPIw0Dj.js +68 -0
- package/web/dist/assets/markdown-BASfeONY.js +30 -0
- package/web/dist/assets/panels-Bod3sKnK.js +1 -0
- package/web/dist/assets/react-vendor-7At16BnY.js +9 -0
- package/web/dist/assets/state-D4zgKwQs.js +17 -0
- package/web/dist/assets/terminal-DgJRGhIz.js +9 -0
- package/web/dist/index.html +7 -6
- package/web/dist/assets/AgentFlowView-qR01S0jV.js +0 -1
- package/web/dist/assets/AgentsView-CLvG8aae.js +0 -1
- package/web/dist/assets/AuditView-CMYlGV9S.js +0 -1
- package/web/dist/assets/AutomationView-wrcdqhJY.js +0 -1
- package/web/dist/assets/ChannelConfigView-DM70m5RE.js +0 -8
- package/web/dist/assets/ConnectorsView-B5ndd8pU.js +0 -1
- package/web/dist/assets/HookConfigView-BugHBHlO.js +0 -3
- package/web/dist/assets/InboxView-DLPWNrqG.js +0 -1
- package/web/dist/assets/ModelsView-CwhL9YPX.js +0 -2
- package/web/dist/assets/SessionGrid-CC1NAZ45.js +0 -26
- package/web/dist/assets/SettingsPanel-n1UbEjzX.js +0 -4
- package/web/dist/assets/SkillsView-DznSS50I.js +0 -1
- package/web/dist/assets/TemplatesTab-BPD0hvrG.js +0 -1
- package/web/dist/assets/TerminalView-B4WUBGzA.js +0 -3
- package/web/dist/assets/ToolsView-CQgPyD6U.js +0 -1
- package/web/dist/assets/index-DMxlsuNM.js +0 -20
- package/web/dist/assets/index-DjWfcgLQ.css +0 -1
- package/web/dist/assets/markdown-CaPdHFK5.js +0 -30
- package/web/dist/assets/panels-B3UcQJtY.js +0 -1
- package/web/dist/assets/react-vendor-DnYXnA42.js +0 -24
- package/web/dist/assets/state-BHmvnECu.js +0 -17
- package/web/dist/assets/terminal-Ck_l6svU.js +0 -9
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import{g as Dt,c as Yn}from"./icons-BXecaLRH.js";var nn={exports:{}},Re={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var Xn;function vr(){if(Xn)return Re;Xn=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function t(r,i,l){var a=null;if(l!==void 0&&(a=""+l),i.key!==void 0&&(a=""+i.key),"key"in i){l={};for(var o in i)o!=="key"&&(l[o]=i[o])}else l=i;return i=l.ref,{$$typeof:e,type:r,key:a,ref:i!==void 0?i:null,props:l}}return Re.Fragment=n,Re.jsx=t,Re.jsxs=t,Re}var Gn;function Ar(){return Gn||(Gn=1,nn.exports=vr()),nn.exports}var tn=Ar();function Ir(e,n){const t={};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const Tr=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Fr=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Pr={};function Jn(e,n){return(Pr.jsx?Fr:Tr).test(e)}const zr=/[ \t\n\f\r]/g;function Lr(e){return typeof e=="object"?e.type==="text"?Qn(e.value):!1:Qn(e)}function Qn(e){return e.replace(zr,"")===""}class Ue{constructor(n,t,r){this.normal=t,this.property=n,r&&(this.space=r)}}Ue.prototype.normal={};Ue.prototype.property={};Ue.prototype.space=void 0;function Ot(e,n){const t={},r={};for(const i of e)Object.assign(t,i.property),Object.assign(r,i.normal);return new Ue(t,r,n)}function xn(e){return e.toLowerCase()}class re{constructor(n,t){this.attribute=t,this.property=n}}re.prototype.attribute="";re.prototype.booleanish=!1;re.prototype.boolean=!1;re.prototype.commaOrSpaceSeparated=!1;re.prototype.commaSeparated=!1;re.prototype.defined=!1;re.prototype.mustUseProperty=!1;re.prototype.number=!1;re.prototype.overloadedBoolean=!1;re.prototype.property="";re.prototype.spaceSeparated=!1;re.prototype.space=void 0;let _r=0;const N=ve(),Z=ve(),kn=ve(),E=ve(),V=ve(),Ce=ve(),ae=ve();function ve(){return 2**++_r}const bn=Object.freeze(Object.defineProperty({__proto__:null,boolean:N,booleanish:Z,commaOrSpaceSeparated:ae,commaSeparated:Ce,number:E,overloadedBoolean:kn,spaceSeparated:V},Symbol.toStringTag,{value:"Module"})),rn=Object.keys(bn);class Tn extends re{constructor(n,t,r,i){let l=-1;if(super(n,t),Zn(this,"space",i),typeof r=="number")for(;++l<rn.length;){const a=rn[l];Zn(this,rn[l],(r&bn[a])===bn[a])}}}Tn.prototype.defined=!0;function Zn(e,n,t){t&&(e[n]=t)}function Fe(e){const n={},t={};for(const[r,i]of Object.entries(e.properties)){const l=new Tn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),n[r]=l,t[xn(r)]=r,t[xn(l.attribute)]=r}return new Ue(n,t,e.space)}const Nt=Fe({properties:{ariaActiveDescendant:null,ariaAtomic:Z,ariaAutoComplete:null,ariaBusy:Z,ariaChecked:Z,ariaColCount:E,ariaColIndex:E,ariaColSpan:E,ariaControls:V,ariaCurrent:null,ariaDescribedBy:V,ariaDetails:null,ariaDisabled:Z,ariaDropEffect:V,ariaErrorMessage:null,ariaExpanded:Z,ariaFlowTo:V,ariaGrabbed:Z,ariaHasPopup:null,ariaHidden:Z,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:V,ariaLevel:E,ariaLive:null,ariaModal:Z,ariaMultiLine:Z,ariaMultiSelectable:Z,ariaOrientation:null,ariaOwns:V,ariaPlaceholder:null,ariaPosInSet:E,ariaPressed:Z,ariaReadOnly:Z,ariaRelevant:null,ariaRequired:Z,ariaRoleDescription:V,ariaRowCount:E,ariaRowIndex:E,ariaRowSpan:E,ariaSelected:Z,ariaSetSize:E,ariaSort:null,ariaValueMax:E,ariaValueMin:E,ariaValueNow:E,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function Mt(e,n){return n in e?e[n]:n}function Bt(e,n){return Mt(e,n.toLowerCase())}const Rr=Fe({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ce,acceptCharset:V,accessKey:V,action:null,allow:null,allowFullScreen:N,allowPaymentRequest:N,allowUserMedia:N,alpha:N,alt:null,as:null,async:N,autoCapitalize:null,autoComplete:V,autoFocus:N,autoPlay:N,blocking:V,capture:null,charSet:null,checked:N,cite:null,className:V,closedBy:null,colorSpace:null,cols:E,colSpan:E,command:null,commandFor:null,content:null,contentEditable:Z,controls:N,controlsList:V,coords:E|Ce,crossOrigin:null,data:null,dateTime:null,decoding:null,default:N,defer:N,dir:null,dirName:null,disabled:N,download:kn,draggable:Z,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:N,formTarget:null,headers:V,height:E,hidden:kn,high:E,href:null,hrefLang:null,htmlFor:V,httpEquiv:V,id:null,imageSizes:null,imageSrcSet:null,inert:N,inputMode:null,integrity:null,is:null,isMap:N,itemId:null,itemProp:V,itemRef:V,itemScope:N,itemType:V,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:N,low:E,manifest:null,max:null,maxLength:E,media:null,method:null,min:null,minLength:E,multiple:N,muted:N,name:null,nonce:null,noModule:N,noValidate:N,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:N,optimum:E,pattern:null,ping:V,placeholder:null,playsInline:N,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:N,referrerPolicy:null,rel:V,required:N,reversed:N,rows:E,rowSpan:E,sandbox:V,scope:null,scoped:N,seamless:N,selected:N,shadowRootClonable:N,shadowRootCustomElementRegistry:N,shadowRootDelegatesFocus:N,shadowRootMode:null,shadowRootSerializable:N,shape:null,size:E,sizes:null,slot:null,span:E,spellCheck:Z,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:N,useMap:null,value:Z,width:E,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:V,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:N,declare:N,event:null,face:null,frame:null,frameBorder:null,hSpace:E,leftMargin:E,link:null,longDesc:null,lowSrc:null,marginHeight:E,marginWidth:E,noResize:N,noHref:N,noShade:N,noWrap:N,object:null,profile:null,prompt:null,rev:null,rightMargin:E,rules:null,scheme:null,scrolling:Z,standby:null,summary:null,text:null,topMargin:E,valueType:null,version:null,vAlign:null,vLink:null,vSpace:E,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:N,disablePictureInPicture:N,disableRemotePlayback:N,exportParts:Ce,part:V,prefix:null,property:null,results:E,security:null,unselectable:null},space:"html",transform:Bt}),Dr=Fe({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",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:ae,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:V,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:N,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:Ce,g2:Ce,glyphName:Ce,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:ae,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,maskType: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,onZoom: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:V,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:E,pointsAtY:E,pointsAtZ:E,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ae,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ae,rev:ae,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ae,requiredFeatures:ae,requiredFonts:ae,requiredFormats:ae,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:ae,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:ae,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:ae,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:Mt}),jt=Fe({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),Ht=Fe({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Bt}),$t=Fe({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),Or={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Nr=/[A-Z]/g,Kn=/-[a-z]/g,Mr=/^data[-\w.:]+$/i;function Br(e,n){const t=xn(n);let r=n,i=re;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&Mr.test(n)){if(n.charAt(4)==="-"){const l=n.slice(5).replace(Kn,Hr);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=n.slice(4);if(!Kn.test(l)){let a=l.replace(Nr,jr);a.charAt(0)!=="-"&&(a="-"+a),n="data"+a}}i=Tn}return new i(r,n)}function jr(e){return"-"+e.toLowerCase()}function Hr(e){return e.charAt(1).toUpperCase()}const $r=Ot([Nt,Rr,jt,Ht,$t],"html"),Fn=Ot([Nt,Dr,jt,Ht,$t],"svg");function Ur(e){return e.join(" ").trim()}var Ie={},ln,et;function qr(){if(et)return ln;et=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,t=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,o=/^\s+|\s+$/g,c=`
|
|
10
|
+
`,u="/",s="*",p="",g="comment",f="declaration";function A(v,b){if(typeof v!="string")throw new TypeError("First argument must be a string");if(!v)return[];b=b||{};var x=1,m=1;function w(D){var P=D.match(n);P&&(x+=P.length);var H=D.lastIndexOf(c);m=~H?D.length-H:m+D.length}function S(){var D={line:x,column:m};return function(P){return P.position=new y(D),T(),P}}function y(D){this.start=D,this.end={line:x,column:m},this.source=b.source}y.prototype.content=v;function I(D){var P=new Error(b.source+":"+x+":"+m+": "+D);if(P.reason=D,P.filename=b.source,P.line=x,P.column=m,P.source=v,!b.silent)throw P}function _(D){var P=D.exec(v);if(P){var H=P[0];return w(H),v=v.slice(H.length),P}}function T(){_(t)}function R(D){var P;for(D=D||[];P=z();)P!==!1&&D.push(P);return D}function z(){var D=S();if(!(u!=v.charAt(0)||s!=v.charAt(1))){for(var P=2;p!=v.charAt(P)&&(s!=v.charAt(P)||u!=v.charAt(P+1));)++P;if(P+=2,p===v.charAt(P-1))return I("End of comment missing");var H=v.slice(2,P-2);return m+=2,w(H),v=v.slice(P),m+=2,D({type:g,comment:H})}}function L(){var D=S(),P=_(r);if(P){if(z(),!_(i))return I("property missing ':'");var H=_(l),Y=D({type:f,property:C(P[0].replace(e,p)),value:H?C(H[0].replace(e,p)):p});return _(a),Y}}function $(){var D=[];R(D);for(var P;P=L();)P!==!1&&(D.push(P),R(D));return D}return T(),$()}function C(v){return v?v.replace(o,p):p}return ln=A,ln}var nt;function Vr(){if(nt)return Ie;nt=1;var e=Ie&&Ie.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.default=t;const n=e(qr());function t(r,i){let l=null;if(!r||typeof r!="string")return l;const a=(0,n.default)(r),o=typeof i=="function";return a.forEach(c=>{if(c.type!=="declaration")return;const{property:u,value:s}=c;o?i(u,s,c):s&&(l=l||{},l[u]=s)}),l}return Ie}var De={},tt;function Wr(){if(tt)return De;tt=1,Object.defineProperty(De,"__esModule",{value:!0}),De.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,t=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,l=function(u){return!u||t.test(u)||e.test(u)},a=function(u,s){return s.toUpperCase()},o=function(u,s){return"".concat(s,"-")},c=function(u,s){return s===void 0&&(s={}),l(u)?u:(u=u.toLowerCase(),s.reactCompat?u=u.replace(i,o):u=u.replace(r,o),u.replace(n,a))};return De.camelCase=c,De}var Oe,rt;function Yr(){if(rt)return Oe;rt=1;var e=Oe&&Oe.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},n=e(Vr()),t=Wr();function r(i,l){var a={};return!i||typeof i!="string"||(0,n.default)(i,function(o,c){o&&c&&(a[(0,t.camelCase)(o,l)]=c)}),a}return r.default=r,Oe=r,Oe}var Xr=Yr();const Gr=Dt(Xr),Ut=qt("end"),Pn=qt("start");function qt(e){return n;function n(t){const r=t&&t.position&&t.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Jr(e){const n=Pn(e),t=Ut(e);if(n&&t)return{start:n,end:t}}function Be(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?it(e.position):"start"in e||"end"in e?it(e):"line"in e||"column"in e?wn(e):""}function wn(e){return lt(e&&e.line)+":"+lt(e&&e.column)}function it(e){return wn(e&&e.start)+"-"+wn(e&&e.end)}function lt(e){return e&&typeof e=="number"?e:1}class ee extends Error{constructor(n,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",l={},a=!1;if(t&&("line"in t&&"column"in t?l={place:t}:"start"in t&&"end"in t?l={place:t}:"type"in t?l={ancestors:[t],place:t.position}:l={...t}),typeof n=="string"?i=n:!l.cause&&n&&(a=!0,i=n.message,l.cause=n),!l.ruleId&&!l.source&&typeof r=="string"){const c=r.indexOf(":");c===-1?l.ruleId=r:(l.source=r.slice(0,c),l.ruleId=r.slice(c+1))}if(!l.place&&l.ancestors&&l.ancestors){const c=l.ancestors[l.ancestors.length-1];c&&(l.place=c.position)}const o=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=o?o.line:void 0,this.name=Be(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=a&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}ee.prototype.file="";ee.prototype.name="";ee.prototype.reason="";ee.prototype.message="";ee.prototype.stack="";ee.prototype.column=void 0;ee.prototype.line=void 0;ee.prototype.ancestors=void 0;ee.prototype.cause=void 0;ee.prototype.fatal=void 0;ee.prototype.place=void 0;ee.prototype.ruleId=void 0;ee.prototype.source=void 0;const zn={}.hasOwnProperty,Qr=new Map,Zr=/[A-Z]/g,Kr=new Set(["table","tbody","thead","tfoot","tr"]),ei=new Set(["td","th"]),Vt="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function ni(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const t=n.filePath||void 0;let r;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=si(t,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=ui(t,n.jsx,n.jsxs)}const i={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:r,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:t,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?Fn:$r,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},l=Wt(i,e,void 0);return l&&typeof l!="string"?l:i.create(e,i.Fragment,{children:l||void 0},void 0)}function Wt(e,n,t){if(n.type==="element")return ti(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return ri(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return li(e,n,t);if(n.type==="mdxjsEsm")return ii(e,n);if(n.type==="root")return ai(e,n,t);if(n.type==="text")return oi(e,n)}function ti(e,n,t){const r=e.schema;let i=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Fn,e.schema=i),e.ancestors.push(n);const l=Xt(e,n.tagName,!1),a=ci(e,n);let o=_n(e,n);return Kr.has(n.tagName)&&(o=o.filter(function(c){return typeof c=="string"?!Lr(c):!0})),Yt(e,a,l,n),Ln(a,o),e.ancestors.pop(),e.schema=r,e.create(n,l,a,t)}function ri(e,n){if(n.data&&n.data.estree&&e.evaluater){const r=n.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}$e(e,n.position)}function ii(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);$e(e,n.position)}function li(e,n,t){const r=e.schema;let i=r;n.name==="svg"&&r.space==="html"&&(i=Fn,e.schema=i),e.ancestors.push(n);const l=n.name===null?e.Fragment:Xt(e,n.name,!0),a=pi(e,n),o=_n(e,n);return Yt(e,a,l,n),Ln(a,o),e.ancestors.pop(),e.schema=r,e.create(n,l,a,t)}function ai(e,n,t){const r={};return Ln(r,_n(e,n)),e.create(n,e.Fragment,r,t)}function oi(e,n){return n.value}function Yt(e,n,t,r){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=r)}function Ln(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function ui(e,n,t){return r;function r(i,l,a,o){const u=Array.isArray(a.children)?t:n;return o?u(l,a,o):u(l,a)}}function si(e,n){return t;function t(r,i,l,a){const o=Array.isArray(l.children),c=Pn(r);return n(i,l,a,o,{columnNumber:c?c.column-1:void 0,fileName:e,lineNumber:c?c.line:void 0},void 0)}}function ci(e,n){const t={};let r,i;for(i in n.properties)if(i!=="children"&&zn.call(n.properties,i)){const l=fi(e,i,n.properties[i]);if(l){const[a,o]=l;e.tableCellAlignToStyle&&a==="align"&&typeof o=="string"&&ei.has(n.tagName)?r=o:t[a]=o}}if(r){const l=t.style||(t.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function pi(e,n){const t={};for(const r of n.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const l=r.data.estree.body[0];l.type;const a=l.expression;a.type;const o=a.properties[0];o.type,Object.assign(t,e.evaluater.evaluateExpression(o.argument))}else $e(e,n.position);else{const i=r.name;let l;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const o=r.value.data.estree.body[0];o.type,l=e.evaluater.evaluateExpression(o.expression)}else $e(e,n.position);else l=r.value===null?!0:r.value;t[i]=l}return t}function _n(e,n){const t=[];let r=-1;const i=e.passKeys?new Map:Qr;for(;++r<n.children.length;){const l=n.children[r];let a;if(e.passKeys){const c=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(c){const u=i.get(c)||0;a=c+"-"+u,i.set(c,u+1)}}const o=Wt(e,l,a);o!==void 0&&t.push(o)}return t}function fi(e,n,t){const r=Br(e.schema,n);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=r.commaSeparated?Ir(t):Ur(t)),r.property==="style"){let i=typeof t=="object"?t:hi(e,String(t));return e.stylePropertyNameCase==="css"&&(i=di(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Or[r.property]||r.property:r.attribute,t]}}function hi(e,n){try{return Gr(n,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const r=t,i=new ee("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=Vt+"#cannot-parse-style-attribute",i}}function Xt(e,n,t){let r;if(!t)r={type:"Literal",value:n};else if(n.includes(".")){const i=n.split(".");let l=-1,a;for(;++l<i.length;){const o=Jn(i[l])?{type:"Identifier",name:i[l]}:{type:"Literal",value:i[l]};a=a?{type:"MemberExpression",object:a,property:o,computed:!!(l&&o.type==="Literal"),optional:!1}:o}r=a}else r=Jn(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(r.type==="Literal"){const i=r.value;return zn.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);$e(e)}function $e(e,n){const t=new ee("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=Vt+"#cannot-handle-mdx-estrees-without-createevaluater",t}function di(e){const n={};let t;for(t in e)zn.call(e,t)&&(n[gi(t)]=e[t]);return n}function gi(e){let n=e.replace(Zr,mi);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function mi(e){return"-"+e.toLowerCase()}const an={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},yi={};function xi(e,n){const t=yi,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return Gt(e,r,i)}function Gt(e,n,t){if(ki(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return at(e.children,n,t)}return Array.isArray(e)?at(e,n,t):""}function at(e,n,t){const r=[];let i=-1;for(;++i<e.length;)r[i]=Gt(e[i],n,t);return r.join("")}function ki(e){return!!(e&&typeof e=="object")}const ot=document.createElement("i");function Rn(e){const n="&"+e+";";ot.innerHTML=n;const t=ot.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function ge(e,n,t,r){const i=e.length;let l=0,a;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)a=Array.from(r),a.unshift(n,t),e.splice(...a);else for(t&&e.splice(n,t);l<r.length;)a=r.slice(l,l+1e4),a.unshift(n,0),e.splice(...a),l+=1e4,n+=1e4}function se(e,n){return e.length>0?(ge(e,e.length,0,n),e):n}const ut={}.hasOwnProperty;function bi(e){const n={};let t=-1;for(;++t<e.length;)wi(n,e[t]);return n}function wi(e,n){let t;for(t in n){const i=(ut.call(e,t)?e[t]:void 0)||(e[t]={}),l=n[t];let a;if(l)for(a in l){ut.call(i,a)||(i[a]=[]);const o=l[a];Si(i[a],Array.isArray(o)?o:o?[o]:[])}}}function Si(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);ge(e,0,0,r)}function Jt(e,n){const t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function Te(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const de=we(/[A-Za-z]/),oe=we(/[\dA-Za-z]/),Ei=we(/[#-'*+\--9=?A-Z^-~]/);function Sn(e){return e!==null&&(e<32||e===127)}const En=we(/\d/),Ci=we(/[\dA-Fa-f]/),vi=we(/[!-/:-@[-`{-~]/);function O(e){return e!==null&&e<-2}function te(e){return e!==null&&(e<0||e===32)}function j(e){return e===-2||e===-1||e===32}const Ai=we(new RegExp("\\p{P}|\\p{S}","u")),Ii=we(/\s/);function we(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Pe(e){const n=[];let t=-1,r=0,i=0;for(;++t<e.length;){const l=e.charCodeAt(t);let a="";if(l===37&&oe(e.charCodeAt(t+1))&&oe(e.charCodeAt(t+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(a=String.fromCharCode(l));else if(l>55295&&l<57344){const o=e.charCodeAt(t+1);l<56320&&o>56319&&o<57344?(a=String.fromCharCode(l,o),i=1):a="�"}else a=String.fromCharCode(l);a&&(n.push(e.slice(r,t),encodeURIComponent(a)),r=t+i+1,a=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}function W(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return a;function a(c){return j(c)?(e.enter(t),o(c)):n(c)}function o(c){return j(c)&&l++<i?(e.consume(c),o):(e.exit(t),n(c))}}const Ti={tokenize:Fi};function Fi(e){const n=e.attempt(this.parser.constructs.contentInitial,r,i);let t;return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),W(e,n,"linePrefix")}function i(o){return e.enter("paragraph"),l(o)}function l(o){const c=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=c),t=c,a(o)}function a(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return O(o)?(e.consume(o),e.exit("chunkText"),l):(e.consume(o),a)}}const Pi={tokenize:zi},st={tokenize:Li};function zi(e){const n=this,t=[];let r=0,i,l,a;return o;function o(m){if(r<t.length){const w=t[r];return n.containerState=w[1],e.attempt(w[0].continuation,c,u)(m)}return u(m)}function c(m){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&x();const w=n.events.length;let S=w,y;for(;S--;)if(n.events[S][0]==="exit"&&n.events[S][1].type==="chunkFlow"){y=n.events[S][1].end;break}b(r);let I=w;for(;I<n.events.length;)n.events[I][1].end={...y},I++;return ge(n.events,S+1,0,n.events.slice(w)),n.events.length=I,u(m)}return o(m)}function u(m){if(r===t.length){if(!i)return g(m);if(i.currentConstruct&&i.currentConstruct.concrete)return A(m);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(st,s,p)(m)}function s(m){return i&&x(),b(r),g(m)}function p(m){return n.parser.lazy[n.now().line]=r!==t.length,a=n.now().offset,A(m)}function g(m){return n.containerState={},e.attempt(st,f,A)(m)}function f(m){return r++,t.push([n.currentConstruct,n.containerState]),g(m)}function A(m){if(m===null){i&&x(),b(0),e.consume(m);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:l}),C(m)}function C(m){if(m===null){v(e.exit("chunkFlow"),!0),b(0),e.consume(m);return}return O(m)?(e.consume(m),v(e.exit("chunkFlow")),r=0,n.interrupt=void 0,o):(e.consume(m),C)}function v(m,w){const S=n.sliceStream(m);if(w&&S.push(null),m.previous=l,l&&(l.next=m),l=m,i.defineSkip(m.start),i.write(S),n.parser.lazy[m.start.line]){let y=i.events.length;for(;y--;)if(i.events[y][1].start.offset<a&&(!i.events[y][1].end||i.events[y][1].end.offset>a))return;const I=n.events.length;let _=I,T,R;for(;_--;)if(n.events[_][0]==="exit"&&n.events[_][1].type==="chunkFlow"){if(T){R=n.events[_][1].end;break}T=!0}for(b(r),y=I;y<n.events.length;)n.events[y][1].end={...R},y++;ge(n.events,_+1,0,n.events.slice(I)),n.events.length=y}}function b(m){let w=t.length;for(;w-- >m;){const S=t[w];n.containerState=S[1],S[0].exit.call(n,e)}t.length=m}function x(){i.write([null]),l=void 0,i=void 0,n.containerState._closeFlow=void 0}}function Li(e,n,t){return W(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ct(e){if(e===null||te(e)||Ii(e))return 1;if(Ai(e))return 2}function Dn(e,n,t){const r=[];let i=-1;for(;++i<e.length;){const l=e[i].resolveAll;l&&!r.includes(l)&&(n=l(n,t),r.push(l))}return n}const Cn={name:"attention",resolveAll:_i,tokenize:Ri};function _i(e,n){let t=-1,r,i,l,a,o,c,u,s;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const p={...e[r][1].end},g={...e[t][1].start};pt(p,-c),pt(g,c),a={type:c>1?"strongSequence":"emphasisSequence",start:p,end:{...e[r][1].end}},o={type:c>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:g},l={type:c>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[t][1].start}},i={type:c>1?"strong":"emphasis",start:{...a.start},end:{...o.end}},e[r][1].end={...a.start},e[t][1].start={...o.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=se(u,[["enter",e[r][1],n],["exit",e[r][1],n]])),u=se(u,[["enter",i,n],["enter",a,n],["exit",a,n],["enter",l,n]]),u=se(u,Dn(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),u=se(u,[["exit",l,n],["enter",o,n],["exit",o,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(s=2,u=se(u,[["enter",e[t][1],n],["exit",e[t][1],n]])):s=0,ge(e,r-1,t-r+3,u),t=r+u.length-s-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function Ri(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=ct(r);let l;return a;function a(c){return l=c,e.enter("attentionSequence"),o(c)}function o(c){if(c===l)return e.consume(c),o;const u=e.exit("attentionSequence"),s=ct(c),p=!s||s===2&&i||t.includes(c),g=!i||i===2&&s||t.includes(r);return u._open=!!(l===42?p:p&&(i||!g)),u._close=!!(l===42?g:g&&(s||!p)),n(c)}}function pt(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const Di={name:"autolink",tokenize:Oi};function Oi(e,n,t){let r=0;return i;function i(f){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(f){return de(f)?(e.consume(f),a):f===64?t(f):u(f)}function a(f){return f===43||f===45||f===46||oe(f)?(r=1,o(f)):u(f)}function o(f){return f===58?(e.consume(f),r=0,c):(f===43||f===45||f===46||oe(f))&&r++<32?(e.consume(f),o):(r=0,u(f))}function c(f){return f===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),n):f===null||f===32||f===60||Sn(f)?t(f):(e.consume(f),c)}function u(f){return f===64?(e.consume(f),s):Ei(f)?(e.consume(f),u):t(f)}function s(f){return oe(f)?p(f):t(f)}function p(f){return f===46?(e.consume(f),r=0,s):f===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),n):g(f)}function g(f){if((f===45||oe(f))&&r++<63){const A=f===45?g:p;return e.consume(f),A}return t(f)}}const Qe={partial:!0,tokenize:Ni};function Ni(e,n,t){return r;function r(l){return j(l)?W(e,i,"linePrefix")(l):i(l)}function i(l){return l===null||O(l)?n(l):t(l)}}const Qt={continuation:{tokenize:Bi},exit:ji,name:"blockQuote",tokenize:Mi};function Mi(e,n,t){const r=this;return i;function i(a){if(a===62){const o=r.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),l}return t(a)}function l(a){return j(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(a))}}function Bi(e,n,t){const r=this;return i;function i(a){return j(a)?W(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):l(a)}function l(a){return e.attempt(Qt,n,t)(a)}}function ji(e){e.exit("blockQuote")}const Zt={name:"characterEscape",tokenize:Hi};function Hi(e,n,t){return r;function r(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),i}function i(l){return vi(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(l)}}const Kt={name:"characterReference",tokenize:$i};function $i(e,n,t){const r=this;let i=0,l,a;return o;function o(p){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),c}function c(p){return p===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(p),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),l=31,a=oe,s(p))}function u(p){return p===88||p===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(p),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,a=Ci,s):(e.enter("characterReferenceValue"),l=7,a=En,s(p))}function s(p){if(p===59&&i){const g=e.exit("characterReferenceValue");return a===oe&&!Rn(r.sliceSerialize(g))?t(p):(e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return a(p)&&i++<l?(e.consume(p),s):t(p)}}const ft={partial:!0,tokenize:qi},ht={concrete:!0,name:"codeFenced",tokenize:Ui};function Ui(e,n,t){const r=this,i={partial:!0,tokenize:S};let l=0,a=0,o;return c;function c(y){return u(y)}function u(y){const I=r.events[r.events.length-1];return l=I&&I[1].type==="linePrefix"?I[2].sliceSerialize(I[1],!0).length:0,o=y,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),s(y)}function s(y){return y===o?(a++,e.consume(y),s):a<3?t(y):(e.exit("codeFencedFenceSequence"),j(y)?W(e,p,"whitespace")(y):p(y))}function p(y){return y===null||O(y)?(e.exit("codeFencedFence"),r.interrupt?n(y):e.check(ft,C,w)(y)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),g(y))}function g(y){return y===null||O(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),p(y)):j(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),W(e,f,"whitespace")(y)):y===96&&y===o?t(y):(e.consume(y),g)}function f(y){return y===null||O(y)?p(y):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),A(y))}function A(y){return y===null||O(y)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(y)):y===96&&y===o?t(y):(e.consume(y),A)}function C(y){return e.attempt(i,w,v)(y)}function v(y){return e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),b}function b(y){return l>0&&j(y)?W(e,x,"linePrefix",l+1)(y):x(y)}function x(y){return y===null||O(y)?e.check(ft,C,w)(y):(e.enter("codeFlowValue"),m(y))}function m(y){return y===null||O(y)?(e.exit("codeFlowValue"),x(y)):(e.consume(y),m)}function w(y){return e.exit("codeFenced"),n(y)}function S(y,I,_){let T=0;return R;function R(P){return y.enter("lineEnding"),y.consume(P),y.exit("lineEnding"),z}function z(P){return y.enter("codeFencedFence"),j(P)?W(y,L,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):L(P)}function L(P){return P===o?(y.enter("codeFencedFenceSequence"),$(P)):_(P)}function $(P){return P===o?(T++,y.consume(P),$):T>=a?(y.exit("codeFencedFenceSequence"),j(P)?W(y,D,"whitespace")(P):D(P)):_(P)}function D(P){return P===null||O(P)?(y.exit("codeFencedFence"),I(P)):_(P)}}}function qi(e,n,t){const r=this;return i;function i(a){return a===null?t(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),l)}function l(a){return r.parser.lazy[r.now().line]?t(a):n(a)}}const on={name:"codeIndented",tokenize:Wi},Vi={partial:!0,tokenize:Yi};function Wi(e,n,t){const r=this;return i;function i(u){return e.enter("codeIndented"),W(e,l,"linePrefix",5)(u)}function l(u){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?a(u):t(u)}function a(u){return u===null?c(u):O(u)?e.attempt(Vi,a,c)(u):(e.enter("codeFlowValue"),o(u))}function o(u){return u===null||O(u)?(e.exit("codeFlowValue"),a(u)):(e.consume(u),o)}function c(u){return e.exit("codeIndented"),n(u)}}function Yi(e,n,t){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?t(a):O(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):W(e,l,"linePrefix",5)(a)}function l(a){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?n(a):O(a)?i(a):t(a)}}const Xi={name:"codeText",previous:Ji,resolve:Gi,tokenize:Qi};function Gi(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)i===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(i=r):(r===n||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),n-=r-i-2,r=i+2),i=void 0);return e}function Ji(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Qi(e,n,t){let r=0,i,l;return a;function a(p){return e.enter("codeText"),e.enter("codeTextSequence"),o(p)}function o(p){return p===96?(e.consume(p),r++,o):(e.exit("codeTextSequence"),c(p))}function c(p){return p===null?t(p):p===32?(e.enter("space"),e.consume(p),e.exit("space"),c):p===96?(l=e.enter("codeTextSequence"),i=0,s(p)):O(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("codeTextData"),u(p))}function u(p){return p===null||p===32||p===96||O(p)?(e.exit("codeTextData"),c(p)):(e.consume(p),u)}function s(p){return p===96?(e.consume(p),i++,s):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(p)):(l.type="codeTextData",u(p))}}class Zi{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,t){const r=t??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){const i=t||0;this.setCursor(Math.trunc(n));const l=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Ne(this.left,r),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),Ne(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Ne(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const t=this.left.splice(n,Number.POSITIVE_INFINITY);Ne(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);Ne(this.left,t.reverse())}}}function Ne(e,n){let t=0;if(n.length<1e4)e.push(...n);else for(;t<n.length;)e.push(...n.slice(t,t+1e4)),t+=1e4}function er(e){const n={};let t=-1,r,i,l,a,o,c,u;const s=new Zi(e);for(;++t<s.length;){for(;t in n;)t=n[t];if(r=s.get(t),t&&r[1].type==="chunkFlow"&&s.get(t-1)[1].type==="listItemPrefix"&&(c=r[1]._tokenizer.events,l=0,l<c.length&&c[l][1].type==="lineEndingBlank"&&(l+=2),l<c.length&&c[l][1].type==="content"))for(;++l<c.length&&c[l][1].type!=="content";)c[l][1].type==="chunkText"&&(c[l][1]._isInFirstContentOfListItem=!0,l++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,Ki(s,t)),t=n[t],u=!0);else if(r[1]._container){for(l=t,i=void 0;l--;)if(a=s.get(l),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank")a[0]==="enter"&&(i&&(s.get(i)[1].type="lineEndingBlank"),a[1].type="lineEnding",i=l);else if(!(a[1].type==="linePrefix"||a[1].type==="listItemIndent"))break;i&&(r[1].end={...s.get(i)[1].start},o=s.slice(i,t),o.unshift(r),s.splice(i,t-i+1,o))}}return ge(e,0,Number.POSITIVE_INFINITY,s.slice(0)),!u}function Ki(e,n){const t=e.get(n)[1],r=e.get(n)[2];let i=n-1;const l=[];let a=t._tokenizer;a||(a=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const o=a.events,c=[],u={};let s,p,g=-1,f=t,A=0,C=0;const v=[C];for(;f;){for(;e.get(++i)[1]!==f;);l.push(i),f._tokenizer||(s=r.sliceStream(f),f.next||s.push(null),p&&a.defineSkip(f.start),f._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(s),f._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),p=f,f=f.next}for(f=t;++g<o.length;)o[g][0]==="exit"&&o[g-1][0]==="enter"&&o[g][1].type===o[g-1][1].type&&o[g][1].start.line!==o[g][1].end.line&&(C=g+1,v.push(C),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(a.events=[],f?(f._tokenizer=void 0,f.previous=void 0):v.pop(),g=v.length;g--;){const b=o.slice(v[g],v[g+1]),x=l.pop();c.push([x,x+b.length-1]),e.splice(x,2,b)}for(c.reverse(),g=-1;++g<c.length;)u[A+c[g][0]]=A+c[g][1],A+=c[g][1]-c[g][0]-1;return u}const el={resolve:tl,tokenize:rl},nl={partial:!0,tokenize:il};function tl(e){return er(e),e}function rl(e,n){let t;return r;function r(o){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),i(o)}function i(o){return o===null?l(o):O(o)?e.check(nl,a,l)(o):(e.consume(o),i)}function l(o){return e.exit("chunkContent"),e.exit("content"),n(o)}function a(o){return e.consume(o),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function il(e,n,t){const r=this;return i;function i(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),W(e,l,"linePrefix")}function l(a){if(a===null||O(a))return t(a);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?n(a):e.interrupt(r.parser.constructs.flow,t,n)(a)}}function nr(e,n,t,r,i,l,a,o,c){const u=c||Number.POSITIVE_INFINITY;let s=0;return p;function p(b){return b===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(b),e.exit(l),g):b===null||b===32||b===41||Sn(b)?t(b):(e.enter(r),e.enter(a),e.enter(o),e.enter("chunkString",{contentType:"string"}),C(b))}function g(b){return b===62?(e.enter(l),e.consume(b),e.exit(l),e.exit(i),e.exit(r),n):(e.enter(o),e.enter("chunkString",{contentType:"string"}),f(b))}function f(b){return b===62?(e.exit("chunkString"),e.exit(o),g(b)):b===null||b===60||O(b)?t(b):(e.consume(b),b===92?A:f)}function A(b){return b===60||b===62||b===92?(e.consume(b),f):f(b)}function C(b){return!s&&(b===null||b===41||te(b))?(e.exit("chunkString"),e.exit(o),e.exit(a),e.exit(r),n(b)):s<u&&b===40?(e.consume(b),s++,C):b===41?(e.consume(b),s--,C):b===null||b===32||b===40||Sn(b)?t(b):(e.consume(b),b===92?v:C)}function v(b){return b===40||b===41||b===92?(e.consume(b),C):C(b)}}function tr(e,n,t,r,i,l){const a=this;let o=0,c;return u;function u(f){return e.enter(r),e.enter(i),e.consume(f),e.exit(i),e.enter(l),s}function s(f){return o>999||f===null||f===91||f===93&&!c||f===94&&!o&&"_hiddenFootnoteSupport"in a.parser.constructs?t(f):f===93?(e.exit(l),e.enter(i),e.consume(f),e.exit(i),e.exit(r),n):O(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),s):(e.enter("chunkString",{contentType:"string"}),p(f))}function p(f){return f===null||f===91||f===93||O(f)||o++>999?(e.exit("chunkString"),s(f)):(e.consume(f),c||(c=!j(f)),f===92?g:p)}function g(f){return f===91||f===92||f===93?(e.consume(f),o++,p):p(f)}}function rr(e,n,t,r,i,l){let a;return o;function o(g){return g===34||g===39||g===40?(e.enter(r),e.enter(i),e.consume(g),e.exit(i),a=g===40?41:g,c):t(g)}function c(g){return g===a?(e.enter(i),e.consume(g),e.exit(i),e.exit(r),n):(e.enter(l),u(g))}function u(g){return g===a?(e.exit(l),c(a)):g===null?t(g):O(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),W(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),s(g))}function s(g){return g===a||g===null||O(g)?(e.exit("chunkString"),u(g)):(e.consume(g),g===92?p:s)}function p(g){return g===a||g===92?(e.consume(g),s):s(g)}}function je(e,n){let t;return r;function r(i){return O(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):j(i)?W(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const ll={name:"definition",tokenize:ol},al={partial:!0,tokenize:ul};function ol(e,n,t){const r=this;let i;return l;function l(f){return e.enter("definition"),a(f)}function a(f){return tr.call(r,e,o,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function o(f){return i=Te(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),c):t(f)}function c(f){return te(f)?je(e,u)(f):u(f)}function u(f){return nr(e,s,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function s(f){return e.attempt(al,p,p)(f)}function p(f){return j(f)?W(e,g,"whitespace")(f):g(f)}function g(f){return f===null||O(f)?(e.exit("definition"),r.parser.defined.push(i),n(f)):t(f)}}function ul(e,n,t){return r;function r(o){return te(o)?je(e,i)(o):t(o)}function i(o){return rr(e,l,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function l(o){return j(o)?W(e,a,"whitespace")(o):a(o)}function a(o){return o===null||O(o)?n(o):t(o)}}const sl={name:"hardBreakEscape",tokenize:cl};function cl(e,n,t){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return O(l)?(e.exit("hardBreakEscape"),n(l)):t(l)}}const pl={name:"headingAtx",resolve:fl,tokenize:hl};function fl(e,n){let t=e.length-2,r=3,i,l;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},l={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},ge(e,r,t-r+1,[["enter",i,n],["enter",l,n],["exit",l,n],["exit",i,n]])),e}function hl(e,n,t){let r=0;return i;function i(s){return e.enter("atxHeading"),l(s)}function l(s){return e.enter("atxHeadingSequence"),a(s)}function a(s){return s===35&&r++<6?(e.consume(s),a):s===null||te(s)?(e.exit("atxHeadingSequence"),o(s)):t(s)}function o(s){return s===35?(e.enter("atxHeadingSequence"),c(s)):s===null||O(s)?(e.exit("atxHeading"),n(s)):j(s)?W(e,o,"whitespace")(s):(e.enter("atxHeadingText"),u(s))}function c(s){return s===35?(e.consume(s),c):(e.exit("atxHeadingSequence"),o(s))}function u(s){return s===null||s===35||te(s)?(e.exit("atxHeadingText"),o(s)):(e.consume(s),u)}}const dl=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],dt=["pre","script","style","textarea"],gl={concrete:!0,name:"htmlFlow",resolveTo:xl,tokenize:kl},ml={partial:!0,tokenize:wl},yl={partial:!0,tokenize:bl};function xl(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function kl(e,n,t){const r=this;let i,l,a,o,c;return u;function u(d){return s(d)}function s(d){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(d),p}function p(d){return d===33?(e.consume(d),g):d===47?(e.consume(d),l=!0,C):d===63?(e.consume(d),i=3,r.interrupt?n:h):de(d)?(e.consume(d),a=String.fromCharCode(d),v):t(d)}function g(d){return d===45?(e.consume(d),i=2,f):d===91?(e.consume(d),i=5,o=0,A):de(d)?(e.consume(d),i=4,r.interrupt?n:h):t(d)}function f(d){return d===45?(e.consume(d),r.interrupt?n:h):t(d)}function A(d){const Q="CDATA[";return d===Q.charCodeAt(o++)?(e.consume(d),o===Q.length?r.interrupt?n:L:A):t(d)}function C(d){return de(d)?(e.consume(d),a=String.fromCharCode(d),v):t(d)}function v(d){if(d===null||d===47||d===62||te(d)){const Q=d===47,ie=a.toLowerCase();return!Q&&!l&&dt.includes(ie)?(i=1,r.interrupt?n(d):L(d)):dl.includes(a.toLowerCase())?(i=6,Q?(e.consume(d),b):r.interrupt?n(d):L(d)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(d):l?x(d):m(d))}return d===45||oe(d)?(e.consume(d),a+=String.fromCharCode(d),v):t(d)}function b(d){return d===62?(e.consume(d),r.interrupt?n:L):t(d)}function x(d){return j(d)?(e.consume(d),x):R(d)}function m(d){return d===47?(e.consume(d),R):d===58||d===95||de(d)?(e.consume(d),w):j(d)?(e.consume(d),m):R(d)}function w(d){return d===45||d===46||d===58||d===95||oe(d)?(e.consume(d),w):S(d)}function S(d){return d===61?(e.consume(d),y):j(d)?(e.consume(d),S):m(d)}function y(d){return d===null||d===60||d===61||d===62||d===96?t(d):d===34||d===39?(e.consume(d),c=d,I):j(d)?(e.consume(d),y):_(d)}function I(d){return d===c?(e.consume(d),c=null,T):d===null||O(d)?t(d):(e.consume(d),I)}function _(d){return d===null||d===34||d===39||d===47||d===60||d===61||d===62||d===96||te(d)?S(d):(e.consume(d),_)}function T(d){return d===47||d===62||j(d)?m(d):t(d)}function R(d){return d===62?(e.consume(d),z):t(d)}function z(d){return d===null||O(d)?L(d):j(d)?(e.consume(d),z):t(d)}function L(d){return d===45&&i===2?(e.consume(d),H):d===60&&i===1?(e.consume(d),Y):d===62&&i===4?(e.consume(d),K):d===63&&i===3?(e.consume(d),h):d===93&&i===5?(e.consume(d),J):O(d)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(ml,G,$)(d)):d===null||O(d)?(e.exit("htmlFlowData"),$(d)):(e.consume(d),L)}function $(d){return e.check(yl,D,G)(d)}function D(d){return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),P}function P(d){return d===null||O(d)?$(d):(e.enter("htmlFlowData"),L(d))}function H(d){return d===45?(e.consume(d),h):L(d)}function Y(d){return d===47?(e.consume(d),a="",U):L(d)}function U(d){if(d===62){const Q=a.toLowerCase();return dt.includes(Q)?(e.consume(d),K):L(d)}return de(d)&&a.length<8?(e.consume(d),a+=String.fromCharCode(d),U):L(d)}function J(d){return d===93?(e.consume(d),h):L(d)}function h(d){return d===62?(e.consume(d),K):d===45&&i===2?(e.consume(d),h):L(d)}function K(d){return d===null||O(d)?(e.exit("htmlFlowData"),G(d)):(e.consume(d),K)}function G(d){return e.exit("htmlFlow"),n(d)}}function bl(e,n,t){const r=this;return i;function i(a){return O(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),l):t(a)}function l(a){return r.parser.lazy[r.now().line]?t(a):n(a)}}function wl(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Qe,n,t)}}const Sl={name:"htmlText",tokenize:El};function El(e,n,t){const r=this;let i,l,a;return o;function o(h){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(h),c}function c(h){return h===33?(e.consume(h),u):h===47?(e.consume(h),S):h===63?(e.consume(h),m):de(h)?(e.consume(h),_):t(h)}function u(h){return h===45?(e.consume(h),s):h===91?(e.consume(h),l=0,A):de(h)?(e.consume(h),x):t(h)}function s(h){return h===45?(e.consume(h),f):t(h)}function p(h){return h===null?t(h):h===45?(e.consume(h),g):O(h)?(a=p,Y(h)):(e.consume(h),p)}function g(h){return h===45?(e.consume(h),f):p(h)}function f(h){return h===62?H(h):h===45?g(h):p(h)}function A(h){const K="CDATA[";return h===K.charCodeAt(l++)?(e.consume(h),l===K.length?C:A):t(h)}function C(h){return h===null?t(h):h===93?(e.consume(h),v):O(h)?(a=C,Y(h)):(e.consume(h),C)}function v(h){return h===93?(e.consume(h),b):C(h)}function b(h){return h===62?H(h):h===93?(e.consume(h),b):C(h)}function x(h){return h===null||h===62?H(h):O(h)?(a=x,Y(h)):(e.consume(h),x)}function m(h){return h===null?t(h):h===63?(e.consume(h),w):O(h)?(a=m,Y(h)):(e.consume(h),m)}function w(h){return h===62?H(h):m(h)}function S(h){return de(h)?(e.consume(h),y):t(h)}function y(h){return h===45||oe(h)?(e.consume(h),y):I(h)}function I(h){return O(h)?(a=I,Y(h)):j(h)?(e.consume(h),I):H(h)}function _(h){return h===45||oe(h)?(e.consume(h),_):h===47||h===62||te(h)?T(h):t(h)}function T(h){return h===47?(e.consume(h),H):h===58||h===95||de(h)?(e.consume(h),R):O(h)?(a=T,Y(h)):j(h)?(e.consume(h),T):H(h)}function R(h){return h===45||h===46||h===58||h===95||oe(h)?(e.consume(h),R):z(h)}function z(h){return h===61?(e.consume(h),L):O(h)?(a=z,Y(h)):j(h)?(e.consume(h),z):T(h)}function L(h){return h===null||h===60||h===61||h===62||h===96?t(h):h===34||h===39?(e.consume(h),i=h,$):O(h)?(a=L,Y(h)):j(h)?(e.consume(h),L):(e.consume(h),D)}function $(h){return h===i?(e.consume(h),i=void 0,P):h===null?t(h):O(h)?(a=$,Y(h)):(e.consume(h),$)}function D(h){return h===null||h===34||h===39||h===60||h===61||h===96?t(h):h===47||h===62||te(h)?T(h):(e.consume(h),D)}function P(h){return h===47||h===62||te(h)?T(h):t(h)}function H(h){return h===62?(e.consume(h),e.exit("htmlTextData"),e.exit("htmlText"),n):t(h)}function Y(h){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),U}function U(h){return j(h)?W(e,J,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(h):J(h)}function J(h){return e.enter("htmlTextData"),a(h)}}const On={name:"labelEnd",resolveAll:Il,resolveTo:Tl,tokenize:Fl},Cl={tokenize:Pl},vl={tokenize:zl},Al={tokenize:Ll};function Il(e){let n=-1;const t=[];for(;++n<e.length;){const r=e[n][1];if(t.push(e[n]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",n+=i}}return e.length!==t.length&&ge(e,0,e.length,t),e}function Tl(e,n){let t=e.length,r=0,i,l,a,o;for(;t--;)if(i=e[t][1],l){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[t][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(a){if(e[t][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(l=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(a=t);const c={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[l][1].start},end:{...e[a][1].end}},s={type:"labelText",start:{...e[l+r+2][1].end},end:{...e[a-2][1].start}};return o=[["enter",c,n],["enter",u,n]],o=se(o,e.slice(l+1,l+r+3)),o=se(o,[["enter",s,n]]),o=se(o,Dn(n.parser.constructs.insideSpan.null,e.slice(l+r+4,a-3),n)),o=se(o,[["exit",s,n],e[a-2],e[a-1],["exit",u,n]]),o=se(o,e.slice(a+1)),o=se(o,[["exit",c,n]]),ge(e,l,e.length,o),e}function Fl(e,n,t){const r=this;let i=r.events.length,l,a;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){l=r.events[i][1];break}return o;function o(g){return l?l._inactive?p(g):(a=r.parser.defined.includes(Te(r.sliceSerialize({start:l.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(g),e.exit("labelMarker"),e.exit("labelEnd"),c):t(g)}function c(g){return g===40?e.attempt(Cl,s,a?s:p)(g):g===91?e.attempt(vl,s,a?u:p)(g):a?s(g):p(g)}function u(g){return e.attempt(Al,s,p)(g)}function s(g){return n(g)}function p(g){return l._balanced=!0,t(g)}}function Pl(e,n,t){return r;function r(p){return e.enter("resource"),e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),i}function i(p){return te(p)?je(e,l)(p):l(p)}function l(p){return p===41?s(p):nr(e,a,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function a(p){return te(p)?je(e,c)(p):s(p)}function o(p){return t(p)}function c(p){return p===34||p===39||p===40?rr(e,u,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):s(p)}function u(p){return te(p)?je(e,s)(p):s(p)}function s(p){return p===41?(e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),e.exit("resource"),n):t(p)}}function zl(e,n,t){const r=this;return i;function i(o){return tr.call(r,e,l,a,"reference","referenceMarker","referenceString")(o)}function l(o){return r.parser.defined.includes(Te(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(o):t(o)}function a(o){return t(o)}}function Ll(e,n,t){return r;function r(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),i}function i(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),n):t(l)}}const _l={name:"labelStartImage",resolveAll:On.resolveAll,tokenize:Rl};function Rl(e,n,t){const r=this;return i;function i(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),l}function l(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),a):t(o)}function a(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(o):n(o)}}const Dl={name:"labelStartLink",resolveAll:On.resolveAll,tokenize:Ol};function Ol(e,n,t){const r=this;return i;function i(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),l}function l(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(a):n(a)}}const un={name:"lineEnding",tokenize:Nl};function Nl(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),W(e,n,"linePrefix")}}const Xe={name:"thematicBreak",tokenize:Ml};function Ml(e,n,t){let r=0,i;return l;function l(u){return e.enter("thematicBreak"),a(u)}function a(u){return i=u,o(u)}function o(u){return u===i?(e.enter("thematicBreakSequence"),c(u)):r>=3&&(u===null||O(u))?(e.exit("thematicBreak"),n(u)):t(u)}function c(u){return u===i?(e.consume(u),r++,c):(e.exit("thematicBreakSequence"),j(u)?W(e,o,"whitespace")(u):o(u))}}const ne={continuation:{tokenize:$l},exit:ql,name:"list",tokenize:Hl},Bl={partial:!0,tokenize:Vl},jl={partial:!0,tokenize:Ul};function Hl(e,n,t){const r=this,i=r.events[r.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return o;function o(f){const A=r.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(A==="listUnordered"?!r.containerState.marker||f===r.containerState.marker:En(f)){if(r.containerState.type||(r.containerState.type=A,e.enter(A,{_container:!0})),A==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(Xe,t,u)(f):u(f);if(!r.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(f)}return t(f)}function c(f){return En(f)&&++a<10?(e.consume(f),c):(!r.interrupt||a<2)&&(r.containerState.marker?f===r.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),u(f)):t(f)}function u(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||f,e.check(Qe,r.interrupt?t:s,e.attempt(Bl,g,p))}function s(f){return r.containerState.initialBlankLine=!0,l++,g(f)}function p(f){return j(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),g):t(f)}function g(f){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(f)}}function $l(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(Qe,i,l);function i(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,W(e,n,"listItemIndent",r.containerState.size+1)(o)}function l(o){return r.containerState.furtherBlankLines||!j(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(jl,n,a)(o))}function a(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,W(e,e.attempt(ne,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function Ul(e,n,t){const r=this;return W(e,i,"listItemIndent",r.containerState.size+1);function i(l){const a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?n(l):t(l)}}function ql(e){e.exit(this.containerState.type)}function Vl(e,n,t){const r=this;return W(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(l){const a=r.events[r.events.length-1];return!j(l)&&a&&a[1].type==="listItemPrefixWhitespace"?n(l):t(l)}}const gt={name:"setextUnderline",resolveTo:Wl,tokenize:Yl};function Wl(e,n){let t=e.length,r,i,l;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(i=t)}else e[t][1].type==="content"&&e.splice(t,1),!l&&e[t][1].type==="definition"&&(l=t);const a={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",l?(e.splice(i,0,["enter",a,n]),e.splice(l+1,0,["exit",e[r][1],n]),e[r][1].end={...e[l][1].end}):e[r][1]=a,e.push(["exit",a,n]),e}function Yl(e,n,t){const r=this;let i;return l;function l(u){let s=r.events.length,p;for(;s--;)if(r.events[s][1].type!=="lineEnding"&&r.events[s][1].type!=="linePrefix"&&r.events[s][1].type!=="content"){p=r.events[s][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||p)?(e.enter("setextHeadingLine"),i=u,a(u)):t(u)}function a(u){return e.enter("setextHeadingLineSequence"),o(u)}function o(u){return u===i?(e.consume(u),o):(e.exit("setextHeadingLineSequence"),j(u)?W(e,c,"lineSuffix")(u):c(u))}function c(u){return u===null||O(u)?(e.exit("setextHeadingLine"),n(u)):t(u)}}const Xl={tokenize:Gl};function Gl(e){const n=this,t=e.attempt(Qe,r,e.attempt(this.parser.constructs.flowInitial,i,W(e,e.attempt(this.parser.constructs.flow,i,e.attempt(el,i)),"linePrefix")));return t;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const Jl={resolveAll:lr()},Ql=ir("string"),Zl=ir("text");function ir(e){return{resolveAll:lr(e==="text"?Kl:void 0),tokenize:n};function n(t){const r=this,i=this.parser.constructs[e],l=t.attempt(i,a,o);return a;function a(s){return u(s)?l(s):o(s)}function o(s){if(s===null){t.consume(s);return}return t.enter("data"),t.consume(s),c}function c(s){return u(s)?(t.exit("data"),l(s)):(t.consume(s),c)}function u(s){if(s===null)return!0;const p=i[s];let g=-1;if(p)for(;++g<p.length;){const f=p[g];if(!f.previous||f.previous.call(r,r.previous))return!0}return!1}}}function lr(e){return n;function n(t,r){let i=-1,l;for(;++i<=t.length;)l===void 0?t[i]&&t[i][1].type==="data"&&(l=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==l+2&&(t[l][1].end=t[i-1][1].end,t.splice(l+2,i-l-2),i=l+2),l=void 0);return e?e(t,r):t}}function Kl(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){const r=e[t-1][1],i=n.sliceStream(r);let l=i.length,a=-1,o=0,c;for(;l--;){const u=i[l];if(typeof u=="string"){for(a=u.length;u.charCodeAt(a-1)===32;)o++,a--;if(a)break;a=-1}else if(u===-2)c=!0,o++;else if(u!==-1){l++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(o=0),o){const u={type:t===e.length||c||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?a:r.start._bufferIndex+a,_index:r.start._index+l,line:r.end.line,column:r.end.column-o,offset:r.end.offset-o},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(t,0,["enter",u,n],["exit",u,n]),t+=2)}t++}return e}const ea={42:ne,43:ne,45:ne,48:ne,49:ne,50:ne,51:ne,52:ne,53:ne,54:ne,55:ne,56:ne,57:ne,62:Qt},na={91:ll},ta={[-2]:on,[-1]:on,32:on},ra={35:pl,42:Xe,45:[gt,Xe],60:gl,61:gt,95:Xe,96:ht,126:ht},ia={38:Kt,92:Zt},la={[-5]:un,[-4]:un,[-3]:un,33:_l,38:Kt,42:Cn,60:[Di,Sl],91:Dl,92:[sl,Zt],93:On,95:Cn,96:Xi},aa={null:[Cn,Jl]},oa={null:[42,95]},ua={null:[]},sa=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:oa,contentInitial:na,disable:ua,document:ea,flow:ra,flowInitial:ta,insideSpan:aa,string:ia,text:la},Symbol.toStringTag,{value:"Module"}));function ca(e,n,t){let r={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0};const i={},l=[];let a=[],o=[];const c={attempt:I(S),check:I(y),consume:x,enter:m,exit:w,interrupt:I(y,{interrupt:!0})},u={code:null,containerState:{},defineSkip:C,events:[],now:A,parser:e,previous:null,sliceSerialize:g,sliceStream:f,write:p};let s=n.tokenize.call(u,c);return n.resolveAll&&l.push(n),u;function p(z){return a=se(a,z),v(),a[a.length-1]!==null?[]:(_(n,0),u.events=Dn(l,u.events,u),u.events)}function g(z,L){return fa(f(z),L)}function f(z){return pa(a,z)}function A(){const{_bufferIndex:z,_index:L,line:$,column:D,offset:P}=r;return{_bufferIndex:z,_index:L,line:$,column:D,offset:P}}function C(z){i[z.line]=z.column,R()}function v(){let z;for(;r._index<a.length;){const L=a[r._index];if(typeof L=="string")for(z=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===z&&r._bufferIndex<L.length;)b(L.charCodeAt(r._bufferIndex));else b(L)}}function b(z){s=s(z)}function x(z){O(z)?(r.line++,r.column=1,r.offset+=z===-3?2:1,R()):z!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=z}function m(z,L){const $=L||{};return $.type=z,$.start=A(),u.events.push(["enter",$,u]),o.push($),$}function w(z){const L=o.pop();return L.end=A(),u.events.push(["exit",L,u]),L}function S(z,L){_(z,L.from)}function y(z,L){L.restore()}function I(z,L){return $;function $(D,P,H){let Y,U,J,h;return Array.isArray(D)?G(D):"tokenize"in D?G([D]):K(D);function K(X){return pe;function pe(ue){const me=ue!==null&&X[ue],fe=ue!==null&&X.null,ye=[...Array.isArray(me)?me:me?[me]:[],...Array.isArray(fe)?fe:fe?[fe]:[]];return G(ye)(ue)}}function G(X){return Y=X,U=0,X.length===0?H:d(X[U])}function d(X){return pe;function pe(ue){return h=T(),J=X,X.partial||(u.currentConstruct=X),X.name&&u.parser.constructs.disable.null.includes(X.name)?ie():X.tokenize.call(L?Object.assign(Object.create(u),L):u,c,Q,ie)(ue)}}function Q(X){return z(J,h),P}function ie(X){return h.restore(),++U<Y.length?d(Y[U]):H}}}function _(z,L){z.resolveAll&&!l.includes(z)&&l.push(z),z.resolve&&ge(u.events,L,u.events.length-L,z.resolve(u.events.slice(L),u)),z.resolveTo&&(u.events=z.resolveTo(u.events,u))}function T(){const z=A(),L=u.previous,$=u.currentConstruct,D=u.events.length,P=Array.from(o);return{from:D,restore:H};function H(){r=z,u.previous=L,u.currentConstruct=$,u.events.length=D,o=P,R()}}function R(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function pa(e,n){const t=n.start._index,r=n.start._bufferIndex,i=n.end._index,l=n.end._bufferIndex;let a;if(t===i)a=[e[t].slice(r,l)];else{if(a=e.slice(t,i),r>-1){const o=a[0];typeof o=="string"?a[0]=o.slice(r):a.shift()}l>0&&a.push(e[i].slice(0,l))}return a}function fa(e,n){let t=-1;const r=[];let i;for(;++t<e.length;){const l=e[t];let a;if(typeof l=="string")a=l;else switch(l){case-5:{a="\r";break}case-4:{a=`
|
|
11
|
+
`;break}case-3:{a=`\r
|
|
12
|
+
`;break}case-2:{a=n?" ":" ";break}case-1:{if(!n&&i)continue;a=" ";break}default:a=String.fromCharCode(l)}i=l===-2,r.push(a)}return r.join("")}function ha(e){const r={constructs:bi([sa,...(e||{}).extensions||[]]),content:i(Ti),defined:[],document:i(Pi),flow:i(Xl),lazy:{},string:i(Ql),text:i(Zl)};return r;function i(l){return a;function a(o){return ca(r,l,o)}}}function da(e){for(;!er(e););return e}const mt=/[\0\t\n\r]/g;function ga(){let e=1,n="",t=!0,r;return i;function i(l,a,o){const c=[];let u,s,p,g,f;for(l=n+(typeof l=="string"?l.toString():new TextDecoder(a||void 0).decode(l)),p=0,n="",t&&(l.charCodeAt(0)===65279&&p++,t=void 0);p<l.length;){if(mt.lastIndex=p,u=mt.exec(l),g=u&&u.index!==void 0?u.index:l.length,f=l.charCodeAt(g),!u){n=l.slice(p);break}if(f===10&&p===g&&r)c.push(-3),r=void 0;else switch(r&&(c.push(-5),r=void 0),p<g&&(c.push(l.slice(p,g)),e+=g-p),f){case 0:{c.push(65533),e++;break}case 9:{for(s=Math.ceil(e/4)*4,c.push(-2);e++<s;)c.push(-1);break}case 10:{c.push(-4),e=1;break}default:r=!0,e=1}p=g+1}return o&&(r&&c.push(-5),n&&c.push(n),c.push(null)),c}}const ma=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ya(e){return e.replace(ma,xa)}function xa(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),l=i===120||i===88;return Jt(t.slice(l?2:1),l?16:10)}return Rn(t)||e}const ar={}.hasOwnProperty;function ka(e,n,t){return n&&typeof n=="object"&&(t=n,n=void 0),ba(t)(da(ha(t).document().write(ga()(e,n,!0))))}function ba(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Vn),autolinkProtocol:T,autolinkEmail:T,atxHeading:l($n),blockQuote:l(fe),characterEscape:T,characterReference:T,codeFenced:l(ye),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:l(ye,a),codeText:l(en,a),codeTextData:T,data:T,codeFlowValue:T,definition:l(ze),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:l(xr),hardBreakEscape:l(Un),hardBreakTrailing:l(Un),htmlFlow:l(qn,a),htmlFlowData:T,htmlText:l(qn,a),htmlTextData:T,image:l(kr),label:a,link:l(Vn),listItem:l(br),listItemValue:g,listOrdered:l(Wn,p),listUnordered:l(Wn),paragraph:l(wr),reference:d,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:l($n),strong:l(Sr),thematicBreak:l(Cr)},exit:{atxHeading:c(),atxHeadingSequence:S,autolink:c(),autolinkEmail:me,autolinkProtocol:ue,blockQuote:c(),characterEscapeValue:R,characterReferenceMarkerHexadecimal:ie,characterReferenceMarkerNumeric:ie,characterReferenceValue:X,characterReference:pe,codeFenced:c(v),codeFencedFence:C,codeFencedFenceInfo:f,codeFencedFenceMeta:A,codeFlowValue:R,codeIndented:c(b),codeText:c(P),codeTextData:R,data:R,definition:c(),definitionDestinationString:w,definitionLabelString:x,definitionTitleString:m,emphasis:c(),hardBreakEscape:c(L),hardBreakTrailing:c(L),htmlFlow:c($),htmlFlowData:R,htmlText:c(D),htmlTextData:R,image:c(Y),label:J,labelText:U,lineEnding:z,link:c(H),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:Q,resourceDestinationString:h,resourceTitleString:K,resource:G,setextHeading:c(_),setextHeadingLineSequence:I,setextHeadingText:y,strong:c(),thematicBreak:c()}};or(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(k){let F={type:"root",children:[]};const M={stack:[F],tokenStack:[],config:n,enter:o,exit:u,buffer:a,resume:s,data:t},B=[];let q=-1;for(;++q<k.length;)if(k[q][1].type==="listOrdered"||k[q][1].type==="listUnordered")if(k[q][0]==="enter")B.push(q);else{const ce=B.pop();q=i(k,ce,q)}for(q=-1;++q<k.length;){const ce=n[k[q][0]];ar.call(ce,k[q][1].type)&&ce[k[q][1].type].call(Object.assign({sliceSerialize:k[q][2].sliceSerialize},M),k[q][1])}if(M.tokenStack.length>0){const ce=M.tokenStack[M.tokenStack.length-1];(ce[1]||yt).call(M,void 0,ce[0])}for(F.position={start:be(k.length>0?k[0][1].start:{line:1,column:1,offset:0}),end:be(k.length>0?k[k.length-2][1].end:{line:1,column:1,offset:0})},q=-1;++q<n.transforms.length;)F=n.transforms[q](F)||F;return F}function i(k,F,M){let B=F-1,q=-1,ce=!1,Se,xe,Le,_e;for(;++B<=M;){const le=k[B];switch(le[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{le[0]==="enter"?q++:q--,_e=void 0;break}case"lineEndingBlank":{le[0]==="enter"&&(Se&&!_e&&!q&&!Le&&(Le=B),_e=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:_e=void 0}if(!q&&le[0]==="enter"&&le[1].type==="listItemPrefix"||q===-1&&le[0]==="exit"&&(le[1].type==="listUnordered"||le[1].type==="listOrdered")){if(Se){let Ae=B;for(xe=void 0;Ae--;){const ke=k[Ae];if(ke[1].type==="lineEnding"||ke[1].type==="lineEndingBlank"){if(ke[0]==="exit")continue;xe&&(k[xe][1].type="lineEndingBlank",ce=!0),ke[1].type="lineEnding",xe=Ae}else if(!(ke[1].type==="linePrefix"||ke[1].type==="blockQuotePrefix"||ke[1].type==="blockQuotePrefixWhitespace"||ke[1].type==="blockQuoteMarker"||ke[1].type==="listItemIndent"))break}Le&&(!xe||Le<xe)&&(Se._spread=!0),Se.end=Object.assign({},xe?k[xe][1].start:le[1].end),k.splice(xe||B,0,["exit",Se,le[2]]),B++,M++}if(le[1].type==="listItemPrefix"){const Ae={type:"listItem",_spread:!1,start:Object.assign({},le[1].start),end:void 0};Se=Ae,k.splice(B,0,["enter",Ae,le[2]]),B++,M++,Le=void 0,_e=!0}}}return k[F][1]._spread=ce,M}function l(k,F){return M;function M(B){o.call(this,k(B),B),F&&F.call(this,B)}}function a(){this.stack.push({type:"fragment",children:[]})}function o(k,F,M){this.stack[this.stack.length-1].children.push(k),this.stack.push(k),this.tokenStack.push([F,M||void 0]),k.position={start:be(F.start),end:void 0}}function c(k){return F;function F(M){k&&k.call(this,M),u.call(this,M)}}function u(k,F){const M=this.stack.pop(),B=this.tokenStack.pop();if(B)B[0].type!==k.type&&(F?F.call(this,k,B[0]):(B[1]||yt).call(this,k,B[0]));else throw new Error("Cannot close `"+k.type+"` ("+Be({start:k.start,end:k.end})+"): it’s not open");M.position.end=be(k.end)}function s(){return xi(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function g(k){if(this.data.expectingFirstListItemValue){const F=this.stack[this.stack.length-2];F.start=Number.parseInt(this.sliceSerialize(k),10),this.data.expectingFirstListItemValue=void 0}}function f(){const k=this.resume(),F=this.stack[this.stack.length-1];F.lang=k}function A(){const k=this.resume(),F=this.stack[this.stack.length-1];F.meta=k}function C(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){const k=this.resume(),F=this.stack[this.stack.length-1];F.value=k.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function b(){const k=this.resume(),F=this.stack[this.stack.length-1];F.value=k.replace(/(\r?\n|\r)$/g,"")}function x(k){const F=this.resume(),M=this.stack[this.stack.length-1];M.label=F,M.identifier=Te(this.sliceSerialize(k)).toLowerCase()}function m(){const k=this.resume(),F=this.stack[this.stack.length-1];F.title=k}function w(){const k=this.resume(),F=this.stack[this.stack.length-1];F.url=k}function S(k){const F=this.stack[this.stack.length-1];if(!F.depth){const M=this.sliceSerialize(k).length;F.depth=M}}function y(){this.data.setextHeadingSlurpLineEnding=!0}function I(k){const F=this.stack[this.stack.length-1];F.depth=this.sliceSerialize(k).codePointAt(0)===61?1:2}function _(){this.data.setextHeadingSlurpLineEnding=void 0}function T(k){const M=this.stack[this.stack.length-1].children;let B=M[M.length-1];(!B||B.type!=="text")&&(B=Er(),B.position={start:be(k.start),end:void 0},M.push(B)),this.stack.push(B)}function R(k){const F=this.stack.pop();F.value+=this.sliceSerialize(k),F.position.end=be(k.end)}function z(k){const F=this.stack[this.stack.length-1];if(this.data.atHardBreak){const M=F.children[F.children.length-1];M.position.end=be(k.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(F.type)&&(T.call(this,k),R.call(this,k))}function L(){this.data.atHardBreak=!0}function $(){const k=this.resume(),F=this.stack[this.stack.length-1];F.value=k}function D(){const k=this.resume(),F=this.stack[this.stack.length-1];F.value=k}function P(){const k=this.resume(),F=this.stack[this.stack.length-1];F.value=k}function H(){const k=this.stack[this.stack.length-1];if(this.data.inReference){const F=this.data.referenceType||"shortcut";k.type+="Reference",k.referenceType=F,delete k.url,delete k.title}else delete k.identifier,delete k.label;this.data.referenceType=void 0}function Y(){const k=this.stack[this.stack.length-1];if(this.data.inReference){const F=this.data.referenceType||"shortcut";k.type+="Reference",k.referenceType=F,delete k.url,delete k.title}else delete k.identifier,delete k.label;this.data.referenceType=void 0}function U(k){const F=this.sliceSerialize(k),M=this.stack[this.stack.length-2];M.label=ya(F),M.identifier=Te(F).toLowerCase()}function J(){const k=this.stack[this.stack.length-1],F=this.resume(),M=this.stack[this.stack.length-1];if(this.data.inReference=!0,M.type==="link"){const B=k.children;M.children=B}else M.alt=F}function h(){const k=this.resume(),F=this.stack[this.stack.length-1];F.url=k}function K(){const k=this.resume(),F=this.stack[this.stack.length-1];F.title=k}function G(){this.data.inReference=void 0}function d(){this.data.referenceType="collapsed"}function Q(k){const F=this.resume(),M=this.stack[this.stack.length-1];M.label=F,M.identifier=Te(this.sliceSerialize(k)).toLowerCase(),this.data.referenceType="full"}function ie(k){this.data.characterReferenceType=k.type}function X(k){const F=this.sliceSerialize(k),M=this.data.characterReferenceType;let B;M?(B=Jt(F,M==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):B=Rn(F);const q=this.stack[this.stack.length-1];q.value+=B}function pe(k){const F=this.stack.pop();F.position.end=be(k.end)}function ue(k){R.call(this,k);const F=this.stack[this.stack.length-1];F.url=this.sliceSerialize(k)}function me(k){R.call(this,k);const F=this.stack[this.stack.length-1];F.url="mailto:"+this.sliceSerialize(k)}function fe(){return{type:"blockquote",children:[]}}function ye(){return{type:"code",lang:null,meta:null,value:""}}function en(){return{type:"inlineCode",value:""}}function ze(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function xr(){return{type:"emphasis",children:[]}}function $n(){return{type:"heading",depth:0,children:[]}}function Un(){return{type:"break"}}function qn(){return{type:"html",value:""}}function kr(){return{type:"image",title:null,url:"",alt:null}}function Vn(){return{type:"link",title:null,url:"",children:[]}}function Wn(k){return{type:"list",ordered:k.type==="listOrdered",start:null,spread:k._spread,children:[]}}function br(k){return{type:"listItem",spread:k._spread,checked:null,children:[]}}function wr(){return{type:"paragraph",children:[]}}function Sr(){return{type:"strong",children:[]}}function Er(){return{type:"text",value:""}}function Cr(){return{type:"thematicBreak"}}}function be(e){return{line:e.line,column:e.column,offset:e.offset}}function or(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?or(e,r):wa(e,r)}}function wa(e,n){let t;for(t in n)if(ar.call(n,t))switch(t){case"canContainEols":{const r=n[t];r&&e[t].push(...r);break}case"transforms":{const r=n[t];r&&e[t].push(...r);break}case"enter":case"exit":{const r=n[t];r&&Object.assign(e[t],r);break}}}function yt(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Be({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Be({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Be({start:n.start,end:n.end})+") is still open")}function Sa(e){const n=this;n.parser=t;function t(r){return ka(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function Ea(e,n){const t={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,t),e.applyData(n,t)}function Ca(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:`
|
|
13
|
+
`}]}function va(e,n){const t=n.value?n.value+`
|
|
14
|
+
`:"",r={},i=n.lang?n.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let l={type:"element",tagName:"code",properties:r,children:[{type:"text",value:t}]};return n.meta&&(l.data={meta:n.meta}),e.patch(n,l),l=e.applyData(n,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(n,l),l}function Aa(e,n){const t={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Ia(e,n){const t={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Ta(e,n){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(n.identifier).toUpperCase(),i=Pe(r.toLowerCase()),l=e.footnoteOrder.indexOf(r);let a,o=e.footnoteCounts.get(r);o===void 0?(o=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=l+1,o+=1,e.footnoteCounts.set(r,o);const c={type:"element",tagName:"a",properties:{href:"#"+t+"fn-"+i,id:t+"fnref-"+i+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(n,c);const u={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(n,u),e.applyData(n,u)}function Fa(e,n){const t={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Pa(e,n){if(e.options.allowDangerousHtml){const t={type:"raw",value:n.value};return e.patch(n,t),e.applyData(n,t)}}function ur(e,n){const t=n.referenceType;let r="]";if(t==="collapsed"?r+="[]":t==="full"&&(r+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+r}];const i=e.all(n),l=i[0];l&&l.type==="text"?l.value="["+l.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&a.type==="text"?a.value+=r:i.push({type:"text",value:r}),i}function za(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return ur(e,n);const i={src:Pe(r.url||""),alt:n.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(n,l),e.applyData(n,l)}function La(e,n){const t={src:Pe(n.url)};n.alt!==null&&n.alt!==void 0&&(t.alt=n.alt),n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"img",properties:t,children:[]};return e.patch(n,r),e.applyData(n,r)}function _a(e,n){const t={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,t);const r={type:"element",tagName:"code",properties:{},children:[t]};return e.patch(n,r),e.applyData(n,r)}function Ra(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return ur(e,n);const i={href:Pe(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"a",properties:i,children:e.all(n)};return e.patch(n,l),e.applyData(n,l)}function Da(e,n){const t={href:Pe(n.url)};n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"a",properties:t,children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Oa(e,n,t){const r=e.all(n),i=t?Na(t):sr(n),l={},a=[];if(typeof n.checked=="boolean"){const s=r[0];let p;s&&s.type==="element"&&s.tagName==="p"?p=s:(p={type:"element",tagName:"p",properties:{},children:[]},r.unshift(p)),p.children.length>0&&p.children.unshift({type:"text",value:" "}),p.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let o=-1;for(;++o<r.length;){const s=r[o];(i||o!==0||s.type!=="element"||s.tagName!=="p")&&a.push({type:"text",value:`
|
|
15
|
+
`}),s.type==="element"&&s.tagName==="p"&&!i?a.push(...s.children):a.push(s)}const c=r[r.length-1];c&&(i||c.type!=="element"||c.tagName!=="p")&&a.push({type:"text",value:`
|
|
16
|
+
`});const u={type:"element",tagName:"li",properties:l,children:a};return e.patch(n,u),e.applyData(n,u)}function Na(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const t=e.children;let r=-1;for(;!n&&++r<t.length;)n=sr(t[r])}return n}function sr(e){const n=e.spread;return n??e.children.length>1}function Ma(e,n){const t={},r=e.all(n);let i=-1;for(typeof n.start=="number"&&n.start!==1&&(t.start=n.start);++i<r.length;){const a=r[i];if(a.type==="element"&&a.tagName==="li"&&a.properties&&Array.isArray(a.properties.className)&&a.properties.className.includes("task-list-item")){t.className=["contains-task-list"];break}}const l={type:"element",tagName:n.ordered?"ol":"ul",properties:t,children:e.wrap(r,!0)};return e.patch(n,l),e.applyData(n,l)}function Ba(e,n){const t={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function ja(e,n){const t={type:"root",children:e.wrap(e.all(n))};return e.patch(n,t),e.applyData(n,t)}function Ha(e,n){const t={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function $a(e,n){const t=e.all(n),r=t.shift(),i=[];if(r){const a={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(n.children[0],a),i.push(a)}if(t.length>0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(t,!0)},o=Pn(n.children[1]),c=Ut(n.children[n.children.length-1]);o&&c&&(a.position={start:o,end:c}),i.push(a)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(n,l),e.applyData(n,l)}function Ua(e,n,t){const r=t?t.children:void 0,l=(r?r.indexOf(n):1)===0?"th":"td",a=t&&t.type==="table"?t.align:void 0,o=a?a.length:n.children.length;let c=-1;const u=[];for(;++c<o;){const p=n.children[c],g={},f=a?a[c]:void 0;f&&(g.align=f);let A={type:"element",tagName:l,properties:g,children:[]};p&&(A.children=e.all(p),e.patch(p,A),A=e.applyData(p,A)),u.push(A)}const s={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(n,s),e.applyData(n,s)}function qa(e,n){const t={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}const xt=9,kt=32;function Va(e){const n=String(e),t=/\r?\n|\r/g;let r=t.exec(n),i=0;const l=[];for(;r;)l.push(bt(n.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=t.exec(n);return l.push(bt(n.slice(i),i>0,!1)),l.join("")}function bt(e,n,t){let r=0,i=e.length;if(n){let l=e.codePointAt(r);for(;l===xt||l===kt;)r++,l=e.codePointAt(r)}if(t){let l=e.codePointAt(i-1);for(;l===xt||l===kt;)i--,l=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Wa(e,n){const t={type:"text",value:Va(String(n.value))};return e.patch(n,t),e.applyData(n,t)}function Ya(e,n){const t={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,t),e.applyData(n,t)}const Xa={blockquote:Ea,break:Ca,code:va,delete:Aa,emphasis:Ia,footnoteReference:Ta,heading:Fa,html:Pa,imageReference:za,image:La,inlineCode:_a,linkReference:Ra,link:Da,listItem:Oa,list:Ma,paragraph:Ba,root:ja,strong:Ha,table:$a,tableCell:qa,tableRow:Ua,text:Wa,thematicBreak:Ya,toml:Ve,yaml:Ve,definition:Ve,footnoteDefinition:Ve};function Ve(){}const cr=-1,Ze=0,He=1,Ge=2,Nn=3,Mn=4,Bn=5,jn=6,pr=7,fr=8,hr=typeof self=="object"?self:globalThis,wt=(e,n)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new hr[e](n)},Ga=(e,n)=>{const t=(i,l)=>(e.set(l,i),i),r=i=>{if(e.has(i))return e.get(i);const[l,a]=n[i];switch(l){case Ze:case cr:return t(a,i);case He:{const o=t([],i);for(const c of a)o.push(r(c));return o}case Ge:{const o=t({},i);for(const[c,u]of a)o[r(c)]=r(u);return o}case Nn:return t(new Date(a),i);case Mn:{const{source:o,flags:c}=a;return t(new RegExp(o,c),i)}case Bn:{const o=t(new Map,i);for(const[c,u]of a)o.set(r(c),r(u));return o}case jn:{const o=t(new Set,i);for(const c of a)o.add(r(c));return o}case pr:{const{name:o,message:c}=a;return t(typeof hr[o]=="function"?wt(o,c):new Error(c),i)}case fr:return t(BigInt(a),i);case"BigInt":return t(Object(BigInt(a)),i);case"ArrayBuffer":return t(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:o}=new Uint8Array(a);return t(new DataView(o),a)}}return t(wt(l,a),i)};return r},St=e=>Ga(new Map,e)(0),Ee="",{toString:Ja}={},{keys:Qa}=Object,Me=e=>{const n=typeof e;if(n!=="object"||!e)return[Ze,n];const t=Ja.call(e).slice(8,-1);switch(t){case"Array":return[He,Ee];case"Object":return[Ge,Ee];case"Date":return[Nn,Ee];case"RegExp":return[Mn,Ee];case"Map":return[Bn,Ee];case"Set":return[jn,Ee];case"DataView":return[He,t]}return t.includes("Array")?[He,t]:e instanceof Error?[pr,e.name||"Error"]:[Ge,t]},We=([e,n])=>e===Ze&&(n==="function"||n==="symbol"),Za=(e,n,t,r)=>{const i=(a,o)=>{const c=r.push(a)-1;return t.set(o,c),c},l=a=>{if(t.has(a))return t.get(a);let[o,c]=Me(a);switch(o){case Ze:{let s=a;switch(c){case"bigint":o=fr,s=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+c);s=null;break;case"undefined":return i([cr],a)}return i([o,s],a)}case He:{if(c){let g=a;return c==="DataView"?g=new Uint8Array(a.buffer):c==="ArrayBuffer"&&(g=new Uint8Array(a)),i([c,[...g]],a)}const s=[],p=i([o,s],a);for(const g of a)s.push(l(g));return p}case Ge:{if(c)switch(c){case"BigInt":return i([c,a.toString()],a);case"Boolean":case"Number":case"String":return i([c,a.valueOf()],a)}if(n&&"toJSON"in a)return l(a.toJSON());const s=[],p=i([o,s],a);for(const g of Qa(a))(e||!We(Me(a[g])))&&s.push([l(g),l(a[g])]);return p}case Nn:return i([o,isNaN(a.getTime())?Ee:a.toISOString()],a);case Mn:{const{source:s,flags:p}=a;return i([o,{source:s,flags:p}],a)}case Bn:{const s=[],p=i([o,s],a);for(const[g,f]of a)(e||!(We(Me(g))||We(Me(f))))&&s.push([l(g),l(f)]);return p}case jn:{const s=[],p=i([o,s],a);for(const g of a)(e||!We(Me(g)))&&s.push(l(g));return p}}const{message:u}=a;return i([o,{name:c,message:u}],a)};return l},Et=(e,{json:n,lossy:t}={})=>{const r=[];return Za(!(n||t),!!n,new Map,r)(e),r},Je=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?St(Et(e,n)):structuredClone(e):(e,n)=>St(Et(e,n));function Ka(e,n){const t=[{type:"text",value:"↩"}];return n>1&&t.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),t}function eo(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function no(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",t=e.options.footnoteBackContent||Ka,r=e.options.footnoteBackLabel||eo,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let c=-1;for(;++c<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[c]);if(!u)continue;const s=e.all(u),p=String(u.identifier).toUpperCase(),g=Pe(p.toLowerCase());let f=0;const A=[],C=e.footnoteCounts.get(p);for(;C!==void 0&&++f<=C;){A.length>0&&A.push({type:"text",value:" "});let x=typeof t=="string"?t:t(c,f);typeof x=="string"&&(x={type:"text",value:x}),A.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+g+(f>1?"-"+f:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(c,f),className:["data-footnote-backref"]},children:Array.isArray(x)?x:[x]})}const v=s[s.length-1];if(v&&v.type==="element"&&v.tagName==="p"){const x=v.children[v.children.length-1];x&&x.type==="text"?x.value+=" ":v.children.push({type:"text",value:" "}),v.children.push(...A)}else s.push(...A);const b={type:"element",tagName:"li",properties:{id:n+"fn-"+g},children:e.wrap(s,!0)};e.patch(u,b),o.push(b)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...Je(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
|
|
17
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:`
|
|
18
|
+
`}]}}const dr=(function(e){if(e==null)return lo;if(typeof e=="function")return Ke(e);if(typeof e=="object")return Array.isArray(e)?to(e):ro(e);if(typeof e=="string")return io(e);throw new Error("Expected function, string, or object as test")});function to(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=dr(e[t]);return Ke(r);function r(...i){let l=-1;for(;++l<n.length;)if(n[l].apply(this,i))return!0;return!1}}function ro(e){const n=e;return Ke(t);function t(r){const i=r;let l;for(l in e)if(i[l]!==n[l])return!1;return!0}}function io(e){return Ke(n);function n(t){return t&&t.type===e}}function Ke(e){return n;function n(t,r,i){return!!(ao(t)&&e.call(this,t,typeof r=="number"?r:void 0,i||void 0))}}function lo(){return!0}function ao(e){return e!==null&&typeof e=="object"&&"type"in e}const gr=[],oo=!0,Ct=!1,uo="skip";function so(e,n,t,r){let i;typeof n=="function"&&typeof t!="function"?(r=t,t=n):i=n;const l=dr(i),a=r?-1:1;o(e,void 0,[])();function o(c,u,s){const p=c&&typeof c=="object"?c:{};if(typeof p.type=="string"){const f=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0;Object.defineProperty(g,"name",{value:"node ("+(c.type+(f?"<"+f+">":""))+")"})}return g;function g(){let f=gr,A,C,v;if((!n||l(c,u,s[s.length-1]||void 0))&&(f=co(t(c,s)),f[0]===Ct))return f;if("children"in c&&c.children){const b=c;if(b.children&&f[0]!==uo)for(C=(r?b.children.length:-1)+a,v=s.concat(b);C>-1&&C<b.children.length;){const x=b.children[C];if(A=o(x,C,v)(),A[0]===Ct)return A;C=typeof A[1]=="number"?A[1]:C+a}}return f}}}function co(e){return Array.isArray(e)?e:typeof e=="number"?[oo,e]:e==null?gr:[e]}function mr(e,n,t,r){let i,l,a;typeof n=="function"&&typeof t!="function"?(l=void 0,a=n,i=t):(l=n,a=t,i=r),so(e,l,o,i);function o(c,u){const s=u[u.length-1],p=s?s.children.indexOf(c):void 0;return a(c,p,s)}}const vn={}.hasOwnProperty,po={};function fo(e,n){const t=n||po,r=new Map,i=new Map,l=new Map,a={...Xa,...t.handlers},o={all:u,applyData:go,definitionById:r,footnoteById:i,footnoteCounts:l,footnoteOrder:[],handlers:a,one:c,options:t,patch:ho,wrap:yo};return mr(e,function(s){if(s.type==="definition"||s.type==="footnoteDefinition"){const p=s.type==="definition"?r:i,g=String(s.identifier).toUpperCase();p.has(g)||p.set(g,s)}}),o;function c(s,p){const g=s.type,f=o.handlers[g];if(vn.call(o.handlers,g)&&f)return f(o,s,p);if(o.options.passThrough&&o.options.passThrough.includes(g)){if("children"in s){const{children:C,...v}=s,b=Je(v);return b.children=o.all(s),b}return Je(s)}return(o.options.unknownHandler||mo)(o,s,p)}function u(s){const p=[];if("children"in s){const g=s.children;let f=-1;for(;++f<g.length;){const A=o.one(g[f],s);if(A){if(f&&g[f-1].type==="break"&&(!Array.isArray(A)&&A.type==="text"&&(A.value=vt(A.value)),!Array.isArray(A)&&A.type==="element")){const C=A.children[0];C&&C.type==="text"&&(C.value=vt(C.value))}Array.isArray(A)?p.push(...A):p.push(A)}}}return p}}function ho(e,n){e.position&&(n.position=Jr(e))}function go(e,n){let t=n;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,l=e.data.hProperties;if(typeof r=="string")if(t.type==="element")t.tagName=r;else{const a="children"in t?t.children:[t];t={type:"element",tagName:r,properties:{},children:a}}t.type==="element"&&l&&Object.assign(t.properties,Je(l)),"children"in t&&t.children&&i!==null&&i!==void 0&&(t.children=i)}return t}function mo(e,n){const t=n.data||{},r="value"in n&&!(vn.call(t,"hProperties")||vn.call(t,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function yo(e,n){const t=[];let r=-1;for(n&&t.push({type:"text",value:`
|
|
19
|
+
`});++r<e.length;)r&&t.push({type:"text",value:`
|
|
20
|
+
`}),t.push(e[r]);return n&&e.length>0&&t.push({type:"text",value:`
|
|
21
|
+
`}),t}function vt(e){let n=0,t=e.charCodeAt(n);for(;t===9||t===32;)n++,t=e.charCodeAt(n);return e.slice(n)}function At(e,n){const t=fo(e,n),r=t.one(e,void 0),i=no(t),l=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&l.children.push({type:"text",value:`
|
|
22
|
+
`},i),l}function xo(e,n){return e&&"run"in e?async function(t,r){const i=At(t,{file:r,...n});await e.run(i,r)}:function(t,r){return At(t,{file:r,...e||n})}}function It(e){if(e)throw e}var sn,Tt;function ko(){if(Tt)return sn;Tt=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(u){return typeof Array.isArray=="function"?Array.isArray(u):n.call(u)==="[object Array]"},l=function(u){if(!u||n.call(u)!=="[object Object]")return!1;var s=e.call(u,"constructor"),p=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!s&&!p)return!1;var g;for(g in u);return typeof g>"u"||e.call(u,g)},a=function(u,s){t&&s.name==="__proto__"?t(u,s.name,{enumerable:!0,configurable:!0,value:s.newValue,writable:!0}):u[s.name]=s.newValue},o=function(u,s){if(s==="__proto__")if(e.call(u,s)){if(r)return r(u,s).value}else return;return u[s]};return sn=function c(){var u,s,p,g,f,A,C=arguments[0],v=1,b=arguments.length,x=!1;for(typeof C=="boolean"&&(x=C,C=arguments[1]||{},v=2),(C==null||typeof C!="object"&&typeof C!="function")&&(C={});v<b;++v)if(u=arguments[v],u!=null)for(s in u)p=o(C,s),g=o(u,s),C!==g&&(x&&g&&(l(g)||(f=i(g)))?(f?(f=!1,A=p&&i(p)?p:[]):A=p&&l(p)?p:{},a(C,{name:s,newValue:c(x,A,g)})):typeof g<"u"&&a(C,{name:s,newValue:g}));return C},sn}var bo=ko();const cn=Dt(bo);function An(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function wo(){const e=[],n={run:t,use:r};return n;function t(...i){let l=-1;const a=i.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);o(null,...i);function o(c,...u){const s=e[++l];let p=-1;if(c){a(c);return}for(;++p<i.length;)(u[p]===null||u[p]===void 0)&&(u[p]=i[p]);i=u,s?So(s,o)(...u):a(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),n}}function So(e,n){let t;return r;function r(...a){const o=e.length>a.length;let c;o&&a.push(i);try{c=e.apply(this,a)}catch(u){const s=u;if(o&&t)throw s;return i(s)}o||(c&&c.then&&typeof c.then=="function"?c.then(l,i):c instanceof Error?i(c):l(c))}function i(a,...o){t||(t=!0,n(a,...o))}function l(a){i(null,a)}}const he={basename:Eo,dirname:Co,extname:vo,join:Ao,sep:"/"};function Eo(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');qe(e);let t=0,r=-1,i=e.length,l;if(n===void 0||n.length===0||n.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(l){t=i+1;break}}else r<0&&(l=!0,r=i+1);return r<0?"":e.slice(t,r)}if(n===e)return"";let a=-1,o=n.length-1;for(;i--;)if(e.codePointAt(i)===47){if(l){t=i+1;break}}else a<0&&(l=!0,a=i+1),o>-1&&(e.codePointAt(i)===n.codePointAt(o--)?o<0&&(r=i):(o=-1,r=a));return t===r?r=a:r<0&&(r=e.length),e.slice(t,r)}function Co(e){if(qe(e),e.length===0)return".";let n=-1,t=e.length,r;for(;--t;)if(e.codePointAt(t)===47){if(r){n=t;break}}else r||(r=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function vo(e){qe(e);let n=e.length,t=-1,r=0,i=-1,l=0,a;for(;n--;){const o=e.codePointAt(n);if(o===47){if(a){r=n+1;break}continue}t<0&&(a=!0,t=n+1),o===46?i<0?i=n:l!==1&&(l=1):i>-1&&(l=-1)}return i<0||t<0||l===0||l===1&&i===t-1&&i===r+1?"":e.slice(i,t)}function Ao(...e){let n=-1,t;for(;++n<e.length;)qe(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":Io(t)}function Io(e){qe(e);const n=e.codePointAt(0)===47;let t=To(e,!n);return t.length===0&&!n&&(t="."),t.length>0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function To(e,n){let t="",r=0,i=-1,l=0,a=-1,o,c;for(;++a<=e.length;){if(a<e.length)o=e.codePointAt(a);else{if(o===47)break;o=47}if(o===47){if(!(i===a-1||l===1))if(i!==a-1&&l===2){if(t.length<2||r!==2||t.codePointAt(t.length-1)!==46||t.codePointAt(t.length-2)!==46){if(t.length>2){if(c=t.lastIndexOf("/"),c!==t.length-1){c<0?(t="",r=0):(t=t.slice(0,c),r=t.length-1-t.lastIndexOf("/")),i=a,l=0;continue}}else if(t.length>0){t="",r=0,i=a,l=0;continue}}n&&(t=t.length>0?t+"/..":"..",r=2)}else t.length>0?t+="/"+e.slice(i+1,a):t=e.slice(i+1,a),r=a-i-1;i=a,l=0}else o===46&&l>-1?l++:l=-1}return t}function qe(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Fo={cwd:Po};function Po(){return"/"}function In(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function zo(e){if(typeof e=="string")e=new URL(e);else if(!In(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return Lo(e)}function Lo(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const n=e.pathname;let t=-1;for(;++t<n.length;)if(n.codePointAt(t)===37&&n.codePointAt(t+1)===50){const r=n.codePointAt(t+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(n)}const pn=["history","path","basename","stem","extname","dirname"];class yr{constructor(n){let t;n?In(n)?t={path:n}:typeof n=="string"||_o(n)?t={value:n}:t=n:t={},this.cwd="cwd"in t?"":Fo.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<pn.length;){const l=pn[r];l in t&&t[l]!==void 0&&t[l]!==null&&(this[l]=l==="history"?[...t[l]]:t[l])}let i;for(i in t)pn.includes(i)||(this[i]=t[i])}get basename(){return typeof this.path=="string"?he.basename(this.path):void 0}set basename(n){hn(n,"basename"),fn(n,"basename"),this.path=he.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?he.dirname(this.path):void 0}set dirname(n){Ft(this.basename,"dirname"),this.path=he.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?he.extname(this.path):void 0}set extname(n){if(fn(n,"extname"),Ft(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=he.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){In(n)&&(n=zo(n)),hn(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?he.basename(this.path,this.extname):void 0}set stem(n){hn(n,"stem"),fn(n,"stem"),this.path=he.join(this.dirname||"",n+(this.extname||""))}fail(n,t,r){const i=this.message(n,t,r);throw i.fatal=!0,i}info(n,t,r){const i=this.message(n,t,r);return i.fatal=void 0,i}message(n,t,r){const i=new ee(n,t,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function fn(e,n){if(e&&e.includes(he.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+he.sep+"`")}function hn(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function Ft(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function _o(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Ro=(function(e){const r=this.constructor.prototype,i=r[e],l=function(){return i.apply(l,arguments)};return Object.setPrototypeOf(l,r),l}),Do={}.hasOwnProperty;class Hn extends Ro{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=wo()}copy(){const n=new Hn;let t=-1;for(;++t<this.attachers.length;){const r=this.attachers[t];n.use(...r)}return n.data(cn(!0,{},this.namespace)),n}data(n,t){return typeof n=="string"?arguments.length===2?(mn("data",this.frozen),this.namespace[n]=t,this):Do.call(this.namespace,n)&&this.namespace[n]||void 0:n?(mn("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=t.call(n,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const t=Ye(n),r=this.parser||this.Parser;return dn("parse",r),r(String(t),t)}process(n,t){const r=this;return this.freeze(),dn("process",this.parser||this.Parser),gn("process",this.compiler||this.Compiler),t?i(void 0,t):new Promise(i);function i(l,a){const o=Ye(n),c=r.parse(o);r.run(c,o,function(s,p,g){if(s||!p||!g)return u(s);const f=p,A=r.stringify(f,g);Mo(A)?g.value=A:g.result=A,u(s,g)});function u(s,p){s||!p?a(s):l?l(p):t(void 0,p)}}}processSync(n){let t=!1,r;return this.freeze(),dn("processSync",this.parser||this.Parser),gn("processSync",this.compiler||this.Compiler),this.process(n,i),zt("processSync","process",t),r;function i(l,a){t=!0,It(l),r=a}}run(n,t,r){Pt(n),this.freeze();const i=this.transformers;return!r&&typeof t=="function"&&(r=t,t=void 0),r?l(void 0,r):new Promise(l);function l(a,o){const c=Ye(t);i.run(n,c,u);function u(s,p,g){const f=p||n;s?o(s):a?a(f):r(void 0,f,g)}}}runSync(n,t){let r=!1,i;return this.run(n,t,l),zt("runSync","run",r),i;function l(a,o){It(a),i=o,r=!0}}stringify(n,t){this.freeze();const r=Ye(t),i=this.compiler||this.Compiler;return gn("stringify",i),Pt(n),i(n,r)}use(n,...t){const r=this.attachers,i=this.namespace;if(mn("use",this.frozen),n!=null)if(typeof n=="function")c(n,t);else if(typeof n=="object")Array.isArray(n)?o(n):a(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function l(u){if(typeof u=="function")c(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[s,...p]=u;c(s,p)}else a(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function a(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(u.plugins),u.settings&&(i.settings=cn(!0,i.settings,u.settings))}function o(u){let s=-1;if(u!=null)if(Array.isArray(u))for(;++s<u.length;){const p=u[s];l(p)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function c(u,s){let p=-1,g=-1;for(;++p<r.length;)if(r[p][0]===u){g=p;break}if(g===-1)r.push([u,...s]);else if(s.length>0){let[f,...A]=s;const C=r[g][1];An(C)&&An(f)&&(f=cn(!0,C,f)),r[g]=[u,f,...A]}}}}const Oo=new Hn().freeze();function dn(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function gn(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function mn(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Pt(e){if(!An(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function zt(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function Ye(e){return No(e)?e:new yr(e)}function No(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Mo(e){return typeof e=="string"||Bo(e)}function Bo(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const jo="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Lt=[],_t={allowDangerousHtml:!0},Ho=/^(https?|ircs?|mailto|xmpp)$/i,$o=[{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:"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 Xo(e){const n=Uo(e),t=qo(e);return Vo(n.runSync(n.parse(t),t),e)}function Uo(e){const n=e.rehypePlugins||Lt,t=e.remarkPlugins||Lt,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,..._t}:_t;return Oo().use(Sa).use(t).use(xo,r).use(n)}function qo(e){const n=e.children||"",t=new yr;return typeof n=="string"&&(t.value=n),t}function Vo(e,n){const t=n.allowedElements,r=n.allowElement,i=n.components,l=n.disallowedElements,a=n.skipHtml,o=n.unwrapDisallowed,c=n.urlTransform||Wo;for(const s of $o)Object.hasOwn(n,s.from)&&(""+s.from+(s.to?"use `"+s.to+"` instead":"remove it")+jo+s.id,void 0);return n.className&&(e={type:"element",tagName:"div",properties:{className:n.className},children:e.type==="root"?e.children:[e]}),mr(e,u),ni(e,{Fragment:tn.Fragment,components:i,ignoreInvalidStyle:!0,jsx:tn.jsx,jsxs:tn.jsxs,passKeys:!0,passNode:!0});function u(s,p,g){if(s.type==="raw"&&g&&typeof p=="number")return a?g.children.splice(p,1):g.children[p]={type:"text",value:s.value},p;if(s.type==="element"){let f;for(f in an)if(Object.hasOwn(an,f)&&Object.hasOwn(s.properties,f)){const A=s.properties[f],C=an[f];(C===null||C.includes(s.tagName))&&(s.properties[f]=c(String(A||""),f,s))}}if(s.type==="element"){let f=t?!t.includes(s.tagName):l?l.includes(s.tagName):!1;if(!f&&r&&typeof p=="number"&&(f=!r(s,p,g)),f&&g&&typeof p=="number")return o&&s.children?g.children.splice(p,1,...s.children):g.children.splice(p,1),p}}}function Wo(e){const n=e.indexOf(":"),t=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return n===-1||i!==-1&&n>i||t!==-1&&n>t||r!==-1&&n>r||Ho.test(e.slice(0,n))?e:""}var yn={exports:{}},Rt;function Go(){return Rt||(Rt=1,(function(e){var n=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
23
|
+
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
24
|
+
*
|
|
25
|
+
* @license MIT <https://opensource.org/licenses/MIT>
|
|
26
|
+
* @author Lea Verou <https://lea.verou.me>
|
|
27
|
+
* @namespace
|
|
28
|
+
* @public
|
|
29
|
+
*/var t=(function(r){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,l=0,a={},o={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function x(m){return m instanceof c?new c(m.type,x(m.content),m.alias):Array.isArray(m)?m.map(x):m.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(x){return Object.prototype.toString.call(x).slice(8,-1)},objId:function(x){return x.__id||Object.defineProperty(x,"__id",{value:++l}),x.__id},clone:function x(m,w){w=w||{};var S,y;switch(o.util.type(m)){case"Object":if(y=o.util.objId(m),w[y])return w[y];S={},w[y]=S;for(var I in m)m.hasOwnProperty(I)&&(S[I]=x(m[I],w));return S;case"Array":return y=o.util.objId(m),w[y]?w[y]:(S=[],w[y]=S,m.forEach(function(_,T){S[T]=x(_,w)}),S);default:return m}},getLanguage:function(x){for(;x;){var m=i.exec(x.className);if(m)return m[1].toLowerCase();x=x.parentElement}return"none"},setLanguage:function(x,m){x.className=x.className.replace(RegExp(i,"gi"),""),x.classList.add("language-"+m)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(S){var x=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(S.stack)||[])[1];if(x){var m=document.getElementsByTagName("script");for(var w in m)if(m[w].src==x)return m[w]}return null}},isActive:function(x,m,w){for(var S="no-"+m;x;){var y=x.classList;if(y.contains(m))return!0;if(y.contains(S))return!1;x=x.parentElement}return!!w}},languages:{plain:a,plaintext:a,text:a,txt:a,extend:function(x,m){var w=o.util.clone(o.languages[x]);for(var S in m)w[S]=m[S];return w},insertBefore:function(x,m,w,S){S=S||o.languages;var y=S[x],I={};for(var _ in y)if(y.hasOwnProperty(_)){if(_==m)for(var T in w)w.hasOwnProperty(T)&&(I[T]=w[T]);w.hasOwnProperty(_)||(I[_]=y[_])}var R=S[x];return S[x]=I,o.languages.DFS(o.languages,function(z,L){L===R&&z!=x&&(this[z]=I)}),I},DFS:function x(m,w,S,y){y=y||{};var I=o.util.objId;for(var _ in m)if(m.hasOwnProperty(_)){w.call(m,_,m[_],S||_);var T=m[_],R=o.util.type(T);R==="Object"&&!y[I(T)]?(y[I(T)]=!0,x(T,w,null,y)):R==="Array"&&!y[I(T)]&&(y[I(T)]=!0,x(T,w,_,y))}}},plugins:{},highlightAll:function(x,m){o.highlightAllUnder(document,x,m)},highlightAllUnder:function(x,m,w){var S={callback:w,container:x,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",S),S.elements=Array.prototype.slice.apply(S.container.querySelectorAll(S.selector)),o.hooks.run("before-all-elements-highlight",S);for(var y=0,I;I=S.elements[y++];)o.highlightElement(I,m===!0,S.callback)},highlightElement:function(x,m,w){var S=o.util.getLanguage(x),y=o.languages[S];o.util.setLanguage(x,S);var I=x.parentElement;I&&I.nodeName.toLowerCase()==="pre"&&o.util.setLanguage(I,S);var _=x.textContent,T={element:x,language:S,grammar:y,code:_};function R(L){T.highlightedCode=L,o.hooks.run("before-insert",T),T.element.innerHTML=T.highlightedCode,o.hooks.run("after-highlight",T),o.hooks.run("complete",T),w&&w.call(T.element)}if(o.hooks.run("before-sanity-check",T),I=T.element.parentElement,I&&I.nodeName.toLowerCase()==="pre"&&!I.hasAttribute("tabindex")&&I.setAttribute("tabindex","0"),!T.code){o.hooks.run("complete",T),w&&w.call(T.element);return}if(o.hooks.run("before-highlight",T),!T.grammar){R(o.util.encode(T.code));return}if(m&&r.Worker){var z=new Worker(o.filename);z.onmessage=function(L){R(L.data)},z.postMessage(JSON.stringify({language:T.language,code:T.code,immediateClose:!0}))}else R(o.highlight(T.code,T.grammar,T.language))},highlight:function(x,m,w){var S={code:x,grammar:m,language:w};if(o.hooks.run("before-tokenize",S),!S.grammar)throw new Error('The language "'+S.language+'" has no grammar.');return S.tokens=o.tokenize(S.code,S.grammar),o.hooks.run("after-tokenize",S),c.stringify(o.util.encode(S.tokens),S.language)},tokenize:function(x,m){var w=m.rest;if(w){for(var S in w)m[S]=w[S];delete m.rest}var y=new p;return g(y,y.head,x),s(x,y,m,y.head,0),A(y)},hooks:{all:{},add:function(x,m){var w=o.hooks.all;w[x]=w[x]||[],w[x].push(m)},run:function(x,m){var w=o.hooks.all[x];if(!(!w||!w.length))for(var S=0,y;y=w[S++];)y(m)}},Token:c};r.Prism=o;function c(x,m,w,S){this.type=x,this.content=m,this.alias=w,this.length=(S||"").length|0}c.stringify=function x(m,w){if(typeof m=="string")return m;if(Array.isArray(m)){var S="";return m.forEach(function(R){S+=x(R,w)}),S}var y={type:m.type,content:x(m.content,w),tag:"span",classes:["token",m.type],attributes:{},language:w},I=m.alias;I&&(Array.isArray(I)?Array.prototype.push.apply(y.classes,I):y.classes.push(I)),o.hooks.run("wrap",y);var _="";for(var T in y.attributes)_+=" "+T+'="'+(y.attributes[T]||"").replace(/"/g,""")+'"';return"<"+y.tag+' class="'+y.classes.join(" ")+'"'+_+">"+y.content+"</"+y.tag+">"};function u(x,m,w,S){x.lastIndex=m;var y=x.exec(w);if(y&&S&&y[1]){var I=y[1].length;y.index+=I,y[0]=y[0].slice(I)}return y}function s(x,m,w,S,y,I){for(var _ in w)if(!(!w.hasOwnProperty(_)||!w[_])){var T=w[_];T=Array.isArray(T)?T:[T];for(var R=0;R<T.length;++R){if(I&&I.cause==_+","+R)return;var z=T[R],L=z.inside,$=!!z.lookbehind,D=!!z.greedy,P=z.alias;if(D&&!z.pattern.global){var H=z.pattern.toString().match(/[imsuy]*$/)[0];z.pattern=RegExp(z.pattern.source,H+"g")}for(var Y=z.pattern||z,U=S.next,J=y;U!==m.tail&&!(I&&J>=I.reach);J+=U.value.length,U=U.next){var h=U.value;if(m.length>x.length)return;if(!(h instanceof c)){var K=1,G;if(D){if(G=u(Y,J,x,$),!G||G.index>=x.length)break;var X=G.index,d=G.index+G[0].length,Q=J;for(Q+=U.value.length;X>=Q;)U=U.next,Q+=U.value.length;if(Q-=U.value.length,J=Q,U.value instanceof c)continue;for(var ie=U;ie!==m.tail&&(Q<d||typeof ie.value=="string");ie=ie.next)K++,Q+=ie.value.length;K--,h=x.slice(J,Q),G.index-=J}else if(G=u(Y,0,h,$),!G)continue;var X=G.index,pe=G[0],ue=h.slice(0,X),me=h.slice(X+pe.length),fe=J+h.length;I&&fe>I.reach&&(I.reach=fe);var ye=U.prev;ue&&(ye=g(m,ye,ue),J+=ue.length),f(m,ye,K);var en=new c(_,L?o.tokenize(pe,L):pe,P,pe);if(U=g(m,ye,en),me&&g(m,U,me),K>1){var ze={cause:_+","+R,reach:fe};s(x,m,w,U.prev,J,ze),I&&ze.reach>I.reach&&(I.reach=ze.reach)}}}}}}function p(){var x={value:null,prev:null,next:null},m={value:null,prev:x,next:null};x.next=m,this.head=x,this.tail=m,this.length=0}function g(x,m,w){var S=m.next,y={value:w,prev:m,next:S};return m.next=y,S.prev=y,x.length++,y}function f(x,m,w){for(var S=m.next,y=0;y<w&&S!==x.tail;y++)S=S.next;m.next=S,S.prev=m,x.length-=y}function A(x){for(var m=[],w=x.head.next;w!==x.tail;)m.push(w.value),w=w.next;return m}if(!r.document)return r.addEventListener&&(o.disableWorkerMessageHandler||r.addEventListener("message",function(x){var m=JSON.parse(x.data),w=m.language,S=m.code,y=m.immediateClose;r.postMessage(o.highlight(S,o.languages[w],w)),y&&r.close()},!1)),o;var C=o.util.currentScript();C&&(o.filename=C.src,C.hasAttribute("data-manual")&&(o.manual=!0));function v(){o.manual||o.highlightAll()}if(!o.manual){var b=document.readyState;b==="loading"||b==="interactive"&&C&&C.defer?document.addEventListener("DOMContentLoaded",v):window.requestAnimationFrame?window.requestAnimationFrame(v):window.setTimeout(v,16)}return o})(n);e.exports&&(e.exports=t),typeof Yn<"u"&&(Yn.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&/,"&"))}),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(i,l){var a={};a["language-"+l]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[l]},a.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:a}};o["language-"+l]={pattern:/[\s\S]+/,inside:t.languages[l]};var c={};c[i]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return i}),"i"),lookbehind:!0,greedy:!0,inside:o},t.languages.insertBefore("markup","cdata",c)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(r,i){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[i,"language-"+i],inside:t.languages[i]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,(function(r){var i=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+i.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+i.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+i.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+i.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:i,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var l=r.languages.markup;l&&(l.tag.addInlined("style","css"),l.tag.addAttribute("style","css"))})(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),t.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript,(function(){if(typeof t>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r="Loading…",i=function(C,v){return"✖ Error "+C+" while fetching file: "+v},l="✖ Error: File does not exist or is empty",a={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},o="data-src-status",c="loading",u="loaded",s="failed",p="pre[data-src]:not(["+o+'="'+u+'"]):not(['+o+'="'+c+'"])';function g(C,v,b){var x=new XMLHttpRequest;x.open("GET",C,!0),x.onreadystatechange=function(){x.readyState==4&&(x.status<400&&x.responseText?v(x.responseText):x.status>=400?b(i(x.status,x.statusText)):b(l))},x.send(null)}function f(C){var v=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(C||"");if(v){var b=Number(v[1]),x=v[2],m=v[3];return x?m?[b,Number(m)]:[b,void 0]:[b,b]}}t.hooks.add("before-highlightall",function(C){C.selector+=", "+p}),t.hooks.add("before-sanity-check",function(C){var v=C.element;if(v.matches(p)){C.code="",v.setAttribute(o,c);var b=v.appendChild(document.createElement("CODE"));b.textContent=r;var x=v.getAttribute("data-src"),m=C.language;if(m==="none"){var w=(/\.(\w+)$/.exec(x)||[,"none"])[1];m=a[w]||w}t.util.setLanguage(b,m),t.util.setLanguage(v,m);var S=t.plugins.autoloader;S&&S.loadLanguages(m),g(x,function(y){v.setAttribute(o,u);var I=f(v.getAttribute("data-range"));if(I){var _=y.split(/\r\n?|\n/g),T=I[0],R=I[1]==null?_.length:I[1];T<0&&(T+=_.length),T=Math.max(0,Math.min(T-1,_.length)),R<0&&(R+=_.length),R=Math.max(0,Math.min(R,_.length)),y=_.slice(T,R).join(`
|
|
30
|
+
`),v.hasAttribute("data-start")||v.setAttribute("data-start",String(T+1))}b.textContent=y,t.highlightElement(b)},function(y){v.setAttribute(o,s),b.textContent=y})}}),t.plugins.fileHighlight={highlight:function(v){for(var b=(v||document).querySelectorAll(p),x=0,m;m=b[x++];)t.highlightElement(m)}};var A=!1;t.fileHighlight=function(){A||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),A=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}})()})(yn)),yn.exports}export{Xo as M,Wo as d,tn as j,Go as r};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as f,R as hn}from"./icons-BXecaLRH.js";const we=f.createContext(null);we.displayName="PanelGroupContext";const k={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},$e=10,ne=f.useLayoutEffect,Fe=hn.useId,zn=typeof Fe=="function"?Fe:()=>null;let yn=0;function Ne(e=null){const n=zn(),t=f.useRef(e||n||null);return t.current===null&&(t.current=""+yn++),e??t.current}function Je({children:e,className:n="",collapsedSize:t,collapsible:r,defaultSize:i,forwardedRef:o,id:l,maxSize:s,minSize:a,onCollapse:h,onExpand:w,onResize:p,order:u,style:v,tagName:z="div",...C}){const E=f.useContext(we);if(E===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:b,expandPanel:L,getPanelSize:M,getPanelStyle:$,groupId:O,isPanelCollapsed:R,reevaluatePanelConstraints:P,registerPanel:K,resizePanel:J,unregisterPanel:F}=E,G=Ne(l),D=f.useRef({callbacks:{onCollapse:h,onExpand:w,onResize:p},constraints:{collapsedSize:t,collapsible:r,defaultSize:i,maxSize:s,minSize:a},id:G,idIsFromProps:l!==void 0,order:u});f.useRef({didLogMissingDefaultSizeWarning:!1}),ne(()=>{const{callbacks:_,constraints:N}=D.current,B={...N};D.current.id=G,D.current.idIsFromProps=l!==void 0,D.current.order=u,_.onCollapse=h,_.onExpand=w,_.onResize=p,N.collapsedSize=t,N.collapsible=r,N.defaultSize=i,N.maxSize=s,N.minSize=a,(B.collapsedSize!==N.collapsedSize||B.collapsible!==N.collapsible||B.maxSize!==N.maxSize||B.minSize!==N.minSize)&&P(D.current,B)}),ne(()=>{const _=D.current;return K(_),()=>{F(_)}},[u,G,K,F]),f.useImperativeHandle(o,()=>({collapse:()=>{b(D.current)},expand:_=>{L(D.current,_)},getId(){return G},getSize(){return M(D.current)},isCollapsed(){return R(D.current)},isExpanded(){return!R(D.current)},resize:_=>{J(D.current,_)}}),[b,L,M,R,G,J]);const Z=$(D.current,i);return f.createElement(z,{...C,children:e,className:n,id:G,style:{...Z,...v},[k.groupId]:O,[k.panel]:"",[k.panelCollapsible]:r||void 0,[k.panelId]:G,[k.panelSize]:parseFloat(""+Z.flexGrow).toFixed(1)})}const xn=f.forwardRef((e,n)=>f.createElement(Je,{...e,forwardedRef:n}));Je.displayName="Panel";xn.displayName="forwardRef(Panel)";let He=null,Se=-1,Y=null;function vn(e,n){if(n){const t=(n&en)!==0,r=(n&nn)!==0,i=(n&tn)!==0,o=(n&rn)!==0;if(t)return i?"se-resize":o?"ne-resize":"e-resize";if(r)return i?"sw-resize":o?"nw-resize":"w-resize";if(i)return"s-resize";if(o)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function Sn(){Y!==null&&(document.head.removeChild(Y),He=null,Y=null,Se=-1)}function Le(e,n){var t,r;const i=vn(e,n);if(He!==i){if(He=i,Y===null&&(Y=document.createElement("style"),document.head.appendChild(Y)),Se>=0){var o;(o=Y.sheet)===null||o===void 0||o.removeRule(Se)}Se=(t=(r=Y.sheet)===null||r===void 0?void 0:r.insertRule(`*{cursor: ${i} !important;}`))!==null&&t!==void 0?t:-1}}function je(e){return e.type==="keydown"}function Ye(e){return e.type.startsWith("pointer")}function Ze(e){return e.type.startsWith("mouse")}function Ee(e){if(Ye(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(Ze(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}function bn(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function Pn(e,n,t){return e.x<n.x+n.width&&e.x+e.width>n.x&&e.y<n.y+n.height&&e.y+e.height>n.y}function wn(e,n){if(e===n)throw new Error("Cannot compare node with itself");const t={a:Ue(e),b:Ue(n)};let r;for(;t.a.at(-1)===t.b.at(-1);)e=t.a.pop(),n=t.b.pop(),r=e;x(r,"Stacking order can only be calculated for elements with a common ancestor");const i={a:Ke(We(t.a)),b:Ke(We(t.b))};if(i.a===i.b){const o=r.childNodes,l={a:t.a.at(-1),b:t.b.at(-1)};let s=o.length;for(;s--;){const a=o[s];if(a===l.a)return 1;if(a===l.b)return-1}}return Math.sign(i.a-i.b)}const En=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Cn(e){var n;const t=getComputedStyle((n=Qe(e))!==null&&n!==void 0?n:e).display;return t==="flex"||t==="inline-flex"}function In(e){const n=getComputedStyle(e);return!!(n.position==="fixed"||n.zIndex!=="auto"&&(n.position!=="static"||Cn(e))||+n.opacity<1||"transform"in n&&n.transform!=="none"||"webkitTransform"in n&&n.webkitTransform!=="none"||"mixBlendMode"in n&&n.mixBlendMode!=="normal"||"filter"in n&&n.filter!=="none"||"webkitFilter"in n&&n.webkitFilter!=="none"||"isolation"in n&&n.isolation==="isolate"||En.test(n.willChange)||n.webkitOverflowScrolling==="touch")}function We(e){let n=e.length;for(;n--;){const t=e[n];if(x(t,"Missing node"),In(t))return t}return null}function Ke(e){return e&&Number(getComputedStyle(e).zIndex)||0}function Ue(e){const n=[];for(;e;)n.push(e),e=Qe(e);return n}function Qe(e){const{parentNode:n}=e;return n&&n instanceof ShadowRoot?n.host:n}const en=1,nn=2,tn=4,rn=8,Rn=bn()==="coarse";let V=[],se=!1,ee=new Map,Ce=new Map;const he=new Set;function Ln(e,n,t,r,i){var o;const{ownerDocument:l}=n,s={direction:t,element:n,hitAreaMargins:r,setResizeHandlerState:i},a=(o=ee.get(l))!==null&&o!==void 0?o:0;return ee.set(l,a+1),he.add(s),be(),function(){var w;Ce.delete(e),he.delete(s);const p=(w=ee.get(l))!==null&&w!==void 0?w:1;if(ee.set(l,p-1),be(),p===1&&ee.delete(l),V.includes(s)){const u=V.indexOf(s);u>=0&&V.splice(u,1),Ge(),i("up",!0,null)}}}function An(e){const{target:n}=e,{x:t,y:r}=Ee(e);se=!0,_e({target:n,x:t,y:r}),be(),V.length>0&&(Pe("down",e),e.preventDefault(),on(n)||e.stopImmediatePropagation())}function Ae(e){const{x:n,y:t}=Ee(e);if(se&&e.buttons===0&&(se=!1,Pe("up",e)),!se){const{target:r}=e;_e({target:r,x:n,y:t})}Pe("move",e),Ge(),V.length>0&&e.preventDefault()}function ke(e){const{target:n}=e,{x:t,y:r}=Ee(e);Ce.clear(),se=!1,V.length>0&&(e.preventDefault(),on(n)||e.stopImmediatePropagation()),Pe("up",e),_e({target:n,x:t,y:r}),Ge(),be()}function on(e){let n=e;for(;n;){if(n.hasAttribute(k.resizeHandle))return!0;n=n.parentElement}return!1}function _e({target:e,x:n,y:t}){V.splice(0);let r=null;(e instanceof HTMLElement||e instanceof SVGElement)&&(r=e),he.forEach(i=>{const{element:o,hitAreaMargins:l}=i,s=o.getBoundingClientRect(),{bottom:a,left:h,right:w,top:p}=s,u=Rn?l.coarse:l.fine;if(n>=h-u&&n<=w+u&&t>=p-u&&t<=a+u){if(r!==null&&document.contains(r)&&o!==r&&!o.contains(r)&&!r.contains(o)&&wn(r,o)>0){let z=r,C=!1;for(;z&&!z.contains(o);){if(Pn(z.getBoundingClientRect(),s)){C=!0;break}z=z.parentElement}if(C)return}V.push(i)}})}function De(e,n){Ce.set(e,n)}function Ge(){let e=!1,n=!1;V.forEach(r=>{const{direction:i}=r;i==="horizontal"?e=!0:n=!0});let t=0;Ce.forEach(r=>{t|=r}),e&&n?Le("intersection",t):e?Le("horizontal",t):n?Le("vertical",t):Sn()}let Me=new AbortController;function be(){Me.abort(),Me=new AbortController;const e={capture:!0,signal:Me.signal};he.size&&(se?(V.length>0&&ee.forEach((n,t)=>{const{body:r}=t;n>0&&(r.addEventListener("contextmenu",ke,e),r.addEventListener("pointerleave",Ae,e),r.addEventListener("pointermove",Ae,e))}),window.addEventListener("pointerup",ke,e),window.addEventListener("pointercancel",ke,e)):ee.forEach((n,t)=>{const{body:r}=t;n>0&&(r.addEventListener("pointerdown",An,e),r.addEventListener("pointermove",Ae,e))}))}function Pe(e,n){he.forEach(t=>{const{setResizeHandlerState:r}=t,i=V.includes(t);r(e,i,n)})}function kn(){const[e,n]=f.useState(0);return f.useCallback(()=>n(t=>t+1),[])}function x(e,n){if(!e)throw console.error(n),Error(n)}function te(e,n,t=$e){return e.toFixed(t)===n.toFixed(t)?0:e>n?1:-1}function j(e,n,t=$e){return te(e,n,t)===0}function W(e,n,t){return te(e,n,t)===0}function Dn(e,n,t){if(e.length!==n.length)return!1;for(let r=0;r<e.length;r++){const i=e[r],o=n[r];if(!W(i,o,t))return!1}return!0}function le({panelConstraints:e,panelIndex:n,size:t}){const r=e[n];x(r!=null,`Panel constraints not found for index ${n}`);let{collapsedSize:i=0,collapsible:o,maxSize:l=100,minSize:s=0}=r;if(te(t,s)<0)if(o){const a=(i+s)/2;te(t,a)<0?t=i:t=s}else t=s;return t=Math.min(l,t),t=parseFloat(t.toFixed($e)),t}function ge({delta:e,initialLayout:n,panelConstraints:t,pivotIndices:r,prevLayout:i,trigger:o}){if(W(e,0))return n;const l=[...n],[s,a]=r;x(s!=null,"Invalid first pivot index"),x(a!=null,"Invalid second pivot index");let h=0;if(o==="keyboard"){{const p=e<0?a:s,u=t[p];x(u,`Panel constraints not found for index ${p}`);const{collapsedSize:v=0,collapsible:z,minSize:C=0}=u;if(z){const E=n[p];if(x(E!=null,`Previous layout not found for panel index ${p}`),W(E,v)){const b=C-E;te(b,Math.abs(e))>0&&(e=e<0?0-b:b)}}}{const p=e<0?s:a,u=t[p];x(u,`No panel constraints found for index ${p}`);const{collapsedSize:v=0,collapsible:z,minSize:C=0}=u;if(z){const E=n[p];if(x(E!=null,`Previous layout not found for panel index ${p}`),W(E,C)){const b=E-v;te(b,Math.abs(e))>0&&(e=e<0?0-b:b)}}}}{const p=e<0?1:-1;let u=e<0?a:s,v=0;for(;;){const C=n[u];x(C!=null,`Previous layout not found for panel index ${u}`);const b=le({panelConstraints:t,panelIndex:u,size:100})-C;if(v+=b,u+=p,u<0||u>=t.length)break}const z=Math.min(Math.abs(e),Math.abs(v));e=e<0?0-z:z}{let u=e<0?s:a;for(;u>=0&&u<t.length;){const v=Math.abs(e)-Math.abs(h),z=n[u];x(z!=null,`Previous layout not found for panel index ${u}`);const C=z-v,E=le({panelConstraints:t,panelIndex:u,size:C});if(!W(z,E)&&(h+=z-E,l[u]=E,h.toPrecision(3).localeCompare(Math.abs(e).toPrecision(3),void 0,{numeric:!0})>=0))break;e<0?u--:u++}}if(Dn(i,l))return i;{const p=e<0?a:s,u=n[p];x(u!=null,`Previous layout not found for panel index ${p}`);const v=u+h,z=le({panelConstraints:t,panelIndex:p,size:v});if(l[p]=z,!W(z,v)){let C=v-z,b=e<0?a:s;for(;b>=0&&b<t.length;){const L=l[b];x(L!=null,`Previous layout not found for panel index ${b}`);const M=L+C,$=le({panelConstraints:t,panelIndex:b,size:M});if(W(L,$)||(C-=$-L,l[b]=$),W(C,0))break;e>0?b--:b++}}}const w=l.reduce((p,u)=>u+p,0);return W(w,100)?l:i}function Mn({layout:e,panelsArray:n,pivotIndices:t}){let r=0,i=100,o=0,l=0;const s=t[0];x(s!=null,"No pivot index found"),n.forEach((p,u)=>{const{constraints:v}=p,{maxSize:z=100,minSize:C=0}=v;u===s?(r=C,i=z):(o+=C,l+=z)});const a=Math.min(i,100-o),h=Math.max(r,100-l),w=e[s];return{valueMax:a,valueMin:h,valueNow:w}}function ze(e,n=document){return Array.from(n.querySelectorAll(`[${k.resizeHandleId}][data-panel-group-id="${e}"]`))}function ln(e,n,t=document){const i=ze(e,t).findIndex(o=>o.getAttribute(k.resizeHandleId)===n);return i??null}function sn(e,n,t){const r=ln(e,n,t);return r!=null?[r,r+1]:[-1,-1]}function an(e,n=document){var t;if(n instanceof HTMLElement&&(n==null||(t=n.dataset)===null||t===void 0?void 0:t.panelGroupId)==e)return n;const r=n.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return r||null}function Ie(e,n=document){const t=n.querySelector(`[${k.resizeHandleId}="${e}"]`);return t||null}function Hn(e,n,t,r=document){var i,o,l,s;const a=Ie(n,r),h=ze(e,r),w=a?h.indexOf(a):-1,p=(i=(o=t[w])===null||o===void 0?void 0:o.id)!==null&&i!==void 0?i:null,u=(l=(s=t[w+1])===null||s===void 0?void 0:s.id)!==null&&l!==void 0?l:null;return[p,u]}function $n({committedValuesRef:e,eagerValuesRef:n,groupId:t,layout:r,panelDataArray:i,panelGroupElement:o,setLayout:l}){f.useRef({didWarnAboutMissingResizeHandle:!1}),ne(()=>{if(!o)return;const s=ze(t,o);for(let a=0;a<i.length-1;a++){const{valueMax:h,valueMin:w,valueNow:p}=Mn({layout:r,panelsArray:i,pivotIndices:[a,a+1]}),u=s[a];if(u!=null){const v=i[a];x(v,`No panel data found for index "${a}"`),u.setAttribute("aria-controls",v.id),u.setAttribute("aria-valuemax",""+Math.round(h)),u.setAttribute("aria-valuemin",""+Math.round(w)),u.setAttribute("aria-valuenow",p!=null?""+Math.round(p):"")}}return()=>{s.forEach((a,h)=>{a.removeAttribute("aria-controls"),a.removeAttribute("aria-valuemax"),a.removeAttribute("aria-valuemin"),a.removeAttribute("aria-valuenow")})}},[t,r,i,o]),f.useEffect(()=>{if(!o)return;const s=n.current;x(s,"Eager values not found");const{panelDataArray:a}=s,h=an(t,o);x(h!=null,`No group found for id "${t}"`);const w=ze(t,o);x(w,`No resize handles found for group id "${t}"`);const p=w.map(u=>{const v=u.getAttribute(k.resizeHandleId);x(v,"Resize handle element has no handle id attribute");const[z,C]=Hn(t,v,a,o);if(z==null||C==null)return()=>{};const E=b=>{if(!b.defaultPrevented)switch(b.key){case"Enter":{b.preventDefault();const L=a.findIndex(M=>M.id===z);if(L>=0){const M=a[L];x(M,`No panel data found for index ${L}`);const $=r[L],{collapsedSize:O=0,collapsible:R,minSize:P=0}=M.constraints;if($!=null&&R){const K=ge({delta:W($,O)?P-O:O-$,initialLayout:r,panelConstraints:a.map(J=>J.constraints),pivotIndices:sn(t,v,o),prevLayout:r,trigger:"keyboard"});r!==K&&l(K)}}break}}};return u.addEventListener("keydown",E),()=>{u.removeEventListener("keydown",E)}});return()=>{p.forEach(u=>u())}},[o,e,n,t,r,i,l])}function Ve(e,n){if(e.length!==n.length)return!1;for(let t=0;t<e.length;t++)if(e[t]!==n[t])return!1;return!0}function un(e,n){const t=e==="horizontal",{x:r,y:i}=Ee(n);return t?r:i}function Nn(e,n,t,r,i){const o=t==="horizontal",l=Ie(n,i);x(l,`No resize handle element found for id "${n}"`);const s=l.getAttribute(k.groupId);x(s,"Resize handle element has no group id attribute");let{initialCursorPosition:a}=r;const h=un(t,e),w=an(s,i);x(w,`No group element found for id "${s}"`);const p=w.getBoundingClientRect(),u=o?p.width:p.height;return(h-a)/u*100}function _n(e,n,t,r,i,o){if(je(e)){const l=t==="horizontal";let s=0;e.shiftKey?s=100:i!=null?s=i:s=10;let a=0;switch(e.key){case"ArrowDown":a=l?0:s;break;case"ArrowLeft":a=l?-s:0;break;case"ArrowRight":a=l?s:0;break;case"ArrowUp":a=l?0:-s;break;case"End":a=100;break;case"Home":a=-100;break}return a}else return r==null?0:Nn(e,n,t,r,o)}function Gn({panelDataArray:e}){const n=Array(e.length),t=e.map(o=>o.constraints);let r=0,i=100;for(let o=0;o<e.length;o++){const l=t[o];x(l,`Panel constraints not found for index ${o}`);const{defaultSize:s}=l;s!=null&&(r++,n[o]=s,i-=s)}for(let o=0;o<e.length;o++){const l=t[o];x(l,`Panel constraints not found for index ${o}`);const{defaultSize:s}=l;if(s!=null)continue;const a=e.length-r,h=i/a;r++,n[o]=h,i-=h}return n}function oe(e,n,t){n.forEach((r,i)=>{const o=e[i];x(o,`Panel data not found for index ${i}`);const{callbacks:l,constraints:s,id:a}=o,{collapsedSize:h=0,collapsible:w}=s,p=t[a];if(p==null||r!==p){t[a]=r;const{onCollapse:u,onExpand:v,onResize:z}=l;z&&z(r,p),w&&(u||v)&&(v&&(p==null||j(p,h))&&!j(r,h)&&v(),u&&(p==null||!j(p,h))&&j(r,h)&&u())}})}function ve(e,n){if(e.length!==n.length)return!1;for(let t=0;t<e.length;t++)if(e[t]!=n[t])return!1;return!0}function Bn({defaultSize:e,dragState:n,layout:t,panelData:r,panelIndex:i,precision:o=3}){const l=t[i];let s;return l==null?s=e!=null?e.toPrecision(o):"1":r.length===1?s="1":s=l.toPrecision(o),{flexBasis:0,flexGrow:s,flexShrink:1,overflow:"hidden",pointerEvents:n!==null?"none":void 0}}function Tn(e,n=10){let t=null;return(...i)=>{t!==null&&clearTimeout(t),t=setTimeout(()=>{e(...i)},n)}}function Oe(e){try{if(typeof localStorage<"u")e.getItem=n=>localStorage.getItem(n),e.setItem=(n,t)=>{localStorage.setItem(n,t)};else throw new Error("localStorage not supported in this environment")}catch(n){console.error(n),e.getItem=()=>null,e.setItem=()=>{}}}function cn(e){return`react-resizable-panels:${e}`}function fn(e){return e.map(n=>{const{constraints:t,id:r,idIsFromProps:i,order:o}=n;return i?r:o?`${o}:${JSON.stringify(t)}`:JSON.stringify(t)}).sort((n,t)=>n.localeCompare(t)).join(",")}function dn(e,n){try{const t=cn(e),r=n.getItem(t);if(r){const i=JSON.parse(r);if(typeof i=="object"&&i!=null)return i}}catch{}return null}function Fn(e,n,t){var r,i;const o=(r=dn(e,t))!==null&&r!==void 0?r:{},l=fn(n);return(i=o[l])!==null&&i!==void 0?i:null}function Wn(e,n,t,r,i){var o;const l=cn(e),s=fn(n),a=(o=dn(e,i))!==null&&o!==void 0?o:{};a[s]={expandToSizes:Object.fromEntries(t.entries()),layout:r};try{i.setItem(l,JSON.stringify(a))}catch(h){console.error(h)}}function qe({layout:e,panelConstraints:n}){const t=[...e],r=t.reduce((o,l)=>o+l,0);if(t.length!==n.length)throw Error(`Invalid ${n.length} panel layout: ${t.map(o=>`${o}%`).join(", ")}`);if(!W(r,100)&&t.length>0)for(let o=0;o<n.length;o++){const l=t[o];x(l!=null,`No layout data found for index ${o}`);const s=100/r*l;t[o]=s}let i=0;for(let o=0;o<n.length;o++){const l=t[o];x(l!=null,`No layout data found for index ${o}`);const s=le({panelConstraints:n,panelIndex:o,size:l});l!=s&&(i+=l-s,t[o]=s)}if(!W(i,0))for(let o=0;o<n.length;o++){const l=t[o];x(l!=null,`No layout data found for index ${o}`);const s=l+i,a=le({panelConstraints:n,panelIndex:o,size:s});if(l!==a&&(i-=a-l,t[o]=a,W(i,0)))break}return t}const Kn=100,me={getItem:e=>(Oe(me),me.getItem(e)),setItem:(e,n)=>{Oe(me),me.setItem(e,n)}},Xe={};function pn({autoSaveId:e=null,children:n,className:t="",direction:r,forwardedRef:i,id:o=null,onLayout:l=null,keyboardResizeBy:s=null,storage:a=me,style:h,tagName:w="div",...p}){const u=Ne(o),v=f.useRef(null),[z,C]=f.useState(null),[E,b]=f.useState([]),L=kn(),M=f.useRef({}),$=f.useRef(new Map),O=f.useRef(0),R=f.useRef({autoSaveId:e,direction:r,dragState:z,id:u,keyboardResizeBy:s,onLayout:l,storage:a}),P=f.useRef({layout:E,panelDataArray:[],panelDataArrayChanged:!1});f.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),f.useImperativeHandle(i,()=>({getId:()=>R.current.id,getLayout:()=>{const{layout:c}=P.current;return c},setLayout:c=>{const{onLayout:m}=R.current,{layout:S,panelDataArray:g}=P.current,d=qe({layout:c,panelConstraints:g.map(y=>y.constraints)});Ve(S,d)||(b(d),P.current.layout=d,m&&m(d),oe(g,d,M.current))}}),[]),ne(()=>{R.current.autoSaveId=e,R.current.direction=r,R.current.dragState=z,R.current.id=u,R.current.onLayout=l,R.current.storage=a}),$n({committedValuesRef:R,eagerValuesRef:P,groupId:u,layout:E,panelDataArray:P.current.panelDataArray,setLayout:b,panelGroupElement:v.current}),f.useEffect(()=>{const{panelDataArray:c}=P.current;if(e){if(E.length===0||E.length!==c.length)return;let m=Xe[e];m==null&&(m=Tn(Wn,Kn),Xe[e]=m);const S=[...c],g=new Map($.current);m(e,S,g,E,a)}},[e,E,a]),f.useEffect(()=>{});const K=f.useCallback(c=>{const{onLayout:m}=R.current,{layout:S,panelDataArray:g}=P.current;if(c.constraints.collapsible){const d=g.map(q=>q.constraints),{collapsedSize:y=0,panelSize:I,pivotIndices:H}=Q(g,c,S);if(x(I!=null,`Panel size not found for panel "${c.id}"`),!j(I,y)){$.current.set(c.id,I);const X=ie(g,c)===g.length-1?I-y:y-I,A=ge({delta:X,initialLayout:S,panelConstraints:d,pivotIndices:H,prevLayout:S,trigger:"imperative-api"});ve(S,A)||(b(A),P.current.layout=A,m&&m(A),oe(g,A,M.current))}}},[]),J=f.useCallback((c,m)=>{const{onLayout:S}=R.current,{layout:g,panelDataArray:d}=P.current;if(c.constraints.collapsible){const y=d.map(U=>U.constraints),{collapsedSize:I=0,panelSize:H=0,minSize:q=0,pivotIndices:X}=Q(d,c,g),A=m??q;if(j(H,I)){const U=$.current.get(c.id),de=U!=null&&U>=A?U:A,Re=ie(d,c)===d.length-1?H-de:de-H,T=ge({delta:Re,initialLayout:g,panelConstraints:y,pivotIndices:X,prevLayout:g,trigger:"imperative-api"});ve(g,T)||(b(T),P.current.layout=T,S&&S(T),oe(d,T,M.current))}}},[]),F=f.useCallback(c=>{const{layout:m,panelDataArray:S}=P.current,{panelSize:g}=Q(S,c,m);return x(g!=null,`Panel size not found for panel "${c.id}"`),g},[]),G=f.useCallback((c,m)=>{const{panelDataArray:S}=P.current,g=ie(S,c);return Bn({defaultSize:m,dragState:z,layout:E,panelData:S,panelIndex:g})},[z,E]),D=f.useCallback(c=>{const{layout:m,panelDataArray:S}=P.current,{collapsedSize:g=0,collapsible:d,panelSize:y}=Q(S,c,m);return x(y!=null,`Panel size not found for panel "${c.id}"`),d===!0&&j(y,g)},[]),Z=f.useCallback(c=>{const{layout:m,panelDataArray:S}=P.current,{collapsedSize:g=0,collapsible:d,panelSize:y}=Q(S,c,m);return x(y!=null,`Panel size not found for panel "${c.id}"`),!d||te(y,g)>0},[]),_=f.useCallback(c=>{const{panelDataArray:m}=P.current;m.push(c),m.sort((S,g)=>{const d=S.order,y=g.order;return d==null&&y==null?0:d==null?-1:y==null?1:d-y}),P.current.panelDataArrayChanged=!0,L()},[L]);ne(()=>{if(P.current.panelDataArrayChanged){P.current.panelDataArrayChanged=!1;const{autoSaveId:c,onLayout:m,storage:S}=R.current,{layout:g,panelDataArray:d}=P.current;let y=null;if(c){const H=Fn(c,d,S);H&&($.current=new Map(Object.entries(H.expandToSizes)),y=H.layout)}y==null&&(y=Gn({panelDataArray:d}));const I=qe({layout:y,panelConstraints:d.map(H=>H.constraints)});Ve(g,I)||(b(I),P.current.layout=I,m&&m(I),oe(d,I,M.current))}}),ne(()=>{const c=P.current;return()=>{c.layout=[]}},[]);const N=f.useCallback(c=>{let m=!1;const S=v.current;return S&&window.getComputedStyle(S,null).getPropertyValue("direction")==="rtl"&&(m=!0),function(d){d.preventDefault();const y=v.current;if(!y)return()=>null;const{direction:I,dragState:H,id:q,keyboardResizeBy:X,onLayout:A}=R.current,{layout:U,panelDataArray:de}=P.current,{initialLayout:xe}=H??{},Re=sn(q,c,y);let T=_n(d,c,I,H,X,y);const Be=I==="horizontal";Be&&m&&(T=-T);const gn=de.map(mn=>mn.constraints),pe=ge({delta:T,initialLayout:xe??U,panelConstraints:gn,pivotIndices:Re,prevLayout:U,trigger:je(d)?"keyboard":"mouse-or-touch"}),Te=!ve(U,pe);(Ye(d)||Ze(d))&&O.current!=T&&(O.current=T,!Te&&T!==0?Be?De(c,T<0?en:nn):De(c,T<0?tn:rn):De(c,0)),Te&&(b(pe),P.current.layout=pe,A&&A(pe),oe(de,pe,M.current))}},[]),B=f.useCallback((c,m)=>{const{onLayout:S}=R.current,{layout:g,panelDataArray:d}=P.current,y=d.map(U=>U.constraints),{panelSize:I,pivotIndices:H}=Q(d,c,g);x(I!=null,`Panel size not found for panel "${c.id}"`);const X=ie(d,c)===d.length-1?I-m:m-I,A=ge({delta:X,initialLayout:g,panelConstraints:y,pivotIndices:H,prevLayout:g,trigger:"imperative-api"});ve(g,A)||(b(A),P.current.layout=A,S&&S(A),oe(d,A,M.current))},[]),ae=f.useCallback((c,m)=>{const{layout:S,panelDataArray:g}=P.current,{collapsedSize:d=0,collapsible:y}=m,{collapsedSize:I=0,collapsible:H,maxSize:q=100,minSize:X=0}=c.constraints,{panelSize:A}=Q(g,c,S);A!=null&&(y&&H&&j(A,d)?j(d,I)||B(c,I):A<X?B(c,X):A>q&&B(c,q))},[B]),ue=f.useCallback((c,m)=>{const{direction:S}=R.current,{layout:g}=P.current;if(!v.current)return;const d=Ie(c,v.current);x(d,`Drag handle element not found for id "${c}"`);const y=un(S,m);C({dragHandleId:c,dragHandleRect:d.getBoundingClientRect(),initialCursorPosition:y,initialLayout:g})},[]),ce=f.useCallback(()=>{C(null)},[]),ye=f.useCallback(c=>{const{panelDataArray:m}=P.current,S=ie(m,c);S>=0&&(m.splice(S,1),delete M.current[c.id],P.current.panelDataArrayChanged=!0,L())},[L]),re=f.useMemo(()=>({collapsePanel:K,direction:r,dragState:z,expandPanel:J,getPanelSize:F,getPanelStyle:G,groupId:u,isPanelCollapsed:D,isPanelExpanded:Z,reevaluatePanelConstraints:ae,registerPanel:_,registerResizeHandle:N,resizePanel:B,startDragging:ue,stopDragging:ce,unregisterPanel:ye,panelGroupElement:v.current}),[K,z,r,J,F,G,u,D,Z,ae,_,N,B,ue,ce,ye]),fe={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return f.createElement(we.Provider,{value:re},f.createElement(w,{...p,children:n,className:t,id:o,ref:v,style:{...fe,...h},[k.group]:"",[k.groupDirection]:r,[k.groupId]:u}))}const Un=f.forwardRef((e,n)=>f.createElement(pn,{...e,forwardedRef:n}));pn.displayName="PanelGroup";Un.displayName="forwardRef(PanelGroup)";function ie(e,n){return e.findIndex(t=>t===n||t.id===n.id)}function Q(e,n,t){const r=ie(e,n),o=r===e.length-1?[r-1,r]:[r,r+1],l=t[r];return{...n.constraints,panelSize:l,pivotIndices:o}}function Vn({disabled:e,handleId:n,resizeHandler:t,panelGroupElement:r}){f.useEffect(()=>{if(e||t==null||r==null)return;const i=Ie(n,r);if(i==null)return;const o=l=>{if(!l.defaultPrevented)switch(l.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{l.preventDefault(),t(l);break}case"F6":{l.preventDefault();const s=i.getAttribute(k.groupId);x(s,`No group element found for id "${s}"`);const a=ze(s,r),h=ln(s,n,r);x(h!==null,`No resize element found for id "${n}"`);const w=l.shiftKey?h>0?h-1:a.length-1:h+1<a.length?h+1:0;a[w].focus();break}}};return i.addEventListener("keydown",o),()=>{i.removeEventListener("keydown",o)}},[r,e,n,t])}function On({children:e=null,className:n="",disabled:t=!1,hitAreaMargins:r,id:i,onBlur:o,onClick:l,onDragging:s,onFocus:a,onPointerDown:h,onPointerUp:w,style:p={},tabIndex:u=0,tagName:v="div",...z}){var C,E;const b=f.useRef(null),L=f.useRef({onClick:l,onDragging:s,onPointerDown:h,onPointerUp:w});f.useEffect(()=>{L.current.onClick=l,L.current.onDragging=s,L.current.onPointerDown=h,L.current.onPointerUp=w});const M=f.useContext(we);if(M===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:$,groupId:O,registerResizeHandle:R,startDragging:P,stopDragging:K,panelGroupElement:J}=M,F=Ne(i),[G,D]=f.useState("inactive"),[Z,_]=f.useState(!1),[N,B]=f.useState(null),ae=f.useRef({state:G});ne(()=>{ae.current.state=G}),f.useEffect(()=>{if(t)B(null);else{const re=R(F);B(()=>re)}},[t,F,R]);const ue=(C=r==null?void 0:r.coarse)!==null&&C!==void 0?C:15,ce=(E=r==null?void 0:r.fine)!==null&&E!==void 0?E:5;f.useEffect(()=>{if(t||N==null)return;const re=b.current;x(re,"Element ref not attached");let fe=!1;return Ln(F,re,$,{coarse:ue,fine:ce},(m,S,g)=>{if(!S){D("inactive");return}switch(m){case"down":{D("drag"),fe=!1,x(g,'Expected event to be defined for "down" action'),P(F,g);const{onDragging:d,onPointerDown:y}=L.current;d==null||d(!0),y==null||y();break}case"move":{const{state:d}=ae.current;fe=!0,d!=="drag"&&D("hover"),x(g,'Expected event to be defined for "move" action'),N(g);break}case"up":{D("hover"),K();const{onClick:d,onDragging:y,onPointerUp:I}=L.current;y==null||y(!1),I==null||I(),fe||d==null||d();break}}})},[ue,$,t,ce,R,F,N,P,K]),Vn({disabled:t,handleId:F,resizeHandler:N,panelGroupElement:J});const ye={touchAction:"none",userSelect:"none"};return f.createElement(v,{...z,children:e,className:n,id:i,onBlur:()=>{_(!1),o==null||o()},onFocus:()=>{_(!0),a==null||a()},ref:b,role:"separator",style:{...ye,...p},tabIndex:u,[k.groupDirection]:$,[k.groupId]:O,[k.resizeHandle]:"",[k.resizeHandleActive]:G==="drag"?"pointer":Z?"keyboard":void 0,[k.resizeHandleEnabled]:!t,[k.resizeHandleId]:F,[k.resizeHandleState]:G})}On.displayName="PanelResizeHandle";export{Un as P,xn as a,On as b};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import{r as O}from"./icons-BXecaLRH.js";var y={exports:{}},n={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-dom.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var o;function S(){if(o)return n;o=1;var u=O();function g(r){var e="https://react.dev/errors/"+r;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var t=2;t<arguments.length;t++)e+="&args[]="+encodeURIComponent(arguments[t])}return"Minified React error #"+r+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var i={d:{f:c,r:function(){throw Error(g(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},m=Symbol.for("react.portal");function v(r,e,t){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:m,key:a==null?null:""+a,children:r,containerInfo:e,implementation:t}}var f=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(r,e){if(r==="font")return"";if(typeof e=="string")return e==="use-credentials"?e:""}return n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,n.createPortal=function(r,e){var t=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)throw Error(g(299));return v(r,e,null,t)},n.flushSync=function(r){var e=f.T,t=i.p;try{if(f.T=null,i.p=2,r)return r()}finally{f.T=e,i.p=t,i.d.f()}},n.preconnect=function(r,e){typeof r=="string"&&(e?(e=e.crossOrigin,e=typeof e=="string"?e==="use-credentials"?e:"":void 0):e=null,i.d.C(r,e))},n.prefetchDNS=function(r){typeof r=="string"&&i.d.D(r)},n.preinit=function(r,e){if(typeof r=="string"&&e&&typeof e.as=="string"){var t=e.as,a=d(t,e.crossOrigin),s=typeof e.integrity=="string"?e.integrity:void 0,l=typeof e.fetchPriority=="string"?e.fetchPriority:void 0;t==="style"?i.d.S(r,typeof e.precedence=="string"?e.precedence:void 0,{crossOrigin:a,integrity:s,fetchPriority:l}):t==="script"&&i.d.X(r,{crossOrigin:a,integrity:s,fetchPriority:l,nonce:typeof e.nonce=="string"?e.nonce:void 0})}},n.preinitModule=function(r,e){if(typeof r=="string")if(typeof e=="object"&&e!==null){if(e.as==null||e.as==="script"){var t=d(e.as,e.crossOrigin);i.d.M(r,{crossOrigin:t,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0})}}else e==null&&i.d.M(r)},n.preload=function(r,e){if(typeof r=="string"&&typeof e=="object"&&e!==null&&typeof e.as=="string"){var t=e.as,a=d(t,e.crossOrigin);i.d.L(r,t,{crossOrigin:a,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0,type:typeof e.type=="string"?e.type:void 0,fetchPriority:typeof e.fetchPriority=="string"?e.fetchPriority:void 0,referrerPolicy:typeof e.referrerPolicy=="string"?e.referrerPolicy:void 0,imageSrcSet:typeof e.imageSrcSet=="string"?e.imageSrcSet:void 0,imageSizes:typeof e.imageSizes=="string"?e.imageSizes:void 0,media:typeof e.media=="string"?e.media:void 0})}},n.preloadModule=function(r,e){if(typeof r=="string")if(e){var t=d(e.as,e.crossOrigin);i.d.m(r,{as:typeof e.as=="string"&&e.as!=="script"?e.as:void 0,crossOrigin:t,integrity:typeof e.integrity=="string"?e.integrity:void 0})}else i.d.m(r)},n.requestFormReset=function(r){i.d.r(r)},n.unstable_batchedUpdates=function(r,e){return r(e)},n.useFormState=function(r,e,t){return f.H.useFormState(r,e,t)},n.useFormStatus=function(){return f.H.useHostTransitionStatus()},n.version="19.2.7",n}var _;function T(){if(_)return y.exports;_=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(g){console.error(g)}}return u(),y.exports=S(),y.exports}export{T as r};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import{r as A,g as U,W as F}from"./icons-BXecaLRH.js";var _={exports:{}},g={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* use-sync-external-store-shim.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var I;function M(){if(I)return g;I=1;var e=A();function n(r,t){return r===t&&(r!==0||1/r===1/t)||r!==r&&t!==t}var s=typeof Object.is=="function"?Object.is:n,a=e.useState,d=e.useEffect,p=e.useLayoutEffect,b=e.useDebugValue;function E(r,t){var u=t(),c=a({inst:{value:u,getSnapshot:t}}),i=c[0].inst,S=c[1];return p(function(){i.value=u,i.getSnapshot=t,v(i)&&S({inst:i})},[r,u,t]),d(function(){return v(i)&&S({inst:i}),r(function(){v(i)&&S({inst:i})})},[r]),b(u),u}function v(r){var t=r.getSnapshot;r=r.value;try{var u=t();return!s(r,u)}catch{return!0}}function f(r,t){return t()}var o=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:E;return g.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:o,g}var V;function $(){return V||(V=1,_.exports=M()),_.exports}const G={},q=e=>{let n;const s=new Set,a=(o,r)=>{const t=typeof o=="function"?o(n):o;if(!Object.is(t,n)){const u=n;n=r??(typeof t!="object"||t===null)?t:Object.assign({},n,t),s.forEach(c=>c(n,u))}},d=()=>n,v={setState:a,getState:d,getInitialState:()=>f,subscribe:o=>(s.add(o),()=>s.delete(o)),destroy:()=>{(G?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),s.clear()}},f=n=e(a,d,v);return v},L=e=>e?q(e):q;var w={exports:{}},R={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* use-sync-external-store-shim/with-selector.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var O;function k(){if(O)return R;O=1;var e=A(),n=$();function s(f,o){return f===o&&(f!==0||1/f===1/o)||f!==f&&o!==o}var a=typeof Object.is=="function"?Object.is:s,d=n.useSyncExternalStore,p=e.useRef,b=e.useEffect,E=e.useMemo,v=e.useDebugValue;return R.useSyncExternalStoreWithSelector=function(f,o,r,t,u){var c=p(null);if(c.current===null){var i={hasValue:!1,value:null};c.current=i}else i=c.current;c=E(function(){function D(l){if(!j){if(j=!0,h=l,l=t(l),u!==void 0&&i.hasValue){var m=i.value;if(u(m,l))return y=m}return y=l}if(m=y,a(h,l))return m;var W=t(l);return u!==void 0&&u(m,W)?(h=l,m):(h=l,y=W)}var j=!1,h,y,x=r===void 0?null:r;return[function(){return D(o())},x===null?void 0:function(){return D(x())}]},[o,r,t,u]);var S=d(f,c[0],c[1]);return b(function(){i.hasValue=!0,i.value=S},[S]),v(S),S},R}var z;function B(){return z||(z=1,w.exports=k()),w.exports}var H=B();const J=U(H),P={},{useDebugValue:K}=F,{useSyncExternalStoreWithSelector:N}=J;let C=!1;const Q=e=>e;function X(e,n=Q,s){(P?"production":void 0)!=="production"&&s&&!C&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),C=!0);const a=N(e.subscribe,e.getState,e.getServerState||e.getInitialState,n,s);return K(a),a}const T=e=>{(P?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const n=typeof e=="function"?L(e):e,s=(a,d)=>X(n,a,d);return Object.assign(s,n),s},Z=e=>e?T(e):T;export{Z as c,$ as r};
|