@intent-hq/web 2.310.2 → 2.310.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/immutable/chunks/{B3u9yhMd.js → 1JT3Hvwn.js} +1 -1
- package/web/app/immutable/chunks/{B_u6ph9g.js → 3XXjzHG3.js} +1 -1
- package/web/app/immutable/chunks/{WKN7DEK1.js → 5lKAUCkv.js} +1 -1
- package/web/app/immutable/chunks/{7LPFBi2V.js → 5mT5QCH0.js} +2 -2
- package/web/app/immutable/chunks/{C64YVcCh.js → 9Pt4_UCK.js} +1 -1
- package/web/app/immutable/chunks/{_Q4NEhG2.js → AdEBgfMz.js} +1 -1
- package/web/app/immutable/chunks/{_sFm91KN.js → B-BihkPv.js} +4 -4
- package/web/app/immutable/chunks/{BUvLOETw.js → B31DSOXx.js} +1 -1
- package/web/app/immutable/chunks/{Dmv_LV6R.js → B6i2HXcd.js} +1 -1
- package/web/app/immutable/chunks/{CtDXgUYh.js → B72MiU4f.js} +2 -2
- package/web/app/immutable/chunks/{BwThkZnv.js → B7hiL__h.js} +1 -1
- package/web/app/immutable/chunks/{D3ma4MWK.js → B939T8ee.js} +1 -1
- package/web/app/immutable/chunks/{CYTBw0CY.js → BAFIBxJn.js} +1 -1
- package/web/app/immutable/chunks/{B6ACa1PM.js → BHfh0Z1C.js} +1 -1
- package/web/app/immutable/chunks/{Dr_BXnmT.js → BI8wduE-.js} +1 -1
- package/web/app/immutable/chunks/{JvGvDA7z.js → BIU8-rPj.js} +1 -1
- package/web/app/immutable/chunks/{CkactGV1.js → BIiORJal.js} +4 -4
- package/web/app/immutable/chunks/{BRp0P9cF.js → BJKiZYvw.js} +1 -1
- package/web/app/immutable/chunks/{le8iLKoG.js → BNFZ_TXS.js} +1 -1
- package/web/app/immutable/chunks/{189zCzpy.js → BNXdIr_O.js} +1 -1
- package/web/app/immutable/chunks/{C7ldC6zu.js → BNsTgNha.js} +1 -1
- package/web/app/immutable/chunks/{BgjzIHmr.js → BPO8n77e.js} +2 -2
- package/web/app/immutable/chunks/{BS3KKa6i.js → BR2WgFAY.js} +1 -1
- package/web/app/immutable/chunks/{CQK97B3l.js → BRD3o4b9.js} +1 -1
- package/web/app/immutable/chunks/{D5mZ2XGM.js → BTjbZv4v.js} +1 -1
- package/web/app/immutable/chunks/{Dyv7eW7r.js → BVaDxTbw.js} +1 -1
- package/web/app/immutable/chunks/{hJG5qV93.js → BXYHRMR5.js} +1 -1
- package/web/app/immutable/chunks/{O86272iX.js → BZC0V7Vm.js} +2 -2
- package/web/app/immutable/chunks/{DR3ukAe9.js → BZCsjPbo.js} +2 -2
- package/web/app/immutable/chunks/{Dvt2xumc.js → BdmhOhOr.js} +1 -1
- package/web/app/immutable/chunks/{CDmxeAFz.js → BhEmEnro.js} +1 -1
- package/web/app/immutable/chunks/{Bz2AaX7v.js → BlOiaItm.js} +1 -1
- package/web/app/immutable/chunks/{B_CxKeY9.js → BoADm99c.js} +1 -1
- package/web/app/immutable/chunks/{CpQksukT.js → BqgH4F9Q.js} +1 -1
- package/web/app/immutable/chunks/{C2FKcF8a.js → BrrIbgjH.js} +1 -1
- package/web/app/immutable/chunks/{YuniekLU.js → BttTHeg3.js} +2 -2
- package/web/app/immutable/chunks/{Bdj20t_M.js → BwF5HhIs.js} +1 -1
- package/web/app/immutable/chunks/{DPADHNob.js → Bx1ulVFG.js} +1 -1
- package/web/app/immutable/chunks/{9Ax53qRD.js → BxV9jjnn.js} +1 -1
- package/web/app/immutable/chunks/{C5bjHjx4.js → C1CC06Ey.js} +1 -1
- package/web/app/immutable/chunks/{D3p4HGPq.js → C501DddF.js} +1 -1
- package/web/app/immutable/chunks/{ey5Fwige.js → C5AqVWW_.js} +1 -1
- package/web/app/immutable/chunks/{yGxUPrAb.js → C5G0q6V9.js} +3 -3
- package/web/app/immutable/chunks/{yEkT96At.js → C5egmBj1.js} +1 -1
- package/web/app/immutable/chunks/{6XLvYn_R.js → C6Gqnk62.js} +1 -1
- package/web/app/immutable/chunks/{9U2m-KE4.js → C8qwdo8h.js} +1 -1
- package/web/app/immutable/chunks/{mCGfnSaU.js → CAiJGbLo.js} +1 -1
- package/web/app/immutable/chunks/{mNrkfPcL.js → CF7FcFf9.js} +1 -1
- package/web/app/immutable/chunks/{O55LMojB.js → CGnNcckt.js} +1 -1
- package/web/app/immutable/chunks/{CAt8c0ls.js → CHJhHJ8c.js} +1 -1
- package/web/app/immutable/chunks/{JFNcUgqI.js → CK49eRBK.js} +1 -1
- package/web/app/immutable/chunks/{D3in5AGo.js → CMbRA5qt.js} +1 -1
- package/web/app/immutable/chunks/{d9OF_ecy.js → CNC6BMwU.js} +1 -1
- package/web/app/immutable/chunks/{PW60rHG1.js → CPIehcPz.js} +1 -1
- package/web/app/immutable/chunks/{CnfDI0G9.js → CR2tijk0.js} +1 -1
- package/web/app/immutable/chunks/{IIWxUL8F.js → CR_mHSu4.js} +1 -1
- package/web/app/immutable/chunks/{DE1vhlzN.js → CSxLglEe.js} +1 -1
- package/web/app/immutable/chunks/{CLyqqizl.js → CUzjOAua.js} +1 -1
- package/web/app/immutable/chunks/{M5rEGvXZ.js → CVH8gLyV.js} +1 -1
- package/web/app/immutable/chunks/{CC-vc0Sh.js → CVmHwhPc.js} +2 -2
- package/web/app/immutable/chunks/{B1wLVJWc.js → CYjqtZFX.js} +1 -1
- package/web/app/immutable/chunks/{jfltPaLX.js → CYpaiDaV.js} +1 -1
- package/web/app/immutable/chunks/{tzNFwvLY.js → CaBSUvc-.js} +1 -1
- package/web/app/immutable/chunks/{VmPClZ6P.js → CkwlIwj7.js} +1 -1
- package/web/app/immutable/chunks/{DMfS3QUv.js → CmaYPN9s.js} +1 -1
- package/web/app/immutable/chunks/{DzDnAGVP.js → CmqlgQan.js} +1 -1
- package/web/app/immutable/chunks/{CrX2GQl1.js → CoW30tTg.js} +1 -1
- package/web/app/immutable/chunks/{l0v05b1J.js → CqR3T6Kd.js} +3 -3
- package/web/app/immutable/chunks/{C2ypXh8V.js → CrR4jweF.js} +1 -1
- package/web/app/immutable/chunks/{DQNwUygY.js → CrWQjKj_.js} +3 -3
- package/web/app/immutable/chunks/{B1zCpBoo.js → CroKe-wc.js} +1 -1
- package/web/app/immutable/chunks/{Dhhgf7-r.js → CsQkh7b3.js} +1 -1
- package/web/app/immutable/chunks/{Dk4znOdW.js → CvCSRZBy.js} +1 -1
- package/web/app/immutable/chunks/{B3NZDdp-.js → CvOoeN0T.js} +1 -1
- package/web/app/immutable/chunks/{DPcySxOl.js → CxJcdmSd.js} +1 -1
- package/web/app/immutable/chunks/{DjaKy3j_.js → D-0ZUYIk.js} +1 -1
- package/web/app/immutable/chunks/{Dr28se2A.js → D-4XO7pN.js} +2 -2
- package/web/app/immutable/chunks/{CvEzUeZj.js → D4qyaNt3.js} +1 -1
- package/web/app/immutable/chunks/{BzqKIdEP.js → D4z4ooVN.js} +1 -1
- package/web/app/immutable/chunks/{UzQ5fjmd.js → DAg5pMRd.js} +1 -1
- package/web/app/immutable/chunks/{CZLMJ41d.js → DCuJDyNf.js} +1 -1
- package/web/app/immutable/chunks/{CoiqgZqV.js → DI608D-i.js} +1 -1
- package/web/app/immutable/chunks/{BGOzArFr.js → DIiJKmmV.js} +1 -1
- package/web/app/immutable/chunks/{BhFdeIZl.js → DJ1cdtAZ.js} +1 -1
- package/web/app/immutable/chunks/{D2XAsGw-.js → DKr5x03c.js} +1 -1
- package/web/app/immutable/chunks/{IjQ_akx8.js → DL-yibpy.js} +1 -1
- package/web/app/immutable/chunks/{DI-WSiIl.js → DNlvdlMF.js} +1 -1
- package/web/app/immutable/chunks/{COBtdbv4.js → DPXd3fU6.js} +1 -1
- package/web/app/immutable/chunks/{BcGA_XKM.js → DR0NE2_C.js} +1 -1
- package/web/app/immutable/chunks/{CiBABzvX.js → DTCRTrPV.js} +1 -1
- package/web/app/immutable/chunks/{CeVWos-t.js → DTj6_2dz.js} +1 -1
- package/web/app/immutable/chunks/{COZ8XMYr.js → DXMKw2so.js} +1 -1
- package/web/app/immutable/chunks/{DxHqMweQ.js → DYZ36vW7.js} +1 -1
- package/web/app/immutable/chunks/{BHMk19Fd.js → DeYZGX2s.js} +1 -1
- package/web/app/immutable/chunks/{C7xfOFNZ.js → Df6f-k6w.js} +1 -1
- package/web/app/immutable/chunks/{DW02E8JU.js → Dgaq6o9Y.js} +1 -1
- package/web/app/immutable/chunks/{BjS3bCVA.js → Dkq5Coq_.js} +1 -1
- package/web/app/immutable/chunks/{CO5Qz17e.js → DmX5G2mi.js} +1 -1
- package/web/app/immutable/chunks/Dmhbab3K.js +12 -0
- package/web/app/immutable/chunks/{gq2RHuUM.js → Dp1Yxyun.js} +1 -1
- package/web/app/immutable/chunks/{Bl1SUWQK.js → DrZyb3e_.js} +1 -1
- package/web/app/immutable/chunks/{CLUug_7o.js → DsgnOGWk.js} +1 -1
- package/web/app/immutable/chunks/{LXPDKlyI.js → DxdqGRL1.js} +1 -1
- package/web/app/immutable/chunks/{DTpCNXVX.js → DzUxh_ps.js} +1 -1
- package/web/app/immutable/chunks/{D57k4GEE.js → ENpFvA2b.js} +5 -5
- package/web/app/immutable/chunks/{BGSgFd0R.js → F27tZ3Lo.js} +1 -1
- package/web/app/immutable/chunks/{B2-LFLJm.js → IeOyBdV1.js} +1 -1
- package/web/app/immutable/chunks/{DMmGJ3th.js → NtwUb2T_.js} +1 -1
- package/web/app/immutable/chunks/{C7-VQsLR.js → PtwmLAp4.js} +1 -1
- package/web/app/immutable/chunks/{Dl1xcl6N.js → WU_Tlex0.js} +1 -1
- package/web/app/immutable/chunks/{cF0DaKkd.js → _e7d73p6.js} +1 -1
- package/web/app/immutable/chunks/{C-27EQSK.js → ckbdI_sO.js} +6 -6
- package/web/app/immutable/chunks/{BfVF2I5Q.js → eVx-WSd7.js} +1 -1
- package/web/app/immutable/chunks/{CxP8jrn2.js → flwRPGfq.js} +1 -1
- package/web/app/immutable/chunks/{B7VxeONz.js → iCXhZwLL.js} +1 -1
- package/web/app/immutable/chunks/{BU1SD4F5.js → iU779rtf.js} +1 -1
- package/web/app/immutable/chunks/{CepoDpYW.js → lH4z0y-c.js} +1 -1
- package/web/app/immutable/chunks/{B_F8B07u.js → nRjRQ-e8.js} +1 -1
- package/web/app/immutable/chunks/{BbajLcMi.js → p-l1WyaF.js} +1 -1
- package/web/app/immutable/chunks/{B08PB3d6.js → r8JiSeiY.js} +1 -1
- package/web/app/immutable/chunks/{DRKyy5zo.js → uI2-sxxt.js} +1 -1
- package/web/app/immutable/chunks/{9Al7uANH.js → uK-hZG4d.js} +1 -1
- package/web/app/immutable/chunks/{BSN7-Qxa.js → v3BNQvm3.js} +4 -4
- package/web/app/immutable/chunks/{CZqaUHhn.js → v5CNLLlH.js} +1 -1
- package/web/app/immutable/chunks/{BtFywNMt.js → wUteoXUE.js} +1 -1
- package/web/app/immutable/chunks/{xL2Hl8pt.js → x5DAOZ-l.js} +1 -1
- package/web/app/immutable/entry/{app.CWgSMPHo.js → app.9TYubmA2.js} +2 -2
- package/web/app/immutable/entry/start.DzrqTCos.js +1 -0
- package/web/app/immutable/nodes/{0.DsHcmAxw.js → 0.CwEPgBsQ.js} +1 -1
- package/web/app/immutable/nodes/{1.CkY-7ake.js → 1.DWK38N4h.js} +1 -1
- package/web/app/immutable/nodes/{10.CdTsXOpX.js → 10.DaUeIEdW.js} +1 -1
- package/web/app/immutable/nodes/{14.juvATfIp.js → 14.2lmprMDP.js} +1 -1
- package/web/app/immutable/nodes/{16.DuXLhJX1.js → 16.COW42S3C.js} +2 -2
- package/web/app/immutable/nodes/{2.DL0H4Ehj.js → 2.SI3oSw-U.js} +3 -3
- package/web/app/immutable/nodes/{3.CsarMzm8.js → 3.BdAb9qv8.js} +1 -1
- package/web/app/immutable/nodes/{4.DOKXGcKD.js → 4.BPPplmHC.js} +1 -1
- package/web/app/immutable/nodes/{5.5nmYhZgy.js → 5.mnYZAvZj.js} +1 -1
- package/web/app/immutable/nodes/{6.BMO8vjvw.js → 6.DokpGs5-.js} +1 -1
- package/web/app/immutable/nodes/{7.Rmoc-ypk.js → 7.7huKB9rr.js} +1 -1
- package/web/app/immutable/nodes/{8.Dy5AT1iw.js → 8.Oo8AlOBc.js} +2 -2
- package/web/app/immutable/nodes/{9.Dtv2dSUT.js → 9.DkJDLBQi.js} +1 -1
- package/web/app/version.json +1 -1
- package/web/index.html +9 -9
- package/web/app/immutable/chunks/DbnaPZDp.js +0 -12
- package/web/app/immutable/entry/start.DRM4Ek1S.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var h1=Object.defineProperty;var d1=(t,e,r)=>e in t?h1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var se=(t,e,r)=>d1(t,typeof e!="symbol"?e+"":e,r);import{cA as Wt,aS as m1,dm as Ll,Z as z0,X as ya,Y as p1,W as f1,a0 as g1,aa as v1,S as b1,dO as y1,L as w1,b8 as Ol,cD as s0,dl as Pl,aR as k1,aV as x1,cl as S1,c7 as A1,dh as Ka,dI as T1,dB as E1,ax as Bn,ak as M1,as as Mi,dy as C1,dD as $l,dA as I1}from"./KQTrHxko.js";import{D as qs,bo as z1,bE as R1,aV as D1}from"./BRp0P9cF.js";import{K as N1,D as r0}from"./DCaHy20k.js";import{xK as pn,Hq as E,n6 as ve,n5 as Se,aQ as _1,g as Bl,y as Re,bi as o0,jL as Ci,lp as fn,an as Vt,lo as Fs,ly as Hs,lv as Us,ji as ql,gj as Ya,FX as L1,si as O1,z4 as P1,o9 as $1,mb as gn,AF as B1,ir as q1,lI as F1,lj as H1}from"./CRwmdgt6.js";import{bo as ne}from"./7rNOGHzs.js";import{t as rt}from"./DzMmhJrp.js";import{T as U1,x as xr,y as Sr}from"./yAjP_kdp.js";import{a as l0}from"./BJzHxIyr.js";import{o as me,r as Gt,e as c0,s as V,_ as Ke,l as u0,g as W1,n as Le,c as lr,b as He,u as G1,d as j1}from"./UyBYtOpv.js";import{j as Fl}from"./BlOn95cv.js";import{r as V1}from"./C_n9DeKj.js";import{b as X1}from"./CPQdU3ZA.js";import{i as je}from"./BkBdyRjM.js";import{l as wa,c as K1}from"./ChTqQfQN.js";import{ax as h0}from"./Bgegixo2.js";import{i as Ws}from"./D4jXWSLn.js";import{f as Ii,x as Hl,y as Ul,j as Y1,v as Wl,o as Z1,r as Q1}from"./CB-g50lR.js";const We=[];for(let t=0;t<256;++t)We.push((t+256).toString(16).slice(1));function J1(t,e=0){return(We[t[e+0]]+We[t[e+1]]+We[t[e+2]]+We[t[e+3]]+"-"+We[t[e+4]]+We[t[e+5]]+"-"+We[t[e+6]]+We[t[e+7]]+"-"+We[t[e+8]]+We[t[e+9]]+"-"+We[t[e+10]]+We[t[e+11]]+We[t[e+12]]+We[t[e+13]]+We[t[e+14]]+We[t[e+15]]).toLowerCase()}const eh=new Uint8Array(16);function th(){return crypto.getRandomValues(eh)}function zi(t,e,r){return crypto.randomUUID?crypto.randomUUID():rh(t)}function rh(t,e,r){t=t||{};const n=t.random??t.rng?.()??th();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=n[6]&15|64,n[8]=n[8]&63|128,J1(n)}function Ri(t,e){if(t.repositoryIdentity===null)return null;if(t.repositoryIdentity){const{provider:a,instanceBaseUrl:i,projectPath:s}=t.repositoryIdentity,o=Ri({...t,repositoryIdentity:void 0,githubUrl:`${i}/${s}`},a==="gitlab"?i:void 0);return o?.provider===a?o:null}const r=t.githubUrl;if(!r)return null;const n=/^(?:https:\/\/github\.com\/|git@github\.com:)([A-Za-z0-9_.-]+)\/([A-Za-z0-9_.-]+?)(?:\.git)?\/?$/i.exec(r);return n&&!n.slice(1).some(a=>a==="."||a==="..")?{provider:"github",instanceBaseUrl:"https://github.com",projectPath:`${n[1]}/${n[2]}`}:e?N1(r.replace(/\.git\/?$/,""),e):null}function y5(t,e){return t.type==="local"?t.plainFolder?"folder":"local":Ri(t,e)?.provider==="gitlab"?"gitlab":"github"}function Gl(t){const e=t.split(/[\\/]/).filter(Boolean);return e[e.length-1]??""}function w5(t){if(t.type!=="local")return{ownerPrefix:t.owner,primary:t.name};const e=Gl(t.path)||t.name,r=t.owner?`${t.owner}/${t.name}`:void 0;return{primary:e,suffix:r}}function k5(t){return t.type==="local"&&t.path?t.path:void 0}const nh=["/.clones/","/.repo-cache/"];function x5(t){const e=t.replaceAll("\\","/");return nh.some(r=>e.includes(r))}function S5(t){const e=new Set;for(const r of t){const{repositoryPath:n,worktreePath:a}=r;n&&a&&n===a&&e.add(n)}return e}function ah(t){return t.includes("\\")||t.includes(":")||t.startsWith("/")?void 0:/^([^/]+)\/[^/]+$/.exec(t)?.[1]}function A5(t,e){const{selectedValue:r,selectedRepoType:n,confirmedGithubUrl:a}=t;if(!(n!=="github"||!r)){if(a){const i=e(a)?.owner;if(i)return i}return e(r)?.owner??ah(r)}}function T5(t,e){const r=e.trim().toLowerCase();return r===""?!0:[t.name,t.path,Gl(t.path),t.owner,t.owner?`${t.owner}/${t.name}`:void 0].some(a=>a?.toLowerCase().includes(r)??!1)}const ih="known-repos",sh=6e4;function oh({saved:t,source:e,dismissed:r,mode:n}){if(!e)return[...t];const a=new Map;if(n==="all")for(const s of[...e.repos,...t]){const o=pn(s);a.has(o)||a.set(o,s)}else{for(const s of t)a.set(pn(s),s);for(const s of e.repos)a.set(pn(s),s)}const i=[...a.values()].filter(s=>!r[pn(s)]);return n==="all"?i:i.slice(0,9)}function E5(t){const e=t.lastUsedAt?Date.parse(t.lastUsedAt):NaN;return Number.isFinite(e)?e:0}function M5({visible:t,admission:e,entry:r,readyAt:n,now:a}){return!t||!e?"skip":!r||r.admission!==e?"load":r.status==="pending"?"reuse":r.status==="ready"&&n?.requestId===r.requestId&&a-n.at<sh?"skip":"load"}function C5(t,e){if(t.type==="local")return t.plainFolder?{repoPath:t.path,plainFolder:!0}:{repoPath:t.path};const r=Ri(t,e);return r?.provider==="gitlab"?{repositoryCheckoutDraft:{instanceBaseUrl:r.instanceBaseUrl,projectPath:r.projectPath}}:r?{githubUrl:`https://github.com/${r.projectPath}`,exactRemote:!0}:{githubUrl:t.githubUrl||`https://github.com/${t.path}`,exactRemote:!0}}function lh({compactFormState:t,lastSubmittedAgent:e,specialists:r,orchestratorId:n}){if(t?.isTeamMode??e?.isTeamMode??!1)return n;const i=o=>r.some(c=>c.id===o),s=t?.selectedSpecialist!==void 0?t.selectedSpecialist:e?.selectedSpecialist!==void 0?e.selectedSpecialist:i(qs)?qs:null;return s===null||!i(s)?null:s}const I5=E.createSelector(t=>t.workspaceInitializer.hydrated),z5=E.createSelector(t=>t.workspaceInitializer.compactFormState),R5=E.createSelector(t=>t.workspaceInitializer.onboardingFormState),D5=E.createSelector(t=>t.workspaceInitializer.lastSelectedRepo),N5=E.createSelector(t=>t.workspaceInitializer.branchByRepo),_5=E.createSelector(t=>t.workspaceInitializer.defaultParentPath),L5=E.createSelector(t=>ve(t.workspaceInitializer.recentRepos)),O5=E.createSelector((t,e)=>Se(t.workspaceInitializer.recentRepoRefreshes,e)),P5=E.createSelector((t,e)=>Se(t.workspaceInitializer.directoryStatusChecks,e)),$5=E.createSelector(t=>t.workspaceInitializer.dismissedRecentRepoKeys),B5=E.createSelector(t=>ve(t.workspaceInitializer.remoteSetups)),q5=E.createSelector(t=>t.workspaceInitializer.lastSubmittedAgent),F5=E.createSelector(t=>t.workspaceInitializer.agentByRepo),H5=E.createSelector(t=>t.workspaceInitializer.recentSpecialistIds),U5=E.createSelector((t,e)=>t.workspaceInitializer.agentByRepo[e]??null),W5=E.createSelector(t=>t.workspaceInitializer.pendingGitHubPrefill),G5=E.createSelector((t,e)=>({restore:Se(t.workspaceInitializer.draftRestores,e),clear:Se(t.workspaceInitializer.draftClears,e)})),j5=E.createSelector((t,e,r)=>{const n=Se(t.workspaceInitializer.initializationOutcomes,e);return n?.resourceId===r?n:void 0}),V5=E.createSelector((t,e)=>Se(t.workspaceInitializer.initializationOutcomes,e)),X5=E.createSelector((t,e)=>Se(t.workspaceInitializer.initializationResumes,e)),K5=E.createSelector(t=>lh({compactFormState:t.workspaceInitializer.compactFormState,lastSubmittedAgent:t.workspaceInitializer.lastSubmittedAgent,specialists:R1.select(t),orchestratorId:z1.select(t)?.id??null})),ch=E.createSelector(t=>{const e=t.workspaceInitializer.gitCheckRequest,r=Wt.select(t);return e&&r&&m1.select(t)?JSON.stringify([r,e]):null}),Y5=E.createSelector(t=>{const e=ch.select(t),r=t.workspaceInitializer.gitCheck;return e&&r?.context===e?r.available:null}),uh=E.createSelector(t=>{const e=Se(t.workspaceInitializer.recentRepoRefreshes,ih),r=Wt.select(t);return oh({saved:ve(t.workspaceInitializer.recentRepos),source:e&&r&&e.admission===r?e:null,dismissed:t.workspaceInitializer.dismissedRecentRepoKeys,mode:"all"})}),Z5=E.createSelector(t=>Ll.select(t)?uh.select(t):[]),Q5=E.createSelector(t=>D1.select(t)||void 0),Gs="workspace-debug-flags",vn={enableCreationAnimation:!0,animationDuration:300,enablePageTransitions:!0,enableComponentTransitions:!0,showDebugInfo:!1,showPerformanceMetrics:!1,logStateChanges:!1,enableAutofocus:!0,enableBranchCaching:!0,enableFormPersistence:!0,simulateSlowNetwork:!1,simulateErrors:!1,networkDelay:0};class hh{constructor(){se(this,"flags");se(this,"listeners",new Set);this.flags=this.loadFlags()}loadFlags(){if(typeof localStorage>"u")return vn;try{const e=localStorage.getItem(Gs);if(e)return{...vn,...JSON.parse(e)}}catch(e){wa.error("Failed to load debug flags:",e)}return vn}saveFlags(){if(!(typeof localStorage>"u")){try{localStorage.setItem(Gs,JSON.stringify(this.flags))}catch(e){wa.error("Failed to save debug flags:",e)}this.listeners.forEach(e=>e(this.flags))}}get(e){return this.flags[e]}set(e,r){this.flags[e]=r,this.saveFlags()}toggle(e){typeof this.flags[e]=="boolean"&&(this.flags[e]=!this.flags[e],this.saveFlags())}reset(){this.flags={...vn},this.saveFlags()}getAll(){return{...this.flags}}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}toggleDebugPanel(){this.toggle("showDebugInfo"),wa.info("Debug panel:",this.flags.showDebugInfo?"ON":"OFF")}async simulateDelay(e){return this.flags.simulateSlowNetwork&&this.flags.networkDelay>0&&await new Promise(r=>setTimeout(r,this.flags.networkDelay)),e}}const ka=new hh;function J5(t){if(!t)return"";let e=t;return e=e.replace(/\*\*(.+?)\*\*/g,"$1"),e=e.replace(/__(.+?)__/g,"$1"),e=e.replace(/(?<!\*)\*(?!\*)(.+?)(?<!\*)\*(?!\*)/g,"$1"),e=e.replace(/(?<!_)_(?!_)(.+?)(?<!_)_(?!_)/g,"$1"),e=e.replace(/~~(.+?)~~/g,"$1"),e=e.replace(/`([^`]+)`/g,"$1"),e=e.replace(/\[([^\]]+)\]\([^)]+\)/g,"$1"),e=e.replace(/^#{1,6}\s+/gm,""),e=e.replace(/^\*+\s*/gm,""),e=e.replace(/\s*\*+$/gm,""),e.trim()}function dh(t){return t.charAt(0).toUpperCase()+t.slice(1)}function e3(t){if(!t||t.trim().length===0)return ne.workspace_sidebarHeader_branchEmpty_error();if(/[\s~^:\\?*\[\\]/.test(t))return ne.workspace_sidebarHeader_branchInvalidChars_error();if(t.includes("@{"))return ne.workspace_sidebarChanges_branchAtBrace_error({seq:"@{"});if(t==="@")return ne.workspace_sidebarChanges_branchAt_error({symbol:"@"});if(t.startsWith("."))return ne.workspace_sidebarHeader_branchStartsDot_error();if(t.endsWith(".lock"))return ne.workspace_sidebarHeader_branchEndsLock_error();if(t.includes(".."))return ne.workspace_sidebarHeader_branchDoubleDot_error();if(t.startsWith("/")||t.endsWith("/"))return ne.workspace_sidebarHeader_branchSlashEnds_error();if(t.includes("//"))return ne.workspace_sidebarHeader_branchDoubleSlash_error();if(t.startsWith("-"))return ne.workspace_sidebarHeader_branchStartsDash_error();if(t.endsWith("."))return ne.workspace_sidebarChanges_branchEndsPeriod_error();const e=t.split("/");for(const r of e){if(r.startsWith("."))return ne.workspace_sidebarChanges_branchComponentStartsDot_error();if(r.endsWith(".lock"))return ne.workspace_sidebarChanges_branchComponentEndsLock_error()}if(t.length>250)return ne.workspace_sidebarHeader_branchTooLong_error()}function t3(t,e,r,n){return e&&r?`https://github.com/${e}/${r}/pull/${t}`:n||""}function Za(t){return t==="Open"?"open":t==="Merged"?"merged":t==="Draft"?"draft":"closed"}function r3(t,e){return`${e}:${t.agentId??"manual"}`}function mh(t,e){if(t.length===0||e>=t.length)return 0;const r=Math.max(0,e);let n=0;for(let a=r;a<t.length;a++)t[a].isPushed||n++;return n}function ph(t,e){if(t.length===0||e<0)return 0;const r=Math.min(e,t.length-1);let n=0;for(let a=0;a<=r;a++)t[a].isPushed&&n++;return n}function fh(t,e){if(t.length===0||e<0)return 0;const r=Math.min(e,t.length-1);let n=0;for(let a=0;a<=r;a++)t[a].isPushed||n++;return n}function n3(t,e,r,n){const a=mh(t,e),i=n?` (origin/${n})`:"";return r?a===1?ne.workspace_sidebarChanges_addToPr_one({suffix:i}):ne.workspace_sidebarChanges_addToPr_many({count:rt(a),suffix:i}):a===1?ne.workspace_sidebarChanges_pushToRemote_one({suffix:i}):ne.workspace_sidebarChanges_pushToRemote_many({count:rt(a),suffix:i})}function a3(t,e,r){const n=ph(t,e),a=r?` (origin/${r})`:"";return n===1?ne.workspace_sidebarChanges_undoPush_one({suffix:a}):ne.workspace_sidebarChanges_undoPush_many({count:rt(n),suffix:a})}function i3(t,e){const r=fh(t,e);return r===1?ne.workspace_sidebarChanges_undoCommit_one():ne.workspace_sidebarChanges_undoCommit_many({count:rt(r)})}function s3(t,e){return e===0&&t.length>0}function o3(t,e,r,n){return!r||n==null?!1:t===r&&e===n}function l3(t,e,r){const n=`${e?"staged":"unstaged"}:${t}`;return r.has(n)}function c3(t,e,r){return r?.path===t&&r?.staged===e}function u3(t){if(t.length===0)return[];const e=new Map,r=[...t].sort((n,a)=>n.timestamp-a.timestamp);for(const n of r)for(const a of n.files??[]){const i=e.get(a.path);i?e.set(a.path,{additions:i.additions+(a.additions||0),deletions:i.deletions+(a.deletions||0)}):e.set(a.path,{additions:a.additions||0,deletions:a.deletions||0})}return Array.from(e.entries()).map(([n,a])=>({path:n,additions:a.additions,deletions:a.deletions,staged:!1}))}function h3(t,e,r){const n=new Set;let a=0,i=0;for(const s of t)n.add(s.relativePath),a+=s.stats?.additions||0,i+=s.stats?.deletions||0;for(const s of e)n.add(s.relativePath),a+=s.stats?.additions||0,i+=s.stats?.deletions||0;for(const s of r)for(const o of s.files||[])n.add(o.path),a+=o.additions||0,i+=o.deletions||0;return{totalFilesChanged:n.size,totalAdditions:a,totalDeletions:i}}function gh(t){const e=t?.match(/^https?:\/\/github\.com\/([^/]+)\/([^/]+)\/pull\/\d+/i);return e?`${e[1]}/${e[2]}`:void 0}function d3(t,e,r,n,a){if(t&&t.length>0){const i=a?.split("/")[0];return t.map(s=>{const o=s.url||r(s.number),c=gh(s.url),h=c!==void 0&&c.toLowerCase()!==a?.toLowerCase()?c:void 0;return{number:s.number,title:n(s),url:o,htmlUrl:o,status:Za(s.status),createdAt:s.createdAt,updatedAt:s.updatedAt,isInMergeQueue:s.isDraft?void 0:s.isInMergeQueue,crossRepo:h,crossRepoDisplay:h?Di(h,i):void 0}})}return e?[{number:e.number,title:n(e),url:r(e.number,e.url),htmlUrl:r(e.number,e.url),status:Za(e.status),createdAt:e.createdAt,updatedAt:e.updatedAt,isInMergeQueue:e.isDraft?void 0:e.isInMergeQueue}]:[]}function m3(t){const{prNumber:e,prUrl:r}=t;return e==null||!r?null:{id:`legacy-pr-${e}`,number:e,url:r,title:"",status:t.prStatus??_1.Open,createdAt:t.updatedAt,updatedAt:t.updatedAt}}function vh(t){const e=t.lastSnapshot?.state?.toLowerCase();return e==="merged"?"merged":e==="closed"?"closed":t.lastSnapshot?.isDraft?"draft":t.state==="completed"?"closed":"open"}function xa(t,e,r){if(e.length===0)return t;const n=r?.split("/")[0],a=t.map(i=>({...i}));for(const i of e){const s=!i.resource&&!i.monitorAvailability&&(!r||i.repo===r),o=z0(i),c=o.toLowerCase(),h=a.find(m=>!!o&&m.url.toLowerCase()===c||(i.resource||i.monitorAvailability?m.monitorIdentity===ya(i):!m.resource&&!m.monitorAvailability&&(s?!m.crossRepo&&m.number===i.prNumber:m.crossRepo===i.repo&&m.number===i.prNumber)));if(h){h.monitorAgentId=i.agentId,h.resource=i.resource,h.monitorAvailability=i.monitorAvailability,h.monitorIdentity=i.resource||i.monitorAvailability?ya(i):void 0,h.monitorSnapshot=i.lastSnapshot??h.monitorSnapshot;continue}a.push({number:i.prNumber,title:i.title??`${i.repo}${p1(i,i.prNumber)}`,resource:i.resource,monitorAvailability:i.monitorAvailability,monitorIdentity:i.resource||i.monitorAvailability?ya(i):void 0,url:o,htmlUrl:o,status:vh(i),createdAt:i.createdAt,updatedAt:i.updatedAt,monitorAgentId:i.agentId,crossRepo:s?void 0:i.repo,crossRepoDisplay:s?void 0:Di(i.repo,n),monitorSnapshot:i.lastSnapshot,monitorOnly:!0})}return a}function Di(t,e){return e&&t.toLowerCase().startsWith(`${e.toLowerCase()}/`)?t.slice(e.length+1):t}function p3(t,e,r,n,a){const i=r?.toLowerCase(),s=new Set;for(const S of n)S.repoOwner&&S.repoName&&s.add(`${S.repoOwner}/${S.repoName}`.toLowerCase());let o=t;const c=[],h=[];if(t.some(S=>S.crossRepo)){o=[];for(const S of t)S.crossRepo?s.has(S.crossRepo.toLowerCase())?c.push(S):h.push(S):o.push(S)}const m=[],g=[],v=[];for(const S of e){const C=S.repo.toLowerCase();z0(S)&&o.some(W=>W.url===z0(S))||!S.resource&&!S.monitorAvailability&&(!i||C===i)?m.push(S):z0(S)&&c.some(W=>W.url===z0(S))||!S.resource&&!S.monitorAvailability&&s.has(C)?g.push(S):v.push(S)}const w=xa(o,m,r),A=r?.split("/")[0],M=new Set([...w,...c,...h].map(S=>`${(S.crossRepo??r??"").toLowerCase()}#${S.number}`)),D=[...c];for(const S of n){if(!S.repoOwner||!S.repoName)continue;const C=`${S.repoOwner}/${S.repoName}`;for(const W of S.pullRequests??[]){const Y=`${C.toLowerCase()}#${W.number}`;if(M.has(Y))continue;M.add(Y);const K=W.url||`https://github.com/${C}/pull/${W.number}`,T=i!==void 0&&C.toLowerCase()===i;D.push({number:W.number,title:a(W),url:K,htmlUrl:K,status:Za(W.status),createdAt:W.createdAt,updatedAt:W.updatedAt,crossRepo:T?void 0:C,crossRepoDisplay:T?void 0:Di(C,A)})}}return{own:w,otherRoots:xa(D,g,r),otherTracked:xa(h,v,r)}}function js(t){return t.status!=="open"?!1:t.monitorSnapshot?t.monitorSnapshot.isInMergeQueue===!0:t.isInMergeQueue===!0}function f3(t){const e=t.status==="merged"?ne.workspace_prSection_merged_label():t.status==="closed"?ne.workspace_prSection_closed_label():t.status==="draft"?ne.workspace_prSection_statusDraft_label():js(t)?ne.workspace_prSection_statusQueued_label():ne.workspace_prSection_statusOpen_label(),r=[f1(t)??e],n=js(t)?U1(t.monitorSnapshot?.mergeQueue):null;n&&r.push(n);const a=t.status==="merged"||t.status==="closed"?void 0:t.monitorSnapshot;return a&&(a.checks.total===null||a.checks.passed===null||a.checks.failed===null||a.checks.pending===null||a.availability&&a.availability.checks!=="available"?r.push(ne.chat_monitoredPrs_hover_checksUnknown_label()):a.checks.total>0&&r.push(ne.workspace_prSection_statusChecks_tooltip({passed:rt(a.checks.passed),failed:rt(a.checks.failed),pending:rt(a.checks.pending)})),r.push(a.approvals.have===null||a.availability&&a.availability.approvals!=="available"?ne.chat_monitoredPrs_hover_approvalsUnknown_label():a.approvals.needed!=null?ne.workspace_prSection_statusApprovalsOfNeeded_tooltip({count:rt(a.approvals.have),needed:rt(a.approvals.needed)}):ne.workspace_prSection_statusApprovals_tooltip({count:rt(a.approvals.have)})),a.approvals.changesRequested!==null&&a.approvals.changesRequested>0&&r.push(ne.workspace_prSection_statusChangesRequested_tooltip({count:rt(a.approvals.changesRequested)})),a.availability&&a.availability.discussions!=="available"?r.push(ne.workspace_prSection_statusUnresolvedThreadsUnknown_tooltip()):typeof a.threads.unresolved=="number"?a.threads.unresolved>0&&r.push(ne.workspace_prSection_statusUnresolvedThreads_tooltip({count:rt(a.threads.unresolved)})):a.threads.resolutionRequired&&r.push(ne.workspace_prSection_statusUnresolvedThreadsUnknown_tooltip()),a.mergeBlockedReason&&r.push(dh(a.mergeBlockedReason))),r.join(`
|
|
1
|
+
var h1=Object.defineProperty;var d1=(t,e,r)=>e in t?h1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var se=(t,e,r)=>d1(t,typeof e!="symbol"?e+"":e,r);import{cA as Wt,aS as m1,dm as Ll,Z as z0,X as ya,Y as p1,W as f1,a0 as g1,aa as v1,S as b1,dO as y1,L as w1,b8 as Ol,cD as s0,dl as Pl,aR as k1,aV as x1,cl as S1,c7 as A1,dh as Ka,dI as T1,dB as E1,ax as Bn,ak as M1,as as Mi,dy as C1,dD as $l,dA as I1}from"./KQTrHxko.js";import{D as qs,bo as z1,bE as R1,aV as D1}from"./BJKiZYvw.js";import{K as N1,D as r0}from"./DCaHy20k.js";import{xK as pn,Hq as E,n6 as ve,n5 as Se,aQ as _1,g as Bl,y as Re,bi as o0,jL as Ci,lp as fn,an as Vt,lo as Fs,ly as Hs,lv as Us,ji as ql,gj as Ya,FX as L1,si as O1,z4 as P1,o9 as $1,mb as gn,AF as B1,ir as q1,lI as F1,lj as H1}from"./CRwmdgt6.js";import{bo as ne}from"./7rNOGHzs.js";import{t as rt}from"./DzMmhJrp.js";import{T as U1,x as xr,y as Sr}from"./yAjP_kdp.js";import{a as l0}from"./BJzHxIyr.js";import{o as me,r as Gt,e as c0,s as V,_ as Ke,l as u0,g as W1,n as Le,c as lr,b as He,u as G1,d as j1}from"./UyBYtOpv.js";import{j as Fl}from"./BlOn95cv.js";import{r as V1}from"./C_n9DeKj.js";import{b as X1}from"./CPQdU3ZA.js";import{i as je}from"./BkBdyRjM.js";import{l as wa,c as K1}from"./ChTqQfQN.js";import{ax as h0}from"./Bgegixo2.js";import{i as Ws}from"./D4jXWSLn.js";import{f as Ii,x as Hl,y as Ul,j as Y1,v as Wl,o as Z1,r as Q1}from"./CB-g50lR.js";const We=[];for(let t=0;t<256;++t)We.push((t+256).toString(16).slice(1));function J1(t,e=0){return(We[t[e+0]]+We[t[e+1]]+We[t[e+2]]+We[t[e+3]]+"-"+We[t[e+4]]+We[t[e+5]]+"-"+We[t[e+6]]+We[t[e+7]]+"-"+We[t[e+8]]+We[t[e+9]]+"-"+We[t[e+10]]+We[t[e+11]]+We[t[e+12]]+We[t[e+13]]+We[t[e+14]]+We[t[e+15]]).toLowerCase()}const eh=new Uint8Array(16);function th(){return crypto.getRandomValues(eh)}function zi(t,e,r){return crypto.randomUUID?crypto.randomUUID():rh(t)}function rh(t,e,r){t=t||{};const n=t.random??t.rng?.()??th();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=n[6]&15|64,n[8]=n[8]&63|128,J1(n)}function Ri(t,e){if(t.repositoryIdentity===null)return null;if(t.repositoryIdentity){const{provider:a,instanceBaseUrl:i,projectPath:s}=t.repositoryIdentity,o=Ri({...t,repositoryIdentity:void 0,githubUrl:`${i}/${s}`},a==="gitlab"?i:void 0);return o?.provider===a?o:null}const r=t.githubUrl;if(!r)return null;const n=/^(?:https:\/\/github\.com\/|git@github\.com:)([A-Za-z0-9_.-]+)\/([A-Za-z0-9_.-]+?)(?:\.git)?\/?$/i.exec(r);return n&&!n.slice(1).some(a=>a==="."||a==="..")?{provider:"github",instanceBaseUrl:"https://github.com",projectPath:`${n[1]}/${n[2]}`}:e?N1(r.replace(/\.git\/?$/,""),e):null}function y5(t,e){return t.type==="local"?t.plainFolder?"folder":"local":Ri(t,e)?.provider==="gitlab"?"gitlab":"github"}function Gl(t){const e=t.split(/[\\/]/).filter(Boolean);return e[e.length-1]??""}function w5(t){if(t.type!=="local")return{ownerPrefix:t.owner,primary:t.name};const e=Gl(t.path)||t.name,r=t.owner?`${t.owner}/${t.name}`:void 0;return{primary:e,suffix:r}}function k5(t){return t.type==="local"&&t.path?t.path:void 0}const nh=["/.clones/","/.repo-cache/"];function x5(t){const e=t.replaceAll("\\","/");return nh.some(r=>e.includes(r))}function S5(t){const e=new Set;for(const r of t){const{repositoryPath:n,worktreePath:a}=r;n&&a&&n===a&&e.add(n)}return e}function ah(t){return t.includes("\\")||t.includes(":")||t.startsWith("/")?void 0:/^([^/]+)\/[^/]+$/.exec(t)?.[1]}function A5(t,e){const{selectedValue:r,selectedRepoType:n,confirmedGithubUrl:a}=t;if(!(n!=="github"||!r)){if(a){const i=e(a)?.owner;if(i)return i}return e(r)?.owner??ah(r)}}function T5(t,e){const r=e.trim().toLowerCase();return r===""?!0:[t.name,t.path,Gl(t.path),t.owner,t.owner?`${t.owner}/${t.name}`:void 0].some(a=>a?.toLowerCase().includes(r)??!1)}const ih="known-repos",sh=6e4;function oh({saved:t,source:e,dismissed:r,mode:n}){if(!e)return[...t];const a=new Map;if(n==="all")for(const s of[...e.repos,...t]){const o=pn(s);a.has(o)||a.set(o,s)}else{for(const s of t)a.set(pn(s),s);for(const s of e.repos)a.set(pn(s),s)}const i=[...a.values()].filter(s=>!r[pn(s)]);return n==="all"?i:i.slice(0,9)}function E5(t){const e=t.lastUsedAt?Date.parse(t.lastUsedAt):NaN;return Number.isFinite(e)?e:0}function M5({visible:t,admission:e,entry:r,readyAt:n,now:a}){return!t||!e?"skip":!r||r.admission!==e?"load":r.status==="pending"?"reuse":r.status==="ready"&&n?.requestId===r.requestId&&a-n.at<sh?"skip":"load"}function C5(t,e){if(t.type==="local")return t.plainFolder?{repoPath:t.path,plainFolder:!0}:{repoPath:t.path};const r=Ri(t,e);return r?.provider==="gitlab"?{repositoryCheckoutDraft:{instanceBaseUrl:r.instanceBaseUrl,projectPath:r.projectPath}}:r?{githubUrl:`https://github.com/${r.projectPath}`,exactRemote:!0}:{githubUrl:t.githubUrl||`https://github.com/${t.path}`,exactRemote:!0}}function lh({compactFormState:t,lastSubmittedAgent:e,specialists:r,orchestratorId:n}){if(t?.isTeamMode??e?.isTeamMode??!1)return n;const i=o=>r.some(c=>c.id===o),s=t?.selectedSpecialist!==void 0?t.selectedSpecialist:e?.selectedSpecialist!==void 0?e.selectedSpecialist:i(qs)?qs:null;return s===null||!i(s)?null:s}const I5=E.createSelector(t=>t.workspaceInitializer.hydrated),z5=E.createSelector(t=>t.workspaceInitializer.compactFormState),R5=E.createSelector(t=>t.workspaceInitializer.onboardingFormState),D5=E.createSelector(t=>t.workspaceInitializer.lastSelectedRepo),N5=E.createSelector(t=>t.workspaceInitializer.branchByRepo),_5=E.createSelector(t=>t.workspaceInitializer.defaultParentPath),L5=E.createSelector(t=>ve(t.workspaceInitializer.recentRepos)),O5=E.createSelector((t,e)=>Se(t.workspaceInitializer.recentRepoRefreshes,e)),P5=E.createSelector((t,e)=>Se(t.workspaceInitializer.directoryStatusChecks,e)),$5=E.createSelector(t=>t.workspaceInitializer.dismissedRecentRepoKeys),B5=E.createSelector(t=>ve(t.workspaceInitializer.remoteSetups)),q5=E.createSelector(t=>t.workspaceInitializer.lastSubmittedAgent),F5=E.createSelector(t=>t.workspaceInitializer.agentByRepo),H5=E.createSelector(t=>t.workspaceInitializer.recentSpecialistIds),U5=E.createSelector((t,e)=>t.workspaceInitializer.agentByRepo[e]??null),W5=E.createSelector(t=>t.workspaceInitializer.pendingGitHubPrefill),G5=E.createSelector((t,e)=>({restore:Se(t.workspaceInitializer.draftRestores,e),clear:Se(t.workspaceInitializer.draftClears,e)})),j5=E.createSelector((t,e,r)=>{const n=Se(t.workspaceInitializer.initializationOutcomes,e);return n?.resourceId===r?n:void 0}),V5=E.createSelector((t,e)=>Se(t.workspaceInitializer.initializationOutcomes,e)),X5=E.createSelector((t,e)=>Se(t.workspaceInitializer.initializationResumes,e)),K5=E.createSelector(t=>lh({compactFormState:t.workspaceInitializer.compactFormState,lastSubmittedAgent:t.workspaceInitializer.lastSubmittedAgent,specialists:R1.select(t),orchestratorId:z1.select(t)?.id??null})),ch=E.createSelector(t=>{const e=t.workspaceInitializer.gitCheckRequest,r=Wt.select(t);return e&&r&&m1.select(t)?JSON.stringify([r,e]):null}),Y5=E.createSelector(t=>{const e=ch.select(t),r=t.workspaceInitializer.gitCheck;return e&&r?.context===e?r.available:null}),uh=E.createSelector(t=>{const e=Se(t.workspaceInitializer.recentRepoRefreshes,ih),r=Wt.select(t);return oh({saved:ve(t.workspaceInitializer.recentRepos),source:e&&r&&e.admission===r?e:null,dismissed:t.workspaceInitializer.dismissedRecentRepoKeys,mode:"all"})}),Z5=E.createSelector(t=>Ll.select(t)?uh.select(t):[]),Q5=E.createSelector(t=>D1.select(t)||void 0),Gs="workspace-debug-flags",vn={enableCreationAnimation:!0,animationDuration:300,enablePageTransitions:!0,enableComponentTransitions:!0,showDebugInfo:!1,showPerformanceMetrics:!1,logStateChanges:!1,enableAutofocus:!0,enableBranchCaching:!0,enableFormPersistence:!0,simulateSlowNetwork:!1,simulateErrors:!1,networkDelay:0};class hh{constructor(){se(this,"flags");se(this,"listeners",new Set);this.flags=this.loadFlags()}loadFlags(){if(typeof localStorage>"u")return vn;try{const e=localStorage.getItem(Gs);if(e)return{...vn,...JSON.parse(e)}}catch(e){wa.error("Failed to load debug flags:",e)}return vn}saveFlags(){if(!(typeof localStorage>"u")){try{localStorage.setItem(Gs,JSON.stringify(this.flags))}catch(e){wa.error("Failed to save debug flags:",e)}this.listeners.forEach(e=>e(this.flags))}}get(e){return this.flags[e]}set(e,r){this.flags[e]=r,this.saveFlags()}toggle(e){typeof this.flags[e]=="boolean"&&(this.flags[e]=!this.flags[e],this.saveFlags())}reset(){this.flags={...vn},this.saveFlags()}getAll(){return{...this.flags}}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}toggleDebugPanel(){this.toggle("showDebugInfo"),wa.info("Debug panel:",this.flags.showDebugInfo?"ON":"OFF")}async simulateDelay(e){return this.flags.simulateSlowNetwork&&this.flags.networkDelay>0&&await new Promise(r=>setTimeout(r,this.flags.networkDelay)),e}}const ka=new hh;function J5(t){if(!t)return"";let e=t;return e=e.replace(/\*\*(.+?)\*\*/g,"$1"),e=e.replace(/__(.+?)__/g,"$1"),e=e.replace(/(?<!\*)\*(?!\*)(.+?)(?<!\*)\*(?!\*)/g,"$1"),e=e.replace(/(?<!_)_(?!_)(.+?)(?<!_)_(?!_)/g,"$1"),e=e.replace(/~~(.+?)~~/g,"$1"),e=e.replace(/`([^`]+)`/g,"$1"),e=e.replace(/\[([^\]]+)\]\([^)]+\)/g,"$1"),e=e.replace(/^#{1,6}\s+/gm,""),e=e.replace(/^\*+\s*/gm,""),e=e.replace(/\s*\*+$/gm,""),e.trim()}function dh(t){return t.charAt(0).toUpperCase()+t.slice(1)}function e3(t){if(!t||t.trim().length===0)return ne.workspace_sidebarHeader_branchEmpty_error();if(/[\s~^:\\?*\[\\]/.test(t))return ne.workspace_sidebarHeader_branchInvalidChars_error();if(t.includes("@{"))return ne.workspace_sidebarChanges_branchAtBrace_error({seq:"@{"});if(t==="@")return ne.workspace_sidebarChanges_branchAt_error({symbol:"@"});if(t.startsWith("."))return ne.workspace_sidebarHeader_branchStartsDot_error();if(t.endsWith(".lock"))return ne.workspace_sidebarHeader_branchEndsLock_error();if(t.includes(".."))return ne.workspace_sidebarHeader_branchDoubleDot_error();if(t.startsWith("/")||t.endsWith("/"))return ne.workspace_sidebarHeader_branchSlashEnds_error();if(t.includes("//"))return ne.workspace_sidebarHeader_branchDoubleSlash_error();if(t.startsWith("-"))return ne.workspace_sidebarHeader_branchStartsDash_error();if(t.endsWith("."))return ne.workspace_sidebarChanges_branchEndsPeriod_error();const e=t.split("/");for(const r of e){if(r.startsWith("."))return ne.workspace_sidebarChanges_branchComponentStartsDot_error();if(r.endsWith(".lock"))return ne.workspace_sidebarChanges_branchComponentEndsLock_error()}if(t.length>250)return ne.workspace_sidebarHeader_branchTooLong_error()}function t3(t,e,r,n){return e&&r?`https://github.com/${e}/${r}/pull/${t}`:n||""}function Za(t){return t==="Open"?"open":t==="Merged"?"merged":t==="Draft"?"draft":"closed"}function r3(t,e){return`${e}:${t.agentId??"manual"}`}function mh(t,e){if(t.length===0||e>=t.length)return 0;const r=Math.max(0,e);let n=0;for(let a=r;a<t.length;a++)t[a].isPushed||n++;return n}function ph(t,e){if(t.length===0||e<0)return 0;const r=Math.min(e,t.length-1);let n=0;for(let a=0;a<=r;a++)t[a].isPushed&&n++;return n}function fh(t,e){if(t.length===0||e<0)return 0;const r=Math.min(e,t.length-1);let n=0;for(let a=0;a<=r;a++)t[a].isPushed||n++;return n}function n3(t,e,r,n){const a=mh(t,e),i=n?` (origin/${n})`:"";return r?a===1?ne.workspace_sidebarChanges_addToPr_one({suffix:i}):ne.workspace_sidebarChanges_addToPr_many({count:rt(a),suffix:i}):a===1?ne.workspace_sidebarChanges_pushToRemote_one({suffix:i}):ne.workspace_sidebarChanges_pushToRemote_many({count:rt(a),suffix:i})}function a3(t,e,r){const n=ph(t,e),a=r?` (origin/${r})`:"";return n===1?ne.workspace_sidebarChanges_undoPush_one({suffix:a}):ne.workspace_sidebarChanges_undoPush_many({count:rt(n),suffix:a})}function i3(t,e){const r=fh(t,e);return r===1?ne.workspace_sidebarChanges_undoCommit_one():ne.workspace_sidebarChanges_undoCommit_many({count:rt(r)})}function s3(t,e){return e===0&&t.length>0}function o3(t,e,r,n){return!r||n==null?!1:t===r&&e===n}function l3(t,e,r){const n=`${e?"staged":"unstaged"}:${t}`;return r.has(n)}function c3(t,e,r){return r?.path===t&&r?.staged===e}function u3(t){if(t.length===0)return[];const e=new Map,r=[...t].sort((n,a)=>n.timestamp-a.timestamp);for(const n of r)for(const a of n.files??[]){const i=e.get(a.path);i?e.set(a.path,{additions:i.additions+(a.additions||0),deletions:i.deletions+(a.deletions||0)}):e.set(a.path,{additions:a.additions||0,deletions:a.deletions||0})}return Array.from(e.entries()).map(([n,a])=>({path:n,additions:a.additions,deletions:a.deletions,staged:!1}))}function h3(t,e,r){const n=new Set;let a=0,i=0;for(const s of t)n.add(s.relativePath),a+=s.stats?.additions||0,i+=s.stats?.deletions||0;for(const s of e)n.add(s.relativePath),a+=s.stats?.additions||0,i+=s.stats?.deletions||0;for(const s of r)for(const o of s.files||[])n.add(o.path),a+=o.additions||0,i+=o.deletions||0;return{totalFilesChanged:n.size,totalAdditions:a,totalDeletions:i}}function gh(t){const e=t?.match(/^https?:\/\/github\.com\/([^/]+)\/([^/]+)\/pull\/\d+/i);return e?`${e[1]}/${e[2]}`:void 0}function d3(t,e,r,n,a){if(t&&t.length>0){const i=a?.split("/")[0];return t.map(s=>{const o=s.url||r(s.number),c=gh(s.url),h=c!==void 0&&c.toLowerCase()!==a?.toLowerCase()?c:void 0;return{number:s.number,title:n(s),url:o,htmlUrl:o,status:Za(s.status),createdAt:s.createdAt,updatedAt:s.updatedAt,isInMergeQueue:s.isDraft?void 0:s.isInMergeQueue,crossRepo:h,crossRepoDisplay:h?Di(h,i):void 0}})}return e?[{number:e.number,title:n(e),url:r(e.number,e.url),htmlUrl:r(e.number,e.url),status:Za(e.status),createdAt:e.createdAt,updatedAt:e.updatedAt,isInMergeQueue:e.isDraft?void 0:e.isInMergeQueue}]:[]}function m3(t){const{prNumber:e,prUrl:r}=t;return e==null||!r?null:{id:`legacy-pr-${e}`,number:e,url:r,title:"",status:t.prStatus??_1.Open,createdAt:t.updatedAt,updatedAt:t.updatedAt}}function vh(t){const e=t.lastSnapshot?.state?.toLowerCase();return e==="merged"?"merged":e==="closed"?"closed":t.lastSnapshot?.isDraft?"draft":t.state==="completed"?"closed":"open"}function xa(t,e,r){if(e.length===0)return t;const n=r?.split("/")[0],a=t.map(i=>({...i}));for(const i of e){const s=!i.resource&&!i.monitorAvailability&&(!r||i.repo===r),o=z0(i),c=o.toLowerCase(),h=a.find(m=>!!o&&m.url.toLowerCase()===c||(i.resource||i.monitorAvailability?m.monitorIdentity===ya(i):!m.resource&&!m.monitorAvailability&&(s?!m.crossRepo&&m.number===i.prNumber:m.crossRepo===i.repo&&m.number===i.prNumber)));if(h){h.monitorAgentId=i.agentId,h.resource=i.resource,h.monitorAvailability=i.monitorAvailability,h.monitorIdentity=i.resource||i.monitorAvailability?ya(i):void 0,h.monitorSnapshot=i.lastSnapshot??h.monitorSnapshot;continue}a.push({number:i.prNumber,title:i.title??`${i.repo}${p1(i,i.prNumber)}`,resource:i.resource,monitorAvailability:i.monitorAvailability,monitorIdentity:i.resource||i.monitorAvailability?ya(i):void 0,url:o,htmlUrl:o,status:vh(i),createdAt:i.createdAt,updatedAt:i.updatedAt,monitorAgentId:i.agentId,crossRepo:s?void 0:i.repo,crossRepoDisplay:s?void 0:Di(i.repo,n),monitorSnapshot:i.lastSnapshot,monitorOnly:!0})}return a}function Di(t,e){return e&&t.toLowerCase().startsWith(`${e.toLowerCase()}/`)?t.slice(e.length+1):t}function p3(t,e,r,n,a){const i=r?.toLowerCase(),s=new Set;for(const S of n)S.repoOwner&&S.repoName&&s.add(`${S.repoOwner}/${S.repoName}`.toLowerCase());let o=t;const c=[],h=[];if(t.some(S=>S.crossRepo)){o=[];for(const S of t)S.crossRepo?s.has(S.crossRepo.toLowerCase())?c.push(S):h.push(S):o.push(S)}const m=[],g=[],v=[];for(const S of e){const C=S.repo.toLowerCase();z0(S)&&o.some(W=>W.url===z0(S))||!S.resource&&!S.monitorAvailability&&(!i||C===i)?m.push(S):z0(S)&&c.some(W=>W.url===z0(S))||!S.resource&&!S.monitorAvailability&&s.has(C)?g.push(S):v.push(S)}const w=xa(o,m,r),A=r?.split("/")[0],M=new Set([...w,...c,...h].map(S=>`${(S.crossRepo??r??"").toLowerCase()}#${S.number}`)),D=[...c];for(const S of n){if(!S.repoOwner||!S.repoName)continue;const C=`${S.repoOwner}/${S.repoName}`;for(const W of S.pullRequests??[]){const Y=`${C.toLowerCase()}#${W.number}`;if(M.has(Y))continue;M.add(Y);const K=W.url||`https://github.com/${C}/pull/${W.number}`,T=i!==void 0&&C.toLowerCase()===i;D.push({number:W.number,title:a(W),url:K,htmlUrl:K,status:Za(W.status),createdAt:W.createdAt,updatedAt:W.updatedAt,crossRepo:T?void 0:C,crossRepoDisplay:T?void 0:Di(C,A)})}}return{own:w,otherRoots:xa(D,g,r),otherTracked:xa(h,v,r)}}function js(t){return t.status!=="open"?!1:t.monitorSnapshot?t.monitorSnapshot.isInMergeQueue===!0:t.isInMergeQueue===!0}function f3(t){const e=t.status==="merged"?ne.workspace_prSection_merged_label():t.status==="closed"?ne.workspace_prSection_closed_label():t.status==="draft"?ne.workspace_prSection_statusDraft_label():js(t)?ne.workspace_prSection_statusQueued_label():ne.workspace_prSection_statusOpen_label(),r=[f1(t)??e],n=js(t)?U1(t.monitorSnapshot?.mergeQueue):null;n&&r.push(n);const a=t.status==="merged"||t.status==="closed"?void 0:t.monitorSnapshot;return a&&(a.checks.total===null||a.checks.passed===null||a.checks.failed===null||a.checks.pending===null||a.availability&&a.availability.checks!=="available"?r.push(ne.chat_monitoredPrs_hover_checksUnknown_label()):a.checks.total>0&&r.push(ne.workspace_prSection_statusChecks_tooltip({passed:rt(a.checks.passed),failed:rt(a.checks.failed),pending:rt(a.checks.pending)})),r.push(a.approvals.have===null||a.availability&&a.availability.approvals!=="available"?ne.chat_monitoredPrs_hover_approvalsUnknown_label():a.approvals.needed!=null?ne.workspace_prSection_statusApprovalsOfNeeded_tooltip({count:rt(a.approvals.have),needed:rt(a.approvals.needed)}):ne.workspace_prSection_statusApprovals_tooltip({count:rt(a.approvals.have)})),a.approvals.changesRequested!==null&&a.approvals.changesRequested>0&&r.push(ne.workspace_prSection_statusChangesRequested_tooltip({count:rt(a.approvals.changesRequested)})),a.availability&&a.availability.discussions!=="available"?r.push(ne.workspace_prSection_statusUnresolvedThreadsUnknown_tooltip()):typeof a.threads.unresolved=="number"?a.threads.unresolved>0&&r.push(ne.workspace_prSection_statusUnresolvedThreads_tooltip({count:rt(a.threads.unresolved)})):a.threads.resolutionRequired&&r.push(ne.workspace_prSection_statusUnresolvedThreadsUnknown_tooltip()),a.mergeBlockedReason&&r.push(dh(a.mergeBlockedReason))),r.join(`
|
|
2
2
|
`)}function g3(t,e){return e.has(t??"manual")}function v3(t,e){return{path:t.relativePath,additions:t.stats.additions,deletions:t.stats.deletions,staged:e,status:t.status,attribution:t.attribution?.agent?{agentId:t.attribution.agent.agentId,agentName:t.attribution.agent.agentName,sessionId:t.attribution.agent.sessionId,turnNumber:t.attribution.agent.turnNumber,timestamp:t.attribution.timestamp}:void 0}}const jl=500;function b3(t,e=jl){const r=Math.max(0,Math.floor(e));return t.length<=r?{visible:t,shown:t.length,hiddenCount:0}:{visible:t.slice(0,r),shown:r,hiddenCount:t.length-r}}function y3(t,e,r=jl){let n=Math.max(0,Math.floor(r)),a=0,i=0;return{groups:t.map(o=>{if(e(o))return{group:o,visibleFiles:[]};const c=Math.min(n,o.files.length);return n-=c,a+=c,i+=o.files.length-c,{group:o,visibleFiles:c===o.files.length?o.files:o.files.slice(0,c)}}),shown:a,hiddenCount:i}}function w3(t){if(t.hiddenCount<=0)return"";const e=rt(t.shown),r=rt(t.shown+t.hiddenCount);return t.hiddenCount===1?ne.workspace_fileChanges_hiddenFiles_one({shown:e,total:r}):ne.workspace_fileChanges_hiddenFiles_many({shown:e,total:r,count:rt(t.hiddenCount)})}function bh(t){if(!t)return{};try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function Qa(t){return t.startsWith("@")?t.slice(1):t}function yh(t,e,r,n){const a=t.fullPath||t.path||t.filename;if(a)return Qa(String(a));const i=[r,e,n.trim()].map(Qa).filter(Boolean),s=i.find(o=>o.includes("/"))??i[0];return s?g1(s).path:void 0}function wh(t){const e=t.line??t.startLine??t.range?.start;return typeof e=="number"&&Number.isFinite(e)?e:void 0}function kh(t){if(!t||t.getAttribute("data-mention")===null)return null;const e=t.getAttribute("data-type")||"",r=t.getAttribute("data-id")||"",n=t.getAttribute("data-label")||"",a=t.getAttribute("data-uri")||"",i=bh(t.getAttribute("data-meta")),s={type:e,id:r,label:n,uri:a,meta:i},o=a.startsWith("intent://")?a:typeof i.fullUrl=="string"&&i.fullUrl.startsWith("intent://")?i.fullUrl:void 0;if(o&&(s.intentUrl=o),e==="file"||e==="file-range"){const c=yh(i,n,r,t.textContent||"");c&&(s.filePath=c);const h=wh(i);h!==void 0&&(s.line=h)}else if(e==="folder"||e==="source-folder"){const c=i.fullPath||i.path||r||n,h=c?Qa(String(c)).replace(/\/+$/,""):"";h&&(s.folderPath=h)}else if(e==="note"||e==="note-range"){const c=i.noteId||r;c&&(s.note=i.isExternalLink&&i.workspaceId?{id:c,workspaceId:String(i.workspaceId)}:{id:c})}return s}function k3(t){return{sidebarTabId:"files",type:"file",filePath:`${t}/`}}function Ni(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var _r=Ni();function Vl(t){_r=t}var Ir={exec:()=>null};function Vr(t){let e=[];return r=>{let n=Math.max(0,Math.min(3,r-1)),a=e[n];return a||(a=t(n),e[n]=a),a}}function ce(t,e=""){let r=typeof t=="string"?t:t.source,n={replace:(a,i)=>{let s=typeof i=="string"?i:i.source;return s=s.replace(Xe.caret,"$1"),r=r.replace(a,s),n},getRegex:()=>new RegExp(r,e)};return n}var xh=((t="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+t)}catch{return!1}})(),Xe={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Vr(t=>new RegExp(`^ {0,${t}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Vr(t=>new RegExp(`^ {0,${t}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:Vr(t=>new RegExp(`^ {0,${t}}(?:\`\`\`|~~~)`)),headingBeginRegex:Vr(t=>new RegExp(`^ {0,${t}}#`)),htmlBeginRegex:Vr(t=>new RegExp(`^ {0,${t}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:Vr(t=>new RegExp(`^ {0,${t}}>`))},Sh=/^(?:[ \t]*(?:\n|$))+/,Ah=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Th=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,U0=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Eh=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,_i=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Xl=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Kl=ce(Xl).replace(/bull/g,_i).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Mh=ce(Xl).replace(/bull/g,_i).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Li=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,Ch=/^[^\n]+/,Oi=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Ih=ce(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Oi).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),zh=ce(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,_i).getRegex(),qn="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Pi=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Rh=ce("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Pi).replace("tag",qn).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Yl=t=>ce(Li).replace("hr",U0).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",t).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",qn).getRegex(),Dh=Yl(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),Nh=Yl(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),_h=ce(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Nh).getRegex(),$i={blockquote:_h,code:Ah,def:Ih,fences:Th,heading:Eh,hr:U0,html:Rh,lheading:Kl,list:zh,newline:Sh,paragraph:Dh,table:Ir,text:Ch},Vs=ce("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",U0).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",qn).getRegex(),Lh={...$i,lheading:Mh,table:Vs,paragraph:ce(Li).replace("hr",U0).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Vs).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",qn).getRegex()},Oh={...$i,html:ce(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Pi).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ir,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ce(Li).replace("hr",U0).replace("heading",` *#{1,6} *[^
|
|
3
3
|
]`).replace("lheading",Kl).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Ph=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,$h=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Zl=/^( {2,}|\\)\n(?!\s*$)/,Bh=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Xt=/[\p{P}\p{S}]/u,d0=/[\s\p{P}\p{S}]/u,W0=/[^\s\p{P}\p{S}]/u,qh=ce(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,d0).getRegex(),Fh=/[\p{Pi}\p{Ps}"']/u,Ql=/(?!~)[\p{P}\p{S}]/u,Hh=/(?!~)[\s\p{P}\p{S}]/u,Uh=/(?:[^\s\p{P}\p{S}]|~)/u,Wh=ce(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",xh?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Jl=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Gh=ce(Jl,"u").replace(/punct/g,Xt).getRegex(),jh=ce(Jl,"u").replace(/punct/g,Ql).getRegex(),Vh=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,Xh=ce(Vh,"u").replace(/openQuote/g,Fh).replace(/punct/g,Xt).getRegex(),ec="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Kh=ce(ec,"gu").replace(/notPunctSpace/g,W0).replace(/punctSpace/g,d0).replace(/punct/g,Xt).getRegex(),Yh=ce(ec,"gu").replace(/notPunctSpace/g,Uh).replace(/punctSpace/g,Hh).replace(/punct/g,Ql).getRegex(),Zh="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",Qh=ce(Zh,"gu").replace(/notPunctSpace/g,W0).replace(/punctSpace/g,d0).replace(/punct/g,Xt).getRegex(),Jh=ce("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,W0).replace(/punctSpace/g,d0).replace(/punct/g,Xt).getRegex(),ed="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",td=ce(ed,"gu").replace(/notPunctSpace/g,W0).replace(/punctSpace/g,d0).replace(/punct/g,Xt).getRegex(),rd=ce(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Xt).getRegex(),nd="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",ad=ce(nd,"gu").replace(/notPunctSpace/g,W0).replace(/punctSpace/g,d0).replace(/punct/g,Xt).getRegex(),id=ce(/\\(punct)/,"gu").replace(/punct/g,Xt).getRegex(),sd=ce(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),od=ce(Pi).replace("(?:-->|$)","-->").getRegex(),ld=ce("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",od).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Dn=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,cd=ce(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Dn).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),tc=ce(/^!?\[(label)\]\[(ref)\]/).replace("label",Dn).replace("ref",Oi).getRegex(),rc=ce(/^!?\[(ref)\](?:\[\])?/).replace("ref",Oi).getRegex(),ud=ce("reflink|nolink(?!\\()","g").replace("reflink",tc).replace("nolink",rc).getRegex(),Xs=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Bi={_backpedal:Ir,anyPunctuation:id,autolink:sd,blockSkip:Wh,br:Zl,code:$h,del:Ir,delLDelim:Ir,delRDelim:Ir,emStrongLDelim:Gh,emStrongRDelimAst:Kh,emStrongRDelimUnd:Jh,escape:Ph,link:cd,nolink:rc,punctuation:qh,reflink:tc,reflinkSearch:ud,tag:ld,text:Bh,url:Ir},hd={...Bi,emStrongLDelim:Xh,emStrongRDelimAst:Qh,emStrongRDelimUnd:td,link:ce(/^!?\[(label)\]\((.*?)\)/).replace("label",Dn).getRegex(),reflink:ce(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Dn).getRegex()},Ja={...Bi,emStrongRDelimAst:Yh,emStrongLDelim:jh,delLDelim:rd,delRDelim:ad,url:ce(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Xs).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:ce(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Xs).getRegex()},dd={...Ja,br:ce(Zl).replace("{2,}","*").getRegex(),text:ce(Ja.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},bn={normal:$i,gfm:Lh,pedantic:Oh},x0={normal:Bi,gfm:Ja,breaks:dd,pedantic:hd},md={"&":"&","<":"<",">":">",'"':""","'":"'"},Ks=t=>md[t];function Rt(t,e){if(e){if(Xe.escapeTest.test(t))return t.replace(Xe.escapeReplace,Ks)}else if(Xe.escapeTestNoEncode.test(t))return t.replace(Xe.escapeReplaceNoEncode,Ks);return t}function Ys(t){try{t=encodeURI(t).replace(Xe.percentDecode,"%")}catch{return null}return t}function Zs(t,e){let r=t.replace(Xe.findPipe,(i,s,o)=>{let c=!1,h=s;for(;--h>=0&&o[h]==="\\";)c=!c;return c?"|":" |"}),n=r.split(Xe.splitPipe),a=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;a<n.length;a++)n[a]=n[a].trim().replace(Xe.slashPipe,"|");return n}function rr(t,e,r){let n=t.length;if(n===0)return"";let a=0;for(;a<n&&t.charAt(n-a-1)===e;)a++;return t.slice(0,n-a)}function Qs(t){let e=t.split(`
|
|
4
4
|
`),r=e.length-1;for(;r>=0&&Xe.blankLine.test(e[r]);)r--;return e.length-r<=2?t:e.slice(0,r+1).join(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as s}from"./
|
|
1
|
+
import{c as s}from"./ENpFvA2b.js";var t,e=(t=class{constructor(i){this.init=i,this.records=this.init()}reset(){this.records=this.init()}},s(t,"ImperativeState"),t);export{e as I};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aQ as B,c as y}from"./
|
|
1
|
+
import{aQ as B,c as y}from"./ENpFvA2b.js";var w=5,O=1e-5,X=2,Y=.6,R=1e-6;function N(t){const e=[];for(let s=0;s<t.length-1;s++)e.push({a:t[s],b:t[s+1]});return e}y(N,"buildSegmentList");function T(t,e,s,a){const r=e.x-t.x,o=e.y-t.y,i=a.x-s.x,d=a.y-s.y,u=r*d-o*i;if(u===0)return null;const n=s.x-t.x,c=s.y-t.y,p=(n*d-c*i)/u,f=(n*o-c*r)/u;return p<=R||p>=1-R||f<=R||f>=1-R?null:{point:{x:t.x+p*r,y:t.y+p*o},tA:p,tB:f}}y(T,"segmentIntersection");function P(t){return Math.abs(t.b.x-t.a.x)>=Math.abs(t.b.y-t.a.y)}y(P,"isHorizontalSeg");function v(t,e,s){if(t.curve!=="rounded")return!1;const a=t.points,r=a[e],o=a[e+1];if(!r||!o)return!1;const i=Math.hypot(o.x-r.x,o.y-r.y),d=s*i,u=e>0?L(a[e-1],r,o,w):null;if(u&&d<u.cutLen)return!0;const n=e+2<a.length?L(r,o,a[e+2],w):null;return n!==null&&i-d<n.cutLen}y(v,"crossingSitsInRoundedCorner");function C(t){const e=[];for(let s=0;s<t.length;s++){const a=t[s],r=N(a.points);for(let o=s+1;o<t.length;o++){const i=t[o],d=N(i.points);for(const[u,n]of r.entries())for(const[c,p]of d.entries()){const f=T(n.a,n.b,p.a,p.b);if(!f||v(a,u,f.tA)||v(i,c,f.tB))continue;const g=P(n),S=P(p);(g!==S?g:!1)?e.push({jumpEdgeId:a.id,otherEdgeId:i.id,segIndex:u,t:f.tA,point:f.point}):e.push({jumpEdgeId:i.id,otherEdgeId:a.id,segIndex:c,t:f.tB,point:f.point})}}}return e}y(C,"findEdgeIntersections");function M(t){const e=Math.round(t*1e3)/1e3;return Number.isInteger(e)?`${e}`:`${e}`}y(M,"fmt");function A(t){return`${M(t.x)},${M(t.y)}`}y(A,"pointToString");function D(t){const e=t.b.x-t.a.x,s=t.b.y-t.a.y;return Math.abs(e)>=Math.abs(s)?e>=0?1:0:s>=0?1:0}y(D,"getArcSweepFlag");function _(t,e){if(t.length<2)return t.map(o=>({...o}));const s=t.map(o=>({...o})),a=e.arrowTypeStart&&B[e.arrowTypeStart];if(a){const o=t[0],i=t[1],d=Math.atan2(i.y-o.y,i.x-o.x);s[0].x=o.x+a*Math.cos(d),s[0].y=o.y+a*Math.sin(d)}const r=e.arrowTypeEnd&&B[e.arrowTypeEnd];if(r){const o=t.length,i=t[o-2],d=t[o-1],u=Math.atan2(d.y-i.y,d.x-i.x);s[o-1].x=d.x-r*Math.cos(u),s[o-1].y=d.y-r*Math.sin(u)}return s}y(_,"applyMarkerOffsets");function k(t,e,s,a,r){const o=t.point.x,i=t.point.y,d={x:o-e*t.r,y:i-s*t.r},u={x:o+e*t.r,y:i+s*t.r},n=[`L${A(d)}`];return r==="arc"?n.push(`A${M(t.r)},${M(t.r)} 0 0 ${a} ${A(u)}`):n.push(`M${A(u)}`),n}y(k,"emitJump");function L(t,e,s,a){const r=e.x-t.x,o=e.y-t.y,i=s.x-e.x,d=s.y-e.y,u=Math.hypot(r,o),n=Math.hypot(i,d);if(u<O||n<O)return null;const c=r/u,p=o/u,f=i/n,g=d/n,S=c*f+p*g,b=Math.max(-1,Math.min(1,S)),m=Math.acos(b);if(m<O||Math.abs(Math.PI-m)<O)return null;const h=Math.min(a/Math.sin(m/2),u/2,n/2);return{startX:e.x-c*h,startY:e.y-p*h,endX:e.x+f*h,endY:e.y+g*h,ctrlX:e.x,ctrlY:e.y,cutLen:h}}y(L,"computeRoundedCorner");function H(t,e,s){const a=t.points;if(a.length<2)return"";const r=_(a,t),o=t.curve==="rounded",i=N(r),d=new Map;for(const n of e){const c=i[n.segIndex];if(!c)continue;const p=Math.hypot(c.b.x-c.a.x,c.b.y-c.a.y),f=d.get(n.segIndex)??[];f.push({t:n.t,point:n.point,d:n.t*p,r:s.jumpRadius}),d.set(n.segIndex,f)}const u=[`M${A(r[0])}`];for(let n=0;n<i.length;n++){const c=i[n],p=Math.hypot(c.b.x-c.a.x,c.b.y-c.a.y),f=p===0?0:(c.b.x-c.a.x)/p,g=p===0?0:(c.b.y-c.a.y)/p,S=D(c);let b=0;if(o&&n>0){const l=L(r[n-1],r[n],r[n+1]??r[n],w);l&&(b=l.cutLen)}let m=p,h=null;o&&n<i.length-1&&(h=L(r[n],r[n+1],r[n+2]??r[n+1],w),h&&(m=p-h.cutLen));const $=s.jumpRadius*Y,x=[...d.get(n)??[]].sort((l,E)=>l.t-E.t).filter(l=>{const E=Math.min(l.d-b,m-l.d)-X;return l.r=Math.min(l.r,E),l.r>=$});for(let l=0;l<x.length-1;l++){const E=x[l+1].d-x[l].d;if(x[l].r+x[l+1].r>E){const I=E/2;x[l].r=Math.min(x[l].r,I),x[l+1].r=Math.min(x[l+1].r,I)}}for(const l of x)l.r<$||u.push(...k(l,f,g,S,s.jumpStyle));o&&h?(u.push(`L${M(h.startX)},${M(h.startY)}`),u.push(`Q${M(h.ctrlX)},${M(h.ctrlY)} ${M(h.endX)},${M(h.endY)}`)):u.push(`L${A(c.b)}`)}return u.join(" ")}y(H,"rewriteEdgePath");function J(t){return/^[\d\s+,.LMelm-]*$/.test(t)}y(J,"isStraightPath");function U(t){return t?t==="linear"||t==="rounded"||t==="step"||t==="stepBefore"||t==="stepAfter":!0}y(U,"curveSupportsLineHops");function j(t){if(!t)return null;try{const e=typeof atob=="function"?atob(t):Buffer.from(t,"base64").toString(),s=JSON.parse(e);if(!Array.isArray(s))return null;const a=[];for(const r of s)r&&typeof r.x=="number"&&typeof r.y=="number"&&a.push({x:r.x,y:r.y});return a.length>=2?a:null}catch{return null}}y(j,"decodeDataPoints");function F(t,e,s){if(!s.enabled)return;const a=t.node();if(!a)return;const r=new Map;for(const n of e)r.set(n.id,n);const o=new Map;for(const n of a.querySelectorAll("path[data-id]")){const c=n.getAttribute("data-id");c!==null&&!o.has(c)&&o.set(c,n)}const i=[];for(const n of e){const c=o.get(n.id);if(!c)continue;const f=j(c.getAttribute("data-points"))??n.points;i.push({...n,points:f})}const d=C(i);if(d.length===0)return;const u=new Map;for(const n of d){const c=u.get(n.jumpEdgeId)??[];c.push(n),u.set(n.jumpEdgeId,c)}for(const n of i){const c=u.get(n.id);if(!c||c.length===0)continue;const f=r.get(n.id)?.curve;if(f!==void 0&&!U(f))continue;const g=o.get(n.id);if(!g)continue;if(f===void 0){const x=g.getAttribute("d")??"";if(!J(x))continue}const S=g.getAttribute("style")??"",b=/stroke-dasharray\s*:\s*0\s+([\d.]+)\s+[\d.]+\s+([\d.]+)/.exec(S),m=b?Number.parseFloat(b[1]):null,h=b?Number.parseFloat(b[2]):null,$=H(n,c,s);if(g.setAttribute("d",$),m!==null&&h!==null&&typeof g.getTotalLength=="function"){const x=g.getTotalLength(),l=Math.max(0,x-m-h),E=`0 ${m} ${l} ${h}`,I=S.replace(/stroke-dasharray\s*:[^;]*;?/g,`stroke-dasharray: ${E};`).replace(/;\s*;+/g,";");g.setAttribute("style",I)}}}y(F,"applyLineJumpsToSvg");export{F as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c as e,aN as s,bd as o,I as i}from"./
|
|
1
|
+
import{c as e,aN as s,bd as o,I as i}from"./ENpFvA2b.js";import{p as g}from"./ClebXGIM.js";var d={parse:e(async r=>{const a=await g("info",r);s.debug(a)},"parse")},p={version:"12.3.0"},v=e(()=>p.version,"getVersion"),c={getVersion:v},m=e((r,a,n)=>{s.debug(`rendering info diagram
|
|
2
2
|
`+r);const t=o(a);i(t,100,400,!0),t.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${n}`)},"draw"),f={draw:m},b={parser:d,db:c,renderer:f};export{b as diagram};
|