remote-codex 0.11.8 → 0.11.10

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.
Files changed (22) hide show
  1. package/apps/relay-server/dist/index.js +93 -10
  2. package/apps/supervisor-api/dist/{chunk-ELPP22TZ.js → chunk-HMFJNQDI.js} +11 -4
  3. package/apps/supervisor-api/dist/index.js +1 -1
  4. package/apps/supervisor-api/dist/worker-index.js +1 -1
  5. package/apps/supervisor-web/dist/assets/{core-DIQen2lE.js → core-oEok_Crl.js} +1 -1
  6. package/apps/supervisor-web/dist/assets/{graph-vendor-CGzY-MFv.js → graph-vendor-DVPtkh3h.js} +1 -1
  7. package/apps/supervisor-web/dist/assets/index-Cp9GkemI.css +1 -0
  8. package/apps/supervisor-web/dist/assets/index-M5xKhovw.js +5 -0
  9. package/apps/supervisor-web/dist/assets/{markdown-vendor-hBDTCSB-.js → markdown-vendor-BQJfKm05.js} +1 -1
  10. package/apps/supervisor-web/dist/assets/{react-vendor-o1Xrx7m4.js → react-vendor-CgLzZcV4.js} +1 -1
  11. package/apps/supervisor-web/dist/assets/{terminal-vendor-CLGgN91S.js → terminal-vendor-B365Go3Z.js} +1 -1
  12. package/apps/supervisor-web/dist/assets/thread-ui-DldLSgqC.js +3604 -0
  13. package/apps/supervisor-web/dist/assets/ui-vendor-CeKGesq3.js +50 -0
  14. package/apps/supervisor-web/dist/index.html +8 -8
  15. package/bin/remote-codex.mjs +255 -40
  16. package/package.json +2 -2
  17. package/packages/shared/src/index.ts +1 -0
  18. package/apps/supervisor-api/dist/chunk-ZWZQVPDT.js +0 -27893
  19. package/apps/supervisor-web/dist/assets/index-CXq73NcP.js +0 -5
  20. package/apps/supervisor-web/dist/assets/index-Di1JBevU.css +0 -1
  21. package/apps/supervisor-web/dist/assets/thread-ui-ICfwCbte.js +0 -3604
  22. package/apps/supervisor-web/dist/assets/ui-vendor-D1uxdi-d.js +0 -430
@@ -1,4 +1,4 @@
1
- import{g as cl,j as In}from"./react-vendor-o1Xrx7m4.js";function Ai(e){const t=[],r=String(e||"");let n=r.indexOf(","),i=0,a=!1;for(;!a;){n===-1&&(n=r.length,a=!0);const l=r.slice(i,n).trim();(l||!a)&&t.push(l),i=n+1,n=r.indexOf(",",i)}return t}function ko(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const So=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ao=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,To={};function Ti(e,t){return(To.jsx?Ao:So).test(e)}const Co=/[ \t\n\f\r]/g;function zo(e){return typeof e=="object"?e.type==="text"?Ci(e.value):!1:Ci(e)}function Ci(e){return e.replace(Co,"")===""}class zr{constructor(t,r,n){this.normal=r,this.property=t,n&&(this.space=n)}}zr.prototype.normal={};zr.prototype.property={};zr.prototype.space=void 0;function hl(e,t){const r={},n={};for(const i of e)Object.assign(r,i.property),Object.assign(n,i.normal);return new zr(r,n,t)}function kr(e){return e.toLowerCase()}class je{constructor(t,r){this.attribute=r,this.property=t}}je.prototype.attribute="";je.prototype.booleanish=!1;je.prototype.boolean=!1;je.prototype.commaOrSpaceSeparated=!1;je.prototype.commaSeparated=!1;je.prototype.defined=!1;je.prototype.mustUseProperty=!1;je.prototype.number=!1;je.prototype.overloadedBoolean=!1;je.prototype.property="";je.prototype.spaceSeparated=!1;je.prototype.space=void 0;let Mo=0;const ee=$t(),we=$t(),m0=$t(),R=$t(),he=$t(),Ht=$t(),Ge=$t();function $t(){return 2**++Mo}const f0=Object.freeze(Object.defineProperty({__proto__:null,boolean:ee,booleanish:we,commaOrSpaceSeparated:Ge,commaSeparated:Ht,number:R,overloadedBoolean:m0,spaceSeparated:he},Symbol.toStringTag,{value:"Module"})),Bn=Object.keys(f0);class U0 extends je{constructor(t,r,n,i){let a=-1;if(super(t,r),zi(this,"space",i),typeof n=="number")for(;++a<Bn.length;){const l=Bn[a];zi(this,Bn[a],(n&f0[l])===f0[l])}}}U0.prototype.defined=!0;function zi(e,t,r){r&&(e[t]=r)}function nr(e){const t={},r={};for(const[n,i]of Object.entries(e.properties)){const a=new U0(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(a.mustUseProperty=!0),t[n]=a,r[kr(n)]=n,r[kr(a.attribute)]=n}return new zr(t,r,e.space)}const ml=nr({properties:{ariaActiveDescendant:null,ariaAtomic:we,ariaAutoComplete:null,ariaBusy:we,ariaChecked:we,ariaColCount:R,ariaColIndex:R,ariaColSpan:R,ariaControls:he,ariaCurrent:null,ariaDescribedBy:he,ariaDetails:null,ariaDisabled:we,ariaDropEffect:he,ariaErrorMessage:null,ariaExpanded:we,ariaFlowTo:he,ariaGrabbed:we,ariaHasPopup:null,ariaHidden:we,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:he,ariaLevel:R,ariaLive:null,ariaModal:we,ariaMultiLine:we,ariaMultiSelectable:we,ariaOrientation:null,ariaOwns:he,ariaPlaceholder:null,ariaPosInSet:R,ariaPressed:we,ariaReadOnly:we,ariaRelevant:null,ariaRequired:we,ariaRoleDescription:he,ariaRowCount:R,ariaRowIndex:R,ariaRowSpan:R,ariaSelected:we,ariaSetSize:R,ariaSort:null,ariaValueMax:R,ariaValueMin:R,ariaValueNow:R,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function fl(e,t){return t in e?e[t]:t}function pl(e,t){return fl(e,t.toLowerCase())}const Eo=nr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ht,acceptCharset:he,accessKey:he,action:null,allow:null,allowFullScreen:ee,allowPaymentRequest:ee,allowUserMedia:ee,alpha:ee,alt:null,as:null,async:ee,autoCapitalize:null,autoComplete:he,autoFocus:ee,autoPlay:ee,blocking:he,capture:null,charSet:null,checked:ee,cite:null,className:he,closedBy:null,colorSpace:null,cols:R,colSpan:R,command:null,commandFor:null,content:null,contentEditable:we,controls:ee,controlsList:he,coords:R|Ht,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ee,defer:ee,dir:null,dirName:null,disabled:ee,download:m0,draggable:we,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ee,formTarget:null,headers:he,height:R,hidden:m0,high:R,href:null,hrefLang:null,htmlFor:he,httpEquiv:he,id:null,imageSizes:null,imageSrcSet:null,inert:ee,inputMode:null,integrity:null,is:null,isMap:ee,itemId:null,itemProp:he,itemRef:he,itemScope:ee,itemType:he,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ee,low:R,manifest:null,max:null,maxLength:R,media:null,method:null,min:null,minLength:R,multiple:ee,muted:ee,name:null,nonce:null,noModule:ee,noValidate:ee,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:ee,optimum:R,pattern:null,ping:he,placeholder:null,playsInline:ee,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ee,referrerPolicy:null,rel:he,required:ee,reversed:ee,rows:R,rowSpan:R,sandbox:he,scope:null,scoped:ee,seamless:ee,selected:ee,shadowRootClonable:ee,shadowRootCustomElementRegistry:ee,shadowRootDelegatesFocus:ee,shadowRootMode:null,shadowRootSerializable:ee,shape:null,size:R,sizes:null,slot:null,span:R,spellCheck:we,src:null,srcDoc:null,srcLang:null,srcSet:null,start:R,step:null,style:null,tabIndex:R,target:null,title:null,translate:null,type:null,typeMustMatch:ee,useMap:null,value:we,width:R,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:he,axis:null,background:null,bgColor:null,border:R,borderColor:null,bottomMargin:R,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ee,declare:ee,event:null,face:null,frame:null,frameBorder:null,hSpace:R,leftMargin:R,link:null,longDesc:null,lowSrc:null,marginHeight:R,marginWidth:R,noResize:ee,noHref:ee,noShade:ee,noWrap:ee,object:null,profile:null,prompt:null,rev:null,rightMargin:R,rules:null,scheme:null,scrolling:we,standby:null,summary:null,text:null,topMargin:R,valueType:null,version:null,vAlign:null,vLink:null,vSpace:R,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:ee,disablePictureInPicture:ee,disableRemotePlayback:ee,exportParts:Ht,part:he,prefix:null,property:null,results:R,security:null,unselectable:null},space:"html",transform:pl}),Do=nr({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:Ge,accentHeight:R,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:R,amplitude:R,arabicForm:null,ascent:R,attributeName:null,attributeType:null,azimuth:R,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:R,by:null,calcMode:null,capHeight:R,className:he,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:R,diffuseConstant:R,direction:null,display:null,dur:null,divisor:R,dominantBaseline:null,download:ee,dx:null,dy:null,edgeMode:null,editable:null,elevation:R,enableBackground:null,end:null,event:null,exponent:R,externalResourcesRequired:null,fill:null,fillOpacity:R,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:Ht,g2:Ht,glyphName:Ht,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:R,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:R,horizOriginX:R,horizOriginY:R,id:null,ideographic:R,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:R,k:R,k1:R,k2:R,k3:R,k4:R,kernelMatrix:Ge,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:R,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:R,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:R,overlineThickness:R,paintOrder:null,panose1:null,path:null,pathLength:R,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:he,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:R,pointsAtY:R,pointsAtZ:R,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ge,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ge,rev:Ge,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ge,requiredFeatures:Ge,requiredFonts:Ge,requiredFormats:Ge,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:R,specularExponent:R,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:R,strikethroughThickness:R,string:null,stroke:null,strokeDashArray:Ge,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:R,strokeOpacity:R,strokeWidth:null,style:null,surfaceScale:R,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ge,tabIndex:R,tableValues:null,target:null,targetX:R,targetY:R,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ge,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:R,underlineThickness:R,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:R,values:null,vAlphabetic:R,vMathematical:R,vectorEffect:null,vHanging:R,vIdeographic:R,version:null,vertAdvY:R,vertOriginX:R,vertOriginY:R,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:R,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:fl}),dl=nr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),gl=nr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:pl}),vl=nr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Io={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"},Bo=/[A-Z]/g,Mi=/-[a-z]/g,Fo=/^data[-\w.:]+$/i;function yl(e,t){const r=kr(t);let n=t,i=je;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&Fo.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(Mi,No);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!Mi.test(a)){let l=a.replace(Bo,Ro);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}i=U0}return new i(n,t)}function Ro(e){return"-"+e.toLowerCase()}function No(e){return e.charAt(1).toUpperCase()}const bl=hl([ml,Eo,dl,gl,vl],"html"),hn=hl([ml,Do,dl,gl,vl],"svg");function Ei(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Lo(e){return e.join(" ").trim()}var Xt={},Fn,Di;function Po(){if(Di)return Fn;Di=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,s=/^\s+|\s+$/g,o=`
1
+ import{g as cl,j as In}from"./react-vendor-CgLzZcV4.js";function Ai(e){const t=[],r=String(e||"");let n=r.indexOf(","),i=0,a=!1;for(;!a;){n===-1&&(n=r.length,a=!0);const l=r.slice(i,n).trim();(l||!a)&&t.push(l),i=n+1,n=r.indexOf(",",i)}return t}function ko(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const So=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ao=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,To={};function Ti(e,t){return(To.jsx?Ao:So).test(e)}const Co=/[ \t\n\f\r]/g;function zo(e){return typeof e=="object"?e.type==="text"?Ci(e.value):!1:Ci(e)}function Ci(e){return e.replace(Co,"")===""}class zr{constructor(t,r,n){this.normal=r,this.property=t,n&&(this.space=n)}}zr.prototype.normal={};zr.prototype.property={};zr.prototype.space=void 0;function hl(e,t){const r={},n={};for(const i of e)Object.assign(r,i.property),Object.assign(n,i.normal);return new zr(r,n,t)}function kr(e){return e.toLowerCase()}class je{constructor(t,r){this.attribute=r,this.property=t}}je.prototype.attribute="";je.prototype.booleanish=!1;je.prototype.boolean=!1;je.prototype.commaOrSpaceSeparated=!1;je.prototype.commaSeparated=!1;je.prototype.defined=!1;je.prototype.mustUseProperty=!1;je.prototype.number=!1;je.prototype.overloadedBoolean=!1;je.prototype.property="";je.prototype.spaceSeparated=!1;je.prototype.space=void 0;let Mo=0;const ee=$t(),we=$t(),m0=$t(),R=$t(),he=$t(),Ht=$t(),Ge=$t();function $t(){return 2**++Mo}const f0=Object.freeze(Object.defineProperty({__proto__:null,boolean:ee,booleanish:we,commaOrSpaceSeparated:Ge,commaSeparated:Ht,number:R,overloadedBoolean:m0,spaceSeparated:he},Symbol.toStringTag,{value:"Module"})),Bn=Object.keys(f0);class U0 extends je{constructor(t,r,n,i){let a=-1;if(super(t,r),zi(this,"space",i),typeof n=="number")for(;++a<Bn.length;){const l=Bn[a];zi(this,Bn[a],(n&f0[l])===f0[l])}}}U0.prototype.defined=!0;function zi(e,t,r){r&&(e[t]=r)}function nr(e){const t={},r={};for(const[n,i]of Object.entries(e.properties)){const a=new U0(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(a.mustUseProperty=!0),t[n]=a,r[kr(n)]=n,r[kr(a.attribute)]=n}return new zr(t,r,e.space)}const ml=nr({properties:{ariaActiveDescendant:null,ariaAtomic:we,ariaAutoComplete:null,ariaBusy:we,ariaChecked:we,ariaColCount:R,ariaColIndex:R,ariaColSpan:R,ariaControls:he,ariaCurrent:null,ariaDescribedBy:he,ariaDetails:null,ariaDisabled:we,ariaDropEffect:he,ariaErrorMessage:null,ariaExpanded:we,ariaFlowTo:he,ariaGrabbed:we,ariaHasPopup:null,ariaHidden:we,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:he,ariaLevel:R,ariaLive:null,ariaModal:we,ariaMultiLine:we,ariaMultiSelectable:we,ariaOrientation:null,ariaOwns:he,ariaPlaceholder:null,ariaPosInSet:R,ariaPressed:we,ariaReadOnly:we,ariaRelevant:null,ariaRequired:we,ariaRoleDescription:he,ariaRowCount:R,ariaRowIndex:R,ariaRowSpan:R,ariaSelected:we,ariaSetSize:R,ariaSort:null,ariaValueMax:R,ariaValueMin:R,ariaValueNow:R,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function fl(e,t){return t in e?e[t]:t}function pl(e,t){return fl(e,t.toLowerCase())}const Eo=nr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ht,acceptCharset:he,accessKey:he,action:null,allow:null,allowFullScreen:ee,allowPaymentRequest:ee,allowUserMedia:ee,alpha:ee,alt:null,as:null,async:ee,autoCapitalize:null,autoComplete:he,autoFocus:ee,autoPlay:ee,blocking:he,capture:null,charSet:null,checked:ee,cite:null,className:he,closedBy:null,colorSpace:null,cols:R,colSpan:R,command:null,commandFor:null,content:null,contentEditable:we,controls:ee,controlsList:he,coords:R|Ht,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ee,defer:ee,dir:null,dirName:null,disabled:ee,download:m0,draggable:we,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ee,formTarget:null,headers:he,height:R,hidden:m0,high:R,href:null,hrefLang:null,htmlFor:he,httpEquiv:he,id:null,imageSizes:null,imageSrcSet:null,inert:ee,inputMode:null,integrity:null,is:null,isMap:ee,itemId:null,itemProp:he,itemRef:he,itemScope:ee,itemType:he,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ee,low:R,manifest:null,max:null,maxLength:R,media:null,method:null,min:null,minLength:R,multiple:ee,muted:ee,name:null,nonce:null,noModule:ee,noValidate:ee,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:ee,optimum:R,pattern:null,ping:he,placeholder:null,playsInline:ee,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ee,referrerPolicy:null,rel:he,required:ee,reversed:ee,rows:R,rowSpan:R,sandbox:he,scope:null,scoped:ee,seamless:ee,selected:ee,shadowRootClonable:ee,shadowRootCustomElementRegistry:ee,shadowRootDelegatesFocus:ee,shadowRootMode:null,shadowRootSerializable:ee,shape:null,size:R,sizes:null,slot:null,span:R,spellCheck:we,src:null,srcDoc:null,srcLang:null,srcSet:null,start:R,step:null,style:null,tabIndex:R,target:null,title:null,translate:null,type:null,typeMustMatch:ee,useMap:null,value:we,width:R,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:he,axis:null,background:null,bgColor:null,border:R,borderColor:null,bottomMargin:R,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ee,declare:ee,event:null,face:null,frame:null,frameBorder:null,hSpace:R,leftMargin:R,link:null,longDesc:null,lowSrc:null,marginHeight:R,marginWidth:R,noResize:ee,noHref:ee,noShade:ee,noWrap:ee,object:null,profile:null,prompt:null,rev:null,rightMargin:R,rules:null,scheme:null,scrolling:we,standby:null,summary:null,text:null,topMargin:R,valueType:null,version:null,vAlign:null,vLink:null,vSpace:R,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:ee,disablePictureInPicture:ee,disableRemotePlayback:ee,exportParts:Ht,part:he,prefix:null,property:null,results:R,security:null,unselectable:null},space:"html",transform:pl}),Do=nr({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:Ge,accentHeight:R,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:R,amplitude:R,arabicForm:null,ascent:R,attributeName:null,attributeType:null,azimuth:R,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:R,by:null,calcMode:null,capHeight:R,className:he,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:R,diffuseConstant:R,direction:null,display:null,dur:null,divisor:R,dominantBaseline:null,download:ee,dx:null,dy:null,edgeMode:null,editable:null,elevation:R,enableBackground:null,end:null,event:null,exponent:R,externalResourcesRequired:null,fill:null,fillOpacity:R,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:Ht,g2:Ht,glyphName:Ht,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:R,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:R,horizOriginX:R,horizOriginY:R,id:null,ideographic:R,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:R,k:R,k1:R,k2:R,k3:R,k4:R,kernelMatrix:Ge,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:R,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:R,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:R,overlineThickness:R,paintOrder:null,panose1:null,path:null,pathLength:R,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:he,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:R,pointsAtY:R,pointsAtZ:R,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ge,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ge,rev:Ge,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ge,requiredFeatures:Ge,requiredFonts:Ge,requiredFormats:Ge,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:R,specularExponent:R,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:R,strikethroughThickness:R,string:null,stroke:null,strokeDashArray:Ge,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:R,strokeOpacity:R,strokeWidth:null,style:null,surfaceScale:R,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ge,tabIndex:R,tableValues:null,target:null,targetX:R,targetY:R,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ge,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:R,underlineThickness:R,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:R,values:null,vAlphabetic:R,vMathematical:R,vectorEffect:null,vHanging:R,vIdeographic:R,version:null,vertAdvY:R,vertOriginX:R,vertOriginY:R,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:R,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:fl}),dl=nr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),gl=nr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:pl}),vl=nr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Io={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"},Bo=/[A-Z]/g,Mi=/-[a-z]/g,Fo=/^data[-\w.:]+$/i;function yl(e,t){const r=kr(t);let n=t,i=je;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&Fo.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(Mi,No);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!Mi.test(a)){let l=a.replace(Bo,Ro);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}i=U0}return new i(n,t)}function Ro(e){return"-"+e.toLowerCase()}function No(e){return e.charAt(1).toUpperCase()}const bl=hl([ml,Eo,dl,gl,vl],"html"),hn=hl([ml,Do,dl,gl,vl],"svg");function Ei(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Lo(e){return e.join(" ").trim()}var Xt={},Fn,Di;function Po(){if(Di)return Fn;Di=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,s=/^\s+|\s+$/g,o=`
2
2
  `,u="/",h="*",m="",d="comment",p="declaration";function y(z,A){if(typeof z!="string")throw new TypeError("First argument must be a string");if(!z)return[];A=A||{};var C=1,D=1;function q(Y){var H=Y.match(t);H&&(C+=H.length);var ae=Y.lastIndexOf(o);D=~ae?Y.length-ae:D+Y.length}function O(){var Y={line:C,column:D};return function(H){return H.position=new M(Y),U(),H}}function M(Y){this.start=Y,this.end={line:C,column:D},this.source=A.source}M.prototype.content=z;function _(Y){var H=new Error(A.source+":"+C+":"+D+": "+Y);if(H.reason=Y,H.filename=A.source,H.line=C,H.column=D,H.source=z,!A.silent)throw H}function X(Y){var H=Y.exec(z);if(H){var ae=H[0];return q(ae),z=z.slice(ae.length),H}}function U(){X(r)}function E(Y){var H;for(Y=Y||[];H=V();)H!==!1&&Y.push(H);return Y}function V(){var Y=O();if(!(u!=z.charAt(0)||h!=z.charAt(1))){for(var H=2;m!=z.charAt(H)&&(h!=z.charAt(H)||u!=z.charAt(H+1));)++H;if(H+=2,m===z.charAt(H-1))return _("End of comment missing");var ae=z.slice(2,H-2);return D+=2,q(ae),z=z.slice(H),D+=2,Y({type:d,comment:ae})}}function $(){var Y=O(),H=X(n);if(H){if(V(),!X(i))return _("property missing ':'");var ae=X(a),pe=Y({type:p,property:w(H[0].replace(e,m)),value:ae?w(ae[0].replace(e,m)):m});return X(l),pe}}function se(){var Y=[];E(Y);for(var H;H=$();)H!==!1&&(Y.push(H),E(Y));return Y}return U(),se()}function w(z){return z?z.replace(s,m):m}return Fn=y,Fn}var Ii;function Oo(){if(Ii)return Xt;Ii=1;var e=Xt&&Xt.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Xt,"__esModule",{value:!0}),Xt.default=r;const t=e(Po());function r(n,i){let a=null;if(!n||typeof n!="string")return a;const l=(0,t.default)(n),s=typeof i=="function";return l.forEach(o=>{if(o.type!=="declaration")return;const{property:u,value:h}=o;s?i(u,h,o):h&&(a=a||{},a[u]=h)}),a}return Xt}var fr={},Bi;function qo(){if(Bi)return fr;Bi=1,Object.defineProperty(fr,"__esModule",{value:!0}),fr.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,n=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,a=function(u){return!u||r.test(u)||e.test(u)},l=function(u,h){return h.toUpperCase()},s=function(u,h){return"".concat(h,"-")},o=function(u,h){return h===void 0&&(h={}),a(u)?u:(u=u.toLowerCase(),h.reactCompat?u=u.replace(i,s):u=u.replace(n,s),u.replace(t,l))};return fr.camelCase=o,fr}var pr,Fi;function Ho(){if(Fi)return pr;Fi=1;var e=pr&&pr.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(Oo()),r=qo();function n(i,a){var l={};return!i||typeof i!="string"||(0,t.default)(i,function(s,o){s&&o&&(l[(0,r.camelCase)(s,a)]=o)}),l}return n.default=n,pr=n,pr}var jo=Ho();const $o=cl(jo),xl=wl("end"),V0=wl("start");function wl(e){return t;function t(r){const n=r&&r.position&&r.position[e]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function Uo(e){const t=V0(e),r=xl(e);if(t&&r)return{start:t,end:r}}function yr(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Ri(e.position):"start"in e||"end"in e?Ri(e):"line"in e||"column"in e?p0(e):""}function p0(e){return Ni(e&&e.line)+":"+Ni(e&&e.column)}function Ri(e){return p0(e&&e.start)+"-"+p0(e&&e.end)}function Ni(e){return e&&typeof e=="number"?e:1}class Be extends Error{constructor(t,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let i="",a={},l=!1;if(r&&("line"in r&&"column"in r?a={place:r}:"start"in r&&"end"in r?a={place:r}:"type"in r?a={ancestors:[r],place:r.position}:a={...r}),typeof t=="string"?i=t:!a.cause&&t&&(l=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof n=="string"){const o=n.indexOf(":");o===-1?a.ruleId=n:(a.source=n.slice(0,o),a.ruleId=n.slice(o+1))}if(!a.place&&a.ancestors&&a.ancestors){const o=a.ancestors[a.ancestors.length-1];o&&(a.place=o.position)}const s=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=s?s.line:void 0,this.name=yr(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=l&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Be.prototype.file="";Be.prototype.name="";Be.prototype.reason="";Be.prototype.message="";Be.prototype.stack="";Be.prototype.column=void 0;Be.prototype.line=void 0;Be.prototype.ancestors=void 0;Be.prototype.cause=void 0;Be.prototype.fatal=void 0;Be.prototype.place=void 0;Be.prototype.ruleId=void 0;Be.prototype.source=void 0;const G0={}.hasOwnProperty,Vo=new Map,Go=/[A-Z]/g,_o=new Set(["table","tbody","thead","tfoot","tr"]),Wo=new Set(["td","th"]),kl="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Xo(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let n;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");n=ru(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");n=tu(r,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:n,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?hn:bl,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Sl(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function Sl(e,t,r){if(t.type==="element")return Yo(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Ko(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Qo(e,t,r);if(t.type==="mdxjsEsm")return Zo(e,t);if(t.type==="root")return Jo(e,t,r);if(t.type==="text")return eu(e,t)}function Yo(e,t,r){const n=e.schema;let i=n;t.tagName.toLowerCase()==="svg"&&n.space==="html"&&(i=hn,e.schema=i),e.ancestors.push(t);const a=Tl(e,t.tagName,!1),l=nu(e,t);let s=W0(e,t);return _o.has(t.tagName)&&(s=s.filter(function(o){return typeof o=="string"?!zo(o):!0})),Al(e,l,a,t),_0(l,s),e.ancestors.pop(),e.schema=n,e.create(t,a,l,r)}function Ko(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}Sr(e,t.position)}function Zo(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Sr(e,t.position)}function Qo(e,t,r){const n=e.schema;let i=n;t.name==="svg"&&n.space==="html"&&(i=hn,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:Tl(e,t.name,!0),l=iu(e,t),s=W0(e,t);return Al(e,l,a,t),_0(l,s),e.ancestors.pop(),e.schema=n,e.create(t,a,l,r)}function Jo(e,t,r){const n={};return _0(n,W0(e,t)),e.create(t,e.Fragment,n,r)}function eu(e,t){return t.value}function Al(e,t,r,n){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=n)}function _0(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function tu(e,t,r){return n;function n(i,a,l,s){const u=Array.isArray(l.children)?r:t;return s?u(a,l,s):u(a,l)}}function ru(e,t){return r;function r(n,i,a,l){const s=Array.isArray(a.children),o=V0(n);return t(i,a,l,s,{columnNumber:o?o.column-1:void 0,fileName:e,lineNumber:o?o.line:void 0},void 0)}}function nu(e,t){const r={};let n,i;for(i in t.properties)if(i!=="children"&&G0.call(t.properties,i)){const a=au(e,i,t.properties[i]);if(a){const[l,s]=a;e.tableCellAlignToStyle&&l==="align"&&typeof s=="string"&&Wo.has(t.tagName)?n=s:r[l]=s}}if(n){const a=r.style||(r.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=n}return r}function iu(e,t){const r={};for(const n of t.attributes)if(n.type==="mdxJsxExpressionAttribute")if(n.data&&n.data.estree&&e.evaluater){const a=n.data.estree.body[0];a.type;const l=a.expression;l.type;const s=l.properties[0];s.type,Object.assign(r,e.evaluater.evaluateExpression(s.argument))}else Sr(e,t.position);else{const i=n.name;let a;if(n.value&&typeof n.value=="object")if(n.value.data&&n.value.data.estree&&e.evaluater){const s=n.value.data.estree.body[0];s.type,a=e.evaluater.evaluateExpression(s.expression)}else Sr(e,t.position);else a=n.value===null?!0:n.value;r[i]=a}return r}function W0(e,t){const r=[];let n=-1;const i=e.passKeys?new Map:Vo;for(;++n<t.children.length;){const a=t.children[n];let l;if(e.passKeys){const o=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(o){const u=i.get(o)||0;l=o+"-"+u,i.set(o,u+1)}}const s=Sl(e,a,l);s!==void 0&&r.push(s)}return r}function au(e,t,r){const n=yl(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=n.commaSeparated?ko(r):Lo(r)),n.property==="style"){let i=typeof r=="object"?r:lu(e,String(r));return e.stylePropertyNameCase==="css"&&(i=su(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&n.space?Io[n.property]||n.property:n.attribute,r]}}function lu(e,t){try{return $o(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const n=r,i=new Be("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=kl+"#cannot-parse-style-attribute",i}}function Tl(e,t,r){let n;if(!r)n={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let a=-1,l;for(;++a<i.length;){const s=Ti(i[a])?{type:"Identifier",name:i[a]}:{type:"Literal",value:i[a]};l=l?{type:"MemberExpression",object:l,property:s,computed:!!(a&&s.type==="Literal"),optional:!1}:s}n=l}else n=Ti(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(n.type==="Literal"){const i=n.value;return G0.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(n);Sr(e)}function Sr(e,t){const r=new Be("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=kl+"#cannot-handle-mdx-estrees-without-createevaluater",r}function su(e){const t={};let r;for(r in e)G0.call(e,r)&&(t[ou(r)]=e[r]);return t}function ou(e){let t=e.replace(Go,uu);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function uu(e){return"-"+e.toLowerCase()}const Rn={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"]},cu={};function X0(e,t){const r=cu,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return Cl(e,n,i)}function Cl(e,t,r){if(hu(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Li(e.children,t,r)}return Array.isArray(e)?Li(e,t,r):""}function Li(e,t,r){const n=[];let i=-1;for(;++i<e.length;)n[i]=Cl(e[i],t,r);return n.join("")}function hu(e){return!!(e&&typeof e=="object")}const Pi=document.createElement("i");function Y0(e){const t="&"+e+";";Pi.innerHTML=t;const r=Pi.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function _e(e,t,r,n){const i=e.length;let a=0,l;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,r=r>0?r:0,n.length<1e4)l=Array.from(n),l.unshift(t,r),e.splice(...l);else for(r&&e.splice(t,r);a<n.length;)l=n.slice(a,a+1e4),l.unshift(t,0),e.splice(...l),a+=1e4,t+=1e4}function Qe(e,t){return e.length>0?(_e(e,e.length,0,t),e):t}const Oi={}.hasOwnProperty;function zl(e){const t={};let r=-1;for(;++r<e.length;)mu(t,e[r]);return t}function mu(e,t){let r;for(r in t){const i=(Oi.call(e,r)?e[r]:void 0)||(e[r]={}),a=t[r];let l;if(a)for(l in a){Oi.call(i,l)||(i[l]=[]);const s=a[l];fu(i[l],Array.isArray(s)?s:s?[s]:[])}}}function fu(e,t){let r=-1;const n=[];for(;++r<t.length;)(t[r].add==="after"?e:n).push(t[r]);_e(e,0,0,n)}function Ml(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function nt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Le=It(/[A-Za-z]/),De=It(/[\dA-Za-z]/),pu=It(/[#-'*+\--9=?A-Z^-~]/);function tn(e){return e!==null&&(e<32||e===127)}const d0=It(/\d/),du=It(/[\dA-Fa-f]/),gu=It(/[!-/:-@[-`{-~]/);function K(e){return e!==null&&e<-2}function me(e){return e!==null&&(e<0||e===32)}function le(e){return e===-2||e===-1||e===32}const mn=It(new RegExp("\\p{P}|\\p{S}","u")),jt=It(/\s/);function It(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function ir(e){const t=[];let r=-1,n=0,i=0;for(;++r<e.length;){const a=e.charCodeAt(r);let l="";if(a===37&&De(e.charCodeAt(r+1))&&De(e.charCodeAt(r+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(l=String.fromCharCode(a));else if(a>55295&&a<57344){const s=e.charCodeAt(r+1);a<56320&&s>56319&&s<57344?(l=String.fromCharCode(a,s),i=1):l="�"}else l=String.fromCharCode(a);l&&(t.push(e.slice(n,r),encodeURIComponent(l)),n=r+i+1,l=""),i&&(r+=i,i=0)}return t.join("")+e.slice(n)}function ie(e,t,r,n){const i=n?n-1:Number.POSITIVE_INFINITY;let a=0;return l;function l(o){return le(o)?(e.enter(r),s(o)):t(o)}function s(o){return le(o)&&a++<i?(e.consume(o),s):(e.exit(r),t(o))}}const vu={tokenize:yu};function yu(e){const t=e.attempt(this.parser.constructs.contentInitial,n,i);let r;return t;function n(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),ie(e,t,"linePrefix")}function i(s){return e.enter("paragraph"),a(s)}function a(s){const o=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=o),r=o,l(s)}function l(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return K(s)?(e.consume(s),e.exit("chunkText"),a):(e.consume(s),l)}}const bu={tokenize:xu},qi={tokenize:wu};function xu(e){const t=this,r=[];let n=0,i,a,l;return s;function s(D){if(n<r.length){const q=r[n];return t.containerState=q[1],e.attempt(q[0].continuation,o,u)(D)}return u(D)}function o(D){if(n++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&C();const q=t.events.length;let O=q,M;for(;O--;)if(t.events[O][0]==="exit"&&t.events[O][1].type==="chunkFlow"){M=t.events[O][1].end;break}A(n);let _=q;for(;_<t.events.length;)t.events[_][1].end={...M},_++;return _e(t.events,O+1,0,t.events.slice(q)),t.events.length=_,u(D)}return s(D)}function u(D){if(n===r.length){if(!i)return d(D);if(i.currentConstruct&&i.currentConstruct.concrete)return y(D);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(qi,h,m)(D)}function h(D){return i&&C(),A(n),d(D)}function m(D){return t.parser.lazy[t.now().line]=n!==r.length,l=t.now().offset,y(D)}function d(D){return t.containerState={},e.attempt(qi,p,y)(D)}function p(D){return n++,r.push([t.currentConstruct,t.containerState]),d(D)}function y(D){if(D===null){i&&C(),A(0),e.consume(D);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:a}),w(D)}function w(D){if(D===null){z(e.exit("chunkFlow"),!0),A(0),e.consume(D);return}return K(D)?(e.consume(D),z(e.exit("chunkFlow")),n=0,t.interrupt=void 0,s):(e.consume(D),w)}function z(D,q){const O=t.sliceStream(D);if(q&&O.push(null),D.previous=a,a&&(a.next=D),a=D,i.defineSkip(D.start),i.write(O),t.parser.lazy[D.start.line]){let M=i.events.length;for(;M--;)if(i.events[M][1].start.offset<l&&(!i.events[M][1].end||i.events[M][1].end.offset>l))return;const _=t.events.length;let X=_,U,E;for(;X--;)if(t.events[X][0]==="exit"&&t.events[X][1].type==="chunkFlow"){if(U){E=t.events[X][1].end;break}U=!0}for(A(n),M=_;M<t.events.length;)t.events[M][1].end={...E},M++;_e(t.events,X+1,0,t.events.slice(_)),t.events.length=M}}function A(D){let q=r.length;for(;q-- >D;){const O=r[q];t.containerState=O[1],O[0].exit.call(t,e)}r.length=D}function C(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function wu(e,t,r){return ie(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Jt(e){if(e===null||me(e)||jt(e))return 1;if(mn(e))return 2}function fn(e,t,r){const n=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!n.includes(a)&&(t=a(t,r),n.push(a))}return t}const g0={name:"attention",resolveAll:ku,tokenize:Su};function ku(e,t){let r=-1,n,i,a,l,s,o,u,h;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(n=r;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[n][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;o=e[n][1].end.offset-e[n][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const m={...e[n][1].end},d={...e[r][1].start};Hi(m,-o),Hi(d,o),l={type:o>1?"strongSequence":"emphasisSequence",start:m,end:{...e[n][1].end}},s={type:o>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:d},a={type:o>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[r][1].start}},i={type:o>1?"strong":"emphasis",start:{...l.start},end:{...s.end}},e[n][1].end={...l.start},e[r][1].start={...s.end},u=[],e[n][1].end.offset-e[n][1].start.offset&&(u=Qe(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=Qe(u,[["enter",i,t],["enter",l,t],["exit",l,t],["enter",a,t]]),u=Qe(u,fn(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),u=Qe(u,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[r][1].end.offset-e[r][1].start.offset?(h=2,u=Qe(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):h=0,_e(e,n-1,r-n+3,u),r=n+u.length-h-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function Su(e,t){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,i=Jt(n);let a;return l;function l(o){return a=o,e.enter("attentionSequence"),s(o)}function s(o){if(o===a)return e.consume(o),s;const u=e.exit("attentionSequence"),h=Jt(o),m=!h||h===2&&i||r.includes(o),d=!i||i===2&&h||r.includes(n);return u._open=!!(a===42?m:m&&(i||!d)),u._close=!!(a===42?d:d&&(h||!m)),t(o)}}function Hi(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Au={name:"autolink",tokenize:Tu};function Tu(e,t,r){let n=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(p){return Le(p)?(e.consume(p),l):p===64?r(p):u(p)}function l(p){return p===43||p===45||p===46||De(p)?(n=1,s(p)):u(p)}function s(p){return p===58?(e.consume(p),n=0,o):(p===43||p===45||p===46||De(p))&&n++<32?(e.consume(p),s):(n=0,u(p))}function o(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||tn(p)?r(p):(e.consume(p),o)}function u(p){return p===64?(e.consume(p),h):pu(p)?(e.consume(p),u):r(p)}function h(p){return De(p)?m(p):r(p)}function m(p){return p===46?(e.consume(p),n=0,h):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):d(p)}function d(p){if((p===45||De(p))&&n++<63){const y=p===45?d:m;return e.consume(p),y}return r(p)}}const Mr={partial:!0,tokenize:Cu};function Cu(e,t,r){return n;function n(a){return le(a)?ie(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||K(a)?t(a):r(a)}}const El={continuation:{tokenize:Mu},exit:Eu,name:"blockQuote",tokenize:zu};function zu(e,t,r){const n=this;return i;function i(l){if(l===62){const s=n.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),a}return r(l)}function a(l){return le(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(l))}}function Mu(e,t,r){const n=this;return i;function i(l){return le(l)?ie(e,a,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):a(l)}function a(l){return e.attempt(El,t,r)(l)}}function Eu(e){e.exit("blockQuote")}const Dl={name:"characterEscape",tokenize:Du};function Du(e,t,r){return n;function n(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),i}function i(a){return gu(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(a)}}const Il={name:"characterReference",tokenize:Iu};function Iu(e,t,r){const n=this;let i=0,a,l;return s;function s(m){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(m),e.exit("characterReferenceMarker"),o}function o(m){return m===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(m),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),a=31,l=De,h(m))}function u(m){return m===88||m===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(m),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,l=du,h):(e.enter("characterReferenceValue"),a=7,l=d0,h(m))}function h(m){if(m===59&&i){const d=e.exit("characterReferenceValue");return l===De&&!Y0(n.sliceSerialize(d))?r(m):(e.enter("characterReferenceMarker"),e.consume(m),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return l(m)&&i++<a?(e.consume(m),h):r(m)}}const ji={partial:!0,tokenize:Fu},$i={concrete:!0,name:"codeFenced",tokenize:Bu};function Bu(e,t,r){const n=this,i={partial:!0,tokenize:O};let a=0,l=0,s;return o;function o(M){return u(M)}function u(M){const _=n.events[n.events.length-1];return a=_&&_[1].type==="linePrefix"?_[2].sliceSerialize(_[1],!0).length:0,s=M,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),h(M)}function h(M){return M===s?(l++,e.consume(M),h):l<3?r(M):(e.exit("codeFencedFenceSequence"),le(M)?ie(e,m,"whitespace")(M):m(M))}function m(M){return M===null||K(M)?(e.exit("codeFencedFence"),n.interrupt?t(M):e.check(ji,w,q)(M)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(M))}function d(M){return M===null||K(M)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),m(M)):le(M)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ie(e,p,"whitespace")(M)):M===96&&M===s?r(M):(e.consume(M),d)}function p(M){return M===null||K(M)?m(M):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),y(M))}function y(M){return M===null||K(M)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),m(M)):M===96&&M===s?r(M):(e.consume(M),y)}function w(M){return e.attempt(i,q,z)(M)}function z(M){return e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),A}function A(M){return a>0&&le(M)?ie(e,C,"linePrefix",a+1)(M):C(M)}function C(M){return M===null||K(M)?e.check(ji,w,q)(M):(e.enter("codeFlowValue"),D(M))}function D(M){return M===null||K(M)?(e.exit("codeFlowValue"),C(M)):(e.consume(M),D)}function q(M){return e.exit("codeFenced"),t(M)}function O(M,_,X){let U=0;return E;function E(H){return M.enter("lineEnding"),M.consume(H),M.exit("lineEnding"),V}function V(H){return M.enter("codeFencedFence"),le(H)?ie(M,$,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(H):$(H)}function $(H){return H===s?(M.enter("codeFencedFenceSequence"),se(H)):X(H)}function se(H){return H===s?(U++,M.consume(H),se):U>=l?(M.exit("codeFencedFenceSequence"),le(H)?ie(M,Y,"whitespace")(H):Y(H)):X(H)}function Y(H){return H===null||K(H)?(M.exit("codeFencedFence"),_(H)):X(H)}}}function Fu(e,t,r){const n=this;return i;function i(l){return l===null?r(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a)}function a(l){return n.parser.lazy[n.now().line]?r(l):t(l)}}const Nn={name:"codeIndented",tokenize:Nu},Ru={partial:!0,tokenize:Lu};function Nu(e,t,r){const n=this;return i;function i(u){return e.enter("codeIndented"),ie(e,a,"linePrefix",5)(u)}function a(u){const h=n.events[n.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?l(u):r(u)}function l(u){return u===null?o(u):K(u)?e.attempt(Ru,l,o)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||K(u)?(e.exit("codeFlowValue"),l(u)):(e.consume(u),s)}function o(u){return e.exit("codeIndented"),t(u)}}function Lu(e,t,r){const n=this;return i;function i(l){return n.parser.lazy[n.now().line]?r(l):K(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):ie(e,a,"linePrefix",5)(l)}function a(l){const s=n.events[n.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(l):K(l)?i(l):r(l)}}const Pu={name:"codeText",previous:qu,resolve:Ou,tokenize:Hu};function Ou(e){let t=e.length-4,r=3,n,i;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)i===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(i=n):(n===t||e[n][1].type==="lineEnding")&&(e[i][1].type="codeTextData",n!==i+2&&(e[i][1].end=e[n-1][1].end,e.splice(i+2,n-i-2),t-=n-i-2,n=i+2),i=void 0);return e}function qu(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Hu(e,t,r){let n=0,i,a;return l;function l(m){return e.enter("codeText"),e.enter("codeTextSequence"),s(m)}function s(m){return m===96?(e.consume(m),n++,s):(e.exit("codeTextSequence"),o(m))}function o(m){return m===null?r(m):m===32?(e.enter("space"),e.consume(m),e.exit("space"),o):m===96?(a=e.enter("codeTextSequence"),i=0,h(m)):K(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),o):(e.enter("codeTextData"),u(m))}function u(m){return m===null||m===32||m===96||K(m)?(e.exit("codeTextData"),o(m)):(e.consume(m),u)}function h(m){return m===96?(e.consume(m),i++,h):i===n?(e.exit("codeTextSequence"),e.exit("codeText"),t(m)):(a.type="codeTextData",u(m))}}class ju{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){const n=r??Number.POSITIVE_INFINITY;return n<this.left.length?this.left.slice(t,n):t>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(t,r,n){const i=r||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return n&&dr(this.left,n),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),dr(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),dr(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const r=this.left.splice(t,Number.POSITIVE_INFINITY);dr(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);dr(this.left,r.reverse())}}}function dr(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function Bl(e){const t={};let r=-1,n,i,a,l,s,o,u;const h=new ju(e);for(;++r<h.length;){for(;r in t;)r=t[r];if(n=h.get(r),r&&n[1].type==="chunkFlow"&&h.get(r-1)[1].type==="listItemPrefix"&&(o=n[1]._tokenizer.events,a=0,a<o.length&&o[a][1].type==="lineEndingBlank"&&(a+=2),a<o.length&&o[a][1].type==="content"))for(;++a<o.length&&o[a][1].type!=="content";)o[a][1].type==="chunkText"&&(o[a][1]._isInFirstContentOfListItem=!0,a++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,$u(h,r)),r=t[r],u=!0);else if(n[1]._container){for(a=r,i=void 0;a--;)if(l=h.get(a),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(i&&(h.get(i)[1].type="lineEndingBlank"),l[1].type="lineEnding",i=a);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;i&&(n[1].end={...h.get(i)[1].start},s=h.slice(i,r),s.unshift(n),h.splice(i,r-i+1,s))}}return _e(e,0,Number.POSITIVE_INFINITY,h.slice(0)),!u}function $u(e,t){const r=e.get(t)[1],n=e.get(t)[2];let i=t-1;const a=[];let l=r._tokenizer;l||(l=n.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const s=l.events,o=[],u={};let h,m,d=-1,p=r,y=0,w=0;const z=[w];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(h=n.sliceStream(p),p.next||h.push(null),m&&l.defineSkip(p.start),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(h),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),m=p,p=p.next}for(p=r;++d<s.length;)s[d][0]==="exit"&&s[d-1][0]==="enter"&&s[d][1].type===s[d-1][1].type&&s[d][1].start.line!==s[d][1].end.line&&(w=d+1,z.push(w),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(l.events=[],p?(p._tokenizer=void 0,p.previous=void 0):z.pop(),d=z.length;d--;){const A=s.slice(z[d],z[d+1]),C=a.pop();o.push([C,C+A.length-1]),e.splice(C,2,A)}for(o.reverse(),d=-1;++d<o.length;)u[y+o[d][0]]=y+o[d][1],y+=o[d][1]-o[d][0]-1;return u}const Uu={resolve:Gu,tokenize:_u},Vu={partial:!0,tokenize:Wu};function Gu(e){return Bl(e),e}function _u(e,t){let r;return n;function n(s){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),i(s)}function i(s){return s===null?a(s):K(s)?e.check(Vu,l,a)(s):(e.consume(s),i)}function a(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function l(s){return e.consume(s),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,i}}function Wu(e,t,r){const n=this;return i;function i(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),ie(e,a,"linePrefix")}function a(l){if(l===null||K(l))return r(l);const s=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(l):e.interrupt(n.parser.constructs.flow,r,t)(l)}}function Fl(e,t,r,n,i,a,l,s,o){const u=o||Number.POSITIVE_INFINITY;let h=0;return m;function m(A){return A===60?(e.enter(n),e.enter(i),e.enter(a),e.consume(A),e.exit(a),d):A===null||A===32||A===41||tn(A)?r(A):(e.enter(n),e.enter(l),e.enter(s),e.enter("chunkString",{contentType:"string"}),w(A))}function d(A){return A===62?(e.enter(a),e.consume(A),e.exit(a),e.exit(i),e.exit(n),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(A))}function p(A){return A===62?(e.exit("chunkString"),e.exit(s),d(A)):A===null||A===60||K(A)?r(A):(e.consume(A),A===92?y:p)}function y(A){return A===60||A===62||A===92?(e.consume(A),p):p(A)}function w(A){return!h&&(A===null||A===41||me(A))?(e.exit("chunkString"),e.exit(s),e.exit(l),e.exit(n),t(A)):h<u&&A===40?(e.consume(A),h++,w):A===41?(e.consume(A),h--,w):A===null||A===32||A===40||tn(A)?r(A):(e.consume(A),A===92?z:w)}function z(A){return A===40||A===41||A===92?(e.consume(A),w):w(A)}}function Rl(e,t,r,n,i,a){const l=this;let s=0,o;return u;function u(p){return e.enter(n),e.enter(i),e.consume(p),e.exit(i),e.enter(a),h}function h(p){return s>999||p===null||p===91||p===93&&!o||p===94&&!s&&"_hiddenFootnoteSupport"in l.parser.constructs?r(p):p===93?(e.exit(a),e.enter(i),e.consume(p),e.exit(i),e.exit(n),t):K(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),h):(e.enter("chunkString",{contentType:"string"}),m(p))}function m(p){return p===null||p===91||p===93||K(p)||s++>999?(e.exit("chunkString"),h(p)):(e.consume(p),o||(o=!le(p)),p===92?d:m)}function d(p){return p===91||p===92||p===93?(e.consume(p),s++,m):m(p)}}function Nl(e,t,r,n,i,a){let l;return s;function s(d){return d===34||d===39||d===40?(e.enter(n),e.enter(i),e.consume(d),e.exit(i),l=d===40?41:d,o):r(d)}function o(d){return d===l?(e.enter(i),e.consume(d),e.exit(i),e.exit(n),t):(e.enter(a),u(d))}function u(d){return d===l?(e.exit(a),o(l)):d===null?r(d):K(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),ie(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),h(d))}function h(d){return d===l||d===null||K(d)?(e.exit("chunkString"),u(d)):(e.consume(d),d===92?m:h)}function m(d){return d===l||d===92?(e.consume(d),h):h(d)}}function br(e,t){let r;return n;function n(i){return K(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n):le(i)?ie(e,n,r?"linePrefix":"lineSuffix")(i):t(i)}}const Xu={name:"definition",tokenize:Ku},Yu={partial:!0,tokenize:Zu};function Ku(e,t,r){const n=this;let i;return a;function a(p){return e.enter("definition"),l(p)}function l(p){return Rl.call(n,e,s,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function s(p){return i=nt(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),o):r(p)}function o(p){return me(p)?br(e,u)(p):u(p)}function u(p){return Fl(e,h,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function h(p){return e.attempt(Yu,m,m)(p)}function m(p){return le(p)?ie(e,d,"whitespace")(p):d(p)}function d(p){return p===null||K(p)?(e.exit("definition"),n.parser.defined.push(i),t(p)):r(p)}}function Zu(e,t,r){return n;function n(s){return me(s)?br(e,i)(s):r(s)}function i(s){return Nl(e,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return le(s)?ie(e,l,"whitespace")(s):l(s)}function l(s){return s===null||K(s)?t(s):r(s)}}const Qu={name:"hardBreakEscape",tokenize:Ju};function Ju(e,t,r){return n;function n(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return K(a)?(e.exit("hardBreakEscape"),t(a)):r(a)}}const e1={name:"headingAtx",resolve:t1,tokenize:r1};function t1(e,t){let r=e.length-2,n=3,i,a;return e[n][1].type==="whitespace"&&(n+=2),r-2>n&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&e[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(i={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},a={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},_e(e,n,r-n+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function r1(e,t,r){let n=0;return i;function i(h){return e.enter("atxHeading"),a(h)}function a(h){return e.enter("atxHeadingSequence"),l(h)}function l(h){return h===35&&n++<6?(e.consume(h),l):h===null||me(h)?(e.exit("atxHeadingSequence"),s(h)):r(h)}function s(h){return h===35?(e.enter("atxHeadingSequence"),o(h)):h===null||K(h)?(e.exit("atxHeading"),t(h)):le(h)?ie(e,s,"whitespace")(h):(e.enter("atxHeadingText"),u(h))}function o(h){return h===35?(e.consume(h),o):(e.exit("atxHeadingSequence"),s(h))}function u(h){return h===null||h===35||me(h)?(e.exit("atxHeadingText"),s(h)):(e.consume(h),u)}}const n1=["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"],Ui=["pre","script","style","textarea"],i1={concrete:!0,name:"htmlFlow",resolveTo:s1,tokenize:o1},a1={partial:!0,tokenize:c1},l1={partial:!0,tokenize:u1};function s1(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function o1(e,t,r){const n=this;let i,a,l,s,o;return u;function u(S){return h(S)}function h(S){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(S),m}function m(S){return S===33?(e.consume(S),d):S===47?(e.consume(S),a=!0,w):S===63?(e.consume(S),i=3,n.interrupt?t:k):Le(S)?(e.consume(S),l=String.fromCharCode(S),z):r(S)}function d(S){return S===45?(e.consume(S),i=2,p):S===91?(e.consume(S),i=5,s=0,y):Le(S)?(e.consume(S),i=4,n.interrupt?t:k):r(S)}function p(S){return S===45?(e.consume(S),n.interrupt?t:k):r(S)}function y(S){const Ee="CDATA[";return S===Ee.charCodeAt(s++)?(e.consume(S),s===Ee.length?n.interrupt?t:$:y):r(S)}function w(S){return Le(S)?(e.consume(S),l=String.fromCharCode(S),z):r(S)}function z(S){if(S===null||S===47||S===62||me(S)){const Ee=S===47,it=l.toLowerCase();return!Ee&&!a&&Ui.includes(it)?(i=1,n.interrupt?t(S):$(S)):n1.includes(l.toLowerCase())?(i=6,Ee?(e.consume(S),A):n.interrupt?t(S):$(S)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(S):a?C(S):D(S))}return S===45||De(S)?(e.consume(S),l+=String.fromCharCode(S),z):r(S)}function A(S){return S===62?(e.consume(S),n.interrupt?t:$):r(S)}function C(S){return le(S)?(e.consume(S),C):E(S)}function D(S){return S===47?(e.consume(S),E):S===58||S===95||Le(S)?(e.consume(S),q):le(S)?(e.consume(S),D):E(S)}function q(S){return S===45||S===46||S===58||S===95||De(S)?(e.consume(S),q):O(S)}function O(S){return S===61?(e.consume(S),M):le(S)?(e.consume(S),O):D(S)}function M(S){return S===null||S===60||S===61||S===62||S===96?r(S):S===34||S===39?(e.consume(S),o=S,_):le(S)?(e.consume(S),M):X(S)}function _(S){return S===o?(e.consume(S),o=null,U):S===null||K(S)?r(S):(e.consume(S),_)}function X(S){return S===null||S===34||S===39||S===47||S===60||S===61||S===62||S===96||me(S)?O(S):(e.consume(S),X)}function U(S){return S===47||S===62||le(S)?D(S):r(S)}function E(S){return S===62?(e.consume(S),V):r(S)}function V(S){return S===null||K(S)?$(S):le(S)?(e.consume(S),V):r(S)}function $(S){return S===45&&i===2?(e.consume(S),ae):S===60&&i===1?(e.consume(S),pe):S===62&&i===4?(e.consume(S),xe):S===63&&i===3?(e.consume(S),k):S===93&&i===5?(e.consume(S),$e):K(S)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(a1,Fe,se)(S)):S===null||K(S)?(e.exit("htmlFlowData"),se(S)):(e.consume(S),$)}function se(S){return e.check(l1,Y,Fe)(S)}function Y(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),H}function H(S){return S===null||K(S)?se(S):(e.enter("htmlFlowData"),$(S))}function ae(S){return S===45?(e.consume(S),k):$(S)}function pe(S){return S===47?(e.consume(S),l="",Me):$(S)}function Me(S){if(S===62){const Ee=l.toLowerCase();return Ui.includes(Ee)?(e.consume(S),xe):$(S)}return Le(S)&&l.length<8?(e.consume(S),l+=String.fromCharCode(S),Me):$(S)}function $e(S){return S===93?(e.consume(S),k):$(S)}function k(S){return S===62?(e.consume(S),xe):S===45&&i===2?(e.consume(S),k):$(S)}function xe(S){return S===null||K(S)?(e.exit("htmlFlowData"),Fe(S)):(e.consume(S),xe)}function Fe(S){return e.exit("htmlFlow"),t(S)}}function u1(e,t,r){const n=this;return i;function i(l){return K(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a):r(l)}function a(l){return n.parser.lazy[n.now().line]?r(l):t(l)}}function c1(e,t,r){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Mr,t,r)}}const h1={name:"htmlText",tokenize:m1};function m1(e,t,r){const n=this;let i,a,l;return s;function s(k){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(k),o}function o(k){return k===33?(e.consume(k),u):k===47?(e.consume(k),O):k===63?(e.consume(k),D):Le(k)?(e.consume(k),X):r(k)}function u(k){return k===45?(e.consume(k),h):k===91?(e.consume(k),a=0,y):Le(k)?(e.consume(k),C):r(k)}function h(k){return k===45?(e.consume(k),p):r(k)}function m(k){return k===null?r(k):k===45?(e.consume(k),d):K(k)?(l=m,pe(k)):(e.consume(k),m)}function d(k){return k===45?(e.consume(k),p):m(k)}function p(k){return k===62?ae(k):k===45?d(k):m(k)}function y(k){const xe="CDATA[";return k===xe.charCodeAt(a++)?(e.consume(k),a===xe.length?w:y):r(k)}function w(k){return k===null?r(k):k===93?(e.consume(k),z):K(k)?(l=w,pe(k)):(e.consume(k),w)}function z(k){return k===93?(e.consume(k),A):w(k)}function A(k){return k===62?ae(k):k===93?(e.consume(k),A):w(k)}function C(k){return k===null||k===62?ae(k):K(k)?(l=C,pe(k)):(e.consume(k),C)}function D(k){return k===null?r(k):k===63?(e.consume(k),q):K(k)?(l=D,pe(k)):(e.consume(k),D)}function q(k){return k===62?ae(k):D(k)}function O(k){return Le(k)?(e.consume(k),M):r(k)}function M(k){return k===45||De(k)?(e.consume(k),M):_(k)}function _(k){return K(k)?(l=_,pe(k)):le(k)?(e.consume(k),_):ae(k)}function X(k){return k===45||De(k)?(e.consume(k),X):k===47||k===62||me(k)?U(k):r(k)}function U(k){return k===47?(e.consume(k),ae):k===58||k===95||Le(k)?(e.consume(k),E):K(k)?(l=U,pe(k)):le(k)?(e.consume(k),U):ae(k)}function E(k){return k===45||k===46||k===58||k===95||De(k)?(e.consume(k),E):V(k)}function V(k){return k===61?(e.consume(k),$):K(k)?(l=V,pe(k)):le(k)?(e.consume(k),V):U(k)}function $(k){return k===null||k===60||k===61||k===62||k===96?r(k):k===34||k===39?(e.consume(k),i=k,se):K(k)?(l=$,pe(k)):le(k)?(e.consume(k),$):(e.consume(k),Y)}function se(k){return k===i?(e.consume(k),i=void 0,H):k===null?r(k):K(k)?(l=se,pe(k)):(e.consume(k),se)}function Y(k){return k===null||k===34||k===39||k===60||k===61||k===96?r(k):k===47||k===62||me(k)?U(k):(e.consume(k),Y)}function H(k){return k===47||k===62||me(k)?U(k):r(k)}function ae(k){return k===62?(e.consume(k),e.exit("htmlTextData"),e.exit("htmlText"),t):r(k)}function pe(k){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),Me}function Me(k){return le(k)?ie(e,$e,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):$e(k)}function $e(k){return e.enter("htmlTextData"),l(k)}}const K0={name:"labelEnd",resolveAll:g1,resolveTo:v1,tokenize:y1},f1={tokenize:b1},p1={tokenize:x1},d1={tokenize:w1};function g1(e){let t=-1;const r=[];for(;++t<e.length;){const n=e[t][1];if(r.push(e[t]),n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd"){const i=n.type==="labelImage"?4:2;n.type="data",t+=i}}return e.length!==r.length&&_e(e,0,e.length,r),e}function v1(e,t){let r=e.length,n=0,i,a,l,s;for(;r--;)if(i=e[r][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[r][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(l){if(e[r][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=r,i.type!=="labelLink")){n=2;break}}else i.type==="labelEnd"&&(l=r);const o={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[a][1].start},end:{...e[l][1].end}},h={type:"labelText",start:{...e[a+n+2][1].end},end:{...e[l-2][1].start}};return s=[["enter",o,t],["enter",u,t]],s=Qe(s,e.slice(a+1,a+n+3)),s=Qe(s,[["enter",h,t]]),s=Qe(s,fn(t.parser.constructs.insideSpan.null,e.slice(a+n+4,l-3),t)),s=Qe(s,[["exit",h,t],e[l-2],e[l-1],["exit",u,t]]),s=Qe(s,e.slice(l+1)),s=Qe(s,[["exit",o,t]]),_e(e,a,e.length,s),e}function y1(e,t,r){const n=this;let i=n.events.length,a,l;for(;i--;)if((n.events[i][1].type==="labelImage"||n.events[i][1].type==="labelLink")&&!n.events[i][1]._balanced){a=n.events[i][1];break}return s;function s(d){return a?a._inactive?m(d):(l=n.parser.defined.includes(nt(n.sliceSerialize({start:a.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),o):r(d)}function o(d){return d===40?e.attempt(f1,h,l?h:m)(d):d===91?e.attempt(p1,h,l?u:m)(d):l?h(d):m(d)}function u(d){return e.attempt(d1,h,m)(d)}function h(d){return t(d)}function m(d){return a._balanced=!0,r(d)}}function b1(e,t,r){return n;function n(m){return e.enter("resource"),e.enter("resourceMarker"),e.consume(m),e.exit("resourceMarker"),i}function i(m){return me(m)?br(e,a)(m):a(m)}function a(m){return m===41?h(m):Fl(e,l,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(m)}function l(m){return me(m)?br(e,o)(m):h(m)}function s(m){return r(m)}function o(m){return m===34||m===39||m===40?Nl(e,u,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(m):h(m)}function u(m){return me(m)?br(e,h)(m):h(m)}function h(m){return m===41?(e.enter("resourceMarker"),e.consume(m),e.exit("resourceMarker"),e.exit("resource"),t):r(m)}}function x1(e,t,r){const n=this;return i;function i(s){return Rl.call(n,e,a,l,"reference","referenceMarker","referenceString")(s)}function a(s){return n.parser.defined.includes(nt(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(s):r(s)}function l(s){return r(s)}}function w1(e,t,r){return n;function n(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),i}function i(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):r(a)}}const k1={name:"labelStartImage",resolveAll:K0.resolveAll,tokenize:S1};function S1(e,t,r){const n=this;return i;function i(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),a}function a(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),l):r(s)}function l(s){return s===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(s):t(s)}}const A1={name:"labelStartLink",resolveAll:K0.resolveAll,tokenize:T1};function T1(e,t,r){const n=this;return i;function i(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),a}function a(l){return l===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(l):t(l)}}const Ln={name:"lineEnding",tokenize:C1};function C1(e,t){return r;function r(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ie(e,t,"linePrefix")}}const Qr={name:"thematicBreak",tokenize:z1};function z1(e,t,r){let n=0,i;return a;function a(u){return e.enter("thematicBreak"),l(u)}function l(u){return i=u,s(u)}function s(u){return u===i?(e.enter("thematicBreakSequence"),o(u)):n>=3&&(u===null||K(u))?(e.exit("thematicBreak"),t(u)):r(u)}function o(u){return u===i?(e.consume(u),n++,o):(e.exit("thematicBreakSequence"),le(u)?ie(e,s,"whitespace")(u):s(u))}}const qe={continuation:{tokenize:I1},exit:F1,name:"list",tokenize:D1},M1={partial:!0,tokenize:R1},E1={partial:!0,tokenize:B1};function D1(e,t,r){const n=this,i=n.events[n.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,l=0;return s;function s(p){const y=n.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!n.containerState.marker||p===n.containerState.marker:d0(p)){if(n.containerState.type||(n.containerState.type=y,e.enter(y,{_container:!0})),y==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(Qr,r,u)(p):u(p);if(!n.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),o(p)}return r(p)}function o(p){return d0(p)&&++l<10?(e.consume(p),o):(!n.interrupt||l<2)&&(n.containerState.marker?p===n.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):r(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||p,e.check(Mr,n.interrupt?r:h,e.attempt(M1,d,m))}function h(p){return n.containerState.initialBlankLine=!0,a++,d(p)}function m(p){return le(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),d):r(p)}function d(p){return n.containerState.size=a+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function I1(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(Mr,i,a);function i(s){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,ie(e,t,"listItemIndent",n.containerState.size+1)(s)}function a(s){return n.containerState.furtherBlankLines||!le(s)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,l(s)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(E1,t,l)(s))}function l(s){return n.containerState._closeFlow=!0,n.interrupt=void 0,ie(e,e.attempt(qe,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function B1(e,t,r){const n=this;return ie(e,i,"listItemIndent",n.containerState.size+1);function i(a){const l=n.events[n.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===n.containerState.size?t(a):r(a)}}function F1(e){e.exit(this.containerState.type)}function R1(e,t,r){const n=this;return ie(e,i,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const l=n.events[n.events.length-1];return!le(a)&&l&&l[1].type==="listItemPrefixWhitespace"?t(a):r(a)}}const Vi={name:"setextUnderline",resolveTo:N1,tokenize:L1};function N1(e,t){let r=e.length,n,i,a;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){n=r;break}e[r][1].type==="paragraph"&&(i=r)}else e[r][1].type==="content"&&e.splice(r,1),!a&&e[r][1].type==="definition"&&(a=r);const l={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",l,t]),e.splice(a+1,0,["exit",e[n][1],t]),e[n][1].end={...e[a][1].end}):e[n][1]=l,e.push(["exit",l,t]),e}function L1(e,t,r){const n=this;let i;return a;function a(u){let h=n.events.length,m;for(;h--;)if(n.events[h][1].type!=="lineEnding"&&n.events[h][1].type!=="linePrefix"&&n.events[h][1].type!=="content"){m=n.events[h][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||m)?(e.enter("setextHeadingLine"),i=u,l(u)):r(u)}function l(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===i?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),le(u)?ie(e,o,"lineSuffix")(u):o(u))}function o(u){return u===null||K(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}const P1={tokenize:O1};function O1(e){const t=this,r=e.attempt(Mr,n,e.attempt(this.parser.constructs.flowInitial,i,ie(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Uu,i)),"linePrefix")));return r;function n(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const q1={resolveAll:Pl()},H1=Ll("string"),j1=Ll("text");function Ll(e){return{resolveAll:Pl(e==="text"?$1:void 0),tokenize:t};function t(r){const n=this,i=this.parser.constructs[e],a=r.attempt(i,l,s);return l;function l(h){return u(h)?a(h):s(h)}function s(h){if(h===null){r.consume(h);return}return r.enter("data"),r.consume(h),o}function o(h){return u(h)?(r.exit("data"),a(h)):(r.consume(h),o)}function u(h){if(h===null)return!0;const m=i[h];let d=-1;if(m)for(;++d<m.length;){const p=m[d];if(!p.previous||p.previous.call(n,n.previous))return!0}return!1}}}function Pl(e){return t;function t(r,n){let i=-1,a;for(;++i<=r.length;)a===void 0?r[i]&&r[i][1].type==="data"&&(a=i,i++):(!r[i]||r[i][1].type!=="data")&&(i!==a+2&&(r[a][1].end=r[i-1][1].end,r.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(r,n):r}}function $1(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const n=e[r-1][1],i=t.sliceStream(n);let a=i.length,l=-1,s=0,o;for(;a--;){const u=i[a];if(typeof u=="string"){for(l=u.length;u.charCodeAt(l-1)===32;)s++,l--;if(l)break;l=-1}else if(u===-2)o=!0,s++;else if(u!==-1){a++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(s=0),s){const u={type:r===e.length||o||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?l:n.start._bufferIndex+l,_index:n.start._index+a,line:n.end.line,column:n.end.column-s,offset:n.end.offset-s},end:{...n.end}};n.end={...u.start},n.start.offset===n.end.offset?Object.assign(n,u):(e.splice(r,0,["enter",u,t],["exit",u,t]),r+=2)}r++}return e}const U1={42:qe,43:qe,45:qe,48:qe,49:qe,50:qe,51:qe,52:qe,53:qe,54:qe,55:qe,56:qe,57:qe,62:El},V1={91:Xu},G1={[-2]:Nn,[-1]:Nn,32:Nn},_1={35:e1,42:Qr,45:[Vi,Qr],60:i1,61:Vi,95:Qr,96:$i,126:$i},W1={38:Il,92:Dl},X1={[-5]:Ln,[-4]:Ln,[-3]:Ln,33:k1,38:Il,42:g0,60:[Au,h1],91:A1,92:[Qu,Dl],93:K0,95:g0,96:Pu},Y1={null:[g0,q1]},K1={null:[42,95]},Z1={null:[]},Q1=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:K1,contentInitial:V1,disable:Z1,document:U1,flow:_1,flowInitial:G1,insideSpan:Y1,string:W1,text:X1},Symbol.toStringTag,{value:"Module"}));function J1(e,t,r){let n={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const i={},a=[];let l=[],s=[];const o={attempt:_(O),check:_(M),consume:C,enter:D,exit:q,interrupt:_(M,{interrupt:!0})},u={code:null,containerState:{},defineSkip:w,events:[],now:y,parser:e,previous:null,sliceSerialize:d,sliceStream:p,write:m};let h=t.tokenize.call(u,o);return t.resolveAll&&a.push(t),u;function m(V){return l=Qe(l,V),z(),l[l.length-1]!==null?[]:(X(t,0),u.events=fn(a,u.events,u),u.events)}function d(V,$){return tc(p(V),$)}function p(V){return ec(l,V)}function y(){const{_bufferIndex:V,_index:$,line:se,column:Y,offset:H}=n;return{_bufferIndex:V,_index:$,line:se,column:Y,offset:H}}function w(V){i[V.line]=V.column,E()}function z(){let V;for(;n._index<l.length;){const $=l[n._index];if(typeof $=="string")for(V=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===V&&n._bufferIndex<$.length;)A($.charCodeAt(n._bufferIndex));else A($)}}function A(V){h=h(V)}function C(V){K(V)?(n.line++,n.column=1,n.offset+=V===-3?2:1,E()):V!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===l[n._index].length&&(n._bufferIndex=-1,n._index++)),u.previous=V}function D(V,$){const se=$||{};return se.type=V,se.start=y(),u.events.push(["enter",se,u]),s.push(se),se}function q(V){const $=s.pop();return $.end=y(),u.events.push(["exit",$,u]),$}function O(V,$){X(V,$.from)}function M(V,$){$.restore()}function _(V,$){return se;function se(Y,H,ae){let pe,Me,$e,k;return Array.isArray(Y)?Fe(Y):"tokenize"in Y?Fe([Y]):xe(Y);function xe(Te){return Ze;function Ze(tt){const Ue=tt!==null&&Te[tt],mt=tt!==null&&Te.null,Ft=[...Array.isArray(Ue)?Ue:Ue?[Ue]:[],...Array.isArray(mt)?mt:mt?[mt]:[]];return Fe(Ft)(tt)}}function Fe(Te){return pe=Te,Me=0,Te.length===0?ae:S(Te[Me])}function S(Te){return Ze;function Ze(tt){return k=U(),$e=Te,Te.partial||(u.currentConstruct=Te),Te.name&&u.parser.constructs.disable.null.includes(Te.name)?it():Te.tokenize.call($?Object.assign(Object.create(u),$):u,o,Ee,it)(tt)}}function Ee(Te){return V($e,k),H}function it(Te){return k.restore(),++Me<pe.length?S(pe[Me]):ae}}}function X(V,$){V.resolveAll&&!a.includes(V)&&a.push(V),V.resolve&&_e(u.events,$,u.events.length-$,V.resolve(u.events.slice($),u)),V.resolveTo&&(u.events=V.resolveTo(u.events,u))}function U(){const V=y(),$=u.previous,se=u.currentConstruct,Y=u.events.length,H=Array.from(s);return{from:Y,restore:ae};function ae(){n=V,u.previous=$,u.currentConstruct=se,u.events.length=Y,s=H,E()}}function E(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}function ec(e,t){const r=t.start._index,n=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let l;if(r===i)l=[e[r].slice(n,a)];else{if(l=e.slice(r,i),n>-1){const s=l[0];typeof s=="string"?l[0]=s.slice(n):l.shift()}a>0&&l.push(e[i].slice(0,a))}return l}function tc(e,t){let r=-1;const n=[];let i;for(;++r<e.length;){const a=e[r];let l;if(typeof a=="string")l=a;else switch(a){case-5:{l="\r";break}case-4:{l=`
3
3
  `;break}case-3:{l=`\r
4
4
  `;break}case-2:{l=t?" ":" ";break}case-1:{if(!t&&i)continue;l=" ";break}default:l=String.fromCharCode(a)}i=a===-2,n.push(l)}return n.join("")}function rc(e){const n={constructs:zl([Q1,...(e||{}).extensions||[]]),content:i(vu),defined:[],document:i(bu),flow:i(P1),lazy:{},string:i(H1),text:i(j1)};return n;function i(a){return l;function l(s){return J1(n,a,s)}}}function nc(e){for(;!Bl(e););return e}const Gi=/[\0\t\n\r]/g;function ic(){let e=1,t="",r=!0,n;return i;function i(a,l,s){const o=[];let u,h,m,d,p;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(l||void 0).decode(a)),m=0,t="",r&&(a.charCodeAt(0)===65279&&m++,r=void 0);m<a.length;){if(Gi.lastIndex=m,u=Gi.exec(a),d=u&&u.index!==void 0?u.index:a.length,p=a.charCodeAt(d),!u){t=a.slice(m);break}if(p===10&&m===d&&n)o.push(-3),n=void 0;else switch(n&&(o.push(-5),n=void 0),m<d&&(o.push(a.slice(m,d)),e+=d-m),p){case 0:{o.push(65533),e++;break}case 9:{for(h=Math.ceil(e/4)*4,o.push(-2);e++<h;)o.push(-1);break}case 10:{o.push(-4),e=1;break}default:n=!0,e=1}m=d+1}return s&&(n&&o.push(-5),t&&o.push(t),o.push(null)),o}}const ac=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function lc(e){return e.replace(ac,sc)}function sc(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const i=r.charCodeAt(1),a=i===120||i===88;return Ml(r.slice(a?2:1),a?16:10)}return Y0(r)||e}const Ol={}.hasOwnProperty;function oc(e,t,r){return t&&typeof t=="object"&&(r=t,t=void 0),uc(r)(nc(rc(r).document().write(ic()(e,t,!0))))}function uc(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(ur),autolinkProtocol:U,autolinkEmail:U,atxHeading:a(Rr),blockQuote:a(mt),characterEscape:U,characterReference:U,codeFenced:a(Ft),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:a(Ft,l),codeText:a(Fr,l),codeTextData:U,data:U,codeFlowValue:U,definition:a(Gt),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:a(_t),hardBreakEscape:a(Nr),hardBreakTrailing:a(Nr),htmlFlow:a(Lr,l),htmlFlowData:U,htmlText:a(Lr,l),htmlTextData:U,image:a(Pr),label:l,link:a(ur),listItem:a(En),listItemValue:d,listOrdered:a(Rt,m),listUnordered:a(Rt),paragraph:a(Dn),reference:S,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:a(Rr),strong:a(cr),thematicBreak:a(qr)},exit:{atxHeading:o(),atxHeadingSequence:O,autolink:o(),autolinkEmail:Ue,autolinkProtocol:tt,blockQuote:o(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:it,characterReferenceMarkerNumeric:it,characterReferenceValue:Te,characterReference:Ze,codeFenced:o(z),codeFencedFence:w,codeFencedFenceInfo:p,codeFencedFenceMeta:y,codeFlowValue:E,codeIndented:o(A),codeText:o(H),codeTextData:E,data:E,definition:o(),definitionDestinationString:q,definitionLabelString:C,definitionTitleString:D,emphasis:o(),hardBreakEscape:o($),hardBreakTrailing:o($),htmlFlow:o(se),htmlFlowData:E,htmlText:o(Y),htmlTextData:E,image:o(pe),label:$e,labelText:Me,lineEnding:V,link:o(ae),listItem:o(),listOrdered:o(),listUnordered:o(),paragraph:o(),referenceString:Ee,resourceDestinationString:k,resourceTitleString:xe,resource:Fe,setextHeading:o(X),setextHeadingLineSequence:_,setextHeadingText:M,strong:o(),thematicBreak:o()}};ql(t,(e||{}).mdastExtensions||[]);const r={};return n;function n(I){let j={type:"root",children:[]};const Q={stack:[j],tokenStack:[],config:t,enter:s,exit:u,buffer:l,resume:h,data:r},ne=[];let ce=-1;for(;++ce<I.length;)if(I[ce][1].type==="listOrdered"||I[ce][1].type==="listUnordered")if(I[ce][0]==="enter")ne.push(ce);else{const rt=ne.pop();ce=i(I,rt,ce)}for(ce=-1;++ce<I.length;){const rt=t[I[ce][0]];Ol.call(rt,I[ce][1].type)&&rt[I[ce][1].type].call(Object.assign({sliceSerialize:I[ce][2].sliceSerialize},Q),I[ce][1])}if(Q.tokenStack.length>0){const rt=Q.tokenStack[Q.tokenStack.length-1];(rt[1]||_i).call(Q,void 0,rt[0])}for(j.position={start:St(I.length>0?I[0][1].start:{line:1,column:1,offset:0}),end:St(I.length>0?I[I.length-2][1].end:{line:1,column:1,offset:0})},ce=-1;++ce<t.transforms.length;)j=t.transforms[ce](j)||j;return j}function i(I,j,Q){let ne=j-1,ce=-1,rt=!1,Nt,ft,hr,mr;for(;++ne<=Q;){const Ve=I[ne];switch(Ve[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ve[0]==="enter"?ce++:ce--,mr=void 0;break}case"lineEndingBlank":{Ve[0]==="enter"&&(Nt&&!mr&&!ce&&!hr&&(hr=ne),mr=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:mr=void 0}if(!ce&&Ve[0]==="enter"&&Ve[1].type==="listItemPrefix"||ce===-1&&Ve[0]==="exit"&&(Ve[1].type==="listUnordered"||Ve[1].type==="listOrdered")){if(Nt){let Wt=ne;for(ft=void 0;Wt--;){const pt=I[Wt];if(pt[1].type==="lineEnding"||pt[1].type==="lineEndingBlank"){if(pt[0]==="exit")continue;ft&&(I[ft][1].type="lineEndingBlank",rt=!0),pt[1].type="lineEnding",ft=Wt}else if(!(pt[1].type==="linePrefix"||pt[1].type==="blockQuotePrefix"||pt[1].type==="blockQuotePrefixWhitespace"||pt[1].type==="blockQuoteMarker"||pt[1].type==="listItemIndent"))break}hr&&(!ft||hr<ft)&&(Nt._spread=!0),Nt.end=Object.assign({},ft?I[ft][1].start:Ve[1].end),I.splice(ft||ne,0,["exit",Nt,Ve[2]]),ne++,Q++}if(Ve[1].type==="listItemPrefix"){const Wt={type:"listItem",_spread:!1,start:Object.assign({},Ve[1].start),end:void 0};Nt=Wt,I.splice(ne,0,["enter",Wt,Ve[2]]),ne++,Q++,hr=void 0,mr=!0}}}return I[j][1]._spread=rt,Q}function a(I,j){return Q;function Q(ne){s.call(this,I(ne),ne),j&&j.call(this,ne)}}function l(){this.stack.push({type:"fragment",children:[]})}function s(I,j,Q){this.stack[this.stack.length-1].children.push(I),this.stack.push(I),this.tokenStack.push([j,Q||void 0]),I.position={start:St(j.start),end:void 0}}function o(I){return j;function j(Q){I&&I.call(this,Q),u.call(this,Q)}}function u(I,j){const Q=this.stack.pop(),ne=this.tokenStack.pop();if(ne)ne[0].type!==I.type&&(j?j.call(this,I,ne[0]):(ne[1]||_i).call(this,I,ne[0]));else throw new Error("Cannot close `"+I.type+"` ("+yr({start:I.start,end:I.end})+"): it’s not open");Q.position.end=St(I.end)}function h(){return X0(this.stack.pop())}function m(){this.data.expectingFirstListItemValue=!0}function d(I){if(this.data.expectingFirstListItemValue){const j=this.stack[this.stack.length-2];j.start=Number.parseInt(this.sliceSerialize(I),10),this.data.expectingFirstListItemValue=void 0}}function p(){const I=this.resume(),j=this.stack[this.stack.length-1];j.lang=I}function y(){const I=this.resume(),j=this.stack[this.stack.length-1];j.meta=I}function w(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function z(){const I=this.resume(),j=this.stack[this.stack.length-1];j.value=I.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function A(){const I=this.resume(),j=this.stack[this.stack.length-1];j.value=I.replace(/(\r?\n|\r)$/g,"")}function C(I){const j=this.resume(),Q=this.stack[this.stack.length-1];Q.label=j,Q.identifier=nt(this.sliceSerialize(I)).toLowerCase()}function D(){const I=this.resume(),j=this.stack[this.stack.length-1];j.title=I}function q(){const I=this.resume(),j=this.stack[this.stack.length-1];j.url=I}function O(I){const j=this.stack[this.stack.length-1];if(!j.depth){const Q=this.sliceSerialize(I).length;j.depth=Q}}function M(){this.data.setextHeadingSlurpLineEnding=!0}function _(I){const j=this.stack[this.stack.length-1];j.depth=this.sliceSerialize(I).codePointAt(0)===61?1:2}function X(){this.data.setextHeadingSlurpLineEnding=void 0}function U(I){const Q=this.stack[this.stack.length-1].children;let ne=Q[Q.length-1];(!ne||ne.type!=="text")&&(ne=Or(),ne.position={start:St(I.start),end:void 0},Q.push(ne)),this.stack.push(ne)}function E(I){const j=this.stack.pop();j.value+=this.sliceSerialize(I),j.position.end=St(I.end)}function V(I){const j=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Q=j.children[j.children.length-1];Q.position.end=St(I.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(j.type)&&(U.call(this,I),E.call(this,I))}function $(){this.data.atHardBreak=!0}function se(){const I=this.resume(),j=this.stack[this.stack.length-1];j.value=I}function Y(){const I=this.resume(),j=this.stack[this.stack.length-1];j.value=I}function H(){const I=this.resume(),j=this.stack[this.stack.length-1];j.value=I}function ae(){const I=this.stack[this.stack.length-1];if(this.data.inReference){const j=this.data.referenceType||"shortcut";I.type+="Reference",I.referenceType=j,delete I.url,delete I.title}else delete I.identifier,delete I.label;this.data.referenceType=void 0}function pe(){const I=this.stack[this.stack.length-1];if(this.data.inReference){const j=this.data.referenceType||"shortcut";I.type+="Reference",I.referenceType=j,delete I.url,delete I.title}else delete I.identifier,delete I.label;this.data.referenceType=void 0}function Me(I){const j=this.sliceSerialize(I),Q=this.stack[this.stack.length-2];Q.label=lc(j),Q.identifier=nt(j).toLowerCase()}function $e(){const I=this.stack[this.stack.length-1],j=this.resume(),Q=this.stack[this.stack.length-1];if(this.data.inReference=!0,Q.type==="link"){const ne=I.children;Q.children=ne}else Q.alt=j}function k(){const I=this.resume(),j=this.stack[this.stack.length-1];j.url=I}function xe(){const I=this.resume(),j=this.stack[this.stack.length-1];j.title=I}function Fe(){this.data.inReference=void 0}function S(){this.data.referenceType="collapsed"}function Ee(I){const j=this.resume(),Q=this.stack[this.stack.length-1];Q.label=j,Q.identifier=nt(this.sliceSerialize(I)).toLowerCase(),this.data.referenceType="full"}function it(I){this.data.characterReferenceType=I.type}function Te(I){const j=this.sliceSerialize(I),Q=this.data.characterReferenceType;let ne;Q?(ne=Ml(j,Q==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ne=Y0(j);const ce=this.stack[this.stack.length-1];ce.value+=ne}function Ze(I){const j=this.stack.pop();j.position.end=St(I.end)}function tt(I){E.call(this,I);const j=this.stack[this.stack.length-1];j.url=this.sliceSerialize(I)}function Ue(I){E.call(this,I);const j=this.stack[this.stack.length-1];j.url="mailto:"+this.sliceSerialize(I)}function mt(){return{type:"blockquote",children:[]}}function Ft(){return{type:"code",lang:null,meta:null,value:""}}function Fr(){return{type:"inlineCode",value:""}}function Gt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function _t(){return{type:"emphasis",children:[]}}function Rr(){return{type:"heading",depth:0,children:[]}}function Nr(){return{type:"break"}}function Lr(){return{type:"html",value:""}}function Pr(){return{type:"image",title:null,url:"",alt:null}}function ur(){return{type:"link",title:null,url:"",children:[]}}function Rt(I){return{type:"list",ordered:I.type==="listOrdered",start:null,spread:I._spread,children:[]}}function En(I){return{type:"listItem",spread:I._spread,checked:null,children:[]}}function Dn(){return{type:"paragraph",children:[]}}function cr(){return{type:"strong",children:[]}}function Or(){return{type:"text",value:""}}function qr(){return{type:"thematicBreak"}}}function St(e){return{line:e.line,column:e.column,offset:e.offset}}function ql(e,t){let r=-1;for(;++r<t.length;){const n=t[r];Array.isArray(n)?ql(e,n):cc(e,n)}}function cc(e,t){let r;for(r in t)if(Ol.call(t,r))switch(r){case"canContainEols":{const n=t[r];n&&e[r].push(...n);break}case"transforms":{const n=t[r];n&&e[r].push(...n);break}case"enter":case"exit":{const n=t[r];n&&Object.assign(e[r],n);break}}}function _i(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+yr({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+yr({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+yr({start:t.start,end:t.end})+") is still open")}function hc(e){const t=this;t.parser=r;function r(n){return oc(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function mc(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function fc(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
@@ -57,4 +57,4 @@ Error generating stack: `+a.message+`
57
57
  * @license MIT
58
58
  */var ih="popstate";function fh(f){return typeof f=="object"&&f!=null&&"pathname"in f&&"search"in f&&"hash"in f&&"state"in f&&"key"in f}function mv(f={}){function o(c,d){var v;let y=(v=d.state)==null?void 0:v.masked,{pathname:E,search:O,hash:p}=y||c.location;return Bc("",{pathname:E,search:O,hash:p},d.state&&d.state.usr||null,d.state&&d.state.key||"default",y?{pathname:c.location.pathname,search:c.location.search,hash:c.location.hash}:void 0)}function s(c,d){return typeof d=="string"?d:Cu(d)}return vv(o,s,null,f)}function Rt(f,o){if(f===!1||f===null||typeof f>"u")throw new Error(o)}function _e(f,o){if(!f){typeof console<"u"&&console.warn(o);try{throw new Error(o)}catch{}}}function yv(){return Math.random().toString(36).substring(2,10)}function ch(f,o){return{usr:f.state,key:f.key,idx:o,masked:f.mask?{pathname:f.pathname,search:f.search,hash:f.hash}:void 0}}function Bc(f,o,s=null,c,d){return{pathname:typeof f=="string"?f:f.pathname,search:"",hash:"",...typeof o=="string"?Na(o):o,state:s,key:o&&o.key||c||yv(),mask:d}}function Cu({pathname:f="/",search:o="",hash:s=""}){return o&&o!=="?"&&(f+=o.charAt(0)==="?"?o:"?"+o),s&&s!=="#"&&(f+=s.charAt(0)==="#"?s:"#"+s),f}function Na(f){let o={};if(f){let s=f.indexOf("#");s>=0&&(o.hash=f.substring(s),f=f.substring(0,s));let c=f.indexOf("?");c>=0&&(o.search=f.substring(c),f=f.substring(0,c)),f&&(o.pathname=f)}return o}function vv(f,o,s,c={}){let{window:d=document.defaultView,v5Compat:y=!1}=c,E=d.history,O="POP",p=null,v=U();v==null&&(v=0,E.replaceState({...E.state,idx:v},""));function U(){return(E.state||{idx:null}).idx}function A(){O="POP";let G=U(),q=G==null?null:G-v;v=G,p&&p({action:O,location:j.location,delta:q})}function x(G,q){O="PUSH";let F=fh(G)?G:Bc(j.location,G,q);v=U()+1;let w=ch(F,v),mt=j.createHref(F.mask||F);try{E.pushState(w,"",mt)}catch(st){if(st instanceof DOMException&&st.name==="DataCloneError")throw st;d.location.assign(mt)}y&&p&&p({action:O,location:j.location,delta:1})}function K(G,q){O="REPLACE";let F=fh(G)?G:Bc(j.location,G,q);v=U();let w=ch(F,v),mt=j.createHref(F.mask||F);E.replaceState(w,"",mt),y&&p&&p({action:O,location:j.location,delta:0})}function V(G){return gv(d,G)}let j={get action(){return O},get location(){return f(d,E)},listen(G){if(p)throw new Error("A history only accepts one active listener");return d.addEventListener(ih,A),p=G,()=>{d.removeEventListener(ih,A),p=null}},createHref(G){return o(d,G)},createURL:V,encodeLocation(G){let q=V(G);return{pathname:q.pathname,search:q.search,hash:q.hash}},push:x,replace:K,go(G){return E.go(G)}};return j}function gv(f,o,s=!1){let c="http://localhost";f&&(c=f.location.origin!=="null"?f.location.origin:f.location.href),Rt(c,"No window.location.(origin|href) available to create URL");let d=typeof o=="string"?o:Cu(o);return d=d.replace(/ $/,"%20"),!s&&d.startsWith("//")&&(d=c+d),new URL(d,c)}function yh(f,o,s="/"){return Sv(f,o,s,!1)}function Sv(f,o,s,c,d){let y=typeof o=="string"?Na(o):o,E=al(y.pathname||"/",s);if(E==null)return null;let O=pv(f),p=null,v=Cv(E);for(let U=0;p==null&&U<O.length;++U)p=Dv(O[U],v,c);return p}function pv(f){let o=vh(f);return bv(o),o}function vh(f,o=[],s=[],c="",d=!1){let y=(E,O,p=d,v)=>{let U={relativePath:v===void 0?E.path||"":v,caseSensitive:E.caseSensitive===!0,childrenIndex:O,route:E};if(U.relativePath.startsWith("/")){if(!U.relativePath.startsWith(c)&&p)return;Rt(U.relativePath.startsWith(c),`Absolute route path "${U.relativePath}" nested under path "${c}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),U.relativePath=U.relativePath.slice(c.length)}let A=Ce([c,U.relativePath]),x=s.concat(U);E.children&&E.children.length>0&&(Rt(E.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${A}".`),vh(E.children,o,x,A,p)),!(E.path==null&&!E.index)&&o.push({path:A,score:Ov(A,E.index),routesMeta:x})};return f.forEach((E,O)=>{var p;if(E.path===""||!((p=E.path)!=null&&p.includes("?")))y(E,O);else for(let v of gh(E.path))y(E,O,!0,v)}),o}function gh(f){let o=f.split("/");if(o.length===0)return[];let[s,...c]=o,d=s.endsWith("?"),y=s.replace(/\?$/,"");if(c.length===0)return d?[y,""]:[y];let E=gh(c.join("/")),O=[];return O.push(...E.map(p=>p===""?y:[y,p].join("/"))),d&&O.push(...E),O.map(p=>f.startsWith("/")&&p===""?"/":p)}function bv(f){f.sort((o,s)=>o.score!==s.score?s.score-o.score:Mv(o.routesMeta.map(c=>c.childrenIndex),s.routesMeta.map(c=>c.childrenIndex)))}var Ev=/^:[\w-]+$/,Tv=3,zv=2,Av=1,Rv=10,_v=-2,rh=f=>f==="*";function Ov(f,o){let s=f.split("/"),c=s.length;return s.some(rh)&&(c+=_v),o&&(c+=zv),s.filter(d=>!rh(d)).reduce((d,y)=>d+(Ev.test(y)?Tv:y===""?Av:Rv),c)}function Mv(f,o){return f.length===o.length&&f.slice(0,-1).every((c,d)=>c===o[d])?f[f.length-1]-o[o.length-1]:0}function Dv(f,o,s=!1){let{routesMeta:c}=f,d={},y="/",E=[];for(let O=0;O<c.length;++O){let p=c[O],v=O===c.length-1,U=y==="/"?o:o.slice(y.length)||"/",A=li({path:p.relativePath,caseSensitive:p.caseSensitive,end:v},U),x=p.route;if(!A&&v&&s&&!c[c.length-1].route.index&&(A=li({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},U)),!A)return null;Object.assign(d,A.params),E.push({params:d,pathname:Ce([y,A.pathname]),pathnameBase:Bv(Ce([y,A.pathnameBase])),route:x}),A.pathnameBase!=="/"&&(y=Ce([y,A.pathnameBase]))}return E}function li(f,o){typeof f=="string"&&(f={path:f,caseSensitive:!1,end:!0});let[s,c]=Uv(f.path,f.caseSensitive,f.end),d=o.match(s);if(!d)return null;let y=d[0],E=y.replace(/(.)\/+$/,"$1"),O=d.slice(1);return{params:c.reduce((v,{paramName:U,isOptional:A},x)=>{if(U==="*"){let V=O[x]||"";E=y.slice(0,y.length-V.length).replace(/(.)\/+$/,"$1")}const K=O[x];return A&&!K?v[U]=void 0:v[U]=(K||"").replace(/%2F/g,"/"),v},{}),pathname:y,pathnameBase:E,pattern:f}}function Uv(f,o=!1,s=!0){_e(f==="*"||!f.endsWith("*")||f.endsWith("/*"),`Route path "${f}" will be treated as if it were "${f.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${f.replace(/\*$/,"/*")}".`);let c=[],d="^"+f.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(E,O,p,v,U)=>{if(c.push({paramName:O,isOptional:p!=null}),p){let A=U.charAt(v+E.length);return A&&A!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return f.endsWith("*")?(c.push({paramName:"*"}),d+=f==="*"||f==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?d+="\\/*$":f!==""&&f!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,o?void 0:"i"),c]}function Cv(f){try{return f.split("/").map(o=>decodeURIComponent(o).replace(/\//g,"%2F")).join("/")}catch(o){return _e(!1,`The URL path "${f}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${o}).`),f}}function al(f,o){if(o==="/")return f;if(!f.toLowerCase().startsWith(o.toLowerCase()))return null;let s=o.endsWith("/")?o.length-1:o.length,c=f.charAt(s);return c&&c!=="/"?null:f.slice(s)||"/"}var Nv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Hv(f,o="/"){let{pathname:s,search:c="",hash:d=""}=typeof f=="string"?Na(f):f,y;return s?(s=Sh(s),s.startsWith("/")?y=oh(s.substring(1),"/"):y=oh(s,o)):y=o,{pathname:y,search:qv(c),hash:Yv(d)}}function oh(f,o){let s=ai(o).split("/");return f.split("/").forEach(d=>{d===".."?s.length>1&&s.pop():d!=="."&&s.push(d)}),s.length>1?s.join("/"):"/"}function Nc(f,o,s,c){return`Cannot include a '${f}' character in a manually specified \`to.${o}\` field [${JSON.stringify(c)}]. Please separate it out to the \`to.${s}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function xv(f){return f.filter((o,s)=>s===0||o.route.path&&o.route.path.length>0)}function jc(f){let o=xv(f);return o.map((s,c)=>c===o.length-1?s.pathname:s.pathnameBase)}function ui(f,o,s,c=!1){let d;typeof f=="string"?d=Na(f):(d={...f},Rt(!d.pathname||!d.pathname.includes("?"),Nc("?","pathname","search",d)),Rt(!d.pathname||!d.pathname.includes("#"),Nc("#","pathname","hash",d)),Rt(!d.search||!d.search.includes("#"),Nc("#","search","hash",d)));let y=f===""||d.pathname==="",E=y?"/":d.pathname,O;if(E==null)O=s;else{let A=o.length-1;if(!c&&E.startsWith("..")){let x=E.split("/");for(;x[0]==="..";)x.shift(),A-=1;d.pathname=x.join("/")}O=A>=0?o[A]:"/"}let p=Hv(d,O),v=E&&E!=="/"&&E.endsWith("/"),U=(y||E===".")&&s.endsWith("/");return!p.pathname.endsWith("/")&&(v||U)&&(p.pathname+="/"),p}var Sh=f=>f.replace(/\/\/+/g,"/"),Ce=f=>Sh(f.join("/")),ai=f=>f.replace(/\/+$/,""),Bv=f=>ai(f).replace(/^\/*/,"/"),qv=f=>!f||f==="?"?"":f.startsWith("?")?f:"?"+f,Yv=f=>!f||f==="#"?"":f.startsWith("#")?f:"#"+f,Lv=class{constructor(f,o,s,c=!1){this.status=f,this.statusText=o||"",this.internal=c,s instanceof Error?(this.data=s.toString(),this.error=s):this.data=s}};function jv(f){return f!=null&&typeof f.status=="number"&&typeof f.statusText=="string"&&typeof f.internal=="boolean"&&"data"in f}function Gv(f){let o=f.map(s=>s.route.path).filter(Boolean);return Ce(o)||"/"}var ph=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function bh(f,o){let s=f;if(typeof s!="string"||!Nv.test(s))return{absoluteURL:void 0,isExternal:!1,to:s};let c=s,d=!1;if(ph)try{let y=new URL(window.location.href),E=s.startsWith("//")?new URL(y.protocol+s):new URL(s),O=al(E.pathname,o);E.origin===y.origin&&O!=null?s=O+E.search+E.hash:d=!0}catch{_e(!1,`<Link to="${s}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:c,isExternal:d,to:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Eh=["POST","PUT","PATCH","DELETE"];new Set(Eh);var Xv=["GET",...Eh];new Set(Xv);var Ha=_.createContext(null);Ha.displayName="DataRouter";var ni=_.createContext(null);ni.displayName="DataRouterState";var Th=_.createContext(!1);function Qv(){return _.useContext(Th)}var zh=_.createContext({isTransitioning:!1});zh.displayName="ViewTransition";var Zv=_.createContext(new Map);Zv.displayName="Fetchers";var Vv=_.createContext(null);Vv.displayName="Await";var he=_.createContext(null);he.displayName="Navigation";var Nu=_.createContext(null);Nu.displayName="Location";var Oe=_.createContext({outlet:null,matches:[],isDataRoute:!1});Oe.displayName="Route";var Gc=_.createContext(null);Gc.displayName="RouteError";var Ah="REACT_ROUTER_ERROR",Kv="REDIRECT",Jv="ROUTE_ERROR_RESPONSE";function wv(f){if(f.startsWith(`${Ah}:${Kv}:{`))try{let o=JSON.parse(f.slice(28));if(typeof o=="object"&&o&&typeof o.status=="number"&&typeof o.statusText=="string"&&typeof o.location=="string"&&typeof o.reloadDocument=="boolean"&&typeof o.replace=="boolean")return o}catch{}}function $v(f){if(f.startsWith(`${Ah}:${Jv}:{`))try{let o=JSON.parse(f.slice(40));if(typeof o=="object"&&o&&typeof o.status=="number"&&typeof o.statusText=="string")return new Lv(o.status,o.statusText,o.data)}catch{}}function Wv(f,{relative:o}={}){Rt(xa(),"useHref() may be used only in the context of a <Router> component.");let{basename:s,navigator:c}=_.useContext(he),{hash:d,pathname:y,search:E}=Hu(f,{relative:o}),O=y;return s!=="/"&&(O=y==="/"?s:Ce([s,y])),c.createHref({pathname:O,search:E,hash:d})}function xa(){return _.useContext(Nu)!=null}function Ne(){return Rt(xa(),"useLocation() may be used only in the context of a <Router> component."),_.useContext(Nu).location}var Rh="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function _h(f){_.useContext(he).static||_.useLayoutEffect(f)}function Xc(){let{isDataRoute:f}=_.useContext(Oe);return f?o0():kv()}function kv(){Rt(xa(),"useNavigate() may be used only in the context of a <Router> component.");let f=_.useContext(Ha),{basename:o,navigator:s}=_.useContext(he),{matches:c}=_.useContext(Oe),{pathname:d}=Ne(),y=JSON.stringify(jc(c)),E=_.useRef(!1);return _h(()=>{E.current=!0}),_.useCallback((p,v={})=>{if(_e(E.current,Rh),!E.current)return;if(typeof p=="number"){s.go(p);return}let U=ui(p,JSON.parse(y),d,v.relative==="path");f==null&&o!=="/"&&(U.pathname=U.pathname==="/"?o:Ce([o,U.pathname])),(v.replace?s.replace:s.push)(U,v.state,v)},[o,s,y,d,f])}var Fv=_.createContext(null);function Iv(f){let o=_.useContext(Oe).outlet;return _.useMemo(()=>o&&_.createElement(Fv.Provider,{value:f},o),[o,f])}function k0(){let{matches:f}=_.useContext(Oe),o=f[f.length-1];return(o==null?void 0:o.params)??{}}function Hu(f,{relative:o}={}){let{matches:s}=_.useContext(Oe),{pathname:c}=Ne(),d=JSON.stringify(jc(s));return _.useMemo(()=>ui(f,JSON.parse(d),c,o==="path"),[f,d,c,o])}function Pv(f,o){return Oh(f,o)}function Oh(f,o,s){var G;Rt(xa(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:c}=_.useContext(he),{matches:d}=_.useContext(Oe),y=d[d.length-1],E=y?y.params:{},O=y?y.pathname:"/",p=y?y.pathnameBase:"/",v=y&&y.route;{let q=v&&v.path||"";Dh(O,!v||q.endsWith("*")||q.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${O}" (under <Route path="${q}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
59
59
 
60
- Please change the parent <Route path="${q}"> to <Route path="${q==="/"?"*":`${q}/*`}">.`)}let U=Ne(),A;if(o){let q=typeof o=="string"?Na(o):o;Rt(p==="/"||((G=q.pathname)==null?void 0:G.startsWith(p)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${p}" but pathname "${q.pathname}" was given in the \`location\` prop.`),A=q}else A=U;let x=A.pathname||"/",K=x;if(p!=="/"){let q=p.replace(/^\//,"").split("/");K="/"+x.replace(/^\//,"").split("/").slice(q.length).join("/")}let V=s&&s.state.matches.length?s.state.matches.map(q=>Object.assign(q,{route:s.manifest[q.route.id]||q.route})):yh(f,{pathname:K});_e(v||V!=null,`No routes matched location "${A.pathname}${A.search}${A.hash}" `),_e(V==null||V[V.length-1].route.element!==void 0||V[V.length-1].route.Component!==void 0||V[V.length-1].route.lazy!==void 0,`Matched leaf route at location "${A.pathname}${A.search}${A.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let j=u0(V&&V.map(q=>Object.assign({},q,{params:Object.assign({},E,q.params),pathname:Ce([p,c.encodeLocation?c.encodeLocation(q.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:q.pathname]),pathnameBase:q.pathnameBase==="/"?p:Ce([p,c.encodeLocation?c.encodeLocation(q.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:q.pathnameBase])})),d,s);return o&&j?_.createElement(Nu.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...A},navigationType:"POP"}},j):j}function t0(){let f=r0(),o=jv(f)?`${f.status} ${f.statusText}`:f instanceof Error?f.message:JSON.stringify(f),s=f instanceof Error?f.stack:null,c="rgba(200,200,200, 0.5)",d={padding:"0.5rem",backgroundColor:c},y={padding:"2px 4px",backgroundColor:c},E=null;return console.error("Error handled by React Router default ErrorBoundary:",f),E=_.createElement(_.Fragment,null,_.createElement("p",null,"💿 Hey developer 👋"),_.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",_.createElement("code",{style:y},"ErrorBoundary")," or"," ",_.createElement("code",{style:y},"errorElement")," prop on your route.")),_.createElement(_.Fragment,null,_.createElement("h2",null,"Unexpected Application Error!"),_.createElement("h3",{style:{fontStyle:"italic"}},o),s?_.createElement("pre",{style:d},s):null,E)}var e0=_.createElement(t0,null),Mh=class extends _.Component{constructor(f){super(f),this.state={location:f.location,revalidation:f.revalidation,error:f.error}}static getDerivedStateFromError(f){return{error:f}}static getDerivedStateFromProps(f,o){return o.location!==f.location||o.revalidation!=="idle"&&f.revalidation==="idle"?{error:f.error,location:f.location,revalidation:f.revalidation}:{error:f.error!==void 0?f.error:o.error,location:o.location,revalidation:f.revalidation||o.revalidation}}componentDidCatch(f,o){this.props.onError?this.props.onError(f,o):console.error("React Router caught the following error during render",f)}render(){let f=this.state.error;if(this.context&&typeof f=="object"&&f&&"digest"in f&&typeof f.digest=="string"){const s=$v(f.digest);s&&(f=s)}let o=f!==void 0?_.createElement(Oe.Provider,{value:this.props.routeContext},_.createElement(Gc.Provider,{value:f,children:this.props.component})):this.props.children;return this.context?_.createElement(l0,{error:f},o):o}};Mh.contextType=Th;var Hc=new WeakMap;function l0({children:f,error:o}){let{basename:s}=_.useContext(he);if(typeof o=="object"&&o&&"digest"in o&&typeof o.digest=="string"){let c=wv(o.digest);if(c){let d=Hc.get(o);if(d)throw d;let y=bh(c.location,s);if(ph&&!Hc.get(o))if(y.isExternal||c.reloadDocument)window.location.href=y.absoluteURL||y.to;else{const E=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(y.to,{replace:c.replace}));throw Hc.set(o,E),E}return _.createElement("meta",{httpEquiv:"refresh",content:`0;url=${y.absoluteURL||y.to}`})}}return f}function a0({routeContext:f,match:o,children:s}){let c=_.useContext(Ha);return c&&c.static&&c.staticContext&&(o.route.errorElement||o.route.ErrorBoundary)&&(c.staticContext._deepestRenderedBoundaryId=o.route.id),_.createElement(Oe.Provider,{value:f},s)}function u0(f,o=[],s){let c=s==null?void 0:s.state;if(f==null){if(!c)return null;if(c.errors)f=c.matches;else if(o.length===0&&!c.initialized&&c.matches.length>0)f=c.matches;else return null}let d=f,y=c==null?void 0:c.errors;if(y!=null){let U=d.findIndex(A=>A.route.id&&(y==null?void 0:y[A.route.id])!==void 0);Rt(U>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(y).join(",")}`),d=d.slice(0,Math.min(d.length,U+1))}let E=!1,O=-1;if(s&&c){E=c.renderFallback;for(let U=0;U<d.length;U++){let A=d[U];if((A.route.HydrateFallback||A.route.hydrateFallbackElement)&&(O=U),A.route.id){let{loaderData:x,errors:K}=c,V=A.route.loader&&!x.hasOwnProperty(A.route.id)&&(!K||K[A.route.id]===void 0);if(A.route.lazy||V){s.isStatic&&(E=!0),O>=0?d=d.slice(0,O+1):d=[d[0]];break}}}}let p=s==null?void 0:s.onError,v=c&&p?(U,A)=>{var x,K;p(U,{location:c.location,params:((K=(x=c.matches)==null?void 0:x[0])==null?void 0:K.params)??{},pattern:Gv(c.matches),errorInfo:A})}:void 0;return d.reduceRight((U,A,x)=>{let K,V=!1,j=null,G=null;c&&(K=y&&A.route.id?y[A.route.id]:void 0,j=A.route.errorElement||e0,E&&(O<0&&x===0?(Dh("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),V=!0,G=null):O===x&&(V=!0,G=A.route.hydrateFallbackElement||null)));let q=o.concat(d.slice(0,x+1)),F=()=>{let w;return K?w=j:V?w=G:A.route.Component?w=_.createElement(A.route.Component,null):A.route.element?w=A.route.element:w=U,_.createElement(a0,{match:A,routeContext:{outlet:U,matches:q,isDataRoute:c!=null},children:w})};return c&&(A.route.ErrorBoundary||A.route.errorElement||x===0)?_.createElement(Mh,{location:c.location,revalidation:c.revalidation,component:j,error:K,children:F(),routeContext:{outlet:null,matches:q,isDataRoute:!0},onError:v}):F()},null)}function Qc(f){return`${f} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function n0(f){let o=_.useContext(Ha);return Rt(o,Qc(f)),o}function i0(f){let o=_.useContext(ni);return Rt(o,Qc(f)),o}function f0(f){let o=_.useContext(Oe);return Rt(o,Qc(f)),o}function Zc(f){let o=f0(f),s=o.matches[o.matches.length-1];return Rt(s.route.id,`${f} can only be used on routes that contain a unique "id"`),s.route.id}function c0(){return Zc("useRouteId")}function r0(){var c;let f=_.useContext(Gc),o=i0("useRouteError"),s=Zc("useRouteError");return f!==void 0?f:(c=o.errors)==null?void 0:c[s]}function o0(){let{router:f}=n0("useNavigate"),o=Zc("useNavigate"),s=_.useRef(!1);return _h(()=>{s.current=!0}),_.useCallback(async(d,y={})=>{_e(s.current,Rh),s.current&&(typeof d=="number"?await f.navigate(d):await f.navigate(d,{fromRouteId:o,...y}))},[f,o])}var sh={};function Dh(f,o,s){!o&&!sh[f]&&(sh[f]=!0,_e(!1,s))}_.memo(s0);function s0({routes:f,manifest:o,future:s,state:c,isStatic:d,onError:y}){return Oh(f,void 0,{manifest:o,state:c,isStatic:d,onError:y})}function F0({to:f,replace:o,state:s,relative:c}){Rt(xa(),"<Navigate> may be used only in the context of a <Router> component.");let{static:d}=_.useContext(he);_e(!d,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:y}=_.useContext(Oe),{pathname:E}=Ne(),O=Xc(),p=ui(f,jc(y),E,c==="path"),v=JSON.stringify(p);return _.useEffect(()=>{O(JSON.parse(v),{replace:o,state:s,relative:c})},[O,v,c,o,s]),null}function I0(f){return Iv(f.context)}function d0(f){Rt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function h0({basename:f="/",children:o=null,location:s,navigationType:c="POP",navigator:d,static:y=!1,useTransitions:E}){Rt(!xa(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let O=f.replace(/^\/*/,"/"),p=_.useMemo(()=>({basename:O,navigator:d,static:y,useTransitions:E,future:{}}),[O,d,y,E]);typeof s=="string"&&(s=Na(s));let{pathname:v="/",search:U="",hash:A="",state:x=null,key:K="default",mask:V}=s,j=_.useMemo(()=>{let G=al(v,O);return G==null?null:{location:{pathname:G,search:U,hash:A,state:x,key:K,mask:V},navigationType:c}},[O,v,U,A,x,K,c,V]);return _e(j!=null,`<Router basename="${O}"> is not able to match the URL "${v}${U}${A}" because it does not start with the basename, so the <Router> won't render anything.`),j==null?null:_.createElement(he.Provider,{value:p},_.createElement(Nu.Provider,{children:o,value:j}))}function P0({children:f,location:o}){return Pv(qc(f),o)}function qc(f,o=[]){let s=[];return _.Children.forEach(f,(c,d)=>{if(!_.isValidElement(c))return;let y=[...o,d];if(c.type===_.Fragment){s.push.apply(s,qc(c.props.children,y));return}Rt(c.type===d0,`[${typeof c.type=="string"?c.type:c.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Rt(!c.props.index||!c.props.children,"An index route cannot have child routes.");let E={id:c.props.id||y.join("-"),caseSensitive:c.props.caseSensitive,element:c.props.element,Component:c.props.Component,index:c.props.index,path:c.props.path,middleware:c.props.middleware,loader:c.props.loader,action:c.props.action,hydrateFallbackElement:c.props.hydrateFallbackElement,HydrateFallback:c.props.HydrateFallback,errorElement:c.props.errorElement,ErrorBoundary:c.props.ErrorBoundary,hasErrorBoundary:c.props.hasErrorBoundary===!0||c.props.ErrorBoundary!=null||c.props.errorElement!=null,shouldRevalidate:c.props.shouldRevalidate,handle:c.props.handle,lazy:c.props.lazy};c.props.children&&(E.children=qc(c.props.children,y)),s.push(E)}),s}var ti="get",ei="application/x-www-form-urlencoded";function ii(f){return typeof HTMLElement<"u"&&f instanceof HTMLElement}function m0(f){return ii(f)&&f.tagName.toLowerCase()==="button"}function y0(f){return ii(f)&&f.tagName.toLowerCase()==="form"}function v0(f){return ii(f)&&f.tagName.toLowerCase()==="input"}function g0(f){return!!(f.metaKey||f.altKey||f.ctrlKey||f.shiftKey)}function S0(f,o){return f.button===0&&(!o||o==="_self")&&!g0(f)}function Yc(f=""){return new URLSearchParams(typeof f=="string"||Array.isArray(f)||f instanceof URLSearchParams?f:Object.keys(f).reduce((o,s)=>{let c=f[s];return o.concat(Array.isArray(c)?c.map(d=>[s,d]):[[s,c]])},[]))}function p0(f,o){let s=Yc(f);return o&&o.forEach((c,d)=>{s.has(d)||o.getAll(d).forEach(y=>{s.append(d,y)})}),s}var Pn=null;function b0(){if(Pn===null)try{new FormData(document.createElement("form"),0),Pn=!1}catch{Pn=!0}return Pn}var E0=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function xc(f){return f!=null&&!E0.has(f)?(_e(!1,`"${f}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ei}"`),null):f}function T0(f,o){let s,c,d,y,E;if(y0(f)){let O=f.getAttribute("action");c=O?al(O,o):null,s=f.getAttribute("method")||ti,d=xc(f.getAttribute("enctype"))||ei,y=new FormData(f)}else if(m0(f)||v0(f)&&(f.type==="submit"||f.type==="image")){let O=f.form;if(O==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=f.getAttribute("formaction")||O.getAttribute("action");if(c=p?al(p,o):null,s=f.getAttribute("formmethod")||O.getAttribute("method")||ti,d=xc(f.getAttribute("formenctype"))||xc(O.getAttribute("enctype"))||ei,y=new FormData(O,f),!b0()){let{name:v,type:U,value:A}=f;if(U==="image"){let x=v?`${v}.`:"";y.append(`${x}x`,"0"),y.append(`${x}y`,"0")}else v&&y.append(v,A)}}else{if(ii(f))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');s=ti,c=null,d=ei,E=f}return y&&d==="text/plain"&&(E=y,y=void 0),{action:c,method:s.toLowerCase(),encType:d,formData:y,body:E}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Vc(f,o){if(f===!1||f===null||typeof f>"u")throw new Error(o)}function Uh(f,o,s,c){let d=typeof f=="string"?new URL(f,typeof window>"u"?"server://singlefetch/":window.location.origin):f;return s?d.pathname.endsWith("/")?d.pathname=`${d.pathname}_.${c}`:d.pathname=`${d.pathname}.${c}`:d.pathname==="/"?d.pathname=`_root.${c}`:o&&al(d.pathname,o)==="/"?d.pathname=`${ai(o)}/_root.${c}`:d.pathname=`${ai(d.pathname)}.${c}`,d}async function z0(f,o){if(f.id in o)return o[f.id];try{let s=await import(f.module);return o[f.id]=s,s}catch(s){return console.error(`Error loading route module \`${f.module}\`, reloading page...`),console.error(s),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function A0(f){return f==null?!1:f.href==null?f.rel==="preload"&&typeof f.imageSrcSet=="string"&&typeof f.imageSizes=="string":typeof f.rel=="string"&&typeof f.href=="string"}async function R0(f,o,s){let c=await Promise.all(f.map(async d=>{let y=o.routes[d.route.id];if(y){let E=await z0(y,s);return E.links?E.links():[]}return[]}));return D0(c.flat(1).filter(A0).filter(d=>d.rel==="stylesheet"||d.rel==="preload").map(d=>d.rel==="stylesheet"?{...d,rel:"prefetch",as:"style"}:{...d,rel:"prefetch"}))}function dh(f,o,s,c,d,y){let E=(p,v)=>s[v]?p.route.id!==s[v].route.id:!0,O=(p,v)=>{var U;return s[v].pathname!==p.pathname||((U=s[v].route.path)==null?void 0:U.endsWith("*"))&&s[v].params["*"]!==p.params["*"]};return y==="assets"?o.filter((p,v)=>E(p,v)||O(p,v)):y==="data"?o.filter((p,v)=>{var A;let U=c.routes[p.route.id];if(!U||!U.hasLoader)return!1;if(E(p,v)||O(p,v))return!0;if(p.route.shouldRevalidate){let x=p.route.shouldRevalidate({currentUrl:new URL(d.pathname+d.search+d.hash,window.origin),currentParams:((A=s[0])==null?void 0:A.params)||{},nextUrl:new URL(f,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof x=="boolean")return x}return!0}):[]}function _0(f,o,{includeHydrateFallback:s}={}){return O0(f.map(c=>{let d=o.routes[c.route.id];if(!d)return[];let y=[d.module];return d.clientActionModule&&(y=y.concat(d.clientActionModule)),d.clientLoaderModule&&(y=y.concat(d.clientLoaderModule)),s&&d.hydrateFallbackModule&&(y=y.concat(d.hydrateFallbackModule)),d.imports&&(y=y.concat(d.imports)),y}).flat(1))}function O0(f){return[...new Set(f)]}function M0(f){let o={},s=Object.keys(f).sort();for(let c of s)o[c]=f[c];return o}function D0(f,o){let s=new Set;return new Set(o),f.reduce((c,d)=>{let y=JSON.stringify(M0(d));return s.has(y)||(s.add(y),c.push({key:y,link:d})),c},[])}function Kc(){let f=_.useContext(Ha);return Vc(f,"You must render this element inside a <DataRouterContext.Provider> element"),f}function U0(){let f=_.useContext(ni);return Vc(f,"You must render this element inside a <DataRouterStateContext.Provider> element"),f}var Jc=_.createContext(void 0);Jc.displayName="FrameworkContext";function wc(){let f=_.useContext(Jc);return Vc(f,"You must render this element inside a <HydratedRouter> element"),f}function C0(f,o){let s=_.useContext(Jc),[c,d]=_.useState(!1),[y,E]=_.useState(!1),{onFocus:O,onBlur:p,onMouseEnter:v,onMouseLeave:U,onTouchStart:A}=o,x=_.useRef(null);_.useEffect(()=>{if(f==="render"&&E(!0),f==="viewport"){let j=q=>{q.forEach(F=>{E(F.isIntersecting)})},G=new IntersectionObserver(j,{threshold:.5});return x.current&&G.observe(x.current),()=>{G.disconnect()}}},[f]),_.useEffect(()=>{if(c){let j=setTimeout(()=>{E(!0)},100);return()=>{clearTimeout(j)}}},[c]);let K=()=>{d(!0)},V=()=>{d(!1),E(!1)};return s?f!=="intent"?[y,x,{}]:[y,x,{onFocus:Uu(O,K),onBlur:Uu(p,V),onMouseEnter:Uu(v,K),onMouseLeave:Uu(U,V),onTouchStart:Uu(A,K)}]:[!1,x,{}]}function Uu(f,o){return s=>{f&&f(s),s.defaultPrevented||o(s)}}function N0({page:f,...o}){let s=Qv(),{router:c}=Kc(),d=_.useMemo(()=>yh(c.routes,f,c.basename),[c.routes,f,c.basename]);return d?s?_.createElement(x0,{page:f,matches:d,...o}):_.createElement(B0,{page:f,matches:d,...o}):null}function H0(f){let{manifest:o,routeModules:s}=wc(),[c,d]=_.useState([]);return _.useEffect(()=>{let y=!1;return R0(f,o,s).then(E=>{y||d(E)}),()=>{y=!0}},[f,o,s]),c}function x0({page:f,matches:o,...s}){let c=Ne(),{future:d}=wc(),{basename:y}=Kc(),E=_.useMemo(()=>{if(f===c.pathname+c.search+c.hash)return[];let O=Uh(f,y,d.v8_trailingSlashAwareDataRequests,"rsc"),p=!1,v=[];for(let U of o)typeof U.route.shouldRevalidate=="function"?p=!0:v.push(U.route.id);return p&&v.length>0&&O.searchParams.set("_routes",v.join(",")),[O.pathname+O.search]},[y,d.v8_trailingSlashAwareDataRequests,f,c,o]);return _.createElement(_.Fragment,null,E.map(O=>_.createElement("link",{key:O,rel:"prefetch",as:"fetch",href:O,...s})))}function B0({page:f,matches:o,...s}){let c=Ne(),{future:d,manifest:y,routeModules:E}=wc(),{basename:O}=Kc(),{loaderData:p,matches:v}=U0(),U=_.useMemo(()=>dh(f,o,v,y,c,"data"),[f,o,v,y,c]),A=_.useMemo(()=>dh(f,o,v,y,c,"assets"),[f,o,v,y,c]),x=_.useMemo(()=>{if(f===c.pathname+c.search+c.hash)return[];let j=new Set,G=!1;if(o.forEach(F=>{var mt;let w=y.routes[F.route.id];!w||!w.hasLoader||(!U.some(st=>st.route.id===F.route.id)&&F.route.id in p&&((mt=E[F.route.id])!=null&&mt.shouldRevalidate)||w.hasClientLoader?G=!0:j.add(F.route.id))}),j.size===0)return[];let q=Uh(f,O,d.v8_trailingSlashAwareDataRequests,"data");return G&&j.size>0&&q.searchParams.set("_routes",o.filter(F=>j.has(F.route.id)).map(F=>F.route.id).join(",")),[q.pathname+q.search]},[O,d.v8_trailingSlashAwareDataRequests,p,c,y,U,o,f,E]),K=_.useMemo(()=>_0(A,y),[A,y]),V=H0(A);return _.createElement(_.Fragment,null,x.map(j=>_.createElement("link",{key:j,rel:"prefetch",as:"fetch",href:j,...s})),K.map(j=>_.createElement("link",{key:j,rel:"modulepreload",href:j,...s})),V.map(({key:j,link:G})=>_.createElement("link",{key:j,nonce:s.nonce,...G,crossOrigin:G.crossOrigin??s.crossOrigin})))}function q0(...f){return o=>{f.forEach(s=>{typeof s=="function"?s(o):s!=null&&(s.current=o)})}}var Y0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Y0&&(window.__reactRouterVersion="7.17.0")}catch{}function t1({basename:f,children:o,useTransitions:s,window:c}){let d=_.useRef();d.current==null&&(d.current=mv({window:c,v5Compat:!0}));let y=d.current,[E,O]=_.useState({action:y.action,location:y.location}),p=_.useCallback(v=>{s===!1?O(v):_.startTransition(()=>O(v))},[s]);return _.useLayoutEffect(()=>y.listen(p),[y,p]),_.createElement(h0,{basename:f,children:o,location:E.location,navigationType:E.action,navigator:y,useTransitions:s})}var Ch=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Nh=_.forwardRef(function({onClick:o,discover:s="render",prefetch:c="none",relative:d,reloadDocument:y,replace:E,mask:O,state:p,target:v,to:U,preventScrollReset:A,viewTransition:x,defaultShouldRevalidate:K,...V},j){let{basename:G,navigator:q,useTransitions:F}=_.useContext(he),w=typeof U=="string"&&Ch.test(U),mt=bh(U,G);U=mt.to;let st=Wv(U,{relative:d}),Et=Ne(),W=null;if(O){let Nt=ui(O,[],Et.mask?Et.mask.pathname:"/",!0);G!=="/"&&(Nt.pathname=Nt.pathname==="/"?G:Ce([G,Nt.pathname])),W=q.createHref(Nt)}let[Mt,Kt,He]=C0(c,V),me=X0(U,{replace:E,mask:O,state:p,target:v,preventScrollReset:A,relative:d,viewTransition:x,defaultShouldRevalidate:K,useTransitions:F});function Jt(Nt){o&&o(Nt),Nt.defaultPrevented||me(Nt)}let xe=!(mt.isExternal||y),ye=_.createElement("a",{...V,...He,href:(xe?W:void 0)||mt.absoluteURL||st,onClick:xe?Jt:o,ref:q0(j,Kt),target:v,"data-discover":!w&&s==="render"?"true":void 0});return Mt&&!w?_.createElement(_.Fragment,null,ye,_.createElement(N0,{page:st})):ye});Nh.displayName="Link";var L0=_.forwardRef(function({"aria-current":o="page",caseSensitive:s=!1,className:c="",end:d=!1,style:y,to:E,viewTransition:O,children:p,...v},U){let A=Hu(E,{relative:v.relative}),x=Ne(),K=_.useContext(ni),{navigator:V,basename:j}=_.useContext(he),G=K!=null&&J0(A)&&O===!0,q=V.encodeLocation?V.encodeLocation(A).pathname:A.pathname,F=x.pathname,w=K&&K.navigation&&K.navigation.location?K.navigation.location.pathname:null;s||(F=F.toLowerCase(),w=w?w.toLowerCase():null,q=q.toLowerCase()),w&&j&&(w=al(w,j)||w);const mt=q!=="/"&&q.endsWith("/")?q.length-1:q.length;let st=F===q||!d&&F.startsWith(q)&&F.charAt(mt)==="/",Et=w!=null&&(w===q||!d&&w.startsWith(q)&&w.charAt(q.length)==="/"),W={isActive:st,isPending:Et,isTransitioning:G},Mt=st?o:void 0,Kt;typeof c=="function"?Kt=c(W):Kt=[c,st?"active":null,Et?"pending":null,G?"transitioning":null].filter(Boolean).join(" ");let He=typeof y=="function"?y(W):y;return _.createElement(Nh,{...v,"aria-current":Mt,className:Kt,ref:U,style:He,to:E,viewTransition:O},typeof p=="function"?p(W):p)});L0.displayName="NavLink";var j0=_.forwardRef(({discover:f="render",fetcherKey:o,navigate:s,reloadDocument:c,replace:d,state:y,method:E=ti,action:O,onSubmit:p,relative:v,preventScrollReset:U,viewTransition:A,defaultShouldRevalidate:x,...K},V)=>{let{useTransitions:j}=_.useContext(he),G=V0(),q=K0(O,{relative:v}),F=E.toLowerCase()==="get"?"get":"post",w=typeof O=="string"&&Ch.test(O),mt=st=>{if(p&&p(st),st.defaultPrevented)return;st.preventDefault();let Et=st.nativeEvent.submitter,W=(Et==null?void 0:Et.getAttribute("formmethod"))||E,Mt=()=>G(Et||st.currentTarget,{fetcherKey:o,method:W,navigate:s,replace:d,state:y,relative:v,preventScrollReset:U,viewTransition:A,defaultShouldRevalidate:x});j&&s!==!1?_.startTransition(()=>Mt()):Mt()};return _.createElement("form",{ref:V,method:F,action:q,onSubmit:c?p:mt,...K,"data-discover":!w&&f==="render"?"true":void 0})});j0.displayName="Form";function G0(f){return`${f} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Hh(f){let o=_.useContext(Ha);return Rt(o,G0(f)),o}function X0(f,{target:o,replace:s,mask:c,state:d,preventScrollReset:y,relative:E,viewTransition:O,defaultShouldRevalidate:p,useTransitions:v}={}){let U=Xc(),A=Ne(),x=Hu(f,{relative:E});return _.useCallback(K=>{if(S0(K,o)){K.preventDefault();let V=s!==void 0?s:Cu(A)===Cu(x),j=()=>U(f,{replace:V,mask:c,state:d,preventScrollReset:y,relative:E,viewTransition:O,defaultShouldRevalidate:p});v?_.startTransition(()=>j()):j()}},[A,U,x,s,c,d,o,f,y,E,O,p,v])}function e1(f){_e(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let o=_.useRef(Yc(f)),s=_.useRef(!1),c=Ne(),d=_.useMemo(()=>p0(c.search,s.current?null:o.current),[c.search]),y=Xc(),E=_.useCallback((O,p)=>{const v=Yc(typeof O=="function"?O(new URLSearchParams(d)):O);s.current=!0,y("?"+v,p)},[y,d]);return[d,E]}var Q0=0,Z0=()=>`__${String(++Q0)}__`;function V0(){let{router:f}=Hh("useSubmit"),{basename:o}=_.useContext(he),s=c0(),c=f.fetch,d=f.navigate;return _.useCallback(async(y,E={})=>{let{action:O,method:p,encType:v,formData:U,body:A}=T0(y,o);if(E.navigate===!1){let x=E.fetcherKey||Z0();await c(x,s,E.action||O,{defaultShouldRevalidate:E.defaultShouldRevalidate,preventScrollReset:E.preventScrollReset,formData:U,body:A,formMethod:E.method||p,formEncType:E.encType||v,flushSync:E.flushSync})}else await d(E.action||O,{defaultShouldRevalidate:E.defaultShouldRevalidate,preventScrollReset:E.preventScrollReset,formData:U,body:A,formMethod:E.method||p,formEncType:E.encType||v,replace:E.replace,state:E.state,fromRouteId:s,flushSync:E.flushSync,viewTransition:E.viewTransition})},[c,d,o,s])}function K0(f,{relative:o}={}){let{basename:s}=_.useContext(he),c=_.useContext(Oe);Rt(c,"useFormAction must be used inside a RouteContext");let[d]=c.matches.slice(-1),y={...Hu(f||".",{relative:o})},E=Ne();if(f==null){y.search=E.search;let O=new URLSearchParams(y.search),p=O.getAll("index");if(p.some(U=>U==="")){O.delete("index"),p.filter(A=>A).forEach(A=>O.append("index",A));let U=O.toString();y.search=U?`?${U}`:""}}return(!f||f===".")&&d.route.index&&(y.search=y.search?y.search.replace(/^\?/,"?index&"):"?index"),s!=="/"&&(y.pathname=y.pathname==="/"?s:Ce([s,y.pathname])),Cu(y)}function J0(f,{relative:o}={}){let s=_.useContext(zh);Rt(s!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:c}=Hh("useViewTransitionState"),d=Hu(f,{relative:o});if(!s.isTransitioning)return!1;let y=al(s.currentLocation.pathname,c)||s.currentLocation.pathname,E=al(s.nextLocation.pathname,c)||s.nextLocation.pathname;return li(d.pathname,E)!=null||li(d.pathname,y)!=null}var l1=mh();export{t1 as B,Nh as L,F0 as N,I0 as O,$0 as R,l1 as a,Lc as b,fv as c,Xc as d,k0 as e,e1 as f,hh as g,P0 as h,d0 as i,w0 as j,W0 as k,_ as r,Ne as u};
60
+ Please change the parent <Route path="${q}"> to <Route path="${q==="/"?"*":`${q}/*`}">.`)}let U=Ne(),A;if(o){let q=typeof o=="string"?Na(o):o;Rt(p==="/"||((G=q.pathname)==null?void 0:G.startsWith(p)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${p}" but pathname "${q.pathname}" was given in the \`location\` prop.`),A=q}else A=U;let x=A.pathname||"/",K=x;if(p!=="/"){let q=p.replace(/^\//,"").split("/");K="/"+x.replace(/^\//,"").split("/").slice(q.length).join("/")}let V=s&&s.state.matches.length?s.state.matches.map(q=>Object.assign(q,{route:s.manifest[q.route.id]||q.route})):yh(f,{pathname:K});_e(v||V!=null,`No routes matched location "${A.pathname}${A.search}${A.hash}" `),_e(V==null||V[V.length-1].route.element!==void 0||V[V.length-1].route.Component!==void 0||V[V.length-1].route.lazy!==void 0,`Matched leaf route at location "${A.pathname}${A.search}${A.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let j=u0(V&&V.map(q=>Object.assign({},q,{params:Object.assign({},E,q.params),pathname:Ce([p,c.encodeLocation?c.encodeLocation(q.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:q.pathname]),pathnameBase:q.pathnameBase==="/"?p:Ce([p,c.encodeLocation?c.encodeLocation(q.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:q.pathnameBase])})),d,s);return o&&j?_.createElement(Nu.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...A},navigationType:"POP"}},j):j}function t0(){let f=r0(),o=jv(f)?`${f.status} ${f.statusText}`:f instanceof Error?f.message:JSON.stringify(f),s=f instanceof Error?f.stack:null,c="rgba(200,200,200, 0.5)",d={padding:"0.5rem",backgroundColor:c},y={padding:"2px 4px",backgroundColor:c},E=null;return console.error("Error handled by React Router default ErrorBoundary:",f),E=_.createElement(_.Fragment,null,_.createElement("p",null,"💿 Hey developer 👋"),_.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",_.createElement("code",{style:y},"ErrorBoundary")," or"," ",_.createElement("code",{style:y},"errorElement")," prop on your route.")),_.createElement(_.Fragment,null,_.createElement("h2",null,"Unexpected Application Error!"),_.createElement("h3",{style:{fontStyle:"italic"}},o),s?_.createElement("pre",{style:d},s):null,E)}var e0=_.createElement(t0,null),Mh=class extends _.Component{constructor(f){super(f),this.state={location:f.location,revalidation:f.revalidation,error:f.error}}static getDerivedStateFromError(f){return{error:f}}static getDerivedStateFromProps(f,o){return o.location!==f.location||o.revalidation!=="idle"&&f.revalidation==="idle"?{error:f.error,location:f.location,revalidation:f.revalidation}:{error:f.error!==void 0?f.error:o.error,location:o.location,revalidation:f.revalidation||o.revalidation}}componentDidCatch(f,o){this.props.onError?this.props.onError(f,o):console.error("React Router caught the following error during render",f)}render(){let f=this.state.error;if(this.context&&typeof f=="object"&&f&&"digest"in f&&typeof f.digest=="string"){const s=$v(f.digest);s&&(f=s)}let o=f!==void 0?_.createElement(Oe.Provider,{value:this.props.routeContext},_.createElement(Gc.Provider,{value:f,children:this.props.component})):this.props.children;return this.context?_.createElement(l0,{error:f},o):o}};Mh.contextType=Th;var Hc=new WeakMap;function l0({children:f,error:o}){let{basename:s}=_.useContext(he);if(typeof o=="object"&&o&&"digest"in o&&typeof o.digest=="string"){let c=wv(o.digest);if(c){let d=Hc.get(o);if(d)throw d;let y=bh(c.location,s);if(ph&&!Hc.get(o))if(y.isExternal||c.reloadDocument)window.location.href=y.absoluteURL||y.to;else{const E=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(y.to,{replace:c.replace}));throw Hc.set(o,E),E}return _.createElement("meta",{httpEquiv:"refresh",content:`0;url=${y.absoluteURL||y.to}`})}}return f}function a0({routeContext:f,match:o,children:s}){let c=_.useContext(Ha);return c&&c.static&&c.staticContext&&(o.route.errorElement||o.route.ErrorBoundary)&&(c.staticContext._deepestRenderedBoundaryId=o.route.id),_.createElement(Oe.Provider,{value:f},s)}function u0(f,o=[],s){let c=s==null?void 0:s.state;if(f==null){if(!c)return null;if(c.errors)f=c.matches;else if(o.length===0&&!c.initialized&&c.matches.length>0)f=c.matches;else return null}let d=f,y=c==null?void 0:c.errors;if(y!=null){let U=d.findIndex(A=>A.route.id&&(y==null?void 0:y[A.route.id])!==void 0);Rt(U>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(y).join(",")}`),d=d.slice(0,Math.min(d.length,U+1))}let E=!1,O=-1;if(s&&c){E=c.renderFallback;for(let U=0;U<d.length;U++){let A=d[U];if((A.route.HydrateFallback||A.route.hydrateFallbackElement)&&(O=U),A.route.id){let{loaderData:x,errors:K}=c,V=A.route.loader&&!x.hasOwnProperty(A.route.id)&&(!K||K[A.route.id]===void 0);if(A.route.lazy||V){s.isStatic&&(E=!0),O>=0?d=d.slice(0,O+1):d=[d[0]];break}}}}let p=s==null?void 0:s.onError,v=c&&p?(U,A)=>{var x,K;p(U,{location:c.location,params:((K=(x=c.matches)==null?void 0:x[0])==null?void 0:K.params)??{},pattern:Gv(c.matches),errorInfo:A})}:void 0;return d.reduceRight((U,A,x)=>{let K,V=!1,j=null,G=null;c&&(K=y&&A.route.id?y[A.route.id]:void 0,j=A.route.errorElement||e0,E&&(O<0&&x===0?(Dh("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),V=!0,G=null):O===x&&(V=!0,G=A.route.hydrateFallbackElement||null)));let q=o.concat(d.slice(0,x+1)),F=()=>{let w;return K?w=j:V?w=G:A.route.Component?w=_.createElement(A.route.Component,null):A.route.element?w=A.route.element:w=U,_.createElement(a0,{match:A,routeContext:{outlet:U,matches:q,isDataRoute:c!=null},children:w})};return c&&(A.route.ErrorBoundary||A.route.errorElement||x===0)?_.createElement(Mh,{location:c.location,revalidation:c.revalidation,component:j,error:K,children:F(),routeContext:{outlet:null,matches:q,isDataRoute:!0},onError:v}):F()},null)}function Qc(f){return`${f} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function n0(f){let o=_.useContext(Ha);return Rt(o,Qc(f)),o}function i0(f){let o=_.useContext(ni);return Rt(o,Qc(f)),o}function f0(f){let o=_.useContext(Oe);return Rt(o,Qc(f)),o}function Zc(f){let o=f0(f),s=o.matches[o.matches.length-1];return Rt(s.route.id,`${f} can only be used on routes that contain a unique "id"`),s.route.id}function c0(){return Zc("useRouteId")}function r0(){var c;let f=_.useContext(Gc),o=i0("useRouteError"),s=Zc("useRouteError");return f!==void 0?f:(c=o.errors)==null?void 0:c[s]}function o0(){let{router:f}=n0("useNavigate"),o=Zc("useNavigate"),s=_.useRef(!1);return _h(()=>{s.current=!0}),_.useCallback(async(d,y={})=>{_e(s.current,Rh),s.current&&(typeof d=="number"?await f.navigate(d):await f.navigate(d,{fromRouteId:o,...y}))},[f,o])}var sh={};function Dh(f,o,s){!o&&!sh[f]&&(sh[f]=!0,_e(!1,s))}_.memo(s0);function s0({routes:f,manifest:o,future:s,state:c,isStatic:d,onError:y}){return Oh(f,void 0,{manifest:o,state:c,isStatic:d,onError:y})}function F0({to:f,replace:o,state:s,relative:c}){Rt(xa(),"<Navigate> may be used only in the context of a <Router> component.");let{static:d}=_.useContext(he);_e(!d,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:y}=_.useContext(Oe),{pathname:E}=Ne(),O=Xc(),p=ui(f,jc(y),E,c==="path"),v=JSON.stringify(p);return _.useEffect(()=>{O(JSON.parse(v),{replace:o,state:s,relative:c})},[O,v,c,o,s]),null}function I0(f){return Iv(f.context)}function d0(f){Rt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function h0({basename:f="/",children:o=null,location:s,navigationType:c="POP",navigator:d,static:y=!1,useTransitions:E}){Rt(!xa(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let O=f.replace(/^\/*/,"/"),p=_.useMemo(()=>({basename:O,navigator:d,static:y,useTransitions:E,future:{}}),[O,d,y,E]);typeof s=="string"&&(s=Na(s));let{pathname:v="/",search:U="",hash:A="",state:x=null,key:K="default",mask:V}=s,j=_.useMemo(()=>{let G=al(v,O);return G==null?null:{location:{pathname:G,search:U,hash:A,state:x,key:K,mask:V},navigationType:c}},[O,v,U,A,x,K,c,V]);return _e(j!=null,`<Router basename="${O}"> is not able to match the URL "${v}${U}${A}" because it does not start with the basename, so the <Router> won't render anything.`),j==null?null:_.createElement(he.Provider,{value:p},_.createElement(Nu.Provider,{children:o,value:j}))}function P0({children:f,location:o}){return Pv(qc(f),o)}function qc(f,o=[]){let s=[];return _.Children.forEach(f,(c,d)=>{if(!_.isValidElement(c))return;let y=[...o,d];if(c.type===_.Fragment){s.push.apply(s,qc(c.props.children,y));return}Rt(c.type===d0,`[${typeof c.type=="string"?c.type:c.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Rt(!c.props.index||!c.props.children,"An index route cannot have child routes.");let E={id:c.props.id||y.join("-"),caseSensitive:c.props.caseSensitive,element:c.props.element,Component:c.props.Component,index:c.props.index,path:c.props.path,middleware:c.props.middleware,loader:c.props.loader,action:c.props.action,hydrateFallbackElement:c.props.hydrateFallbackElement,HydrateFallback:c.props.HydrateFallback,errorElement:c.props.errorElement,ErrorBoundary:c.props.ErrorBoundary,hasErrorBoundary:c.props.hasErrorBoundary===!0||c.props.ErrorBoundary!=null||c.props.errorElement!=null,shouldRevalidate:c.props.shouldRevalidate,handle:c.props.handle,lazy:c.props.lazy};c.props.children&&(E.children=qc(c.props.children,y)),s.push(E)}),s}var ti="get",ei="application/x-www-form-urlencoded";function ii(f){return typeof HTMLElement<"u"&&f instanceof HTMLElement}function m0(f){return ii(f)&&f.tagName.toLowerCase()==="button"}function y0(f){return ii(f)&&f.tagName.toLowerCase()==="form"}function v0(f){return ii(f)&&f.tagName.toLowerCase()==="input"}function g0(f){return!!(f.metaKey||f.altKey||f.ctrlKey||f.shiftKey)}function S0(f,o){return f.button===0&&(!o||o==="_self")&&!g0(f)}function Yc(f=""){return new URLSearchParams(typeof f=="string"||Array.isArray(f)||f instanceof URLSearchParams?f:Object.keys(f).reduce((o,s)=>{let c=f[s];return o.concat(Array.isArray(c)?c.map(d=>[s,d]):[[s,c]])},[]))}function p0(f,o){let s=Yc(f);return o&&o.forEach((c,d)=>{s.has(d)||o.getAll(d).forEach(y=>{s.append(d,y)})}),s}var Pn=null;function b0(){if(Pn===null)try{new FormData(document.createElement("form"),0),Pn=!1}catch{Pn=!0}return Pn}var E0=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function xc(f){return f!=null&&!E0.has(f)?(_e(!1,`"${f}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ei}"`),null):f}function T0(f,o){let s,c,d,y,E;if(y0(f)){let O=f.getAttribute("action");c=O?al(O,o):null,s=f.getAttribute("method")||ti,d=xc(f.getAttribute("enctype"))||ei,y=new FormData(f)}else if(m0(f)||v0(f)&&(f.type==="submit"||f.type==="image")){let O=f.form;if(O==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=f.getAttribute("formaction")||O.getAttribute("action");if(c=p?al(p,o):null,s=f.getAttribute("formmethod")||O.getAttribute("method")||ti,d=xc(f.getAttribute("formenctype"))||xc(O.getAttribute("enctype"))||ei,y=new FormData(O,f),!b0()){let{name:v,type:U,value:A}=f;if(U==="image"){let x=v?`${v}.`:"";y.append(`${x}x`,"0"),y.append(`${x}y`,"0")}else v&&y.append(v,A)}}else{if(ii(f))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');s=ti,c=null,d=ei,E=f}return y&&d==="text/plain"&&(E=y,y=void 0),{action:c,method:s.toLowerCase(),encType:d,formData:y,body:E}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Vc(f,o){if(f===!1||f===null||typeof f>"u")throw new Error(o)}function Uh(f,o,s,c){let d=typeof f=="string"?new URL(f,typeof window>"u"?"server://singlefetch/":window.location.origin):f;return s?d.pathname.endsWith("/")?d.pathname=`${d.pathname}_.${c}`:d.pathname=`${d.pathname}.${c}`:d.pathname==="/"?d.pathname=`_root.${c}`:o&&al(d.pathname,o)==="/"?d.pathname=`${ai(o)}/_root.${c}`:d.pathname=`${ai(d.pathname)}.${c}`,d}async function z0(f,o){if(f.id in o)return o[f.id];try{let s=await import(f.module);return o[f.id]=s,s}catch(s){return console.error(`Error loading route module \`${f.module}\`, reloading page...`),console.error(s),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function A0(f){return f==null?!1:f.href==null?f.rel==="preload"&&typeof f.imageSrcSet=="string"&&typeof f.imageSizes=="string":typeof f.rel=="string"&&typeof f.href=="string"}async function R0(f,o,s){let c=await Promise.all(f.map(async d=>{let y=o.routes[d.route.id];if(y){let E=await z0(y,s);return E.links?E.links():[]}return[]}));return D0(c.flat(1).filter(A0).filter(d=>d.rel==="stylesheet"||d.rel==="preload").map(d=>d.rel==="stylesheet"?{...d,rel:"prefetch",as:"style"}:{...d,rel:"prefetch"}))}function dh(f,o,s,c,d,y){let E=(p,v)=>s[v]?p.route.id!==s[v].route.id:!0,O=(p,v)=>{var U;return s[v].pathname!==p.pathname||((U=s[v].route.path)==null?void 0:U.endsWith("*"))&&s[v].params["*"]!==p.params["*"]};return y==="assets"?o.filter((p,v)=>E(p,v)||O(p,v)):y==="data"?o.filter((p,v)=>{var A;let U=c.routes[p.route.id];if(!U||!U.hasLoader)return!1;if(E(p,v)||O(p,v))return!0;if(p.route.shouldRevalidate){let x=p.route.shouldRevalidate({currentUrl:new URL(d.pathname+d.search+d.hash,window.origin),currentParams:((A=s[0])==null?void 0:A.params)||{},nextUrl:new URL(f,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof x=="boolean")return x}return!0}):[]}function _0(f,o,{includeHydrateFallback:s}={}){return O0(f.map(c=>{let d=o.routes[c.route.id];if(!d)return[];let y=[d.module];return d.clientActionModule&&(y=y.concat(d.clientActionModule)),d.clientLoaderModule&&(y=y.concat(d.clientLoaderModule)),s&&d.hydrateFallbackModule&&(y=y.concat(d.hydrateFallbackModule)),d.imports&&(y=y.concat(d.imports)),y}).flat(1))}function O0(f){return[...new Set(f)]}function M0(f){let o={},s=Object.keys(f).sort();for(let c of s)o[c]=f[c];return o}function D0(f,o){let s=new Set;return new Set(o),f.reduce((c,d)=>{let y=JSON.stringify(M0(d));return s.has(y)||(s.add(y),c.push({key:y,link:d})),c},[])}function Kc(){let f=_.useContext(Ha);return Vc(f,"You must render this element inside a <DataRouterContext.Provider> element"),f}function U0(){let f=_.useContext(ni);return Vc(f,"You must render this element inside a <DataRouterStateContext.Provider> element"),f}var Jc=_.createContext(void 0);Jc.displayName="FrameworkContext";function wc(){let f=_.useContext(Jc);return Vc(f,"You must render this element inside a <HydratedRouter> element"),f}function C0(f,o){let s=_.useContext(Jc),[c,d]=_.useState(!1),[y,E]=_.useState(!1),{onFocus:O,onBlur:p,onMouseEnter:v,onMouseLeave:U,onTouchStart:A}=o,x=_.useRef(null);_.useEffect(()=>{if(f==="render"&&E(!0),f==="viewport"){let j=q=>{q.forEach(F=>{E(F.isIntersecting)})},G=new IntersectionObserver(j,{threshold:.5});return x.current&&G.observe(x.current),()=>{G.disconnect()}}},[f]),_.useEffect(()=>{if(c){let j=setTimeout(()=>{E(!0)},100);return()=>{clearTimeout(j)}}},[c]);let K=()=>{d(!0)},V=()=>{d(!1),E(!1)};return s?f!=="intent"?[y,x,{}]:[y,x,{onFocus:Uu(O,K),onBlur:Uu(p,V),onMouseEnter:Uu(v,K),onMouseLeave:Uu(U,V),onTouchStart:Uu(A,K)}]:[!1,x,{}]}function Uu(f,o){return s=>{f&&f(s),s.defaultPrevented||o(s)}}function N0({page:f,...o}){let s=Qv(),{router:c}=Kc(),d=_.useMemo(()=>yh(c.routes,f,c.basename),[c.routes,f,c.basename]);return d?s?_.createElement(x0,{page:f,matches:d,...o}):_.createElement(B0,{page:f,matches:d,...o}):null}function H0(f){let{manifest:o,routeModules:s}=wc(),[c,d]=_.useState([]);return _.useEffect(()=>{let y=!1;return R0(f,o,s).then(E=>{y||d(E)}),()=>{y=!0}},[f,o,s]),c}function x0({page:f,matches:o,...s}){let c=Ne(),{future:d}=wc(),{basename:y}=Kc(),E=_.useMemo(()=>{if(f===c.pathname+c.search+c.hash)return[];let O=Uh(f,y,d.v8_trailingSlashAwareDataRequests,"rsc"),p=!1,v=[];for(let U of o)typeof U.route.shouldRevalidate=="function"?p=!0:v.push(U.route.id);return p&&v.length>0&&O.searchParams.set("_routes",v.join(",")),[O.pathname+O.search]},[y,d.v8_trailingSlashAwareDataRequests,f,c,o]);return _.createElement(_.Fragment,null,E.map(O=>_.createElement("link",{key:O,rel:"prefetch",as:"fetch",href:O,...s})))}function B0({page:f,matches:o,...s}){let c=Ne(),{future:d,manifest:y,routeModules:E}=wc(),{basename:O}=Kc(),{loaderData:p,matches:v}=U0(),U=_.useMemo(()=>dh(f,o,v,y,c,"data"),[f,o,v,y,c]),A=_.useMemo(()=>dh(f,o,v,y,c,"assets"),[f,o,v,y,c]),x=_.useMemo(()=>{if(f===c.pathname+c.search+c.hash)return[];let j=new Set,G=!1;if(o.forEach(F=>{var mt;let w=y.routes[F.route.id];!w||!w.hasLoader||(!U.some(st=>st.route.id===F.route.id)&&F.route.id in p&&((mt=E[F.route.id])!=null&&mt.shouldRevalidate)||w.hasClientLoader?G=!0:j.add(F.route.id))}),j.size===0)return[];let q=Uh(f,O,d.v8_trailingSlashAwareDataRequests,"data");return G&&j.size>0&&q.searchParams.set("_routes",o.filter(F=>j.has(F.route.id)).map(F=>F.route.id).join(",")),[q.pathname+q.search]},[O,d.v8_trailingSlashAwareDataRequests,p,c,y,U,o,f,E]),K=_.useMemo(()=>_0(A,y),[A,y]),V=H0(A);return _.createElement(_.Fragment,null,x.map(j=>_.createElement("link",{key:j,rel:"prefetch",as:"fetch",href:j,...s})),K.map(j=>_.createElement("link",{key:j,rel:"modulepreload",href:j,...s})),V.map(({key:j,link:G})=>_.createElement("link",{key:j,nonce:s.nonce,...G,crossOrigin:G.crossOrigin??s.crossOrigin})))}function q0(...f){return o=>{f.forEach(s=>{typeof s=="function"?s(o):s!=null&&(s.current=o)})}}var Y0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Y0&&(window.__reactRouterVersion="7.17.0")}catch{}function t1({basename:f,children:o,useTransitions:s,window:c}){let d=_.useRef();d.current==null&&(d.current=mv({window:c,v5Compat:!0}));let y=d.current,[E,O]=_.useState({action:y.action,location:y.location}),p=_.useCallback(v=>{s===!1?O(v):_.startTransition(()=>O(v))},[s]);return _.useLayoutEffect(()=>y.listen(p),[y,p]),_.createElement(h0,{basename:f,children:o,location:E.location,navigationType:E.action,navigator:y,useTransitions:s})}var Ch=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Nh=_.forwardRef(function({onClick:o,discover:s="render",prefetch:c="none",relative:d,reloadDocument:y,replace:E,mask:O,state:p,target:v,to:U,preventScrollReset:A,viewTransition:x,defaultShouldRevalidate:K,...V},j){let{basename:G,navigator:q,useTransitions:F}=_.useContext(he),w=typeof U=="string"&&Ch.test(U),mt=bh(U,G);U=mt.to;let st=Wv(U,{relative:d}),Et=Ne(),W=null;if(O){let Nt=ui(O,[],Et.mask?Et.mask.pathname:"/",!0);G!=="/"&&(Nt.pathname=Nt.pathname==="/"?G:Ce([G,Nt.pathname])),W=q.createHref(Nt)}let[Mt,Kt,He]=C0(c,V),me=X0(U,{replace:E,mask:O,state:p,target:v,preventScrollReset:A,relative:d,viewTransition:x,defaultShouldRevalidate:K,useTransitions:F});function Jt(Nt){o&&o(Nt),Nt.defaultPrevented||me(Nt)}let xe=!(mt.isExternal||y),ye=_.createElement("a",{...V,...He,href:(xe?W:void 0)||mt.absoluteURL||st,onClick:xe?Jt:o,ref:q0(j,Kt),target:v,"data-discover":!w&&s==="render"?"true":void 0});return Mt&&!w?_.createElement(_.Fragment,null,ye,_.createElement(N0,{page:st})):ye});Nh.displayName="Link";var L0=_.forwardRef(function({"aria-current":o="page",caseSensitive:s=!1,className:c="",end:d=!1,style:y,to:E,viewTransition:O,children:p,...v},U){let A=Hu(E,{relative:v.relative}),x=Ne(),K=_.useContext(ni),{navigator:V,basename:j}=_.useContext(he),G=K!=null&&J0(A)&&O===!0,q=V.encodeLocation?V.encodeLocation(A).pathname:A.pathname,F=x.pathname,w=K&&K.navigation&&K.navigation.location?K.navigation.location.pathname:null;s||(F=F.toLowerCase(),w=w?w.toLowerCase():null,q=q.toLowerCase()),w&&j&&(w=al(w,j)||w);const mt=q!=="/"&&q.endsWith("/")?q.length-1:q.length;let st=F===q||!d&&F.startsWith(q)&&F.charAt(mt)==="/",Et=w!=null&&(w===q||!d&&w.startsWith(q)&&w.charAt(q.length)==="/"),W={isActive:st,isPending:Et,isTransitioning:G},Mt=st?o:void 0,Kt;typeof c=="function"?Kt=c(W):Kt=[c,st?"active":null,Et?"pending":null,G?"transitioning":null].filter(Boolean).join(" ");let He=typeof y=="function"?y(W):y;return _.createElement(Nh,{...v,"aria-current":Mt,className:Kt,ref:U,style:He,to:E,viewTransition:O},typeof p=="function"?p(W):p)});L0.displayName="NavLink";var j0=_.forwardRef(({discover:f="render",fetcherKey:o,navigate:s,reloadDocument:c,replace:d,state:y,method:E=ti,action:O,onSubmit:p,relative:v,preventScrollReset:U,viewTransition:A,defaultShouldRevalidate:x,...K},V)=>{let{useTransitions:j}=_.useContext(he),G=V0(),q=K0(O,{relative:v}),F=E.toLowerCase()==="get"?"get":"post",w=typeof O=="string"&&Ch.test(O),mt=st=>{if(p&&p(st),st.defaultPrevented)return;st.preventDefault();let Et=st.nativeEvent.submitter,W=(Et==null?void 0:Et.getAttribute("formmethod"))||E,Mt=()=>G(Et||st.currentTarget,{fetcherKey:o,method:W,navigate:s,replace:d,state:y,relative:v,preventScrollReset:U,viewTransition:A,defaultShouldRevalidate:x});j&&s!==!1?_.startTransition(()=>Mt()):Mt()};return _.createElement("form",{ref:V,method:F,action:q,onSubmit:c?p:mt,...K,"data-discover":!w&&f==="render"?"true":void 0})});j0.displayName="Form";function G0(f){return`${f} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Hh(f){let o=_.useContext(Ha);return Rt(o,G0(f)),o}function X0(f,{target:o,replace:s,mask:c,state:d,preventScrollReset:y,relative:E,viewTransition:O,defaultShouldRevalidate:p,useTransitions:v}={}){let U=Xc(),A=Ne(),x=Hu(f,{relative:E});return _.useCallback(K=>{if(S0(K,o)){K.preventDefault();let V=s!==void 0?s:Cu(A)===Cu(x),j=()=>U(f,{replace:V,mask:c,state:d,preventScrollReset:y,relative:E,viewTransition:O,defaultShouldRevalidate:p});v?_.startTransition(()=>j()):j()}},[A,U,x,s,c,d,o,f,y,E,O,p,v])}function e1(f){_e(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let o=_.useRef(Yc(f)),s=_.useRef(!1),c=Ne(),d=_.useMemo(()=>p0(c.search,s.current?null:o.current),[c.search]),y=Xc(),E=_.useCallback((O,p)=>{const v=Yc(typeof O=="function"?O(new URLSearchParams(d)):O);s.current=!0,y("?"+v,p)},[y,d]);return[d,E]}var Q0=0,Z0=()=>`__${String(++Q0)}__`;function V0(){let{router:f}=Hh("useSubmit"),{basename:o}=_.useContext(he),s=c0(),c=f.fetch,d=f.navigate;return _.useCallback(async(y,E={})=>{let{action:O,method:p,encType:v,formData:U,body:A}=T0(y,o);if(E.navigate===!1){let x=E.fetcherKey||Z0();await c(x,s,E.action||O,{defaultShouldRevalidate:E.defaultShouldRevalidate,preventScrollReset:E.preventScrollReset,formData:U,body:A,formMethod:E.method||p,formEncType:E.encType||v,flushSync:E.flushSync})}else await d(E.action||O,{defaultShouldRevalidate:E.defaultShouldRevalidate,preventScrollReset:E.preventScrollReset,formData:U,body:A,formMethod:E.method||p,formEncType:E.encType||v,replace:E.replace,state:E.state,fromRouteId:s,flushSync:E.flushSync,viewTransition:E.viewTransition})},[c,d,o,s])}function K0(f,{relative:o}={}){let{basename:s}=_.useContext(he),c=_.useContext(Oe);Rt(c,"useFormAction must be used inside a RouteContext");let[d]=c.matches.slice(-1),y={...Hu(f||".",{relative:o})},E=Ne();if(f==null){y.search=E.search;let O=new URLSearchParams(y.search),p=O.getAll("index");if(p.some(U=>U==="")){O.delete("index"),p.filter(A=>A).forEach(A=>O.append("index",A));let U=O.toString();y.search=U?`?${U}`:""}}return(!f||f===".")&&d.route.index&&(y.search=y.search?y.search.replace(/^\?/,"?index&"):"?index"),s!=="/"&&(y.pathname=y.pathname==="/"?s:Ce([s,y.pathname])),Cu(y)}function J0(f,{relative:o}={}){let s=_.useContext(zh);Rt(s!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:c}=Hh("useViewTransitionState"),d=Hu(f,{relative:o});if(!s.isTransitioning)return!1;let y=al(s.currentLocation.pathname,c)||s.currentLocation.pathname,E=al(s.nextLocation.pathname,c)||s.nextLocation.pathname;return li(d.pathname,E)!=null||li(d.pathname,y)!=null}var l1=mh();export{t1 as B,Nh as L,F0 as N,I0 as O,$0 as R,Lc as a,l1 as b,fv as c,Xc as d,k0 as e,e1 as f,hh as g,P0 as h,d0 as i,w0 as j,W0 as k,_ as r,Ne as u};
@@ -1,4 +1,4 @@
1
- import{g as Ce}from"./react-vendor-o1Xrx7m4.js";function be(q,se){for(var ee=0;ee<se.length;ee++){const J=se[ee];if(typeof J!="string"&&!Array.isArray(J)){for(const G in J)if(G!=="default"&&!(G in q)){const Z=Object.getOwnPropertyDescriptor(J,G);Z&&Object.defineProperty(q,G,Z.get?Z:{enumerable:!0,get:()=>J[G]})}}}return Object.freeze(Object.defineProperty(q,Symbol.toStringTag,{value:"Module"}))}var ve={exports:{}},ge;function ye(){return ge||(ge=1,(function(q,se){(function(ee,J){q.exports=J()})(self,(()=>(()=>{var ee={4567:function(P,r,a){var c=this&&this.__decorate||function(i,o,l,v){var m,h=arguments.length,g=h<3?o:v===null?v=Object.getOwnPropertyDescriptor(o,l):v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(i,o,l,v);else for(var b=i.length-1;b>=0;b--)(m=i[b])&&(g=(h<3?m(g):h>3?m(o,l,g):m(o,l))||g);return h>3&&g&&Object.defineProperty(o,l,g),g},_=this&&this.__param||function(i,o){return function(l,v){o(l,v,i)}};Object.defineProperty(r,"__esModule",{value:!0}),r.AccessibilityManager=void 0;const n=a(9042),d=a(6114),f=a(9924),p=a(844),u=a(5596),e=a(4725),s=a(3656);let t=r.AccessibilityManager=class extends p.Disposable{constructor(i,o){super(),this._terminal=i,this._renderService=o,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=document.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=document.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let l=0;l<this._terminal.rows;l++)this._rowElements[l]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[l]);if(this._topBoundaryFocusListener=l=>this._handleBoundaryFocus(l,0),this._bottomBoundaryFocusListener=l=>this._handleBoundaryFocus(l,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=document.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new f.TimeBasedDebouncer(this._renderRows.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._terminal.onResize((l=>this._handleResize(l.rows)))),this.register(this._terminal.onRender((l=>this._refreshRows(l.start,l.end)))),this.register(this._terminal.onScroll((()=>this._refreshRows()))),this.register(this._terminal.onA11yChar((l=>this._handleChar(l)))),this.register(this._terminal.onLineFeed((()=>this._handleChar(`
1
+ import{g as Ce}from"./react-vendor-CgLzZcV4.js";function be(q,se){for(var ee=0;ee<se.length;ee++){const J=se[ee];if(typeof J!="string"&&!Array.isArray(J)){for(const G in J)if(G!=="default"&&!(G in q)){const Z=Object.getOwnPropertyDescriptor(J,G);Z&&Object.defineProperty(q,G,Z.get?Z:{enumerable:!0,get:()=>J[G]})}}}return Object.freeze(Object.defineProperty(q,Symbol.toStringTag,{value:"Module"}))}var ve={exports:{}},ge;function ye(){return ge||(ge=1,(function(q,se){(function(ee,J){q.exports=J()})(self,(()=>(()=>{var ee={4567:function(P,r,a){var c=this&&this.__decorate||function(i,o,l,v){var m,h=arguments.length,g=h<3?o:v===null?v=Object.getOwnPropertyDescriptor(o,l):v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(i,o,l,v);else for(var b=i.length-1;b>=0;b--)(m=i[b])&&(g=(h<3?m(g):h>3?m(o,l,g):m(o,l))||g);return h>3&&g&&Object.defineProperty(o,l,g),g},_=this&&this.__param||function(i,o){return function(l,v){o(l,v,i)}};Object.defineProperty(r,"__esModule",{value:!0}),r.AccessibilityManager=void 0;const n=a(9042),d=a(6114),f=a(9924),p=a(844),u=a(5596),e=a(4725),s=a(3656);let t=r.AccessibilityManager=class extends p.Disposable{constructor(i,o){super(),this._terminal=i,this._renderService=o,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=document.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=document.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let l=0;l<this._terminal.rows;l++)this._rowElements[l]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[l]);if(this._topBoundaryFocusListener=l=>this._handleBoundaryFocus(l,0),this._bottomBoundaryFocusListener=l=>this._handleBoundaryFocus(l,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=document.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new f.TimeBasedDebouncer(this._renderRows.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._terminal.onResize((l=>this._handleResize(l.rows)))),this.register(this._terminal.onRender((l=>this._refreshRows(l.start,l.end)))),this.register(this._terminal.onScroll((()=>this._refreshRows()))),this.register(this._terminal.onA11yChar((l=>this._handleChar(l)))),this.register(this._terminal.onLineFeed((()=>this._handleChar(`
2
2
  `)))),this.register(this._terminal.onA11yTab((l=>this._handleTab(l)))),this.register(this._terminal.onKey((l=>this._handleKey(l.key)))),this.register(this._terminal.onBlur((()=>this._clearLiveRegion()))),this.register(this._renderService.onDimensionsChange((()=>this._refreshRowsDimensions()))),this._screenDprMonitor=new u.ScreenDprMonitor(window),this.register(this._screenDprMonitor),this._screenDprMonitor.setListener((()=>this._refreshRowsDimensions())),this.register((0,s.addDisposableDomListener)(window,"resize",(()=>this._refreshRowsDimensions()))),this._refreshRows(),this.register((0,p.toDisposable)((()=>{this._accessibilityContainer.remove(),this._rowElements.length=0})))}_handleTab(i){for(let o=0;o<i;o++)this._handleChar(" ")}_handleChar(i){this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==i&&(this._charsToAnnounce+=i):this._charsToAnnounce+=i,i===`
3
3
  `&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=n.tooMuchOutput)),d.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout((()=>{this._accessibilityContainer.appendChild(this._liveRegion)}),0))}_clearLiveRegion(){this._liveRegion.textContent="",this._liveRegionLineCount=0,d.isMac&&this._liveRegion.remove()}_handleKey(i){this._clearLiveRegion(),new RegExp("\\p{Control}","u").test(i)||this._charsToConsume.push(i)}_refreshRows(i,o){this._liveRegionDebouncer.refresh(i,o,this._terminal.rows)}_renderRows(i,o){const l=this._terminal.buffer,v=l.lines.length.toString();for(let m=i;m<=o;m++){const h=l.translateBufferLineToString(l.ydisp+m,!0),g=(l.ydisp+m+1).toString(),b=this._rowElements[m];b&&(h.length===0?b.innerText=" ":b.textContent=h,b.setAttribute("aria-posinset",g),b.setAttribute("aria-setsize",v))}this._announceCharacters()}_announceCharacters(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}_handleBoundaryFocus(i,o){const l=i.target,v=this._rowElements[o===0?1:this._rowElements.length-2];if(l.getAttribute("aria-posinset")===(o===0?"1":`${this._terminal.buffer.lines.length}`)||i.relatedTarget!==v)return;let m,h;if(o===0?(m=l,h=this._rowElements.pop(),this._rowContainer.removeChild(h)):(m=this._rowElements.shift(),h=l,this._rowContainer.removeChild(m)),m.removeEventListener("focus",this._topBoundaryFocusListener),h.removeEventListener("focus",this._bottomBoundaryFocusListener),o===0){const g=this._createAccessibilityTreeNode();this._rowElements.unshift(g),this._rowContainer.insertAdjacentElement("afterbegin",g)}else{const g=this._createAccessibilityTreeNode();this._rowElements.push(g),this._rowContainer.appendChild(g)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(o===0?-1:1),this._rowElements[o===0?1:this._rowElements.length-2].focus(),i.preventDefault(),i.stopImmediatePropagation()}_handleResize(i){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(let o=this._rowContainer.children.length;o<this._terminal.rows;o++)this._rowElements[o]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[o]);for(;this._rowElements.length>i;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}_createAccessibilityTreeNode(){const i=document.createElement("div");return i.setAttribute("role","listitem"),i.tabIndex=-1,this._refreshRowDimensions(i),i}_refreshRowsDimensions(){if(this._renderService.dimensions.css.cell.height){this._accessibilityContainer.style.width=`${this._renderService.dimensions.css.canvas.width}px`,this._rowElements.length!==this._terminal.rows&&this._handleResize(this._terminal.rows);for(let i=0;i<this._terminal.rows;i++)this._refreshRowDimensions(this._rowElements[i])}}_refreshRowDimensions(i){i.style.height=`${this._renderService.dimensions.css.cell.height}px`}};r.AccessibilityManager=t=c([_(1,e.IRenderService)],t)},3614:(P,r)=>{function a(d){return d.replace(/\r?\n/g,"\r")}function c(d,f){return f?"\x1B[200~"+d+"\x1B[201~":d}function _(d,f,p,u){d=c(d=a(d),p.decPrivateModes.bracketedPasteMode&&u.rawOptions.ignoreBracketedPasteMode!==!0),p.triggerDataEvent(d,!0),f.value=""}function n(d,f,p){const u=p.getBoundingClientRect(),e=d.clientX-u.left-10,s=d.clientY-u.top-10;f.style.width="20px",f.style.height="20px",f.style.left=`${e}px`,f.style.top=`${s}px`,f.style.zIndex="1000",f.focus()}Object.defineProperty(r,"__esModule",{value:!0}),r.rightClickHandler=r.moveTextAreaUnderMouseCursor=r.paste=r.handlePasteEvent=r.copyHandler=r.bracketTextForPaste=r.prepareTextForTerminal=void 0,r.prepareTextForTerminal=a,r.bracketTextForPaste=c,r.copyHandler=function(d,f){d.clipboardData&&d.clipboardData.setData("text/plain",f.selectionText),d.preventDefault()},r.handlePasteEvent=function(d,f,p,u){d.stopPropagation(),d.clipboardData&&_(d.clipboardData.getData("text/plain"),f,p,u)},r.paste=_,r.moveTextAreaUnderMouseCursor=n,r.rightClickHandler=function(d,f,p,u,e){n(d,f,p),e&&u.rightClickSelect(d),f.value=u.selectionText,f.select()}},7239:(P,r,a)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.ColorContrastCache=void 0;const c=a(1505);r.ColorContrastCache=class{constructor(){this._color=new c.TwoKeyMap,this._css=new c.TwoKeyMap}setCss(_,n,d){this._css.set(_,n,d)}getCss(_,n){return this._css.get(_,n)}setColor(_,n,d){this._color.set(_,n,d)}getColor(_,n){return this._color.get(_,n)}clear(){this._color.clear(),this._css.clear()}}},3656:(P,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.addDisposableDomListener=void 0,r.addDisposableDomListener=function(a,c,_,n){a.addEventListener(c,_,n);let d=!1;return{dispose:()=>{d||(d=!0,a.removeEventListener(c,_,n))}}}},6465:function(P,r,a){var c=this&&this.__decorate||function(e,s,t,i){var o,l=arguments.length,v=l<3?s:i===null?i=Object.getOwnPropertyDescriptor(s,t):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(e,s,t,i);else for(var m=e.length-1;m>=0;m--)(o=e[m])&&(v=(l<3?o(v):l>3?o(s,t,v):o(s,t))||v);return l>3&&v&&Object.defineProperty(s,t,v),v},_=this&&this.__param||function(e,s){return function(t,i){s(t,i,e)}};Object.defineProperty(r,"__esModule",{value:!0}),r.Linkifier2=void 0;const n=a(3656),d=a(8460),f=a(844),p=a(2585);let u=r.Linkifier2=class extends f.Disposable{get currentLink(){return this._currentLink}constructor(e){super(),this._bufferService=e,this._linkProviders=[],this._linkCacheDisposables=[],this._isMouseOut=!0,this._wasResized=!1,this._activeLine=-1,this._onShowLinkUnderline=this.register(new d.EventEmitter),this.onShowLinkUnderline=this._onShowLinkUnderline.event,this._onHideLinkUnderline=this.register(new d.EventEmitter),this.onHideLinkUnderline=this._onHideLinkUnderline.event,this.register((0,f.getDisposeArrayDisposable)(this._linkCacheDisposables)),this.register((0,f.toDisposable)((()=>{this._lastMouseEvent=void 0}))),this.register(this._bufferService.onResize((()=>{this._clearCurrentLink(),this._wasResized=!0})))}registerLinkProvider(e){return this._linkProviders.push(e),{dispose:()=>{const s=this._linkProviders.indexOf(e);s!==-1&&this._linkProviders.splice(s,1)}}}attachToDom(e,s,t){this._element=e,this._mouseService=s,this._renderService=t,this.register((0,n.addDisposableDomListener)(this._element,"mouseleave",(()=>{this._isMouseOut=!0,this._clearCurrentLink()}))),this.register((0,n.addDisposableDomListener)(this._element,"mousemove",this._handleMouseMove.bind(this))),this.register((0,n.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,n.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))}_handleMouseMove(e){if(this._lastMouseEvent=e,!this._element||!this._mouseService)return;const s=this._positionFromMouseEvent(e,this._element,this._mouseService);if(!s)return;this._isMouseOut=!1;const t=e.composedPath();for(let i=0;i<t.length;i++){const o=t[i];if(o.classList.contains("xterm"))break;if(o.classList.contains("xterm-hover"))return}this._lastBufferCell&&s.x===this._lastBufferCell.x&&s.y===this._lastBufferCell.y||(this._handleHover(s),this._lastBufferCell=s)}_handleHover(e){if(this._activeLine!==e.y||this._wasResized)return this._clearCurrentLink(),this._askForLink(e,!1),void(this._wasResized=!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,e)||(this._clearCurrentLink(),this._askForLink(e,!0))}_askForLink(e,s){var t,i;this._activeProviderReplies&&s||((t=this._activeProviderReplies)===null||t===void 0||t.forEach((l=>{l==null||l.forEach((v=>{v.link.dispose&&v.link.dispose()}))})),this._activeProviderReplies=new Map,this._activeLine=e.y);let o=!1;for(const[l,v]of this._linkProviders.entries())s?!((i=this._activeProviderReplies)===null||i===void 0)&&i.get(l)&&(o=this._checkLinkProviderResult(l,e,o)):v.provideLinks(e.y,(m=>{var h,g;if(this._isMouseOut)return;const b=m==null?void 0:m.map((L=>({link:L})));(h=this._activeProviderReplies)===null||h===void 0||h.set(l,b),o=this._checkLinkProviderResult(l,e,o),((g=this._activeProviderReplies)===null||g===void 0?void 0:g.size)===this._linkProviders.length&&this._removeIntersectingLinks(e.y,this._activeProviderReplies)}))}_removeIntersectingLinks(e,s){const t=new Set;for(let i=0;i<s.size;i++){const o=s.get(i);if(o)for(let l=0;l<o.length;l++){const v=o[l],m=v.link.range.start.y<e?0:v.link.range.start.x,h=v.link.range.end.y>e?this._bufferService.cols:v.link.range.end.x;for(let g=m;g<=h;g++){if(t.has(g)){o.splice(l--,1);break}t.add(g)}}}}_checkLinkProviderResult(e,s,t){var i;if(!this._activeProviderReplies)return t;const o=this._activeProviderReplies.get(e);let l=!1;for(let v=0;v<e;v++)this._activeProviderReplies.has(v)&&!this._activeProviderReplies.get(v)||(l=!0);if(!l&&o){const v=o.find((m=>this._linkAtPosition(m.link,s)));v&&(t=!0,this._handleNewLink(v))}if(this._activeProviderReplies.size===this._linkProviders.length&&!t)for(let v=0;v<this._activeProviderReplies.size;v++){const m=(i=this._activeProviderReplies.get(v))===null||i===void 0?void 0:i.find((h=>this._linkAtPosition(h.link,s)));if(m){t=!0,this._handleNewLink(m);break}}return t}_handleMouseDown(){this._mouseDownLink=this._currentLink}_handleMouseUp(e){if(!this._element||!this._mouseService||!this._currentLink)return;const s=this._positionFromMouseEvent(e,this._element,this._mouseService);s&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,s)&&this._currentLink.link.activate(e,this._currentLink.link.text)}_clearCurrentLink(e,s){this._element&&this._currentLink&&this._lastMouseEvent&&(!e||!s||this._currentLink.link.range.start.y>=e&&this._currentLink.link.range.end.y<=s)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,f.disposeArray)(this._linkCacheDisposables))}_handleNewLink(e){if(!this._element||!this._lastMouseEvent||!this._mouseService)return;const s=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);s&&this._linkAtPosition(e.link,s)&&(this._currentLink=e,this._currentLink.state={decorations:{underline:e.link.decorations===void 0||e.link.decorations.underline,pointerCursor:e.link.decorations===void 0||e.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,e.link,this._lastMouseEvent),e.link.decorations={},Object.defineProperties(e.link.decorations,{pointerCursor:{get:()=>{var t,i;return(i=(t=this._currentLink)===null||t===void 0?void 0:t.state)===null||i===void 0?void 0:i.decorations.pointerCursor},set:t=>{var i,o;!((i=this._currentLink)===null||i===void 0)&&i.state&&this._currentLink.state.decorations.pointerCursor!==t&&(this._currentLink.state.decorations.pointerCursor=t,this._currentLink.state.isHovered&&((o=this._element)===null||o===void 0||o.classList.toggle("xterm-cursor-pointer",t)))}},underline:{get:()=>{var t,i;return(i=(t=this._currentLink)===null||t===void 0?void 0:t.state)===null||i===void 0?void 0:i.decorations.underline},set:t=>{var i,o,l;!((i=this._currentLink)===null||i===void 0)&&i.state&&((l=(o=this._currentLink)===null||o===void 0?void 0:o.state)===null||l===void 0?void 0:l.decorations.underline)!==t&&(this._currentLink.state.decorations.underline=t,this._currentLink.state.isHovered&&this._fireUnderlineEvent(e.link,t))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange((t=>{if(!this._currentLink)return;const i=t.start===0?0:t.start+1+this._bufferService.buffer.ydisp,o=this._bufferService.buffer.ydisp+1+t.end;if(this._currentLink.link.range.start.y>=i&&this._currentLink.link.range.end.y<=o&&(this._clearCurrentLink(i,o),this._lastMouseEvent&&this._element)){const l=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);l&&this._askForLink(l,!1)}}))))}_linkHover(e,s,t){var i;!((i=this._currentLink)===null||i===void 0)&&i.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(s,!0),this._currentLink.state.decorations.pointerCursor&&e.classList.add("xterm-cursor-pointer")),s.hover&&s.hover(t,s.text)}_fireUnderlineEvent(e,s){const t=e.range,i=this._bufferService.buffer.ydisp,o=this._createLinkUnderlineEvent(t.start.x-1,t.start.y-i-1,t.end.x,t.end.y-i-1,void 0);(s?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(o)}_linkLeave(e,s,t){var i;!((i=this._currentLink)===null||i===void 0)&&i.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(s,!1),this._currentLink.state.decorations.pointerCursor&&e.classList.remove("xterm-cursor-pointer")),s.leave&&s.leave(t,s.text)}_linkAtPosition(e,s){const t=e.range.start.y*this._bufferService.cols+e.range.start.x,i=e.range.end.y*this._bufferService.cols+e.range.end.x,o=s.y*this._bufferService.cols+s.x;return t<=o&&o<=i}_positionFromMouseEvent(e,s,t){const i=t.getCoords(e,s,this._bufferService.cols,this._bufferService.rows);if(i)return{x:i[0],y:i[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(e,s,t,i,o){return{x1:e,y1:s,x2:t,y2:i,cols:this._bufferService.cols,fg:o}}};r.Linkifier2=u=c([_(0,p.IBufferService)],u)},9042:(P,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.tooMuchOutput=r.promptLabel=void 0,r.promptLabel="Terminal input",r.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},3730:function(P,r,a){var c=this&&this.__decorate||function(u,e,s,t){var i,o=arguments.length,l=o<3?e:t===null?t=Object.getOwnPropertyDescriptor(e,s):t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(u,e,s,t);else for(var v=u.length-1;v>=0;v--)(i=u[v])&&(l=(o<3?i(l):o>3?i(e,s,l):i(e,s))||l);return o>3&&l&&Object.defineProperty(e,s,l),l},_=this&&this.__param||function(u,e){return function(s,t){e(s,t,u)}};Object.defineProperty(r,"__esModule",{value:!0}),r.OscLinkProvider=void 0;const n=a(511),d=a(2585);let f=r.OscLinkProvider=class{constructor(u,e,s){this._bufferService=u,this._optionsService=e,this._oscLinkService=s}provideLinks(u,e){var s;const t=this._bufferService.buffer.lines.get(u-1);if(!t)return void e(void 0);const i=[],o=this._optionsService.rawOptions.linkHandler,l=new n.CellData,v=t.getTrimmedLength();let m=-1,h=-1,g=!1;for(let b=0;b<v;b++)if(h!==-1||t.hasContent(b)){if(t.loadCell(b,l),l.hasExtendedAttrs()&&l.extended.urlId){if(h===-1){h=b,m=l.extended.urlId;continue}g=l.extended.urlId!==m}else h!==-1&&(g=!0);if(g||h!==-1&&b===v-1){const L=(s=this._oscLinkService.getLinkData(m))===null||s===void 0?void 0:s.uri;if(L){const y={start:{x:h+1,y:u},end:{x:b+(g||b!==v-1?0:1),y:u}};let k=!1;if(!(o!=null&&o.allowNonHttpProtocols))try{const x=new URL(L);["http:","https:"].includes(x.protocol)||(k=!0)}catch{k=!0}k||i.push({text:L,range:y,activate:(x,T)=>o?o.activate(x,T,y):p(0,T),hover:(x,T)=>{var O;return(O=o==null?void 0:o.hover)===null||O===void 0?void 0:O.call(o,x,T,y)},leave:(x,T)=>{var O;return(O=o==null?void 0:o.leave)===null||O===void 0?void 0:O.call(o,x,T,y)}})}g=!1,l.hasExtendedAttrs()&&l.extended.urlId?(h=b,m=l.extended.urlId):(h=-1,m=-1)}}e(i)}};function p(u,e){if(confirm(`Do you want to navigate to ${e}?
4
4