@tickernelz/paperclip-pro-ui 2026.1009.1 → 2026.1009.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{AgentAvatar-CowKoklf.js → AgentAvatar-Jt6HpvU2.js} +1 -1
- package/dist/assets/{AgentIdentity-B0GifyUo.js → AgentIdentity-2cID8kur.js} +1 -1
- package/dist/assets/{Agents.production-FaM4wpTS.js → Agents.production-DSa6Vl3y.js} +2 -2
- package/dist/assets/{CompanyActivity.production-BcH-cmKg.js → CompanyActivity.production-CXZY_w67.js} +1 -1
- package/dist/assets/{CompanyExport-E9rrQ06I.js → CompanyExport-BlNlzmA0.js} +1 -1
- package/dist/assets/{CompanySkills.production-CZdyIGAh.js → CompanySkills.production-Wzc95Tf4.js} +1 -1
- package/dist/assets/{Costs.production-DVpc3sPN.js → Costs.production-Dgazqe6X.js} +1 -1
- package/dist/assets/{EmptyState-B54qBJdG.js → EmptyState-B1JSbXSE.js} +1 -1
- package/dist/assets/MarkdownBody-CvvH69j_.js +16 -0
- package/dist/assets/{MarkdownEditor-Dkh_ud4t.js → MarkdownEditor-DCE_KC27.js} +7 -7
- package/dist/assets/{OrgChart.production-BVyu-TT-.js → OrgChart.production-BEhpdEr9.js} +1 -1
- package/dist/assets/{PageSkeleton-DOrN07nB.js → PageSkeleton-BmmfQJ6g.js} +1 -1
- package/dist/assets/{RoutineDetail.production-DfjhhWSv.js → RoutineDetail.production-CpuZ5sxp.js} +1 -1
- package/dist/assets/{RoutineRunVariablesDialog-wvsgUi5R.js → RoutineRunVariablesDialog-C-j5V71-.js} +1 -1
- package/dist/assets/{Routines.production-DdwLEgVn.js → Routines.production-Dt1_0n4r.js} +1 -1
- package/dist/assets/{SidebarContext-e0rNi3On.js → SidebarContext-BguZPmI9.js} +1 -1
- package/dist/assets/{StatusIcon-CJevr908.js → StatusIcon-BCy8D6Fj.js} +1 -1
- package/dist/assets/{agent-avatar-url-BgtuDQuJ.js → agent-avatar-url-DtOIjE-b.js} +1 -1
- package/dist/assets/{agents-BqHpxyXa.js → agents-DA5qW1fs.js} +1 -1
- package/dist/assets/{badge-B1opbM2C.js → badge-DEcdN2HY.js} +1 -1
- package/dist/assets/{bot-COgMVxie.js → bot-S2JV9WBV.js} +1 -1
- package/dist/assets/{boxes-CmvDVxbq.js → boxes-CeCVqNtb.js} +1 -1
- package/dist/assets/{button-CiCWqyHT.js → button-yf2m1_gs.js} +1 -1
- package/dist/assets/{card-sHXnFZQl.js → card-Cl_LFk7c.js} +1 -1
- package/dist/assets/{check-Co2tYHc6.js → check-xeGJ2HPN.js} +1 -1
- package/dist/assets/{checkbox-DxzcpGzB.js → checkbox-CIcktoHJ.js} +1 -1
- package/dist/assets/{chevron-down-iZ-OPfMP.js → chevron-down-CZ7qFy9y.js} +1 -1
- package/dist/assets/{chevron-right-C2GZk5mS.js → chevron-right-D0Hti4WB.js} +1 -1
- package/dist/assets/{clipboard-Ch2RFnBG.js → clipboard-NgncerTn.js} +1 -1
- package/dist/assets/{company-members-BJTKKG75.js → company-members-CDG03HZV.js} +1 -1
- package/dist/assets/{definition-BXj7kCHc.js → definition-Doyo4Zr4.js} +1 -1
- package/dist/assets/{dist-CgrzrDl3.js → dist-B6HyW9be.js} +1 -1
- package/dist/assets/{dist-CcAKjIy0.js → dist-BAFQ8Oiq.js} +1 -1
- package/dist/assets/{environments-CrkAniLn.js → environments-BT_uDOM8.js} +1 -1
- package/dist/assets/{external-link-DO6q0R3l.js → external-link-CjUn0PMx.js} +1 -1
- package/dist/assets/{file-text-DPKvkhqC.js → file-text-D87G0ZiA.js} +1 -1
- package/dist/assets/{health-DJWMhATw.js → health-k3cyi4s3.js} +1 -1
- package/dist/assets/{heartbeats-BIzk9_-_.js → heartbeats-DeXOtSp3.js} +1 -1
- package/dist/assets/{index-iLdUWxoA.js → index-DzwtTcH-.js} +153 -153
- package/dist/assets/{input-C5_FG4bG.js → input-DnT08BOo.js} +1 -1
- package/dist/assets/{label-LNcfjNUd.js → label-DSx2Qxn6.js} +1 -1
- package/dist/assets/{loader-circle-ClbceUoH.js → loader-circle-DSiPgghG.js} +1 -1
- package/dist/assets/{mention-chips-DaQB1XXn.js → mention-chips-OAQdMAP9.js} +2 -2
- package/dist/assets/{octagon-alert-DvPiKDSj.js → octagon-alert-BbqyswZU.js} +1 -1
- package/dist/assets/{rotate-ccw-CnVoQJ8c.js → rotate-ccw-Du0rX6yB.js} +1 -1
- package/dist/assets/{router-7hDvVKpK.js → router-CoeH24PK.js} +2 -2
- package/dist/assets/{save-C8Purtgn.js → save-d5benU21.js} +1 -1
- package/dist/assets/{select-B_zFVzlA.js → select-DarpvIBM.js} +1 -1
- package/dist/assets/{sheet-Xthrybbp.js → sheet-_VebRl9q.js} +1 -1
- package/dist/assets/{skeleton-CYpNbxbP.js → skeleton-BY2fv9gX.js} +1 -1
- package/dist/assets/{tabs-DGoH6b9z.js → tabs-BfWJYNcW.js} +1 -1
- package/dist/assets/{triangle-alert-gvuERj81.js → triangle-alert-VjOLPhJL.js} +1 -1
- package/dist/assets/{use-adapter-capabilities-BwZhnyTf.js → use-adapter-capabilities-CI0JeLXc.js} +1 -1
- package/dist/assets/{useHiddenSettings-pmha2KHR.js → useHiddenSettings-BpAre2Wp.js} +1 -1
- package/dist/index.html +45 -45
- package/dist/sw.js +1 -1
- package/package.json +1 -1
- package/dist/assets/MarkdownBody-C7RW4IEj.js +0 -16
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mermaid.core-Be3XJK9z.js","assets/preload-helper-CceJXRIF.js","assets/chunk-Y2CYZVJY-OvsAdhaO.js","assets/src-Bssc388C.js","assets/rolldown-runtime-ZpX3ckPj.js","assets/chunk-DU6HZSFF-mLZ_DAj9.js","assets/chunk-75Z2AOVW-CTyOxDW3.js","assets/dist-Cj4C2HPs.js","assets/chunk-PWAF6VOD-DHqPPKbd.js","assets/chunk-GMAD6QVW-Vk29EsOn.js","assets/chunk-P2QGCYS3-DD1uZyrA.js","assets/chunk-4HAMMTFA-Duh1dbZg.js","assets/rough.esm-DnC5Tr1g.js","assets/chunk-GVQU2GXP-D5bNpR4K.js","assets/chunk-OSK3NFVY-BfvIkdmA.js","assets/line-Dk_ouzM8.js","assets/path-D6mommQw.js","assets/array-CL5Tisss.js","assets/graphlib-DHhK3saS.js","assets/chunk-L3NEJ4N5-GADujcju.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
var $n=Object.defineProperty;var o=(e,t)=>$n(e,"name",{value:t,configurable:!0});import{i as Ce,n as Hn,t as ie}from"./rolldown-runtime-ZpX3ckPj.js";import{Fi as Wn,G as Tt,Hr as fe,Li as Vn,Pi as Nt,S as H,Z as qe,ni as _t,t as Ot}from"./agent-avatar-url-BgtuDQuJ.js";import{t as Kn}from"./preload-helper-CceJXRIF.js";import{J as qn,a as Xn,c as Gn,ft as Yn,o as Zn,s as Jn,t as Xe,zt as Mt}from"./router-7hDvVKpK.js";import{C as Qn,D as zt,F as Oe,H as re,I as ut,J as Ge,K as W,L as er,P as N,R as tr,S as nr,U as le,W as rr,Y as J,_ as lr,c as or,d as ir,f as ur,g as ue,h as ar,i as Ut,j as Ye,k as at,l as sr,m as cr,p as pr,r as $t,u as fr,x as Ze,z as dr}from"./mention-chips-DaQB1XXn.js";import{t as hr}from"./agents-BqHpxyXa.js";import{b as mr,c as gr,d as Dr,h as st,i as Ht,l as Fr,m as yr,n as wr,t as Cr,u as Wt}from"./StatusIcon-CJevr908.js";import{t as kr}from"./check-Co2tYHc6.js";import{p as Er}from"./button-CiCWqyHT.js";import{i as Ar,r as br,t as vr}from"./clipboard-Ch2RFnBG.js";import{t as xr}from"./external-link-DO6q0R3l.js";var Vt={name:"file-code-corner",size:24,node:[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]],aliases:["file-code-2"]};Vt.node;var Sr=Ot(Vt),Kt={name:"text-wrap",size:24,node:[["path",{d:"m16 16-3 3 3 3",key:"117b85"}],["path",{d:"M3 12h14.5a1 1 0 0 1 0 7H13",key:"18xa6z"}],["path",{d:"M3 19h6",key:"1ygdsz"}],["path",{d:"M3 5h18",key:"1u36vt"}]],aliases:["wrap-text"]};Kt.node;var Br=Ot(Kt);function Q(e){const t=[];let n=-1,r=0,l=0;for(;++n<e.length;){const u=e.charCodeAt(n);let i="";if(u===37&&le(e.charCodeAt(n+1))&&le(e.charCodeAt(n+2)))l=2;else if(u<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(u))||(i=String.fromCharCode(u));else if(u>55295&&u<57344){const a=e.charCodeAt(n+1);u<56320&&a>56319&&a<57344?(i=String.fromCharCode(u,a),l=1):i="�"}else i=String.fromCharCode(u);i&&(t.push(e.slice(r,n),encodeURIComponent(i)),r=n+l+1,i=""),l&&(n+=l,l=0)}return t.join("")+e.slice(r)}o(Q,"normalizeUri");var F=Ce(Vn(),1),D=Ce(Wn(),1);function Ir(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}o(Ir,"escapeStringRegexp");var qt="paperclip.theme",Pr="#18181b",Lr="#ffffff",Xt=(0,F.createContext)(void 0);function jr(){return typeof document>"u"||document.documentElement.classList.contains("dark")?"dark":"light"}o(jr,"resolveThemeFromDocument");function Rr(){if(typeof window>"u")return!1;try{const e=window.localStorage.getItem(qt);return e==="light"||e==="dark"}catch{return!1}}o(Rr,"hasStoredTheme");function Tr(e){if(typeof document>"u")return;const t=e==="dark",n=document.documentElement;n.classList.toggle("dark",t),n.style.colorScheme=t?"dark":"light";const r=document.querySelector('meta[name="theme-color"]');r instanceof HTMLMetaElement&&r.setAttribute("content",t?Pr:Lr)}o(Tr,"applyTheme");function Ea({children:e}){const[t,n]=(0,F.useState)(()=>jr()),[r,l]=(0,F.useState)(()=>Rr()),u=(0,F.useCallback)(s=>{l(!0),n(s)},[]),i=(0,F.useCallback)(()=>{l(!0),n(s=>s==="dark"?"light":"dark")},[]);(0,F.useEffect)(()=>{if(Tr(t),!!r)try{localStorage.setItem(qt,t)}catch{}},[t,r]),(0,F.useEffect)(()=>{if(r||typeof window>"u"||typeof window.matchMedia!="function")return;const s=window.matchMedia("(prefers-color-scheme: dark)"),p=o(f=>{n(f.matches?"dark":"light")},"handleChange");return s.addEventListener("change",p),()=>s.removeEventListener("change",p)},[r]);const a=(0,F.useMemo)(()=>({theme:t,setTheme:u,toggleTheme:i}),[t,u,i]);return(0,D.jsx)(Xt.Provider,{value:a,children:e})}o(Ea,"ThemeProvider");function Nr(){const e=(0,F.useContext)(Xt);if(!e)throw new Error("useTheme must be used within ThemeProvider");return e}o(Nr,"useTheme");function _r(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}o(_r,"stringify$1");var Or=/[ \t\n\f\r]/g;function Mr(e){return typeof e=="object"?e.type==="text"?ct(e.value):!1:ct(e)}o(Mr,"whitespace");function ct(e){return e.replace(Or,"")===""}o(ct,"empty");var ae=class{static{o(this,"Schema")}constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};ae.prototype.normal={};ae.prototype.property={};ae.prototype.space=void 0;function Gt(e,t){const n={},r={};for(const l of e)Object.assign(n,l.property),Object.assign(r,l.normal);return new ae(n,r,t)}o(Gt,"merge");function Me(e){return e.toLowerCase()}o(Me,"normalize$1");var O=class{static{o(this,"Info")}constructor(e,t){this.attribute=t,this.property=e}};O.prototype.attribute="";O.prototype.booleanish=!1;O.prototype.boolean=!1;O.prototype.commaOrSpaceSeparated=!1;O.prototype.commaSeparated=!1;O.prototype.defined=!1;O.prototype.mustUseProperty=!1;O.prototype.number=!1;O.prototype.overloadedBoolean=!1;O.prototype.property="";O.prototype.spaceSeparated=!1;O.prototype.space=void 0;var ze=Hn({boolean:o(()=>b,"boolean"),booleanish:o(()=>R,"booleanish"),commaOrSpaceSeparated:o(()=>M,"commaOrSpaceSeparated"),commaSeparated:o(()=>G,"commaSeparated"),number:o(()=>m,"number"),overloadedBoolean:o(()=>Ue,"overloadedBoolean"),spaceSeparated:o(()=>L,"spaceSeparated")}),zr=0,b=Y(),R=Y(),Ue=Y(),m=Y(),L=Y(),G=Y(),M=Y();function Y(){return 2**++zr}o(Y,"increment");var Ae=Object.keys(ze),Je=class extends O{static{o(this,"DefinedInfo")}constructor(e,t,n,r){let l=-1;if(super(e,t),pt(this,"space",r),typeof n=="number")for(;++l<Ae.length;){const u=Ae[l];pt(this,Ae[l],(n&ze[u])===ze[u])}}};Je.prototype.defined=!0;function pt(e,t,n){n&&(e[t]=n)}o(pt,"mark");function ee(e){const t={},n={};for(const[r,l]of Object.entries(e.properties)){const u=new Je(r,e.transform(e.attributes||{},r),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(u.mustUseProperty=!0),t[r]=u,n[Me(r)]=r,n[Me(u.attribute)]=r}return new ae(t,n,e.space)}o(ee,"create");var Yt=ee({properties:{ariaActiveDescendant:null,ariaAtomic:R,ariaAutoComplete:null,ariaBusy:R,ariaChecked:R,ariaColCount:m,ariaColIndex:m,ariaColSpan:m,ariaControls:L,ariaCurrent:null,ariaDescribedBy:L,ariaDetails:null,ariaDisabled:R,ariaDropEffect:L,ariaErrorMessage:null,ariaExpanded:R,ariaFlowTo:L,ariaGrabbed:R,ariaHasPopup:null,ariaHidden:R,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:L,ariaLevel:m,ariaLive:null,ariaModal:R,ariaMultiLine:R,ariaMultiSelectable:R,ariaOrientation:null,ariaOwns:L,ariaPlaceholder:null,ariaPosInSet:m,ariaPressed:R,ariaReadOnly:R,ariaRelevant:null,ariaRequired:R,ariaRoleDescription:L,ariaRowCount:m,ariaRowIndex:m,ariaRowSpan:m,ariaSelected:R,ariaSetSize:m,ariaSort:null,ariaValueMax:m,ariaValueMin:m,ariaValueNow:m,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Zt(e,t){return t in e?e[t]:t}o(Zt,"caseSensitiveTransform");function Jt(e,t){return Zt(e,t.toLowerCase())}o(Jt,"caseInsensitiveTransform");var Ur=ee({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:G,acceptCharset:L,accessKey:L,action:null,allow:null,allowFullScreen:b,allowPaymentRequest:b,allowUserMedia:b,alpha:b,alt:null,as:null,async:b,autoCapitalize:null,autoComplete:L,autoFocus:b,autoPlay:b,blocking:L,capture:null,charSet:null,checked:b,cite:null,className:L,closedBy:null,colorSpace:null,cols:m,colSpan:m,command:null,commandFor:null,content:null,contentEditable:R,controls:b,controlsList:L,coords:m|G,crossOrigin:null,data:null,dateTime:null,decoding:null,default:b,defer:b,dir:null,dirName:null,disabled:b,download:Ue,draggable:R,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:b,formTarget:null,headers:L,height:m,hidden:Ue,high:m,href:null,hrefLang:null,htmlFor:L,httpEquiv:L,id:null,imageSizes:null,imageSrcSet:null,inert:b,inputMode:null,integrity:null,is:null,isMap:b,itemId:null,itemProp:L,itemRef:L,itemScope:b,itemType:L,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:b,low:m,manifest:null,max:null,maxLength:m,media:null,method:null,min:null,minLength:m,multiple:b,muted:b,name:null,nonce:null,noModule:b,noValidate:b,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:b,optimum:m,pattern:null,ping:L,placeholder:null,playsInline:b,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:b,referrerPolicy:null,rel:L,required:b,reversed:b,rows:m,rowSpan:m,sandbox:L,scope:null,scoped:b,seamless:b,selected:b,shadowRootClonable:b,shadowRootCustomElementRegistry:b,shadowRootDelegatesFocus:b,shadowRootMode:null,shadowRootSerializable:b,shape:null,size:m,sizes:null,slot:null,span:m,spellCheck:R,src:null,srcDoc:null,srcLang:null,srcSet:null,start:m,step:null,style:null,tabIndex:m,target:null,title:null,translate:null,type:null,typeMustMatch:b,useMap:null,value:R,width:m,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:L,axis:null,background:null,bgColor:null,border:m,borderColor:null,bottomMargin:m,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:b,declare:b,event:null,face:null,frame:null,frameBorder:null,hSpace:m,leftMargin:m,link:null,longDesc:null,lowSrc:null,marginHeight:m,marginWidth:m,noResize:b,noHref:b,noShade:b,noWrap:b,object:null,profile:null,prompt:null,rev:null,rightMargin:m,rules:null,scheme:null,scrolling:R,standby:null,summary:null,text:null,topMargin:m,valueType:null,version:null,vAlign:null,vLink:null,vSpace:m,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:b,disablePictureInPicture:b,disableRemotePlayback:b,exportParts:G,part:L,prefix:null,property:null,results:m,security:null,unselectable:null},space:"html",transform:Jt}),$r=ee({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:M,accentHeight:m,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:m,amplitude:m,arabicForm:null,ascent:m,attributeName:null,attributeType:null,azimuth:m,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:m,by:null,calcMode:null,capHeight:m,className:L,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:m,diffuseConstant:m,direction:null,display:null,dur:null,divisor:m,dominantBaseline:null,download:b,dx:null,dy:null,edgeMode:null,editable:null,elevation:m,enableBackground:null,end:null,event:null,exponent:m,externalResourcesRequired:null,fill:null,fillOpacity:m,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:G,g2:G,glyphName:G,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:m,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:m,horizOriginX:m,horizOriginY:m,id:null,ideographic:m,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:m,k:m,k1:m,k2:m,k3:m,k4:m,kernelMatrix:M,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:m,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:m,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:m,overlineThickness:m,paintOrder:null,panose1:null,path:null,pathLength:m,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:L,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:m,pointsAtY:m,pointsAtZ:m,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:M,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:M,rev:M,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:M,requiredFeatures:M,requiredFonts:M,requiredFormats:M,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:m,specularExponent:m,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:m,strikethroughThickness:m,string:null,stroke:null,strokeDashArray:M,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:m,strokeOpacity:m,strokeWidth:null,style:null,surfaceScale:m,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:M,tabIndex:m,tableValues:null,target:null,targetX:m,targetY:m,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:M,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:m,underlineThickness:m,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:m,values:null,vAlphabetic:m,vMathematical:m,vectorEffect:null,vHanging:m,vIdeographic:m,version:null,vertAdvY:m,vertOriginX:m,vertOriginY:m,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:m,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Zt}),Qt=ee({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()}}),en=ee({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Jt}),tn=ee({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Hr={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"},Wr=/[A-Z]/g,ft=/-[a-z]/g,Vr=/^data[-\w.:]+$/i;function Kr(e,t){const n=Me(t);let r=t,l=O;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Vr.test(t)){if(t.charAt(4)==="-"){const u=t.slice(5).replace(ft,Xr);r="data"+u.charAt(0).toUpperCase()+u.slice(1)}else{const u=t.slice(4);if(!ft.test(u)){let i=u.replace(Wr,qr);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}l=Je}return new l(r,t)}o(Kr,"find");function qr(e){return"-"+e.toLowerCase()}o(qr,"kebab");function Xr(e){return e.charAt(1).toUpperCase()}o(Xr,"camelcase");var Gr=Gt([Yt,Ur,Qt,en,tn],"html"),Qe=Gt([Yt,$r,Qt,en,tn],"svg");function Yr(e){return e.join(" ").trim()}o(Yr,"stringify");var Zr=ie(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,l=/^\s*/,u=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,p=/^\s+|\s+$/g,f=`
|
|
3
|
-
`,c="/",d="*",h="",g="comment",y="declaration";function w(C,I){if(typeof C!="string")throw new TypeError("First argument must be a string");if(!C)return[];I=I||{};var E=1,v=1;function k(P){var S=P.match(r);S&&(E+=S.length);var _=P.lastIndexOf(f);v=~_?P.length-_:v+P.length}o(k,"updatePosition");function x(){var P={line:E,column:v};return function(S){return S.position=new B(P),q(),S}}o(x,"position");function B(P){this.start=P,this.end={line:E,column:v},this.source=I.source}o(B,"Position"),B.prototype.content=C;function j(P){var S=new Error(I.source+":"+E+":"+v+": "+P);if(S.reason=P,S.filename=I.source,S.line=E,S.column=v,S.source=C,!I.silent)throw S}o(j,"error");function z(P){var S=P.exec(C);if(S){var _=S[0];return k(_),C=C.slice(_.length),S}}o(z,"match");function q(){z(l)}o(q,"whitespace");function te(P){var S;for(P=P||[];S=T();)S!==!1&&P.push(S);return P}o(te,"comments");function T(){var P=x();if(!(c!=C.charAt(0)||d!=C.charAt(1))){for(var S=2;h!=C.charAt(S)&&(d!=C.charAt(S)||c!=C.charAt(S+1));)++S;if(S+=2,h===C.charAt(S-1))return j("End of comment missing");var _=C.slice(2,S-2);return v+=2,k(_),C=C.slice(S),v+=2,P({type:g,comment:_})}}o(T,"comment");function ce(){var P=x(),S=z(u);if(S){if(T(),!z(i))return j("property missing ':'");var _=z(a),Ee=P({type:y,property:A(S[0].replace(n,h)),value:_?A(_[0].replace(n,h)):h});return z(s),Ee}}o(ce,"declaration");function pe(){var P=[];te(P);for(var S;S=ce();)S!==!1&&(P.push(S),te(P));return P}return o(pe,"declarations"),q(),pe()}o(w,"index");function A(C){return C?C.replace(p,h):h}o(A,"trim"),t.exports=w})),Jr=ie((e=>{var t=e&&e.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var n=t(Zr());function r(l,u){let i=null;if(!l||typeof l!="string")return i;const a=(0,n.default)(l),s=typeof u=="function";return a.forEach(p=>{if(p.type!=="declaration")return;const{property:f,value:c}=p;s?u(f,c,p):c&&(i=i||{},i[f]=c)}),i}o(r,"StyleToObject")})),Qr=ie((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,l=/^-(webkit|moz|ms|o|khtml)-/,u=/^-(ms)-/,i=o(function(f){return!f||r.test(f)||t.test(f)},"skipCamelCase"),a=o(function(f,c){return c.toUpperCase()},"capitalize"),s=o(function(f,c){return"".concat(c,"-")},"trimHyphen"),p=o(function(f,c){return c===void 0&&(c={}),i(f)?f:(f=f.toLowerCase(),c.reactCompat?f=f.replace(u,s):f=f.replace(l,s),f.replace(n,a))},"camelCase");e.camelCase=p})),el=ie(((e,t)=>{var n=(e&&e.__importDefault||function(u){return u&&u.__esModule?u:{default:u}})(Jr()),r=Qr();function l(u,i){var a={};return!u||typeof u!="string"||(0,n.default)(u,function(s,p){s&&p&&(a[(0,r.camelCase)(s,i)]=p)}),a}o(l,"StyleToJS"),l.default=l,t.exports=l})),nn=rn("end"),et=rn("start");function rn(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}o(rn,"point");function tl(e){const t=et(e),n=nn(e);if(t&&n)return{start:t,end:n}}o(tl,"position");var nl=Ce(el(),1),tt={}.hasOwnProperty,rl=new Map,ll=/[A-Z]/g,ol=new Set(["table","tbody","thead","tfoot","tr"]),il=new Set(["td","th"]),ln="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function ul(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=ml(n,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");r=hl(n,t.jsx,t.jsxs)}const l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Qe:Gr,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},u=on(l,e,void 0);return u&&typeof u!="string"?u:l.create(e,l.Fragment,{children:u||void 0},void 0)}o(ul,"toJsxRuntime");function on(e,t,n){if(t.type==="element")return al(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return sl(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return pl(e,t,n);if(t.type==="mdxjsEsm")return cl(e,t);if(t.type==="root")return fl(e,t,n);if(t.type==="text")return dl(e,t)}o(on,"one$1");function al(e,t,n){const r=e.schema;let l=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(l=Qe,e.schema=l),e.ancestors.push(t);const u=an(e,t.tagName,!1),i=gl(e,t);let a=rt(e,t);return ol.has(t.tagName)&&(a=a.filter(function(s){return typeof s=="string"?!Mr(s):!0})),un(e,i,u,t),nt(i,a),e.ancestors.pop(),e.schema=r,e.create(t,u,i,n)}o(al,"element");function sl(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)}oe(e,t.position)}o(sl,"mdxExpression");function cl(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);oe(e,t.position)}o(cl,"mdxEsm");function pl(e,t,n){const r=e.schema;let l=r;t.name==="svg"&&r.space==="html"&&(l=Qe,e.schema=l),e.ancestors.push(t);const u=t.name===null?e.Fragment:an(e,t.name,!0),i=Dl(e,t),a=rt(e,t);return un(e,i,u,t),nt(i,a),e.ancestors.pop(),e.schema=r,e.create(t,u,i,n)}o(pl,"mdxJsxElement");function fl(e,t,n){const r={};return nt(r,rt(e,t)),e.create(t,e.Fragment,r,n)}o(fl,"root$1");function dl(e,t){return t.value}o(dl,"text$2");function un(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}o(un,"addNode");function nt(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}o(nt,"addChildren");function hl(e,t,n){return r;function r(l,u,i,a){const s=Array.isArray(i.children)?n:t;return a?s(u,i,a):s(u,i)}}o(hl,"productionCreate");function ml(e,t){return n;function n(r,l,u,i){const a=Array.isArray(u.children),s=et(r);return t(l,u,i,a,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}o(ml,"developmentCreate");function gl(e,t){const n={};let r,l;for(l in t.properties)if(l!=="children"&&tt.call(t.properties,l)){const u=Fl(e,l,t.properties[l]);if(u){const[i,a]=u;e.tableCellAlignToStyle&&i==="align"&&typeof a=="string"&&il.has(t.tagName)?r=a:n[i]=a}}if(r){const u=n.style||(n.style={});u[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}o(gl,"createElementProps");function Dl(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const l=r.data.estree.body[0];l.type;const u=l.expression;u.type;const i=u.properties[0];i.type,Object.assign(n,e.evaluater.evaluateExpression(i.argument))}else oe(e,t.position);else{const l=r.name;let u;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const i=r.value.data.estree.body[0];i.type,u=e.evaluater.evaluateExpression(i.expression)}else oe(e,t.position);else u=r.value===null?!0:r.value;n[l]=u}return n}o(Dl,"createJsxElementProps");function rt(e,t){const n=[];let r=-1;const l=e.passKeys?new Map:rl;for(;++r<t.children.length;){const u=t.children[r];let i;if(e.passKeys){const s=u.type==="element"?u.tagName:u.type==="mdxJsxFlowElement"||u.type==="mdxJsxTextElement"?u.name:void 0;if(s){const p=l.get(s)||0;i=s+"-"+p,l.set(s,p+1)}}const a=on(e,u,i);a!==void 0&&n.push(a)}return n}o(rt,"createChildren");function Fl(e,t,n){const r=Kr(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?_r(n):Yr(n)),r.property==="style"){let l=typeof n=="object"?n:yl(e,String(n));return e.stylePropertyNameCase==="css"&&(l=wl(l)),["style",l]}return[e.elementAttributeNameCase==="react"&&r.space?Hr[r.property]||r.property:r.attribute,n]}}o(Fl,"createProperty");function yl(e,t){try{return(0,nl.default)(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,l=new Ye("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw l.file=e.filePath||void 0,l.url=ln+"#cannot-parse-style-attribute",l}}o(yl,"parseStyle");function an(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const l=t.split(".");let u=-1,i;for(;++u<l.length;){const a=at(l[u])?{type:"Identifier",name:l[u]}:{type:"Literal",value:l[u]};i=i?{type:"MemberExpression",object:i,property:a,computed:!!(u&&a.type==="Literal"),optional:!1}:a}r=i}else r=at(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const l=r.value;return tt.call(e.components,l)?e.components[l]:l}if(e.evaluater)return e.evaluater.evaluateExpression(r);oe(e)}o(an,"findComponentFromName");function oe(e,t){const n=new Ye("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=ln+"#cannot-handle-mdx-estrees-without-createevaluater",n}o(oe,"crashEstree");function wl(e){const t={};let n;for(n in e)tt.call(e,n)&&(t[Cl(n)]=e[n]);return t}o(wl,"transformStylesToCssCasing");function Cl(e){let t=e.replace(ll,kl);return t.slice(0,3)==="ms-"&&(t="-"+t),t}o(Cl,"transformStyleToCssCasing");function kl(e){return"-"+e.toLowerCase()}o(kl,"toDash");var be={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"]};function El(e){const t=this;t.parser=n;function n(r){return cr(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}o(n,"parser")}o(El,"remarkParse");function Al(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}o(Al,"blockquote");function bl(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
4
|
-
`}]}o(bl,"hardBreak");function vl(e,t){const n=t.value?t.value+`
|
|
5
|
-
`:"",r={},l=t.lang?t.lang.split(/\s+/):[];l.length>0&&(r.className=["language-"+l[0]]);let u={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(u.data={meta:t.meta}),e.patch(t,u),u=e.applyData(t,u),u={type:"element",tagName:"pre",properties:{},children:[u]},e.patch(t,u),u}o(vl,"code$1");function xl(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}o(xl,"strikethrough");function Sl(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}o(Sl,"emphasis");function Bl(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),l=Q(r.toLowerCase()),u=e.footnoteOrder.indexOf(r);let i,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),i=e.footnoteOrder.length):i=u+1,a+=1,e.footnoteCounts.set(r,a);const s={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+l,id:n+"fnref-"+l+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(i)}]};e.patch(t,s);const p={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,p),e.applyData(t,p)}o(Bl,"footnoteReference$1");function Il(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}o(Il,"heading");function Pl(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}o(Pl,"html");function sn(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const l=e.all(t),u=l[0];u&&u.type==="text"?u.value="["+u.value:l.unshift({type:"text",value:"["});const i=l[l.length-1];return i&&i.type==="text"?i.value+=r:l.push({type:"text",value:r}),l}o(sn,"revert");function Ll(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return sn(e,t);const l={src:Q(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(l.title=r.title);const u={type:"element",tagName:"img",properties:l,children:[]};return e.patch(t,u),e.applyData(t,u)}o(Ll,"imageReference");function jl(e,t){const n={src:Q(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}o(jl,"image");function Rl(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}o(Rl,"inlineCode");function Tl(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return sn(e,t);const l={href:Q(r.url||"")};r.title!==null&&r.title!==void 0&&(l.title=r.title);const u={type:"element",tagName:"a",properties:l,children:e.all(t)};return e.patch(t,u),e.applyData(t,u)}o(Tl,"linkReference");function Nl(e,t){const n={href:Q(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}o(Nl,"link");function _l(e,t,n){const r=e.all(t),l=n?Ol(n):cn(t),u={},i=[];if(typeof t.checked=="boolean"){const f=r[0];let c;f&&f.type==="element"&&f.tagName==="p"?c=f:(c={type:"element",tagName:"p",properties:{},children:[]},r.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),u.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const f=r[a];(l||a!==0||f.type!=="element"||f.tagName!=="p")&&i.push({type:"text",value:`
|
|
6
|
-
`}),f.type==="element"&&f.tagName==="p"&&!l?i.push(...f.children):i.push(f)}const s=r[r.length-1];s&&(l||s.type!=="element"||s.tagName!=="p")&&i.push({type:"text",value:`
|
|
7
|
-
`});const p={type:"element",tagName:"li",properties:u,children:i};return e.patch(t,p),e.applyData(t,p)}o(_l,"listItem");function Ol(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=cn(n[r])}return t}o(Ol,"listLoose");function cn(e){const t=e.spread;return t??e.children.length>1}o(cn,"listItemLoose");function Ml(e,t){const n={},r=e.all(t);let l=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++l<r.length;){const i=r[l];if(i.type==="element"&&i.tagName==="li"&&i.properties&&Array.isArray(i.properties.className)&&i.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const u={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,u),e.applyData(t,u)}o(Ml,"list");function zl(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}o(zl,"paragraph");function Ul(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}o(Ul,"root");function $l(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}o($l,"strong");function Hl(e,t){const n=e.all(t),r=n.shift(),l=[];if(r){const i={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],i),l.push(i)}if(n.length>0){const i={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=et(t.children[1]),s=nn(t.children[t.children.length-1]);a&&s&&(i.position={start:a,end:s}),l.push(i)}const u={type:"element",tagName:"table",properties:{},children:e.wrap(l,!0)};return e.patch(t,u),e.applyData(t,u)}o(Hl,"table");function Wl(e,t,n){const r=n?n.children:void 0,l=(r?r.indexOf(t):1)===0?"th":"td",u=n&&n.type==="table"?n.align:void 0,i=u?u.length:t.children.length;let a=-1;const s=[];for(;++a<i;){const f=t.children[a],c={},d=u?u[a]:void 0;d&&(c.align=d);let h={type:"element",tagName:l,properties:c,children:[]};f&&(h.children=e.all(f),e.patch(f,h),h=e.applyData(f,h)),s.push(h)}const p={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(t,p),e.applyData(t,p)}o(Wl,"tableRow");function Vl(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}o(Vl,"tableCell");var dt=9,ht=32;function Kl(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),l=0;const u=[];for(;r;)u.push(mt(t.slice(l,r.index),l>0,!0),r[0]),l=r.index+r[0].length,r=n.exec(t);return u.push(mt(t.slice(l),l>0,!1)),u.join("")}o(Kl,"trimLines");function mt(e,t,n){let r=0,l=e.length;if(t){let u=e.codePointAt(r);for(;u===dt||u===ht;)r++,u=e.codePointAt(r)}if(n){let u=e.codePointAt(l-1);for(;u===dt||u===ht;)l--,u=e.codePointAt(l-1)}return l>r?e.slice(r,l):""}o(mt,"trimLine");function ql(e,t){const n={type:"text",value:Kl(String(t.value))};return e.patch(t,n),e.applyData(t,n)}o(ql,"text$1");function Xl(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}o(Xl,"thematicBreak");var Gl={blockquote:Al,break:bl,code:vl,delete:xl,emphasis:Sl,footnoteReference:Bl,heading:Il,html:Pl,imageReference:Ll,image:jl,inlineCode:Rl,linkReference:Tl,link:Nl,listItem:_l,list:Ml,paragraph:zl,root:Ul,strong:$l,table:Hl,tableCell:Vl,tableRow:Wl,text:ql,thematicBreak:Xl,toml:de,yaml:de,definition:de,footnoteDefinition:de};function de(){}o(de,"ignore");var gt=typeof self=="object"?self:globalThis,Yl=o((e,t)=>{const n=o((l,u)=>(e.set(u,l),l),"as"),r=o(l=>{if(e.has(l))return e.get(l);const[u,i]=t[l];switch(u){case 0:case-1:return n(i,l);case 1:{const a=n([],l);for(const s of i)a.push(r(s));return a}case 2:{const a=n({},l);for(const[s,p]of i)a[r(s)]=r(p);return a}case 3:return n(new Date(i),l);case 4:{const{source:a,flags:s}=i;return n(new RegExp(a,s),l)}case 5:{const a=n(new Map,l);for(const[s,p]of i)a.set(r(s),r(p));return a}case 6:{const a=n(new Set,l);for(const s of i)a.add(r(s));return a}case 7:{const{name:a,message:s}=i;return n(new gt[a](s),l)}case 8:return n(BigInt(i),l);case"BigInt":return n(Object(BigInt(i)),l);case"ArrayBuffer":return n(new Uint8Array(i).buffer,i);case"DataView":{const{buffer:a}=new Uint8Array(i);return n(new DataView(a),i)}}return n(new gt[u](i),l)},"unpair");return r},"deserializer"),Dt=o(e=>Yl(new Map,e)(0),"deserialize"),Z="",{toString:Zl}={},{keys:Jl}=Object,ne=o(e=>{const t=typeof e;if(t!=="object"||!e)return[0,t];const n=Zl.call(e).slice(8,-1);switch(n){case"Array":return[1,Z];case"Object":return[2,Z];case"Date":return[3,Z];case"RegExp":return[4,Z];case"Map":return[5,Z];case"Set":return[6,Z];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},"typeOf"),he=o(([e,t])=>e===0&&(t==="function"||t==="symbol"),"shouldSkip"),Ql=o((e,t,n,r)=>{const l=o((i,a)=>{const s=r.push(i)-1;return n.set(a,s),s},"as"),u=o(i=>{if(n.has(i))return n.get(i);let[a,s]=ne(i);switch(a){case 0:{let f=i;switch(s){case"bigint":a=8,f=i.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);f=null;break;case"undefined":return l([-1],i)}return l([a,f],i)}case 1:{if(s){let d=i;return s==="DataView"?d=new Uint8Array(i.buffer):s==="ArrayBuffer"&&(d=new Uint8Array(i)),l([s,[...d]],i)}const f=[],c=l([a,f],i);for(const d of i)f.push(u(d));return c}case 2:{if(s)switch(s){case"BigInt":return l([s,i.toString()],i);case"Boolean":case"Number":case"String":return l([s,i.valueOf()],i)}if(t&&"toJSON"in i)return u(i.toJSON());const f=[],c=l([a,f],i);for(const d of Jl(i))(e||!he(ne(i[d])))&&f.push([u(d),u(i[d])]);return c}case 3:return l([a,i.toISOString()],i);case 4:{const{source:f,flags:c}=i;return l([a,{source:f,flags:c}],i)}case 5:{const f=[],c=l([a,f],i);for(const[d,h]of i)(e||!(he(ne(d))||he(ne(h))))&&f.push([u(d),u(h)]);return c}case 6:{const f=[],c=l([a,f],i);for(const d of i)(e||!he(ne(d)))&&f.push(u(d));return c}}const{message:p}=i;return l([a,{name:s,message:p}],i)},"pair");return u},"serializer"),Ft=o((e,{json:t,lossy:n}={})=>{const r=[];return Ql(!(t||n),!!t,new Map,r)(e),r},"serialize"),Fe=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Dt(Ft(e,t)):structuredClone(e):(e,t)=>Dt(Ft(e,t));function eo(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}o(eo,"defaultFootnoteBackContent");function to(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}o(to,"defaultFootnoteBackLabel");function no(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||eo,r=e.options.footnoteBackLabel||to,l=e.options.footnoteLabel||"Footnotes",u=e.options.footnoteLabelTagName||"h2",i=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let s=-1;for(;++s<e.footnoteOrder.length;){const p=e.footnoteById.get(e.footnoteOrder[s]);if(!p)continue;const f=e.all(p),c=String(p.identifier).toUpperCase(),d=Q(c.toLowerCase());let h=0;const g=[],y=e.footnoteCounts.get(c);for(;y!==void 0&&++h<=y;){g.length>0&&g.push({type:"text",value:" "});let C=typeof n=="string"?n:n(s,h);typeof C=="string"&&(C={type:"text",value:C}),g.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+d+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(s,h),className:["data-footnote-backref"]},children:Array.isArray(C)?C:[C]})}const w=f[f.length-1];if(w&&w.type==="element"&&w.tagName==="p"){const C=w.children[w.children.length-1];C&&C.type==="text"?C.value+=" ":w.children.push({type:"text",value:" "}),w.children.push(...g)}else f.push(...g);const A={type:"element",tagName:"li",properties:{id:t+"fn-"+d},children:e.wrap(f,!0)};e.patch(p,A),a.push(A)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:u,properties:{...Fe(i),id:"footnote-label"},children:[{type:"text",value:l}]},{type:"text",value:`
|
|
8
|
-
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
|
|
9
|
-
`}]}}o(no,"footer");var $e={}.hasOwnProperty,ro={};function lo(e,t){const n=t||ro,r=new Map,l=new Map,u={all:a,applyData:io,definitionById:r,footnoteById:l,footnoteCounts:new Map,footnoteOrder:[],handlers:{...Gl,...n.handlers},one:i,options:n,patch:oo,wrap:ao};return Ze(e,function(s){if(s.type==="definition"||s.type==="footnoteDefinition"){const p=s.type==="definition"?r:l,f=String(s.identifier).toUpperCase();p.has(f)||p.set(f,s)}}),u;function i(s,p){const f=s.type,c=u.handlers[f];if($e.call(u.handlers,f)&&c)return c(u,s,p);if(u.options.passThrough&&u.options.passThrough.includes(f)){if("children"in s){const{children:d,...h}=s,g=Fe(h);return g.children=u.all(s),g}return Fe(s)}return(u.options.unknownHandler||uo)(u,s,p)}o(i,"one");function a(s){const p=[];if("children"in s){const f=s.children;let c=-1;for(;++c<f.length;){const d=u.one(f[c],s);if(d){if(c&&f[c-1].type==="break"&&(!Array.isArray(d)&&d.type==="text"&&(d.value=yt(d.value)),!Array.isArray(d)&&d.type==="element")){const h=d.children[0];h&&h.type==="text"&&(h.value=yt(h.value))}Array.isArray(d)?p.push(...d):p.push(d)}}}return p}o(a,"all")}o(lo,"createState");function oo(e,t){e.position&&(t.position=tl(e))}o(oo,"patch");function io(e,t){let n=t;if(e&&e.data){const r=e.data.hName,l=e.data.hChildren,u=e.data.hProperties;typeof r=="string"&&(n.type==="element"?n.tagName=r:n={type:"element",tagName:r,properties:{},children:"children"in n?n.children:[n]}),n.type==="element"&&u&&Object.assign(n.properties,Fe(u)),"children"in n&&n.children&&l!==null&&l!==void 0&&(n.children=l)}return n}o(io,"applyData");function uo(e,t){const n=t.data||{},r="value"in t&&!($e.call(n,"hProperties")||$e.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}o(uo,"defaultUnknownHandler");function ao(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
10
|
-
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
11
|
-
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
12
|
-
`}),n}o(ao,"wrap$1");function yt(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}o(yt,"trimMarkdownSpaceStart");function wt(e,t){const n=lo(e,t),r=n.one(e,void 0),l=no(n),u=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return l&&("children"in u,u.children.push({type:"text",value:`
|
|
13
|
-
`},l)),u}o(wt,"toHast");function so(e,t){return e&&"run"in e?async function(n,r){const l=wt(n,{file:r,...t});await e.run(l,r)}:function(n,r){return wt(n,{file:r,...e||t})}}o(so,"remarkRehype");function Ct(e){if(e)throw e}o(Ct,"bail");var co=ie(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,i=o(function(c){return typeof Array.isArray=="function"?Array.isArray(c):r.call(c)==="[object Array]"},"isArray"),a=o(function(c){if(!c||r.call(c)!=="[object Object]")return!1;var d=n.call(c,"constructor"),h=c.constructor&&c.constructor.prototype&&n.call(c.constructor.prototype,"isPrototypeOf");if(c.constructor&&!d&&!h)return!1;var g;for(g in c);return typeof g>"u"||n.call(c,g)},"isPlainObject"),s=o(function(c,d){l&&d.name==="__proto__"?l(c,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):c[d.name]=d.newValue},"setProperty"),p=o(function(c,d){if(d==="__proto__")if(n.call(c,d)){if(u)return u(c,d).value}else return;return c[d]},"getProperty");t.exports=o(function f(){var c,d,h,g,y,w,A=arguments[0],C=1,I=arguments.length,E=!1;for(typeof A=="boolean"&&(E=A,A=arguments[1]||{},C=2),(A==null||typeof A!="object"&&typeof A!="function")&&(A={});C<I;++C)if(c=arguments[C],c!=null)for(d in c)h=p(A,d),g=p(c,d),A!==g&&(E&&g&&(a(g)||(y=i(g)))?(y?(y=!1,w=h&&i(h)?h:[]):w=h&&a(h)?h:{},s(A,{name:d,newValue:f(E,w,g)})):typeof g<"u"&&s(A,{name:d,newValue:g}));return A},"extend")})),ve=Ce(co(),1);function He(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}o(He,"isPlainObject");function po(){const e=[],t={run:n,use:r};return t;function n(...l){let u=-1;const i=l.pop();if(typeof i!="function")throw new TypeError("Expected function as last argument, not "+i);a(null,...l);function a(s,...p){const f=e[++u];let c=-1;if(s){i(s);return}for(;++c<l.length;)(p[c]===null||p[c]===void 0)&&(p[c]=l[c]);l=p,f?fo(f,a)(...p):i(null,...p)}o(a,"next")}function r(l){if(typeof l!="function")throw new TypeError("Expected `middelware` to be a function, not "+l);return e.push(l),t}}o(po,"trough");function fo(e,t){let n;return r;function r(...i){const a=e.length>i.length;let s;a&&i.push(l);try{s=e.apply(this,i)}catch(p){const f=p;if(a&&n)throw f;return l(f)}a||(s&&s.then&&typeof s.then=="function"?s.then(u,l):s instanceof Error?l(s):u(s))}function l(i,...a){n||(n=!0,t(i,...a))}function u(i){l(null,i)}}o(fo,"wrap");var $={basename:ho,dirname:mo,extname:go,join:Do,sep:"/"};function ho(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');se(e);let n=0,r=-1,l=e.length,u;if(t===void 0||t.length===0||t.length>e.length){for(;l--;)if(e.codePointAt(l)===47){if(u){n=l+1;break}}else r<0&&(u=!0,r=l+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let i=-1,a=t.length-1;for(;l--;)if(e.codePointAt(l)===47){if(u){n=l+1;break}}else i<0&&(u=!0,i=l+1),a>-1&&(e.codePointAt(l)===t.codePointAt(a--)?a<0&&(r=l):(a=-1,r=i));return n===r?r=i:r<0&&(r=e.length),e.slice(n,r)}o(ho,"basename");function mo(e){if(se(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}o(mo,"dirname");function go(e){se(e);let t=e.length,n=-1,r=0,l=-1,u=0,i;for(;t--;){const a=e.codePointAt(t);if(a===47){if(i){r=t+1;break}continue}n<0&&(i=!0,n=t+1),a===46?l<0?l=t:u!==1&&(u=1):l>-1&&(u=-1)}return l<0||n<0||u===0||u===1&&l===n-1&&l===r+1?"":e.slice(l,n)}o(go,"extname");function Do(...e){let t=-1,n;for(;++t<e.length;)se(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Fo(n)}o(Do,"join");function Fo(e){se(e);const t=e.codePointAt(0)===47;let n=yo(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}o(Fo,"normalize");function yo(e,t){let n="",r=0,l=-1,u=0,i=-1,a,s;for(;++i<=e.length;){if(i<e.length)a=e.codePointAt(i);else{if(a===47)break;a=47}if(a===47){if(!(l===i-1||u===1))if(l!==i-1&&u===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(s=n.lastIndexOf("/"),s!==n.length-1){s<0?(n="",r=0):(n=n.slice(0,s),r=n.length-1-n.lastIndexOf("/")),l=i,u=0;continue}}else if(n.length>0){n="",r=0,l=i,u=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(l+1,i):n=e.slice(l+1,i),r=i-l-1;l=i,u=0}else a===46&&u>-1?u++:u=-1}return n}o(yo,"normalizeString");function se(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}o(se,"assertPath$1");var wo={cwd:Co};function Co(){return"/"}o(Co,"cwd");function We(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}o(We,"isUrl");function ko(e){if(typeof e=="string")e=new URL(e);else if(!We(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Eo(e)}o(ko,"urlToPath");function Eo(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const l=new TypeError("File URL path must not include encoded / characters");throw l.code="ERR_INVALID_FILE_URL_PATH",l}}return decodeURIComponent(t)}o(Eo,"getPathFromURLPosix");var xe=["history","path","basename","stem","extname","dirname"],pn=class{static{o(this,"VFile")}constructor(e){let t;e?We(e)?t={path:e}:typeof e=="string"||Ao(e)?t={value:e}:t=e:t={},this.cwd="cwd"in t?"":wo.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<xe.length;){const l=xe[n];l in t&&t[l]!==void 0&&t[l]!==null&&(this[l]=l==="history"?[...t[l]]:t[l])}let r;for(r in t)xe.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path=="string"?$.basename(this.path):void 0}set basename(e){Be(e,"basename"),Se(e,"basename"),this.path=$.join(this.dirname||"",e)}get dirname(){return typeof this.path=="string"?$.dirname(this.path):void 0}set dirname(e){kt(this.basename,"dirname"),this.path=$.join(e||"",this.basename)}get extname(){return typeof this.path=="string"?$.extname(this.path):void 0}set extname(e){if(Se(e,"extname"),kt(this.dirname,"extname"),e){if(e.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=$.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){We(e)&&(e=ko(e)),Be(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path=="string"?$.basename(this.path,this.extname):void 0}set stem(e){Be(e,"stem"),Se(e,"stem"),this.path=$.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new Ye(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(e||void 0).decode(this.value)}};function Se(e,t){if(e&&e.includes($.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+$.sep+"`")}o(Se,"assertPart");function Be(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}o(Be,"assertNonEmpty");function kt(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}o(kt,"assertPath");function Ao(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}o(Ao,"isUint8Array$1");var bo=o((function(e){const t=this.constructor.prototype,n=t[e],r=o(function(){return n.apply(r,arguments)},"apply");return Object.setPrototypeOf(r,t),r}),"CallableInstance"),vo={}.hasOwnProperty,xo=class fn extends bo{static{o(this,"Processor")}constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=po()}copy(){const t=new fn;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data((0,ve.default)(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Le("data",this.frozen),this.namespace[t]=n,this):vo.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Le("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const l=n.call(t,...r);typeof l=="function"&&this.transformers.use(l)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=me(t),r=this.parser||this.Parser;return Ie("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Ie("process",this.parser||this.Parser),Pe("process",this.compiler||this.Compiler),n?l(void 0,n):new Promise(l);function l(u,i){const a=me(t),s=r.parse(a);r.run(s,a,function(f,c,d){if(f||!c||!d)return p(f);const h=c,g=r.stringify(h,d);Io(g)?d.value=g:d.result=g,p(f,d)});function p(f,c){f||!c?i(f):u?u(c):n(void 0,c)}o(p,"realDone")}o(l,"executor")}processSync(t){let n=!1,r;return this.freeze(),Ie("processSync",this.parser||this.Parser),Pe("processSync",this.compiler||this.Compiler),this.process(t,l),At("processSync","process",n),r;function l(u,i){n=!0,Ct(u),r=i}o(l,"realDone")}run(t,n,r){Et(t),this.freeze();const l=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?u(void 0,r):new Promise(u);function u(i,a){const s=me(n);l.run(t,s,p);function p(f,c,d){const h=c||t;f?a(f):i?i(h):r(void 0,h,d)}o(p,"realDone")}o(u,"executor")}runSync(t,n){let r=!1,l;return this.run(t,n,u),At("runSync","run",r),l;function u(i,a){Ct(i),l=a,r=!0}o(u,"realDone")}stringify(t,n){this.freeze();const r=me(n),l=this.compiler||this.Compiler;return Pe("stringify",l),Et(t),l(t,r)}use(t,...n){const r=this.attachers,l=this.namespace;if(Le("use",this.frozen),t!=null)if(typeof t=="function")s(t,n);else if(typeof t=="object")Array.isArray(t)?a(t):i(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function u(p){if(typeof p=="function")s(p,[]);else if(typeof p=="object")if(Array.isArray(p)){const[f,...c]=p;s(f,c)}else i(p);else throw new TypeError("Expected usable value, not `"+p+"`")}function i(p){if(!("plugins"in p)&&!("settings"in p))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(p.plugins),p.settings&&(l.settings=(0,ve.default)(!0,l.settings,p.settings))}function a(p){let f=-1;if(p!=null)if(Array.isArray(p))for(;++f<p.length;){const c=p[f];u(c)}else throw new TypeError("Expected a list of plugins, not `"+p+"`")}function s(p,f){let c=-1,d=-1;for(;++c<r.length;)if(r[c][0]===p){d=c;break}if(d===-1)r.push([p,...f]);else if(f.length>0){let[h,...g]=f;const y=r[d][1];He(y)&&He(h)&&(h=(0,ve.default)(!0,y,h)),r[d]=[p,h,...g]}}}},So=new xo().freeze();function Ie(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}o(Ie,"assertParser");function Pe(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}o(Pe,"assertCompiler");function Le(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}o(Le,"assertUnfrozen");function Et(e){if(!He(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}o(Et,"assertNode");function At(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}o(At,"assertDone");function me(e){return Bo(e)?e:new pn(e)}o(me,"vfile");function Bo(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}o(Bo,"looksLikeAVFile");function Io(e){return typeof e=="string"||Po(e)}o(Io,"looksLikeAValue");function Po(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}o(Po,"isUint8Array");var bt=[],vt={allowDangerousHtml:!0},Lo=/^(https?|ircs?|mailto|xmpp)$/i,jo=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Ro(e){const t=To(e),n=No(e);return _o(t.runSync(t.parse(n),n),e)}o(Ro,"Markdown");function To(e){const t=e.rehypePlugins||bt,n=e.remarkPlugins||bt,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...vt}:vt;return So().use(El).use(n).use(so,r).use(t)}o(To,"createProcessor");function No(e){const t=e.children||"",n=new pn;return typeof t=="string"?n.value=t:""+t,n}o(No,"createFile");function _o(e,t){const n=t.allowedElements,r=t.allowElement,l=t.components,u=t.disallowedElements,i=t.skipHtml,a=t.unwrapDisallowed,s=t.urlTransform||dn;for(const f of jo)Object.hasOwn(t,f.from)&&""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+f.id;return Ze(e,p),ul(e,{Fragment:D.Fragment,components:l,ignoreInvalidStyle:!0,jsx:D.jsx,jsxs:D.jsxs,passKeys:!0,passNode:!0});function p(f,c,d){if(f.type==="raw"&&d&&typeof c=="number")return i?d.children.splice(c,1):d.children[c]={type:"text",value:f.value},c;if(f.type==="element"){let h;for(h in be)if(Object.hasOwn(be,h)&&Object.hasOwn(f.properties,h)){const g=f.properties[h],y=be[h];(y===null||y.includes(f.tagName))&&(f.properties[h]=s(String(g||""),h,f))}}if(f.type==="element"){let h=n?!n.includes(f.tagName):u?u.includes(f.tagName):!1;if(!h&&r&&typeof c=="number"&&(h=!r(f,c,d)),h&&d&&typeof c=="number")return a&&f.children?d.children.splice(c,1,...f.children):d.children.splice(c,1),c}}o(p,"transform")}o(_o,"post");function dn(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),l=e.indexOf("/");return t===-1||l!==-1&&t>l||n!==-1&&t>n||r!==-1&&t>r||Lo.test(e.slice(0,t))?e:""}o(dn,"defaultUrlTransform");function Oo(e,t,n){const r=Qn((n||{}).ignore||[]),l=Mo(t);let u=-1;for(;++u<l.length;)nr(e,"text",i);function i(s,p){let f=-1,c;for(;++f<p.length;){const d=p[f],h=c?c.children:void 0;if(r(d,h?h.indexOf(d):void 0,c))return;c=d}if(c)return a(s,p)}o(i,"visitor");function a(s,p){const f=p[p.length-1],c=l[u][0],d=l[u][1];let h=0;const g=f.children.indexOf(s);let y=!1,w=[];c.lastIndex=0;let A=c.exec(s.value);for(;A;){const C=A.index,I={index:A.index,input:A.input,stack:[...p,s]};let E=d(...A,I);if(typeof E=="string"&&(E=E.length>0?{type:"text",value:E}:void 0),E===!1?c.lastIndex=C+1:(h!==C&&w.push({type:"text",value:s.value.slice(h,C)}),Array.isArray(E)?w.push(...E):E&&w.push(E),h=C+A[0].length,y=!0),!c.global)break;A=c.exec(s.value)}return y?(h<s.value.length&&w.push({type:"text",value:s.value.slice(h)}),f.children.splice(g,1,...w)):w=[s],g+w.length}o(a,"handler")}o(Oo,"findAndReplace");function Mo(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const l=n[r];t.push([zo(l[0]),Uo(l[1])])}return t}o(Mo,"toPairs");function zo(e){return typeof e=="string"?new RegExp(Ir(e),"g"):e}o(zo,"toExpression");function Uo(e){return typeof e=="function"?e:function(){return e}}o(Uo,"toFunction");var je="phrasing",Re=["autolink","link","image","label"];function $o(){return{transforms:[Go],enter:{literalAutolink:Wo,literalAutolinkEmail:Te,literalAutolinkHttp:Te,literalAutolinkWww:Te},exit:{literalAutolink:Xo,literalAutolinkEmail:qo,literalAutolinkHttp:Vo,literalAutolinkWww:Ko}}}o($o,"gfmAutolinkLiteralFromMarkdown");function Ho(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:je,notInConstruct:Re},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:je,notInConstruct:Re},{character:":",before:"[ps]",after:"\\/",inConstruct:je,notInConstruct:Re}]}}o(Ho,"gfmAutolinkLiteralToMarkdown");function Wo(e){this.enter({type:"link",title:null,url:"",children:[]},e)}o(Wo,"enterLiteralAutolink");function Te(e){this.config.enter.autolinkProtocol.call(this,e)}o(Te,"enterLiteralAutolinkValue");function Vo(e){this.config.exit.autolinkProtocol.call(this,e)}o(Vo,"exitLiteralAutolinkHttp");function Ko(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}o(Ko,"exitLiteralAutolinkWww");function qo(e){this.config.exit.autolinkEmail.call(this,e)}o(qo,"exitLiteralAutolinkEmail");function Xo(e){this.exit(e)}o(Xo,"exitLiteralAutolink");function Go(e){Oo(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Yo],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Zo]],{ignore:["link","linkReference"]})}o(Go,"transformGfmAutolinkLiterals");function Yo(e,t,n,r,l){let u="";if(!hn(l)||(/^w/i.test(t)&&(n=t+n,t="",u="http://"),!Jo(n)))return!1;const i=Qo(n+r);if(!i[0])return!1;const a={type:"link",title:null,url:u+t+i[0],children:[{type:"text",value:t+i[0]}]};return i[1]?[a,{type:"text",value:i[1]}]:a}o(Yo,"findUrl");function Zo(e,t,n,r){return!hn(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}o(Zo,"findEmail");function Jo(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}o(Jo,"isCorrectDomain");function Qo(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const l=ut(e,"(");let u=ut(e,")");for(;r!==-1&&l>u;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),u++;return[e,n]}o(Qo,"splitUrl");function hn(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||J(n)||Ge(n))&&(!t||n!==47)}o(hn,"previous");mn.peek=ai;function ei(){this.buffer()}o(ei,"enterFootnoteCallString");function ti(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}o(ti,"enterFootnoteCall");function ni(){this.buffer()}o(ni,"enterFootnoteDefinitionLabelString");function ri(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}o(ri,"enterFootnoteDefinition");function li(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=ue(this.sliceSerialize(e)).toLowerCase(),n.label=t}o(li,"exitFootnoteCallString");function oi(e){this.exit(e)}o(oi,"exitFootnoteCall");function ii(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=ue(this.sliceSerialize(e)).toLowerCase(),n.label=t}o(ii,"exitFootnoteDefinitionLabelString");function ui(e){this.exit(e)}o(ui,"exitFootnoteDefinition");function ai(){return"["}o(ai,"footnoteReferencePeek");function mn(e,t,n,r){const l=n.createTracker(r);let u=l.move("[^");const i=n.enter("footnoteReference"),a=n.enter("reference");return u+=l.move(n.safe(n.associationId(e),{after:"]",before:u})),a(),i(),u+=l.move("]"),u}o(mn,"footnoteReference");function si(){return{enter:{gfmFootnoteCallString:ei,gfmFootnoteCall:ti,gfmFootnoteDefinitionLabelString:ni,gfmFootnoteDefinition:ri},exit:{gfmFootnoteCallString:li,gfmFootnoteCall:oi,gfmFootnoteDefinitionLabelString:ii,gfmFootnoteDefinition:ui}}}o(si,"gfmFootnoteFromMarkdown");function ci(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:mn},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,l,u,i){const a=u.createTracker(i);let s=a.move("[^");const p=u.enter("footnoteDefinition"),f=u.enter("label");return s+=a.move(u.safe(u.associationId(r),{before:s,after:"]"})),f(),s+=a.move("]:"),r.children&&r.children.length>0&&(a.shift(4),s+=a.move((t?`
|
|
14
|
-
`:" ")+u.indentLines(u.containerFlow(r,a.current()),t?gn:pi))),p(),s}o(n,"footnoteDefinition")}o(ci,"gfmFootnoteToMarkdown");function pi(e,t,n){return t===0?e:gn(e,t,n)}o(pi,"mapExceptFirst");function gn(e,t,n){return(n?"":" ")+e}o(gn,"mapAll");function fi(){return[$o(),si(),er(),sr(),ir()]}o(fi,"gfmFromMarkdown");function di(e){return{extensions:[Ho(),ci(e),tr(),fr(e),ur()]}}o(di,"gfmToMarkdown");var hi={tokenize:wi,partial:!0},Dn={tokenize:Ci,partial:!0},Fn={tokenize:ki,partial:!0},yn={tokenize:Ei,partial:!0},mi={tokenize:Ai,partial:!0},wn={name:"wwwAutolink",tokenize:Fi,previous:kn},Cn={name:"protocolAutolink",tokenize:yi,previous:En},K={name:"emailAutolink",tokenize:Di,previous:An},V={};function gi(){return{text:V}}o(gi,"gfmAutolinkLiteral");var X=48;for(;X<123;)V[X]=K,X++,X===58?X=65:X===91&&(X=97);V[43]=K;V[45]=K;V[46]=K;V[95]=K;V[72]=[K,Cn];V[104]=[K,Cn];V[87]=[K,wn];V[119]=[K,wn];function Di(e,t,n){const r=this;let l,u;return i;function i(c){return!Ve(c)||!An.call(r,r.previous)||lt(r.events)?n(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(c))}function a(c){return Ve(c)?(e.consume(c),a):c===64?(e.consume(c),s):n(c)}function s(c){return c===46?e.check(mi,f,p)(c):c===45||c===95||le(c)?(u=!0,e.consume(c),s):f(c)}function p(c){return e.consume(c),l=!0,s}function f(c){return u&&l&&re(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(c)):n(c)}}o(Di,"tokenizeEmailAutolink");function Fi(e,t,n){const r=this;return l;function l(i){return i!==87&&i!==119||!kn.call(r,r.previous)||lt(r.events)?n(i):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(hi,e.attempt(Dn,e.attempt(Fn,u),n),n)(i))}function u(i){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(i)}}o(Fi,"tokenizeWwwAutolink");function yi(e,t,n){const r=this;let l="",u=!1;return i;function i(c){return(c===72||c===104)&&En.call(r,r.previous)&&!lt(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),l+=String.fromCodePoint(c),e.consume(c),a):n(c)}function a(c){if(re(c)&&l.length<5)return l+=String.fromCodePoint(c),e.consume(c),a;if(c===58){const d=l.toLowerCase();if(d==="http"||d==="https")return e.consume(c),s}return n(c)}function s(c){return c===47?(e.consume(c),u?p:(u=!0,s)):n(c)}function p(c){return c===null||rr(c)||W(c)||J(c)||Ge(c)?n(c):e.attempt(Dn,e.attempt(Fn,f),n)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(c)}}o(yi,"tokenizeProtocolAutolink");function wi(e,t,n){let r=0;return l;function l(i){return(i===87||i===119)&&r<3?(r++,e.consume(i),l):i===46&&r===3?(e.consume(i),u):n(i)}function u(i){return i===null?n(i):t(i)}}o(wi,"tokenizeWwwPrefix");function Ci(e,t,n){let r,l,u;return i;function i(p){return p===46||p===95?e.check(yn,s,a)(p):p===null||W(p)||J(p)||p!==45&&Ge(p)?s(p):(u=!0,e.consume(p),i)}function a(p){return p===95?r=!0:(l=r,r=void 0),e.consume(p),i}function s(p){return l||r||!u?n(p):t(p)}}o(Ci,"tokenizeDomain");function ki(e,t){let n=0,r=0;return l;function l(i){return i===40?(n++,e.consume(i),l):i===41&&r<n?u(i):i===33||i===34||i===38||i===39||i===41||i===42||i===44||i===46||i===58||i===59||i===60||i===63||i===93||i===95||i===126?e.check(yn,t,u)(i):i===null||W(i)||J(i)?t(i):(e.consume(i),l)}function u(i){return i===41&&r++,e.consume(i),l}}o(ki,"tokenizePath");function Ei(e,t,n){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),r):a===38?(e.consume(a),u):a===93?(e.consume(a),l):a===60||a===null||W(a)||J(a)?t(a):n(a)}function l(a){return a===null||a===40||a===91||W(a)||J(a)?t(a):r(a)}function u(a){return re(a)?i(a):n(a)}function i(a){return a===59?(e.consume(a),r):re(a)?(e.consume(a),i):n(a)}}o(Ei,"tokenizeTrail");function Ai(e,t,n){return r;function r(u){return e.consume(u),l}function l(u){return le(u)?n(u):t(u)}}o(Ai,"tokenizeEmailDomainDotTrail");function kn(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||W(e)}o(kn,"previousWww");function En(e){return!re(e)}o(En,"previousProtocol");function An(e){return!(e===47||Ve(e))}o(An,"previousEmail");function Ve(e){return e===43||e===45||e===46||e===95||le(e)}o(Ve,"gfmAtext");function lt(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}o(lt,"previousUnbalanced");var bi={tokenize:ji,partial:!0};function vi(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Ii,continuation:{tokenize:Pi},exit:Li}},text:{91:{name:"gfmFootnoteCall",tokenize:Bi},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:xi,resolveTo:Si}}}}o(vi,"gfmFootnote");function xi(e,t,n){const r=this;let l=r.events.length;const u=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i;for(;l--;){const s=r.events[l][1];if(s.type==="labelImage"){i=s;break}if(s.type==="gfmFootnoteCall"||s.type==="labelLink"||s.type==="label"||s.type==="image"||s.type==="link")break}return a;function a(s){if(!i||!i._balanced)return n(s);const p=ue(r.sliceSerialize({start:i.end,end:r.now()}));return p.codePointAt(0)!==94||!u.includes(p.slice(1))?n(s):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),t(s))}}o(xi,"tokenizePotentialGfmFootnoteCall");function Si(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},l={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};l.end.column++,l.end.offset++,l.end._bufferIndex++;const u={type:"gfmFootnoteCallString",start:Object.assign({},l.end),end:Object.assign({},e[e.length-1][1].start)},i={type:"chunkString",contentType:"string",start:Object.assign({},u.start),end:Object.assign({},u.end)},a=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",l,t],["exit",l,t],["enter",u,t],["enter",i,t],["exit",i,t],["exit",u,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...a),e}o(Si,"resolveToPotentialGfmFootnoteCall");function Bi(e,t,n){const r=this,l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let u=0,i;return a;function a(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),s}function s(c){return c!==94?n(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",p)}function p(c){if(u>999||c===93&&!i||c===null||c===91||W(c))return n(c);if(c===93){e.exit("chunkString");const d=e.exit("gfmFootnoteCallString");return l.includes(ue(r.sliceSerialize(d)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(c)}return W(c)||(i=!0),u++,e.consume(c),c===92?f:p}function f(c){return c===91||c===92||c===93?(e.consume(c),u++,p):p(c)}}o(Bi,"tokenizeGfmFootnoteCall");function Ii(e,t,n){const r=this,l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let u,i=0,a;return s;function s(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),p}function p(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):n(g)}function f(g){if(i>999||g===93&&!a||g===null||g===91||W(g))return n(g);if(g===93){e.exit("chunkString");const y=e.exit("gfmFootnoteDefinitionLabelString");return u=ue(r.sliceSerialize(y)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return W(g)||(a=!0),i++,e.consume(g),g===92?c:f}function c(g){return g===91||g===92||g===93?(e.consume(g),i++,f):f(g)}function d(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),l.includes(u)||l.push(u),zt(e,h,"gfmFootnoteDefinitionWhitespace")):n(g)}function h(g){return t(g)}}o(Ii,"tokenizeDefinitionStart");function Pi(e,t,n){return e.check(ar,t,e.attempt(bi,t,n))}o(Pi,"tokenizeDefinitionContinuation");function Li(e){e.exit("gfmFootnoteDefinition")}o(Li,"gfmFootnoteDefinitionEnd");function ji(e,t,n){const r=this;return zt(e,l,"gfmFootnoteDefinitionIndent",5);function l(u){const i=r.events[r.events.length-1];return i&&i[1].type==="gfmFootnoteDefinitionIndent"&&i[2].sliceSerialize(i[1],!0).length===4?t(u):n(u)}}o(ji,"tokenizeIndent");function Ri(e){return lr([gi(),vi(),dr(e),or(),pr()])}o(Ri,"gfm");var Ti={};function Ni(e){const t=this,n=e||Ti,r=t.data(),l=r.micromarkExtensions||(r.micromarkExtensions=[]),u=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),i=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);l.push(Ri(n)),u.push(fi()),i.push(di(n))}o(Ni,"remarkGfm");var _i=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,Oi=Object.hasOwnProperty,Mi=class{static{o(this,"BananaSlug")}constructor(){this.occurrences,this.reset()}slug(e,t){const n=this;let r=zi(e,t===!0);const l=r;for(;Oi.call(n.occurrences,r);)n.occurrences[l]++,r=l+"-"+n.occurrences[l];return n.occurrences[r]=0,r}reset(){this.occurrences=Object.create(null)}};function zi(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(_i,"").replace(/ /g,"-"))}o(zi,"slug");function Ui(e){const t=e.type==="element"?e.tagName.toLowerCase():"",n=t.length===2&&t.charCodeAt(0)===104?t.charCodeAt(1):0;return n>48&&n<55?n-48:void 0}o(Ui,"headingRank");function $i(e){return"children"in e?bn(e):"value"in e?e.value:""}o($i,"toString");function Hi(e){return e.type==="text"?e.value:"children"in e?bn(e):""}o(Hi,"one");function bn(e){let t=-1;const n=[];for(;++t<e.children.length;)n[t]=Hi(e.children[t]);return n.join("")}o(bn,"all");var Wi={},xt=new Mi;function Vi(e){const t=(e||Wi).prefix||"";return function(n){xt.reset(),Ze(n,"element",function(r){Ui(r)&&!r.properties.id&&(r.properties.id=t+xt.slug($i(r)))})}}o(Vi,"rehypeSlug");var Ki=/^[A-Z][A-Z0-9]*-C\d+$/i,qi=/\b[A-Z][A-Z0-9]*-C\d+\b/gi;function vn(e,t){if(!e)return null;const n=e.trim();if(!Ki.test(n))return null;const r=n.toUpperCase();if(t&&t.size>0){const l=r.split("-")[0];if(!l||!t.has(l))return null}return{identifier:r,href:`/cases/${encodeURIComponent(r)}`}}o(vn,"parseCaseReferenceFromHref");function xn(e,t,n="text"){return{type:"link",url:t,children:[{type:n,value:e}]}}o(xn,"createCaseLinkNode");function Xi(e,t){const n=[];let r=0,l=!1;for(const u of e.matchAll(qi)){const i=u[0];if(!i)continue;const a=vn(i,t);if(!a)continue;const s=u.index??0;l=!0,s>r&&n.push({type:"text",value:e.slice(r,s)}),n.push(xn(i,a.href)),r=s+i.length}return l?(r<e.length&&n.push({type:"text",value:e.slice(r)}),n):null}o(Xi,"linkifyCaseReferencesInText");function Sn(e,t){if(!Array.isArray(e.children)||e.children.length===0||e.type==="link"||e.type==="linkReference"||e.type==="code"||e.type==="definition"||e.type==="html")return;const n=[];for(const r of e.children){if(r.type==="inlineCode"&&typeof r.value=="string"){const l=vn(r.value,t);if(l){n.push(xn(r.value,l.href,"inlineCode"));continue}}if(r.type==="text"&&typeof r.value=="string"){const l=Xi(r.value,t);if(l){n.push(...l);continue}}Sn(r,t),n.push(r)}e.children=n}o(Sn,"rewriteMarkdownTree$1");function Gi(e){const t=e?.knownPrefixes&&e.knownPrefixes.length>0?new Set(e.knownPrefixes.map(n=>n.toUpperCase())):void 0;return n=>{Sn(n,t)}}o(Gi,"remarkLinkCaseReferences");var Yi=/^([A-Za-z0-9_.\-+][A-Za-z0-9_./\-+]*\.[A-Za-z0-9_+\-]{1,10})(?::([1-9]\d*)(?::([1-9]\d*))?|#L([1-9]\d*)(?:C([1-9]\d*))?)?$/,Zi=/^([A-Za-z0-9_.\-+][A-Za-z0-9_./\-+]+\/[A-Za-z0-9_.\-+]+)(?::([1-9]\d*)(?::([1-9]\d*))?|#L([1-9]\d*)(?:C([1-9]\d*))?)?$/,Ji=/^([A-Za-z0-9_.\-+][A-Za-z0-9_./\-+]*\/)$/,Qi=["/","./","../","~/"];function ge(e){if(!e)return null;const t=Number.parseInt(e,10);return!Number.isFinite(t)||t<=0?null:t}o(ge,"toPositiveInt");function St(e,t){if(!e||e.length>512||e.includes("\\")||e.includes("\0")||e.startsWith("/")||e.startsWith("~")||/^[A-Za-z]:/.test(e)||e.includes("//")||Qi.some(l=>e===l.slice(0,-1)))return!1;const n=t.allowTrailingSlash&&e.endsWith("/")?e.slice(0,-1):e;if(!n||/^\.+$/.test(n))return!1;const r=n.split("/");for(const l of r)if(l===""||l==="."||l==="..")return!1;return!0}o(St,"looksLikeWorkspacePath");function Bn(e){if(typeof e!="string")return null;const t=e.trim();if(!t)return null;const n=t.match(Ji);if(n){const[,c]=n;return!c||!St(c,{allowTrailingSlash:!0})||!c.slice(0,-1).includes("/")?null:{path:c,resourceKind:"directory",line:null,column:null,raw:t}}const r=t.match(Yi)??t.match(Zi);if(!r)return null;const[,l,u,i,a,s]=r;if(!l||!St(l,{allowTrailingSlash:!1}))return null;const p=ge(u)??ge(a),f=ge(i)??ge(s);return!l.includes("/")&&p===null?null:{path:l,resourceKind:"file",line:p,column:f,raw:t}}o(Bn,"parseWorkspaceFileRef");function eu(e){const t=e.line&&e.column?`${e.path}:${e.line}:${e.column}`:e.line?`${e.path}:${e.line}`:e.path;return e.projectName?`${e.projectName} / ${t}`:t}o(eu,"formatWorkspaceFileRefDisplay");var In="workspace-file:";function Pn(e){const t=new URLSearchParams;return e.projectId&&t.set("projectId",e.projectId),e.workspaceId&&t.set("workspaceId",e.workspaceId),e.workspace&&e.workspace!=="auto"&&t.set("workspace",e.workspace),e.resourceKind==="directory"&&t.set("kind","directory"),t.set("path",e.path),e.line!==null&&t.set("line",String(e.line)),e.column!==null&&t.set("column",String(e.column)),e.projectName&&t.set("projectName",e.projectName),`${In}?${t.toString()}`}o(Pn,"buildWorkspaceFileHref");function tu(e){if(!e||typeof e!="string"||!e.startsWith(In))return null;const t=e.slice(15),n=t.startsWith("?")?t.slice(1):t,r=new URLSearchParams(n),l=r.get("path");if(!l)return null;const u=r.get("projectId"),i=r.get("workspaceId"),a=!!(u&&i),s=r.get("projectName"),p=r.get("workspace"),f=p==="execution"||p==="project"?p:"auto",c=r.get("kind"),d=r.get("line"),h=r.get("column"),g=d?Number.parseInt(d,10):NaN,y=h?Number.parseInt(h,10):NaN;return{path:l,resourceKind:c==="directory"||l.endsWith("/")?"directory":"file",line:Number.isFinite(g)&&g>0?g:null,column:Number.isFinite(y)&&y>0?y:null,projectId:a?u:null,workspaceId:a?i:null,projectName:s||null,workspace:f,raw:l}}o(tu,"parseWorkspaceFileHref");function nu(e){return{type:"link",url:Pn(e),children:[{type:"inlineCode",value:e.raw}]}}o(nu,"createWorkspaceFileLinkNode");function ru(e){if(!Array.isArray(e.children)||e.children.length!==1)return null;const[t]=e.children;return t?.type!=="inlineCode"||typeof t.value!="string"?null:Bn(t.value)}o(ru,"parseSingleInlineCodeFileRef");function lu(e,t){return{...e,workspace:t.workspace,projectId:t.projectId??e.projectId??null,workspaceId:t.workspaceId??e.workspaceId??null,projectName:e.projectName??null}}o(lu,"applyResolvedTarget");function Bt(e,t){const n=t(e);return n?lu(e,n):null}o(Bt,"openableRef");function Ln(e,t){if(!Array.isArray(e.children)||e.children.length===0)return;if(e.type==="link"){const r=ru(e),l=r?Bt(r,t):null;l&&(e.url=Pn(l));return}if(e.type==="linkReference"||e.type==="code"||e.type==="definition"||e.type==="html")return;const n=[];for(const r of e.children){if(r.type==="inlineCode"&&typeof r.value=="string"){const l=Bn(r.value),u=l?Bt(l,t):null;if(u){n.push(nu(u));continue}}Ln(r,t),n.push(r)}e.children=n}o(Ln,"rewriteMarkdownTree");function ou(e){return o(function(){return n=>{Ln(n,e)}},"remarkWorkspaceFileRefs")}o(ou,"createRemarkWorkspaceFileRefs");function iu(e){return typeof e=="object"&&e!==null&&Array.isArray(e.children)}o(iu,"isParentNode");function uu(e){const t=e.split(`
|
|
15
|
-
`),n=[];for(let r=0;r<t.length;r+=1){const l=t[r];l.length>0&&n.push({type:"text",value:l}),r<t.length-1&&n.push({type:"break"})}return n.length>0?n:[{type:"text",value:""}]}o(uu,"buildSoftBreakReplacement");function jn(e){if(iu(e))for(let t=0;t<e.children.length;t+=1){const n=e.children[t];if(n?.type==="text"&&typeof n.value=="string"&&n.value.includes(`
|
|
16
|
-
`)){const r=uu(n.value);e.children.splice(t,1,...r),t+=r.length-1;continue}jn(n)}}o(jn,"transformNode");function au(){return e=>{jn(e)}}o(au,"remarkSoftBreaks");function De(e){const t=new URLSearchParams;return e.projectId&&e.workspaceId&&(t.set("projectId",e.projectId),t.set("workspaceId",e.workspaceId)),"path"in e&&e.path&&t.set("path",e.path),e.workspace&&e.workspace!=="auto"&&t.set("workspace",e.workspace),"mode"in e&&e.mode&&e.mode!=="all"&&t.set("mode",e.mode),"q"in e&&e.q&&t.set("q",e.q),"limit"in e&&e.limit&&t.set("limit",String(e.limit)),"offset"in e&&e.offset&&t.set("offset",String(e.offset)),t.toString()}o(De,"buildQuery");function su(e,t){const n=new URLSearchParams(De(t));return n.set("download","1"),`/api/issues/${encodeURIComponent(e)}/file-resources/content?${n.toString()}`}o(su,"buildFileResourceDownloadUrl");var cu={list(e,t={},n){const r=De(t),l=r?`?${r}`:"";return fe.get(`/issues/${encodeURIComponent(e)}/file-resources/list${l}`,n)},availability(e,t){return fe.post(`/issues/${encodeURIComponent(e)}/file-resources/availability`,{queries:t.map(n=>({path:n.path,...n.workspace&&n.workspace!=="auto"?{workspace:n.workspace}:{},...n.projectId&&n.workspaceId?{projectId:n.projectId,workspaceId:n.workspaceId}:{}}))})},resolve(e,t){return fe.get(`/issues/${encodeURIComponent(e)}/file-resources/resolve?${De(t)}`)},content(e,t){return fe.get(`/issues/${encodeURIComponent(e)}/file-resources/content?${De(t)}`)},downloadUrl:su};var pu=3e4,fu={state:"pending"};function Aa(e){return{path:e.path,workspace:e.workspace??"auto",projectId:e.projectId??null,workspaceId:e.workspaceId??null}}o(Aa,"workspaceFileAvailabilityRef");function It(e){return JSON.stringify([e.workspace,e.projectId,e.workspaceId,e.path])}o(It,"workspaceFileAvailabilityKey");function du(e,t=100){if(e.length<=t)return e.length>0?[e]:[];const n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n}o(du,"chunkWorkspaceFileAvailabilityRefs");function hu(e){return e.workspaceKind==="project_workspace"&&e.projectId&&e.workspaceId?{workspace:"project",projectId:e.projectId,workspaceId:e.workspaceId,projectName:e.projectName??null}:{workspace:e.workspaceKind==="project_workspace"?"project":"execution",projectId:null,workspaceId:null,projectName:e.projectName??null}}o(hu,"workspaceFileAvailabilityTarget");function mu(e){return!e.openable||!e.resource?{state:"unavailable",reason:e.unavailableReason??null}:{state:"openable",target:hu(e.resource)}}o(mu,"workspaceFileAvailabilityFromResult");var gu=2;function Du(e,t){return e[0]==="issues"&&e[1]==="file-resources"&&e[2]===t}o(Du,"isFileResourceKeyForIssue");function Fu(e){const t=Nt(),[n,r]=(0,F.useState)(0),l=(0,F.useRef)(new Map),u=(0,F.useRef)(new Map),i=(0,F.useRef)(new Set),a=(0,F.useRef)([]),s=(0,F.useRef)(0),p=(0,F.useRef)(null),f=(0,F.useRef)(!0),c=(0,F.useRef)(0),d=(0,F.useRef)(t);d.current=t;const h=(0,F.useRef)(e);h.current!==e&&(h.current=e,c.current+=1,p.current!==null&&(clearTimeout(p.current),p.current=null),l.current.clear(),u.current.clear(),i.current.clear(),a.current=[]);const g=(0,F.useCallback)(()=>{f.current&&r(I=>I+1)},[]),y=(0,F.useCallback)(async({chunk:I,issueId:E,generation:v})=>{const k=I.map(([x])=>x).sort();try{const x=await d.current.fetchQuery({queryKey:qe.issues.fileResourceAvailability(E,k),queryFn:o(()=>cu.availability(E,I.map(([,j])=>j)),"queryFn"),staleTime:pu});if(v!==c.current)return;const B=new Map(x.results.map(j=>[It(j.query),mu(j)]));for(const[j]of I)l.current.set(j,B.get(j)??{state:"unavailable",reason:"unmatched_reference"}),i.current.delete(j);g()}catch{if(v!==c.current)return;for(const[x]of I)i.current.delete(x)}},[g]),w=(0,F.useCallback)(()=>{for(;s.current<gu&&a.current.length>0;){const I=a.current.shift();s.current+=1,y(I).finally(()=>{s.current-=1,w()})}},[y]),A=(0,F.useCallback)(()=>{p.current=null;const I=[...u.current.entries()];u.current.clear();const E=I.filter(([v])=>!i.current.has(v)&&!l.current.has(v));if(E.length!==0){for(const[v]of E)i.current.add(v);a.current.push(...du(E).map(v=>({chunk:v,issueId:e,generation:c.current}))),w()}},[w,e]),C=(0,F.useCallback)(I=>{const E=It(I),v=l.current.get(E);return v||(!i.current.has(E)&&!u.current.has(E)&&(u.current.set(E,I),p.current===null&&(p.current=setTimeout(A,0))),fu)},[A]);return(0,F.useEffect)(()=>(f.current=!0,u.current.size>0&&p.current===null&&(p.current=setTimeout(A,0)),()=>{f.current=!1,p.current!==null&&(clearTimeout(p.current),p.current=null)}),[A]),(0,F.useEffect)(()=>t.getQueryCache().subscribe(I=>{I.type!=="updated"||I.action.type!=="invalidate"||Du(I.query.queryKey,e)&&l.current.size!==0&&(l.current.clear(),g())}),[g,e,t]),(0,F.useMemo)(()=>({version:n,check:C}),[n,C])}o(Fu,"useWorkspaceFileAvailability");var ot=(0,F.createContext)(null),yu={replace:!1,preventScrollReset:!0};function Rn(e){return typeof window>"u"?e:window.location.search}o(Rn,"getCurrentFileViewerSearch");function wu(e,t){return e!==Rn(t)}o(wu,"shouldNavigateFileViewerSearch");function Cu(e){const t=new URLSearchParams(e),n=t.get("file");if(!n)return null;const r=t.get("line"),l=t.get("column"),u=t.get("workspace"),i=t.get("projectId"),a=t.get("workspaceId"),s=!!(i&&a),p=r?Number.parseInt(r,10):NaN,f=l?Number.parseInt(l,10):NaN,c=u==="execution"||u==="project"?u:"auto";return{path:n,line:Number.isFinite(p)&&p>0?p:null,column:Number.isFinite(f)&&f>0?f:null,workspace:c,projectId:s?i:null,workspaceId:s?a:null}}o(Cu,"readFileViewerStateFromSearch");function Ke(e,t){const n=new URLSearchParams(e);n.delete("browse"),n.delete("q"),n.delete("folder"),t?(n.set("file",t.path),t.line!==null?n.set("line",String(t.line)):n.delete("line"),t.column!==null?n.set("column",String(t.column)):n.delete("column"),t.workspace&&t.workspace!=="auto"?n.set("workspace",t.workspace):n.delete("workspace"),t.projectId?n.set("projectId",t.projectId):n.delete("projectId"),t.workspaceId?n.set("workspaceId",t.workspaceId):n.delete("workspaceId")):(n.delete("file"),n.delete("line"),n.delete("column"),n.delete("workspace"),n.delete("projectId"),n.delete("workspaceId"));const r=n.toString();return r?`?${r}`:""}o(Ke,"writeFileViewerStateToSearch");function ku(e){const t=new URLSearchParams(e);if(t.get("browse")!=="1")return null;const n=t.get("q"),r=t.get("folder"),l=t.get("projectId"),u=t.get("workspaceId");return{q:n&&n.length>0?n:null,folderPath:r&&r.length>0?r:null,projectId:l||null,workspaceId:u||null}}o(ku,"readBrowseStateFromSearch");function Tn(e,t){const n=new URLSearchParams(e);n.delete("file"),n.delete("line"),n.delete("column"),n.delete("workspace"),n.delete("q"),n.set("browse","1"),n.set("folder",t.path),t.projectId?n.set("projectId",t.projectId):n.delete("projectId"),t.workspaceId?n.set("workspaceId",t.workspaceId):n.delete("workspaceId");const r=n.toString();return r?`?${r}`:""}o(Tn,"writeFolderViewerStateToSearch");function Eu(e,t){const n=new URLSearchParams(e);if(n.set("browse","1"),"q"in t){const l=t.q?.trim()??"";l?n.set("q",l):n.delete("q")}if("folderPath"in t){const l=t.folderPath?.trim()??"";l?n.set("folder",l):n.delete("folder")}"projectId"in t&&(t.projectId?n.set("projectId",t.projectId):n.delete("projectId")),"workspaceId"in t&&(t.workspaceId?n.set("workspaceId",t.workspaceId):n.delete("workspaceId"));const r=n.toString();return r?`?${r}`:""}o(Eu,"writeBrowseStateToSearch");function ba({issueId:e,children:t,enabled:n=!0}){return n?(0,D.jsx)(Au,{issueId:e,children:t}):(0,D.jsx)(D.Fragment,{children:t})}o(ba,"FileViewerProvider");function Au({issueId:e,children:t}){const n=Mt(),r=Zn(),l=(0,F.useMemo)(()=>Cu(n.search),[n.search]),u=(0,F.useMemo)(()=>ku(n.search),[n.search]),i=Fu(e),a=(0,F.useCallback)((y,w)=>{wu(y,n.search)&&r({pathname:n.pathname,hash:n.hash,search:y},{...yu,...w,state:n.state})},[n.hash,n.pathname,n.state,r]),s=(0,F.useCallback)((y,w)=>{let A=Ke(n.search,{path:y.path,line:y.line??null,column:y.column??null,workspace:y.workspace??"auto",projectId:y.projectId??null,workspaceId:y.workspaceId??null});if(w?.fromBrowse){const C=new URLSearchParams(A);C.set("browse","1");const I=new URLSearchParams(n.search),E=I.get("q"),v=I.get("folder"),k=Object.prototype.hasOwnProperty.call(w.browseState??{},"q")?w.browseState?.q:E,x=Object.prototype.hasOwnProperty.call(w.browseState??{},"folderPath")?w.browseState?.folderPath:v;k?C.set("q",k):C.delete("q"),x?C.set("folder",x):C.delete("folder"),A=C.toString()?`?${C.toString()}`:""}a(A)},[n.search,a]),p=(0,F.useCallback)(y=>{const w=new URLSearchParams(n.search);w.delete("file"),w.delete("line"),w.delete("column"),w.delete("folder"),w.set("browse","1"),typeof y?.q=="string"&&y.q.length>0?w.set("q",y.q):w.delete("q"),a(w.toString()?`?${w.toString()}`:"")},[n.search,a]),f=(0,F.useCallback)(y=>{a(Eu(n.search,y),{replace:!0})},[n.search,a]),c=(0,F.useCallback)(y=>{const w=Tn(n.search,{path:y.path,projectId:y.projectId??null,workspaceId:y.workspaceId??null});a(w)},[n.search,a]),d=(0,F.useCallback)(()=>{const y=new URLSearchParams(n.search);y.delete("file"),y.delete("line"),y.delete("column"),y.delete("workspace"),y.set("browse","1"),a(y.toString()?`?${y.toString()}`:"")},[n.search,a]),h=(0,F.useCallback)(()=>{const y=Rn(n.search),w=new URLSearchParams(Ke(y,null).replace(/^\?/,""));w.delete("browse"),w.delete("q"),w.delete("folder"),a(w.toString()?`?${w.toString()}`:"")},[n.search,a]),g=(0,F.useMemo)(()=>({issueId:e,availability:i,state:l,browse:u!==null,query:u?.q??null,browseProjectId:u?.projectId??null,browseWorkspaceId:u?.workspaceId??null,folderPath:u?.folderPath??null,open:s,openBrowse:p,updateBrowseState:f,openFolder:c,backToFiles:d,close:h}),[e,i,l,u,s,p,f,c,d,h]);return(0,D.jsx)(ot.Provider,{value:g,children:t})}o(Au,"EnabledFileViewerProvider");function bu(){return(0,F.useContext)(ot)}o(bu,"useFileViewer");function va(){const e=(0,F.useContext)(ot);if(!e)throw new Error("useRequiredFileViewer must be used within a FileViewerProvider");return e}o(va,"useRequiredFileViewer");function vu({workspaceFileRef:e,label:t,className:n,onOpen:r,showIcon:l=!0,title:u}){const i=bu(),a=Mt(),s=typeof t<"u"?t:eu(e),p=!!(r||i),f=e.resourceKind==="directory"||e.path.endsWith("/"),c=e.line?` line ${e.line}${e.column?` column ${e.column}`:""}`:"",d=p?`Open ${e.path}${c} in the ${f?"workspace browser":"file viewer"}`:`Workspace ${f?"folder":"file"} ${e.path}${c}`,h=u??(p?`Open ${e.path}${c} in the ${f?"workspace browser":"file viewer"}`:`Workspace ${f?"folder":"file"} ${e.path}${c}`),g=f?Tn(a.search,{path:e.path,projectId:e.projectId??null,workspaceId:e.workspaceId??null}):Ke(a.search,{path:e.path,line:e.line??null,column:e.column??null,workspace:e.workspace??"auto",projectId:e.projectId??null,workspaceId:e.workspaceId??null}),y=p?`${a.pathname}${g}${a.hash}`:"#",w=o(A=>{A.metaKey||A.ctrlKey||A.shiftKey||A.altKey||A.button===0&&(A.preventDefault(),p&&(r?r(e):f?i?.openFolder(e):i?.open(e)))},"handleClick");return(0,D.jsxs)("a",{href:y,role:p?"button":void 0,"data-workspace-file-link":"true","data-workspace-file-path":e.path,"aria-label":d,title:h,className:H("paperclip-workspace-file-link inline-flex items-center gap-1 rounded-sm border border-border bg-muted/60 px-1.5 py-0.5 font-mono text-xs leading-tight text-foreground/90 align-middle no-underline hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1",n),onClick:w,children:[l?f?(0,D.jsx)(br,{"aria-hidden":"true",className:"h-3 w-3 shrink-0 opacity-70"}):(0,D.jsx)(Sr,{"aria-hidden":"true",className:"h-3 w-3 shrink-0 opacity-70"}):null,(0,D.jsx)("span",{className:"max-w-full whitespace-normal break-all text-left",children:s})]})}o(vu,"WorkspaceFileLink");var Nn=(0,F.createContext)(new Map),_n=/^\/api\/(?:attachments\/[^/?#]+|assets\/[^/?#]+|public\/share\/[^/?#]+\/assets\/[^/?#]+)\/content\/?$/,xu="X-Paperclip-Purged-At",Ne=new Map;function ke(e){const t=typeof window<"u"&&window.location?window.location.origin:"http://localhost";try{const n=new URL(e,t);return n.origin!==t?null:n.pathname}catch{return null}}o(ke,"sameOriginPath");function ye(e){if(!e)return!1;const t=ke(e);return t!==null&&_n.test(t)}o(ye,"isPurgeableContentPath");function Su(e){if(!e)return null;const t=e instanceof Date?e:new Date(e);return Number.isNaN(t.getTime())?null:t.toISOString().slice(0,10)}o(Su,"purgedDateLabel");function Bu(e){const t=Su(e);return t?`File removed by retention (${t})`:"File removed by retention"}o(Bu,"purgedFileText");function On(e){const t=ke(e);if(!t||!_n.test(t))return Promise.resolve(null);const n=Ne.get(t);if(n)return n;const r=fetch(t,{method:"HEAD",credentials:"include",cache:"no-store"}).then(l=>l.status===410?{purgedAt:l.headers.get(xu)}:null).catch(()=>null);return Ne.set(t,r),r.then(l=>{l===null&&Ne.delete(t)}),r}o(On,"probePurgedContent");function xa(e){const t=new Map;for(const n of e){if(!n.purgedAt||!n.contentPath)continue;const r=ke(n.contentPath);if(!r)continue;const l=n.purgedAt instanceof Date?n.purgedAt.toISOString():String(n.purgedAt);t.set(r,l)}return t}o(xa,"purgedContentPaths");function Mn(e,t){if(!t||e.size===0)return null;const n=ke(t);return n?e.get(n)??null:null}o(Mn,"lookupPurgedPath");function we({purgedAt:e,className:t}){return(0,D.jsx)("span",{"data-purged-file":"",className:H("inline-flex max-w-full rounded-md border border-border bg-muted px-2 py-1 text-xs text-muted-foreground",t),children:Bu(e)})}o(we,"PurgedFileNotice");function Iu({src:e,onError:t,...n}){const r=(0,F.useContext)(Nn),l=Mn(r,e),[u,i]=(0,F.useState)(null);return(0,F.useEffect)(()=>{i(null)},[e]),l?(0,D.jsx)(we,{purgedAt:l}):u?(0,D.jsx)(we,{purgedAt:u.purgedAt}):(0,D.jsx)("img",{src:e,...n,onError:o(a=>{t?.(a),ye(e)&&On(e).then(s=>{s&&i(s)})},"onError")})}o(Iu,"RetentionAwareImage");function Pu(e){return e.button===0&&!e.metaKey&&!e.ctrlKey&&!e.shiftKey&&!e.altKey}o(Pu,"isPlainLeftClick");function Lu({href:e,onClick:t,children:n,...r}){const l=(0,F.useContext)(Nn),u=Mn(l,e),[i,a]=(0,F.useState)(null);return(0,F.useEffect)(()=>{a(null)},[e]),u?(0,D.jsx)(we,{purgedAt:u}):i?(0,D.jsx)(we,{purgedAt:i.purgedAt}):(0,D.jsx)("a",{...r,href:e,onClick:o(s=>{if(t?.(s),s.defaultPrevented||!e||!Pu(s)||!ye(e))return;s.preventDefault();const p=r.target==="_blank"?window.open("about:blank","_blank"):null;p&&(p.opener=null),On(e).then(f=>{if(f){p?.close(),a(f);return}p?p.location.href=e:r.target==="_blank"?window.open(e,"_blank","noopener,noreferrer"):window.location.assign(e)})},"onClick"),children:n})}o(Lu,"RetentionAwareLink");function ju({category:e,liveness:t,statusIconKey:n,label:r,className:l,sizeClassName:u="h-3.5 w-3.5",inline:i=!1}){const a=wr(),s=Fr(n)??gr(e),p=n==="git-merge"?"text-violet-600 border-violet-600 dark:text-violet-400 dark:border-violet-400":Er[e]??"text-muted-foreground border-muted-foreground",f=t==="fresh"||t==="unknown"?"":` (${Wt(t)})`,c=`${r??Ht(e)}${f}`,d=i?"relative mr-1 inline-flex shrink-0 align-(--va-0_125em)":"relative inline-flex shrink-0",h=i?"h-3 w-3":u,g=e==="running"&&!a?"animate-spin":"";return(0,D.jsxs)("span",{role:"img","aria-label":c,className:H(d,l),children:[(0,D.jsx)(s,{"aria-hidden":"true",className:H(h,p.split(" ").filter(y=>y.startsWith("text-")).join(" "),g)}),t==="stale"?(0,D.jsx)(mr,{"aria-hidden":"true",className:H("absolute -bottom-0.5 -right-0.5 h-2 w-2 rounded-full bg-background text-muted-foreground",i?"":"p-px")}):null]})}o(ju,"ExternalObjectStatusIcon");var Ru=/^\/cases\/([A-Z][A-Z0-9]*-C\d+)$/i,Tu=[Vi];function Nu(e){if(!e)return null;const t=decodeURIComponent(e.trim()).match(Ru);return t?t[1].toUpperCase():null}o(Nu,"caseIdentifierFromHref");function _u({agentId:e,children:t,style:n}){const r=Tt()?.selectedCompanyId,{data:l}=_t({queryKey:qe.agents.list(r??"__none__"),queryFn:o(()=>hr.list(r),"queryFn"),enabled:!!r,staleTime:6e4}),u=l?.find(i=>i.id===e)?.appearance;return(0,D.jsx)("a",{href:`/agents/${e}`,className:"paperclip-mention-chip paperclip-mention-chip--agent","data-mention-kind":"agent",style:{...U(n),...$t({kind:"agent",agentId:e,icon:null,appearance:u})},children:t})}o(_u,"MarkdownAgentMention");var _e=null;function Ou({issuePathId:e,href:t,children:n}){const r=Nt(),[l,u]=(0,F.useState)(!1),{data:i}=_t({queryKey:qe.issues.detail(e),enabled:l,placeholderData:qn(r,e),queryFn:o(()=>Yn.get(e),"queryFn"),staleTime:6e4}),a=i?.identifier??e,s=i?.title??a,p=i?.status,f=s!==a?`Issue ${a}: ${s}`:`Issue ${a}`;return(0,D.jsxs)(Xe,{to:t,"data-mention-kind":"issue",onPointerEnter:o(()=>u(!0),"onPointerEnter"),onFocus:o(()=>u(!0),"onFocus"),className:H("paperclip-markdown-issue-ref","font-normal underline"),title:s,"aria-label":f,children:[p?(0,D.jsx)(Cr,{status:p,size:"md",className:"relative -top-px mr-1 inline-block h-4 w-4 align-middle"}):null,n]})}o(Ou,"MarkdownIssueLink");function Mu({identifier:e,children:t}){const n=Xn();return(0,D.jsx)(Xe,{to:n(e),"data-mention-kind":"case",className:H("paperclip-markdown-case-ref","font-normal underline"),"aria-label":`Case ${e}`,children:t})}o(Mu,"MarkdownCaseLink");function zu({href:e,reference:t,children:n}){const r=Dr(t.providerKey),l=t.displayKey?.trim()||r,u=t.statusLabel??Ht(t.statusCategory),i=Wt(t.liveness),a=t.liveness==="fresh"||t.liveness==="unknown"?"":` (${i})`,s=[t.displayTitle??`${l} ${u}`,`${l} — ${u}${a}`].filter(Boolean).join(" · ");return(0,D.jsxs)("a",{href:e,target:"_blank",rel:"noopener noreferrer","data-external-link":"resolved","data-external-status":t.statusCategory,"data-external-liveness":t.liveness,title:s,"aria-label":`${l} ${u}${a}: ${t.displayTitle??e}`,className:"paperclip-markdown-external-ref",children:[(0,D.jsx)(ju,{category:t.statusCategory,liveness:t.liveness,statusIconKey:t.statusIconKey,label:`${l}: ${u}`,inline:!0}),n]})}o(zu,"MarkdownExternalLink");function Uu(){return _e||(_e=Kn(()=>import("./mermaid.core-Be3XJK9z.js").then(e=>e.default),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]))),_e}o(Uu,"loadMermaid");var $u={overflowWrap:"anywhere",wordBreak:"break-word"},Hu={maxWidth:"100%",overflowX:"auto"},Wu={position:"absolute",top:"0.4rem",right:"0.4rem",display:"inline-flex",alignItems:"center",gap:"0.25rem"},zn={position:"static",opacity:1,display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"0.25rem",minHeight:"1.55rem",padding:"0.2rem 0.4rem",borderRadius:"calc(var(--radius) - 4px)",border:"1px solid color-mix(in oklab, var(--foreground) 14%, transparent)",backgroundColor:"var(--background)",color:"var(--muted-foreground)",fontSize:"var(--text-micro)",lineHeight:1,cursor:"pointer"},Pt={...zn,width:"1.55rem",paddingInline:0},Vu={overflowWrap:"anywhere",wordBreak:"normal"};function Ku(e){return e.type==="html"&&typeof e.value=="string"&&/^<!--[\s\S]*-->$/.test(e.value.trim())}o(Ku,"isHtmlCommentNode");function qu(e){if(e.type!=="text"||typeof e.value!="string")return!1;const t=e.value.trim();return/^\\?<!--(?:\s*-{0,2}>?)?$/.test(t)||/^<!--(?:\s*-{0,2}(?:>)?)?$/.test(t)}o(qu,"isEscapedHtmlCommentPlaceholder");function Xu(){return e=>{const t=o(n=>{const r=n.children;if(r){n.children=r.filter(l=>!Ku(l)&&!qu(l));for(const l of n.children)t(l)}},"visit");t(e)}}o(Xu,"remarkDropHtmlComments");function U(e){return{...$u,...e}}o(U,"mergeWrapStyle");function Lt(e){return{...Vu,...e}}o(Lt,"mergeTableCellStyle");function Gu(e){return{...Hu,...e}}o(Gu,"mergeScrollableBlockStyle");function it(e){return e==null?"":typeof e=="string"||typeof e=="number"?String(e):Array.isArray(e)?e.map(t=>it(t)).join(""):""}o(it,"flattenText");function Yu(e){if(!(0,F.isValidElement)(e))return null;const t=e.props;return typeof t.className!="string"||!/\blanguage-mermaid\b/i.test(t.className)?null:it(t.children).replace(/\n$/,"")}o(Yu,"extractMermaidSource");function Zu(e){return e.startsWith("workspace-file:")||Ut(e)?e:dn(e)}o(Zu,"safeMarkdownUrlTransform");var Ju=/\[\[([^\]\r\n]+)\]\]/g,Qu=new Set(["definition","image","imageReference","link","linkReference"]);function ea(e){const[t,...n]=e.split("|"),r=t?.trim()??"",l=n.length>0?n.join("|").trim():r;return!r||r.includes("[")||r.includes("]")?null:{target:r,label:l||r}}o(ea,"parseWikiLinkBody");function ta(e){const t=e.trim();if(!t||/^[a-z][a-z\d+.-]*:/i.test(t)||t.startsWith("//"))return null;const n=t.indexOf("#"),r=(n>=0?t.slice(0,n):t).trim().replace(/^\/+/,"");if(!r||r.includes("\\")||r.split("/").some(i=>!i||i==="."||i===".."))return null;const l=r.split("/").map(i=>encodeURIComponent(i)).join("/"),u=n>=0?t.slice(n+1).trim():"";return u?`${l}#${encodeURIComponent(u)}`:l}o(ta,"encodeWikiLinkTarget");function jt(e,t){const n=ta(e);if(!n)return null;const r=t?.trim().replace(/\/+$/,"")??"";return r?`${r}/${n}`:n}o(jt,"defaultWikiLinkHref");function na(e,t){return{type:"link",url:e,title:null,data:{hProperties:{"data-paperclip-wiki-link":"true","data-paperclip-wiki-target":t.target}},children:[{type:"text",value:t.label}]}}o(na,"createWikiLinkNode");function ra(e,t){const n=[];let r=0;for(const l of e.matchAll(Ju)){const u=l[0]??"",i=l[1]??"",a=l.index??0;a>r&&n.push({type:"text",value:e.slice(r,a)});const s=ea(i);let p=null;if(s)if(t.resolveWikiLinkHref){const f=t.resolveWikiLinkHref(s.target,s.label);p=f===void 0?jt(s.target,t.wikiLinkRoot):f}else p=jt(s.target,t.wikiLinkRoot);s&&p?n.push(na(p,s)):n.push({type:"text",value:u}),r=a+u.length}return r<e.length&&n.push({type:"text",value:e.slice(r)}),n}o(ra,"splitTextByWikiLinks");function Un(e,t){!e.children||Qu.has(e.type??"")||(e.children=e.children.flatMap(n=>n.type==="text"&&typeof n.value=="string"&&n.value.includes("[[")?ra(n.value,t):(Un(n,t),n)))}o(Un,"transformWikiLinkChildren");function la(e){return o(function(){return n=>{Un(n,e)}},"remarkWikiLinks")}o(la,"createRemarkWikiLinks");function oa(e){if(!e)return!1;try{const t=new URL(e);return t.protocol==="https:"&&(t.hostname==="github.com"||t.hostname==="www.github.com")}catch{return!1}}o(oa,"isGitHubUrl");function ia(e){if(!e)return!1;try{const t=new URL(e);return t.protocol!=="http:"&&t.protocol!=="https:"?!1:typeof window>"u"?!0:t.origin!==window.location.origin}catch{return!1}}o(ia,"isExternalHttpUrl");function Rt(e,t,n){if(!t&&!n)return e;if(typeof e=="string"&&e.length>0){if(e.length===1)return(0,D.jsxs)("span",{style:{whiteSpace:"nowrap"},children:[t,e,n]});const r=e[0],l=e[e.length-1],u=e.slice(1,-1);return(0,D.jsxs)(D.Fragment,{children:[t?(0,D.jsxs)("span",{style:{whiteSpace:"nowrap"},children:[t,r]}):r,u,n?(0,D.jsxs)("span",{style:{whiteSpace:"nowrap"},children:[l,n]}):l]})}return(0,D.jsxs)(D.Fragment,{children:[t,e,n]})}o(Rt,"renderLinkBody");function ua({children:e,preProps:t}){const[n,r]=(0,F.useState)(!1),[l,u]=(0,F.useState)(!1),[i,a]=(0,F.useState)(!1),s=(0,F.useRef)(null),p=(0,F.useRef)(void 0);(0,F.useEffect)(()=>()=>clearTimeout(p.current),[]);const f=(0,F.useCallback)(async()=>{const h=s.current?.innerText??it(e);try{await vr(h),u(!1),r(!0)}catch{u(!0),r(!0)}clearTimeout(p.current),p.current=setTimeout(()=>{r(!1),u(!1)},1500)},[e]),c=l?"Copy failed":n?"Copied!":"Copy",d=i?"Unwrap lines":"Wrap lines";return(0,D.jsxs)("div",{className:"paperclip-markdown-codeblock","data-wrap-lines":i||void 0,children:[(0,D.jsx)("pre",{...t,ref:s,style:{...Gu(t.style),...i?{overflowX:"hidden",whiteSpace:"pre-wrap",overflowWrap:"anywhere",wordBreak:"break-word"}:null},children:e}),(0,D.jsxs)("div",{className:"paperclip-markdown-codeblock-actions",style:Wu,"data-active":n||l||i||void 0,children:[(0,D.jsx)("button",{type:"button",onClick:o(()=>a(h=>!h),"onClick"),"aria-label":d,title:d,className:"paperclip-markdown-codeblock-action paperclip-markdown-codeblock-wrap",style:i?{...Pt,borderColor:"color-mix(in oklab, var(--primary) 38%, transparent)",color:"var(--primary)"}:Pt,"aria-pressed":i,"data-active":i||void 0,children:(0,D.jsx)(Br,{"aria-hidden":"true",className:"h-3.5 w-3.5"})}),(0,D.jsxs)("button",{type:"button",onClick:f,"aria-label":"Copy code",title:c,className:"paperclip-markdown-codeblock-action paperclip-markdown-codeblock-copy",style:zn,"data-copied":n||void 0,"data-failed":l||void 0,children:[n&&!l?(0,D.jsx)(kr,{"aria-hidden":"true",className:"h-3.5 w-3.5"}):(0,D.jsx)(Ar,{"aria-hidden":"true",className:"h-3.5 w-3.5"}),(0,D.jsx)("span",{className:"paperclip-markdown-codeblock-action-label",children:c})]})]})]})}o(ua,"CodeBlock");function aa({source:e,darkMode:t}){const n=(0,F.useId)().replace(/[^a-zA-Z0-9_-]/g,""),[r,l]=(0,F.useState)(null),[u,i]=(0,F.useState)(null);return(0,F.useEffect)(()=>{let a=!0;return l(null),i(null),Uu().then(async s=>{s.initialize({startOnLoad:!1,securityLevel:"strict",theme:t?"dark":"default",fontFamily:"inherit",suppressErrorRendering:!0});const p=await s.render(`paperclip-mermaid-${n}`,e);a&&l(p.svg)}).catch(s=>{if(!a)return;const p=s instanceof Error&&s.message?s.message:"Failed to render Mermaid diagram.";i(p)}),()=>{a=!1}},[t,n,e]),(0,D.jsx)("div",{className:"paperclip-mermaid",children:r?(0,D.jsx)("div",{dangerouslySetInnerHTML:{__html:r}}):(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("p",{className:H("paperclip-mermaid-status",u&&"paperclip-mermaid-status-error"),children:u?`Unable to render Mermaid diagram: ${u}`:"Rendering Mermaid diagram..."}),(0,D.jsx)("pre",{className:"paperclip-mermaid-source",children:(0,D.jsx)("code",{className:"language-mermaid",children:e})})]})})}o(aa,"MermaidDiagramBlock");function sa({children:e,className:t,style:n,softBreaks:r=!0,linkIssueReferences:l=!0,linkCaseReferences:u=!1,enableWikiLinks:i=!1,wikiLinkRoot:a,resolveWikiLinkHref:s,externalReferences:p,resolveImageSrc:f,onImageClick:c,mediaMode:d="render",resolveWorkspaceFileRef:h}){const{theme:g}=Nr(),y=Tt()?.companies,w=(0,F.useMemo)(()=>y?.length?y.map(E=>E.issuePrefix):void 0,[y]),A=(0,F.useMemo)(()=>{if(!p)return null;const E={};for(const[v,k]of Object.entries(p)){const x=st(v)??v;E[x]=k}return E},[p]),C=(0,F.useMemo)(()=>{const E=[Ni,Xu];return i&&E.push(la({wikiLinkRoot:a,resolveWikiLinkHref:s})),h&&E.push(ou(h)),l&&E.push([Gn,{knownPrefixes:w}]),u&&E.push([Gi,{knownPrefixes:w}]),r&&E.push(au),E},[i,a,s,h,l,u,w,r]),I=(0,F.useMemo)(()=>{const E={p:o(({node:v,style:k,children:x,...B})=>(0,D.jsx)("p",{...B,style:U(k),children:x}),"p"),li:o(({node:v,style:k,children:x,...B})=>(0,D.jsx)("li",{...B,style:U(k),children:x}),"li"),blockquote:o(({node:v,style:k,children:x,...B})=>(0,D.jsx)("blockquote",{...B,style:U(k),children:x}),"blockquote"),table:o(({node:v,style:k,children:x,...B})=>(0,D.jsx)("div",{className:"paperclip-markdown-table-scroll",role:"region","aria-label":"Scrollable table",tabIndex:0,children:(0,D.jsx)("table",{...B,style:k,children:x})}),"table"),td:o(({node:v,style:k,children:x,...B})=>(0,D.jsx)("td",{...B,style:Lt(k),children:x}),"td"),th:o(({node:v,style:k,children:x,...B})=>(0,D.jsx)("th",{...B,style:Lt(k),children:x}),"th"),pre:o(({node:v,children:k,...x})=>{const B=Yu(k);return B&&d==="render"?(0,D.jsx)(aa,{source:B,darkMode:g==="dark"}):(0,D.jsx)(ua,{preProps:x,children:k})},"pre"),code:o(({node:v,style:k,children:x,...B})=>(0,D.jsx)("code",{...B,style:U(k),children:x}),"code"),a:o(({node:v,href:k,style:x,children:B,...j})=>{const z=tu(k);if(z)return(0,D.jsx)(vu,{workspaceFileRef:z,label:B,className:typeof j.className=="string"?j.className:void 0});if(j["data-paperclip-wiki-link"]==="true"&&k&&!/^[a-z][a-z\d+.-]*:/i.test(k)&&!k.startsWith("//"))return(0,D.jsx)(Xe,{to:k,...j,rel:"noreferrer",style:U(x),children:B});const q=l?Jn(k):null;if(q)return(0,D.jsx)(Ou,{issuePathId:q.issuePathId,href:q.href,children:B});const te=u?Nu(k):null;if(te)return(0,D.jsx)(Mu,{identifier:te,children:B});const T=k?Ut(k):null;if(T){if(T.kind==="agent")return(0,D.jsx)(_u,{agentId:T.agentId,style:x,children:B});const Ee=T.kind==="project"?`/projects/${T.projectId}`:T.kind==="issue"?`/issues/${T.identifier}`:T.kind==="skill"?`/skills/${T.skillId}`:T.kind==="routine"?`/routines/${T.routineId}`:"/company/settings/access";return(0,D.jsx)("a",{href:Ee,className:H("paperclip-mention-chip",`paperclip-mention-chip--${T.kind}`,T.kind==="project"&&"paperclip-project-mention-chip"),"data-mention-kind":T.kind,style:{...U(x),...$t(T)},children:B})}const ce=k&&A?A[st(k)??""]??null:null;if(ce&&k)return(0,D.jsx)(zu,{href:k,reference:ce,children:B});const pe=oa(k),P=ia(k),S=pe?(0,D.jsx)(yr,{"aria-hidden":"true",className:"mr-1 inline h-3.5 w-3.5 align-(--va-0_125em)"}):null,_=P&&!pe?(0,D.jsx)(xr,{"aria-hidden":"true",className:"ml-1 inline h-3 w-3 align-(--va-0_125em)"}):null;return ye(k)?(0,D.jsx)(Lu,{href:k,rel:"noreferrer",style:U(x),children:Rt(B,S,_)}):(0,D.jsx)("a",{href:k,...P?{target:"_blank",rel:"noopener noreferrer"}:{rel:"noreferrer"},style:U(x),children:Rt(B,S,_)})},"a")};return d==="reference"?E.img=({src:v,alt:k,title:x})=>(0,D.jsxs)("span",{"data-markdown-image-reference":!0,title:x,children:["Image: ",k||"Untitled image",v?` (${v})`:""]}):E.img=({node:v,src:k,alt:x,...B})=>{const j=(f&&k?f(k):null)??k,z={...B,src:j,alt:x??"",onClick:c&&j?q=>{q.preventDefault(),c(j)}:void 0,style:c?{cursor:"pointer",...B.style}:B.style};return ye(j)?(0,D.jsx)(Iu,{...z}):(0,D.jsx)("img",{...z})},E},[g,l,u,A,f,c,d]);return(0,D.jsx)("div",{className:H("paperclip-markdown prose prose-sm min-w-0 max-w-full break-words overflow-hidden",g==="dark"&&"prose-invert",t),style:U(n),children:(0,D.jsx)(Ro,{remarkPlugins:C,rehypePlugins:Tu,components:I,urlTransform:Zu,children:e})})}o(sa,"MarkdownBodyImpl");var Sa=(0,F.memo)(sa);export{Sr as C,Nr as S,Aa as _,Nn as a,Ro as b,ba as c,Cu as d,wu as f,Ke as g,Eu as h,xa as i,Rn as l,va as m,ju as n,vu as o,bu as p,we as r,yu as s,Sa as t,ku as u,cu as v,Ea as x,Bn as y};
|