@tickernelz/paperclip-pro-ui 2026.1012.1 → 2026.1012.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/dist/assets/{AgentAvatar-DySHTTwq.js → AgentAvatar-J8HJgoSh.js} +1 -1
  2. package/dist/assets/{Agents.production-CF5r1j38.js → Agents.production-DIwX4Fih.js} +2 -2
  3. package/dist/assets/{BreadcrumbContext-C-JqFdLZ.js → BreadcrumbContext-k4_HOBKt.js} +1 -1
  4. package/dist/assets/{CompanyActivity.production-BxAfcJub.js → CompanyActivity.production-oaHV25Eh.js} +1 -1
  5. package/dist/assets/{CompanyExport-CEeoEcyJ.js → CompanyExport-Bkp2rXYE.js} +1 -1
  6. package/dist/assets/{CompanySkills.production-DHEEarUk.js → CompanySkills.production-BTD5rJ5W.js} +1 -1
  7. package/dist/assets/{EmptyState-fxPFhH-R.js → EmptyState-NmkkuFFc.js} +1 -1
  8. package/dist/assets/{MarkdownBody-CEcIElD-.js → MarkdownBody-DZY1Poyt.js} +1 -1
  9. package/dist/assets/{MarkdownEditor-B6kwxxZP.js → MarkdownEditor-BlZgaClg.js} +1 -1
  10. package/dist/assets/{OrgChart.production-R4TqTezh.js → OrgChart.production-DTxUYwh4.js} +1 -1
  11. package/dist/assets/{PageSkeleton-iVZWoLsF.js → PageSkeleton-Bk-YktL6.js} +1 -1
  12. package/dist/assets/{RoutineDetail.production-RCCl99aO.js → RoutineDetail.production-BeN-WNpo.js} +1 -1
  13. package/dist/assets/{RoutineRunVariablesDialog-BfaOkOdj.js → RoutineRunVariablesDialog-CMNeR6VZ.js} +1 -1
  14. package/dist/assets/{Routines.production-i7GS-uxC.js → Routines.production-CD0naEc9.js} +1 -1
  15. package/dist/assets/{StatusIcon-DxxLvme9.js → StatusIcon-fJLmzCDW.js} +1 -1
  16. package/dist/assets/{ToastContext-BbzJdb2r.js → ToastContext-CIri5s-I.js} +1 -1
  17. package/dist/assets/{agent-avatar-url-eBzFMwFS.js → agent-avatar-url-CVV7dJ4l.js} +3 -3
  18. package/dist/assets/{alert-dialog-Ctnjtpv6.js → alert-dialog-DKXtvS0x.js} +1 -1
  19. package/dist/assets/{arrow-right-DyKWA_SL.js → arrow-right-ELUE1rER.js} +1 -1
  20. package/dist/assets/{badge-CUe24HAP.js → badge-Kf867ezN.js} +1 -1
  21. package/dist/assets/{bot-wKcWfYKX.js → bot-CaRghtif.js} +1 -1
  22. package/dist/assets/{card-GbQ9sLu8.js → card-BA46vwjn.js} +1 -1
  23. package/dist/assets/{check-VcfFMsHr.js → check-CGphZTSp.js} +1 -1
  24. package/dist/assets/{checkbox-Cm-PyDSt.js → checkbox-DekJl2RJ.js} +1 -1
  25. package/dist/assets/{clipboard-CYFyFXxJ.js → clipboard-BftXMlFg.js} +1 -1
  26. package/dist/assets/{company-members-CSVvQnvh.js → company-members-BmKruwkU.js} +1 -1
  27. package/dist/assets/{definition-urW_HpEG.js → definition-BPS-VkpS.js} +1 -1
  28. package/dist/assets/{dist-Dz68ZFqX.js → dist-3gGO9NXy.js} +1 -1
  29. package/dist/assets/{dist-Z45aKkJm.js → dist-BLP096hU.js} +1 -1
  30. package/dist/assets/{dist-CfR2_c4p.js → dist-C-3WyhwF.js} +1 -1
  31. package/dist/assets/{environments-Cc8orNVy.js → environments-B0xY4RYs.js} +1 -1
  32. package/dist/assets/{external-link-CAutrcht.js → external-link-CRVf_Q8M.js} +1 -1
  33. package/dist/assets/{file-text-Dik8gyob.js → file-text-BKI87XaT.js} +1 -1
  34. package/dist/assets/{health-D_DTw2-J.js → health-2HA6WpUS.js} +1 -1
  35. package/dist/assets/{heartbeats-BgAe0g2m.js → heartbeats-D8FQfEVO.js} +1 -1
  36. package/dist/assets/{index-st-IN4Gf.js → index-jeBYC7ui.js} +123 -123
  37. package/dist/assets/{input-BARyUoy0.js → input-BXe2NHXn.js} +1 -1
  38. package/dist/assets/{label-D4Q0SI3t.js → label-DQF_gQPD.js} +1 -1
  39. package/dist/assets/{mention-chips-BEoxPZei.js → mention-chips-DvkvqPRN.js} +1 -1
  40. package/dist/assets/{rotate-ccw-BT1r8zDE.js → rotate-ccw-ChQUphBj.js} +1 -1
  41. package/dist/assets/{select-yD0r8C3i.js → select-D6aktlIu.js} +1 -1
  42. package/dist/assets/{sheet-CAjfRCp9.js → sheet-C7Sbfc1a.js} +1 -1
  43. package/dist/assets/{skeleton-BFMc3stE.js → skeleton-C4VrwCAM.js} +1 -1
  44. package/dist/assets/{tabs-C1f963Rn.js → tabs-CFRGyc3-.js} +1 -1
  45. package/dist/assets/{use-adapter-capabilities-CsKGmy5W.js → use-adapter-capabilities-1OSpmnRd.js} +1 -1
  46. package/dist/assets/{use-copy-action-B-Azftuv.js → use-copy-action-C4qGxoRm.js} +1 -1
  47. package/dist/assets/{useHiddenSettings-Uo-rfexH.js → useHiddenSettings-gzjlybPM.js} +1 -1
  48. package/dist/index.html +39 -39
  49. package/dist/sw.js +1 -1
  50. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
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 tr=Object.defineProperty;var i=(e,t)=>tr(e,"name",{value:t,configurable:!0});import{i as ve,n as nr,t as pe}from"./rolldown-runtime-ZpX3ckPj.js";import{Fa as Ze,G as $,Hi as ge,Ia as rr,Na as or,Ra as ir,Sa as lr,St as ee,Tr as ur,Vi as gt,gt as Je,n as Vt,na as Qe}from"./agent-avatar-url-eBzFMwFS.js";import{t as ar}from"./preload-helper-CceJXRIF.js";import{I as sr,Kt as cr,Ln as qt,d as pr,f as fr,ft as dr,m as hr,p as mr,r as gr,s as et,un as Xt}from"./BreadcrumbContext-C-JqFdLZ.js";import{$ as Dr,C as yr,D as Gt,F as $e,H as ae,I as Dt,J as tt,K,L as Fr,P as T,R as wr,S as Cr,U as se,W as kr,Y as re,_ as Er,c as Ar,d as br,et as vr,f as xr,g as fe,h as Sr,i as Yt,j as nt,k as yt,l as Ir,m as Br,p as Pr,r as Zt,u as Lr,x as rt,z as Rr}from"./mention-chips-BEoxPZei.js";import{c as jr,l as Jt,m as Ft,p as _r,r as Qt,s as Tr,t as Nr,u as Mr}from"./StatusIcon-DxxLvme9.js";import{t as Or}from"./check-VcfFMsHr.js";import{a as zr,i as Ur,n as $r,o as Hr,t as Wr}from"./clipboard-CYFyFXxJ.js";import{n as Kr,t as Vr}from"./external-link-CAutrcht.js";var en={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"]};en.node;var qr=Vt(en),tn={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"]};tn.node;var Xr=Vt(tn);function ie(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const u=e.charCodeAt(n);let l="";if(u===37&&se(e.charCodeAt(n+1))&&se(e.charCodeAt(n+2)))o=2;else if(u<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(u))||(l=String.fromCharCode(u));else if(u>55295&&u<57344){const a=e.charCodeAt(n+1);u<56320&&a>56319&&a<57344?(l=String.fromCharCode(u,a),o=1):l="�"}else l=String.fromCharCode(u);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+o+1,l=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}i(ie,"normalizeUri");var y=ve(ir(),1),D=ve(rr(),1);function Gr(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}i(Gr,"escapeStringRegexp");var nn="paperclip.theme",Yr="#18181b",Zr="#ffffff",rn=(0,y.createContext)(void 0);function Jr(){return typeof document>"u"||document.documentElement.classList.contains("dark")?"dark":"light"}i(Jr,"resolveThemeFromDocument");function Qr(){if(typeof window>"u")return!1;try{const e=window.localStorage.getItem(nn);return e==="light"||e==="dark"}catch{return!1}}i(Qr,"hasStoredTheme");function eo(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?Yr:Zr)}i(eo,"applyTheme");function as({children:e}){const[t,n]=(0,y.useState)(()=>Jr()),[r,o]=(0,y.useState)(()=>Qr()),u=(0,y.useCallback)(s=>{o(!0),n(s)},[]),l=(0,y.useCallback)(()=>{o(!0),n(s=>s==="dark"?"light":"dark")},[]);(0,y.useEffect)(()=>{if(eo(t),!!r)try{localStorage.setItem(nn,t)}catch{}},[t,r]),(0,y.useEffect)(()=>{if(r||typeof window>"u"||typeof window.matchMedia!="function")return;const s=window.matchMedia("(prefers-color-scheme: dark)"),p=i(f=>{n(f.matches?"dark":"light")},"handleChange");return s.addEventListener("change",p),()=>s.removeEventListener("change",p)},[r]);const a=(0,y.useMemo)(()=>({theme:t,setTheme:u,toggleTheme:l}),[t,u,l]);return(0,D.jsx)(rn.Provider,{value:a,children:e})}i(as,"ThemeProvider");function to(){const e=(0,y.useContext)(rn);if(!e)throw new Error("useTheme must be used within ThemeProvider");return e}i(to,"useTheme");function no(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}i(no,"stringify$1");var ro=/[ \t\n\f\r]/g;function oo(e){return typeof e=="object"?e.type==="text"?wt(e.value):!1:wt(e)}i(oo,"whitespace");function wt(e){return e.replace(ro,"")===""}i(wt,"empty");var de=class{static{i(this,"Schema")}constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};de.prototype.normal={};de.prototype.property={};de.prototype.space=void 0;function on(e,t){const n={},r={};for(const o of e)Object.assign(n,o.property),Object.assign(r,o.normal);return new de(n,r,t)}i(on,"merge");function He(e){return e.toLowerCase()}i(He,"normalize$1");var M=class{static{i(this,"Info")}constructor(e,t){this.attribute=t,this.property=e}};M.prototype.attribute="";M.prototype.booleanish=!1;M.prototype.boolean=!1;M.prototype.commaOrSpaceSeparated=!1;M.prototype.commaSeparated=!1;M.prototype.defined=!1;M.prototype.mustUseProperty=!1;M.prototype.number=!1;M.prototype.overloadedBoolean=!1;M.prototype.property="";M.prototype.spaceSeparated=!1;M.prototype.space=void 0;var We=nr({boolean:i(()=>b,"boolean"),booleanish:i(()=>_,"booleanish"),commaOrSpaceSeparated:i(()=>z,"commaOrSpaceSeparated"),commaSeparated:i(()=>Q,"commaSeparated"),number:i(()=>m,"number"),overloadedBoolean:i(()=>Ke,"overloadedBoolean"),spaceSeparated:i(()=>R,"spaceSeparated")}),io=0,b=te(),_=te(),Ke=te(),m=te(),R=te(),Q=te(),z=te();function te(){return 2**++io}i(te,"increment");var Se=Object.keys(We),ot=class extends M{static{i(this,"DefinedInfo")}constructor(e,t,n,r){let o=-1;if(super(e,t),Ct(this,"space",r),typeof n=="number")for(;++o<Se.length;){const u=Se[o];Ct(this,Se[o],(n&We[u])===We[u])}}};ot.prototype.defined=!0;function Ct(e,t,n){n&&(e[t]=n)}i(Ct,"mark");function le(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const u=new ot(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(u.mustUseProperty=!0),t[r]=u,n[He(r)]=r,n[He(u.attribute)]=r}return new de(t,n,e.space)}i(le,"create");var ln=le({properties:{ariaActiveDescendant:null,ariaAtomic:_,ariaAutoComplete:null,ariaBusy:_,ariaChecked:_,ariaColCount:m,ariaColIndex:m,ariaColSpan:m,ariaControls:R,ariaCurrent:null,ariaDescribedBy:R,ariaDetails:null,ariaDisabled:_,ariaDropEffect:R,ariaErrorMessage:null,ariaExpanded:_,ariaFlowTo:R,ariaGrabbed:_,ariaHasPopup:null,ariaHidden:_,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:R,ariaLevel:m,ariaLive:null,ariaModal:_,ariaMultiLine:_,ariaMultiSelectable:_,ariaOrientation:null,ariaOwns:R,ariaPlaceholder:null,ariaPosInSet:m,ariaPressed:_,ariaReadOnly:_,ariaRelevant:null,ariaRequired:_,ariaRoleDescription:R,ariaRowCount:m,ariaRowIndex:m,ariaRowSpan:m,ariaSelected:_,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 un(e,t){return t in e?e[t]:t}i(un,"caseSensitiveTransform");function an(e,t){return un(e,t.toLowerCase())}i(an,"caseInsensitiveTransform");var lo=le({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Q,acceptCharset:R,accessKey:R,action:null,allow:null,allowFullScreen:b,allowPaymentRequest:b,allowUserMedia:b,alpha:b,alt:null,as:null,async:b,autoCapitalize:null,autoComplete:R,autoFocus:b,autoPlay:b,blocking:R,capture:null,charSet:null,checked:b,cite:null,className:R,closedBy:null,colorSpace:null,cols:m,colSpan:m,command:null,commandFor:null,content:null,contentEditable:_,controls:b,controlsList:R,coords:m|Q,crossOrigin:null,data:null,dateTime:null,decoding:null,default:b,defer:b,dir:null,dirName:null,disabled:b,download:Ke,draggable:_,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:b,formTarget:null,headers:R,height:m,hidden:Ke,high:m,href:null,hrefLang:null,htmlFor:R,httpEquiv:R,id:null,imageSizes:null,imageSrcSet:null,inert:b,inputMode:null,integrity:null,is:null,isMap:b,itemId:null,itemProp:R,itemRef:R,itemScope:b,itemType:R,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:R,placeholder:null,playsInline:b,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:b,referrerPolicy:null,rel:R,required:b,reversed:b,rows:m,rowSpan:m,sandbox:R,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:_,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:_,width:m,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:R,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:_,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:Q,part:R,prefix:null,property:null,results:m,security:null,unselectable:null},space:"html",transform:an}),uo=le({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:z,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:R,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:Q,g2:Q,glyphName:Q,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:z,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:R,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:m,pointsAtY:m,pointsAtZ:m,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:z,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:z,rev:z,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:z,requiredFeatures:z,requiredFonts:z,requiredFormats:z,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:z,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:z,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:z,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:un}),sn=le({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()}}),cn=le({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:an}),pn=le({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),ao={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"},so=/[A-Z]/g,kt=/-[a-z]/g,co=/^data[-\w.:]+$/i;function po(e,t){const n=He(t);let r=t,o=M;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&co.test(t)){if(t.charAt(4)==="-"){const u=t.slice(5).replace(kt,ho);r="data"+u.charAt(0).toUpperCase()+u.slice(1)}else{const u=t.slice(4);if(!kt.test(u)){let l=u.replace(so,fo);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}o=ot}return new o(r,t)}i(po,"find");function fo(e){return"-"+e.toLowerCase()}i(fo,"kebab");function ho(e){return e.charAt(1).toUpperCase()}i(ho,"camelcase");var mo=on([ln,lo,sn,cn,pn],"html"),it=on([ln,uo,sn,cn,pn],"svg");function go(e){return e.join(" ").trim()}i(go,"stringify");var Do=pe(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,o=/^\s*/,u=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,l=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,p=/^\s+|\s+$/g,f=`
2
+ var tr=Object.defineProperty;var i=(e,t)=>tr(e,"name",{value:t,configurable:!0});import{i as ve,n as nr,t as pe}from"./rolldown-runtime-ZpX3ckPj.js";import{Fa as Ze,G as $,Hi as ge,Ia as rr,Na as or,Ra as ir,Sa as lr,St as ee,Tr as ur,Vi as gt,gt as Je,n as Vt,na as Qe}from"./agent-avatar-url-CVV7dJ4l.js";import{t as ar}from"./preload-helper-CceJXRIF.js";import{I as sr,Kt as cr,Ln as qt,d as pr,f as fr,ft as dr,m as hr,p as mr,r as gr,s as et,un as Xt}from"./BreadcrumbContext-k4_HOBKt.js";import{$ as Dr,C as yr,D as Gt,F as $e,H as ae,I as Dt,J as tt,K,L as Fr,P as T,R as wr,S as Cr,U as se,W as kr,Y as re,_ as Er,c as Ar,d as br,et as vr,f as xr,g as fe,h as Sr,i as Yt,j as nt,k as yt,l as Ir,m as Br,p as Pr,r as Zt,u as Lr,x as rt,z as Rr}from"./mention-chips-DvkvqPRN.js";import{c as jr,l as Jt,m as Ft,p as _r,r as Qt,s as Tr,t as Nr,u as Mr}from"./StatusIcon-fJLmzCDW.js";import{t as Or}from"./check-CGphZTSp.js";import{a as zr,i as Ur,n as $r,o as Hr,t as Wr}from"./clipboard-BftXMlFg.js";import{n as Kr,t as Vr}from"./external-link-CRVf_Q8M.js";var en={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"]};en.node;var qr=Vt(en),tn={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"]};tn.node;var Xr=Vt(tn);function ie(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const u=e.charCodeAt(n);let l="";if(u===37&&se(e.charCodeAt(n+1))&&se(e.charCodeAt(n+2)))o=2;else if(u<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(u))||(l=String.fromCharCode(u));else if(u>55295&&u<57344){const a=e.charCodeAt(n+1);u<56320&&a>56319&&a<57344?(l=String.fromCharCode(u,a),o=1):l="�"}else l=String.fromCharCode(u);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+o+1,l=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}i(ie,"normalizeUri");var y=ve(ir(),1),D=ve(rr(),1);function Gr(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}i(Gr,"escapeStringRegexp");var nn="paperclip.theme",Yr="#18181b",Zr="#ffffff",rn=(0,y.createContext)(void 0);function Jr(){return typeof document>"u"||document.documentElement.classList.contains("dark")?"dark":"light"}i(Jr,"resolveThemeFromDocument");function Qr(){if(typeof window>"u")return!1;try{const e=window.localStorage.getItem(nn);return e==="light"||e==="dark"}catch{return!1}}i(Qr,"hasStoredTheme");function eo(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?Yr:Zr)}i(eo,"applyTheme");function as({children:e}){const[t,n]=(0,y.useState)(()=>Jr()),[r,o]=(0,y.useState)(()=>Qr()),u=(0,y.useCallback)(s=>{o(!0),n(s)},[]),l=(0,y.useCallback)(()=>{o(!0),n(s=>s==="dark"?"light":"dark")},[]);(0,y.useEffect)(()=>{if(eo(t),!!r)try{localStorage.setItem(nn,t)}catch{}},[t,r]),(0,y.useEffect)(()=>{if(r||typeof window>"u"||typeof window.matchMedia!="function")return;const s=window.matchMedia("(prefers-color-scheme: dark)"),p=i(f=>{n(f.matches?"dark":"light")},"handleChange");return s.addEventListener("change",p),()=>s.removeEventListener("change",p)},[r]);const a=(0,y.useMemo)(()=>({theme:t,setTheme:u,toggleTheme:l}),[t,u,l]);return(0,D.jsx)(rn.Provider,{value:a,children:e})}i(as,"ThemeProvider");function to(){const e=(0,y.useContext)(rn);if(!e)throw new Error("useTheme must be used within ThemeProvider");return e}i(to,"useTheme");function no(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}i(no,"stringify$1");var ro=/[ \t\n\f\r]/g;function oo(e){return typeof e=="object"?e.type==="text"?wt(e.value):!1:wt(e)}i(oo,"whitespace");function wt(e){return e.replace(ro,"")===""}i(wt,"empty");var de=class{static{i(this,"Schema")}constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};de.prototype.normal={};de.prototype.property={};de.prototype.space=void 0;function on(e,t){const n={},r={};for(const o of e)Object.assign(n,o.property),Object.assign(r,o.normal);return new de(n,r,t)}i(on,"merge");function He(e){return e.toLowerCase()}i(He,"normalize$1");var M=class{static{i(this,"Info")}constructor(e,t){this.attribute=t,this.property=e}};M.prototype.attribute="";M.prototype.booleanish=!1;M.prototype.boolean=!1;M.prototype.commaOrSpaceSeparated=!1;M.prototype.commaSeparated=!1;M.prototype.defined=!1;M.prototype.mustUseProperty=!1;M.prototype.number=!1;M.prototype.overloadedBoolean=!1;M.prototype.property="";M.prototype.spaceSeparated=!1;M.prototype.space=void 0;var We=nr({boolean:i(()=>b,"boolean"),booleanish:i(()=>_,"booleanish"),commaOrSpaceSeparated:i(()=>z,"commaOrSpaceSeparated"),commaSeparated:i(()=>Q,"commaSeparated"),number:i(()=>m,"number"),overloadedBoolean:i(()=>Ke,"overloadedBoolean"),spaceSeparated:i(()=>R,"spaceSeparated")}),io=0,b=te(),_=te(),Ke=te(),m=te(),R=te(),Q=te(),z=te();function te(){return 2**++io}i(te,"increment");var Se=Object.keys(We),ot=class extends M{static{i(this,"DefinedInfo")}constructor(e,t,n,r){let o=-1;if(super(e,t),Ct(this,"space",r),typeof n=="number")for(;++o<Se.length;){const u=Se[o];Ct(this,Se[o],(n&We[u])===We[u])}}};ot.prototype.defined=!0;function Ct(e,t,n){n&&(e[t]=n)}i(Ct,"mark");function le(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const u=new ot(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(u.mustUseProperty=!0),t[r]=u,n[He(r)]=r,n[He(u.attribute)]=r}return new de(t,n,e.space)}i(le,"create");var ln=le({properties:{ariaActiveDescendant:null,ariaAtomic:_,ariaAutoComplete:null,ariaBusy:_,ariaChecked:_,ariaColCount:m,ariaColIndex:m,ariaColSpan:m,ariaControls:R,ariaCurrent:null,ariaDescribedBy:R,ariaDetails:null,ariaDisabled:_,ariaDropEffect:R,ariaErrorMessage:null,ariaExpanded:_,ariaFlowTo:R,ariaGrabbed:_,ariaHasPopup:null,ariaHidden:_,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:R,ariaLevel:m,ariaLive:null,ariaModal:_,ariaMultiLine:_,ariaMultiSelectable:_,ariaOrientation:null,ariaOwns:R,ariaPlaceholder:null,ariaPosInSet:m,ariaPressed:_,ariaReadOnly:_,ariaRelevant:null,ariaRequired:_,ariaRoleDescription:R,ariaRowCount:m,ariaRowIndex:m,ariaRowSpan:m,ariaSelected:_,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 un(e,t){return t in e?e[t]:t}i(un,"caseSensitiveTransform");function an(e,t){return un(e,t.toLowerCase())}i(an,"caseInsensitiveTransform");var lo=le({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Q,acceptCharset:R,accessKey:R,action:null,allow:null,allowFullScreen:b,allowPaymentRequest:b,allowUserMedia:b,alpha:b,alt:null,as:null,async:b,autoCapitalize:null,autoComplete:R,autoFocus:b,autoPlay:b,blocking:R,capture:null,charSet:null,checked:b,cite:null,className:R,closedBy:null,colorSpace:null,cols:m,colSpan:m,command:null,commandFor:null,content:null,contentEditable:_,controls:b,controlsList:R,coords:m|Q,crossOrigin:null,data:null,dateTime:null,decoding:null,default:b,defer:b,dir:null,dirName:null,disabled:b,download:Ke,draggable:_,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:b,formTarget:null,headers:R,height:m,hidden:Ke,high:m,href:null,hrefLang:null,htmlFor:R,httpEquiv:R,id:null,imageSizes:null,imageSrcSet:null,inert:b,inputMode:null,integrity:null,is:null,isMap:b,itemId:null,itemProp:R,itemRef:R,itemScope:b,itemType:R,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:R,placeholder:null,playsInline:b,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:b,referrerPolicy:null,rel:R,required:b,reversed:b,rows:m,rowSpan:m,sandbox:R,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:_,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:_,width:m,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:R,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:_,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:Q,part:R,prefix:null,property:null,results:m,security:null,unselectable:null},space:"html",transform:an}),uo=le({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:z,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:R,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:Q,g2:Q,glyphName:Q,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:z,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:R,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:m,pointsAtY:m,pointsAtZ:m,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:z,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:z,rev:z,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:z,requiredFeatures:z,requiredFonts:z,requiredFormats:z,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:z,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:z,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:z,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:un}),sn=le({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()}}),cn=le({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:an}),pn=le({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),ao={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"},so=/[A-Z]/g,kt=/-[a-z]/g,co=/^data[-\w.:]+$/i;function po(e,t){const n=He(t);let r=t,o=M;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&co.test(t)){if(t.charAt(4)==="-"){const u=t.slice(5).replace(kt,ho);r="data"+u.charAt(0).toUpperCase()+u.slice(1)}else{const u=t.slice(4);if(!kt.test(u)){let l=u.replace(so,fo);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}o=ot}return new o(r,t)}i(po,"find");function fo(e){return"-"+e.toLowerCase()}i(fo,"kebab");function ho(e){return e.charAt(1).toUpperCase()}i(ho,"camelcase");var mo=on([ln,lo,sn,cn,pn],"html"),it=on([ln,uo,sn,cn,pn],"svg");function go(e){return e.join(" ").trim()}i(go,"stringify");var Do=pe(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,o=/^\s*/,u=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,l=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,p=/^\s+|\s+$/g,f=`
3
3
  `,c="/",d="*",h="",g="comment",F="declaration";function w(C,v){if(typeof C!="string")throw new TypeError("First argument must be a string");if(!C)return[];v=v||{};var x=1,P=1;function q(B){var k=B.match(r);k&&(x+=k.length);var N=B.lastIndexOf(f);P=~N?B.length-N:P+B.length}i(q,"updatePosition");function O(){var B={line:x,column:P};return function(k){return k.position=new j(B),I(),k}}i(O,"position");function j(B){this.start=B,this.end={line:x,column:P},this.source=v.source}i(j,"Position"),j.prototype.content=C;function L(B){var k=new Error(v.source+":"+x+":"+P+": "+B);if(k.reason=B,k.filename=v.source,k.line=x,k.column=P,k.source=C,!v.silent)throw k}i(L,"error");function A(B){var k=B.exec(C);if(k){var N=k[0];return q(N),C=C.slice(N.length),k}}i(A,"match");function I(){A(o)}i(I,"whitespace");function S(B){var k;for(B=B||[];k=U();)k!==!1&&B.push(k);return B}i(S,"comments");function U(){var B=O();if(!(c!=C.charAt(0)||d!=C.charAt(1))){for(var k=2;h!=C.charAt(k)&&(d!=C.charAt(k)||c!=C.charAt(k+1));)++k;if(k+=2,h===C.charAt(k-1))return L("End of comment missing");var N=C.slice(2,k-2);return P+=2,q(N),C=C.slice(k),P+=2,B({type:g,comment:N})}}i(U,"comment");function G(){var B=O(),k=A(u);if(k){if(U(),!A(l))return L("property missing ':'");var N=A(a),me=B({type:F,property:E(k[0].replace(n,h)),value:N?E(N[0].replace(n,h)):h});return A(s),me}}i(G,"declaration");function Y(){var B=[];S(B);for(var k;k=G();)k!==!1&&(B.push(k),S(B));return B}return i(Y,"declarations"),I(),Y()}i(w,"index");function E(C){return C?C.replace(p,h):h}i(E,"trim"),t.exports=w})),yo=pe((e=>{var t=e&&e.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var n=t(Do());function r(o,u){let l=null;if(!o||typeof o!="string")return l;const a=(0,n.default)(o),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&&(l=l||{},l[f]=c)}),l}i(r,"StyleToObject")})),Fo=pe((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,u=/^-(ms)-/,l=i(function(f){return!f||r.test(f)||t.test(f)},"skipCamelCase"),a=i(function(f,c){return c.toUpperCase()},"capitalize"),s=i(function(f,c){return"".concat(c,"-")},"trimHyphen"),p=i(function(f,c){return c===void 0&&(c={}),l(f)?f:(f=f.toLowerCase(),c.reactCompat?f=f.replace(u,s):f=f.replace(o,s),f.replace(n,a))},"camelCase");e.camelCase=p})),wo=pe(((e,t)=>{var n=(e&&e.__importDefault||function(u){return u&&u.__esModule?u:{default:u}})(yo()),r=Fo();function o(u,l){var a={};return!u||typeof u!="string"||(0,n.default)(u,function(s,p){s&&p&&(a[(0,r.camelCase)(s,l)]=p)}),a}i(o,"StyleToJS"),o.default=o,t.exports=o})),fn=dn("end"),lt=dn("start");function dn(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}}}i(dn,"point");function Co(e){const t=lt(e),n=fn(e);if(t&&n)return{start:t,end:n}}i(Co,"position");var ko=ve(wo(),1),ut={}.hasOwnProperty,Eo=new Map,Ao=/[A-Z]/g,bo=new Set(["table","tbody","thead","tfoot","tr"]),vo=new Set(["td","th"]),hn="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function xo(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const 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=_o(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=jo(n,t.jsx,t.jsxs)}const o={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"?it:mo,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},u=mn(o,e,void 0);return u&&typeof u!="string"?u:o.create(e,o.Fragment,{children:u||void 0},void 0)}i(xo,"toJsxRuntime");function mn(e,t,n){if(t.type==="element")return So(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Io(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Po(e,t,n);if(t.type==="mdxjsEsm")return Bo(e,t);if(t.type==="root")return Lo(e,t,n);if(t.type==="text")return Ro(e,t)}i(mn,"one$1");function So(e,t,n){const r=e.schema;let o=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(o=it,e.schema=o),e.ancestors.push(t);const u=Dn(e,t.tagName,!1),l=To(e,t);let a=st(e,t);return bo.has(t.tagName)&&(a=a.filter(function(s){return typeof s=="string"?!oo(s):!0})),gn(e,l,u,t),at(l,a),e.ancestors.pop(),e.schema=r,e.create(t,u,l,n)}i(So,"element");function Io(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)}ce(e,t.position)}i(Io,"mdxExpression");function Bo(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ce(e,t.position)}i(Bo,"mdxEsm");function Po(e,t,n){const r=e.schema;let o=r;t.name==="svg"&&r.space==="html"&&(o=it,e.schema=o),e.ancestors.push(t);const u=t.name===null?e.Fragment:Dn(e,t.name,!0),l=No(e,t),a=st(e,t);return gn(e,l,u,t),at(l,a),e.ancestors.pop(),e.schema=r,e.create(t,u,l,n)}i(Po,"mdxJsxElement");function Lo(e,t,n){const r={};return at(r,st(e,t)),e.create(t,e.Fragment,r,n)}i(Lo,"root$1");function Ro(e,t){return t.value}i(Ro,"text$2");function gn(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}i(gn,"addNode");function at(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}i(at,"addChildren");function jo(e,t,n){return r;function r(o,u,l,a){const s=Array.isArray(l.children)?n:t;return a?s(u,l,a):s(u,l)}}i(jo,"productionCreate");function _o(e,t){return n;function n(r,o,u,l){const a=Array.isArray(u.children),s=lt(r);return t(o,u,l,a,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}i(_o,"developmentCreate");function To(e,t){const n={};let r,o;for(o in t.properties)if(o!=="children"&&ut.call(t.properties,o)){const u=Mo(e,o,t.properties[o]);if(u){const[l,a]=u;e.tableCellAlignToStyle&&l==="align"&&typeof a=="string"&&vo.has(t.tagName)?r=a:n[l]=a}}if(r){const u=n.style||(n.style={});u[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}i(To,"createElementProps");function No(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const u=o.expression;u.type;const l=u.properties[0];l.type,Object.assign(n,e.evaluater.evaluateExpression(l.argument))}else ce(e,t.position);else{const o=r.name;let u;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const l=r.value.data.estree.body[0];l.type,u=e.evaluater.evaluateExpression(l.expression)}else ce(e,t.position);else u=r.value===null?!0:r.value;n[o]=u}return n}i(No,"createJsxElementProps");function st(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:Eo;for(;++r<t.children.length;){const u=t.children[r];let l;if(e.passKeys){const s=u.type==="element"?u.tagName:u.type==="mdxJsxFlowElement"||u.type==="mdxJsxTextElement"?u.name:void 0;if(s){const p=o.get(s)||0;l=s+"-"+p,o.set(s,p+1)}}const a=mn(e,u,l);a!==void 0&&n.push(a)}return n}i(st,"createChildren");function Mo(e,t,n){const r=po(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?no(n):go(n)),r.property==="style"){let o=typeof n=="object"?n:Oo(e,String(n));return e.stylePropertyNameCase==="css"&&(o=zo(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&r.space?ao[r.property]||r.property:r.attribute,n]}}i(Mo,"createProperty");function Oo(e,t){try{return(0,ko.default)(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,o=new nt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=hn+"#cannot-parse-style-attribute",o}}i(Oo,"parseStyle");function Dn(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const o=t.split(".");let u=-1,l;for(;++u<o.length;){const a=yt(o[u])?{type:"Identifier",name:o[u]}:{type:"Literal",value:o[u]};l=l?{type:"MemberExpression",object:l,property:a,computed:!!(u&&a.type==="Literal"),optional:!1}:a}r=l}else r=yt(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const o=r.value;return ut.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(r);ce(e)}i(Dn,"findComponentFromName");function ce(e,t){const n=new nt("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=hn+"#cannot-handle-mdx-estrees-without-createevaluater",n}i(ce,"crashEstree");function zo(e){const t={};let n;for(n in e)ut.call(e,n)&&(t[Uo(n)]=e[n]);return t}i(zo,"transformStylesToCssCasing");function Uo(e){let t=e.replace(Ao,$o);return t.slice(0,3)==="ms-"&&(t="-"+t),t}i(Uo,"transformStyleToCssCasing");function $o(e){return"-"+e.toLowerCase()}i($o,"toDash");var Ie={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 Ho(e){const t=this;t.parser=n;function n(r){return Br(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}i(n,"parser")}i(Ho,"remarkParse");function Wo(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)}i(Wo,"blockquote");function Ko(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
4
4
  `}]}i(Ko,"hardBreak");function Vo(e,t){const n=t.value?t.value+`
5
5
  `:"",r={},o=t.lang?t.lang.split(/\s+/):[];o.length>0&&(r.className=["language-"+o[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}i(Vo,"code$1");function qo(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}i(qo,"strikethrough");function Xo(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}i(Xo,"emphasis");function Go(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=ie(r.toLowerCase()),u=e.footnoteOrder.indexOf(r);let l,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=u+1,a+=1,e.footnoteCounts.set(r,a);const s={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,s);const p={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,p),e.applyData(t,p)}i(Go,"footnoteReference$1");function Yo(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}i(Yo,"heading");function Zo(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}i(Zo,"html");function yn(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 o=e.all(t),u=o[0];u&&u.type==="text"?u.value="["+u.value:o.unshift({type:"text",value:"["});const l=o[o.length-1];return l&&l.type==="text"?l.value+=r:o.push({type:"text",value:r}),o}i(yn,"revert");function Jo(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return yn(e,t);const o={src:ie(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(o.title=r.title);const u={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,u),e.applyData(t,u)}i(Jo,"imageReference");function Qo(e,t){const n={src:ie(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)}i(Qo,"image");function ei(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)}i(ei,"inlineCode");function ti(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return yn(e,t);const o={href:ie(r.url||"")};r.title!==null&&r.title!==void 0&&(o.title=r.title);const u={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,u),e.applyData(t,u)}i(ti,"linkReference");function ni(e,t){const n={href:ie(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)}i(ni,"link");function ri(e,t,n){const r=e.all(t),o=n?oi(n):Fn(t),u={},l=[];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];(o||a!==0||f.type!=="element"||f.tagName!=="p")&&l.push({type:"text",value:`
@@ -1,5 +1,5 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dist-BEo-uoE2.js","assets/dist-BhxPxuMy.js","assets/dist-BX4PSqp4.js","assets/dist-Wi1mdRva.js","assets/dist-DTj_cM7l.js","assets/dist-D4qkWMdz.js","assets/rolldown-runtime-ZpX3ckPj.js","assets/dist-DTwCbVsv.js","assets/dist-Bp5Y-deP.js","assets/dist-ds5P5TFe.js","assets/dist-BAtkULn4.js","assets/dist-DrXWoUSy.js","assets/dist-Uvf9OORN.js","assets/dist-CcBZFMdg.js","assets/dist-D61jI6QA.js","assets/dist-CN5Rg9XU.js","assets/dist-DY5RRJBY.js","assets/dist-Bc6S4vv3.js","assets/dist-CD47N__7.js","assets/dist-yKrp-Qew.js","assets/dist-CdFTLNcc.js","assets/dist-Cv1Aw0YM.js","assets/dist-B6TpBrd3.js","assets/dockerfile-BttNdtK0.js","assets/simple-mode-B79cVo-x.js","assets/factor-CM3-9V3b.js","assets/nsis-KFC6hioG.js","assets/pug-C20tNwmy.js","assets/javascript-Cblpdx44.js","assets/dist-BPuuaNc6.js","assets/dist-BY93_d3Z.js"])))=>i.map(i=>d[i]);
2
- var hk=Object.defineProperty;var s=(e,t)=>hk(e,"name",{value:t,configurable:!0});import{i as da,n as xx,t as ws}from"./rolldown-runtime-ZpX3ckPj.js";import{A as gk,G as Yi,Hi as Ce,Ia as pk,La as mk,M as hs,O as Wg,Ra as _k,St as Z1,a as vk,c as zg,ht as yk,i as jg,j as Cx,l as Jg,n as Gu,na as Y1,o as bx,r as xk,s as Ex,t as Ck,y as X1}from"./agent-avatar-url-eBzFMwFS.js";import{t as V}from"./preload-helper-CceJXRIF.js";import{A as rr,B as bk,D as Gg,E as Ek,G as Tr,I as Q1,K as Xi,L as Sk,M as Ka,N as e0,O as js,P as Ye,Q as Tk,R as wk,T as t0,V as n0,X as jd,Y as yi,Z as kk,b as Mk,c as Ak,d as Ik,et as Nk,f as Ok,i as qg,it as Dk,j as an,l as Rk,m as Lk,n as $k,nt as Sx,p as Pk,q as Pc,rt as Fk,t as Ua,tt as Vk,u as Bk,v as Hk,w as Jf,y as Kk,z as Uk}from"./mention-chips-BEoxPZei.js";import{i as Tx,n as wx,r as qu,t as kx}from"./dist-Dz68ZFqX.js";import{a as Mx,c as Wk,d as zk,f as jk,i as Ax,l as Jk,n as Ix,o as Nx,p as Gk,r as Ox,s as qk,t as Zk}from"./dist-CfR2_c4p.js";import{t as Yk}from"./AgentAvatar-DySHTTwq.js";import{a as Xk,f as Qk,h as e9,i as t9,l as n9,m as r9,n as i9,p as o9,s as s9,t as l9}from"./dist-Z45aKkJm.js";import{$ as a9,A as Dx,B as c9,Ct as Zu,E as Rx,F as Dt,G as u9,H as d9,I as Lx,J as f9,K as h9,L as ct,O as Zo,Ot as Gf,P as _e,Q as g9,R as Zg,S as $x,St as fa,T as Il,Tt as Yg,U as Xg,V as p9,W as Px,X as Fx,Y as Qg,Z as qf,_t as ha,a as P,at as Vx,bt as Fn,c as m9,ct as Te,dt as _9,et as v9,f as y9,ft as ep,g as x9,gt as nn,ht as C9,it as Yu,j as ks,l as b9,lt as Fc,mt as Bx,n as Hx,nt as E9,o as S9,ot as Kx,pt as T9,q as w9,rt as Ct,st as cn,t as k9,tt as Ux,ut as Io,v as M9,vt as Wx,w as A9,wt as vo,x as Vc,xt as Jr,yt as Jd,z as I9}from"./dist-BhxPxuMy.js";var Bc=da(mk(),1),m=da(_k(),1),ee=da(pk(),1),N9=Object.defineProperty,zx=s((e,t)=>N9(e,"name",{value:t,configurable:!0}),"__name$3"),r0="horizontal",O9=["horizontal","vertical"],D9=m.forwardRef(zx(s(function(t,n){const{decorative:r,orientation:i=r0,...o}=t,l=jx(i)?i:r0,a=r?{role:"none"}:{"aria-orientation":l==="vertical"?l:void 0,role:"separator"};return(0,ee.jsx)(hs.div,{"data-orientation":l,...a,...o,ref:n})},"Separator2"),"Separator"));function jx(e){return O9.includes(e)}s(jx,"isValidOrientation");zx(jx,"isValidOrientation");var R9=D9,L9=Object.defineProperty,$9=s((e,t)=>L9(e,"name",{value:t,configurable:!0}),"__name$2"),P9="Toggle",F9=m.forwardRef($9(s(function(t,n){const{pressed:r,defaultPressed:i,onPressedChange:o,...l}=t,[a,c]=Wg({prop:r,onChange:o,defaultProp:i??!1,caller:P9});return(0,ee.jsx)(hs.button,{type:"button","aria-pressed":a,"data-state":a?"on":"off","data-disabled":t.disabled?"":void 0,...l,ref:n,onClick:gk(t.onClick,()=>{t.disabled||c(!a)})})},"Toggle2"),"Toggle")),V9=Object.defineProperty,Li=s((e,t)=>V9(e,"name",{value:t,configurable:!0}),"__name$1"),Ms="ToggleGroup",[Jx,Gx]=Cx(Ms,[qu]),qx=qu(),B9=m.forwardRef(Li(s(function(t,n){const{type:r,...i}=t;if(r==="single")return(0,ee.jsx)(H9,{role:"radiogroup",...i,ref:n});if(r==="multiple")return(0,ee.jsx)(K9,{role:"toolbar",...i,ref:n});throw new Error(`Missing prop \`type\` expected on \`${Ms}\``)},"ToggleGroup2"),"ToggleGroup")),[Zx,Yx]=Jx(Ms),H9=m.forwardRef(Li(s(function(t,n){const{value:r,defaultValue:i,onValueChange:o=Li(()=>{},"onValueChange"),...l}=t,[a,c]=Wg({prop:r,defaultProp:i??"",onChange:o,caller:Ms});return(0,ee.jsx)(Zx,{scope:t.__scopeToggleGroup,type:"single",value:m.useMemo(()=>a?[a]:[],[a]),onItemActivate:c,onItemDeactivate:m.useCallback(()=>c(""),[c]),children:(0,ee.jsx)(Xx,{...l,ref:n})})},"ToggleGroupImplSingle2"),"ToggleGroupImplSingle")),K9=m.forwardRef(Li(s(function(t,n){const{value:r,defaultValue:i,onValueChange:o=Li(()=>{},"onValueChange"),...l}=t,[a,c]=Wg({prop:r,defaultProp:i??[],onChange:o,caller:Ms}),u=m.useCallback(f=>c((h=[])=>[...h,f]),[c]),d=m.useCallback(f=>c((h=[])=>h.filter(g=>g!==f)),[c]);return(0,ee.jsx)(Zx,{scope:t.__scopeToggleGroup,type:"multiple",value:a,onItemActivate:u,onItemDeactivate:d,children:(0,ee.jsx)(Xx,{...l,ref:n})})},"ToggleGroupImplMultiple2"),"ToggleGroupImplMultiple")),[U9,W9]=Jx(Ms),Xx=m.forwardRef(Li(s(function(t,n){const{__scopeToggleGroup:r,disabled:i=!1,rovingFocus:o=!0,orientation:l,dir:a,loop:c=!0,...u}=t,d=qx(r),f=Tx(a),h={dir:f,...u};return(0,ee.jsx)(U9,{scope:r,rovingFocus:o,disabled:i,children:o?(0,ee.jsx)(wx,{asChild:!0,...d,orientation:l,dir:f,loop:c,children:(0,ee.jsx)(hs.div,{...h,ref:n})}):(0,ee.jsx)(hs.div,{...h,ref:n})})},"ToggleGroupImpl2"),"ToggleGroupImpl")),Zf="ToggleGroupItem",z9=m.forwardRef(Li(s(function(t,n){const r=Yx(Zf,t.__scopeToggleGroup),i=W9(Zf,t.__scopeToggleGroup),o=qx(t.__scopeToggleGroup),l=r.value.includes(t.value),a=i.disabled||t.disabled,c={...t,pressed:l,disabled:a},u=m.useRef(null);return i.rovingFocus?(0,ee.jsx)(kx,{asChild:!0,...o,focusable:!a,active:l,ref:u,children:(0,ee.jsx)(i0,{...c,ref:n})}):(0,ee.jsx)(i0,{...c,ref:n})},"ToggleGroupItem2"),"ToggleGroupItem")),i0=m.forwardRef(Li(s(function(t,n){const{__scopeToggleGroup:r,value:i,...o}=t,l=Yx(Zf,r),a={role:"radio","aria-checked":t.pressed,"aria-pressed":void 0},c=l.type==="single"?a:void 0;return(0,ee.jsx)(F9,{...c,...o,ref:n,onPressedChange:s(u=>{u?l.onItemActivate(i):l.onItemDeactivate(i)},"onPressedChange")})},"ToggleGroupItemImpl2"),"ToggleGroupItemImpl")),j9=Object.defineProperty,ga=s((e,t)=>j9(e,"name",{value:t,configurable:!0}),"__name"),Qx="Toolbar",[J9,SU]=Cx(Qx,[qu,Gx]),eC=qu(),tC=Gx(),[G9,nC]=J9(Qx),q9=m.forwardRef(ga(s(function(t,n){const{__scopeToolbar:r,orientation:i="horizontal",dir:o,loop:l=!0,...a}=t,c=eC(r),u=Tx(o);return(0,ee.jsx)(G9,{scope:r,orientation:i,dir:u,children:(0,ee.jsx)(wx,{asChild:!0,...c,orientation:i,dir:u,loop:l,children:(0,ee.jsx)(hs.div,{role:"toolbar","aria-orientation":i,dir:u,...a,ref:n})})})},"Toolbar2"),"Toolbar")),Z9="ToolbarSeparator",Y9=m.forwardRef(ga(s(function(t,n){const{__scopeToolbar:r,...i}=t,o=nC(Z9,r);return(0,ee.jsx)(R9,{orientation:o.orientation==="horizontal"?"vertical":"horizontal",...i,ref:n})},"ToolbarSeparator2"),"ToolbarSeparator")),rC=m.forwardRef(ga(s(function(t,n){const{__scopeToolbar:r,...i}=t,o=eC(r);return(0,ee.jsx)(kx,{asChild:!0,...o,focusable:!t.disabled,children:(0,ee.jsx)(hs.button,{type:"button",...i,ref:n})})},"ToolbarButton2"),"ToolbarButton")),X9="ToolbarToggleGroup",Q9=m.forwardRef(ga(s(function(t,n){const{__scopeToolbar:r,...i}=t,o=nC(X9,r),l=tC(r);return(0,ee.jsx)(B9,{"data-orientation":o.orientation,dir:o.dir,...l,...i,ref:n,rovingFocus:!1})},"ToolbarToggleGroup2"),"ToolbarToggleGroup")),eM=m.forwardRef(ga(s(function(t,n){const{__scopeToolbar:r,...i}=t,o=tC(r),l={__scopeToolbar:t.__scopeToolbar};return(0,ee.jsx)(rC,{asChild:!0,...l,children:(0,ee.jsx)(z9,{...o,...i,ref:n})})},"ToolbarToggleItem2"),"ToolbarToggleItem")),iC=q9,tM=Y9,os=rC,nM=Q9,Gd=eM,oC={name:"calendar-clock",size:24,node:[["path",{d:"M16 14v2.2l1.6 1",key:"fo4ql5"}],["path",{d:"M16 2v3",key:"otl347"}],["path",{d:"M21 7.338V5a2 2 0 00-2-2H5a2 2 0 00-2 2v14a2 2 0 002 2h2.338",key:"7hb8p4"}],["path",{d:"M3 9h5.859",key:"numkqi"}],["path",{d:"M8 2v3",key:"1ioesn"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]]};oC.node;var rM=Gu(oC),sC={name:"flag",size:24,node:[["path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",key:"1jaruq"}]]};sC.node;var iM=Gu(sC),lC={name:"hash",size:24,node:[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]};lC.node;var oM=Gu(lC),aC={name:"user",size:24,node:[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]};aC.node;var sM=Gu(aC),qd={list:s((e,t,n)=>{const r=new URLSearchParams;t?.entityType&&r.set("entityType",t.entityType),t?.entityId&&r.set("entityId",t.entityId),t?.agentId&&r.set("agentId",t.agentId),t?.limit&&r.set("limit",String(t.limit));const i=r.toString();return Ce.get(`/companies/${e}/activity${i?`?${i}`:""}`,n)},"list"),forIssue:s(e=>Ce.get(`/issues/${e}/activity`),"forIssue"),runsForIssue:s(e=>Ce.get(`/issues/${e}/runs`),"runsForIssue"),issuesForRun:s(e=>Ce.get(`/heartbeat-runs/${e}/issues`),"issuesForRun")},lM={list:s((e,t)=>{const n=new URLSearchParams;t?.projectId&&n.set("projectId",t.projectId);const r=n.toString();return Ce.get(`/companies/${e}/routines${r?`?${r}`:""}`)},"list"),create:s((e,t)=>Ce.post(`/companies/${e}/routines`,t),"create"),get:s(e=>Ce.get(`/routines/${e}`),"get"),update:s((e,t)=>Ce.patch(`/routines/${e}`,t),"update"),listRevisions:s(e=>Ce.get(`/routines/${e}/revisions`),"listRevisions"),restoreRevision:s((e,t,n={})=>Ce.post(`/routines/${e}/revisions/${t}/restore`,n),"restoreRevision"),listRuns:s((e,t=50)=>Ce.get(`/routines/${e}/runs?limit=${t}`),"listRuns"),createTrigger:s((e,t)=>Ce.post(`/routines/${e}/triggers`,t),"createTrigger"),updateTrigger:s((e,t)=>Ce.patch(`/routine-triggers/${e}`,t),"updateTrigger"),deleteTrigger:s(e=>Ce.delete(`/routine-triggers/${e}`),"deleteTrigger"),rotateTriggerSecret:s(e=>Ce.post(`/routine-triggers/${e}/rotate-secret`,{}),"rotateTriggerSecret"),run:s((e,t)=>Ce.post(`/routines/${e}/run`,t??{}),"run"),activity:s(async(e,t,n)=>{const r=[qd.list(e,{entityType:"routine",entityId:t}),...(n?.triggerIds??[]).map(o=>qd.list(e,{entityType:"routine_trigger",entityId:o})),...(n?.runIds??[]).map(o=>qd.list(e,{entityType:"routine_run",entityId:o}))],i=(await Promise.all(r)).flat();return[...new Map(i.map(o=>[o.id,o])).values()].sort((o,l)=>new Date(l.createdAt).getTime()-new Date(o.createdAt).getTime())},"activity")},aM=Object.defineProperty,cM=s((e,t,n)=>t in e?aM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,"P$1"),zr=s((e,t,n)=>cM(e,typeof t!="symbol"?t+"":t,n),"p$6"),uM=class cC{static{s(this,"S$1")}constructor(t=new Map){this.map=t}clone(){return new cC(new Map(this.map))}increment(t){const n=this.map.get(t)??0;this.map.set(t,n+1)}decrement(t,n){let r=this.map.get(t);r!==void 0&&(r-=1,this.map.set(t,r),r===0&&n())}},Wa=class{static{s(this,"k$1")}constructor(){zr(this,"map",new Map)}getOrCreate(e){let t=this.map.get(e);return t===void 0&&(t=new Set,this.map.set(e,t)),t}get(e){return this.map.get(e)}use(e,t){const n=this.get(e);n!==void 0&&t(n)}delete(e){return this.map.delete(e)}};function ss(e,t){return t(e),e}s(ss,"d$4");function tp(){}s(tp,"x$6");var uC="cell";function o0(e,t){return e===t}s(o0,"O$3");var Xu=new Map,Zd,dM=class{static{s(this,"T$1")}constructor(e={}){zr(this,"subscriptions",new Wa),zr(this,"singletonSubscriptions",new Map),zr(this,"graph",new Wa),zr(this,"state",new Map),zr(this,"distinctNodes",new Map),zr(this,"executionMaps",new Map),zr(this,"definitionRegistry",new Set),zr(this,"combinedCells",[]);for(const t of Object.getOwnPropertySymbols(e))this.state.set(t,e[t])}cellInstance(e,t=!0,n=Symbol()){return this.state.has(n)||this.state.set(n,e),t!==!1&&!this.distinctNodes.has(n)&&this.distinctNodes.set(n,t===!0?o0:t),n}signalInstance(e=!0,t=Symbol()){return e!==!1&&this.distinctNodes.set(t,e===!0?o0:e),t}sub(e,t){this.register(e);const n=this.subscriptions.getOrCreate(e);return n.add(t),()=>n.delete(t)}singletonSub(e,t){return this.register(e),t===void 0?this.singletonSubscriptions.delete(e):this.singletonSubscriptions.set(e,t),()=>this.singletonSubscriptions.delete(e)}resetSingletonSubs(){this.singletonSubscriptions.clear()}subMultiple(e,t){const n=this.signalInstance();return this.connect({map:s(r=>(...i)=>{r(i)},"map"),sink:n,sources:e}),this.sub(n,t)}pubIn(e){var t;const n=Reflect.ownKeys(e),r=this.getExecutionMap(n),i=r.refCount.clone(),o=r.participatingNodes.slice(),l=new Map(this.state),a=s(c=>{this.graph.use(c,u=>{for(const{sources:d,sink:f}of u)d.has(c)&&i.decrement(f,()=>{o.splice(o.indexOf(f),1),a(f)})})},"l");for(;;){const c=o.shift();if(c===void 0)break;const u=c;let d=!1;const f=s(h=>{const g=this.distinctNodes.get(u);if(g!=null&&g(l.get(u),h)){d=!1;return}d=!0,l.set(u,h),this.state.has(u)&&this.state.set(u,h)},"y");if(Object.prototype.hasOwnProperty.call(e,u)?f(e[u]):r.projections.use(u,h=>{for(const g of h){const p=[...Array.from(g.sources),...Array.from(g.pulls)].map(_=>l.get(_));g.map(f)(...p)}}),d){const h=l.get(u);this.inContext(()=>{this.subscriptions.use(u,g=>{for(const p of g)p(h)})}),(t=this.singletonSubscriptions.get(u))==null||t(h)}else a(u)}}connect({sources:e,pulls:t=[],map:n,sink:r}){const i={map:n,pulls:new Set(t),sink:this.register(r),sources:new Set(e)};for(const o of[...e,...t])this.register(o),this.graph.getOrCreate(o).add(i);this.executionMaps.clear()}pub(e,t){this.pubIn({[e]:t})}pipe(e,...t){return this.combineOperators(...t)(e)}transformer(...e){return t=>ss(this.signalInstance(),n=>(this.link(this.pipe(n,...e),t),n))}link(e,t){this.connect({map:s(n=>r=>{n(r)},"map"),sink:t,sources:[e]})}combine(...e){return ss(this.signalInstance(),t=>{this.connect({map:s(n=>(...r)=>{n(r)},"map"),sink:t,sources:e})})}combineCells(...e){const t=this.combinedCells.find(r=>e.length===r.sources.length&&e.every((i,o)=>i===r.sources[o]));if(t)return t.cell;const n=this.cellInstance(e.map(r=>this.getValue(r)),!0);return this.connect({map:s(r=>(...i)=>{r(i)},"map"),sink:n,sources:e}),this.combinedCells.push({sources:e,cell:n}),n}getValue(e){return this.register(e),this.state.get(e)}getValues(e){return e.map(t=>this.getValue(t))}register(e){const t=Xu.get(e);return t===void 0||this.definitionRegistry.has(e)?e:(this.definitionRegistry.add(e),ss(t.type===uC?this.cellInstance(t.initial,t.distinct,e):this.signalInstance(t.distinct,e),n=>{this.inContext(()=>{t.init(this,n)})}))}inContext(e){const t=Zd;Zd=this;const n=e();return Zd=t,n}changeWith(e,t,n){this.connect({sources:[t],pulls:[e],sink:e,map:s(r=>(i,o)=>{r(n(o,i))},"map")})}calculateExecutionMap(e){const t=[],n=new Set,r=new Wa,i=new uM,o=new Wa,l=s((a,c=0)=>{i.increment(a),!n.has(a)&&(this.register(a),r.use(a,u=>{c=Math.max(...Array.from(u).map(d=>t.indexOf(d)))+1}),this.graph.use(a,u=>{for(const d of u)d.sources.has(a)?(o.getOrCreate(d.sink).add(d),l(d.sink,c)):r.getOrCreate(d.sink).add(a)}),n.add(a),t.splice(c,0,a))},"l");return e.forEach(l),{participatingNodes:t,pendingPulls:r,projections:o,refCount:i}}getExecutionMap(e){let t=e;if(e.length===1){t=e[0];const r=this.executionMaps.get(t);if(r!==void 0)return r}else for(const[r,i]of this.executionMaps.entries())if(Array.isArray(r)&&r.length===e.length&&r.every(o=>e.includes(o)))return i;const n=this.calculateExecutionMap(e);return this.executionMaps.set(t,n),n}combineOperators(...e){return t=>{for(const n of e)t=n(t,this);return t}}};function he(e,t=tp,n=!0){return ss(Symbol(),r=>{Xu.set(r,{type:uC,distinct:n,initial:e,init:t})})}s(he,"$$2");function wt(e=tp,t=!1){return ss(Symbol(),n=>{Xu.set(n,{type:"signal",distinct:t,init:e})})}s(wt,"K$1");function Ji(e=tp){return ss(Symbol(),t=>{Xu.set(t,{type:"signal",distinct:!1,init:e})})}s(Ji,"q$3");var dC=m.createContext(null);function Qu(){const e=m.useContext(dC);if(e===null)throw new Error("useRealm must be used within a RealmContextProvider");return e}s(Qu,"R$2");function ni(e){const t=Qu();t.register(e);const n=m.useCallback(r=>t.sub(e,r),[t,e]);return m.useSyncExternalStore(n,()=>t.getValue(e),()=>t.getValue(e))}s(ni,"E$3");function vr(...e){const t=Qu();return ni(m.useMemo(()=>t.combineCells.apply(t,e),[t,...e]))}s(vr,"X$4");function Mn(e){const t=Qu();return t.register(e),m.useCallback(n=>{t.pub(e,n)},[t,e])}s(Mn,"A$1");function $i(e){return(t,n)=>{const r=n.signalInstance();return n.connect({map:s(i=>o=>{i(e(o))},"map"),sink:r,sources:[t]}),r}}s($i,"_$2");function mt(...e){return(t,n)=>{const r=n.signalInstance();return n.connect({map:s(i=>(...o)=>{i(o)},"map"),pulls:e,sink:r,sources:[t]}),r}}s(mt,"tt$2");function fC(e){return(t,n)=>{const r=n.signalInstance();return n.connect({map:s(i=>()=>{i(e)},"map"),sink:r,sources:[t]}),r}}s(fC,"et$3");function ed(e){return(t,n)=>{const r=n.signalInstance();return n.connect({map:s(i=>o=>{e(o)&&i(o)},"map"),sink:r,sources:[t]}),r}}s(ed,"nt$5");function hC(e,t){return(n,r)=>{const i=r.signalInstance();return r.connect({map:s(o=>l=>{o(t=e(t,l))},"map"),sink:i,sources:[n]}),i}}s(hC,"it$4");var Hc=new WeakMap;function s0(e,t){let n=Hc.get(e);return n||(n=new Set,Hc.set(e,n)),n.add(t),()=>{n.delete(t)}}s(s0,"registerRealmCleanup");function l0(e){const t=Hc.get(e);if(Hc.delete(e),!t)return;let n=!1,r;for(const i of[...t].reverse())try{i()}catch(o){n||(n=!0,r=o)}if(n)throw r instanceof Error?r:new Error("Realm cleanup failed with a non-Error value")}s(l0,"disposeRealmSession");function En(e){return function(t){return{init:s(n=>{var r;return(r=e.init)==null?void 0:r.call(e,n,t)},"init"),postInit:s(n=>{var r;return(r=e.postInit)==null?void 0:r.call(e,n,t)},"postInit"),update:s(n=>{var r;return(r=e.update)==null?void 0:r.call(e,n,t)},"update")}}}s(En,"realmPlugin");function fM({children:e,plugins:t}){const[n,r]=m.useState(null);return m.useEffect(()=>{var i,o;const l=new dM;try{for(const a of t)(i=a.init)==null||i.call(a,l);for(const a of t)(o=a.postInit)==null||o.call(a,l)}catch(a){try{l0(l)}catch(c){throw new AggregateError([a,c],"Realm plugin initialization and cleanup both failed")}throw a}return r(l),()=>{l0(l)}},[]),m.useEffect(()=>{var i;if(n)for(const o of t)(i=o.update)==null||i.call(o,n)}),n?m.createElement(dC.Provider,{value:n},e):null}s(fM,"RealmWithPlugins");var hM=xx({$addUpdateTag:s(()=>Eo,"$addUpdateTag"),$applyNodeReplacement:s(()=>ba,"$applyNodeReplacement"),$assumeActiveEditor:s(()=>O8,"$assumeActiveEditor"),$caretFromPoint:s(()=>ei,"$caretFromPoint"),$caretRangeFromSelection:s(()=>wh,"$caretRangeFromSelection"),$cloneWithProperties:s(()=>Kp,"$cloneWithProperties"),$cloneWithPropertiesEphemeral:s(()=>lA,"$cloneWithPropertiesEphemeral"),$comparePointCaretNext:s(()=>Gp,"$comparePointCaretNext"),$copyNode:s(()=>Fp,"$copyNode"),$create:s(()=>cA,"$create"),$createChildrenArray:s(()=>zl,"$createChildrenArray"),$createLineBreakNode:s(()=>ya,"$createLineBreakNode"),$createNodeSelection:s(()=>Yc,"$createNodeSelection"),$createParagraphNode:s(()=>mn,"$createParagraphNode"),$createPoint:s(()=>gr,"$createPoint"),$createRangeSelection:s(()=>O5,"$createRangeSelection"),$createRangeSelectionFromDom:s(()=>M8,"$createRangeSelectionFromDom"),$createTabNode:s(()=>bp,"$createTabNode"),$createTextNode:s(()=>Ft,"$createTextNode"),$extendCaretToRange:s(()=>jp,"$extendCaretToRange"),$findMatchingParent:s(()=>bi,"$findMatchingParent"),$formatText:s(()=>b5,"$formatText"),$fullReconcile:s(()=>$5,"$fullReconcile"),$generateNodesFromRawText:s(()=>Ep,"$generateNodesFromRawText"),$getAdjacentChildCaret:s(()=>_s,"$getAdjacentChildCaret"),$getAdjacentNode:s(()=>l2,"$getAdjacentNode"),$getAdjacentSiblingOrParentSiblingCaret:s(()=>CA,"$getAdjacentSiblingOrParentSiblingCaret"),$getCaretInDirection:s(()=>Nr,"$getCaretInDirection"),$getCaretRange:s(()=>Ki,"$getCaretRange"),$getCaretRangeInDirection:s(()=>Zp,"$getCaretRangeInDirection"),$getCharacterOffsets:s(()=>ph,"$getCharacterOffsets"),$getChildCaret:s(()=>oi,"$getChildCaret"),$getChildCaretAtIndex:s(()=>W2,"$getChildCaretAtIndex"),$getChildCaretOrSelf:s(()=>P2,"$getChildCaretOrSelf"),$getCollapsedCaretRange:s(()=>B2,"$getCollapsedCaretRange"),$getCommonAncestor:s(()=>au,"$getCommonAncestor"),$getCommonAncestorResultBranchOrder:s(()=>qp,"$getCommonAncestorResultBranchOrder"),$getDOMSlot:s(()=>Rn,"$getDOMSlot"),$getDOMTextNode:s(()=>Qr,"$getDOMTextNode"),$getDocument:s(()=>vn,"$getDocument"),$getEditor:s(()=>xr,"$getEditor"),$getEditorDOMRenderConfig:s(()=>Hp,"$getEditorDOMRenderConfig"),$getNearestNodeFromDOMNode:s(()=>Ip,"$getNearestNodeFromDOMNode"),$getNearestRootOrShadowRoot:s(()=>$p,"$getNearestRootOrShadowRoot"),$getNodeByKey:s(()=>nt,"$getNodeByKey"),$getNodeByKeyOrThrow:s(()=>d2,"$getNodeByKeyOrThrow"),$getNodeFromDOMNode:s(()=>Ap,"$getNodeFromDOMNode"),$getPreviousSelection:s(()=>No,"$getPreviousSelection"),$getRoot:s(()=>Dn,"$getRoot"),$getSelection:s(()=>Ve,"$getSelection"),$getSiblingCaret:s(()=>_t,"$getSiblingCaret"),$getSlot:s(()=>Vi,"$getSlot"),$getSlotFrame:s(()=>N2,"$getSlotFrame"),$getSlotHost:s(()=>Kn,"$getSlotHost"),$getSlotNameWithinHost:s(()=>I2,"$getSlotNameWithinHost"),$getSlotNames:s(()=>Jn,"$getSlotNames"),$getState:s(()=>Wc,"$getState"),$getStateChange:s(()=>FM,"$getStateChange"),$getTextContent:s(()=>I8,"$getTextContent"),$getTextNodeOffset:s(()=>hr,"$getTextNodeOffset"),$getTextPointCaret:s(()=>Hi,"$getTextPointCaret"),$getTextPointCaretSlice:s(()=>Th,"$getTextPointCaretSlice"),$getWritableNodeState:s(()=>sp,"$getWritableNodeState"),$hasAncestor:s(()=>Ul,"$hasAncestor"),$hasUpdateTag:s(()=>q8,"$hasUpdateTag"),$insertNodeToNearestRootAtCaret:s(()=>j2,"$insertNodeToNearestRootAtCaret"),$insertNodes:s(()=>A8,"$insertNodes"),$isBlockElementNode:s(()=>I5,"$isBlockElementNode"),$isChildCaret:s(()=>Gn,"$isChildCaret"),$isDecoratorNode:s(()=>We,"$isDecoratorNode"),$isEditorState:s(()=>L8,"$isEditorState"),$isElementDOMSlot:s(()=>b2,"$isElementDOMSlot"),$isElementNode:s(()=>F,"$isElementNode"),$isExtendableTextPointCaret:s(()=>U2,"$isExtendableTextPointCaret"),$isInlineElementOrDecoratorNode:s(()=>u2,"$isInlineElementOrDecoratorNode"),$isInlineFormattable:s(()=>Zc,"$isInlineFormattable"),$isLeafNode:s(()=>z8,"$isLeafNode"),$isLexicalNode:s(()=>yp,"$isLexicalNode"),$isLineBreakNode:s(()=>Ir,"$isLineBreakNode"),$isNodeCaret:s(()=>pA,"$isNodeCaret"),$isNodeSelection:s(()=>As,"$isNodeSelection"),$isParagraphNode:s(()=>q5,"$isParagraphNode"),$isRangeSelection:s(()=>ve,"$isRangeSelection"),$isRootNode:s(()=>Mt,"$isRootNode"),$isRootOrShadowRoot:s(()=>kt,"$isRootOrShadowRoot"),$isSelectionCapturedInDecoratorInput:s(()=>ud,"$isSelectionCapturedInDecoratorInput"),$isShadowRootNode:s(()=>Pp,"$isShadowRootNode"),$isSiblingCaret:s(()=>Bi,"$isSiblingCaret"),$isSlotChild:s(()=>Fi,"$isSlotChild"),$isSlotHost:s(()=>Mr,"$isSlotHost"),$isTabNode:s(()=>rd,"$isTabNode"),$isTextNode:s(()=>X,"$isTextNode"),$isTextPointCaret:s(()=>fr,"$isTextPointCaret"),$isTextPointCaretSlice:s(()=>xA,"$isTextPointCaretSlice"),$isTokenOrSegmented:s(()=>An,"$isTokenOrSegmented"),$isTokenOrTab:s(()=>Di,"$isTokenOrTab"),$markSlotEditable:s(()=>k2,"$markSlotEditable"),$needsBlockCursorBeside:s(()=>Ec,"$needsBlockCursorBeside"),$nodesOfType:s(()=>G8,"$nodesOfType"),$normalizeCaret:s(()=>dr,"$normalizeCaret"),$normalizeSelection__EXPERIMENTAL:s(()=>Yo,"$normalizeSelection__EXPERIMENTAL"),$onUpdate:s(()=>c2,"$onUpdate"),$parseSerializedNode:s(()=>D8,"$parseSerializedNode"),$removeFromParent:s(()=>ur,"$removeFromParent"),$removeSlot:s(()=>R2,"$removeSlot"),$removeTextFromCaretRange:s(()=>K2,"$removeTextFromCaretRange"),$rewindSiblingCaret:s(()=>Do,"$rewindSiblingCaret"),$selectAll:s(()=>J8,"$selectAll"),$setCompositionKey:s(()=>Rt,"$setCompositionKey"),$setDirectionFromDOM:s(()=>S2,"$setDirectionFromDOM"),$setFormatFromDOM:s(()=>T2,"$setFormatFromDOM"),$setPointFromCaret:s(()=>vs,"$setPointFromCaret"),$setSelection:s(()=>dn,"$setSelection"),$setSelectionFromCaretRange:s(()=>H2,"$setSelectionFromCaretRange"),$setSlot:s(()=>Wp,"$setSlot"),$setState:s(()=>VM,"$setState"),$setTextFormat:s(()=>w8,"$setTextFormat"),$splitAtPointCaretNext:s(()=>z2,"$splitAtPointCaretNext"),$splitNode:s(()=>X8,"$splitNode"),$updateDOMSelection:s(()=>D5,"$updateDOMSelection"),$updateRangeSelectionFromCaretRange:s(()=>yl,"$updateRangeSelectionFromCaretRange"),ArtificialNode__DO_NOT_USE:s(()=>W5,"ArtificialNode__DO_NOT_USE"),BEFORE_INPUT_COMMAND:s(()=>ap,"BEFORE_INPUT_COMMAND"),BLUR_COMMAND:s(()=>n5,"BLUR_COMMAND"),CAN_REDO_COMMAND:s(()=>e8,"CAN_REDO_COMMAND"),CAN_UNDO_COMMAND:s(()=>t8,"CAN_UNDO_COMMAND"),CAN_USE_BEFORE_INPUT:s(()=>Nl,"CAN_USE_BEFORE_INPUT"),CAN_USE_DOM:s(()=>er,"CAN_USE_DOM"),CLEAR_EDITOR_COMMAND:s(()=>XM,"CLEAR_EDITOR_COMMAND"),CLEAR_HISTORY_COMMAND:s(()=>QM,"CLEAR_HISTORY_COMMAND"),CLICK_COMMAND:s(()=>FC,"CLICK_COMMAND"),COLLABORATION_TAG:s(()=>h8,"COLLABORATION_TAG"),COMMAND_PRIORITY_BEFORE_CRITICAL:s(()=>-4,"COMMAND_PRIORITY_BEFORE_CRITICAL"),COMMAND_PRIORITY_BEFORE_EDITOR:s(()=>-8,"COMMAND_PRIORITY_BEFORE_EDITOR"),COMMAND_PRIORITY_BEFORE_HIGH:s(()=>-5,"COMMAND_PRIORITY_BEFORE_HIGH"),COMMAND_PRIORITY_BEFORE_LOW:s(()=>-7,"COMMAND_PRIORITY_BEFORE_LOW"),COMMAND_PRIORITY_BEFORE_NORMAL:s(()=>-6,"COMMAND_PRIORITY_BEFORE_NORMAL"),COMMAND_PRIORITY_CRITICAL:s(()=>4,"COMMAND_PRIORITY_CRITICAL"),COMMAND_PRIORITY_EDITOR:s(()=>0,"COMMAND_PRIORITY_EDITOR"),COMMAND_PRIORITY_HIGH:s(()=>3,"COMMAND_PRIORITY_HIGH"),COMMAND_PRIORITY_LOW:s(()=>1,"COMMAND_PRIORITY_LOW"),COMMAND_PRIORITY_NORMAL:s(()=>2,"COMMAND_PRIORITY_NORMAL"),COMPOSITION_END_COMMAND:s(()=>dp,"COMPOSITION_END_COMMAND"),COMPOSITION_END_TAG:s(()=>xp,"COMPOSITION_END_TAG"),COMPOSITION_START_COMMAND:s(()=>up,"COMPOSITION_START_COMMAND"),COMPOSITION_START_TAG:s(()=>_8,"COMPOSITION_START_TAG"),CONTROLLED_TEXT_INSERTION_COMMAND:s(()=>ls,"CONTROLLED_TEXT_INSERTION_COMMAND"),COPY_COMMAND:s(()=>mp,"COPY_COMMAND"),CUT_COMMAND:s(()=>_p,"CUT_COMMAND"),CUT_TAG:s(()=>"cut","CUT_TAG"),DEFAULT_EDITOR_DOM_CONFIG:s(()=>Kl,"DEFAULT_EDITOR_DOM_CONFIG"),DELETE_CHARACTER_COMMAND:s(()=>Fl,"DELETE_CHARACTER_COMMAND"),DELETE_LINE_COMMAND:s(()=>Bl,"DELETE_LINE_COMMAND"),DELETE_WORD_COMMAND:s(()=>Vl,"DELETE_WORD_COMMAND"),DRAGEND_COMMAND:s(()=>QC,"DRAGEND_COMMAND"),DRAGOVER_COMMAND:s(()=>XC,"DRAGOVER_COMMAND"),DRAGSTART_COMMAND:s(()=>YC,"DRAGSTART_COMMAND"),DROP_COMMAND:s(()=>ZC,"DROP_COMMAND"),DecoratorNode:s(()=>Sp,"DecoratorNode"),ElementNode:s(()=>Is,"ElementNode"),FOCUS_COMMAND:s(()=>t5,"FOCUS_COMMAND"),FORMAT_ELEMENT_COMMAND:s(()=>YM,"FORMAT_ELEMENT_COMMAND"),FORMAT_TEXT_COMMAND:s(()=>Ti,"FORMAT_TEXT_COMMAND"),HISTORIC_TAG:s(()=>u8,"HISTORIC_TAG"),HISTORY_MERGE_TAG:s(()=>xc,"HISTORY_MERGE_TAG"),HISTORY_PUSH_TAG:s(()=>d8,"HISTORY_PUSH_TAG"),INDENT_CONTENT_COMMAND:s(()=>qM,"INDENT_CONTENT_COMMAND"),INPUT_COMMAND:s(()=>cp,"INPUT_COMMAND"),INSERT_LINE_BREAK_COMMAND:s(()=>_l,"INSERT_LINE_BREAK_COMMAND"),INSERT_PARAGRAPH_COMMAND:s(()=>ah,"INSERT_PARAGRAPH_COMMAND"),INSERT_TAB_COMMAND:s(()=>GM,"INSERT_TAB_COMMAND"),INTERNAL_$isBlock:s(()=>hn,"INTERNAL_$isBlock"),IS_ALL_FORMATTING:s(()=>vM,"IS_ALL_FORMATTING"),IS_ANDROID:s(()=>np,"IS_ANDROID"),IS_ANDROID_CHROME:s(()=>Ol,"IS_ANDROID_CHROME"),IS_APPLE:s(()=>Vn,"IS_APPLE"),IS_APPLE_WEBKIT:s(()=>ma,"IS_APPLE_WEBKIT"),IS_BOLD:s(()=>1,"IS_BOLD"),IS_CHROME:s(()=>rp,"IS_CHROME"),IS_CODE:s(()=>16,"IS_CODE"),IS_FIREFOX:s(()=>ri,"IS_FIREFOX"),IS_HIGHLIGHT:s(()=>128,"IS_HIGHLIGHT"),IS_IOS:s(()=>yo,"IS_IOS"),IS_ITALIC:s(()=>2,"IS_ITALIC"),IS_SAFARI:s(()=>pa,"IS_SAFARI"),IS_STRIKETHROUGH:s(()=>4,"IS_STRIKETHROUGH"),IS_SUBSCRIPT:s(()=>32,"IS_SUBSCRIPT"),IS_SUPERSCRIPT:s(()=>64,"IS_SUPERSCRIPT"),IS_UNDERLINE:s(()=>8,"IS_UNDERLINE"),KEY_ARROW_DOWN_COMMAND:s(()=>WC,"KEY_ARROW_DOWN_COMMAND"),KEY_ARROW_LEFT_COMMAND:s(()=>HC,"KEY_ARROW_LEFT_COMMAND"),KEY_ARROW_RIGHT_COMMAND:s(()=>VC,"KEY_ARROW_RIGHT_COMMAND"),KEY_ARROW_UP_COMMAND:s(()=>UC,"KEY_ARROW_UP_COMMAND"),KEY_BACKSPACE_COMMAND:s(()=>jC,"KEY_BACKSPACE_COMMAND"),KEY_DELETE_COMMAND:s(()=>GC,"KEY_DELETE_COMMAND"),KEY_DOWN_COMMAND:s(()=>pp,"KEY_DOWN_COMMAND"),KEY_ENTER_COMMAND:s(()=>jc,"KEY_ENTER_COMMAND"),KEY_ESCAPE_COMMAND:s(()=>JC,"KEY_ESCAPE_COMMAND"),KEY_MODIFIER_COMMAND:s(()=>r5,"KEY_MODIFIER_COMMAND"),KEY_SPACE_COMMAND:s(()=>zC,"KEY_SPACE_COMMAND"),KEY_TAB_COMMAND:s(()=>qC,"KEY_TAB_COMMAND"),LineBreakNode:s(()=>ld,"LineBreakNode"),MOVE_TO_END:s(()=>BC,"MOVE_TO_END"),MOVE_TO_START:s(()=>KC,"MOVE_TO_START"),NODE_STATE_DIRECT:s(()=>Qf,"NODE_STATE_DIRECT"),NODE_STATE_KEY:s(()=>"$","NODE_STATE_KEY"),NODE_STATE_LATEST:s(()=>wC,"NODE_STATE_LATEST"),OUTDENT_CONTENT_COMMAND:s(()=>ZM,"OUTDENT_CONTENT_COMMAND"),PASTE_COMMAND:s(()=>fp,"PASTE_COMMAND"),PASTE_TAG:s(()=>f8,"PASTE_TAG"),ParagraphNode:s(()=>ad,"ParagraphNode"),REDO_COMMAND:s(()=>gp,"REDO_COMMAND"),REMOVE_TEXT_COMMAND:s(()=>_c,"REMOVE_TEXT_COMMAND"),RootNode:s(()=>sd,"RootNode"),SELECTION_CHANGE_COMMAND:s(()=>lp,"SELECTION_CHANGE_COMMAND"),SELECTION_INSERT_CLIPBOARD_NODES_COMMAND:s(()=>jM,"SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),SELECT_ALL_COMMAND:s(()=>e5,"SELECT_ALL_COMMAND"),SET_TEXT_FORMAT_COMMAND:s(()=>JM,"SET_TEXT_FORMAT_COMMAND"),SKIP_COLLAB_TAG:s(()=>g8,"SKIP_COLLAB_TAG"),SKIP_DOM_SELECTION_TAG:s(()=>m8,"SKIP_DOM_SELECTION_TAG"),SKIP_SCROLL_INTO_VIEW_TAG:s(()=>p8,"SKIP_SCROLL_INTO_VIEW_TAG"),SKIP_SELECTION_FOCUS_TAG:s(()=>d5,"SKIP_SELECTION_FOCUS_TAG"),TEXT_TYPE_TO_FORMAT:s(()=>Gt,"TEXT_TYPE_TO_FORMAT"),TabNode:s(()=>nd,"TabNode"),TextNode:s(()=>_a,"TextNode"),UNDO_COMMAND:s(()=>hp,"UNDO_COMMAND"),addClassNamesToElement:s(()=>AA,"addClassNamesToElement"),buildImportMap:s(()=>c8,"buildImportMap"),configExtension:s(()=>TA,"configExtension"),createCommand:s(()=>ke,"createCommand"),createEditor:s(()=>V8,"createEditor"),createRefCountedRegistry:s(()=>i5,"createRefCountedRegistry"),createSharedNodeState:s(()=>kC,"createSharedNodeState"),createState:s(()=>PM,"createState"),declarePeerDependency:s(()=>wA,"declarePeerDependency"),defineExtension:s(()=>SA,"defineExtension"),findAllLexicalElementsDeep:s(()=>g2,"findAllLexicalElementsDeep"),flipDirection:s(()=>Gi,"flipDirection"),getActiveElement:s(()=>ou,"getActiveElement"),getActiveElementDeep:s(()=>ms,"getActiveElementDeep"),getComposedEventTarget:s(()=>Vp,"getComposedEventTarget"),getComposedStaticRange:s(()=>Ds,"getComposedStaticRange"),getDOMOwnerDocument:s(()=>fd,"getDOMOwnerDocument"),getDOMSelection:s(()=>tr,"getDOMSelection"),getDOMSelectionFromTarget:s(()=>f2,"getDOMSelectionFromTarget"),getDOMSelectionPoints:s(()=>Yn,"getDOMSelectionPoints"),getDOMSelectionRange:s(()=>m2,"getDOMSelectionRange"),getDOMSelectionRangeAndPoints:s(()=>Y8,"getDOMSelectionRangeAndPoints"),getDOMShadowRoots:s(()=>h2,"getDOMShadowRoots"),getDOMTextNode:s(()=>Q5,"getDOMTextNode"),getDeclaredSlots:s(()=>O2,"getDeclaredSlots"),getEditorPropertyFromDOMNode:s(()=>Ca,"getEditorPropertyFromDOMNode"),getNearestEditorFromDOMNode:s(()=>fo,"getNearestEditorFromDOMNode"),getParentElement:s(()=>Oo,"getParentElement"),getRegisteredNode:s(()=>cd,"getRegisteredNode"),getRegisteredNodeOrThrow:s(()=>Mp,"getRegisteredNodeOrThrow"),getRegisteredSubtypeMap:s(()=>aA,"getRegisteredSubtypeMap"),getRootOwnerDocument:s(()=>p2,"getRootOwnerDocument"),getStaticNodeConfig:s(()=>Ea,"getStaticNodeConfig"),getStyleObjectFromCSS:s(()=>hh,"getStyleObjectFromCSS"),getTextDirection:s(()=>W8,"getTextDirection"),getTransformSetFromKlass:s(()=>Y5,"getTransformSetFromKlass"),isBlockDomNode:s(()=>Bp,"isBlockDomNode"),isCurrentlyReadOnlyMode:s(()=>bo,"isCurrentlyReadOnlyMode"),isDOMCapturingSelection:s(()=>Wl,"isDOMCapturingSelection"),isDOMDocumentNode:s(()=>Ns,"isDOMDocumentNode"),isDOMNode:s(()=>Rs,"isDOMNode"),isDOMShadowRoot:s(()=>ii,"isDOMShadowRoot"),isDOMTextNode:s(()=>yr,"isDOMTextNode"),isDOMUnmanaged:s(()=>Up,"isDOMUnmanaged"),isDocumentFragment:s(()=>x2,"isDocumentFragment"),isExactShortcutMatch:s(()=>qe,"isExactShortcutMatch"),isHTMLAnchorElement:s(()=>Q8,"isHTMLAnchorElement"),isHTMLElement:s(()=>vt,"isHTMLElement"),isHTMLTableCellElement:s(()=>tA,"isHTMLTableCellElement"),isHTMLTableRowElement:s(()=>eA,"isHTMLTableRowElement"),isInlineDomNode:s(()=>C2,"isInlineDomNode"),isLastChildInBlockNode:s(()=>J5,"isLastChildInBlockNode"),isLexicalEditor:s(()=>dd,"isLexicalEditor"),isModifierMatch:s(()=>s2,"isModifierMatch"),isOnlyChildInBlockNode:s(()=>j5,"isOnlyChildInBlockNode"),isSelectionCapturedInDecoratorInput:s(()=>U8,"isSelectionCapturedInDecoratorInput"),isSelectionWithinEditor:s(()=>xa,"isSelectionWithinEditor"),iterStaticNodeConfigChain:s(()=>Sa,"iterStaticNodeConfigChain"),makeStepwiseIterator:s(()=>Jp,"makeStepwiseIterator"),mergeRegister:s(()=>Yp,"mergeRegister"),mountSlotContainer:s(()=>iA,"mountSlotContainer"),normalizeClassNames:s(()=>Ta,"normalizeClassNames"),registerEventListener:s(()=>vp,"registerEventListener"),registerEventListeners:s(()=>NA,"registerEventListeners"),removeClassNamesFromElement:s(()=>IA,"removeClassNamesFromElement"),removeFromParent:s(()=>j8,"removeFromParent"),resetRandomKey:s(()=>H8,"resetRandomKey"),safeCast:s(()=>kA,"safeCast"),setDOMStyleFromCSS:s(()=>gh,"setDOMStyleFromCSS"),setDOMStyleObject:s(()=>y8,"setDOMStyleObject"),setDOMUnmanaged:s(()=>w2,"setDOMUnmanaged"),setNodeIndentFromDOM:s(()=>E2,"setNodeIndentFromDOM"),shallowMergeConfig:s(()=>MA,"shallowMergeConfig"),stopLexicalPropagation:s(()=>dh,"stopLexicalPropagation"),toggleTextFormatType:s(()=>Pi,"toggleTextFormatType"),tokenizeRawText:s(()=>R5,"tokenizeRawText"),unmountSlotContainer:s(()=>oA,"unmountSlotContainer")});function B(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const i of t)r.append("v",i);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}s(B,"t$5");function gC(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const i of t)r.append("v",i);n.search=r.toString()}s(gC,"e$4");var er=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,gM=er&&"documentMode"in document?document.documentMode:null,Vn=er&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),ri=er&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Nl=!(!er||!("InputEvent"in window)||gM)&&"getTargetRanges"in new window.InputEvent("input"),yo=er&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,np=er&&/Android/.test(navigator.userAgent),pa=er&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent)&&!np,rp=er&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Ol=er&&np&&rp,ma=er&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&Vn&&!rp,pM=0,mM=1,_M=2;var vM=2047,yM=1,xM=2,CM=3,bM=4,EM=5,SM=6,Dl=pa||yo||ma?" ":"​",lo=`
2
+ var hk=Object.defineProperty;var s=(e,t)=>hk(e,"name",{value:t,configurable:!0});import{i as da,n as xx,t as ws}from"./rolldown-runtime-ZpX3ckPj.js";import{A as gk,G as Yi,Hi as Ce,Ia as pk,La as mk,M as hs,O as Wg,Ra as _k,St as Z1,a as vk,c as zg,ht as yk,i as jg,j as Cx,l as Jg,n as Gu,na as Y1,o as bx,r as xk,s as Ex,t as Ck,y as X1}from"./agent-avatar-url-CVV7dJ4l.js";import{t as V}from"./preload-helper-CceJXRIF.js";import{A as rr,B as bk,D as Gg,E as Ek,G as Tr,I as Q1,K as Xi,L as Sk,M as Ka,N as e0,O as js,P as Ye,Q as Tk,R as wk,T as t0,V as n0,X as jd,Y as yi,Z as kk,b as Mk,c as Ak,d as Ik,et as Nk,f as Ok,i as qg,it as Dk,j as an,l as Rk,m as Lk,n as $k,nt as Sx,p as Pk,q as Pc,rt as Fk,t as Ua,tt as Vk,u as Bk,v as Hk,w as Jf,y as Kk,z as Uk}from"./mention-chips-DvkvqPRN.js";import{i as Tx,n as wx,r as qu,t as kx}from"./dist-3gGO9NXy.js";import{a as Mx,c as Wk,d as zk,f as jk,i as Ax,l as Jk,n as Ix,o as Nx,p as Gk,r as Ox,s as qk,t as Zk}from"./dist-C-3WyhwF.js";import{t as Yk}from"./AgentAvatar-J8HJgoSh.js";import{a as Xk,f as Qk,h as e9,i as t9,l as n9,m as r9,n as i9,p as o9,s as s9,t as l9}from"./dist-BLP096hU.js";import{$ as a9,A as Dx,B as c9,Ct as Zu,E as Rx,F as Dt,G as u9,H as d9,I as Lx,J as f9,K as h9,L as ct,O as Zo,Ot as Gf,P as _e,Q as g9,R as Zg,S as $x,St as fa,T as Il,Tt as Yg,U as Xg,V as p9,W as Px,X as Fx,Y as Qg,Z as qf,_t as ha,a as P,at as Vx,bt as Fn,c as m9,ct as Te,dt as _9,et as v9,f as y9,ft as ep,g as x9,gt as nn,ht as C9,it as Yu,j as ks,l as b9,lt as Fc,mt as Bx,n as Hx,nt as E9,o as S9,ot as Kx,pt as T9,q as w9,rt as Ct,st as cn,t as k9,tt as Ux,ut as Io,v as M9,vt as Wx,w as A9,wt as vo,x as Vc,xt as Jr,yt as Jd,z as I9}from"./dist-BhxPxuMy.js";var Bc=da(mk(),1),m=da(_k(),1),ee=da(pk(),1),N9=Object.defineProperty,zx=s((e,t)=>N9(e,"name",{value:t,configurable:!0}),"__name$3"),r0="horizontal",O9=["horizontal","vertical"],D9=m.forwardRef(zx(s(function(t,n){const{decorative:r,orientation:i=r0,...o}=t,l=jx(i)?i:r0,a=r?{role:"none"}:{"aria-orientation":l==="vertical"?l:void 0,role:"separator"};return(0,ee.jsx)(hs.div,{"data-orientation":l,...a,...o,ref:n})},"Separator2"),"Separator"));function jx(e){return O9.includes(e)}s(jx,"isValidOrientation");zx(jx,"isValidOrientation");var R9=D9,L9=Object.defineProperty,$9=s((e,t)=>L9(e,"name",{value:t,configurable:!0}),"__name$2"),P9="Toggle",F9=m.forwardRef($9(s(function(t,n){const{pressed:r,defaultPressed:i,onPressedChange:o,...l}=t,[a,c]=Wg({prop:r,onChange:o,defaultProp:i??!1,caller:P9});return(0,ee.jsx)(hs.button,{type:"button","aria-pressed":a,"data-state":a?"on":"off","data-disabled":t.disabled?"":void 0,...l,ref:n,onClick:gk(t.onClick,()=>{t.disabled||c(!a)})})},"Toggle2"),"Toggle")),V9=Object.defineProperty,Li=s((e,t)=>V9(e,"name",{value:t,configurable:!0}),"__name$1"),Ms="ToggleGroup",[Jx,Gx]=Cx(Ms,[qu]),qx=qu(),B9=m.forwardRef(Li(s(function(t,n){const{type:r,...i}=t;if(r==="single")return(0,ee.jsx)(H9,{role:"radiogroup",...i,ref:n});if(r==="multiple")return(0,ee.jsx)(K9,{role:"toolbar",...i,ref:n});throw new Error(`Missing prop \`type\` expected on \`${Ms}\``)},"ToggleGroup2"),"ToggleGroup")),[Zx,Yx]=Jx(Ms),H9=m.forwardRef(Li(s(function(t,n){const{value:r,defaultValue:i,onValueChange:o=Li(()=>{},"onValueChange"),...l}=t,[a,c]=Wg({prop:r,defaultProp:i??"",onChange:o,caller:Ms});return(0,ee.jsx)(Zx,{scope:t.__scopeToggleGroup,type:"single",value:m.useMemo(()=>a?[a]:[],[a]),onItemActivate:c,onItemDeactivate:m.useCallback(()=>c(""),[c]),children:(0,ee.jsx)(Xx,{...l,ref:n})})},"ToggleGroupImplSingle2"),"ToggleGroupImplSingle")),K9=m.forwardRef(Li(s(function(t,n){const{value:r,defaultValue:i,onValueChange:o=Li(()=>{},"onValueChange"),...l}=t,[a,c]=Wg({prop:r,defaultProp:i??[],onChange:o,caller:Ms}),u=m.useCallback(f=>c((h=[])=>[...h,f]),[c]),d=m.useCallback(f=>c((h=[])=>h.filter(g=>g!==f)),[c]);return(0,ee.jsx)(Zx,{scope:t.__scopeToggleGroup,type:"multiple",value:a,onItemActivate:u,onItemDeactivate:d,children:(0,ee.jsx)(Xx,{...l,ref:n})})},"ToggleGroupImplMultiple2"),"ToggleGroupImplMultiple")),[U9,W9]=Jx(Ms),Xx=m.forwardRef(Li(s(function(t,n){const{__scopeToggleGroup:r,disabled:i=!1,rovingFocus:o=!0,orientation:l,dir:a,loop:c=!0,...u}=t,d=qx(r),f=Tx(a),h={dir:f,...u};return(0,ee.jsx)(U9,{scope:r,rovingFocus:o,disabled:i,children:o?(0,ee.jsx)(wx,{asChild:!0,...d,orientation:l,dir:f,loop:c,children:(0,ee.jsx)(hs.div,{...h,ref:n})}):(0,ee.jsx)(hs.div,{...h,ref:n})})},"ToggleGroupImpl2"),"ToggleGroupImpl")),Zf="ToggleGroupItem",z9=m.forwardRef(Li(s(function(t,n){const r=Yx(Zf,t.__scopeToggleGroup),i=W9(Zf,t.__scopeToggleGroup),o=qx(t.__scopeToggleGroup),l=r.value.includes(t.value),a=i.disabled||t.disabled,c={...t,pressed:l,disabled:a},u=m.useRef(null);return i.rovingFocus?(0,ee.jsx)(kx,{asChild:!0,...o,focusable:!a,active:l,ref:u,children:(0,ee.jsx)(i0,{...c,ref:n})}):(0,ee.jsx)(i0,{...c,ref:n})},"ToggleGroupItem2"),"ToggleGroupItem")),i0=m.forwardRef(Li(s(function(t,n){const{__scopeToggleGroup:r,value:i,...o}=t,l=Yx(Zf,r),a={role:"radio","aria-checked":t.pressed,"aria-pressed":void 0},c=l.type==="single"?a:void 0;return(0,ee.jsx)(F9,{...c,...o,ref:n,onPressedChange:s(u=>{u?l.onItemActivate(i):l.onItemDeactivate(i)},"onPressedChange")})},"ToggleGroupItemImpl2"),"ToggleGroupItemImpl")),j9=Object.defineProperty,ga=s((e,t)=>j9(e,"name",{value:t,configurable:!0}),"__name"),Qx="Toolbar",[J9,SU]=Cx(Qx,[qu,Gx]),eC=qu(),tC=Gx(),[G9,nC]=J9(Qx),q9=m.forwardRef(ga(s(function(t,n){const{__scopeToolbar:r,orientation:i="horizontal",dir:o,loop:l=!0,...a}=t,c=eC(r),u=Tx(o);return(0,ee.jsx)(G9,{scope:r,orientation:i,dir:u,children:(0,ee.jsx)(wx,{asChild:!0,...c,orientation:i,dir:u,loop:l,children:(0,ee.jsx)(hs.div,{role:"toolbar","aria-orientation":i,dir:u,...a,ref:n})})})},"Toolbar2"),"Toolbar")),Z9="ToolbarSeparator",Y9=m.forwardRef(ga(s(function(t,n){const{__scopeToolbar:r,...i}=t,o=nC(Z9,r);return(0,ee.jsx)(R9,{orientation:o.orientation==="horizontal"?"vertical":"horizontal",...i,ref:n})},"ToolbarSeparator2"),"ToolbarSeparator")),rC=m.forwardRef(ga(s(function(t,n){const{__scopeToolbar:r,...i}=t,o=eC(r);return(0,ee.jsx)(kx,{asChild:!0,...o,focusable:!t.disabled,children:(0,ee.jsx)(hs.button,{type:"button",...i,ref:n})})},"ToolbarButton2"),"ToolbarButton")),X9="ToolbarToggleGroup",Q9=m.forwardRef(ga(s(function(t,n){const{__scopeToolbar:r,...i}=t,o=nC(X9,r),l=tC(r);return(0,ee.jsx)(B9,{"data-orientation":o.orientation,dir:o.dir,...l,...i,ref:n,rovingFocus:!1})},"ToolbarToggleGroup2"),"ToolbarToggleGroup")),eM=m.forwardRef(ga(s(function(t,n){const{__scopeToolbar:r,...i}=t,o=tC(r),l={__scopeToolbar:t.__scopeToolbar};return(0,ee.jsx)(rC,{asChild:!0,...l,children:(0,ee.jsx)(z9,{...o,...i,ref:n})})},"ToolbarToggleItem2"),"ToolbarToggleItem")),iC=q9,tM=Y9,os=rC,nM=Q9,Gd=eM,oC={name:"calendar-clock",size:24,node:[["path",{d:"M16 14v2.2l1.6 1",key:"fo4ql5"}],["path",{d:"M16 2v3",key:"otl347"}],["path",{d:"M21 7.338V5a2 2 0 00-2-2H5a2 2 0 00-2 2v14a2 2 0 002 2h2.338",key:"7hb8p4"}],["path",{d:"M3 9h5.859",key:"numkqi"}],["path",{d:"M8 2v3",key:"1ioesn"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]]};oC.node;var rM=Gu(oC),sC={name:"flag",size:24,node:[["path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",key:"1jaruq"}]]};sC.node;var iM=Gu(sC),lC={name:"hash",size:24,node:[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]};lC.node;var oM=Gu(lC),aC={name:"user",size:24,node:[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]};aC.node;var sM=Gu(aC),qd={list:s((e,t,n)=>{const r=new URLSearchParams;t?.entityType&&r.set("entityType",t.entityType),t?.entityId&&r.set("entityId",t.entityId),t?.agentId&&r.set("agentId",t.agentId),t?.limit&&r.set("limit",String(t.limit));const i=r.toString();return Ce.get(`/companies/${e}/activity${i?`?${i}`:""}`,n)},"list"),forIssue:s(e=>Ce.get(`/issues/${e}/activity`),"forIssue"),runsForIssue:s(e=>Ce.get(`/issues/${e}/runs`),"runsForIssue"),issuesForRun:s(e=>Ce.get(`/heartbeat-runs/${e}/issues`),"issuesForRun")},lM={list:s((e,t)=>{const n=new URLSearchParams;t?.projectId&&n.set("projectId",t.projectId);const r=n.toString();return Ce.get(`/companies/${e}/routines${r?`?${r}`:""}`)},"list"),create:s((e,t)=>Ce.post(`/companies/${e}/routines`,t),"create"),get:s(e=>Ce.get(`/routines/${e}`),"get"),update:s((e,t)=>Ce.patch(`/routines/${e}`,t),"update"),listRevisions:s(e=>Ce.get(`/routines/${e}/revisions`),"listRevisions"),restoreRevision:s((e,t,n={})=>Ce.post(`/routines/${e}/revisions/${t}/restore`,n),"restoreRevision"),listRuns:s((e,t=50)=>Ce.get(`/routines/${e}/runs?limit=${t}`),"listRuns"),createTrigger:s((e,t)=>Ce.post(`/routines/${e}/triggers`,t),"createTrigger"),updateTrigger:s((e,t)=>Ce.patch(`/routine-triggers/${e}`,t),"updateTrigger"),deleteTrigger:s(e=>Ce.delete(`/routine-triggers/${e}`),"deleteTrigger"),rotateTriggerSecret:s(e=>Ce.post(`/routine-triggers/${e}/rotate-secret`,{}),"rotateTriggerSecret"),run:s((e,t)=>Ce.post(`/routines/${e}/run`,t??{}),"run"),activity:s(async(e,t,n)=>{const r=[qd.list(e,{entityType:"routine",entityId:t}),...(n?.triggerIds??[]).map(o=>qd.list(e,{entityType:"routine_trigger",entityId:o})),...(n?.runIds??[]).map(o=>qd.list(e,{entityType:"routine_run",entityId:o}))],i=(await Promise.all(r)).flat();return[...new Map(i.map(o=>[o.id,o])).values()].sort((o,l)=>new Date(l.createdAt).getTime()-new Date(o.createdAt).getTime())},"activity")},aM=Object.defineProperty,cM=s((e,t,n)=>t in e?aM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,"P$1"),zr=s((e,t,n)=>cM(e,typeof t!="symbol"?t+"":t,n),"p$6"),uM=class cC{static{s(this,"S$1")}constructor(t=new Map){this.map=t}clone(){return new cC(new Map(this.map))}increment(t){const n=this.map.get(t)??0;this.map.set(t,n+1)}decrement(t,n){let r=this.map.get(t);r!==void 0&&(r-=1,this.map.set(t,r),r===0&&n())}},Wa=class{static{s(this,"k$1")}constructor(){zr(this,"map",new Map)}getOrCreate(e){let t=this.map.get(e);return t===void 0&&(t=new Set,this.map.set(e,t)),t}get(e){return this.map.get(e)}use(e,t){const n=this.get(e);n!==void 0&&t(n)}delete(e){return this.map.delete(e)}};function ss(e,t){return t(e),e}s(ss,"d$4");function tp(){}s(tp,"x$6");var uC="cell";function o0(e,t){return e===t}s(o0,"O$3");var Xu=new Map,Zd,dM=class{static{s(this,"T$1")}constructor(e={}){zr(this,"subscriptions",new Wa),zr(this,"singletonSubscriptions",new Map),zr(this,"graph",new Wa),zr(this,"state",new Map),zr(this,"distinctNodes",new Map),zr(this,"executionMaps",new Map),zr(this,"definitionRegistry",new Set),zr(this,"combinedCells",[]);for(const t of Object.getOwnPropertySymbols(e))this.state.set(t,e[t])}cellInstance(e,t=!0,n=Symbol()){return this.state.has(n)||this.state.set(n,e),t!==!1&&!this.distinctNodes.has(n)&&this.distinctNodes.set(n,t===!0?o0:t),n}signalInstance(e=!0,t=Symbol()){return e!==!1&&this.distinctNodes.set(t,e===!0?o0:e),t}sub(e,t){this.register(e);const n=this.subscriptions.getOrCreate(e);return n.add(t),()=>n.delete(t)}singletonSub(e,t){return this.register(e),t===void 0?this.singletonSubscriptions.delete(e):this.singletonSubscriptions.set(e,t),()=>this.singletonSubscriptions.delete(e)}resetSingletonSubs(){this.singletonSubscriptions.clear()}subMultiple(e,t){const n=this.signalInstance();return this.connect({map:s(r=>(...i)=>{r(i)},"map"),sink:n,sources:e}),this.sub(n,t)}pubIn(e){var t;const n=Reflect.ownKeys(e),r=this.getExecutionMap(n),i=r.refCount.clone(),o=r.participatingNodes.slice(),l=new Map(this.state),a=s(c=>{this.graph.use(c,u=>{for(const{sources:d,sink:f}of u)d.has(c)&&i.decrement(f,()=>{o.splice(o.indexOf(f),1),a(f)})})},"l");for(;;){const c=o.shift();if(c===void 0)break;const u=c;let d=!1;const f=s(h=>{const g=this.distinctNodes.get(u);if(g!=null&&g(l.get(u),h)){d=!1;return}d=!0,l.set(u,h),this.state.has(u)&&this.state.set(u,h)},"y");if(Object.prototype.hasOwnProperty.call(e,u)?f(e[u]):r.projections.use(u,h=>{for(const g of h){const p=[...Array.from(g.sources),...Array.from(g.pulls)].map(_=>l.get(_));g.map(f)(...p)}}),d){const h=l.get(u);this.inContext(()=>{this.subscriptions.use(u,g=>{for(const p of g)p(h)})}),(t=this.singletonSubscriptions.get(u))==null||t(h)}else a(u)}}connect({sources:e,pulls:t=[],map:n,sink:r}){const i={map:n,pulls:new Set(t),sink:this.register(r),sources:new Set(e)};for(const o of[...e,...t])this.register(o),this.graph.getOrCreate(o).add(i);this.executionMaps.clear()}pub(e,t){this.pubIn({[e]:t})}pipe(e,...t){return this.combineOperators(...t)(e)}transformer(...e){return t=>ss(this.signalInstance(),n=>(this.link(this.pipe(n,...e),t),n))}link(e,t){this.connect({map:s(n=>r=>{n(r)},"map"),sink:t,sources:[e]})}combine(...e){return ss(this.signalInstance(),t=>{this.connect({map:s(n=>(...r)=>{n(r)},"map"),sink:t,sources:e})})}combineCells(...e){const t=this.combinedCells.find(r=>e.length===r.sources.length&&e.every((i,o)=>i===r.sources[o]));if(t)return t.cell;const n=this.cellInstance(e.map(r=>this.getValue(r)),!0);return this.connect({map:s(r=>(...i)=>{r(i)},"map"),sink:n,sources:e}),this.combinedCells.push({sources:e,cell:n}),n}getValue(e){return this.register(e),this.state.get(e)}getValues(e){return e.map(t=>this.getValue(t))}register(e){const t=Xu.get(e);return t===void 0||this.definitionRegistry.has(e)?e:(this.definitionRegistry.add(e),ss(t.type===uC?this.cellInstance(t.initial,t.distinct,e):this.signalInstance(t.distinct,e),n=>{this.inContext(()=>{t.init(this,n)})}))}inContext(e){const t=Zd;Zd=this;const n=e();return Zd=t,n}changeWith(e,t,n){this.connect({sources:[t],pulls:[e],sink:e,map:s(r=>(i,o)=>{r(n(o,i))},"map")})}calculateExecutionMap(e){const t=[],n=new Set,r=new Wa,i=new uM,o=new Wa,l=s((a,c=0)=>{i.increment(a),!n.has(a)&&(this.register(a),r.use(a,u=>{c=Math.max(...Array.from(u).map(d=>t.indexOf(d)))+1}),this.graph.use(a,u=>{for(const d of u)d.sources.has(a)?(o.getOrCreate(d.sink).add(d),l(d.sink,c)):r.getOrCreate(d.sink).add(a)}),n.add(a),t.splice(c,0,a))},"l");return e.forEach(l),{participatingNodes:t,pendingPulls:r,projections:o,refCount:i}}getExecutionMap(e){let t=e;if(e.length===1){t=e[0];const r=this.executionMaps.get(t);if(r!==void 0)return r}else for(const[r,i]of this.executionMaps.entries())if(Array.isArray(r)&&r.length===e.length&&r.every(o=>e.includes(o)))return i;const n=this.calculateExecutionMap(e);return this.executionMaps.set(t,n),n}combineOperators(...e){return t=>{for(const n of e)t=n(t,this);return t}}};function he(e,t=tp,n=!0){return ss(Symbol(),r=>{Xu.set(r,{type:uC,distinct:n,initial:e,init:t})})}s(he,"$$2");function wt(e=tp,t=!1){return ss(Symbol(),n=>{Xu.set(n,{type:"signal",distinct:t,init:e})})}s(wt,"K$1");function Ji(e=tp){return ss(Symbol(),t=>{Xu.set(t,{type:"signal",distinct:!1,init:e})})}s(Ji,"q$3");var dC=m.createContext(null);function Qu(){const e=m.useContext(dC);if(e===null)throw new Error("useRealm must be used within a RealmContextProvider");return e}s(Qu,"R$2");function ni(e){const t=Qu();t.register(e);const n=m.useCallback(r=>t.sub(e,r),[t,e]);return m.useSyncExternalStore(n,()=>t.getValue(e),()=>t.getValue(e))}s(ni,"E$3");function vr(...e){const t=Qu();return ni(m.useMemo(()=>t.combineCells.apply(t,e),[t,...e]))}s(vr,"X$4");function Mn(e){const t=Qu();return t.register(e),m.useCallback(n=>{t.pub(e,n)},[t,e])}s(Mn,"A$1");function $i(e){return(t,n)=>{const r=n.signalInstance();return n.connect({map:s(i=>o=>{i(e(o))},"map"),sink:r,sources:[t]}),r}}s($i,"_$2");function mt(...e){return(t,n)=>{const r=n.signalInstance();return n.connect({map:s(i=>(...o)=>{i(o)},"map"),pulls:e,sink:r,sources:[t]}),r}}s(mt,"tt$2");function fC(e){return(t,n)=>{const r=n.signalInstance();return n.connect({map:s(i=>()=>{i(e)},"map"),sink:r,sources:[t]}),r}}s(fC,"et$3");function ed(e){return(t,n)=>{const r=n.signalInstance();return n.connect({map:s(i=>o=>{e(o)&&i(o)},"map"),sink:r,sources:[t]}),r}}s(ed,"nt$5");function hC(e,t){return(n,r)=>{const i=r.signalInstance();return r.connect({map:s(o=>l=>{o(t=e(t,l))},"map"),sink:i,sources:[n]}),i}}s(hC,"it$4");var Hc=new WeakMap;function s0(e,t){let n=Hc.get(e);return n||(n=new Set,Hc.set(e,n)),n.add(t),()=>{n.delete(t)}}s(s0,"registerRealmCleanup");function l0(e){const t=Hc.get(e);if(Hc.delete(e),!t)return;let n=!1,r;for(const i of[...t].reverse())try{i()}catch(o){n||(n=!0,r=o)}if(n)throw r instanceof Error?r:new Error("Realm cleanup failed with a non-Error value")}s(l0,"disposeRealmSession");function En(e){return function(t){return{init:s(n=>{var r;return(r=e.init)==null?void 0:r.call(e,n,t)},"init"),postInit:s(n=>{var r;return(r=e.postInit)==null?void 0:r.call(e,n,t)},"postInit"),update:s(n=>{var r;return(r=e.update)==null?void 0:r.call(e,n,t)},"update")}}}s(En,"realmPlugin");function fM({children:e,plugins:t}){const[n,r]=m.useState(null);return m.useEffect(()=>{var i,o;const l=new dM;try{for(const a of t)(i=a.init)==null||i.call(a,l);for(const a of t)(o=a.postInit)==null||o.call(a,l)}catch(a){try{l0(l)}catch(c){throw new AggregateError([a,c],"Realm plugin initialization and cleanup both failed")}throw a}return r(l),()=>{l0(l)}},[]),m.useEffect(()=>{var i;if(n)for(const o of t)(i=o.update)==null||i.call(o,n)}),n?m.createElement(dC.Provider,{value:n},e):null}s(fM,"RealmWithPlugins");var hM=xx({$addUpdateTag:s(()=>Eo,"$addUpdateTag"),$applyNodeReplacement:s(()=>ba,"$applyNodeReplacement"),$assumeActiveEditor:s(()=>O8,"$assumeActiveEditor"),$caretFromPoint:s(()=>ei,"$caretFromPoint"),$caretRangeFromSelection:s(()=>wh,"$caretRangeFromSelection"),$cloneWithProperties:s(()=>Kp,"$cloneWithProperties"),$cloneWithPropertiesEphemeral:s(()=>lA,"$cloneWithPropertiesEphemeral"),$comparePointCaretNext:s(()=>Gp,"$comparePointCaretNext"),$copyNode:s(()=>Fp,"$copyNode"),$create:s(()=>cA,"$create"),$createChildrenArray:s(()=>zl,"$createChildrenArray"),$createLineBreakNode:s(()=>ya,"$createLineBreakNode"),$createNodeSelection:s(()=>Yc,"$createNodeSelection"),$createParagraphNode:s(()=>mn,"$createParagraphNode"),$createPoint:s(()=>gr,"$createPoint"),$createRangeSelection:s(()=>O5,"$createRangeSelection"),$createRangeSelectionFromDom:s(()=>M8,"$createRangeSelectionFromDom"),$createTabNode:s(()=>bp,"$createTabNode"),$createTextNode:s(()=>Ft,"$createTextNode"),$extendCaretToRange:s(()=>jp,"$extendCaretToRange"),$findMatchingParent:s(()=>bi,"$findMatchingParent"),$formatText:s(()=>b5,"$formatText"),$fullReconcile:s(()=>$5,"$fullReconcile"),$generateNodesFromRawText:s(()=>Ep,"$generateNodesFromRawText"),$getAdjacentChildCaret:s(()=>_s,"$getAdjacentChildCaret"),$getAdjacentNode:s(()=>l2,"$getAdjacentNode"),$getAdjacentSiblingOrParentSiblingCaret:s(()=>CA,"$getAdjacentSiblingOrParentSiblingCaret"),$getCaretInDirection:s(()=>Nr,"$getCaretInDirection"),$getCaretRange:s(()=>Ki,"$getCaretRange"),$getCaretRangeInDirection:s(()=>Zp,"$getCaretRangeInDirection"),$getCharacterOffsets:s(()=>ph,"$getCharacterOffsets"),$getChildCaret:s(()=>oi,"$getChildCaret"),$getChildCaretAtIndex:s(()=>W2,"$getChildCaretAtIndex"),$getChildCaretOrSelf:s(()=>P2,"$getChildCaretOrSelf"),$getCollapsedCaretRange:s(()=>B2,"$getCollapsedCaretRange"),$getCommonAncestor:s(()=>au,"$getCommonAncestor"),$getCommonAncestorResultBranchOrder:s(()=>qp,"$getCommonAncestorResultBranchOrder"),$getDOMSlot:s(()=>Rn,"$getDOMSlot"),$getDOMTextNode:s(()=>Qr,"$getDOMTextNode"),$getDocument:s(()=>vn,"$getDocument"),$getEditor:s(()=>xr,"$getEditor"),$getEditorDOMRenderConfig:s(()=>Hp,"$getEditorDOMRenderConfig"),$getNearestNodeFromDOMNode:s(()=>Ip,"$getNearestNodeFromDOMNode"),$getNearestRootOrShadowRoot:s(()=>$p,"$getNearestRootOrShadowRoot"),$getNodeByKey:s(()=>nt,"$getNodeByKey"),$getNodeByKeyOrThrow:s(()=>d2,"$getNodeByKeyOrThrow"),$getNodeFromDOMNode:s(()=>Ap,"$getNodeFromDOMNode"),$getPreviousSelection:s(()=>No,"$getPreviousSelection"),$getRoot:s(()=>Dn,"$getRoot"),$getSelection:s(()=>Ve,"$getSelection"),$getSiblingCaret:s(()=>_t,"$getSiblingCaret"),$getSlot:s(()=>Vi,"$getSlot"),$getSlotFrame:s(()=>N2,"$getSlotFrame"),$getSlotHost:s(()=>Kn,"$getSlotHost"),$getSlotNameWithinHost:s(()=>I2,"$getSlotNameWithinHost"),$getSlotNames:s(()=>Jn,"$getSlotNames"),$getState:s(()=>Wc,"$getState"),$getStateChange:s(()=>FM,"$getStateChange"),$getTextContent:s(()=>I8,"$getTextContent"),$getTextNodeOffset:s(()=>hr,"$getTextNodeOffset"),$getTextPointCaret:s(()=>Hi,"$getTextPointCaret"),$getTextPointCaretSlice:s(()=>Th,"$getTextPointCaretSlice"),$getWritableNodeState:s(()=>sp,"$getWritableNodeState"),$hasAncestor:s(()=>Ul,"$hasAncestor"),$hasUpdateTag:s(()=>q8,"$hasUpdateTag"),$insertNodeToNearestRootAtCaret:s(()=>j2,"$insertNodeToNearestRootAtCaret"),$insertNodes:s(()=>A8,"$insertNodes"),$isBlockElementNode:s(()=>I5,"$isBlockElementNode"),$isChildCaret:s(()=>Gn,"$isChildCaret"),$isDecoratorNode:s(()=>We,"$isDecoratorNode"),$isEditorState:s(()=>L8,"$isEditorState"),$isElementDOMSlot:s(()=>b2,"$isElementDOMSlot"),$isElementNode:s(()=>F,"$isElementNode"),$isExtendableTextPointCaret:s(()=>U2,"$isExtendableTextPointCaret"),$isInlineElementOrDecoratorNode:s(()=>u2,"$isInlineElementOrDecoratorNode"),$isInlineFormattable:s(()=>Zc,"$isInlineFormattable"),$isLeafNode:s(()=>z8,"$isLeafNode"),$isLexicalNode:s(()=>yp,"$isLexicalNode"),$isLineBreakNode:s(()=>Ir,"$isLineBreakNode"),$isNodeCaret:s(()=>pA,"$isNodeCaret"),$isNodeSelection:s(()=>As,"$isNodeSelection"),$isParagraphNode:s(()=>q5,"$isParagraphNode"),$isRangeSelection:s(()=>ve,"$isRangeSelection"),$isRootNode:s(()=>Mt,"$isRootNode"),$isRootOrShadowRoot:s(()=>kt,"$isRootOrShadowRoot"),$isSelectionCapturedInDecoratorInput:s(()=>ud,"$isSelectionCapturedInDecoratorInput"),$isShadowRootNode:s(()=>Pp,"$isShadowRootNode"),$isSiblingCaret:s(()=>Bi,"$isSiblingCaret"),$isSlotChild:s(()=>Fi,"$isSlotChild"),$isSlotHost:s(()=>Mr,"$isSlotHost"),$isTabNode:s(()=>rd,"$isTabNode"),$isTextNode:s(()=>X,"$isTextNode"),$isTextPointCaret:s(()=>fr,"$isTextPointCaret"),$isTextPointCaretSlice:s(()=>xA,"$isTextPointCaretSlice"),$isTokenOrSegmented:s(()=>An,"$isTokenOrSegmented"),$isTokenOrTab:s(()=>Di,"$isTokenOrTab"),$markSlotEditable:s(()=>k2,"$markSlotEditable"),$needsBlockCursorBeside:s(()=>Ec,"$needsBlockCursorBeside"),$nodesOfType:s(()=>G8,"$nodesOfType"),$normalizeCaret:s(()=>dr,"$normalizeCaret"),$normalizeSelection__EXPERIMENTAL:s(()=>Yo,"$normalizeSelection__EXPERIMENTAL"),$onUpdate:s(()=>c2,"$onUpdate"),$parseSerializedNode:s(()=>D8,"$parseSerializedNode"),$removeFromParent:s(()=>ur,"$removeFromParent"),$removeSlot:s(()=>R2,"$removeSlot"),$removeTextFromCaretRange:s(()=>K2,"$removeTextFromCaretRange"),$rewindSiblingCaret:s(()=>Do,"$rewindSiblingCaret"),$selectAll:s(()=>J8,"$selectAll"),$setCompositionKey:s(()=>Rt,"$setCompositionKey"),$setDirectionFromDOM:s(()=>S2,"$setDirectionFromDOM"),$setFormatFromDOM:s(()=>T2,"$setFormatFromDOM"),$setPointFromCaret:s(()=>vs,"$setPointFromCaret"),$setSelection:s(()=>dn,"$setSelection"),$setSelectionFromCaretRange:s(()=>H2,"$setSelectionFromCaretRange"),$setSlot:s(()=>Wp,"$setSlot"),$setState:s(()=>VM,"$setState"),$setTextFormat:s(()=>w8,"$setTextFormat"),$splitAtPointCaretNext:s(()=>z2,"$splitAtPointCaretNext"),$splitNode:s(()=>X8,"$splitNode"),$updateDOMSelection:s(()=>D5,"$updateDOMSelection"),$updateRangeSelectionFromCaretRange:s(()=>yl,"$updateRangeSelectionFromCaretRange"),ArtificialNode__DO_NOT_USE:s(()=>W5,"ArtificialNode__DO_NOT_USE"),BEFORE_INPUT_COMMAND:s(()=>ap,"BEFORE_INPUT_COMMAND"),BLUR_COMMAND:s(()=>n5,"BLUR_COMMAND"),CAN_REDO_COMMAND:s(()=>e8,"CAN_REDO_COMMAND"),CAN_UNDO_COMMAND:s(()=>t8,"CAN_UNDO_COMMAND"),CAN_USE_BEFORE_INPUT:s(()=>Nl,"CAN_USE_BEFORE_INPUT"),CAN_USE_DOM:s(()=>er,"CAN_USE_DOM"),CLEAR_EDITOR_COMMAND:s(()=>XM,"CLEAR_EDITOR_COMMAND"),CLEAR_HISTORY_COMMAND:s(()=>QM,"CLEAR_HISTORY_COMMAND"),CLICK_COMMAND:s(()=>FC,"CLICK_COMMAND"),COLLABORATION_TAG:s(()=>h8,"COLLABORATION_TAG"),COMMAND_PRIORITY_BEFORE_CRITICAL:s(()=>-4,"COMMAND_PRIORITY_BEFORE_CRITICAL"),COMMAND_PRIORITY_BEFORE_EDITOR:s(()=>-8,"COMMAND_PRIORITY_BEFORE_EDITOR"),COMMAND_PRIORITY_BEFORE_HIGH:s(()=>-5,"COMMAND_PRIORITY_BEFORE_HIGH"),COMMAND_PRIORITY_BEFORE_LOW:s(()=>-7,"COMMAND_PRIORITY_BEFORE_LOW"),COMMAND_PRIORITY_BEFORE_NORMAL:s(()=>-6,"COMMAND_PRIORITY_BEFORE_NORMAL"),COMMAND_PRIORITY_CRITICAL:s(()=>4,"COMMAND_PRIORITY_CRITICAL"),COMMAND_PRIORITY_EDITOR:s(()=>0,"COMMAND_PRIORITY_EDITOR"),COMMAND_PRIORITY_HIGH:s(()=>3,"COMMAND_PRIORITY_HIGH"),COMMAND_PRIORITY_LOW:s(()=>1,"COMMAND_PRIORITY_LOW"),COMMAND_PRIORITY_NORMAL:s(()=>2,"COMMAND_PRIORITY_NORMAL"),COMPOSITION_END_COMMAND:s(()=>dp,"COMPOSITION_END_COMMAND"),COMPOSITION_END_TAG:s(()=>xp,"COMPOSITION_END_TAG"),COMPOSITION_START_COMMAND:s(()=>up,"COMPOSITION_START_COMMAND"),COMPOSITION_START_TAG:s(()=>_8,"COMPOSITION_START_TAG"),CONTROLLED_TEXT_INSERTION_COMMAND:s(()=>ls,"CONTROLLED_TEXT_INSERTION_COMMAND"),COPY_COMMAND:s(()=>mp,"COPY_COMMAND"),CUT_COMMAND:s(()=>_p,"CUT_COMMAND"),CUT_TAG:s(()=>"cut","CUT_TAG"),DEFAULT_EDITOR_DOM_CONFIG:s(()=>Kl,"DEFAULT_EDITOR_DOM_CONFIG"),DELETE_CHARACTER_COMMAND:s(()=>Fl,"DELETE_CHARACTER_COMMAND"),DELETE_LINE_COMMAND:s(()=>Bl,"DELETE_LINE_COMMAND"),DELETE_WORD_COMMAND:s(()=>Vl,"DELETE_WORD_COMMAND"),DRAGEND_COMMAND:s(()=>QC,"DRAGEND_COMMAND"),DRAGOVER_COMMAND:s(()=>XC,"DRAGOVER_COMMAND"),DRAGSTART_COMMAND:s(()=>YC,"DRAGSTART_COMMAND"),DROP_COMMAND:s(()=>ZC,"DROP_COMMAND"),DecoratorNode:s(()=>Sp,"DecoratorNode"),ElementNode:s(()=>Is,"ElementNode"),FOCUS_COMMAND:s(()=>t5,"FOCUS_COMMAND"),FORMAT_ELEMENT_COMMAND:s(()=>YM,"FORMAT_ELEMENT_COMMAND"),FORMAT_TEXT_COMMAND:s(()=>Ti,"FORMAT_TEXT_COMMAND"),HISTORIC_TAG:s(()=>u8,"HISTORIC_TAG"),HISTORY_MERGE_TAG:s(()=>xc,"HISTORY_MERGE_TAG"),HISTORY_PUSH_TAG:s(()=>d8,"HISTORY_PUSH_TAG"),INDENT_CONTENT_COMMAND:s(()=>qM,"INDENT_CONTENT_COMMAND"),INPUT_COMMAND:s(()=>cp,"INPUT_COMMAND"),INSERT_LINE_BREAK_COMMAND:s(()=>_l,"INSERT_LINE_BREAK_COMMAND"),INSERT_PARAGRAPH_COMMAND:s(()=>ah,"INSERT_PARAGRAPH_COMMAND"),INSERT_TAB_COMMAND:s(()=>GM,"INSERT_TAB_COMMAND"),INTERNAL_$isBlock:s(()=>hn,"INTERNAL_$isBlock"),IS_ALL_FORMATTING:s(()=>vM,"IS_ALL_FORMATTING"),IS_ANDROID:s(()=>np,"IS_ANDROID"),IS_ANDROID_CHROME:s(()=>Ol,"IS_ANDROID_CHROME"),IS_APPLE:s(()=>Vn,"IS_APPLE"),IS_APPLE_WEBKIT:s(()=>ma,"IS_APPLE_WEBKIT"),IS_BOLD:s(()=>1,"IS_BOLD"),IS_CHROME:s(()=>rp,"IS_CHROME"),IS_CODE:s(()=>16,"IS_CODE"),IS_FIREFOX:s(()=>ri,"IS_FIREFOX"),IS_HIGHLIGHT:s(()=>128,"IS_HIGHLIGHT"),IS_IOS:s(()=>yo,"IS_IOS"),IS_ITALIC:s(()=>2,"IS_ITALIC"),IS_SAFARI:s(()=>pa,"IS_SAFARI"),IS_STRIKETHROUGH:s(()=>4,"IS_STRIKETHROUGH"),IS_SUBSCRIPT:s(()=>32,"IS_SUBSCRIPT"),IS_SUPERSCRIPT:s(()=>64,"IS_SUPERSCRIPT"),IS_UNDERLINE:s(()=>8,"IS_UNDERLINE"),KEY_ARROW_DOWN_COMMAND:s(()=>WC,"KEY_ARROW_DOWN_COMMAND"),KEY_ARROW_LEFT_COMMAND:s(()=>HC,"KEY_ARROW_LEFT_COMMAND"),KEY_ARROW_RIGHT_COMMAND:s(()=>VC,"KEY_ARROW_RIGHT_COMMAND"),KEY_ARROW_UP_COMMAND:s(()=>UC,"KEY_ARROW_UP_COMMAND"),KEY_BACKSPACE_COMMAND:s(()=>jC,"KEY_BACKSPACE_COMMAND"),KEY_DELETE_COMMAND:s(()=>GC,"KEY_DELETE_COMMAND"),KEY_DOWN_COMMAND:s(()=>pp,"KEY_DOWN_COMMAND"),KEY_ENTER_COMMAND:s(()=>jc,"KEY_ENTER_COMMAND"),KEY_ESCAPE_COMMAND:s(()=>JC,"KEY_ESCAPE_COMMAND"),KEY_MODIFIER_COMMAND:s(()=>r5,"KEY_MODIFIER_COMMAND"),KEY_SPACE_COMMAND:s(()=>zC,"KEY_SPACE_COMMAND"),KEY_TAB_COMMAND:s(()=>qC,"KEY_TAB_COMMAND"),LineBreakNode:s(()=>ld,"LineBreakNode"),MOVE_TO_END:s(()=>BC,"MOVE_TO_END"),MOVE_TO_START:s(()=>KC,"MOVE_TO_START"),NODE_STATE_DIRECT:s(()=>Qf,"NODE_STATE_DIRECT"),NODE_STATE_KEY:s(()=>"$","NODE_STATE_KEY"),NODE_STATE_LATEST:s(()=>wC,"NODE_STATE_LATEST"),OUTDENT_CONTENT_COMMAND:s(()=>ZM,"OUTDENT_CONTENT_COMMAND"),PASTE_COMMAND:s(()=>fp,"PASTE_COMMAND"),PASTE_TAG:s(()=>f8,"PASTE_TAG"),ParagraphNode:s(()=>ad,"ParagraphNode"),REDO_COMMAND:s(()=>gp,"REDO_COMMAND"),REMOVE_TEXT_COMMAND:s(()=>_c,"REMOVE_TEXT_COMMAND"),RootNode:s(()=>sd,"RootNode"),SELECTION_CHANGE_COMMAND:s(()=>lp,"SELECTION_CHANGE_COMMAND"),SELECTION_INSERT_CLIPBOARD_NODES_COMMAND:s(()=>jM,"SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),SELECT_ALL_COMMAND:s(()=>e5,"SELECT_ALL_COMMAND"),SET_TEXT_FORMAT_COMMAND:s(()=>JM,"SET_TEXT_FORMAT_COMMAND"),SKIP_COLLAB_TAG:s(()=>g8,"SKIP_COLLAB_TAG"),SKIP_DOM_SELECTION_TAG:s(()=>m8,"SKIP_DOM_SELECTION_TAG"),SKIP_SCROLL_INTO_VIEW_TAG:s(()=>p8,"SKIP_SCROLL_INTO_VIEW_TAG"),SKIP_SELECTION_FOCUS_TAG:s(()=>d5,"SKIP_SELECTION_FOCUS_TAG"),TEXT_TYPE_TO_FORMAT:s(()=>Gt,"TEXT_TYPE_TO_FORMAT"),TabNode:s(()=>nd,"TabNode"),TextNode:s(()=>_a,"TextNode"),UNDO_COMMAND:s(()=>hp,"UNDO_COMMAND"),addClassNamesToElement:s(()=>AA,"addClassNamesToElement"),buildImportMap:s(()=>c8,"buildImportMap"),configExtension:s(()=>TA,"configExtension"),createCommand:s(()=>ke,"createCommand"),createEditor:s(()=>V8,"createEditor"),createRefCountedRegistry:s(()=>i5,"createRefCountedRegistry"),createSharedNodeState:s(()=>kC,"createSharedNodeState"),createState:s(()=>PM,"createState"),declarePeerDependency:s(()=>wA,"declarePeerDependency"),defineExtension:s(()=>SA,"defineExtension"),findAllLexicalElementsDeep:s(()=>g2,"findAllLexicalElementsDeep"),flipDirection:s(()=>Gi,"flipDirection"),getActiveElement:s(()=>ou,"getActiveElement"),getActiveElementDeep:s(()=>ms,"getActiveElementDeep"),getComposedEventTarget:s(()=>Vp,"getComposedEventTarget"),getComposedStaticRange:s(()=>Ds,"getComposedStaticRange"),getDOMOwnerDocument:s(()=>fd,"getDOMOwnerDocument"),getDOMSelection:s(()=>tr,"getDOMSelection"),getDOMSelectionFromTarget:s(()=>f2,"getDOMSelectionFromTarget"),getDOMSelectionPoints:s(()=>Yn,"getDOMSelectionPoints"),getDOMSelectionRange:s(()=>m2,"getDOMSelectionRange"),getDOMSelectionRangeAndPoints:s(()=>Y8,"getDOMSelectionRangeAndPoints"),getDOMShadowRoots:s(()=>h2,"getDOMShadowRoots"),getDOMTextNode:s(()=>Q5,"getDOMTextNode"),getDeclaredSlots:s(()=>O2,"getDeclaredSlots"),getEditorPropertyFromDOMNode:s(()=>Ca,"getEditorPropertyFromDOMNode"),getNearestEditorFromDOMNode:s(()=>fo,"getNearestEditorFromDOMNode"),getParentElement:s(()=>Oo,"getParentElement"),getRegisteredNode:s(()=>cd,"getRegisteredNode"),getRegisteredNodeOrThrow:s(()=>Mp,"getRegisteredNodeOrThrow"),getRegisteredSubtypeMap:s(()=>aA,"getRegisteredSubtypeMap"),getRootOwnerDocument:s(()=>p2,"getRootOwnerDocument"),getStaticNodeConfig:s(()=>Ea,"getStaticNodeConfig"),getStyleObjectFromCSS:s(()=>hh,"getStyleObjectFromCSS"),getTextDirection:s(()=>W8,"getTextDirection"),getTransformSetFromKlass:s(()=>Y5,"getTransformSetFromKlass"),isBlockDomNode:s(()=>Bp,"isBlockDomNode"),isCurrentlyReadOnlyMode:s(()=>bo,"isCurrentlyReadOnlyMode"),isDOMCapturingSelection:s(()=>Wl,"isDOMCapturingSelection"),isDOMDocumentNode:s(()=>Ns,"isDOMDocumentNode"),isDOMNode:s(()=>Rs,"isDOMNode"),isDOMShadowRoot:s(()=>ii,"isDOMShadowRoot"),isDOMTextNode:s(()=>yr,"isDOMTextNode"),isDOMUnmanaged:s(()=>Up,"isDOMUnmanaged"),isDocumentFragment:s(()=>x2,"isDocumentFragment"),isExactShortcutMatch:s(()=>qe,"isExactShortcutMatch"),isHTMLAnchorElement:s(()=>Q8,"isHTMLAnchorElement"),isHTMLElement:s(()=>vt,"isHTMLElement"),isHTMLTableCellElement:s(()=>tA,"isHTMLTableCellElement"),isHTMLTableRowElement:s(()=>eA,"isHTMLTableRowElement"),isInlineDomNode:s(()=>C2,"isInlineDomNode"),isLastChildInBlockNode:s(()=>J5,"isLastChildInBlockNode"),isLexicalEditor:s(()=>dd,"isLexicalEditor"),isModifierMatch:s(()=>s2,"isModifierMatch"),isOnlyChildInBlockNode:s(()=>j5,"isOnlyChildInBlockNode"),isSelectionCapturedInDecoratorInput:s(()=>U8,"isSelectionCapturedInDecoratorInput"),isSelectionWithinEditor:s(()=>xa,"isSelectionWithinEditor"),iterStaticNodeConfigChain:s(()=>Sa,"iterStaticNodeConfigChain"),makeStepwiseIterator:s(()=>Jp,"makeStepwiseIterator"),mergeRegister:s(()=>Yp,"mergeRegister"),mountSlotContainer:s(()=>iA,"mountSlotContainer"),normalizeClassNames:s(()=>Ta,"normalizeClassNames"),registerEventListener:s(()=>vp,"registerEventListener"),registerEventListeners:s(()=>NA,"registerEventListeners"),removeClassNamesFromElement:s(()=>IA,"removeClassNamesFromElement"),removeFromParent:s(()=>j8,"removeFromParent"),resetRandomKey:s(()=>H8,"resetRandomKey"),safeCast:s(()=>kA,"safeCast"),setDOMStyleFromCSS:s(()=>gh,"setDOMStyleFromCSS"),setDOMStyleObject:s(()=>y8,"setDOMStyleObject"),setDOMUnmanaged:s(()=>w2,"setDOMUnmanaged"),setNodeIndentFromDOM:s(()=>E2,"setNodeIndentFromDOM"),shallowMergeConfig:s(()=>MA,"shallowMergeConfig"),stopLexicalPropagation:s(()=>dh,"stopLexicalPropagation"),toggleTextFormatType:s(()=>Pi,"toggleTextFormatType"),tokenizeRawText:s(()=>R5,"tokenizeRawText"),unmountSlotContainer:s(()=>oA,"unmountSlotContainer")});function B(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const i of t)r.append("v",i);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}s(B,"t$5");function gC(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const i of t)r.append("v",i);n.search=r.toString()}s(gC,"e$4");var er=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,gM=er&&"documentMode"in document?document.documentMode:null,Vn=er&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),ri=er&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Nl=!(!er||!("InputEvent"in window)||gM)&&"getTargetRanges"in new window.InputEvent("input"),yo=er&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,np=er&&/Android/.test(navigator.userAgent),pa=er&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent)&&!np,rp=er&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Ol=er&&np&&rp,ma=er&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&Vn&&!rp,pM=0,mM=1,_M=2;var vM=2047,yM=1,xM=2,CM=3,bM=4,EM=5,SM=6,Dl=pa||yo||ma?" ":"​",lo=`
3
3
 
4
4
  `,ip=ri?" ":Dl,pC="֑-߿יִ-﷽ﹰ-ﻼ",mC="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",TM=new RegExp("^[^"+mC+"]*["+pC+"]"),wM=new RegExp("^[^"+pC+"]*["+mC+"]"),Gt={bold:1,capitalize:1024,code:16,highlight:128,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},kM={directionless:1,unmergeable:2},Kc={center:2,end:6,justify:4,left:1,right:3,start:5},MM={[xM]:"center",[SM]:"end",[bM]:"justify",[yM]:"left",[CM]:"right",[EM]:"start"},AM={normal:0,segmented:2,token:1},IM={[pM]:"normal",[_M]:"segmented",[mM]:"token"};var a0="$config";function c0(){return xr()._blockCursorElement}s(c0,"j$1");function NM(e){return e!==null&&e.nodeType===1&&e.hasAttribute("data-lexical-slot")}s(NM,"V$2");var _C=class pc{static{s(this,"q$2")}element;before;after;constructor(t,n,r){this.element=t,this.before=n||null,this.after=r||null}withBefore(t){return new pc(this.element,t,this.after)}withAfter(t){return new pc(this.element,this.before,t)}withElement(t){return this.element===t?this:new pc(t,this.before,this.after)}insertChild(t){const n=this.getInsertionAnchor();return n!==null&&n.parentElement!==this.element&&B(357),this.element.insertBefore(t,n),this}removeChild(t){return t.parentElement!==this.element&&B(358),this.element.removeChild(t),this}replaceChild(t,n){return n.parentElement!==this.element&&B(359),this.element.replaceChild(t,n),this}getFirstChild(){const t=this.getFirstChildAnchor(),n=t?t.nextSibling:this.element.firstChild;return n===this.getInsertionAnchor()?null:n}getFirstChildAnchor(){return this.after}resolveLeafPosition(t,n,r){if(this.element===t)return n===t&&r===0?"before":"after";const i=u0(t,this.element);if(i===null)return"after";const o=Array.prototype.indexOf.call(t.childNodes,i);if(o<0)return"after";if(n===t)return r<=o?"before":"after";const l=u0(t,n);if(l===null)return"after";const a=Array.prototype.indexOf.call(t.childNodes,l);return a>=0&&a<=o?"before":"after"}getInsertionAnchor(){return this.before}};function u0(e,t){let n=t;for(;n!==null&&n.parentNode!==e;)n=n.parentNode;return n}s(u0,"Y$1");var vC=class mc extends _C{static{s(this,"G$1")}withBefore(t){return new mc(this.element,t,this.after)}withAfter(t){return new mc(this.element,this.before,t)}withElement(t){return this.element===t?this:new mc(t,this.before,this.after)}getInsertionAnchor(){return super.getInsertionAnchor()||this.getManagedLineBreak()}getFirstChildAnchor(){let t=super.getFirstChildAnchor(),n=t?t.nextSibling:this.element.firstChild;for(;NM(n);)t=n,n=n.nextSibling;const r=t?t.nextSibling:this.element.firstChild;return r!==null&&r===c0()?r:t}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(t){if(this.element.__lexicalLastChildKind=t,t===null)this.removeManagedLineBreak();else{const n=t==="decorator"&&(ma||yo||pa);this.insertManagedLineBreak(n)}}removeManagedLineBreak(){const t=this.getManagedLineBreak();if(t){const n=this.element,r=t.nodeName==="IMG"?t.nextSibling:null;r&&n.removeChild(r),n.removeChild(t),n.__lexicalLineBreak=void 0}}insertManagedLineBreak(t){const n=this.getManagedLineBreak();if(n){if(t===(n.nodeName==="IMG"))return;this.removeManagedLineBreak()}const r=this.element,i=this.before,o=vn().createElement("br");if(o.setAttribute("data-lexical-managed-linebreak","true"),r.insertBefore(o,i),t){const l=vn().createElement("img");l.setAttribute("data-lexical-managed-linebreak","true"),l.style.setProperty("display","inline","important"),l.style.setProperty("border","0px","important"),l.style.setProperty("margin","0px","important"),l.alt="",r.insertBefore(l,o),r.__lexicalLineBreak=l}else r.__lexicalLineBreak=o}getFirstChildOffset(){const t=this.getFirstChild(),n=this.getInsertionAnchor();let r=0;for(let i=this.element.firstChild;i!==null&&i!==t&&i!==n;i=i.nextSibling)r++;return r}resolveChildIndex(t,n,r,i){if(r===this.element){const c=this.getFirstChildOffset(),u=c0(),d=this.element.childNodes,f=Math.min(i,d.length);let h=0;for(let g=c;g<f;g++)d[g]!==u&&h++;return[t,Math.min(h,t.getChildrenSize())]}const o=d0(n,r);o.push(i);const l=d0(n,this.element);let a=t.getIndexWithinParent();for(let c=0;c<l.length;c++){const u=o[c],d=l[c];if(u===void 0||u<d)break;if(u>d){a+=1;break}}return[t.getParentOrThrow(),a]}};function d0(e,t){const n=[];let r=t;for(;r!==e&&r!==null;r=r.parentNode){let i=0;for(let o=r.previousSibling;o!==null;o=o.previousSibling)i++;n.push(i)}return r!==e&&B(225),n.reverse()}s(d0,"X$3");var yC;try{yC="0.48.0+prod.esm"}catch{}var xC=yC??'"<unknown>+source"',Js=class{static{s(this,"tt$1")}_front=new Set;_back=new Set;_cache;get size(){return this._front.size+this._back.size}addBack(e){return delete this._cache,this._front.has(e)||this._back.add(e),this}addFront(e){return delete this._cache,this._back.has(e)||this._front.add(e),this}delete(e){return delete this._cache,this._front.delete(e)||this._back.delete(e)}toArray(){const e=Array.from(this._front).reverse();for(const t of this._back)e.push(t);return e}toReadonlyArray(){return this._cache=this._cache||this.toArray(),this._cache}[Symbol.iterator](){return this.toReadonlyArray()[Symbol.iterator]()}},Qi=null;function CC(e,t=1e3){return e instanceof Yf?e.clone():e.size<t?new Map(e):new Yf().init(new Map(e),void 0,e.size)}s(CC,"nt$4");var Yf=class bC{static{s(this,"ot$4")}_mutable=!1;_old=void 0;_nursery=void 0;_size=0;clone(){return this._mutable=!1,new bC().init(this._old,this._nursery,this._size)}init(t,n,r){return this._old=t,this._nursery=n,this._size=r,this}get size(){return this._size}has(t){return this.get(t)!==void 0}getWithTombstone(t){const n=this._nursery&&this._nursery.get(t);return n!==void 0?n:this._old&&this._old.get(t)}get(t){const n=this.getWithTombstone(t);return n===Qi?void 0:n}shouldCompact(){return this._nursery!==void 0&&2*this._nursery.size>this._size}getNursery(){return this._mutable&&this._nursery||(this.compact(),this._nursery=new Map(this._nursery),this._mutable=!0),this._nursery}compact(t=!1){if(this._nursery&&this._nursery.size>0&&(t||this.shouldCompact())){const n=new Map(this._old);for(const[r,i]of this._nursery)i!==Qi?n.set(r,i):n.delete(r);this._old=n,this._nursery=void 0}return this._mutable=!1,this}set(t,n){const r=this.getWithTombstone(t);if(r===n)return this;const i=this.getNursery();return r!==Qi&&r!==void 0||(this._size++,r===Qi&&i.delete(t)),i.set(t,n),this}delete(t){const n=this.has(t);return n&&(this.getNursery().set(t,Qi),this._size--),n}getOrInsert(t,n){const r=this.get(t);return r!==void 0?r:(this.set(t,n),n)}getOrInsertComputed(t,n){const r=this.get(t);if(r!==void 0)return r;const i=n(t);return this.set(t,i),i}clear(){this._mutable=!1,this._old=void 0,this._nursery=void 0,this._size=0}*keys(){for(const t of this.entries())yield t[0]}*values(){for(const t of this.entries())yield t[1]}*entries(){const t=this._nursery,n=this._old;if(n)for(const r of n){const i=r[0],o=t?t.get(i):void 0;o!==Qi&&(o!==void 0&&(r[1]=o),yield r)}if(t)for(const r of t)r[1]===Qi||n&&n.has(r[0])||(yield r)}forEach(t,n){n!==void 0&&(t=t.bind(n));for(const[r,i]of this.entries())t(i,r,this)}get[Symbol.toStringTag](){return"GenMap"}[Symbol.iterator](){return this.entries()}};function Uc(e,t,n,r,i,o){if(F(e)){let l=e.getFirstChild();for(;l!==null;){const a=l.__key;l.__parent===t&&((F(l)||Mr(l)&&l.__slots!==null)&&Uc(l,a,n,r,i,o),n.has(a)||o.delete(a),i.push(a)),l=l.getNextSibling()}}for(const l of Mr(e)&&e.__slots!==null?e.__slots.values():[]){const a=r.get(l);a!==void 0&&Fi(a)&&a.__slotHost===t&&((F(a)||Mr(a)&&a.__slots!==null)&&Uc(a,l,n,r,i,o),n.has(l)||o.delete(l),i.push(l))}}s(Uc,"rt$4");var Xf=!1,op=0;function OM(e){op=e.timeStamp}s(OM,"lt$4");function Yd(e,t,n){const r=e.nodeName==="BR",i=t.__lexicalLineBreak;return i&&(e===i||r&&e.previousSibling===i)||r&&Os(e,n)!==void 0}s(Yd,"ct$3");function DM(e,t,n){const r=tr(Sn(n)),i=r&&Yn(r,n._rootElement);let o=null,l=null;i!==null&&i.anchorNode===e&&(o=i.anchorOffset,l=i.focusOffset);const a=e.nodeValue;a!==null&&Dp(t,a,o,l,!1)}s(DM,"at$1");function RM(e,t,n){if(ve(e)){const r=e.anchor.getNode();if(r.is(n)&&e.format!==r.getFormat())return!1}return yr(t)&&n.isAttached()}s(RM,"ut$3");function LM(e,t,n){for(let r=e;r&&!Up(r);r=Oo(r)){const i=Os(r,t);if(i!==void 0){const o=nt(i,n);if(o)return We(o)||!vt(r)?void 0:[r,o]}}}s(LM,"ft$3");function EC(e,t,n){Xf=!0;const r=performance.now()-op>100;try{jn(e,()=>{const i=Ve()||(function(f){return f.read("latest",()=>{const h=Ve();return h!==null?h.clone():null})})(e),o=new Map,l=e._editorState,a=e._blockCursorElement;let c=!1,u="";for(let f=0;f<t.length;f++){const h=t[f],g=h.type,p=h.target,_=LM(p,e,l);if(!_)continue;const[y,v]=_;if(g==="characterData")r&&X(v)&&yr(p)&&RM(i,p,v)&&DM(p,v,e);else if(g==="childList"){c=!0;const x=h.addedNodes;for(let S=0;S<x.length;S++){const M=x[S],T=Ap(M),E=M.parentNode;if(!(E==null||M===a||T!==null||Yd(M,E,e)||e._slotsUsed&&vt(M)&&M.hasAttribute("data-lexical-slot")||Up(M))){if(ri){const A=(vt(M)?M.innerText:null)||M.nodeValue;A&&(u+=A)}E.removeChild(M)}}const C=h.removedNodes,b=C.length;if(b>0){let S=0;for(let M=0;M<b;M++){const T=C[M];(Yd(T,p,e)||a===T)&&(p.appendChild(T),S++)}b!==S&&o.set(y,v)}}}if(o.size>0)for(const[f,h]of o)h.reconcileObservedMutation(f,e);const d=n.takeRecords();if(d.length>0){for(let f=0;f<d.length;f++){const h=d[f],g=h.addedNodes,p=h.target;for(let _=0;_<g.length;_++){const y=g[_],v=y.parentNode;v==null||y.nodeName!=="BR"||Yd(y,p,e)||v.removeChild(y)}}n.takeRecords()}i!==null&&(c&&dn(i),ri&&a2(e)&&i.insertRawText(u))})}finally{Xf=!1}}s(EC,"dt$5");function SC(e){const t=e._observer;t!==null&&EC(e,t.takeRecords(),t)}s(SC,"ht$4");function TC(e){(function(t){op===0&&Sn(t).addEventListener("textInput",OM,!0)})(e),e._observer=new MutationObserver((t,n)=>{EC(e,t,n)})}s(TC,"gt$1");var Qf="direct",wC="latest",$M=class{static{s(this,"yt$4")}key;parse;unparse;isEqual;defaultValue;resetOnCopyNode;constructor(e,t){this.key=e,this.parse=t.parse.bind(t),this.unparse=(t.unparse||HM).bind(t),this.isEqual=(t.isEqual||Object.is).bind(t),this.defaultValue=this.parse(void 0),this.resetOnCopyNode=t.resetOnCopyNode||!1}};function PM(e,t){return new $M(e,t)}s(PM,"mt$5");function Wc(e,t,n=wC){const r=(n==="latest"?e.getLatest():e).__state;return r?r.getValue(t):t.defaultValue}s(Wc,"xt$5");function FM(e,t,n){const r=Wc(e,n,Qf),i=Wc(t,n,Qf);return n.isEqual(r,i)?null:[r,i]}s(FM,"Ct$5");function VM(e,t,n){let r;if(Ht(),typeof n=="function"){const o=e.getLatest(),l=Wc(o,t);if(r=n(l),t.isEqual(l,r))return o}else r=n;const i=e.getWritable();return sp(i).updateFromKnown(t,r),i}s(VM,"St$6");function kC(e){const t=new Map,n=new Set;for(const{ownNodeConfig:r}of Sa(typeof e=="function"?e:e.replace))if(r&&r.stateConfigs)for(const i of r.stateConfigs){let o;"stateConfig"in i?(o=i.stateConfig,i.flat&&n.add(o.key)):o=i,t.set(o.key,o)}return{flatKeys:n,sharedConfigMap:t}}s(kC,"vt$5");var f0=new Set(["__proto__","constructor","prototype"]),BM=class MC{static{s(this,"kt$6")}node;knownState;unknownState;sharedNodeState;size;constructor(t,n,r=void 0,i=new Map,o=void 0){this.node=t,this.sharedNodeState=n,this.unknownState=r,this.knownState=i;const{sharedConfigMap:l}=this.sharedNodeState,a=o!==void 0?o:(function(c,u,d){let f=d.size;if(u)for(const h in u){const g=c.get(h);g&&d.has(g)||f++}return f})(l,r,i);this.size=a}getValue(t){const n=this.knownState.get(t);if(n!==void 0)return n;this.sharedNodeState.sharedConfigMap.set(t.key,t);let r=t.defaultValue;if(this.unknownState&&t.key in this.unknownState){const i=this.unknownState[t.key];i!==void 0&&(r=t.parse(i)),this.updateFromKnown(t,r)}return r}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){const t={...this.unknownState},n={};for(const[r,i]of this.knownState)r.isEqual(i,r.defaultValue)?delete t[r.key]:t[r.key]=r.unparse(i);for(const r of this.sharedNodeState.flatKeys)r in t&&(n[r]=t[r],delete t[r]);return h0(t)&&(n.$=t),n}getWritable(t){if(this.node===t)return this;const{sharedNodeState:n,unknownState:r}=this,i=new Map(this.knownState);return new MC(t,n,(function(o,l,a){let c;if(a)for(const[u,d]of Object.entries(a)){if(f0.has(u))continue;const f=o.get(u);f?l.has(f)||l.set(f,f.parse(d)):(c=c||{},c[u]=d)}return c})(n.sharedConfigMap,i,r),i,this.size)}resetOnCopyNode(){for(const t of this.knownState.keys())t.resetOnCopyNode&&this.knownState.set(t,t.defaultValue);return this}updateFromKnown(t,n){const r=t.key;this.sharedNodeState.sharedConfigMap.set(r,t);const{knownState:i,unknownState:o}=this;i.has(t)||o&&r in o||(o&&(delete o[r],this.unknownState=h0(o)),this.size++),i.set(t,n)}updateFromUnknown(t,n){if(f0.has(t))return;const r=this.sharedNodeState.sharedConfigMap.get(t);r?this.updateFromKnown(r,r.parse(n)):(this.unknownState=this.unknownState||{},t in this.unknownState||this.size++,this.unknownState[t]=n)}updateFromJSON(t){const{knownState:n}=this;for(const r of n.keys())n.set(r,r.defaultValue);if(this.size=n.size,this.unknownState=void 0,t)for(const[r,i]of Object.entries(t))this.updateFromUnknown(r,i)}};function sp(e){const t=e.getWritable(),n=t.__state?t.__state.getWritable(t):new BM(t,AC(t));return t.__state=n,n}s(sp,"bt$4");function AC(e){return e.__state?e.__state.sharedNodeState:Mp(xr(),e.getType()).sharedNodeState}s(AC,"Nt$6");function h0(e){if(e)for(const t in e)return e}s(h0,"wt$4");function HM(e){return e}s(HM,"Et$5");function g0(e,t,n){for(const[r,i]of t.knownState){if(e.has(r.key))continue;e.add(r.key);const o=n?n.getValue(r):r.defaultValue;if(o!==i&&!r.isEqual(o,i))return!0}return!1}s(g0,"Ot$6");function p0(e,t,n){const{unknownState:r}=t,i=n?n.unknownState:void 0;if(r){for(const[o,l]of Object.entries(r))if(!e.has(o)&&(e.add(o),l!==(i?i[o]:void 0)))return!0}return!1}s(p0,"Mt$5");function m0(e,t){const n=e.__state;return n&&n.node===e?n.getWritable(t):n}s(m0,"At$4");function _0(e,t){const n=e.__mode,r=e.__format,i=e.__style,o=t.__mode,l=t.__format,a=t.__style,c=e.__state,u=t.__state;return(n===null||n===o)&&(r===null||r===l)&&(i===null||i===a)&&(e.__state===null||c===u||(function(d,f){if(d===f)return!0;const h=new Set;return!(d&&g0(h,d,f)||f&&g0(h,f,d)||d&&p0(h,d,f)||f&&p0(h,f,d))})(c,u))}s(_0,"Dt$5");function v0(e,t){const n=e.mergeWithSibling(t),r=Ue()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}s(v0,"Pt$5");function y0(e){let t,n,r=e;if(r.__text!==""||!r.isSimpleText()||r.isUnmergeable()){for(;(t=r.getPreviousSibling())!==null&&X(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(t.__text!==""){if(_0(t,r)){r=v0(t,r);break}break}t.remove()}for(;(n=r.getNextSibling())!==null&&X(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(n.__text!==""){if(_0(r,n)){r=v0(r,n);break}break}n.remove()}}else r.remove()}s(y0,"Ft$5");function Yo(e){return x0(e.anchor),x0(e.focus),e}s(Yo,"It$4");function x0(e){for(;e.type==="element";){const t=e.getNode(),n=e.offset;let r,i;if(n===t.getChildrenSize()?(r=t.getChildAtIndex(n-1),i=!0):(r=t.getChildAtIndex(n),i=!1),X(r)){e.set(r.__key,i?r.getTextContentSize():0,"text",!0);break}if(!F(r))break;e.set(r.__key,i?r.getChildrenSize():0,"element",!0)}}s(x0,"Lt$4");var Rl=Symbol.for("@lexical/CachedTextSize");function C0(e,t){return th.read(()=>{let n=0,r=e;for(let i=0;i<t&&r!==null;i++){const o=cr.get(r);if(o===void 0&&B(345,r),F(o)){const l=ht.get(r);if(l!==void 0&&F(l)&&l.__parent!==o.__parent)n+=o.getTextContentSize();else{const a=xo.get(r),c=a&&a.__lexicalTextContent;typeof c!="string"&&B(346,o.getType()),n+=c.length}i<t-1&&!o.isInline()&&(n+=2)}else{const l=o[Rl];l===void 0&&B(347,o.getType(),r),n+=l}r=o.__next}return n},{editor:Be})}s(C0,"zt$4");function IC(e){F(e)||e[Rl]===void 0&&(e[Rl]=X(e)?e.__text.length:e.getTextContentSize())}s(IC,"Bt$4");var KM=4,Ll,Be,$l,Oe="",xt=null,Qt=null,qt=null;function wr(){return{firstTextKey:qt,format:xt,style:Qt}}s(wr,"qt$3");function Bn(e){e.firstTextKey!==null&&(xt=e.format,Qt=e.style,qt=e.firstTextKey)}s(Bn,"Yt$2");function eh(e){if(qt!==null)return;const t=e.__lexicalFirstTextKey;if(t===void 0&&B(348),t===null)return;const n=ht.get(t);X(n)&&(xt=n.getFormat(),Qt=n.getStyle(),qt=t)}s(eh,"Gt$2");var td,pl,ml,cr,th,ht,xo,nh,Pl,Co,Gr=!1,zc=!1;function Ni(e,t){const n=cr.get(e),r=ht.has(e);if(t!==null){const i=lh(e);i.parentNode===t&&t.removeChild(i)}if(!r){if(Be._keyToDOMMap.delete(e),F(n)){const i=zl(n,cr);rh(i,0,i.length-1,null)}if(n!==void 0){for(const i of kn(n).values()){const o=oh(i);Ni(i,null),o!==null&&o.remove()}Rp(Pl,$l,td,n,"destroyed")}}}s(Ni,"ae$2");function rh(e,t,n,r){for(let i=t;i<=n;++i){const o=e[i];o!==void 0&&Ni(o,r)}}s(rh,"ue$3");function eo(e,t){e.setProperty("text-align",t)}s(eo,"fe$1");var UM="40px";function NC(e,t){const n=Ll.theme.indent;if(typeof n=="string"){const r=e.classList.contains(n);t>0&&!r?e.classList.add(n):t<1&&r&&e.classList.remove(n)}e.style.setProperty("padding-inline-start",t===0?"":`calc(${t} * var(--lexical-indent-base-value, ${UM}))`)}s(NC,"he$2");function OC(e,t){const n=e.style;t===0?eo(n,""):t===1?eo(n,"left"):t===2?eo(n,"center"):t===3?eo(n,"right"):t===4?eo(n,"justify"):t===5?eo(n,"start"):t===6&&eo(n,"end")}s(OC,"ge$2");function ih(e,t){const n=(function(r){const i=r.__dir;if(i!==null)return i;if(Mt(r))return null;const o=r.getParent();return o===null||kt(o)&&o.__dir===null?"auto":null})(t);n!==null?e.dir=n:e.removeAttribute("dir")}s(ih,"_e$2");function DC(e){const t=vn().createElement("div");return t.setAttribute("data-lexical-slot",e),t.style.display="none",t}s(DC,"pe$2");function RC(e,t,n){t||e.contentEditable==="false"?k2(n,Be):n.removeAttribute("contenteditable")}s(RC,"ye$2");function b0(e,t,n){const r=Oe,i=wr();Oe="";let o="";const l=We(e);for(const[a,c]of n){const u=DC(a);RC(t,l,u),t.appendChild(u),Oe="";const d=wr();Oi(c,Rn(e,u,Be)),Bn(d),LC(e,a,t,u),o+=Oe}return Bn(i),Oe=r,o}s(b0,"me$2");function kn(e){return Mr(e)&&e.__slots!==null?e.__slots:A2}s(kn,"xe$3");function LC(e,t,n,r){const i=Co.$getSlotTargetElement(e,t,n,Be);i!==null&&(r.parentElement!==i&&i.appendChild(r),r.style.display="")}s(LC,"Ce$2");function oh(e){const t=xo.get(e);return t!==void 0?t.parentElement:null}s(oh,"Se$2");function E0(e,t,n){const r=kn(e),i=kn(t);for(const[d,f]of r)if(!i.has(d)){const h=oh(f);Ni(f,null),h!==null&&h.remove()}const o=Oe,l=wr();let a="",c=null;const u=We(t);for(const[d,f]of i){const h=r.get(d);let g=h!==void 0?oh(h):null;Oe="";const p=wr();if(g===null){g=DC(d);let _=null;for(const y of n.children)if(!y.hasAttribute("data-lexical-slot")){_=y;break}n.insertBefore(g,_),Oi(f,Rn(t,g,Be))}else h===f?jr(f,g):(h!==void 0&&Ni(h,g),Oi(f,Rn(t,g,Be)));if(Bn(p),RC(n,u,g),LC(t,d,n,g),a+=Oe,g.parentElement===n){const _=c===null?n.firstChild:c.nextSibling;_!==g&&n.insertBefore(g,_),c=g}}return Bn(l),Oe=o,a}s(E0,"ve$2");function Oi(e,t){const n=ht.get(e);if(n===void 0&&B(60),t!==null){const i=cr.get(e);if(i!==void 0){const o=xo.get(e);if(o!==void 0){const l=Fi(i)?i.__slotHost:null,a=Fi(n)?n.__slotHost:null,c=i.__parent!==n.__parent||l!==a,u=a!==null&&o.parentElement!==t.element;if(c||u)return t.insertChild(o),jr(e,t.element)}}}const r=Co.$createDOM(n,Be);if((function(i,o,l){const a=l._keyToDOMMap;t2(o,l,i),a.set(i,o)})(e,r,Be),X(n)?r.setAttribute("data-lexical-text","true"):We(n)&&(r.setAttribute("data-lexical-decorator","true"),w2(r,{captureSelection:!0})),F(n)){const i=n.__indent,o=n.__size;ih(r,n),i!==0&&NC(r,i);const l=kn(n),a=l.size>0?b0(n,r,l):"";if(o===0)r.__lexicalTextContent=a,r.__lexicalFirstTextKey=null,Oe+=a,l.size>0&&(r.__lexicalSlotTextLength=a.length);else{const u=Oe,d=o-1;if(sh(zl(n,ht),n,0,d,Rn(n,r,Be)),a!==""){const f=r.__lexicalTextContent||"";r.__lexicalTextContent=a+f,Oe=u+a+f}l.size>0&&(r.__lexicalSlotTextLength=a.length)}const c=n.__format;c!==0&&OC(r,c),n.isInline()||$C(null,n,r)}else{const i=n.getTextContent();if(We(n)){const o=n.decorate(Be,Ll);o!==null&&PC(e,o),r.contentEditable="false";const l=kn(n);l.size>0&&b0(n,r,l)}Oe+=i}return t!==null&&t.insertChild(r),Co.$decorateDOM(n,null,r,Be),IC(n),Rp(Pl,$l,td,n,"created"),r}s(Oi,"Te$3");function sh(e,t,n,r,i){const o=Oe,l=wr();Oe="",xt=null,Qt=null,qt=null;let a=n;for(;a<=r;++a){const u=wr();Oi(e[a],i);const d=ht.get(e[a]);d!==null&&X(d)?xt===null&&(xt=d.getFormat(),Qt=d.getStyle(),qt=d.__key):F(d)&&a<r&&!d.isInline()&&(Oe+=lo),Bn(u)}const c=Be._keyToDOMMap.get(t.__key);c===void 0&&B(349,t.__key),c.__lexicalTextContent=Oe,c.__lexicalFirstTextKey=qt,Oe=o+Oe,Bn(l)}s(sh,"ke$3");function $C(e,t,n){const r=Rn(t,n,Be),i=r.element.__lexicalLastChildKind??null,o=(function(l,a){if(l){const c=l.__last;if(c){const u=a.get(c);if(u)return Ir(u)?"line-break":We(u)&&u.isInline()?"decorator":null}return kn(l).size>0?null:"empty"}return null})(t,ht);i!==o&&r.setManagedLineBreak(o)}s($C,"be$1");function WM(e,t,n){var r;xt=null,Qt=null,qt=null,(function(i,o,l){const a=Oe,c=i.__size,u=o.__size;Oe="";const d=l.element,f=Be._keyToDOMMap.get(o.__key);f===void 0&&B(351,o.__key);const h=u-c;if(!Gr&&Math.abs(h)<=1&&c>=KM&&i.__first===o.__first&&(h!==0||!Be._cloneNotNeeded.has(i.__key))){const g=f.__lexicalTextContent,p=nh.get(i.__key);if(!Gr&&typeof g=="string"&&p!==void 0){const _=(function(y,v){const x=v.size;if(x===0||x>=y.__size)return null;let C=y.__last,b=null,S=0;for(;C!==null&&S<x;){if(!v.has(C))return null;b=C;const M=ht.get(C);if(M===void 0)return null;C=M.__prev,S++}return S!==x||C!==null&&v.has(C)?null:b})(o,p);if(_!==null){const y=p.size;if(h===0){const v=C0(_,y);let x=_,C=0;for(;x!==null&&C<y;){const E=ht.get(x);if(E===void 0)break;const A=wr();jr(x,d),X(E)&&xt===null&&(xt=E.getFormat(),Qt=E.getStyle(),qt=E.__key),Bn(A),x=E.__next,C++}let b="";for(x=_,C=0;x!==null&&C<y;){const E=ht.get(x);if(E===void 0)break;let A;if(F(E)){const D=Be._keyToDOMMap.get(x),L=D&&D.__lexicalTextContent;typeof L!="string"&&B(352,E.getType()),A=L}else A=E.getTextContent();b+=A,C<y-1&&F(E)&&!E.isInline()&&(b+=lo),x=E.__next,C++}const S=f.__lexicalSlotTextLength||0,M=S>0?g.slice(S):g,T=M.slice(0,M.length-v)+b;f.__lexicalTextContent=T,Oe=a+T,S0(o,f,p);return}if((function(v,x,C,b,S,M,T,E){if(E!==1&&E!==-1||T!==(E===1?2:1))return!1;const A=T-E;let D=v.__last;for(let j=0;j<A-1;j++){if(D===null)return!1;const ne=cr.get(D);if(ne===void 0)return!1;D=ne.__prev}if(D===null)return!1;const L=ht.get(M),G=cr.get(D);if(L===void 0||G===void 0||L.__prev!==G.__prev)return!1;const $=[];let z=M;for(let j=0;j<T;j++){if(z===null)return!1;$.push(z);const ne=ht.get(z);z=ne?ne.__next:null}const W=[];z=D;for(let j=0;j<A;j++){if(z===null)return!1;W.push(z);const ne=cr.get(z);z=ne?ne.__next:null}const ye=new Set(W),q=new Set($),ge=[];let me=0,oe=0;for(;me<A&&oe<T;)if($[oe]===W[me])ge.push({key:$[oe],kind:"reconcile"}),me++,oe++;else if(q.has(W[me])){if(ye.has($[oe]))return!1;ge.push({key:$[oe],kind:"create",nextIndex:oe}),oe++}else ge.push({key:W[me],kind:"destroy"}),me++;for(;me<A;)ge.push({key:W[me++],kind:"destroy"});for(;oe<T;)ge.push({key:$[oe],kind:"create",nextIndex:oe}),oe++;const Z=C0(D,A);for(const j of ge){const ne=wr();if(j.kind==="reconcile")jr(j.key,C.element);else if(j.kind==="destroy")Ni(j.key,C.element);else{let ue=null;for(let Ne=j.nextIndex+1;Ne<T;Ne++){const $e=Be._keyToDOMMap.get($[Ne]);if($e!==void 0){ue=$e;break}}Oi(j.key,C.withBefore(ue??C.before))}if(j.kind!=="destroy"){const ue=ht.get(j.key);ue&&X(ue)&&xt===null&&(xt=ue.getFormat(),Qt=ue.getStyle(),qt=ue.__key)}Bn(ne)}let pe="";for(let j=0;j<T;j++){const ne=ht.get($[j]);if(ne===void 0)return!1;let ue;if(F(ne)){const Ne=Be._keyToDOMMap.get($[j]),$e=Ne&&Ne.__lexicalTextContent;typeof $e!="string"&&B(350,ne.getType()),ue=$e}else ue=ne.getTextContent();pe+=ue,j<T-1&&F(ne)&&!ne.isInline()&&(pe+=lo)}const de=b.__lexicalSlotTextLength||0,ce=de>0?S.slice(de):S;return b.__lexicalTextContent=ce.slice(0,ce.length-Z)+pe,!0})(i,0,l,f,g,_,y,h)){const v=f.__lexicalTextContent;typeof v!="string"&&B(353),Oe=a+v,S0(o,f,p);return}}}if(h===0){let _=i.__first,y=0;for(;_!==null;){const v=ht.get(_);if(v===void 0)break;const x=Gr||ml.has(_)||pl.has(_),C=wr();if(x)jr(_,d);else{let b,S;if(F(v)){S=xo.get(_);const M=S&&S.__lexicalTextContent;typeof M!="string"&&B(354,v.getType()),b=M}else b=v.getTextContent();Oe+=b,S!==void 0&&eh(S)}X(v)?xt===null&&(xt=v.getFormat(),Qt=v.getStyle(),qt=v.__key):F(v)&&y<u-1&&!v.isInline()&&(Oe+=lo),Bn(C),_=v.__next,y++}f.__lexicalTextContent=Oe,f.__lexicalFirstTextKey=qt,Oe=a+Oe;return}}if(c===1&&u===1){const g=i.__first,p=o.__first;if(g===p)jr(g,d);else{const y=lh(g),v=Oi(p,null);try{y.parentNode===d?d.replaceChild(v,y):l.insertChild(v)}catch(x){if(typeof x=="object"&&x!=null){const C=`${x.toString()} Parent: ${d.tagName}, new child: {tag: ${v.tagName} key: ${p}}, old child: {tag: ${y.tagName}, key: ${g}}.`;throw new Error(C)}throw x}Ni(g,null)}const _=ht.get(p);X(_)&&xt===null&&(xt=_.getFormat(),Qt=_.getStyle(),qt=_.__key)}else{const g=zl(i,cr),p=zl(o,ht);if(g.length!==c&&B(227),p.length!==u&&B(228),c===0)u!==0&&sh(p,o,0,u-1,l);else if(u===0){if(c!==0){const _=l.after==null&&l.before==null&&kn(o).size===0&&l.element.__lexicalLineBreak==null;rh(g,0,c-1,_?null:d),_&&(d.textContent="")}}else(function(_,y,v,x,C,b){const S=x-1,M=C-1;let T,E,A=b.getFirstChild(),D=0,L=0;for(;D<=S&&L<=M;){const z=y[D],W=v[L],ye=wr();if(z===W)A=Xd(jr(W,b.element)),D++,L++;else{if(E===void 0&&(E=T0(v,L)),T===void 0)T=T0(y,D);else if(!T.has(z)){D++,Bn(ye);continue}if(!E.has(z)){A=Xd(lh(z)),Ni(z,b.element),D++,T.delete(z),Bn(ye);continue}if(T.has(W)){const ge=ps(Be,W);ge!==A&&b.withBefore(A??b.before).insertChild(ge),A=Xd(jr(W,b.element)),D++,L++}else Oi(W,b.withBefore(A??b.before)),L++}const q=ht.get(W);q!==null&&X(q)?xt===null&&(xt=q.getFormat(),Qt=q.getStyle(),qt=q.__key):F(q)&&L<=M&&!q.isInline()&&(Oe+=lo),Bn(ye)}const G=D>S,$=L>M;if(G&&!$){const z=v[M+1],W=z===void 0?null:Be.getElementByKey(z);sh(v,_,L,M,b.withBefore(W??b.before))}else $&&!G&&rh(y,D,S,b.element)})(o,g,p,c,u,l)}f.__lexicalTextContent=Oe,f.__lexicalFirstTextKey=qt,Oe=a+Oe})(e,t,Rn(t,n,Be)),kt(t)||(r=t,xt==null||xt===r.__textFormat||zc||r.setTextFormat(xt),(function(i){Qt==null||Qt===i.__textStyle||zc||i.setTextStyle(Qt)})(t))}s(WM,"Ne$2");function S0(e,t,n){const r=t.__lexicalFirstTextKey;if(r!=null){const i=e.__key;let o=r;for(;o!==null;){const l=ht.get(o);if(l===void 0){o=null;break}if(l.__parent===i)break;o=l.__parent}if(o!==null&&!n.has(o)){const l=ht.get(r);if(X(l))return xt=l.getFormat(),void(Qt=l.getStyle())}}t.__lexicalFirstTextKey=qt}s(S0,"we$2");function jr(e,t){const n=cr.get(e);let r=ht.get(e);n!==void 0&&r!==void 0||B(61);const i=Gr||ml.has(e)||pl.has(e),o=ps(Be,e);if(n===r&&!i){let l;if(F(n)){const a=o.__lexicalTextContent;typeof a!="string"&&B(355,n.getType()),l=a,eh(o)}else l=n.getTextContent();return Oe+=l,o}if(n!==r&&i&&Rp(Pl,$l,td,r,"updated"),Co.$updateDOM(r,n,o,Be)){const l=Oi(e,null);return t===null&&B(62),t.replaceChild(l,o),Ni(e,null),l}if(F(n)){F(r)||B(334,e);const l=r.__indent;(Gr||l!==n.__indent)&&NC(o,l);const a=r.__format;(Gr||a!==n.__format)&&OC(o,a);const c=i&&(kn(r).size>0||kn(n).size>0)?E0(n,r,o):"";if(i){const u=Oe;if(WM(n,r,o),Mt(r)||r.isInline()||$C(0,r,o),c!==""){const d=o.__lexicalTextContent||"";o.__lexicalTextContent=c+d,Oe=u+c+d,o.__lexicalSlotTextLength=c.length}else(kn(r).size>0||kn(n).size>0)&&(o.__lexicalSlotTextLength=0)}else{const u=o.__lexicalTextContent;typeof u!="string"&&B(356,n.getType()),Oe+=u,eh(o)}if((Gr||r.__dir!==n.__dir||r.__parent!==n.__parent)&&(ih(o,r),Mt(r)&&!Gr))for(const u of r.getChildren())F(u)&&ih(ps(Be,u.getKey()),u)}else{const l=r.getTextContent();if(We(r)){const a=r.decorate(Be,Ll);a!==null&&PC(e,a),i&&(kn(r).size>0||kn(n).size>0)&&E0(n,r,o)}Oe+=l}if(!zc&&Mt(r)){const l=r.getLatest();if(l.__cachedText!==Oe){const a=l.getWritable();a.__cachedText=Oe,r=a}}return Co.$decorateDOM(r,n,o,Be),IC(r),o}s(jr,"Ee$1");function PC(e,t){let n=Be._pendingDecorators;const r=Be._decorators;if(n===null){if(r[e]===t)return;n=n2(Be)}n[e]=t}s(PC,"Oe$2");function Xd(e){let t=e.nextSibling;return t!==null&&t===Be._blockCursorElement&&(t=t.nextSibling),t}s(Xd,"Me$2");function T0(e,t){const n=new Set;for(let r=t;r<e.length;r++)n.add(e[r]);return n}s(T0,"Ae$2");function zM(e,t,n,r,i,o){Oe="",xt=null,Qt=null,qt=null,Gr=r===2,Be=n,Ll=n._config,Co=n._config.dom||Kl,$l=n._nodes,td=Be._listeners.mutation,pl=i,ml=o,cr=e._nodeMap,th=e,ht=t._nodeMap,zc=t._readOnly,xo=CC(n._keyToDOMMap),nh=(function(){const a=new Map,c=s(u=>{for(const d of u){const f=ht.get(d);if(f===void 0)continue;const h=f.__parent;if(h===null)continue;let g=a.get(h);g===void 0&&(g=new Set,a.set(h,g)),g.add(d)}},"e");return c(pl.keys()),c(ml),a})();const l=new Map;return Pl=l,jr("root",null),Be=void 0,$l=void 0,pl=void 0,ml=void 0,cr=void 0,th=void 0,ht=void 0,Ll=void 0,xo=void 0,nh=void 0,Pl=void 0,Co=Kl,l}s(zM,"De$2");function lh(e){const t=xo.get(e);return t===void 0&&B(75,e),t}s(lh,"Pe$3");function ke(e){return{type:e}}s(ke,"Fe$3");var lp=ke("SELECTION_CHANGE_COMMAND"),jM=ke("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),FC=ke("CLICK_COMMAND"),ap=ke("BEFORE_INPUT_COMMAND"),cp=ke("INPUT_COMMAND"),up=ke("COMPOSITION_START_COMMAND"),dp=ke("COMPOSITION_END_COMMAND"),Fl=ke("DELETE_CHARACTER_COMMAND"),_l=ke("INSERT_LINE_BREAK_COMMAND"),ah=ke("INSERT_PARAGRAPH_COMMAND"),ls=ke("CONTROLLED_TEXT_INSERTION_COMMAND"),fp=ke("PASTE_COMMAND"),_c=ke("REMOVE_TEXT_COMMAND"),Vl=ke("DELETE_WORD_COMMAND"),Bl=ke("DELETE_LINE_COMMAND"),Ti=ke("FORMAT_TEXT_COMMAND"),JM=ke("SET_TEXT_FORMAT_COMMAND"),hp=ke("UNDO_COMMAND"),gp=ke("REDO_COMMAND"),pp=ke("KEYDOWN_COMMAND"),VC=ke("KEY_ARROW_RIGHT_COMMAND"),BC=ke("MOVE_TO_END"),HC=ke("KEY_ARROW_LEFT_COMMAND"),KC=ke("MOVE_TO_START"),UC=ke("KEY_ARROW_UP_COMMAND"),WC=ke("KEY_ARROW_DOWN_COMMAND"),jc=ke("KEY_ENTER_COMMAND"),zC=ke("KEY_SPACE_COMMAND"),jC=ke("KEY_BACKSPACE_COMMAND"),JC=ke("KEY_ESCAPE_COMMAND"),GC=ke("KEY_DELETE_COMMAND"),qC=ke("KEY_TAB_COMMAND"),GM=ke("INSERT_TAB_COMMAND"),qM=ke("INDENT_CONTENT_COMMAND"),ZM=ke("OUTDENT_CONTENT_COMMAND"),ZC=ke("DROP_COMMAND"),YM=ke("FORMAT_ELEMENT_COMMAND"),YC=ke("DRAGSTART_COMMAND"),XC=ke("DRAGOVER_COMMAND"),QC=ke("DRAGEND_COMMAND"),mp=ke("COPY_COMMAND"),_p=ke("CUT_COMMAND"),e5=ke("SELECT_ALL_COMMAND"),XM=ke("CLEAR_EDITOR_COMMAND"),QM=ke("CLEAR_HISTORY_COMMAND"),e8=ke("CAN_REDO_COMMAND"),t8=ke("CAN_UNDO_COMMAND"),t5=ke("FOCUS_COMMAND"),n5=ke("BLUR_COMMAND"),r5=ke("KEY_MODIFIER_COMMAND");function i5(e){const t=new Map;return{dispose(){for(const n of t.values())n.dispose();t.clear()},register(n,r){let i=t.get(n);i===void 0&&(i={dispose:e(n,r),holders:new Set},t.set(n,i));const o=s(()=>{const l=t.get(n);l&&l.holders.delete(o)&&l.holders.size===0&&(t.delete(n),l.dispose())},"i");return i.holders.add(o),o}}}s(i5,"Dn$1");function vp(e,t,n,r){return e.addEventListener(t,n,r),e.removeEventListener.bind(e,t,n,r)}s(vp,"Pn");var Kr=Object.freeze({}),ch=[["keydown",function(e,t){const n=t._inputState;n.lastKeyDownTimeStamp=e.timeStamp,n.lastKeyCode=e.key,e.key!=="Backspace"&&Hl(n),!t.isComposing()&&fe(t,pp,e)}],["pointerdown",function(e,t){const n=Vp(e),r=e.pointerType;Rs(n)&&r!=="touch"&&r!=="pen"&&e.button===0&&jn(t,()=>{Wl(n,t)||(t._inputState.isSelectionChangeFromMouseDown=!0)})}],["compositionstart",function(e,t){fe(t,up,e)}],["compositionend",function(e,t){const n=t._inputState;ri?n.compositionPhase="ending-firefox":yo||!pa&&!ma?fe(t,dp,e):(n.compositionPhase="ending-safari",n.compositionEndData=e.data)}],["input",function(e,t){e.stopPropagation();const n=t._inputState;Hl(n),jn(t,()=>{a5(e,t)||t.dispatchCommand(cp,e)},{event:e}),n.unprocessedBeforeInputData=null}],["click",function(e,t){jn(t,()=>{const n=Ve(),r=tr(Sn(t)),i=No();if(r){if(ve(n)){const o=n.anchor,l=o.getNode();o.type==="element"&&o.offset===0&&n.isCollapsed()&&!Mt(l)&&Dn().getChildrenSize()===1&&l.getTopLevelElementOrThrow().isEmpty()&&i!==null&&n.is(i)&&(r.removeAllRanges(),n.dirty=!0)}else if(e.pointerType==="touch"||e.pointerType==="pen"){const o=Yn(r,t._rootElement).anchorNode;(vt(o)||yr(o))&&dn(id(i,r,t,e))}}fe(t,FC,e)})}],["cut",Kr],["copy",Kr],["dragstart",Kr],["dragover",Kr],["dragend",Kr],["paste",Kr],["focus",Kr],["blur",Kr],["drop",Kr]];Nl&&ch.push(["beforeinput",(e,t)=>(function(n,r){const i=n.inputType;i==="deleteCompositionText"||ri&&a2(r)||i!=="insertCompositionText"&&jn(r,()=>{a5(n,r)||fe(r,ap,n)},{event:n})})(e,t)]);var uh=new WeakMap,Jc=new WeakMap,n8=i5(e=>(e.addEventListener("selectionchange",I0),()=>e.removeEventListener("selectionchange",I0)));function o5(e,t,n,r,i,o){const l=e.anchor,a=e.focus,c=l.getNode(),u=Ue();let d;if(o!==void 0)d=o;else{const _=tr(Sn(u));d=_!==null?Yn(_,u._rootElement):null}const f=d!==null?d.anchorNode:null,h=l.key,g=u.getElementByKey(h),p=n.length;return h!==a.key||!X(c)||(!i&&(!Nl||u._inputState.lastBeforeInputInsertTextTimeStamp<r+50)||c.isDirty()&&p<2||r2(n))&&l.offset!==a.offset&&!c.isComposing()||An(c)||c.isDirty()&&p>1||(i||!Nl)&&g!==null&&!c.isComposing()&&f!==Qr(c,g,u)||d!==null&&t!==null&&(!t.collapsed||t.startContainer!==d.anchorNode||t.startOffset!==d.anchorOffset)||!c.isComposing()&&(c.getFormat()!==e.format||c.getStyle()!==e.style)||(function(_,y){if(y.isSegmented())return!0;if(!_.isCollapsed())return!1;const v=_.anchor.offset,x=y.getParentOrThrow(),C=Di(y);return v===0?!y.canInsertTextBefore()||!x.canInsertTextBefore()&&!y.isComposing()||C||(function(b){const S=b.getPreviousSibling();return(X(S)||F(S)&&S.isInline())&&!S.canInsertTextAfter()})(y):v===y.getTextContentSize()&&(!y.canInsertTextAfter()||!x.canInsertTextAfter()&&!y.isComposing()||C)})(e,c)}s(o5,"Bn");function w0(e,t){return yr(e)&&e.nodeValue!==null&&t!==0&&t!==e.nodeValue.length}s(w0,"Rn");function k0(e,t,n){const{anchorNode:r,anchorOffset:i,focusNode:o,focusOffset:l}=Yn(e,t._rootElement),a=t._inputState;a.isSelectionChangeFromDOMUpdate&&(a.isSelectionChangeFromDOMUpdate=!1,w0(r,i)&&w0(o,l)&&!a.postDeleteSelectionToRestore)||jn(t,()=>{if(!n)return void dn(null);if(!xa(t,r,o))return;let c=Ve();if(a.postDeleteSelectionToRestore&&ve(c)&&c.isCollapsed()){const u=c.anchor,d=a.postDeleteSelectionToRestore.anchor;(u.key===d.key&&u.offset===d.offset+1||u.offset===1&&d.getNode().is(u.getNode().getPreviousSibling()))&&(c=a.postDeleteSelectionToRestore.clone(),dn(c))}if(a.postDeleteSelectionToRestore=null,ve(c)){const u=c.anchor,d=u.getNode();if(c.isCollapsed()){e.type==="Range"&&r===o&&(c.dirty=!0);const f=Sn(t).event,h=f?f.timeStamp:performance.now(),{format:g,style:p,offset:_,key:y,timeStamp:v}=a.collapsedSelectionFormat,x=Dn(),C=t.isComposing()===!1&&x.getTextContent()==="";if(h<v+200&&u.offset===_&&u.key===y)vc(c,g,p);else if(u.type==="text")X(d)||B(141),s5(c,d);else if(u.type==="element"&&!C){F(d)||B(259);const b=u.getNode();b.isEmpty()?(function(S,M){vc(S,M.getTextFormat(),M.getTextStyle())})(c,b):vc(c,c.format,"")}}else{const f=u.key,h=c.focus.key,g=c.getNodes(),p=g.length,_=c.isBackward(),y=_?l:i,v=_?i:l,x=_?h:f,C=_?f:h;let b=2047,S=!1;for(let M=0;M<p;M++){const T=g[M],E=T.getTextContentSize();if(X(T)&&E!==0&&!(M===0&&T.__key===x&&y===E||M===p-1&&T.__key===C&&v===0)&&(S=!0,b&=T.getFormat(),b===0))break}c.format=S?b:0}}fe(t,lp,void 0)})}s(k0,"Wn");function vc(e,t,n){e.format===t&&e.style===n||(e.format=t,e.style=n,e.dirty=!0)}s(vc,"Un");function s5(e,t){vc(e,t.getFormat(),t.getStyle())}s(s5,"$n");function l5(e){if(!e.getTargetRanges)return null;const t=e.getTargetRanges();return t.length===0?null:t[0]}s(l5,"Hn");function M0(e){const{lastKeyCode:t}=Ue()._inputState;if(e==null||e.length<=1||t==null)return;const n=t.length===1?t:t==="Enter"?`
5
5
  `:t==="Tab"?" ":null;if(!n)return;const r=Ve();if(!ve(r)||!r.isCollapsed())return;const i=r.anchor.getNode();if(!X(i))return;const{offset:o}=r.anchor;if(i.getTextContentSize()===o){const l=i.getNextSibling();if(n===`
@@ -1 +1 @@
1
- var pt=Object.defineProperty;var u=(e,a)=>pt(e,"name",{value:a,configurable:!0});import{i as ot}from"./rolldown-runtime-ZpX3ckPj.js";import{B as yt,Ia as bt,Ra as vt,St as K,ht as wt,mi as Ct,na as Q}from"./agent-avatar-url-eBzFMwFS.js";import{ct as jt,f as Mt,i as V,n as Nt,r as J,s as tt}from"./BreadcrumbContext-C-JqFdLZ.js";import{t as kt}from"./AgentAvatar-DySHTTwq.js";import{n as Pt,t as Dt}from"./useHiddenSettings-Uo-rfexH.js";import{t as Zt}from"./card-GbQ9sLu8.js";import{t as et}from"./EmptyState-fxPFhH-R.js";import{t as Tt}from"./PageSkeleton-iVZWoLsF.js";import{Ht as Yt,Rt as Et,dn as Xt,en as _t,hn as zt,un as rt}from"./index-st-IN4Gf.js";var o=ot(vt(),1),n=ot(bt(),1),N=200,R=100,_=32,$t=80,S=60,Rt=.2,St=2,L=6;function T(e){if(e.reports.length===0)return N;const a=e.reports.reduce((i,x)=>i+T(x),0),d=(e.reports.length-1)*_;return Math.max(N,a+d)}u(T,"subtreeWidth");function at(e,a,d){const i=T(e),x=[];if(e.reports.length>0){const C=e.reports.reduce((k,P)=>k+T(P),0),W=(e.reports.length-1)*_;let j=a+(i-C-W)/2;for(const k of e.reports){const P=T(k);x.push(at(k,j,d+R+$t)),j+=P+_}}return{id:e.id,name:e.name,role:e.role,status:e.status,x:a+(i-N)/2,y:d,children:x}}u(at,"layoutTree");function Wt(e){if(e.length===0)return[];e.reduce((x,C)=>x+T(C),0),(e.length-1)*_;let a=S;const d=S,i=[];for(const x of e){const C=T(x);i.push(at(x,a,d)),a+=C+_}return i}u(Wt,"layoutForest");function Ht(e){const a=[];function d(i){a.push(i),i.children.forEach(d)}return u(d,"walk"),e.forEach(d),a}u(Ht,"flattenLayout");function Lt(e){const a=[];function d(i){for(const x of i.children)a.push({parent:i,child:x}),d(x)}return u(d,"walk"),e.forEach(d),a}u(Lt,"collectEdges");function A(e){return Math.min(Math.max(e,Rt),St)}u(A,"clampZoom");function At(e){return{x:e.clientX,y:e.clientY}}u(At,"touchPoint");function nt(e,a){const d=e.clientX-a.clientX,i=e.clientY-a.clientY;return Math.hypot(d,i)}u(nt,"touchDistance");function st(e,a,d){const i=d.getBoundingClientRect();return{x:(e.clientX+a.clientX)/2-i.left,y:(e.clientY+a.clientY)/2-i.top}}u(st,"touchCenter");var Ot={running:"var(--hex-22d3ee)",active:"var(--hex-4ade80)",paused:"var(--hex-facc15)",idle:"var(--hex-facc15)",error:"var(--hex-f87171)",terminated:"var(--hex-a3a3a3)"},Bt="var(--hex-a3a3a3)";function ne(){const{selectedCompanyId:e}=wt(),{setBreadcrumbs:a}=Nt(),d=Mt(),i=!!Yt(),{hidden:x}=Dt(),C=!i&&!x.has("company.import"),W=!x.has("company.export"),{data:j,isLoading:k}=Q({queryKey:K.org(e),queryFn:u(()=>J.org(e),"queryFn"),enabled:!!e}),{data:P}=Q({queryKey:K.agents.list(e),queryFn:u(()=>J.list(e),"queryFn"),enabled:!!e}),ct=(0,o.useMemo)(()=>{const t=new Map;for(const r of P??[])t.set(r.id,r);return t},[P]);(0,o.useEffect)(()=>{a([{label:"Org Chart"}])},[a]);const z=(0,o.useMemo)(()=>Wt(j??[]),[j]),D=(0,o.useMemo)(()=>Ht(z),[z]),it=(0,o.useMemo)(()=>Lt(z),[z]),v=(0,o.useMemo)(()=>{if(D.length===0)return{width:800,height:600};let t=0,r=0;for(const s of D)t=Math.max(t,s.x+N),r=Math.max(r,s.y+R);return{width:t+S,height:r+S}},[D]),p=(0,o.useRef)(null),[l,M]=(0,o.useState)({x:0,y:0}),[h,Y]=(0,o.useState)(1),[H,O]=(0,o.useState)(!1),E=(0,o.useRef)({x:0,y:0,panX:0,panY:0}),m=(0,o.useRef)({mode:null,startPoint:{x:0,y:0},startPan:{x:0,y:0},startZoom:1,startDistance:0,startCenter:{x:0,y:0},moved:!1}),$=(0,o.useRef)(!1),Z=(0,o.useRef)(null);(0,o.useEffect)(()=>()=>{Z.current!==null&&window.clearTimeout(Z.current)},[]);const B=(0,o.useRef)(!1);(0,o.useEffect)(()=>{if(B.current||D.length===0||!p.current)return;B.current=!0;const t=p.current,r=t.clientWidth,s=t.clientHeight,c=(r-40)/v.width,f=(s-40)/v.height,g=Math.min(c,f,1),y=v.width*g,w=v.height*g;Y(g),M({x:(r-y)/2,y:(s-w)/2})},[D,v]);const lt=(0,o.useCallback)(t=>{t.button===0&&(t.target.closest("[data-org-card]")||(O(!0),E.current={x:t.clientX,y:t.clientY,panX:l.x,panY:l.y}))},[l]),ut=(0,o.useCallback)(t=>{if(!H)return;const r=t.clientX-E.current.x,s=t.clientY-E.current.y;M({x:E.current.panX+r,y:E.current.panY+s})},[H]),I=(0,o.useCallback)(()=>{O(!1)},[]),dt=(0,o.useCallback)(t=>{t.preventDefault();const r=p.current;if(!r)return;const s=r.getBoundingClientRect(),c=t.clientX-s.left,f=t.clientY-s.top,g=t.deltaY<0?1.1:.9,y=A(h*g),w=y/h;M({x:c-w*(c-l.x),y:f-w*(f-l.y)}),Y(y)},[h,l]),q=(0,o.useCallback)((t,r)=>{const s=A(t),c=s/h;M({x:r.x-c*(r.x-l.x),y:r.y-c*(r.y-l.y)}),Y(s)},[h,l]),ht=(0,o.useCallback)(()=>{if(!p.current)return;const t=p.current.clientWidth,r=p.current.clientHeight,s=(t-40)/v.width,c=(r-40)/v.height,f=Math.min(s,c,1),g=v.width*f,y=v.height*f;Y(f),M({x:(t-g)/2,y:(r-y)/2})},[v]),mt=(0,o.useCallback)(t=>{if(t.touches.length>=2&&p.current){const[s,c]=[t.touches[0],t.touches[1]];m.current={mode:"pinch",startPoint:{x:0,y:0},startPan:l,startZoom:h,startDistance:nt(s,c),startCenter:st(s,c,p.current),moved:!1};return}const r=t.touches[0];r&&(m.current={mode:"pan",startPoint:At(r),startPan:l,startZoom:h,startDistance:0,startCenter:{x:0,y:0},moved:!1})},[l,h]),xt=(0,o.useCallback)(t=>{const r=p.current;if(!r||!m.current.mode)return;if(t.touches.length>=2){const[g,y]=[t.touches[0],t.touches[1]],w=nt(g,y),X=st(g,y,r);if(m.current.mode!=="pinch"||m.current.startDistance===0){m.current={mode:"pinch",startPoint:{x:0,y:0},startPan:l,startZoom:h,startDistance:w,startCenter:X,moved:!1};return}const b=m.current,G=A(b.startZoom*(w/b.startDistance)),U=G/b.startZoom,ft=X.x-b.startCenter.x,gt=X.y-b.startCenter.y;b.moved=b.moved||Math.abs(w-b.startDistance)>L||Math.hypot(ft,gt)>L,Y(G),M({x:X.x-U*(b.startCenter.x-b.startPan.x),y:X.y-U*(b.startCenter.y-b.startPan.y)});return}const s=t.touches[0];if(!s||m.current.mode!=="pan")return;const c=s.clientX-m.current.startPoint.x,f=s.clientY-m.current.startPoint.y;m.current.moved=m.current.moved||Math.hypot(c,f)>L,M({x:m.current.startPan.x+c,y:m.current.startPan.y+f})},[l,h]),F=(0,o.useCallback)(()=>{m.current.moved&&($.current=!0,Z.current!==null&&window.clearTimeout(Z.current),Z.current=window.setTimeout(()=>{$.current=!1,Z.current=null},400)),m.current={mode:null,startPoint:{x:0,y:0},startPan:l,startZoom:h,startDistance:0,startCenter:{x:0,y:0},moved:!1}},[l,h]);return e?k?(0,n.jsx)(Tt,{variant:"org-chart"}):j&&j.length===0?(0,n.jsx)(et,{icon:rt,message:"No organizational hierarchy defined."}):(0,n.jsxs)("div",{className:"flex h-(--sz-calc-38) min-h-(--sz-420px) flex-col md:h-full md:min-h-0",children:[(0,n.jsxs)("div",{className:"mb-2 flex shrink-0 flex-wrap items-center justify-start gap-2",children:[C&&(0,n.jsx)(tt,{to:"/company/import",children:(0,n.jsxs)(V,{variant:"outline",size:"sm",children:[(0,n.jsx)(_t,{className:"mr-1.5 h-3.5 w-3.5"}),"Import company"]})}),W&&(0,n.jsx)(tt,{to:"/company/export",children:(0,n.jsxs)(V,{variant:"outline",size:"sm",children:[(0,n.jsx)(zt,{className:"mr-1.5 h-3.5 w-3.5"}),"Export company"]})})]}),(0,n.jsxs)("div",{ref:p,"data-testid":"org-chart-viewport",className:"w-full flex-1 min-h-0 overflow-hidden relative bg-muted/20 border border-border rounded-lg",style:{cursor:H?"grabbing":"grab",touchAction:"none",overscrollBehavior:"contain"},onMouseDown:lt,onMouseMove:ut,onMouseUp:I,onMouseLeave:I,onWheel:dt,onTouchStart:mt,onTouchMove:xt,onTouchEnd:F,onTouchCancel:F,children:[(0,n.jsxs)("div",{className:"absolute top-3 right-3 z-10 flex flex-col gap-1.5",children:[(0,n.jsx)("button",{className:"flex size-9 items-center justify-center rounded border border-border bg-background text-sm transition-colors hover:bg-accent sm:size-7",onClick:u(()=>{const t=p.current;t&&q(h*1.2,{x:t.clientWidth/2,y:t.clientHeight/2})},"onClick"),title:"Zoom in","aria-label":"Zoom in",children:(0,n.jsx)(jt,{className:"h-4 w-4 sm:h-3.5 sm:w-3.5"})}),(0,n.jsx)("button",{className:"flex size-9 items-center justify-center rounded border border-border bg-background text-sm transition-colors hover:bg-accent sm:size-7",onClick:u(()=>{const t=p.current;t&&q(h*.8,{x:t.clientWidth/2,y:t.clientHeight/2})},"onClick"),title:"Zoom out","aria-label":"Zoom out",children:(0,n.jsx)(Pt,{className:"h-4 w-4 sm:h-3.5 sm:w-3.5"})}),(0,n.jsx)("button",{className:"flex size-9 items-center justify-center rounded border border-border bg-background text-(length:--text-nano) transition-colors hover:bg-accent sm:size-7",onClick:ht,title:"Fit to screen","aria-label":"Fit chart to screen",children:(0,n.jsx)(Xt,{className:"h-4 w-4 sm:h-3.5 sm:w-3.5"})})]}),(0,n.jsx)("svg",{className:"absolute inset-0 pointer-events-none",style:{width:"100%",height:"100%"},children:(0,n.jsx)("g",{transform:`translate(${l.x}, ${l.y}) scale(${h})`,children:it.map(({parent:t,child:r})=>{const s=t.x+N/2,c=t.y+R,f=r.x+N/2,g=r.y,y=(c+g)/2;return(0,n.jsx)("path",{d:`M ${s} ${c} L ${s} ${y} L ${f} ${y} L ${f} ${g}`,fill:"none",stroke:"var(--border)",strokeWidth:1.5},`${t.id}-${r.id}`)})})}),(0,n.jsx)("div",{"data-testid":"org-chart-card-layer",className:"absolute inset-0",style:{transform:`translate(${l.x}px, ${l.y}px) scale(${h})`,transformOrigin:"0 0"},children:D.map(t=>{const r=ct.get(t.id),s=Ot[t.status]??Bt;return(0,n.jsx)(Zt,{"data-org-card":!0,className:"block absolute py-0 hover:shadow-md hover:border-foreground/20 transition-(--tp-box-shadow-border-color) duration-150 cursor-pointer select-none",style:{left:t.x,top:t.y,width:N,minHeight:R},onClick:u(()=>d(r?yt(r):`/agents/${t.id}`),"onClick"),onClickCapture:u(c=>{$.current&&($.current=!1,c.preventDefault(),c.stopPropagation())},"onClickCapture"),children:(0,n.jsxs)("div",{className:"flex items-center px-4 py-3 gap-3",children:[(0,n.jsxs)("div",{className:"relative shrink-0",children:[(0,n.jsx)("div",{className:"w-9 h-9 rounded-full bg-muted flex items-center justify-center",children:(0,n.jsx)(kt,{agent:r,size:16,className:"h-4.5 w-4.5 text-foreground/70"})}),(0,n.jsx)("span",{className:"absolute -bottom-0.5 -right-0.5 h-3 w-3 rounded-full border-2 border-card",style:{backgroundColor:s}})]}),(0,n.jsxs)("div",{className:"flex flex-col items-start min-w-0 flex-1",children:[(0,n.jsx)("span",{className:"text-sm font-semibold text-foreground leading-tight",children:t.name}),(0,n.jsx)("span",{className:"text-(length:--text-micro) text-muted-foreground leading-tight mt-0.5",children:r?.title??qt(t.role)}),r&&(0,n.jsx)("span",{className:"text-(length:--text-nano) text-muted-foreground/60 font-mono leading-tight mt-1",children:Et(r.adapterType)}),r&&r.capabilities&&(0,n.jsx)("span",{className:"text-(length:--text-nano) text-muted-foreground/80 leading-tight mt-1 line-clamp-2",children:r.capabilities})]})]})},t.id)})})]})]}):(0,n.jsx)(et,{icon:rt,message:"Select a company to view the org chart."})}u(ne,"OrgChart");var It=Ct;function qt(e){return It[e]??e}u(qt,"roleLabel");export{ne as OrgChart};
1
+ var pt=Object.defineProperty;var u=(e,a)=>pt(e,"name",{value:a,configurable:!0});import{i as ot}from"./rolldown-runtime-ZpX3ckPj.js";import{B as yt,Ia as bt,Ra as vt,St as K,ht as wt,mi as Ct,na as Q}from"./agent-avatar-url-CVV7dJ4l.js";import{ct as jt,f as Mt,i as V,n as Nt,r as J,s as tt}from"./BreadcrumbContext-k4_HOBKt.js";import{t as kt}from"./AgentAvatar-J8HJgoSh.js";import{n as Pt,t as Dt}from"./useHiddenSettings-gzjlybPM.js";import{t as Zt}from"./card-BA46vwjn.js";import{t as et}from"./EmptyState-NmkkuFFc.js";import{t as Tt}from"./PageSkeleton-Bk-YktL6.js";import{Ht as Yt,Rt as Et,dn as Xt,en as _t,hn as zt,un as rt}from"./index-jeBYC7ui.js";var o=ot(vt(),1),n=ot(bt(),1),N=200,R=100,_=32,$t=80,S=60,Rt=.2,St=2,L=6;function T(e){if(e.reports.length===0)return N;const a=e.reports.reduce((i,x)=>i+T(x),0),d=(e.reports.length-1)*_;return Math.max(N,a+d)}u(T,"subtreeWidth");function at(e,a,d){const i=T(e),x=[];if(e.reports.length>0){const C=e.reports.reduce((k,P)=>k+T(P),0),W=(e.reports.length-1)*_;let j=a+(i-C-W)/2;for(const k of e.reports){const P=T(k);x.push(at(k,j,d+R+$t)),j+=P+_}}return{id:e.id,name:e.name,role:e.role,status:e.status,x:a+(i-N)/2,y:d,children:x}}u(at,"layoutTree");function Wt(e){if(e.length===0)return[];e.reduce((x,C)=>x+T(C),0),(e.length-1)*_;let a=S;const d=S,i=[];for(const x of e){const C=T(x);i.push(at(x,a,d)),a+=C+_}return i}u(Wt,"layoutForest");function Ht(e){const a=[];function d(i){a.push(i),i.children.forEach(d)}return u(d,"walk"),e.forEach(d),a}u(Ht,"flattenLayout");function Lt(e){const a=[];function d(i){for(const x of i.children)a.push({parent:i,child:x}),d(x)}return u(d,"walk"),e.forEach(d),a}u(Lt,"collectEdges");function A(e){return Math.min(Math.max(e,Rt),St)}u(A,"clampZoom");function At(e){return{x:e.clientX,y:e.clientY}}u(At,"touchPoint");function nt(e,a){const d=e.clientX-a.clientX,i=e.clientY-a.clientY;return Math.hypot(d,i)}u(nt,"touchDistance");function st(e,a,d){const i=d.getBoundingClientRect();return{x:(e.clientX+a.clientX)/2-i.left,y:(e.clientY+a.clientY)/2-i.top}}u(st,"touchCenter");var Ot={running:"var(--hex-22d3ee)",active:"var(--hex-4ade80)",paused:"var(--hex-facc15)",idle:"var(--hex-facc15)",error:"var(--hex-f87171)",terminated:"var(--hex-a3a3a3)"},Bt="var(--hex-a3a3a3)";function ne(){const{selectedCompanyId:e}=wt(),{setBreadcrumbs:a}=Nt(),d=Mt(),i=!!Yt(),{hidden:x}=Dt(),C=!i&&!x.has("company.import"),W=!x.has("company.export"),{data:j,isLoading:k}=Q({queryKey:K.org(e),queryFn:u(()=>J.org(e),"queryFn"),enabled:!!e}),{data:P}=Q({queryKey:K.agents.list(e),queryFn:u(()=>J.list(e),"queryFn"),enabled:!!e}),ct=(0,o.useMemo)(()=>{const t=new Map;for(const r of P??[])t.set(r.id,r);return t},[P]);(0,o.useEffect)(()=>{a([{label:"Org Chart"}])},[a]);const z=(0,o.useMemo)(()=>Wt(j??[]),[j]),D=(0,o.useMemo)(()=>Ht(z),[z]),it=(0,o.useMemo)(()=>Lt(z),[z]),v=(0,o.useMemo)(()=>{if(D.length===0)return{width:800,height:600};let t=0,r=0;for(const s of D)t=Math.max(t,s.x+N),r=Math.max(r,s.y+R);return{width:t+S,height:r+S}},[D]),p=(0,o.useRef)(null),[l,M]=(0,o.useState)({x:0,y:0}),[h,Y]=(0,o.useState)(1),[H,O]=(0,o.useState)(!1),E=(0,o.useRef)({x:0,y:0,panX:0,panY:0}),m=(0,o.useRef)({mode:null,startPoint:{x:0,y:0},startPan:{x:0,y:0},startZoom:1,startDistance:0,startCenter:{x:0,y:0},moved:!1}),$=(0,o.useRef)(!1),Z=(0,o.useRef)(null);(0,o.useEffect)(()=>()=>{Z.current!==null&&window.clearTimeout(Z.current)},[]);const B=(0,o.useRef)(!1);(0,o.useEffect)(()=>{if(B.current||D.length===0||!p.current)return;B.current=!0;const t=p.current,r=t.clientWidth,s=t.clientHeight,c=(r-40)/v.width,f=(s-40)/v.height,g=Math.min(c,f,1),y=v.width*g,w=v.height*g;Y(g),M({x:(r-y)/2,y:(s-w)/2})},[D,v]);const lt=(0,o.useCallback)(t=>{t.button===0&&(t.target.closest("[data-org-card]")||(O(!0),E.current={x:t.clientX,y:t.clientY,panX:l.x,panY:l.y}))},[l]),ut=(0,o.useCallback)(t=>{if(!H)return;const r=t.clientX-E.current.x,s=t.clientY-E.current.y;M({x:E.current.panX+r,y:E.current.panY+s})},[H]),I=(0,o.useCallback)(()=>{O(!1)},[]),dt=(0,o.useCallback)(t=>{t.preventDefault();const r=p.current;if(!r)return;const s=r.getBoundingClientRect(),c=t.clientX-s.left,f=t.clientY-s.top,g=t.deltaY<0?1.1:.9,y=A(h*g),w=y/h;M({x:c-w*(c-l.x),y:f-w*(f-l.y)}),Y(y)},[h,l]),q=(0,o.useCallback)((t,r)=>{const s=A(t),c=s/h;M({x:r.x-c*(r.x-l.x),y:r.y-c*(r.y-l.y)}),Y(s)},[h,l]),ht=(0,o.useCallback)(()=>{if(!p.current)return;const t=p.current.clientWidth,r=p.current.clientHeight,s=(t-40)/v.width,c=(r-40)/v.height,f=Math.min(s,c,1),g=v.width*f,y=v.height*f;Y(f),M({x:(t-g)/2,y:(r-y)/2})},[v]),mt=(0,o.useCallback)(t=>{if(t.touches.length>=2&&p.current){const[s,c]=[t.touches[0],t.touches[1]];m.current={mode:"pinch",startPoint:{x:0,y:0},startPan:l,startZoom:h,startDistance:nt(s,c),startCenter:st(s,c,p.current),moved:!1};return}const r=t.touches[0];r&&(m.current={mode:"pan",startPoint:At(r),startPan:l,startZoom:h,startDistance:0,startCenter:{x:0,y:0},moved:!1})},[l,h]),xt=(0,o.useCallback)(t=>{const r=p.current;if(!r||!m.current.mode)return;if(t.touches.length>=2){const[g,y]=[t.touches[0],t.touches[1]],w=nt(g,y),X=st(g,y,r);if(m.current.mode!=="pinch"||m.current.startDistance===0){m.current={mode:"pinch",startPoint:{x:0,y:0},startPan:l,startZoom:h,startDistance:w,startCenter:X,moved:!1};return}const b=m.current,G=A(b.startZoom*(w/b.startDistance)),U=G/b.startZoom,ft=X.x-b.startCenter.x,gt=X.y-b.startCenter.y;b.moved=b.moved||Math.abs(w-b.startDistance)>L||Math.hypot(ft,gt)>L,Y(G),M({x:X.x-U*(b.startCenter.x-b.startPan.x),y:X.y-U*(b.startCenter.y-b.startPan.y)});return}const s=t.touches[0];if(!s||m.current.mode!=="pan")return;const c=s.clientX-m.current.startPoint.x,f=s.clientY-m.current.startPoint.y;m.current.moved=m.current.moved||Math.hypot(c,f)>L,M({x:m.current.startPan.x+c,y:m.current.startPan.y+f})},[l,h]),F=(0,o.useCallback)(()=>{m.current.moved&&($.current=!0,Z.current!==null&&window.clearTimeout(Z.current),Z.current=window.setTimeout(()=>{$.current=!1,Z.current=null},400)),m.current={mode:null,startPoint:{x:0,y:0},startPan:l,startZoom:h,startDistance:0,startCenter:{x:0,y:0},moved:!1}},[l,h]);return e?k?(0,n.jsx)(Tt,{variant:"org-chart"}):j&&j.length===0?(0,n.jsx)(et,{icon:rt,message:"No organizational hierarchy defined."}):(0,n.jsxs)("div",{className:"flex h-(--sz-calc-38) min-h-(--sz-420px) flex-col md:h-full md:min-h-0",children:[(0,n.jsxs)("div",{className:"mb-2 flex shrink-0 flex-wrap items-center justify-start gap-2",children:[C&&(0,n.jsx)(tt,{to:"/company/import",children:(0,n.jsxs)(V,{variant:"outline",size:"sm",children:[(0,n.jsx)(_t,{className:"mr-1.5 h-3.5 w-3.5"}),"Import company"]})}),W&&(0,n.jsx)(tt,{to:"/company/export",children:(0,n.jsxs)(V,{variant:"outline",size:"sm",children:[(0,n.jsx)(zt,{className:"mr-1.5 h-3.5 w-3.5"}),"Export company"]})})]}),(0,n.jsxs)("div",{ref:p,"data-testid":"org-chart-viewport",className:"w-full flex-1 min-h-0 overflow-hidden relative bg-muted/20 border border-border rounded-lg",style:{cursor:H?"grabbing":"grab",touchAction:"none",overscrollBehavior:"contain"},onMouseDown:lt,onMouseMove:ut,onMouseUp:I,onMouseLeave:I,onWheel:dt,onTouchStart:mt,onTouchMove:xt,onTouchEnd:F,onTouchCancel:F,children:[(0,n.jsxs)("div",{className:"absolute top-3 right-3 z-10 flex flex-col gap-1.5",children:[(0,n.jsx)("button",{className:"flex size-9 items-center justify-center rounded border border-border bg-background text-sm transition-colors hover:bg-accent sm:size-7",onClick:u(()=>{const t=p.current;t&&q(h*1.2,{x:t.clientWidth/2,y:t.clientHeight/2})},"onClick"),title:"Zoom in","aria-label":"Zoom in",children:(0,n.jsx)(jt,{className:"h-4 w-4 sm:h-3.5 sm:w-3.5"})}),(0,n.jsx)("button",{className:"flex size-9 items-center justify-center rounded border border-border bg-background text-sm transition-colors hover:bg-accent sm:size-7",onClick:u(()=>{const t=p.current;t&&q(h*.8,{x:t.clientWidth/2,y:t.clientHeight/2})},"onClick"),title:"Zoom out","aria-label":"Zoom out",children:(0,n.jsx)(Pt,{className:"h-4 w-4 sm:h-3.5 sm:w-3.5"})}),(0,n.jsx)("button",{className:"flex size-9 items-center justify-center rounded border border-border bg-background text-(length:--text-nano) transition-colors hover:bg-accent sm:size-7",onClick:ht,title:"Fit to screen","aria-label":"Fit chart to screen",children:(0,n.jsx)(Xt,{className:"h-4 w-4 sm:h-3.5 sm:w-3.5"})})]}),(0,n.jsx)("svg",{className:"absolute inset-0 pointer-events-none",style:{width:"100%",height:"100%"},children:(0,n.jsx)("g",{transform:`translate(${l.x}, ${l.y}) scale(${h})`,children:it.map(({parent:t,child:r})=>{const s=t.x+N/2,c=t.y+R,f=r.x+N/2,g=r.y,y=(c+g)/2;return(0,n.jsx)("path",{d:`M ${s} ${c} L ${s} ${y} L ${f} ${y} L ${f} ${g}`,fill:"none",stroke:"var(--border)",strokeWidth:1.5},`${t.id}-${r.id}`)})})}),(0,n.jsx)("div",{"data-testid":"org-chart-card-layer",className:"absolute inset-0",style:{transform:`translate(${l.x}px, ${l.y}px) scale(${h})`,transformOrigin:"0 0"},children:D.map(t=>{const r=ct.get(t.id),s=Ot[t.status]??Bt;return(0,n.jsx)(Zt,{"data-org-card":!0,className:"block absolute py-0 hover:shadow-md hover:border-foreground/20 transition-(--tp-box-shadow-border-color) duration-150 cursor-pointer select-none",style:{left:t.x,top:t.y,width:N,minHeight:R},onClick:u(()=>d(r?yt(r):`/agents/${t.id}`),"onClick"),onClickCapture:u(c=>{$.current&&($.current=!1,c.preventDefault(),c.stopPropagation())},"onClickCapture"),children:(0,n.jsxs)("div",{className:"flex items-center px-4 py-3 gap-3",children:[(0,n.jsxs)("div",{className:"relative shrink-0",children:[(0,n.jsx)("div",{className:"w-9 h-9 rounded-full bg-muted flex items-center justify-center",children:(0,n.jsx)(kt,{agent:r,size:16,className:"h-4.5 w-4.5 text-foreground/70"})}),(0,n.jsx)("span",{className:"absolute -bottom-0.5 -right-0.5 h-3 w-3 rounded-full border-2 border-card",style:{backgroundColor:s}})]}),(0,n.jsxs)("div",{className:"flex flex-col items-start min-w-0 flex-1",children:[(0,n.jsx)("span",{className:"text-sm font-semibold text-foreground leading-tight",children:t.name}),(0,n.jsx)("span",{className:"text-(length:--text-micro) text-muted-foreground leading-tight mt-0.5",children:r?.title??qt(t.role)}),r&&(0,n.jsx)("span",{className:"text-(length:--text-nano) text-muted-foreground/60 font-mono leading-tight mt-1",children:Et(r.adapterType)}),r&&r.capabilities&&(0,n.jsx)("span",{className:"text-(length:--text-nano) text-muted-foreground/80 leading-tight mt-1 line-clamp-2",children:r.capabilities})]})]})},t.id)})})]})]}):(0,n.jsx)(et,{icon:rt,message:"Select a company to view the org chart."})}u(ne,"OrgChart");var It=Ct;function qt(e){return It[e]??e}u(qt,"roleLabel");export{ne as OrgChart};
@@ -1 +1 @@
1
- var i=Object.defineProperty;var r=(l,c)=>i(l,"name",{value:c,configurable:!0});import{i as d}from"./rolldown-runtime-ZpX3ckPj.js";import{Ia as x}from"./agent-avatar-url-eBzFMwFS.js";import{t as e}from"./skeleton-BFMc3stE.js";var s=d(x(),1);function t({variant:l="list"}){return l==="dashboard"?(0,s.jsxs)("div",{className:"space-y-6",children:[(0,s.jsx)(e,{className:"h-32 w-full border border-border"}),(0,s.jsx)("div",{className:"grid grid-cols-2 gap-2 xl:grid-cols-4",children:Array.from({length:4}).map((c,a)=>(0,s.jsx)(e,{className:"h-24 w-full"},a))}),(0,s.jsx)("div",{className:"grid grid-cols-2 gap-4 lg:grid-cols-4",children:Array.from({length:4}).map((c,a)=>(0,s.jsx)(e,{className:"h-44 w-full"},a))}),(0,s.jsxs)("div",{className:"grid gap-4 md:grid-cols-2",children:[(0,s.jsx)(e,{className:"h-72 w-full"}),(0,s.jsx)(e,{className:"h-72 w-full"})]})]}):l==="approvals"?(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsx)("div",{className:"flex items-center justify-between",children:(0,s.jsx)(e,{className:"h-9 w-44"})}),(0,s.jsx)("div",{className:"grid gap-3",children:Array.from({length:3}).map((c,a)=>(0,s.jsx)(e,{className:"h-36 w-full"},a))})]}):l==="costs"?(0,s.jsxs)("div",{className:"space-y-6",children:[(0,s.jsx)("div",{className:"flex flex-wrap items-center gap-2",children:Array.from({length:6}).map((c,a)=>(0,s.jsx)(e,{className:"h-9 w-28"},a))}),(0,s.jsx)(e,{className:"h-40 w-full"}),(0,s.jsxs)("div",{className:"grid gap-4 md:grid-cols-2",children:[(0,s.jsx)(e,{className:"h-72 w-full"}),(0,s.jsx)(e,{className:"h-72 w-full"})]})]}):l==="inbox"?(0,s.jsxs)("div",{className:"space-y-6",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)(e,{className:"h-9 w-56"}),(0,s.jsx)(e,{className:"h-8 w-40"})]}),(0,s.jsx)("div",{className:"space-y-5",children:Array.from({length:3}).map((c,a)=>(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(e,{className:"h-4 w-40"}),(0,s.jsx)("div",{className:"space-y-1 border border-border",children:Array.from({length:3}).map((h,m)=>(0,s.jsx)(e,{className:"h-14 w-full rounded-none"},m))})]},a))})]}):l==="org-chart"?(0,s.jsx)("div",{className:"space-y-4",children:(0,s.jsx)(e,{className:"h-(--sz-calc-17) w-full rounded-lg border border-border"})}):l==="detail"?(0,s.jsxs)("div",{className:"space-y-6",children:[(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)(e,{className:"h-3 w-64"}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(e,{className:"h-6 w-6"}),(0,s.jsx)(e,{className:"h-6 w-6"}),(0,s.jsx)(e,{className:"h-7 w-48"})]}),(0,s.jsx)(e,{className:"h-4 w-40"})]}),(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)(e,{className:"h-10 w-full"}),(0,s.jsx)(e,{className:"h-32 w-full"})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(e,{className:"h-8 w-24"}),(0,s.jsx)(e,{className:"h-8 w-24"}),(0,s.jsx)(e,{className:"h-8 w-24"})]}),(0,s.jsx)(e,{className:"h-24 w-full"}),(0,s.jsx)(e,{className:"h-24 w-full"})]})]}):l==="issues-list"?(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[(0,s.jsx)(e,{className:"h-9 w-64"}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(e,{className:"h-8 w-16"}),(0,s.jsx)(e,{className:"h-8 w-16"}),(0,s.jsx)(e,{className:"h-8 w-16"}),(0,s.jsx)(e,{className:"h-8 w-24"})]})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(e,{className:"h-4 w-40"}),(0,s.jsx)("div",{className:"space-y-1",children:Array.from({length:8}).map((c,a)=>(0,s.jsx)(e,{className:"h-11 w-full rounded-none"},a))})]})]}):(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[(0,s.jsx)(e,{className:"h-9 w-44"}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(e,{className:"h-8 w-20"}),(0,s.jsx)(e,{className:"h-8 w-24"})]})]}),(0,s.jsx)("div",{className:"space-y-1",children:Array.from({length:7}).map((c,a)=>(0,s.jsx)(e,{className:"h-11 w-full rounded-none"},a))})]})}r(t,"PageSkeleton");export{t};
1
+ var i=Object.defineProperty;var r=(l,c)=>i(l,"name",{value:c,configurable:!0});import{i as d}from"./rolldown-runtime-ZpX3ckPj.js";import{Ia as x}from"./agent-avatar-url-CVV7dJ4l.js";import{t as e}from"./skeleton-C4VrwCAM.js";var s=d(x(),1);function t({variant:l="list"}){return l==="dashboard"?(0,s.jsxs)("div",{className:"space-y-6",children:[(0,s.jsx)(e,{className:"h-32 w-full border border-border"}),(0,s.jsx)("div",{className:"grid grid-cols-2 gap-2 xl:grid-cols-4",children:Array.from({length:4}).map((c,a)=>(0,s.jsx)(e,{className:"h-24 w-full"},a))}),(0,s.jsx)("div",{className:"grid grid-cols-2 gap-4 lg:grid-cols-4",children:Array.from({length:4}).map((c,a)=>(0,s.jsx)(e,{className:"h-44 w-full"},a))}),(0,s.jsxs)("div",{className:"grid gap-4 md:grid-cols-2",children:[(0,s.jsx)(e,{className:"h-72 w-full"}),(0,s.jsx)(e,{className:"h-72 w-full"})]})]}):l==="approvals"?(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsx)("div",{className:"flex items-center justify-between",children:(0,s.jsx)(e,{className:"h-9 w-44"})}),(0,s.jsx)("div",{className:"grid gap-3",children:Array.from({length:3}).map((c,a)=>(0,s.jsx)(e,{className:"h-36 w-full"},a))})]}):l==="costs"?(0,s.jsxs)("div",{className:"space-y-6",children:[(0,s.jsx)("div",{className:"flex flex-wrap items-center gap-2",children:Array.from({length:6}).map((c,a)=>(0,s.jsx)(e,{className:"h-9 w-28"},a))}),(0,s.jsx)(e,{className:"h-40 w-full"}),(0,s.jsxs)("div",{className:"grid gap-4 md:grid-cols-2",children:[(0,s.jsx)(e,{className:"h-72 w-full"}),(0,s.jsx)(e,{className:"h-72 w-full"})]})]}):l==="inbox"?(0,s.jsxs)("div",{className:"space-y-6",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)(e,{className:"h-9 w-56"}),(0,s.jsx)(e,{className:"h-8 w-40"})]}),(0,s.jsx)("div",{className:"space-y-5",children:Array.from({length:3}).map((c,a)=>(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(e,{className:"h-4 w-40"}),(0,s.jsx)("div",{className:"space-y-1 border border-border",children:Array.from({length:3}).map((h,m)=>(0,s.jsx)(e,{className:"h-14 w-full rounded-none"},m))})]},a))})]}):l==="org-chart"?(0,s.jsx)("div",{className:"space-y-4",children:(0,s.jsx)(e,{className:"h-(--sz-calc-17) w-full rounded-lg border border-border"})}):l==="detail"?(0,s.jsxs)("div",{className:"space-y-6",children:[(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)(e,{className:"h-3 w-64"}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(e,{className:"h-6 w-6"}),(0,s.jsx)(e,{className:"h-6 w-6"}),(0,s.jsx)(e,{className:"h-7 w-48"})]}),(0,s.jsx)(e,{className:"h-4 w-40"})]}),(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)(e,{className:"h-10 w-full"}),(0,s.jsx)(e,{className:"h-32 w-full"})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(e,{className:"h-8 w-24"}),(0,s.jsx)(e,{className:"h-8 w-24"}),(0,s.jsx)(e,{className:"h-8 w-24"})]}),(0,s.jsx)(e,{className:"h-24 w-full"}),(0,s.jsx)(e,{className:"h-24 w-full"})]})]}):l==="issues-list"?(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[(0,s.jsx)(e,{className:"h-9 w-64"}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(e,{className:"h-8 w-16"}),(0,s.jsx)(e,{className:"h-8 w-16"}),(0,s.jsx)(e,{className:"h-8 w-16"}),(0,s.jsx)(e,{className:"h-8 w-24"})]})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(e,{className:"h-4 w-40"}),(0,s.jsx)("div",{className:"space-y-1",children:Array.from({length:8}).map((c,a)=>(0,s.jsx)(e,{className:"h-11 w-full rounded-none"},a))})]})]}):(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[(0,s.jsx)(e,{className:"h-9 w-44"}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(e,{className:"h-8 w-20"}),(0,s.jsx)(e,{className:"h-8 w-24"})]})]}),(0,s.jsx)("div",{className:"space-y-1",children:Array.from({length:7}).map((c,a)=>(0,s.jsx)(e,{className:"h-11 w-full rounded-none"},a))})]})}r(t,"PageSkeleton");export{t};