@intent-hq/web 2.346.4 → 2.346.6
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/{DaWQpSHZ.js → -JevDvlP.js} +1 -1
- package/web/app/immutable/chunks/{CBq6DlIt.js → 0rarVWHK.js} +4 -4
- package/web/app/immutable/chunks/{B4ra8hfV.js → 1ZG7ksae.js} +1 -1
- package/web/app/immutable/chunks/{B50qxjRT.js → 1o18ErRW.js} +12 -12
- package/web/app/immutable/chunks/{By29T7f9.js → 4eHil2Q6.js} +1 -1
- package/web/app/immutable/chunks/{CZytbhGb.js → 8L6YSSzw.js} +1 -1
- package/web/app/immutable/chunks/{C0CqY7Yc.js → AlA3CYjp.js} +1 -1
- package/web/app/immutable/chunks/{Mg8H3Ad_.js → B-7dyAv6.js} +2 -2
- package/web/app/immutable/chunks/{g9XYCabR.js → B0ckY47V.js} +1 -1
- package/web/app/immutable/chunks/{CoMnnGKT.js → B0ttdHxY.js} +1 -1
- package/web/app/immutable/chunks/{mP3jvNc-.js → B28RqyNs.js} +1 -1
- package/web/app/immutable/chunks/{CtZBPGmK.js → B2tkVgmm.js} +1 -1
- package/web/app/immutable/chunks/{CkOW2_R1.js → B4RN26_e.js} +1 -1
- package/web/app/immutable/chunks/{B-KN8Jlj.js → B6xLrxSy.js} +1 -1
- package/web/app/immutable/chunks/{9kj5ZfRr.js → B8suWc52.js} +1 -1
- package/web/app/immutable/chunks/{BNJe789p.js → BCtYysKf.js} +1 -1
- package/web/app/immutable/chunks/{D32HMlYT.js → BHd9jGui.js} +1 -1
- package/web/app/immutable/chunks/{CVM42XXi.js → BJRCgXWd.js} +3 -3
- package/web/app/immutable/chunks/{dWKHnuAl.js → BJScJ18v.js} +1 -1
- package/web/app/immutable/chunks/{BJWhwwHx.js → BMG9_mUS.js} +1 -1
- package/web/app/immutable/chunks/{JM_PKnGS.js → BN9__Tfb.js} +1 -1
- package/web/app/immutable/chunks/{D8tPfa9K.js → BNVDzSju.js} +2 -2
- package/web/app/immutable/chunks/{BBXjSeZz.js → BPzOnvNA.js} +1 -1
- package/web/app/immutable/chunks/{BI0ZZ8UO.js → BRFbBztl.js} +1 -1
- package/web/app/immutable/chunks/{8hWYh2SV.js → BS-cVYii.js} +1 -1
- package/web/app/immutable/chunks/{D0wPN4-P.js → Bb-HNWJ1.js} +1 -1
- package/web/app/immutable/chunks/{cQMohqSY.js → BbsGQHyK.js} +1 -1
- package/web/app/immutable/chunks/{DOzvQ0Rd.js → BcXXTJlb.js} +1 -1
- package/web/app/immutable/chunks/{DpFPjrHa.js → Be5456eH.js} +2 -2
- package/web/app/immutable/chunks/{C9yvm97z.js → Beu80YXu.js} +3 -3
- package/web/app/immutable/chunks/{BfUFKHC3.js → BfbRBMGb.js} +1 -1
- package/web/app/immutable/chunks/{CjUvLS5U.js → Biro3pac.js} +1 -1
- package/web/app/immutable/chunks/{CugnkL_9.js → BkL200pu.js} +4 -4
- package/web/app/immutable/chunks/{DhoGdCQi.js → BnOlexUh.js} +1 -1
- package/web/app/immutable/chunks/{jX7_8poo.js → Boxybwc5.js} +1 -1
- package/web/app/immutable/chunks/{CBc9tLFK.js → BsiP9jat.js} +4 -4
- package/web/app/immutable/chunks/{R-YEJgRO.js → BuaHh82p.js} +1 -1
- package/web/app/immutable/chunks/{CPCmJFz3.js → Budt6h7m.js} +1 -1
- package/web/app/immutable/chunks/{CO5MrM9v.js → BwhsGVp4.js} +1 -1
- package/web/app/immutable/chunks/{PRcE3ypK.js → BxBAnSu_.js} +1 -1
- package/web/app/immutable/chunks/{DuP0kN9u.js → By1Ead6w.js} +1 -1
- package/web/app/immutable/chunks/{CfvmLdft.js → Byq91_c-.js} +2 -2
- package/web/app/immutable/chunks/{C9pKpUIK.js → C-Qo8Sm3.js} +1 -1
- package/web/app/immutable/chunks/{WVba34Wr.js → C4TSbAj7.js} +1 -1
- package/web/app/immutable/chunks/{D-ZcbI-Y.js → C5ulZDi1.js} +1 -1
- package/web/app/immutable/chunks/{6MPt5WH3.js → C7mvdGAm.js} +1 -1
- package/web/app/immutable/chunks/{BIqnmVRf.js → C9GTwcDD.js} +4 -4
- package/web/app/immutable/chunks/{CkbCPRkQ.js → CBRxBLXr.js} +1 -1
- package/web/app/immutable/chunks/{C2EstpWq.js → CCwJ5z-q.js} +1 -1
- package/web/app/immutable/chunks/{4CzdfJpH.js → CDP99zgj.js} +1 -1
- package/web/app/immutable/chunks/{BT9wQ0Ce.js → CEgJ5sIL.js} +6 -6
- package/web/app/immutable/chunks/{Bj5SxeMr.js → CGB0BSDf.js} +1 -1
- package/web/app/immutable/chunks/{BNwYXBCy.js → CGoiyEVp.js} +1 -1
- package/web/app/immutable/chunks/{DjLQeEnc.js → CO4uYULP.js} +2 -2
- package/web/app/immutable/chunks/{BSzY-NMz.js → CTYi4ogQ.js} +1 -1
- package/web/app/immutable/chunks/{C0WVBwZy.js → CVpfSBkA.js} +1 -1
- package/web/app/immutable/chunks/{BepEnAFk.js → CWfnG_ZS.js} +1 -1
- package/web/app/immutable/chunks/{DPpH6C1S.js → CYI38TT4.js} +1 -1
- package/web/app/immutable/chunks/{Ch69Gx78.js → CZHXOPAK.js} +1 -1
- package/web/app/immutable/chunks/{Dc5gEXVa.js → CZjZfFnV.js} +1 -1
- package/web/app/immutable/chunks/{ByDHRaj1.js → C_7dsakQ.js} +1 -1
- package/web/app/immutable/chunks/{BBDyE7y7.js → C_ljQm1V.js} +1 -1
- package/web/app/immutable/chunks/{DnahZard.js → CaA-htwb.js} +3 -3
- package/web/app/immutable/chunks/{BhXOnc6x.js → Cb7H8-7W.js} +1 -1
- package/web/app/immutable/chunks/{e3tI_GeB.js → Cfrr2szR.js} +1 -1
- package/web/app/immutable/chunks/{B2fjzJpx.js → Cg2mHoca.js} +1 -1
- package/web/app/immutable/chunks/{CVXxjkW7.js → ChcJLcLm.js} +1 -1
- package/web/app/immutable/chunks/{GgJbmGSc.js → CjnXXzJq.js} +1 -1
- package/web/app/immutable/chunks/{DU-RLEFB.js → CppTLlj2.js} +1 -1
- package/web/app/immutable/chunks/{C-G83LXE.js → CqVAVQKY.js} +1 -1
- package/web/app/immutable/chunks/{McA_XHBx.js → CsmCnbCD.js} +1 -1
- package/web/app/immutable/chunks/{DDjhSDXW.js → CtDWlQV1.js} +1 -1
- package/web/app/immutable/chunks/{4UjNJakA.js → Cwug6YYm.js} +1 -1
- package/web/app/immutable/chunks/{S3oleArH.js → D4SzkUNZ.js} +2 -2
- package/web/app/immutable/chunks/{CkuIoWee.js → D5SeaOci.js} +1 -1
- package/web/app/immutable/chunks/{DrHq7-l3.js → D7sw__ZG.js} +1 -1
- package/web/app/immutable/chunks/{BksE-BZ5.js → D9qN0bss.js} +1 -1
- package/web/app/immutable/chunks/{ClG9H6Ln.js → DAkcpm4B.js} +1 -1
- package/web/app/immutable/chunks/{Cy8JcjH6.js → DAtn3syX.js} +1 -1
- package/web/app/immutable/chunks/{Cc25YYnU.js → DC63GbRu.js} +1 -1
- package/web/app/immutable/chunks/{tgq3aX1k.js → DEx8d2kh.js} +1 -1
- package/web/app/immutable/chunks/{D-uBGxZi.js → DI80ZNIw.js} +1 -1
- package/web/app/immutable/chunks/{Ba-QPC0I.js → DNtuS0Va.js} +1 -1
- package/web/app/immutable/chunks/{DqgXv99N.js → DTIBu4w9.js} +1 -1
- package/web/app/immutable/chunks/{b30yTgwC.js → DTe6Ftd1.js} +1 -1
- package/web/app/immutable/chunks/{DJhhNZ7M.js → DUPWbCtk.js} +1 -1
- package/web/app/immutable/chunks/{D0s1SVt5.js → DURyQFvW.js} +1 -1
- package/web/app/immutable/chunks/{B88KZW78.js → DWpvI-rO.js} +1 -1
- package/web/app/immutable/chunks/{Cu1u-4wq.js → DXLKYoeU.js} +1 -1
- package/web/app/immutable/chunks/{C8MPntD9.js → D_pF64nv.js} +1 -1
- package/web/app/immutable/chunks/{_q-KbJHf.js → Daxq-PwF.js} +1 -1
- package/web/app/immutable/chunks/{C18Lu2A8.js → DbIzzzQq.js} +1 -1
- package/web/app/immutable/chunks/{s464WHxX.js → DdQFRJrC.js} +1 -1
- package/web/app/immutable/chunks/{CpCtdYM3.js → DdvVzktP.js} +1 -1
- package/web/app/immutable/chunks/{CFj0DasV.js → Dfhb9qw2.js} +1 -1
- package/web/app/immutable/chunks/{C1waf3iu.js → DhdgUzma.js} +1 -1
- package/web/app/immutable/chunks/{aK5j3GUe.js → DkKgyz1e.js} +1 -1
- package/web/app/immutable/chunks/{CHr6G3cY.js → DoQjTkOT.js} +1 -1
- package/web/app/immutable/chunks/{B9b_K-RG.js → Dq4-W1Dc.js} +1 -1
- package/web/app/immutable/chunks/{Dk7aFMZs.js → DuY_i2mb.js} +1 -1
- package/web/app/immutable/chunks/{B9Z-QU9w.js → DudQTeC0.js} +2 -2
- package/web/app/immutable/chunks/{khtpv5vo.js → Dv42ruvP.js} +1 -1
- package/web/app/immutable/chunks/{z8H4OcR3.js → DvvLPx_4.js} +1 -1
- package/web/app/immutable/chunks/{b_tEJldq.js → EJB5bdXM.js} +1 -1
- package/web/app/immutable/chunks/{DjakyUlc.js → Hb1d_WPy.js} +1 -1
- package/web/app/immutable/chunks/{C0BifgcV.js → IlPmC08g.js} +3 -3
- package/web/app/immutable/chunks/{2rbh16KP.js → IoC3U43a.js} +1 -1
- package/web/app/immutable/chunks/{DVDOk-ql.js → MGrNDwzT.js} +1 -1
- package/web/app/immutable/chunks/{PTikn3lb.js → Pmmb3VR-.js} +1 -1
- package/web/app/immutable/chunks/{Cs3L-D2A.js → SsYaBxTt.js} +1 -1
- package/web/app/immutable/chunks/{d7GMXNij.js → TVV4Q9gU.js} +1 -1
- package/web/app/immutable/chunks/{BkwxWGIh.js → U7SsMQct.js} +1 -1
- package/web/app/immutable/chunks/{yhs5mgcb.js → XnAFWmTe.js} +1 -1
- package/web/app/immutable/chunks/{CY04lbSN.js → e5B2ipLi.js} +1 -1
- package/web/app/immutable/chunks/{ryfL7_qm.js → h2KHMaND.js} +1 -1
- package/web/app/immutable/chunks/{Ik_OLFJv.js → i1ZckDxa.js} +1 -1
- package/web/app/immutable/chunks/{CK_Ox9jk.js → k-EyN6jr.js} +1 -1
- package/web/app/immutable/chunks/{CEr-aDm8.js → l1NC9Hgm.js} +1 -1
- package/web/app/immutable/chunks/{SVOpkWQp.js → muLZixgh.js} +2 -2
- package/web/app/immutable/chunks/{DzHxtEmT.js → oSRnc4fj.js} +3 -3
- package/web/app/immutable/chunks/{CapiHpD_.js → p8bG6pVA.js} +1 -1
- package/web/app/immutable/chunks/{CG_uU7t2.js → u-ym1ckW.js} +1 -1
- package/web/app/immutable/chunks/{CM4TK2R4.js → u9IFdNn6.js} +1 -1
- package/web/app/immutable/chunks/{B8kDwCP_.js → zyfDez44.js} +1 -1
- package/web/app/immutable/entry/{app.DnRD5eKq.js → app.EUfioTI5.js} +2 -2
- package/web/app/immutable/entry/start.DwBdczSm.js +1 -0
- package/web/app/immutable/nodes/{0.CmJ43u1e.js → 0.CsgopzU7.js} +1 -1
- package/web/app/immutable/nodes/{1.CqfYJXsK.js → 1.q-wS_1pz.js} +1 -1
- package/web/app/immutable/nodes/{10.Bl5RgWV9.js → 10.Cp4iNxKd.js} +1 -1
- package/web/app/immutable/nodes/{14.lB98JO4-.js → 14.CF3zC6g8.js} +1 -1
- package/web/app/immutable/nodes/{18.C1RSVrDA.js → 18.BwvMMQAS.js} +2 -2
- package/web/app/immutable/nodes/{2.CALBXNAI.js → 2.CAkxTHTY.js} +4 -4
- package/web/app/immutable/nodes/{3.Cbim6IQ0.js → 3.Cg7I2dou.js} +1 -1
- package/web/app/immutable/nodes/{4.CLMy68qv.js → 4.Dtpwe7YD.js} +1 -1
- package/web/app/immutable/nodes/{5.DTKqXK_K.js → 5.JEFKRNRo.js} +1 -1
- package/web/app/immutable/nodes/{6.COrZ368S.js → 6.C3za_Fhj.js} +1 -1
- package/web/app/immutable/nodes/{7.BOwmWuI7.js → 7.Cr9ThA7D.js} +1 -1
- package/web/app/immutable/nodes/{8.DVUc29Ay.js → 8.BQ46rkhw.js} +4 -4
- package/web/app/immutable/nodes/{9.Bf5-_PNq.js → 9.DGdMo6mc.js} +4 -4
- package/web/app/version.json +1 -1
- package/web/index.html +9 -9
- package/web/app/immutable/entry/start.CbqkOfEp.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var vo=Object.defineProperty;var bo=(e,t,i)=>t in e?vo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var v=(e,t,i)=>bo(e,typeof t!="symbol"?t+"":t,i);import{t as ir,bq as M,by as nr,b as rr,bu as dn,bs as So,bo as $e}from"./Y9-4hTF9.js";import{bs as or,a5 as De,ay as hn,bS as Xe,aD as C,bA as ke,b_ as Me,bO as rt,W as le,bl as Xt,be as Hi,bn as sr,c9 as ne,aA as I,b$ as ar,aB as ge,ai as yo,bV as Te,br as Co,ca as je,bH as Y,c5 as dt,bk as xo,bj as Lo,aj as wo,c0 as fn}from"./DYhIMPy1.js";import{i as we}from"./BL2lJmRT.js";import{f as un,g as pi,s as cn}from"./cFbB-5Cu.js";import{b as ko}from"./p7znhYIU.js";import{b as pn}from"./BaIAhI85.js";import{h as Eo,c as Ye,w as lr,N as O,O as Jt,b2 as Qe,a as dr,j as hr,P as Je,H as fr,i as ur,ab as cr,U as Ro,f as Ao,e as pr,T as Ho,g as To,S as Do,a4 as Ze,a3 as Ve,C as Mo,G as gr,F as Io,I as Fo,A as At,ah as No,$ as Ht,ad as Tt,v as St,a1 as Ti,s as J,r as Ue,an as wt,D as Po,d as zo,aa as mr,b as gn,u as mn,aI as Uo,ap as ct,ac as _o,K as Le,M as Ut,L as Oo,a0 as Dt,E as Bo,al as vr,a6 as Vo,a2 as vn,t as br,af as ft,a5 as kt,ae as ot,ag as Sr,B as gi,a9 as mi,k as Wo,aH as bn}from"./
|
|
1
|
+
var vo=Object.defineProperty;var bo=(e,t,i)=>t in e?vo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var v=(e,t,i)=>bo(e,typeof t!="symbol"?t+"":t,i);import{t as ir,bq as M,by as nr,b as rr,bu as dn,bs as So,bo as $e}from"./Y9-4hTF9.js";import{bs as or,a5 as De,ay as hn,bS as Xe,aD as C,bA as ke,b_ as Me,bO as rt,W as le,bl as Xt,be as Hi,bn as sr,c9 as ne,aA as I,b$ as ar,aB as ge,ai as yo,bV as Te,br as Co,ca as je,bH as Y,c5 as dt,bk as xo,bj as Lo,aj as wo,c0 as fn}from"./DYhIMPy1.js";import{i as we}from"./BL2lJmRT.js";import{f as un,g as pi,s as cn}from"./cFbB-5Cu.js";import{b as ko}from"./p7znhYIU.js";import{b as pn}from"./BaIAhI85.js";import{h as Eo,c as Ye,w as lr,N as O,O as Jt,b2 as Qe,a as dr,j as hr,P as Je,H as fr,i as ur,ab as cr,U as Ro,f as Ao,e as pr,T as Ho,g as To,S as Do,a4 as Ze,a3 as Ve,C as Mo,G as gr,F as Io,I as Fo,A as At,ah as No,$ as Ht,ad as Tt,v as St,a1 as Ti,s as J,r as Ue,an as wt,D as Po,d as zo,aa as mr,b as gn,u as mn,aI as Uo,ap as ct,ac as _o,K as Le,M as Ut,L as Oo,a0 as Dt,E as Bo,al as vr,a6 as Vo,a2 as vn,t as br,af as ft,a5 as kt,ae as ot,ag as Sr,B as gi,a9 as mi,k as Wo,aH as bn}from"./Beu80YXu.js";import{g as Go,i as $o}from"./BZQDFgmp.js";import{F as vi,c4 as jo,be as qo,at as Ko,as as Xo}from"./Mc93eSxl.js";import{f as Di}from"./q6hitSEG.js";import"./DOH10_LL.js";import{g as Yo}from"./5GYSXevc.js";import{c as Qo}from"./DU9Ky5os.js";import{P as Jo}from"./0rarVWHK.js";import{t as Sn}from"./BLgIfeYS.js";class Zo extends Eo{constructor(){super(...arguments),this.tokenize=ts}equals(t,i,n){return n.ignoreWhitespace?((!n.newlineIsToken||!t.includes(`
|
|
2
2
|
`))&&(t=t.trim()),(!n.newlineIsToken||!i.includes(`
|
|
3
3
|
`))&&(i=i.trim())):n.ignoreNewlineAtEof&&!n.newlineIsToken&&(t.endsWith(`
|
|
4
4
|
`)&&(t=t.slice(0,-1)),i.endsWith(`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as ze}from"./jX7_8poo.js";import{s as Xe}from"./B88KZW78.js";import{b as m,W as Be,a_ as Je,V as Ze,aZ as et,U as tt,b0 as st,Y as it,X as Ne,ay as qe,r as rt,am as nt,aU as at,ab as lt,aG as ct,_ as ot,a1 as ht,aP as ut,bh as ft}from"./CBc9tLFK.js";var Ce=(function(){var e=m(function($,i,n,o){for(n=n||{},o=$.length;o--;n[$[o]]=i);return n},"o"),r=[1,3],u=[1,4],h=[1,5],f=[1,6],a=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],c=[1,22],S=[2,7],d=[1,26],_=[1,27],b=[1,28],q=[1,29],C=[1,33],A=[1,34],V=[1,35],v=[1,36],L=[1,37],x=[1,38],w=[1,24],D=[1,31],O=[1,32],M=[1,30],R=[1,39],g=[1,40],p=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],P=[1,61],X=[89,90],Ae=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Ee=[27,29],Ve=[1,70],ve=[1,71],Le=[1,72],xe=[1,73],we=[1,74],De=[1,75],Oe=[1,76],ee=[1,83],U=[1,80],te=[1,84],se=[1,85],ie=[1,86],re=[1,87],ne=[1,88],ae=[1,89],le=[1,90],ce=[1,91],oe=[1,92],pe=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Y=[63,64],Me=[1,101],Fe=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],T=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],B=[1,110],Q=[1,106],H=[1,107],K=[1,108],W=[1,109],j=[1,111],he=[1,116],ue=[1,117],fe=[1,114],me=[1,115],Se={trace:m(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:m(function(i,n,o,s,E,t,de){var l=t.length-1;switch(E){case 4:this.$=t[l].trim(),s.setAccTitle(this.$);break;case 5:case 6:this.$=t[l].trim(),s.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:s.setDirection("TB");break;case 18:s.setDirection("BT");break;case 19:s.setDirection("RL");break;case 20:s.setDirection("LR");break;case 21:s.addRequirement(t[l-3],t[l-4]);break;case 22:s.addRequirement(t[l-5],t[l-6]),s.setClass([t[l-5]],t[l-3]);break;case 23:s.setNewReqId(t[l-2]);break;case 24:s.setNewReqText(t[l-2]);break;case 25:s.setNewReqRisk(t[l-2]);break;case 26:s.setNewReqVerifyMethod(t[l-2]);break;case 29:this.$=s.RequirementType.REQUIREMENT;break;case 30:this.$=s.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=s.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=s.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=s.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=s.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=s.RiskLevel.LOW_RISK;break;case 36:this.$=s.RiskLevel.MED_RISK;break;case 37:this.$=s.RiskLevel.HIGH_RISK;break;case 38:this.$=s.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=s.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=s.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=s.VerifyType.VERIFY_TEST;break;case 42:s.addElement(t[l-3]);break;case 43:s.addElement(t[l-5]),s.setClass([t[l-5]],t[l-3]);break;case 44:s.setNewElementType(t[l-2]);break;case 45:s.setNewElementDocRef(t[l-2]);break;case 48:s.addRelationship(t[l-2],t[l],t[l-4]);break;case 49:s.addRelationship(t[l-2],t[l-4],t[l]);break;case 50:this.$=s.Relationships.CONTAINS;break;case 51:this.$=s.Relationships.COPIES;break;case 52:this.$=s.Relationships.DERIVES;break;case 53:this.$=s.Relationships.SATISFIES;break;case 54:this.$=s.Relationships.VERIFIES;break;case 55:this.$=s.Relationships.REFINES;break;case 56:this.$=s.Relationships.TRACES;break;case 57:this.$=t[l-2],s.defineClass(t[l-1],t[l]);break;case 58:s.setClass(t[l-1],t[l]);break;case 59:s.setClass([t[l-2]],t[l]);break;case 60:case 62:this.$=[t[l]];break;case 61:case 63:this.$=t[l-2].concat([t[l]]);break;case 64:this.$=t[l-2],s.setCssStyle(t[l-1],t[l]);break;case 65:this.$=[t[l]];break;case 66:t[l-2].push(t[l]),this.$=t[l-2];break;case 68:this.$=t[l-1]+t[l];break}},"anonymous"),table:[{3:1,4:2,6:r,9:u,11:h,13:f},{1:[3]},{3:8,4:2,5:[1,7],6:r,9:u,11:h,13:f},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(a,[2,6]),{3:12,4:2,6:r,9:u,11:h,13:f},{1:[2,2]},{4:17,5:c,7:13,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},e(a,[2,4]),e(a,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:c,7:42,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:43,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:44,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:45,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:46,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:47,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:48,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:49,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:50,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(p,[2,17]),e(p,[2,18]),e(p,[2,19]),e(p,[2,20]),{30:60,33:62,75:P,89:R,90:g},{30:63,33:62,75:P,89:R,90:g},{30:64,33:62,75:P,89:R,90:g},e(X,[2,29]),e(X,[2,30]),e(X,[2,31]),e(X,[2,32]),e(X,[2,33]),e(X,[2,34]),e(Ae,[2,81]),e(Ae,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(Ee,[2,79]),e(Ee,[2,80]),{27:[1,67],29:[1,68]},e(Ee,[2,85]),e(Ee,[2,86]),{62:69,65:Ve,66:ve,67:Le,68:xe,69:we,70:De,71:Oe},{62:77,65:Ve,66:ve,67:Le,68:xe,69:we,70:De,71:Oe},{30:78,33:62,75:P,89:R,90:g},{73:79,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},e(pe,[2,60]),e(pe,[2,62]),{73:93,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},{30:94,33:62,75:P,76:U,89:R,90:g},{5:[1,95]},{30:96,33:62,75:P,89:R,90:g},{5:[1,97]},{30:98,33:62,75:P,89:R,90:g},{63:[1,99]},e(Y,[2,50]),e(Y,[2,51]),e(Y,[2,52]),e(Y,[2,53]),e(Y,[2,54]),e(Y,[2,55]),e(Y,[2,56]),{64:[1,100]},e(p,[2,59],{76:U}),e(p,[2,64],{76:Me}),{33:103,75:[1,102],89:R,90:g},e(Fe,[2,65],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe}),e(T,[2,67]),e(T,[2,69]),e(T,[2,70]),e(T,[2,71]),e(T,[2,72]),e(T,[2,73]),e(T,[2,74]),e(T,[2,75]),e(T,[2,76]),e(T,[2,77]),e(T,[2,78]),e(p,[2,57],{76:Me}),e(p,[2,58],{76:U}),{5:B,28:105,31:Q,34:H,36:K,38:W,40:j},{27:[1,112],76:U},{5:he,40:ue,56:113,57:fe,59:me},{27:[1,118],76:U},{33:119,89:R,90:g},{33:120,89:R,90:g},{75:ee,78:121,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},e(pe,[2,61]),e(pe,[2,63]),e(T,[2,68]),e(p,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:B,28:126,31:Q,34:H,36:K,38:W,40:j},e(p,[2,28]),{5:[1,127]},e(p,[2,42]),{32:[1,128]},{32:[1,129]},{5:he,40:ue,56:130,57:fe,59:me},e(p,[2,47]),{5:[1,131]},e(p,[2,48]),e(p,[2,49]),e(Fe,[2,66],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe}),{33:132,89:R,90:g},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(p,[2,27]),{5:B,28:145,31:Q,34:H,36:K,38:W,40:j},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(p,[2,46]),{5:he,40:ue,56:152,57:fe,59:me},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(p,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(p,[2,43]),{5:B,28:159,31:Q,34:H,36:K,38:W,40:j},{5:B,28:160,31:Q,34:H,36:K,38:W,40:j},{5:B,28:161,31:Q,34:H,36:K,38:W,40:j},{5:B,28:162,31:Q,34:H,36:K,38:W,40:j},{5:he,40:ue,56:163,57:fe,59:me},{5:he,40:ue,56:164,57:fe,59:me},e(p,[2,23]),e(p,[2,24]),e(p,[2,25]),e(p,[2,26]),e(p,[2,44]),e(p,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:m(function(i,n){if(n.recoverable)this.trace(i);else{var o=new Error(i);throw o.hash=n,o}},"parseError"),parse:m(function(i){var n=this,o=[0],s=[],E=[null],t=[],de=this.table,l="",ge=0,$e=0,Ke=2,Pe=1,We=t.slice.call(arguments,1),y=Object.create(this.lexer),G={yy:{}};for(var be in this.yy)Object.prototype.hasOwnProperty.call(this.yy,be)&&(G.yy[be]=this.yy[be]);y.setInput(i,G.yy),G.yy.lexer=y,G.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var Ie=y.yylloc;t.push(Ie);var je=y.options&&y.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ge(k){o.length=o.length-2*k,E.length=E.length-k,t.length=t.length-k}m(Ge,"popStack");function Ue(){var k;return k=s.pop()||y.lex()||Pe,typeof k!="number"&&(k instanceof Array&&(s=k,k=s.pop()),k=n.symbols_[k]||k),k}m(Ue,"lex");for(var I,z,N,ke,J={},ye,F,Ye,_e;;){if(z=o[o.length-1],this.defaultActions[z]?N=this.defaultActions[z]:((I===null||typeof I>"u")&&(I=Ue()),N=de[z]&&de[z][I]),typeof N>"u"||!N.length||!N[0]){var Te="";_e=[];for(ye in de[z])this.terminals_[ye]&&ye>Ke&&_e.push("'"+this.terminals_[ye]+"'");y.showPosition?Te="Parse error on line "+(ge+1)+`:
|
|
1
|
+
import{g as ze}from"./Boxybwc5.js";import{s as Xe}from"./DWpvI-rO.js";import{b as m,W as Be,a_ as Je,V as Ze,aZ as et,U as tt,b0 as st,Y as it,X as Ne,ay as qe,r as rt,am as nt,aU as at,ab as lt,aG as ct,_ as ot,a1 as ht,aP as ut,bh as ft}from"./BsiP9jat.js";var Ce=(function(){var e=m(function($,i,n,o){for(n=n||{},o=$.length;o--;n[$[o]]=i);return n},"o"),r=[1,3],u=[1,4],h=[1,5],f=[1,6],a=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],c=[1,22],S=[2,7],d=[1,26],_=[1,27],b=[1,28],q=[1,29],C=[1,33],A=[1,34],V=[1,35],v=[1,36],L=[1,37],x=[1,38],w=[1,24],D=[1,31],O=[1,32],M=[1,30],R=[1,39],g=[1,40],p=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],P=[1,61],X=[89,90],Ae=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Ee=[27,29],Ve=[1,70],ve=[1,71],Le=[1,72],xe=[1,73],we=[1,74],De=[1,75],Oe=[1,76],ee=[1,83],U=[1,80],te=[1,84],se=[1,85],ie=[1,86],re=[1,87],ne=[1,88],ae=[1,89],le=[1,90],ce=[1,91],oe=[1,92],pe=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Y=[63,64],Me=[1,101],Fe=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],T=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],B=[1,110],Q=[1,106],H=[1,107],K=[1,108],W=[1,109],j=[1,111],he=[1,116],ue=[1,117],fe=[1,114],me=[1,115],Se={trace:m(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:m(function(i,n,o,s,E,t,de){var l=t.length-1;switch(E){case 4:this.$=t[l].trim(),s.setAccTitle(this.$);break;case 5:case 6:this.$=t[l].trim(),s.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:s.setDirection("TB");break;case 18:s.setDirection("BT");break;case 19:s.setDirection("RL");break;case 20:s.setDirection("LR");break;case 21:s.addRequirement(t[l-3],t[l-4]);break;case 22:s.addRequirement(t[l-5],t[l-6]),s.setClass([t[l-5]],t[l-3]);break;case 23:s.setNewReqId(t[l-2]);break;case 24:s.setNewReqText(t[l-2]);break;case 25:s.setNewReqRisk(t[l-2]);break;case 26:s.setNewReqVerifyMethod(t[l-2]);break;case 29:this.$=s.RequirementType.REQUIREMENT;break;case 30:this.$=s.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=s.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=s.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=s.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=s.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=s.RiskLevel.LOW_RISK;break;case 36:this.$=s.RiskLevel.MED_RISK;break;case 37:this.$=s.RiskLevel.HIGH_RISK;break;case 38:this.$=s.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=s.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=s.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=s.VerifyType.VERIFY_TEST;break;case 42:s.addElement(t[l-3]);break;case 43:s.addElement(t[l-5]),s.setClass([t[l-5]],t[l-3]);break;case 44:s.setNewElementType(t[l-2]);break;case 45:s.setNewElementDocRef(t[l-2]);break;case 48:s.addRelationship(t[l-2],t[l],t[l-4]);break;case 49:s.addRelationship(t[l-2],t[l-4],t[l]);break;case 50:this.$=s.Relationships.CONTAINS;break;case 51:this.$=s.Relationships.COPIES;break;case 52:this.$=s.Relationships.DERIVES;break;case 53:this.$=s.Relationships.SATISFIES;break;case 54:this.$=s.Relationships.VERIFIES;break;case 55:this.$=s.Relationships.REFINES;break;case 56:this.$=s.Relationships.TRACES;break;case 57:this.$=t[l-2],s.defineClass(t[l-1],t[l]);break;case 58:s.setClass(t[l-1],t[l]);break;case 59:s.setClass([t[l-2]],t[l]);break;case 60:case 62:this.$=[t[l]];break;case 61:case 63:this.$=t[l-2].concat([t[l]]);break;case 64:this.$=t[l-2],s.setCssStyle(t[l-1],t[l]);break;case 65:this.$=[t[l]];break;case 66:t[l-2].push(t[l]),this.$=t[l-2];break;case 68:this.$=t[l-1]+t[l];break}},"anonymous"),table:[{3:1,4:2,6:r,9:u,11:h,13:f},{1:[3]},{3:8,4:2,5:[1,7],6:r,9:u,11:h,13:f},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(a,[2,6]),{3:12,4:2,6:r,9:u,11:h,13:f},{1:[2,2]},{4:17,5:c,7:13,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},e(a,[2,4]),e(a,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:c,7:42,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:43,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:44,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:45,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:46,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:47,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:48,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:49,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:50,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(p,[2,17]),e(p,[2,18]),e(p,[2,19]),e(p,[2,20]),{30:60,33:62,75:P,89:R,90:g},{30:63,33:62,75:P,89:R,90:g},{30:64,33:62,75:P,89:R,90:g},e(X,[2,29]),e(X,[2,30]),e(X,[2,31]),e(X,[2,32]),e(X,[2,33]),e(X,[2,34]),e(Ae,[2,81]),e(Ae,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(Ee,[2,79]),e(Ee,[2,80]),{27:[1,67],29:[1,68]},e(Ee,[2,85]),e(Ee,[2,86]),{62:69,65:Ve,66:ve,67:Le,68:xe,69:we,70:De,71:Oe},{62:77,65:Ve,66:ve,67:Le,68:xe,69:we,70:De,71:Oe},{30:78,33:62,75:P,89:R,90:g},{73:79,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},e(pe,[2,60]),e(pe,[2,62]),{73:93,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},{30:94,33:62,75:P,76:U,89:R,90:g},{5:[1,95]},{30:96,33:62,75:P,89:R,90:g},{5:[1,97]},{30:98,33:62,75:P,89:R,90:g},{63:[1,99]},e(Y,[2,50]),e(Y,[2,51]),e(Y,[2,52]),e(Y,[2,53]),e(Y,[2,54]),e(Y,[2,55]),e(Y,[2,56]),{64:[1,100]},e(p,[2,59],{76:U}),e(p,[2,64],{76:Me}),{33:103,75:[1,102],89:R,90:g},e(Fe,[2,65],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe}),e(T,[2,67]),e(T,[2,69]),e(T,[2,70]),e(T,[2,71]),e(T,[2,72]),e(T,[2,73]),e(T,[2,74]),e(T,[2,75]),e(T,[2,76]),e(T,[2,77]),e(T,[2,78]),e(p,[2,57],{76:Me}),e(p,[2,58],{76:U}),{5:B,28:105,31:Q,34:H,36:K,38:W,40:j},{27:[1,112],76:U},{5:he,40:ue,56:113,57:fe,59:me},{27:[1,118],76:U},{33:119,89:R,90:g},{33:120,89:R,90:g},{75:ee,78:121,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},e(pe,[2,61]),e(pe,[2,63]),e(T,[2,68]),e(p,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:B,28:126,31:Q,34:H,36:K,38:W,40:j},e(p,[2,28]),{5:[1,127]},e(p,[2,42]),{32:[1,128]},{32:[1,129]},{5:he,40:ue,56:130,57:fe,59:me},e(p,[2,47]),{5:[1,131]},e(p,[2,48]),e(p,[2,49]),e(Fe,[2,66],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe}),{33:132,89:R,90:g},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(p,[2,27]),{5:B,28:145,31:Q,34:H,36:K,38:W,40:j},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(p,[2,46]),{5:he,40:ue,56:152,57:fe,59:me},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(p,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(p,[2,43]),{5:B,28:159,31:Q,34:H,36:K,38:W,40:j},{5:B,28:160,31:Q,34:H,36:K,38:W,40:j},{5:B,28:161,31:Q,34:H,36:K,38:W,40:j},{5:B,28:162,31:Q,34:H,36:K,38:W,40:j},{5:he,40:ue,56:163,57:fe,59:me},{5:he,40:ue,56:164,57:fe,59:me},e(p,[2,23]),e(p,[2,24]),e(p,[2,25]),e(p,[2,26]),e(p,[2,44]),e(p,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:m(function(i,n){if(n.recoverable)this.trace(i);else{var o=new Error(i);throw o.hash=n,o}},"parseError"),parse:m(function(i){var n=this,o=[0],s=[],E=[null],t=[],de=this.table,l="",ge=0,$e=0,Ke=2,Pe=1,We=t.slice.call(arguments,1),y=Object.create(this.lexer),G={yy:{}};for(var be in this.yy)Object.prototype.hasOwnProperty.call(this.yy,be)&&(G.yy[be]=this.yy[be]);y.setInput(i,G.yy),G.yy.lexer=y,G.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var Ie=y.yylloc;t.push(Ie);var je=y.options&&y.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ge(k){o.length=o.length-2*k,E.length=E.length-k,t.length=t.length-k}m(Ge,"popStack");function Ue(){var k;return k=s.pop()||y.lex()||Pe,typeof k!="number"&&(k instanceof Array&&(s=k,k=s.pop()),k=n.symbols_[k]||k),k}m(Ue,"lex");for(var I,z,N,ke,J={},ye,F,Ye,_e;;){if(z=o[o.length-1],this.defaultActions[z]?N=this.defaultActions[z]:((I===null||typeof I>"u")&&(I=Ue()),N=de[z]&&de[z][I]),typeof N>"u"||!N.length||!N[0]){var Te="";_e=[];for(ye in de[z])this.terminals_[ye]&&ye>Ke&&_e.push("'"+this.terminals_[ye]+"'");y.showPosition?Te="Parse error on line "+(ge+1)+`:
|
|
2
2
|
`+y.showPosition()+`
|
|
3
3
|
Expecting `+_e.join(", ")+", got '"+(this.terminals_[I]||I)+"'":Te="Parse error on line "+(ge+1)+": Unexpected "+(I==Pe?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(Te,{text:y.match,token:this.terminals_[I]||I,line:y.yylineno,loc:Ie,expected:_e})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+z+", token: "+I);switch(N[0]){case 1:o.push(I),E.push(y.yytext),t.push(y.yylloc),o.push(N[1]),I=null,$e=y.yyleng,l=y.yytext,ge=y.yylineno,Ie=y.yylloc;break;case 2:if(F=this.productions_[N[1]][1],J.$=E[E.length-F],J._$={first_line:t[t.length-(F||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(F||1)].first_column,last_column:t[t.length-1].last_column},je&&(J._$.range=[t[t.length-(F||1)].range[0],t[t.length-1].range[1]]),ke=this.performAction.apply(J,[l,$e,ge,G.yy,N[1],E,t].concat(We)),typeof ke<"u")return ke;F&&(o=o.slice(0,-1*F*2),E=E.slice(0,-1*F),t=t.slice(0,-1*F)),o.push(this.productions_[N[1]][0]),E.push(J.$),t.push(J._$),Ye=de[o[o.length-2]][o[o.length-1]],o.push(Ye);break;case 3:return!0}}return!0},"parse")},He=(function(){var $={EOF:1,parseError:m(function(n,o){if(this.yy.parser)this.yy.parser.parseError(n,o);else throw new Error(n)},"parseError"),setInput:m(function(i,n){return this.yy=n||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:m(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var n=i.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:m(function(i){var n=i.length,o=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),o.length-1&&(this.yylineno-=o.length-1);var E=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:o?(o.length===s.length?this.yylloc.first_column:0)+s[s.length-o.length].length-o[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:m(function(){return this._more=!0,this},"more"),reject:m(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:m(function(i){this.unput(this.match.slice(i))},"less"),pastInput:m(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:m(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:m(function(){var i=this.pastInput(),n=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as C}from"./
|
|
1
|
+
import{D as C}from"./Pmmb3VR-.js";import{t as re,bq as y,by as se,b as ae,bo as I}from"./Y9-4hTF9.js";import{bs as ne,cb as oe,c5 as ie,bH as k,aD as b,a5 as G,bA as q,b_ as R,W as E,bn as le,bV as W,c9 as F,aA as x,ay as H,bl as N,bS as L,bO as O,a7 as ce,aB as P}from"./DYhIMPy1.js";import{i as de}from"./BL2lJmRT.js";import{k as ue}from"./C6vwP-ay.js";import{s as D}from"./cFbB-5Cu.js";import{a as me}from"./BsiP9jat.js";const K=C.shape.model,pe=C.shape.states.unwrap().element;function U(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function fe(t){return/^(?:|model|model\.(?:nodes|edges|groups)|states)$/.test(t)}function ge(t){let e=0;const s=()=>{for(;/[\t\n\r ]/.test(t[e]??"\0");)e+=1},a=(l,d)=>{if(d>64)throw new Error("JSON nesting limit exceeded");s();const f=e,u=t[e];if(u===void 0)return{complete:!1};if(u==='"'){for(e+=1;e<t.length;){const r=t[e++];if(r==="\\")e+=1;else if(r==='"')return{value:JSON.parse(t.slice(f,e)),complete:!0}}return{complete:!1}}if(u==="{"||u==="["){const r=u==="{",c=r?Object.create(null):[],h=r?"}":"]";if(e+=1,s(),t[e]===h)return e+=1,{value:c,complete:!0};for(;e<t.length;){let i="";if(r){if(t[e]!=='"')throw new Error("Expected JSON property");const _=a(l,d+1);if(!_.complete)return{value:c,complete:!1};if(i=_.value,s(),e===t.length)return{value:c,complete:!1};if(t[e++]!==":")throw new Error("Expected JSON colon")}const g=r?l?`${l}.${i}`:i:`${l}[]`,v=a(g,d+1);if((v.complete||fe(g)&&v.value!==void 0)&&(Array.isArray(c)?c.push(v.value):c[i]=v.value),!v.complete)return{value:c,complete:!1};if(s(),e===t.length)return{value:c,complete:!1};if(t[e]===h)return e+=1,{value:c,complete:!0};if(t[e++]!==",")throw new Error("Expected JSON separator");s()}return{value:c,complete:!1}}for(;e<t.length&&!/[\t\n\r ,}\]]/.test(t[e]);)e+=1;return e===t.length?{complete:!1}:{value:JSON.parse(t.slice(f,e)),complete:!0}},n=a("",0);if(s(),n.complete&&e!==t.length)throw new Error("Unexpected JSON suffix");return n}function J(t){const e=new Set;return t.filter(({id:s})=>e.has(s)?!1:(e.add(s),!0))}function z(t,e,s,a){return[t.visibleNodes,t.highlightedNodes].every(n=>n?.every(l=>e.has(l))??!0)&&[t.visibleEdges,t.highlightedEdges].every(n=>n?.every(l=>s.has(l))??!0)&&(t.visibleGroups?.every(n=>a.has(n))??!0)&&(t.camera?.focus===void 0||e.has(t.camera.focus))}function ve(t){if(!U(t)||!U(t.model))return null;const e=t.model,s=(i,g)=>Array.isArray(i)?i.filter(v=>g.safeParse(v).success):[];let a=J(s(e.nodes,K.shape.nodes.element)),n=J(s(e.groups,K.shape.groups.unwrap().element)),l=!0;for(;l;){const i=new Set(a.map(({id:m})=>m)),g=n.filter(m=>m.nodeIds.every(A=>i.has(A))),v=new Set(g.map(({id:m})=>m)),_=a.filter(m=>m.group===void 0||v.has(m.group));l=_.length!==a.length||g.length!==n.length,a=_,n=g}if(!a.length)return null;const d=new Set(a.map(({id:i})=>i)),f=J(s(e.edges,K.shape.edges.element)).filter(i=>d.has(i.from)&&d.has(i.to)),u=new Set(f.map(({id:i})=>i)),r=new Set(n.map(({id:i})=>i)),c=J(s(t.states,pe)).filter(i=>z(i,d,u,r)),h={...t,model:{...e,nodes:a,edges:f,...e.groups===void 0?{}:{groups:n}},...t.states===void 0?{}:{states:c}};return c.some(i=>i.id===h.currentStateId)||delete h.currentStateId,C.safeParse(h).success?h:null}function V(t){if(!C.safeParse(t).success)return null;const e=t,{nodes:s,edges:a,groups:n=[]}=e.model,l=e.states??[],d=new Set(s.map(({id:r})=>r)),f=new Set(a.map(({id:r})=>r)),u=new Set(n.map(({id:r})=>r));return[s,a,n,l].some(r=>new Set(r.map(({id:c})=>c)).size!==r.length)||s.some(r=>r.group!==void 0&&!u.has(r.group))||a.some(r=>!d.has(r.from)||!d.has(r.to))||n.some(r=>r.nodeIds.some(c=>!d.has(c)))||l.some(r=>!z(r,d,f,u))||e.currentStateId!==void 0&&!l.some(r=>r.id===e.currentStateId)?null:e}function Oe(t,e=!1){const s=(a,n,l)=>({rawSource:t,status:a,diagram:n,...l?{error:l}:{}});try{if(e){const n=V(JSON.parse(t));return n?s("complete",n):s("invalid",null,"Invalid diagram payload")}const a=ge(t);if(a.complete){const n=V(a.value);if(n)return s("complete",n)}return s("partial",ve(a.value))}catch{return s(e?"invalid":"partial",null,e?"Invalid diagram JSON":void 0)}}var he=P('<div class="diagram-feedback svelte-p097sp" role="alert"><strong> </strong> <span> </span></div> <pre class="diagram-source svelte-p097sp"> </pre>',1),we=P('<div class="diagram-feedback svelte-p097sp" role="status"> </div>'),Se=P('<div class="streaming-diagram svelte-p097sp"><!></div>');function _e(t,e){if(new.target)return re({component:_e,...t});ne(e,!0);let s=y(e,"diagram",7),a=y(e,"isStreaming",7,!1),n=y(e,"source",7),l=y(e,"sourceError",7),d=y(e,"viewResetKey",7),f=y(e,"onBindingClick",7),u=W(null),r=W(0),c="",h,i=!1;oe(()=>{const o=s(),p=n(),w=d(),S=a(),B=!!l();ie(()=>{i&&(w!==h||!p.startsWith(c))&&(k(u,null),k(r,b(r)+1)),i=!0,c=p,h=w,B||!S&&!o?k(u,null):o&&k(u,o,!0)})});const g=F(()=>l()?null:s()??(a()?b(u):null)),v=F(()=>!!l()||!a()&&!s());var _={get diagram(){return s()},set diagram(o){s(o),x()},get isStreaming(){return a()},set isStreaming(o=!1){a(o),x()},get source(){return n()},set source(o){n(o),x()},get sourceError(){return l()},set sourceError(o){l(o),x()},get viewResetKey(){return d()},set viewResetKey(o){d(o),x()},get onBindingClick(){return f()},set onBindingClick(o){f(o),x()},$set:se,$on:(o,p)=>ae(e,o,p)},m=Se(),A=G(m);{var M=o=>{var p=he(),w=H(p),S=G(w),B=N(S,!0),X=L(S,2),Y=N(X,!0);q(w);var j=L(w,2),Z=N(j,!0);R(($,ee,te)=>{O(B,$),O(Y,ee),D(j,"aria-label",te),O(Z,n())},[()=>I.markdown_mermaid_renderFailed_error(),()=>I.diagram_renderer_error_description(),()=>I.markdown_mermaid_viewSource_label()]),E(o,p)},Q=o=>{var p=ce(),w=H(p);ue(w,()=>b(r),S=>{me(S,{get diagram(){return b(g)},editable:!1,get viewResetKey(){return d()},get onBindingClick(){return f()}})}),E(o,p)},T=o=>{var p=we(),w=N(p,!0);R(S=>O(w,S),[()=>I.ui_spinner_loading_ariaLabel()]),E(o,p)};de(A,o=>{b(v)?o(M):b(g)?o(Q,1):o(T,-1)})}return q(m),R(()=>{D(m,"aria-busy",a()),D(m,"data-diagram-streaming",a())}),E(t,m),le(_)}export{_e as S,Oe as p};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as i,aW as l,aw as d,P as o}from"./
|
|
1
|
+
import{b as i,aW as l,aw as d,P as o}from"./BsiP9jat.js";var x=i((r,t)=>{const e=r.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx&&e.attr("rx",t.rx),t.ry&&e.attr("ry",t.ry),t.attrs!==void 0)for(const s in t.attrs)e.attr(s,t.attrs[s]);return t.class&&e.attr("class",t.class),e},"drawRect"),p=i((r,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};x(r,e).lower()},"drawBackgroundRect"),y=i((r,t)=>{const e=t.text.replace(d," "),s=r.append("text");s.attr("x",t.x),s.attr("y",t.y),s.attr("class","legend"),s.style("text-anchor",t.anchor),t.class&&s.attr("class",t.class);const a=s.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.text(e),s},"drawText"),m=i((r,t,e,s)=>{const a=r.append("image");a.attr("x",t),a.attr("y",e);const n=o.sanitizeUrl(s);a.attr("xlink:href",n)},"drawImage"),g=i((r,t,e,s)=>{const a=r.append("use");a.attr("x",t),a.attr("y",e);const n=o.sanitizeUrl(s);a.attr("xlink:href",`#${n}`)},"drawEmbeddedImage"),h=i(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),f=i(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),w=i(()=>{let r=l(".mermaidTooltip");return r.empty()&&(r=l("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),r},"createTooltip");export{g as a,m as b,w as c,p as d,x as e,y as f,h as g,f as h};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as z}from"./
|
|
1
|
+
import{p as z}from"./C_7dsakQ.js";import{b as f,q as B,aX as E,B as F,ay as $,a_ as P,V as A,b0 as W,Y as _,U as N,aZ as Y,W as L,O as M,r as O}from"./BsiP9jat.js";import{p as I}from"./CUxXMHrG.js";var U=M.packet,u,C=(u=class{constructor(){this.packet=[],this.setAccTitle=P,this.getAccTitle=A,this.setDiagramTitle=W,this.getDiagramTitle=_,this.getAccDescription=N,this.setAccDescription=Y}getConfig(){const t=B({...U,...L().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){O(),this.packet=[]}},f(u,"PacketDB"),u),X=1e4,j=f((e,t)=>{z(e,t);let r=-1,s=[],i=1;const{bitsPerRow:l}=t.getConfig();for(let{start:a,end:o,bits:d,label:g}of e.blocks){if(a!==void 0&&o!==void 0&&o<a)throw new Error(`Packet block ${a} - ${o} is invalid. End must be greater than start.`);if(a??=r+1,a!==r+1)throw new Error(`Packet block ${a} - ${o??a} is not contiguous. It should start from ${r+1}.`);if(d===0)throw new Error(`Packet block ${a} is invalid. Cannot have a zero bit field.`);for(o??=a+(d??1)-1,d??=o-a+1,r=o,$.debug(`Packet block ${a} - ${r} with label ${g}`);s.length<=l+1&&t.getPacket().length<X;){const[c,p]=q({start:a,end:o,bits:d,label:g},i,l);if(s.push(c),c.end+1===i*l&&(t.pushWord(s),s=[],i++),!p)break;({start:a,end:o,bits:d,label:g}=p)}}t.pushWord(s)},"populate"),q=f((e,t,r)=>{if(e.start===void 0)throw new Error("start should have been set during first phase");if(e.end===void 0)throw new Error("end should have been set during first phase");if(e.start>e.end)throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*r)return[e,void 0];const s=t*r-1,i=t*r;return[{start:e.start,end:s,label:e.label,bits:s-e.start},{start:i,end:e.end,label:e.label,bits:e.end-i}]},"getNextFittingBlock"),S={parser:{yy:void 0},parse:f(async e=>{const t=await I("packet",e),r=S.parser?.yy;if(!(r instanceof C))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");$.debug(t),j(t,r)},"parse")},G=f((e,t,r,s)=>{const i=s.db,l=i.getConfig(),{rowHeight:a,paddingY:o,bitWidth:d,bitsPerRow:g}=l,c=i.getPacket(),p=i.getDiagramTitle(),m=a+o,n=m*(c.length+1)-(p?0:a),h=d*g+2,k=E(t);k.attr("viewBox",`0 0 ${h} ${n}`),F(k,n,h,l.useMaxWidth);for(const[x,b]of c.entries())H(k,b,x,l);k.append("text").text(p).attr("x",h/2).attr("y",n-m/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),H=f((e,t,r,{rowHeight:s,paddingX:i,paddingY:l,bitWidth:a,bitsPerRow:o,showBits:d,bitOrder:g})=>{const c=e.append("g"),p=r*(s+l)+l,m=g==="descending";for(const n of t){const h=n.end-n.start+1,k=n.start%o,b=(m?o-k-h:k)*a+1,w=h*a-i;if(c.append("rect").attr("x",b).attr("y",p).attr("width",w).attr("height",s).attr("class","packetBlock"),c.append("text").attr("x",b+w/2).attr("y",p+s/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(n.label),!d)continue;const[D,T]=m?[n.end,n.start]:[n.start,n.end],v=h===1,y=p-2;c.append("text").attr("x",b+(v?w/2:0)).attr("y",y).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",v?"middle":"start").text(D),v||c.append("text").attr("x",b+w).attr("y",y).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(T)}},"drawWord"),K={draw:G},V={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},Z=f(({packet:e}={})=>{const t=B(V,e);return`
|
|
2
2
|
.packetByte {
|
|
3
3
|
font-size: ${t.byteFontSize};
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as i}from"./
|
|
1
|
+
import{b as i}from"./BsiP9jat.js";function t(c,e){c.accDescr&&e.setAccDescription?.(c.accDescr),c.accTitle&&e.setAccTitle?.(c.accTitle),c.title&&e.setDiagramTitle?.(c.title)}i(t,"populateCommonDb");export{t as p};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as Ut}from"./jX7_8poo.js";import{s as Kt}from"./B88KZW78.js";import{b as f,C as Tt,a_ as Zt,V as jt,aZ as Wt,U as qt,b0 as Ht,Y as Qt,X as tt,ay as F,z as Xt,r as Jt,$ as $t,am as te,aU as ee,ab as se,aG as ie,aT as re,p as ae,_ as ne,a1 as oe,aP as ce,aW as le,bh as he}from"./CBc9tLFK.js";var Ct=(function(){var s=f(function(G,n,l,d){for(l=l||{},d=G.length;d--;l[G[d]]=n);return l},"o"),a=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],o=[2,2],c=[1,7],r=[1,9],u=[1,10],y=[1,11],g=[1,12],k=[1,30],C=[1,23],p=[1,24],b=[1,25],A=[1,26],v=[1,27],O=[1,19],N=[1,28],I=[1,29],x=[1,20],D=[1,18],L=[1,21],w=[1,22],Ot=[2,6],h=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],dt=[1,36],pt=[1,37],ft=[1,38],bt=[1,39],gt=[1,40],Z=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],V=[1,46],M=[1,47],j=[1,57],W=[43,51,53,54,55,74,75],q=[1,70],H=[1,68],B=[1,65],Q=[1,69],X=[1,71],et=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],st=[1,78],it=[1,77],rt=[1,76],Nt=[69,70,71,72,73],xt=[1,91],At=[6,9,45,50],z=[6,9,12,44,45,50,51,52],at=[1,101],nt=[1,100],ot=[1,99],J=[18,61],It=[1,110],Rt=[1,109],vt=[20,43,51,53,54,55],yt=[18,61,64,66],_t={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"NEWLINE",12:"COLON",14:"STYLE_SEPARATOR",16:"BLOCK_START",18:"BLOCK_STOP",19:"SQS",20:"SQE",21:"title",22:"title_value",23:"acc_title",24:"acc_title_value",25:"acc_descr",26:"acc_descr_value",27:"acc_descr_multiline_value",33:"END",34:"SUBGRAPH",37:"direction_tb",38:"direction_bt",39:"direction_rl",40:"direction_lr",41:"CLASSDEF",43:"UNICODE_TEXT",44:"STYLE_TEXT",45:"COMMA",46:"CLASS",47:"STYLE",50:"SEMI",51:"NUM",52:"BRKT",53:"ENTITY_NAME",54:"DECIMAL_NUM",55:"ENTITY_ONE",61:"ATTRIBUTE_WORD",62:"?",64:",",65:"ATTRIBUTE_KEY",66:"COMMENT",69:"ZERO_OR_ONE",70:"ZERO_OR_MORE",71:"ONE_OR_MORE",72:"ONLY_ONE",73:"MD_PARENT",74:"NON_IDENTIFYING",75:"IDENTIFYING",76:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:f(function(n,l,d,i,_,t,$){var e=t.length-1;switch(_){case 1:break;case 2:this.$=[];break;case 3:this.$=t[e-1].concat(t[e]);break;case 4:this.$=t[e];break;case 5:case 6:this.$=[];break;case 7:i.addEntity(t[e-4]),i.addEntity(t[e-2]),i.addRelationship(t[e-4],t[e],t[e-2],t[e-3]),this.$=[t[e-4],t[e-2]];break;case 8:i.addEntity(t[e-8]),i.addEntity(t[e-4]),i.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),i.setClass([t[e-8]],t[e-6]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-8],t[e-4]];break;case 9:i.addEntity(t[e-6]),i.addEntity(t[e-2]),i.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),i.setClass([t[e-6]],t[e-4]),this.$=[t[e-6],t[e-2]];break;case 10:i.addEntity(t[e-6]),i.addEntity(t[e-4]),i.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-6],t[e-4]];break;case 11:i.addEntity(t[e-3]),i.addAttributes(t[e-3],t[e-1]),this.$=[t[e-3]];break;case 12:i.addEntity(t[e-5]),i.addAttributes(t[e-5],t[e-1]),i.setClass([t[e-5]],t[e-3]),this.$=[t[e-5]];break;case 13:i.addEntity(t[e-2]),this.$=[t[e-2]];break;case 14:i.addEntity(t[e-4]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-4]];break;case 15:i.addEntity(t[e]),this.$=[t[e]];break;case 16:i.addEntity(t[e-2]),i.setClass([t[e-2]],t[e]),this.$=[t[e-2]];break;case 17:i.addEntity(t[e-6],t[e-4]),i.addAttributes(t[e-6],t[e-1]),this.$=[t[e-6]];break;case 18:i.addEntity(t[e-8],t[e-6]),i.addAttributes(t[e-8],t[e-1]),i.setClass([t[e-8]],t[e-3]),this.$=[t[e-8]];break;case 19:i.addEntity(t[e-5],t[e-3]),this.$=[t[e-5]];break;case 20:i.addEntity(t[e-7],t[e-5]),i.setClass([t[e-7]],t[e-2]),this.$=[t[e-7]];break;case 21:i.addEntity(t[e-3],t[e-1]);break;case 22:i.addEntity(t[e-5],t[e-3]),i.setClass([t[e-5]],t[e]);break;case 23:case 24:this.$=t[e].trim(),i.setAccTitle(this.$);break;case 25:case 26:this.$=t[e].trim(),i.setAccDescription(this.$);break;case 27:i.subgraphDepth?this.$=t[e]:(i.setDirection(t[e].value),this.$=[]);break;case 31:i.subgraphDepth=(i.subgraphDepth||1)-1,this.$=i.addSubGraph({text:t[e-2].id},t[e-1],{text:t[e-2].text});break;case 32:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-1],text:t[e-1]};break;case 33:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-4],text:t[e-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=t[e];break;case 35:this.$=t[e-1]+" "+t[e];break;case 36:this.$={stmt:"dir",value:"TB"};break;case 37:this.$={stmt:"dir",value:"BT"};break;case 38:this.$={stmt:"dir",value:"RL"};break;case 39:this.$={stmt:"dir",value:"LR"};break;case 40:this.$=t[e-3],i.addClass(t[e-2],t[e-1]);break;case 41:case 42:case 63:case 72:this.$=[t[e]];break;case 43:case 44:this.$=t[e-2].concat([t[e]]);break;case 45:this.$=t[e-2],i.setClass(t[e-1],t[e]);break;case 46:this.$=t[e-3],i.addCssStyles(t[e-2],t[e-1]);break;case 47:this.$=[t[e]];break;case 48:t[e-2].push(t[e]),this.$=t[e-2];break;case 50:this.$=t[e-1]+t[e];break;case 58:case 84:case 85:this.$=t[e].replace(/"/g,"");break;case 64:t[e].push(t[e-1]),this.$=t[e];break;case 65:this.$={type:t[e-1],name:t[e]};break;case 66:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 67:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 68:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 69:case 71:case 74:this.$=t[e];break;case 70:this.$=t[e-1]+t[e];break;case 73:t[e-2].push(t[e]),this.$=t[e-2];break;case 75:this.$=t[e].replace(/"/g,"");break;case 76:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 77:this.$=i.Cardinality.ZERO_OR_ONE;break;case 78:this.$=i.Cardinality.ZERO_OR_MORE;break;case 79:this.$=i.Cardinality.ONE_OR_MORE;break;case 80:this.$=i.Cardinality.ONLY_ONE;break;case 81:this.$=i.Cardinality.MD_PARENT;break;case 82:this.$=i.Identification.NON_IDENTIFYING;break;case 83:this.$=i.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(a,o,{5:3}),{6:[1,4],7:5,8:6,9:c,10:8,21:r,23:u,25:y,27:g,28:13,29:14,30:15,31:16,32:17,34:k,37:C,38:p,39:b,40:A,41:v,43:O,46:N,47:I,51:x,53:D,54:L,55:w},s(a,Ot,{1:[2,1]}),s(h,[2,3]),s(h,[2,4]),s(h,[2,5]),s(h,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:dt,70:pt,71:ft,72:bt,73:gt}),{22:[1,41]},{24:[1,42]},{26:[1,43]},s(h,[2,26]),s(h,[2,27]),s(h,[2,28]),s(h,[2,29]),s(h,[2,30]),s(h,o,{5:44}),s(Z,[2,58]),s(Z,[2,59]),s(Z,[2,60]),s(Z,[2,61]),s(Z,[2,62]),s(h,[2,36]),s(h,[2,37]),s(h,[2,38]),s(h,[2,39]),{15:45,43:V,44:M},{15:48,43:V,44:M},{15:49,43:V,44:M},{10:50,43:O,51:x,53:D,54:L,55:w},{10:51,43:O,51:x,53:D,54:L,55:w},{15:52,43:V,44:M},{17:53,18:[1,54],56:55,57:56,61:j},{10:58,43:O,51:x,53:D,54:L,55:w},{68:59,74:[1,60],75:[1,61]},s(W,[2,77]),s(W,[2,78]),s(W,[2,79]),s(W,[2,80]),s(W,[2,81]),s(h,[2,23]),s(h,[2,24]),s(h,[2,25]),{6:[1,63],7:5,8:6,9:c,10:8,21:r,23:u,25:y,27:g,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:k,37:C,38:p,39:b,40:A,41:v,43:O,46:N,47:I,51:x,53:D,54:L,55:w},{12:q,42:64,44:H,45:B,48:66,49:67,51:Q,52:X},s(et,[2,41]),s(et,[2,42]),{15:72,43:V,44:M,45:B},{12:q,42:73,44:H,45:B,48:66,49:67,51:Q,52:X},{6:st,9:it,19:[1,75],35:74,50:rt},{12:[1,79],14:[1,80]},s(h,[2,16],{67:35,11:81,16:[1,82],45:B,69:dt,70:pt,71:ft,72:bt,73:gt}),{18:[1,83]},s(h,[2,13]),{17:84,18:[2,63],56:55,57:56,61:j},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:dt,70:pt,71:ft,72:bt,73:gt},s(Nt,[2,82]),s(Nt,[2,83]),s(h,[2,31]),s(h,Ot),{6:st,9:it,35:90,45:xt,50:rt},{43:[1,92],44:[1,93]},s(At,[2,47],{49:94,12:q,44:H,51:Q,52:X}),s(z,[2,49]),s(z,[2,54]),s(z,[2,55]),s(z,[2,56]),s(z,[2,57]),s(h,[2,45],{45:B}),{6:st,9:it,35:95,45:xt,50:rt},s(h,[2,32]),{10:97,36:96,43:O,51:x,53:D,54:L,55:w},s(h,[2,51]),s(h,[2,52]),s(h,[2,53]),{13:98,43:at,53:nt,76:ot},{15:102,43:V,44:M},{10:103,43:O,51:x,53:D,54:L,55:w},{17:104,18:[1,105],56:55,57:56,61:j},s(h,[2,11]),{18:[2,64]},s(J,[2,65],{59:106,60:107,63:108,65:It,66:Rt}),s([18,61,65,66],[2,71]),{61:[2,70]},s(h,[2,21],{14:[1,112],16:[1,111]}),s([43,51,53,54,55],[2,76]),s(h,[2,40]),{12:q,44:H,48:113,49:67,51:Q,52:X},s(et,[2,43]),s(et,[2,44]),s(z,[2,50]),s(h,[2,46]),{10:115,20:[1,114],43:O,51:x,53:D,54:L,55:w},s(vt,[2,34]),s(h,[2,7]),s(h,[2,84]),s(h,[2,85]),s(h,[2,86]),{12:[1,116],45:B},{12:[1,118],14:[1,117]},{18:[1,119]},s(h,[2,14]),s(J,[2,66],{60:120,64:[1,121],66:Rt}),s(J,[2,67]),s(yt,[2,72]),s(J,[2,75]),s(yt,[2,74]),{17:122,18:[1,123],56:55,57:56,61:j},{15:124,43:V,44:M},s(At,[2,48],{49:94,12:q,44:H,51:Q,52:X}),{6:st,9:it,35:125,50:rt},s(vt,[2,35]),{13:126,43:at,53:nt,76:ot},{15:127,43:V,44:M},{13:128,43:at,53:nt,76:ot},s(h,[2,12]),s(J,[2,68]),{63:129,65:It},{18:[1,130]},s(h,[2,19]),s(h,[2,22],{16:[1,131],45:B}),s(h,[2,33]),s(h,[2,10]),{12:[1,132],45:B},s(h,[2,9]),s(yt,[2,73]),s(h,[2,17]),{17:133,18:[1,134],56:55,57:56,61:j},{13:135,43:at,53:nt,76:ot},{18:[1,136]},s(h,[2,20]),s(h,[2,8]),s(h,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:f(function(n,l){if(l.recoverable)this.trace(n);else{var d=new Error(n);throw d.hash=l,d}},"parseError"),parse:f(function(n){var l=this,d=[0],i=[],_=[null],t=[],$=this.table,e="",lt=0,Dt=0,Ft=2,Lt=1,Yt=t.slice.call(arguments,1),m=Object.create(this.lexer),Y={yy:{}};for(var kt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,kt)&&(Y.yy[kt]=this.yy[kt]);m.setInput(n,Y.yy),Y.yy.lexer=m,Y.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var mt=m.yylloc;t.push(mt);var Pt=m.options&&m.options.ranges;typeof Y.yy.parseError=="function"?this.parseError=Y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function zt(S){d.length=d.length-2*S,_.length=_.length-S,t.length=t.length-S}f(zt,"popStack");function wt(){var S;return S=i.pop()||m.lex()||Lt,typeof S!="number"&&(S instanceof Array&&(i=S,S=i.pop()),S=l.symbols_[S]||S),S}f(wt,"lex");for(var E,P,T,Et,U={},ht,R,Vt,ut;;){if(P=d[d.length-1],this.defaultActions[P]?T=this.defaultActions[P]:((E===null||typeof E>"u")&&(E=wt()),T=$[P]&&$[P][E]),typeof T>"u"||!T.length||!T[0]){var St="";ut=[];for(ht in $[P])this.terminals_[ht]&&ht>Ft&&ut.push("'"+this.terminals_[ht]+"'");m.showPosition?St="Parse error on line "+(lt+1)+`:
|
|
1
|
+
import{g as Ut}from"./Boxybwc5.js";import{s as Kt}from"./DWpvI-rO.js";import{b as f,C as Tt,a_ as Zt,V as jt,aZ as Wt,U as qt,b0 as Ht,Y as Qt,X as tt,ay as F,z as Xt,r as Jt,$ as $t,am as te,aU as ee,ab as se,aG as ie,aT as re,p as ae,_ as ne,a1 as oe,aP as ce,aW as le,bh as he}from"./BsiP9jat.js";var Ct=(function(){var s=f(function(G,n,l,d){for(l=l||{},d=G.length;d--;l[G[d]]=n);return l},"o"),a=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],o=[2,2],c=[1,7],r=[1,9],u=[1,10],y=[1,11],g=[1,12],k=[1,30],C=[1,23],p=[1,24],b=[1,25],A=[1,26],v=[1,27],O=[1,19],N=[1,28],I=[1,29],x=[1,20],D=[1,18],L=[1,21],w=[1,22],Ot=[2,6],h=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],dt=[1,36],pt=[1,37],ft=[1,38],bt=[1,39],gt=[1,40],Z=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],V=[1,46],M=[1,47],j=[1,57],W=[43,51,53,54,55,74,75],q=[1,70],H=[1,68],B=[1,65],Q=[1,69],X=[1,71],et=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],st=[1,78],it=[1,77],rt=[1,76],Nt=[69,70,71,72,73],xt=[1,91],At=[6,9,45,50],z=[6,9,12,44,45,50,51,52],at=[1,101],nt=[1,100],ot=[1,99],J=[18,61],It=[1,110],Rt=[1,109],vt=[20,43,51,53,54,55],yt=[18,61,64,66],_t={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"NEWLINE",12:"COLON",14:"STYLE_SEPARATOR",16:"BLOCK_START",18:"BLOCK_STOP",19:"SQS",20:"SQE",21:"title",22:"title_value",23:"acc_title",24:"acc_title_value",25:"acc_descr",26:"acc_descr_value",27:"acc_descr_multiline_value",33:"END",34:"SUBGRAPH",37:"direction_tb",38:"direction_bt",39:"direction_rl",40:"direction_lr",41:"CLASSDEF",43:"UNICODE_TEXT",44:"STYLE_TEXT",45:"COMMA",46:"CLASS",47:"STYLE",50:"SEMI",51:"NUM",52:"BRKT",53:"ENTITY_NAME",54:"DECIMAL_NUM",55:"ENTITY_ONE",61:"ATTRIBUTE_WORD",62:"?",64:",",65:"ATTRIBUTE_KEY",66:"COMMENT",69:"ZERO_OR_ONE",70:"ZERO_OR_MORE",71:"ONE_OR_MORE",72:"ONLY_ONE",73:"MD_PARENT",74:"NON_IDENTIFYING",75:"IDENTIFYING",76:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:f(function(n,l,d,i,_,t,$){var e=t.length-1;switch(_){case 1:break;case 2:this.$=[];break;case 3:this.$=t[e-1].concat(t[e]);break;case 4:this.$=t[e];break;case 5:case 6:this.$=[];break;case 7:i.addEntity(t[e-4]),i.addEntity(t[e-2]),i.addRelationship(t[e-4],t[e],t[e-2],t[e-3]),this.$=[t[e-4],t[e-2]];break;case 8:i.addEntity(t[e-8]),i.addEntity(t[e-4]),i.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),i.setClass([t[e-8]],t[e-6]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-8],t[e-4]];break;case 9:i.addEntity(t[e-6]),i.addEntity(t[e-2]),i.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),i.setClass([t[e-6]],t[e-4]),this.$=[t[e-6],t[e-2]];break;case 10:i.addEntity(t[e-6]),i.addEntity(t[e-4]),i.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-6],t[e-4]];break;case 11:i.addEntity(t[e-3]),i.addAttributes(t[e-3],t[e-1]),this.$=[t[e-3]];break;case 12:i.addEntity(t[e-5]),i.addAttributes(t[e-5],t[e-1]),i.setClass([t[e-5]],t[e-3]),this.$=[t[e-5]];break;case 13:i.addEntity(t[e-2]),this.$=[t[e-2]];break;case 14:i.addEntity(t[e-4]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-4]];break;case 15:i.addEntity(t[e]),this.$=[t[e]];break;case 16:i.addEntity(t[e-2]),i.setClass([t[e-2]],t[e]),this.$=[t[e-2]];break;case 17:i.addEntity(t[e-6],t[e-4]),i.addAttributes(t[e-6],t[e-1]),this.$=[t[e-6]];break;case 18:i.addEntity(t[e-8],t[e-6]),i.addAttributes(t[e-8],t[e-1]),i.setClass([t[e-8]],t[e-3]),this.$=[t[e-8]];break;case 19:i.addEntity(t[e-5],t[e-3]),this.$=[t[e-5]];break;case 20:i.addEntity(t[e-7],t[e-5]),i.setClass([t[e-7]],t[e-2]),this.$=[t[e-7]];break;case 21:i.addEntity(t[e-3],t[e-1]);break;case 22:i.addEntity(t[e-5],t[e-3]),i.setClass([t[e-5]],t[e]);break;case 23:case 24:this.$=t[e].trim(),i.setAccTitle(this.$);break;case 25:case 26:this.$=t[e].trim(),i.setAccDescription(this.$);break;case 27:i.subgraphDepth?this.$=t[e]:(i.setDirection(t[e].value),this.$=[]);break;case 31:i.subgraphDepth=(i.subgraphDepth||1)-1,this.$=i.addSubGraph({text:t[e-2].id},t[e-1],{text:t[e-2].text});break;case 32:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-1],text:t[e-1]};break;case 33:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-4],text:t[e-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=t[e];break;case 35:this.$=t[e-1]+" "+t[e];break;case 36:this.$={stmt:"dir",value:"TB"};break;case 37:this.$={stmt:"dir",value:"BT"};break;case 38:this.$={stmt:"dir",value:"RL"};break;case 39:this.$={stmt:"dir",value:"LR"};break;case 40:this.$=t[e-3],i.addClass(t[e-2],t[e-1]);break;case 41:case 42:case 63:case 72:this.$=[t[e]];break;case 43:case 44:this.$=t[e-2].concat([t[e]]);break;case 45:this.$=t[e-2],i.setClass(t[e-1],t[e]);break;case 46:this.$=t[e-3],i.addCssStyles(t[e-2],t[e-1]);break;case 47:this.$=[t[e]];break;case 48:t[e-2].push(t[e]),this.$=t[e-2];break;case 50:this.$=t[e-1]+t[e];break;case 58:case 84:case 85:this.$=t[e].replace(/"/g,"");break;case 64:t[e].push(t[e-1]),this.$=t[e];break;case 65:this.$={type:t[e-1],name:t[e]};break;case 66:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 67:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 68:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 69:case 71:case 74:this.$=t[e];break;case 70:this.$=t[e-1]+t[e];break;case 73:t[e-2].push(t[e]),this.$=t[e-2];break;case 75:this.$=t[e].replace(/"/g,"");break;case 76:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 77:this.$=i.Cardinality.ZERO_OR_ONE;break;case 78:this.$=i.Cardinality.ZERO_OR_MORE;break;case 79:this.$=i.Cardinality.ONE_OR_MORE;break;case 80:this.$=i.Cardinality.ONLY_ONE;break;case 81:this.$=i.Cardinality.MD_PARENT;break;case 82:this.$=i.Identification.NON_IDENTIFYING;break;case 83:this.$=i.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(a,o,{5:3}),{6:[1,4],7:5,8:6,9:c,10:8,21:r,23:u,25:y,27:g,28:13,29:14,30:15,31:16,32:17,34:k,37:C,38:p,39:b,40:A,41:v,43:O,46:N,47:I,51:x,53:D,54:L,55:w},s(a,Ot,{1:[2,1]}),s(h,[2,3]),s(h,[2,4]),s(h,[2,5]),s(h,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:dt,70:pt,71:ft,72:bt,73:gt}),{22:[1,41]},{24:[1,42]},{26:[1,43]},s(h,[2,26]),s(h,[2,27]),s(h,[2,28]),s(h,[2,29]),s(h,[2,30]),s(h,o,{5:44}),s(Z,[2,58]),s(Z,[2,59]),s(Z,[2,60]),s(Z,[2,61]),s(Z,[2,62]),s(h,[2,36]),s(h,[2,37]),s(h,[2,38]),s(h,[2,39]),{15:45,43:V,44:M},{15:48,43:V,44:M},{15:49,43:V,44:M},{10:50,43:O,51:x,53:D,54:L,55:w},{10:51,43:O,51:x,53:D,54:L,55:w},{15:52,43:V,44:M},{17:53,18:[1,54],56:55,57:56,61:j},{10:58,43:O,51:x,53:D,54:L,55:w},{68:59,74:[1,60],75:[1,61]},s(W,[2,77]),s(W,[2,78]),s(W,[2,79]),s(W,[2,80]),s(W,[2,81]),s(h,[2,23]),s(h,[2,24]),s(h,[2,25]),{6:[1,63],7:5,8:6,9:c,10:8,21:r,23:u,25:y,27:g,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:k,37:C,38:p,39:b,40:A,41:v,43:O,46:N,47:I,51:x,53:D,54:L,55:w},{12:q,42:64,44:H,45:B,48:66,49:67,51:Q,52:X},s(et,[2,41]),s(et,[2,42]),{15:72,43:V,44:M,45:B},{12:q,42:73,44:H,45:B,48:66,49:67,51:Q,52:X},{6:st,9:it,19:[1,75],35:74,50:rt},{12:[1,79],14:[1,80]},s(h,[2,16],{67:35,11:81,16:[1,82],45:B,69:dt,70:pt,71:ft,72:bt,73:gt}),{18:[1,83]},s(h,[2,13]),{17:84,18:[2,63],56:55,57:56,61:j},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:dt,70:pt,71:ft,72:bt,73:gt},s(Nt,[2,82]),s(Nt,[2,83]),s(h,[2,31]),s(h,Ot),{6:st,9:it,35:90,45:xt,50:rt},{43:[1,92],44:[1,93]},s(At,[2,47],{49:94,12:q,44:H,51:Q,52:X}),s(z,[2,49]),s(z,[2,54]),s(z,[2,55]),s(z,[2,56]),s(z,[2,57]),s(h,[2,45],{45:B}),{6:st,9:it,35:95,45:xt,50:rt},s(h,[2,32]),{10:97,36:96,43:O,51:x,53:D,54:L,55:w},s(h,[2,51]),s(h,[2,52]),s(h,[2,53]),{13:98,43:at,53:nt,76:ot},{15:102,43:V,44:M},{10:103,43:O,51:x,53:D,54:L,55:w},{17:104,18:[1,105],56:55,57:56,61:j},s(h,[2,11]),{18:[2,64]},s(J,[2,65],{59:106,60:107,63:108,65:It,66:Rt}),s([18,61,65,66],[2,71]),{61:[2,70]},s(h,[2,21],{14:[1,112],16:[1,111]}),s([43,51,53,54,55],[2,76]),s(h,[2,40]),{12:q,44:H,48:113,49:67,51:Q,52:X},s(et,[2,43]),s(et,[2,44]),s(z,[2,50]),s(h,[2,46]),{10:115,20:[1,114],43:O,51:x,53:D,54:L,55:w},s(vt,[2,34]),s(h,[2,7]),s(h,[2,84]),s(h,[2,85]),s(h,[2,86]),{12:[1,116],45:B},{12:[1,118],14:[1,117]},{18:[1,119]},s(h,[2,14]),s(J,[2,66],{60:120,64:[1,121],66:Rt}),s(J,[2,67]),s(yt,[2,72]),s(J,[2,75]),s(yt,[2,74]),{17:122,18:[1,123],56:55,57:56,61:j},{15:124,43:V,44:M},s(At,[2,48],{49:94,12:q,44:H,51:Q,52:X}),{6:st,9:it,35:125,50:rt},s(vt,[2,35]),{13:126,43:at,53:nt,76:ot},{15:127,43:V,44:M},{13:128,43:at,53:nt,76:ot},s(h,[2,12]),s(J,[2,68]),{63:129,65:It},{18:[1,130]},s(h,[2,19]),s(h,[2,22],{16:[1,131],45:B}),s(h,[2,33]),s(h,[2,10]),{12:[1,132],45:B},s(h,[2,9]),s(yt,[2,73]),s(h,[2,17]),{17:133,18:[1,134],56:55,57:56,61:j},{13:135,43:at,53:nt,76:ot},{18:[1,136]},s(h,[2,20]),s(h,[2,8]),s(h,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:f(function(n,l){if(l.recoverable)this.trace(n);else{var d=new Error(n);throw d.hash=l,d}},"parseError"),parse:f(function(n){var l=this,d=[0],i=[],_=[null],t=[],$=this.table,e="",lt=0,Dt=0,Ft=2,Lt=1,Yt=t.slice.call(arguments,1),m=Object.create(this.lexer),Y={yy:{}};for(var kt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,kt)&&(Y.yy[kt]=this.yy[kt]);m.setInput(n,Y.yy),Y.yy.lexer=m,Y.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var mt=m.yylloc;t.push(mt);var Pt=m.options&&m.options.ranges;typeof Y.yy.parseError=="function"?this.parseError=Y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function zt(S){d.length=d.length-2*S,_.length=_.length-S,t.length=t.length-S}f(zt,"popStack");function wt(){var S;return S=i.pop()||m.lex()||Lt,typeof S!="number"&&(S instanceof Array&&(i=S,S=i.pop()),S=l.symbols_[S]||S),S}f(wt,"lex");for(var E,P,T,Et,U={},ht,R,Vt,ut;;){if(P=d[d.length-1],this.defaultActions[P]?T=this.defaultActions[P]:((E===null||typeof E>"u")&&(E=wt()),T=$[P]&&$[P][E]),typeof T>"u"||!T.length||!T[0]){var St="";ut=[];for(ht in $[P])this.terminals_[ht]&&ht>Ft&&ut.push("'"+this.terminals_[ht]+"'");m.showPosition?St="Parse error on line "+(lt+1)+`:
|
|
2
2
|
`+m.showPosition()+`
|
|
3
3
|
Expecting `+ut.join(", ")+", got '"+(this.terminals_[E]||E)+"'":St="Parse error on line "+(lt+1)+": Unexpected "+(E==Lt?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(St,{text:m.match,token:this.terminals_[E]||E,line:m.yylineno,loc:mt,expected:ut})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+E);switch(T[0]){case 1:d.push(E),_.push(m.yytext),t.push(m.yylloc),d.push(T[1]),E=null,Dt=m.yyleng,e=m.yytext,lt=m.yylineno,mt=m.yylloc;break;case 2:if(R=this.productions_[T[1]][1],U.$=_[_.length-R],U._$={first_line:t[t.length-(R||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(R||1)].first_column,last_column:t[t.length-1].last_column},Pt&&(U._$.range=[t[t.length-(R||1)].range[0],t[t.length-1].range[1]]),Et=this.performAction.apply(U,[e,Dt,lt,Y.yy,T[1],_,t].concat(Yt)),typeof Et<"u")return Et;R&&(d=d.slice(0,-1*R*2),_=_.slice(0,-1*R),t=t.slice(0,-1*R)),d.push(this.productions_[T[1]][0]),_.push(U.$),t.push(U._$),Vt=$[d[d.length-2]][d[d.length-1]],d.push(Vt);break;case 3:return!0}}return!0},"parse")},Gt=(function(){var G={EOF:1,parseError:f(function(l,d){if(this.yy.parser)this.yy.parser.parseError(l,d);else throw new Error(l)},"parseError"),setInput:f(function(n,l){return this.yy=l||this.yy||{},this._input=n,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:f(function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var l=n.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},"input"),unput:f(function(n){var l=n.length,d=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),d.length-1&&(this.yylineno-=d.length-1);var _=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:d?(d.length===i.length?this.yylloc.first_column:0)+i[i.length-d.length].length-d[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:f(function(n){this.unput(this.match.slice(n))},"less"),pastInput:f(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:f(function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var n=this.pastInput(),l=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/
|
|
2
|
-
import{bo as v,t as Bt,bq as y,by as Ft,b as zt,br as Qf,bu as bt,bs as ga,bt as el,b6 as Nl,bl as $f,b9 as ep,bk as tp,ba as rp,bm as np,a_ as ap,b8 as sp,b7 as op,b1 as ip,be as lp,bf as cp,bj as dp,bd as up,bn as fp,a$ as pp,b3 as gp,bh as vp,bg as mp,b5 as hp,b4 as bp,b2 as yp,bc as _p,bb as xp,bi as wp,b0 as kp,_ as Ip}from"./Y9-4hTF9.js";import{bI as Sp,bj as eo,aG as Cp,bs as Ht,aD as e,a5 as S,bS as m,bA as w,W as u,bn as jt,c9 as d,aA as _,a7 as kt,ay as je,be as tr,b$ as Tt,aC as Ha,bl as M,b_ as k,bO as x,aB as I,bo as Rs,ca as wt,bH as A,bV as ye,br as Gr,bk as to,c0 as ca,ai as es,cd as Is,aw as Rn,a as Ep,aj as Rr,c7 as Pp,c6 as Ll,c5 as Mn,bf as So,bz as Id}from"./DYhIMPy1.js";import{i as D}from"./BL2lJmRT.js";import{k as Es}from"./C6vwP-ay.js";import{h as Ap,e as Un,I as ro,g as Rt,i as Tr,o as Tp,p as Rp,f as Mp,s as Np}from"./BZQDFgmp.js";import{s as un}from"./CrWhihJ_.js";import{c as Qr}from"./CPKMQWOs.js";import{I as Si,t as nr,n as Lp,i as Ol,u as Dl}from"./BLgIfeYS.js";import{b as Op,s as re,g as Nn,e as In,c as ir,f as gt}from"./cFbB-5Cu.js";import{b as pr}from"./BaIAhI85.js";import{i as Sd,bv as Cd,cM as Ed,dG as Dp,ds as Bp,ax as Fp,cv as zp,a2 as Hp,cS as jp,dr as qs,aC as Bo,c3 as Wp,I as Up,a as qp,a0 as Bl,cY as Vp,bT as Kp,M as Gp,dm as Jp,W as Yp,dx as Xp,af as Zp,cP as Qp,at as $p,g as eg,u as tg}from"./ClH0Gega.js";import{c as rg}from"./D-62MVd3.js";import{k as da,w as ng,C as Pd,c as ag,R as sg}from"./Bv2KudWv.js";import{f as yt,ah as ws,aa as og,ae as Ci}from"./q6hitSEG.js";import{F as ig}from"./DOH10_LL.js";import{ar as lg,ae as Fl,a0 as cg,aI as dg,af as ug,h as fg,ag as pg,a$ as gg,I as vg,R as mg,ax as hg,ak as bg,a1 as yg,a as zl,az as _g,s as xg,n as wg,b5 as kg,m as Ig,b7 as Ei,A as Hl,aj as Sg,b6 as Cg,at as Ad,T as Td,a9 as Eg,a7 as jl,W as Pg,V as Ag,ad as Tg,a8 as Rg,L as Wl,ay as Mg}from"./
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/D4SzkUNZ.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/Y9-4hTF9.js","/app/immutable/chunks/BL2lJmRT.js","/app/immutable/chunks/CrWhihJ_.js","/app/immutable/chunks/C_Lje1cd.js","/app/immutable/chunks/BLgIfeYS.js","/app/immutable/chunks/BZQDFgmp.js","/app/immutable/chunks/cFbB-5Cu.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/tU_ZJtMw.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/CO4a0yRH.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/CEsW1euQ.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/q6hitSEG.js","/app/immutable/chunks/DOH10_LL.js","/app/immutable/chunks/CIpI7Qrh.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/CPKMQWOs.js","/app/immutable/chunks/C6vwP-ay.js","/app/immutable/chunks/DYxNs3ex.js","/app/immutable/chunks/-FMYDRBF.js","/app/immutable/chunks/BS8Oxiwq.js","/app/immutable/chunks/DqcBqbDI.js","/app/immutable/chunks/Mc93eSxl.js","/app/immutable/chunks/BMOaW1oW.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/Dj3ZrCzO.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/BsieX9dN.js","/app/immutable/assets/observe-overflow.CbDLK6fN.css","/app/immutable/chunks/CwDNa5HL.js","/app/immutable/chunks/BJwkYtAi.js","/app/immutable/chunks/NDjLJa7E.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/confirm.UE5obH5A.css","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/BeP4UORy.js","/app/immutable/chunks/-CHLoCv2.js","/app/immutable/chunks/DU9Ky5os.js","/app/immutable/assets/SettingsPage.D8u26cHZ.css","/app/immutable/chunks/CXOFOhS1.js","/app/immutable/chunks/C-P--5-o.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/Bv2KudWv.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/TVV4Q9gU.js","/app/immutable/chunks/ClH0Gega.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/5GYSXevc.js","/app/immutable/chunks/DNWBkvFP.js","/app/immutable/chunks/CpHzYkzi.js","/app/immutable/chunks/aos1n-nT.js","/app/immutable/chunks/ddhULx4L.js","/app/immutable/chunks/D-l6NLYy.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/CO4uYULP.js","/app/immutable/chunks/k-EyN6jr.js","/app/immutable/chunks/CEgJ5sIL.js","/app/immutable/chunks/IoC3U43a.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/ChcJLcLm.js","/app/immutable/assets/directory-picker-service.CzNEA6Ot.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{bo as v,t as Bt,bq as y,by as Ft,b as zt,br as Qf,bu as bt,bs as ga,bt as el,b6 as Nl,bl as $f,b9 as ep,bk as tp,ba as rp,bm as np,a_ as ap,b8 as sp,b7 as op,b1 as ip,be as lp,bf as cp,bj as dp,bd as up,bn as fp,a$ as pp,b3 as gp,bh as vp,bg as mp,b5 as hp,b4 as bp,b2 as yp,bc as _p,bb as xp,bi as wp,b0 as kp,_ as Ip}from"./Y9-4hTF9.js";import{bI as Sp,bj as eo,aG as Cp,bs as Ht,aD as e,a5 as S,bS as m,bA as w,W as u,bn as jt,c9 as d,aA as _,a7 as kt,ay as je,be as tr,b$ as Tt,aC as Ha,bl as M,b_ as k,bO as x,aB as I,bo as Rs,ca as wt,bH as A,bV as ye,br as Gr,bk as to,c0 as ca,ai as es,cd as Is,aw as Rn,a as Ep,aj as Rr,c7 as Pp,c6 as Ll,c5 as Mn,bf as So,bz as Id}from"./DYhIMPy1.js";import{i as D}from"./BL2lJmRT.js";import{k as Es}from"./C6vwP-ay.js";import{h as Ap,e as Un,I as ro,g as Rt,i as Tr,o as Tp,p as Rp,f as Mp,s as Np}from"./BZQDFgmp.js";import{s as un}from"./CrWhihJ_.js";import{c as Qr}from"./CPKMQWOs.js";import{I as Si,t as nr,n as Lp,i as Ol,u as Dl}from"./BLgIfeYS.js";import{b as Op,s as re,g as Nn,e as In,c as ir,f as gt}from"./cFbB-5Cu.js";import{b as pr}from"./BaIAhI85.js";import{i as Sd,bv as Cd,cM as Ed,dG as Dp,ds as Bp,ax as Fp,cv as zp,a2 as Hp,cS as jp,dr as qs,aC as Bo,c3 as Wp,I as Up,a as qp,a0 as Bl,cY as Vp,bT as Kp,M as Gp,dm as Jp,W as Yp,dx as Xp,af as Zp,cP as Qp,at as $p,g as eg,u as tg}from"./ClH0Gega.js";import{c as rg}from"./D-62MVd3.js";import{k as da,w as ng,C as Pd,c as ag,R as sg}from"./Bv2KudWv.js";import{f as yt,ah as ws,aa as og,ae as Ci}from"./q6hitSEG.js";import{F as ig}from"./DOH10_LL.js";import{ar as lg,ae as Fl,a0 as cg,aI as dg,af as ug,h as fg,ag as pg,a$ as gg,I as vg,R as mg,ax as hg,ak as bg,a1 as yg,a as zl,az as _g,s as xg,n as wg,b5 as kg,m as Ig,b7 as Ei,A as Hl,aj as Sg,b6 as Cg,at as Ad,T as Td,a9 as Eg,a7 as jl,W as Pg,V as Ag,ad as Tg,a8 as Rg,L as Wl,ay as Mg}from"./0rarVWHK.js";import{F as At,bf as Pi,bK as Ng,am as Lg,aO as Og,cL as Dg,bj as tl,bA as Bg,aE as Rd,aJ as rl,c_ as Co,a9 as Ai,cn as Fg,cc as zg,ci as nl,cF as Md,br as Hg,e as jg,b_ as Ul,c8 as Wg,cl as Ug,cW as Nd,bU as ql,b6 as ai,bc as Hs,aD as qg,ax as Ti,as as Ld,ba as Od,bB as Vg,B as Kg,bu as Gg,a4 as Dd,cg as Jg,aj as Bd,cN as Fd,cJ as Vl,aq as zd,aI as Kl,_ as Yg,cv as Xg,cU as Zg,cO as Qg,aH as $g,aZ as ev,bN as Hd,bl as tv,al,c4 as Gl,aw as rv,a7 as nv,a5 as av}from"./Mc93eSxl.js";import{c as jd}from"./ChTqQfQN.js";import{g as sv}from"./DU9Ky5os.js";import{Iz as Nt,bL as ov,rU as Jl,su as iv,Jo as lv,Ju as cv,g as Wd,Ic as Ud,nv as qd,nL as Vd,nK as Kd,no as Fo,q1 as sl,x$ as dv,v1 as yo,uk as Ri,v3 as uv,nd as Gd,IE as fv,t9 as pv,oz as Jd,re as ol,lW as Yl,a2 as Xl,qK as gv,qG as vv,qL as mv,qC as hv,qI as bv,uT as yv,Ay as Yd,AC as Xd,nM as Zl,bd as Mi,GX as _v,I8 as xv,h8 as wv,h7 as kv,nG as Iv,w2 as Sv,w3 as Cv,w1 as Ql,By as ia,cq as Ev,ce as Pv,c$ as Av,d6 as Tv,AI as Rv}from"./tU_ZJtMw.js";import{bI as Mv,bR as Nv,i as Lv,B as Ov,bU as Dv,ai as Bv,ak as Fv,am as zv,a6 as Hv,a5 as jv,ao as Wv,W as Uv,bl as qv,bN as Vv,bn as Kv}from"./aos1n-nT.js";import{n as Gv,m as Jv,v as Ni,co as Yv,O as Xv,cm as Zv,cf as Qv,aG as $l,ch as $v,bQ as Li,aQ as em,s as tm,c as Vs,d as Oi,cj as Zd,ck as Di,bF as rm,b9 as nm,bU as am,bS as sm,H as om,ci as ec,by as im,z as tc,cl as lm,N as cm,a4 as rc}from"./TVV4Q9gU.js";import{ci as dm,ck as um,cj as fm,b1 as pm,a$ as gm,b0 as vm,a4 as mm,al as go,ak as hm,aA as nc,aI as bm,aj as ym,C as _m,i as xm,E as _o,cT as wm,aW as ac,cY as km,ag as Im,a8 as Sm,r as Cm,p as Em,aF as Pm,c$ as Am,cK as Tm,cD as Rm,R as Mm,cu as Nm,bS as Lm}from"./Pmmb3VR-.js";import{i as Om,I as Ss,c as sc}from"./DYxNs3ex.js";import"./-FMYDRBF.js";import{f as oc,y as ic,M as Qd,n as Dm,m as Bm,z as $d,x as Bi,e as Ks,E as Fi,W as us,h as Fm}from"./D4SzkUNZ.js";import"./NDjLJa7E.js";import{b as eu}from"./C-P--5-o.js";import"./Dj3ZrCzO.js";import{z as il,P as zm,p as Hm,h as jm,G as Wm,l as Um,i as qm,M as Vm,H as Km,t as _s,a as Gm,K as Jm,k as Ym,R as Xm}from"./BS8Oxiwq.js";import{t as Gs,O as Zm,M as Qm,S as Fa}from"./DqcBqbDI.js";import{a as $m}from"./BMOaW1oW.js";import{C as zi}from"./BTrGu4V2.js";import{aQ as eh,aY as th,aB as rh,b0 as nh,aO as ah,aU as sh,a7 as Ps,b3 as lc,aK as oh,aR as ih,aX as ll,aS as cl,W as si,aq as lh,X as ch,a_ as dh,aJ as uh,aT as fh,aW as ph,b6 as gh,b4 as vh,ay as tu,p as mh,n as hh,aV as bh,_ as yh,ao as _h,aD as xh,z as wh,aC as kh,a8 as Ih}from"./Beu80YXu.js";import{s as Hi}from"./U7SsMQct.js";import{M as Sh}from"./CzPYlOCC.js";import{s as Ch,a as Eh}from"./BsieX9dN.js";import{u as dl,w as Ph,v as zo,I as Ah,A as cc,e as Js,d as za,J as dc,c as Th,f as Rh,g as uc,i as Mh,b as Nh,o as ru,j as Lh,O as Oh,x as Dh,k as nu,S as Bh,N as Fh,q as fc,p as zh,n as pc,z as Hh,s as jh}from"./CqVAVQKY.js";import{o as gc,a as vc,T as oi,b as Wh}from"./B-7dyAv6.js";import{O as Uh,x as qh,i as Vh,g as Kh,T as Gh}from"./DLIkH-mx.js";import{D as Ys}from"./CVpfSBkA.js";import"./Dr9VLQ7a.js";import{C as ua}from"./D9qN0bss.js";import{M as Jh}from"./BsiP9jat.js";import{g as ul}from"./C_Lje1cd.js";import{f as mc,d as Yh}from"./k-EyN6jr.js";import{c as xo}from"./BgsoTwBt.js";import{handleIntentLink as Xh}from"./Byq91_c-.js";import{s as Zh,a as Qh,f as $h,d as eb,r as tb,h as rb,w as js,g as nb,W as ab,H as sb,c as ob,M as au}from"./C9GTwcDD.js";import{e as ib,q as lb}from"./ddhULx4L.js";import{showAssistantContent as cb}from"./DudQTeC0.js";import{o as Eo,c as db,n as ub}from"./ChcJLcLm.js";import{p as fb}from"./C-Qo8Sm3.js";import{m as pb}from"./-DqWFMjY.js";import{h as vo}from"./ZKiqJWPE.js";import{i as su}from"./DNWBkvFP.js";import{I as gb,z as vb}from"./CEsW1euQ.js";import{g as mb,e as hb,f as bb,h as yb}from"./BvFAWM27.js";import{T as ii}from"./Bii5NwwM.js";import"./BJwkYtAi.js";import{a as _b}from"./CXOFOhS1.js";import{a as xb}from"./BdWqymET.js";import{p as wb}from"./CYI38TT4.js";const kb="intent:inline-visual-draft";function OC(r,t){const n=t.title.replace(/\s+/g," ").trim(),a=JSON.stringify({inputs:t.inputs,results:t.results},null,2),s=(a.match(/`+/g)??[]).reduce((c,l)=>Math.max(c,l.length),0),o="`".repeat(Math.max(3,s+1));return`${r}${r?`
|
|
3
3
|
|
|
4
4
|
`:""}${n}
|
|
5
5
|
|
|
@@ -260,7 +260,7 @@ ${r.content}`:a.content=r.content,a):r.old_text!==void 0&&r.new_text!==void 0?(a
|
|
|
260
260
|
`,L0=["background","foreground","card","card-foreground","primary","primary-ink","primary-foreground","secondary","secondary-foreground","muted","muted-foreground","border","input","ring","danger","danger-background","info","info-foreground","success","success-foreground","warning","warning-foreground","font-ui","font-code","text-body-size","text-body-line-height","text-body-weight","text-body-tracking","radius-small","radius-medium","radius-large","app-background","sidebar","sidebar-accent","agent-avatar-surface-active","agent-avatar-foreground","diagram-host-surface","diagram-canvas","diagram-label-surface","diagram-node-surface","diagram-node-hover-surface","diagram-node-outline","diagram-node-title","diagram-metadata","diagram-group-outline","diagram-connector","diagram-connector-hover","diagram-connector-muted","diagram-connector-inactive","diagram-connector-danger","diagram-connector-success","diagram-connector-warning","diagram-connector-active","diagram-accent","diagram-accent-foreground","diagram-node-radius","diagram-group-radius","diagram-connector-width","text-caption-size","text-caption-line-height","text-caption-weight","text-caption-tracking","text-body-strong-size","text-body-strong-line-height","text-body-strong-weight","text-body-strong-tracking","space-1","space-2","space-3","space-4","space-5","space-6","space-7","control-height-compact","control-height-small","control-height-medium","control-height-large","radius-full","spring-fast","spring-fast-exit","spring-fast-ease","spring-moderate","spring-moderate-exit","spring-moderate-ease","spring-slow","spring-slow-exit","spring-slow-ease","spring-exit-ease","motion-fast","motion-standard","motion-slow","ease-standard","ease-emphasized-out","motion-reduced"],_i=96,sd=2e4,O0=480,pf=512,D0=["default-src 'none'","script-src 'unsafe-inline'","style-src 'unsafe-inline'","img-src data:","connect-src 'none'","font-src data:","media-src 'none'","object-src 'none'","frame-src 'none'","child-src 'none'","worker-src 'none'","manifest-src 'none'","base-uri 'none'","form-action 'none'"].join("; ");function B0(r,t,n,a,s,o){const c=new MessageChannel,l=MessagePort.prototype.postMessage.bind(c.port1);window.parent.postMessage({channel:r,type:"scroll-port"},"*",[c.port2]);const f=(E,z={})=>{window.parent.postMessage({channel:r,type:E,...z},"*")};let i=s?.state??null,p=null,g=!1;Object.defineProperty(window,"intentVisual",{configurable:!1,writable:!1,value:Object.freeze({get state(){return i},publish(E){try{if(!o(E))return!1;const z=JSON.parse(JSON.stringify(E));return i=z.state,p=z,g||(g=!0,requestAnimationFrame(()=>{g=!1,p&&f("snapshot",{snapshot:p}),p=null})),!0}catch{return!1}}})});let O=!1,b=-1,h=innerHeight,P=Number.NaN,R=0,B=0;const F=()=>{if(O=!1,!document.body)return;let E=Math.ceil(Math.max(document.body.scrollHeight,document.body.getBoundingClientRect().height));const z=innerHeight,J=E-z;if(z>h+1&&J>1&&Math.abs(J-P)<=1?R+=1:(z!==h||J<=1)&&(R=0),h=z,P=J,!B&&R>=3){B=Math.max(a,z);const Y="Page height follows the frame (vh units or height: 100%); frame height held.";console.warn(Y),f("layout",{message:Y})}B&&(E=Math.min(E,B)),E!==b&&(b=E,f("resize",{height:E}))},T=()=>{O||(O=!0,requestAnimationFrame(F))},L=E=>{if(!E||typeof E.dark!="boolean"||!E.variables)return;const z=document.documentElement;z.classList.toggle("dark",E.dark),z.style.colorScheme=E.dark?"dark":"light";const J=E.variables["--inline-html-root-font-size"];"--inline-html-root-font-size"in t.variables&&typeof J=="string"&&J.length<512&&z.style.setProperty("--inline-html-root-font-size",J);for(const Y of Object.keys(t.variables)){if(Y==="--inline-html-root-font-size")continue;const Q=E.variables[Y];typeof Q=="string"&&Q.length<512&&z.style.setProperty(Y,Q)}T()};window.addEventListener("message",E=>{E.source!==window.parent||!E.data||E.data.channel!==r||E.data.type==="theme"&&L(E.data.theme)});const U=E=>{if(E.defaultPrevented||!E.isTrusted||E.ctrlKey||E.metaKey||E.shiftKey||!E.deltaY||Math.abs(E.deltaX)>Math.abs(E.deltaY))return;const z=Q=>{const Ie=getComputedStyle(Q);if(Q!==document.scrollingElement&&!/^(auto|scroll|overlay)$/.test(Ie.overflowY)||/^(hidden|clip)$/.test(Ie.overflowY))return!1;const le=Q.scrollHeight-Q.clientHeight;return le>1&&(E.deltaY<0?Q.scrollTop>1:Q.scrollTop<le-1)};if(E.composedPath().some(Q=>Q instanceof Element&&z(Q))||document.scrollingElement&&z(document.scrollingElement))return;const J=E.deltaMode===WheelEvent.DOM_DELTA_LINE?parseFloat(getComputedStyle(document.body).lineHeight)||16:E.deltaMode===WheelEvent.DOM_DELTA_PAGE?innerHeight:1,Y=Math.max(-n,Math.min(n,E.deltaY*J));Number.isFinite(Y)&&(E.preventDefault(),l({deltaY:Y}))};window.addEventListener("wheel",()=>{window.removeEventListener("wheel",U),window.addEventListener("wheel",U,{passive:!1})},{capture:!0,passive:!1}),window.addEventListener("error",E=>{E.message&&f("error",{message:E.message.slice(0,300)})}),window.addEventListener("unhandledrejection",E=>{const z=E.reason;f("error",{message:String(z instanceof Error?z.message:z).slice(0,300)})}),window.addEventListener("click",E=>{const z=E.target instanceof Element?E.target.closest("a, area"):null;if(!z)return;(z.getAttribute("href")??z.getAttribute("xlink:href"))?.startsWith("#")||E.preventDefault()},!0),window.addEventListener("submit",E=>E.preventDefault(),!0),L(t),window.addEventListener("DOMContentLoaded",()=>{new ResizeObserver(T).observe(document.body),new MutationObserver(T).observe(document.body,{childList:!0,subtree:!0,attributes:!0,characterData:!0}),window.addEventListener("resize",T),document.addEventListener("load",T,!0),document.fonts.ready.then(T),f("ready"),T()},{once:!0})}function F0(r,t,n,a,s){const o=document.createElement("iframe");o.setAttribute("sandbox","allow-scripts"),o.setAttribute("referrerpolicy","no-referrer"),o.title=n,o.style.cssText="display:block;width:100%;height:100%;border:0;";let c;const l=f=>{const i=f.data?.deltaY;typeof i=="number"&&Number.isFinite(i)&&i!==0&&Math.abs(i)<=a&&window.parent.postMessage({channel:r,type:"wheel",deltaY:i},"*")};window.addEventListener("message",f=>{const i=f.data;if(!(!i||typeof i!="object"||i.channel!==r)){if(f.source===window.parent&&i.type==="theme"){o.contentWindow?.postMessage({channel:r,type:"theme",theme:i.theme},"*");return}if(!(f.source!==o.contentWindow||f.origin!=="null")){if(i.type==="scroll-port"&&!c&&f.ports.length===1){c=f.ports[0],c.onmessage=l;return}i.type==="resize"&&typeof i.height=="number"&&Number.isFinite(i.height)&&i.height>=0?window.parent.postMessage({channel:r,type:"resize",height:i.height},"*"):i.type==="ready"?window.parent.postMessage({channel:r,type:"ready"},"*"):(i.type==="error"||i.type==="layout")&&typeof i.message=="string"?window.parent.postMessage({channel:r,type:i.type,message:i.message.slice(0,300)},"*"):i.type==="snapshot"&&s(i.snapshot)&&window.parent.postMessage({channel:r,type:"snapshot",snapshot:i.snapshot},"*")}}}),window.addEventListener("DOMContentLoaded",()=>{o.srcdoc=t,document.body.append(o)},{once:!0})}function z0(r,t,n,a,s,o,c,l){const f=document.implementation.createHTMLDocument(""),i=f.createElement("template");i.innerHTML=n,f.body.append(i.content);const p=Y=>{Y.querySelectorAll("meta, base, link, iframe, frame, frameset, object, embed").forEach(Q=>Q.remove()),Y.querySelectorAll("template").forEach(Q=>p(Q.content)),Y.querySelectorAll("a, area").forEach(Q=>{for(const Ie of["href","xlink:href"])Q.getAttribute(Ie)?.startsWith("#")||Q.removeAttribute(Ie);Q.removeAttribute("target"),Q.removeAttribute("ping"),Q.removeAttribute("download")})};p(f);const g=Y=>JSON.stringify(Y).replace(/</g,"\\u003c"),O=f.createElement("meta");O.httpEquiv="Content-Security-Policy",O.content=r.csp;const b=f.createElement("meta");b.setAttribute("charset","utf-8");const h=f.createElement("style"),P=/^data:[\w.+/-]+;base64,[A-Za-z0-9+/=]+$/.test(l)?`@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900;
|
|
261
261
|
font-display: swap; src: url('${l}') format('woff2'); }`:"";h.textContent=`${P}${r.styles}`;const R=f.createElement("script"),B=g([a,s,r.maxScrollDelta,r.lockHeight,t(c)?c:null]);R.textContent=`(${r.bridge})(...${B}, (${r.validate}));`,f.head.prepend(O,b,h,R);const F=`<!doctype html>${f.documentElement.outerHTML}`,T=document.implementation.createHTMLDocument(""),L=T.createElement("meta");L.httpEquiv="Content-Security-Policy",L.content=r.csp.replace("frame-src 'none'","frame-src about:");const U=T.createElement("meta");U.setAttribute("charset","utf-8");const E=T.createElement("style");E.textContent="html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }";const z=T.createElement("script"),J=g([a,F,o,r.maxScrollDelta]);return z.textContent=`(${r.shell})(...${J}, (${r.validate}));`,T.head.prepend(L,U,E,z),`<!doctype html>${T.documentElement.outerHTML}`}const H0=()=>({csp:D0,styles:N0,maxScrollDelta:pf,lockHeight:O0,bridge:B0.toString(),shell:F0.toString(),validate:ol.toString()});function j0(r,t,n,a,s=null,o=""){return z0(H0(),ol,r,t,n,a,s,o)}function od(r){const t=getComputedStyle(r);return{dark:document.documentElement.classList.contains("dark"),variables:{...Object.fromEntries(L0.map(n=>[`--${n}`,t.getPropertyValue(`--${n}`).trim()])),"--inline-html-root-font-size":getComputedStyle(document.documentElement).fontSize}}}function W0(r,t,n,a,s=null){return j0(r,t,n,a,s,M0)}var U0=I('<p class="type-caption m-0 break-words px-4 pb-2 text-muted-foreground"> </p>'),q0=I('<div class="type-body flex items-center justify-between gap-3 px-4 py-2" role="status"><span class="text-danger"> </span> <!></div> <!>',1),V0=I('<p class="sr-only" role="status"> </p>'),K0=I('<p class="type-body m-0 px-4 py-3 text-muted-foreground" role="status"> </p>'),G0=I('<div class="type-body px-4 py-2 text-danger" role="status"><p class="m-0"> </p> <p class="type-code m-0 break-words"> </p></div>'),J0=I('<iframe sandbox="allow-scripts" referrerpolicy="no-referrer"></iframe>'),Y0=I('<div class="space-y-4 p-4" aria-hidden="true"><div class="space-y-2"><!> <!></div> <!> <div class="flex items-center gap-4"><!> <!> <!></div></div>'),X0=I('<span class="type-caption ml-auto text-muted-foreground" role="status"> </span>'),Z0=I('<p class="type-caption m-0 break-words px-4 pb-2 text-muted-foreground" role="status"> <!></p>'),Q0=I('<th class="min-w-40 px-2 pb-3 align-top font-normal"><!> <div class="mt-1 flex gap-1"><!> <!></div></th>'),$0=I('<td class="max-w-56 px-2 py-2 align-top break-words tabular-nums"> </td>'),ek=I('<tr><th class="max-w-48 py-2 pr-4 align-top font-normal break-words text-muted-foreground"> </th><!></tr>'),tk=I('<div class="overflow-x-auto px-4 pb-4" data-inline-visual-comparison=""><table class="type-body w-full border-separate border-spacing-0 text-left"><thead><tr><th class="min-w-28 pr-4 pb-3 font-normal text-muted-foreground"> </th><th class="min-w-32 px-2 pb-3 align-top font-medium"> </th><!></tr></thead><tbody></tbody></table></div>'),rk=I('<div class="flex flex-wrap items-center gap-1 px-4 py-2" data-inline-visual-actions=""><!> <!> <!> <!> <!></div> <!> <!>',1),nk=I('<div data-inline-html="" class="my-3 min-w-0 overflow-hidden rounded-lg bg-background text-foreground"><div class="flex min-w-0 items-center justify-end gap-1 p-1"><!> <!></div> <!> <!> <div class="relative min-w-0"><!> <!></div> <!></div>');function gf(r,t){if(new.target)return Bt({component:gf,...r});Ht(t,!0);const n=720,a=1e4;let s=y(t,"source",7),o=y(t,"isStreaming",7,!1),c=y(t,"isComplete",7,!0),l=y(t,"record",7),f=y(t,"storageStatus",7,"ready"),i=y(t,"onRecordChange",7),p=y(t,"onUseConfiguration",7),g=y(t,"onExport",7),O=y(t,"onRetry",7),b=y(t,"storageError",7),h=y(t,"exportStatus",7),P=y(t,"exportPath",7),R=y(t,"exportError",7),B,F=ye(void 0),T=ye(!1),L=ye(!1),U=ye(0),E=ye(""),z=ye(""),J=ye(!1),Y=ye(""),Q=ye(Gr(_i)),Ie=ye(n),le=ye(""),fe=ye(Yl()),ce=ye(void 0),Le,G=ye(void 0),we=ye(!1);const $=d(()=>l()??e(fe)),We=d(()=>f()!=="loading"&&(f()!=="error"||!!e($).current)),Ee=d(()=>!o()&&c()&&!!s().trim()&&e(We)),Se=d(()=>Math.min(sd,Math.max(_i,e(Q)))),ke=d(()=>o()||f()==="loading"?"loading":c()?s().trim()?e(Y)?"error":e(J)?"ready":"loading":"empty":"incomplete"),Be=d(()=>o()||f()==="loading"||e(Ee)&&!e(J)&&!e(Y));function Xe(se){const ze={...se,current:e(ce)??se.current};A(fe,ze),i()?.(ze)}function ae(){const se=e(ce);!se||e($).scenarios.length>=Xl||(Xe({...e($),scenarios:[...e($).scenarios,{id:crypto.randomUUID(),name:dp({number:Dl(e($).scenarios.length+1)}),snapshot:structuredClone(se)}]}),A(we,!0))}function Z(se,ze){const nt=ze.trim().slice(0,120);nt&&Xe({...e($),scenarios:e($).scenarios.map(dt=>dt.id===se?{...dt,name:nt}:dt)})}function Je(se){const ze=structuredClone(se);A(ce,ze),A(G,ze),Xe({...e($),current:ze}),A(U,e(U)+1)}function K(se){return typeof se=="number"?Dl(se):typeof se=="string"?se:JSON.stringify(se)}function V(){!e(F)?.contentWindow||!e(z)||e(F).contentWindow.postMessage({channel:e(z),type:"theme",theme:od(B)},"*")}function W(se){let ze=B.parentElement;for(;ze;){const nt=getComputedStyle(ze),dt=ze.scrollHeight-ze.clientHeight;if(/^(auto|scroll|overlay)$/.test(nt.overflowY)&&dt>1){if(se<0?ze.scrollTop>0:ze.scrollTop<dt){ze.dispatchEvent(new WheelEvent("wheel",{deltaY:se,bubbles:!0})),ze.scrollTop+=se;return}if(/^(contain|none)$/.test(nt.overscrollBehaviorY))return}ze=ze.parentElement}window.scrollBy({top:se,behavior:"instant"})}wt(()=>{if(!e(T))return;const se=s(),ze=e(Ee);e(U),Mn(()=>{Le!==se&&(A(fe,Yl()),A(ce,void 0),A(we,!1),A(G,void 0),Le=se),A(J,!1),A(Y,""),A(le,""),A(Q,_i,!0),A(z,crypto.randomUUID(),!0),A(E,ze?W0(se,e(z),od(B),Nl(),e(G)??e(ce)??e($).current):"",!0),A(G,void 0)})}),wt(()=>{if(!e(E)||e(J)||e(Y))return;const se=setTimeout(()=>{A(Y,$f(),!0)},a);return()=>clearTimeout(se)}),to(()=>{A(T,!0);const se=Ke=>{if(Ke.source!==e(F)?.contentWindow||Ke.origin!=="null")return;const tt=Ke.data;if(!(!tt||typeof tt!="object"||tt.channel!==e(z))){if(tt.type==="bootstrap"){e(F)?.contentWindow?.postMessage({channel:e(z),type:"initialize",documentHtml:e(E)},"*");return}if(tt.type==="resize"&&typeof tt.height=="number"&&Number.isFinite(tt.height)&&tt.height>=0)A(Q,Math.min(sd,Math.ceil(tt.height)),!0);else if(tt.type==="ready")A(J,!0),V();else if(tt.type==="error"&&typeof tt.message=="string")A(Y,tt.message.slice(0,300),!0);else if(tt.type==="layout"&&typeof tt.message=="string")A(le,tt.message.slice(0,300),!0);else if(tt.type==="snapshot"&&e(Ee)&&ol(tt.snapshot)){const st=tt.snapshot;A(ce,st),Xe({...e($),current:st})}else tt.type==="wheel"&&e(J)&&e(Ee)&&!e(L)&&!e(Be)&&typeof tt.deltaY=="number"&&Number.isFinite(tt.deltaY)&&tt.deltaY!==0&&Math.abs(tt.deltaY)<=pf&&W(tt.deltaY)}},ze=()=>{A(Ie,Math.min(n,Math.max(160,Math.floor(window.innerHeight*.8))),!0)},nt=new MutationObserver(V);nt.observe(document.documentElement,{attributes:!0,attributeFilter:["class","style","data-theme"]});const dt=window.matchMedia("(prefers-color-scheme: dark)");return dt.addEventListener("change",V),window.addEventListener("message",se),window.addEventListener("resize",ze),ze(),()=>{nt.disconnect(),dt.removeEventListener("change",V),window.removeEventListener("message",se),window.removeEventListener("resize",ze)}});var ie={get source(){return s()},set source(se){s(se),_()},get isStreaming(){return o()},set isStreaming(se=!1){o(se),_()},get isComplete(){return c()},set isComplete(se=!0){c(se),_()},get record(){return l()},set record(se){l(se),_()},get storageStatus(){return f()},set storageStatus(se="ready"){f(se),_()},get onRecordChange(){return i()},set onRecordChange(se){i(se),_()},get onUseConfiguration(){return p()},set onUseConfiguration(se){p(se),_()},get onExport(){return g()},set onExport(se){g(se),_()},get onRetry(){return O()},set onRetry(se){O(se),_()},get storageError(){return b()},set storageError(se){b(se),_()},get exportStatus(){return h()},set exportStatus(se){h(se),_()},get exportPath(){return P()},set exportPath(se){P(se),_()},get exportError(){return R()},set exportError(se){R(se),_()},$set:Ft,$on:(se,ze)=>zt(t,se,ze)},ge=nk(),X=S(ge),de=S(X);yt(de,{variant:"ghost",size:"sm",get active(){return e(L)},get"aria-pressed"(){return e(L)},onclick:()=>{A(L,!e(L))},children:(se,ze)=>{tr();var nt=Tt();k(dt=>x(nt,dt),[()=>e(L)?ep():tp()]),u(se,nt)},$$slots:{default:!0}});var Ne=m(de,2);{let se=d(()=>!e(Ee));yt(Ne,{variant:"ghost",size:"sm",get disabled(){return e(se)},onclick:()=>{A(U,e(U)+1)},children:(ze,nt)=>{tr();var dt=Tt();k(Ke=>x(dt,Ke),[()=>rp()]),u(ze,dt)},$$slots:{default:!0}})}w(X);var Ce=m(X,2);{var rt=se=>{var ze=q0(),nt=je(ze),dt=S(nt),Ke=M(dt,!0),tt=m(dt,2);{var st=Ot=>{yt(Ot,{variant:"ghost",size:"sm",get onclick(){return O()},children:(Dt,Yt)=>{tr();var Et=Tt();k(Wt=>x(Et,Wt),[()=>up()]),u(Dt,Et)},$$slots:{default:!0}})};D(tt,Ot=>{O()&&Ot(st)})}w(nt);var vt=m(nt,2);{var _t=Ot=>{var Dt=U0(),Yt=M(Dt,!0);k(()=>x(Yt,b())),u(Ot,Dt)};D(vt,Ot=>{b()&&Ot(_t)})}k(Ot=>x(Ke,Ot),[()=>np()]),u(se,ze)};D(Ce,se=>{f()==="error"&&se(rt)})}var me=m(Ce,2);{var Re=se=>{var ze=V0(),nt=M(ze,!0);k(dt=>x(nt,dt),[()=>o()?ap():sp()]),u(se,ze)},q=se=>{var ze=K0(),nt=M(ze,!0);k(dt=>x(nt,dt),[()=>c()?ip():op()]),u(se,ze)},Pe=se=>{var ze=G0(),nt=S(ze),dt=M(nt,!0),Ke=m(nt,2),tt=M(Ke,!0);w(ze),k(st=>{x(dt,st),x(tt,e(Y))},[()=>lp()]),u(se,ze)};D(me,se=>{e(Be)?se(Re):e(Ee)?e(Y)&&se(Pe,2):se(q,1)})}var ue=m(me,2),N=S(ue);{var H=se=>{var ze=kt(),nt=je(ze);Es(nt,()=>e(z),dt=>{var Ke=J0();let tt,st;pr(Ke,vt=>A(F,vt),()=>e(F)),k(vt=>{re(Ke,"title",vt),re(Ke,"src",`/inline-html-sandbox.html#${e(z)}`),tt=gt(Ke,1,"block w-full border-0 svelte-1kkow1d",null,tt,{"preview-hidden":e(L)||!e(J)}),re(Ke,"aria-hidden",e(L)||!e(J)),st=Nn(Ke,"",st,{height:`${e(Se)}px`})},[()=>Nl()]),u(dt,Ke)}),u(se,ze)};D(N,se=>{e(Ee)&&e(E)&&se(H)})}var pe=m(N,2);{var Qe=se=>{ua(se,{get code(){return s()},language:"html",noBorder:!0,noMargin:!0,get maxHeight(){return e(Ie)}})},Te=se=>{var ze=Y0(),nt=S(ze),dt=S(nt);_s(dt,{class:"h-4 w-32 max-w-1/2"});var Ke=m(dt,2);_s(Ke,{class:"h-3 w-2/3"}),w(nt);var tt=m(nt,2);_s(tt,{class:"aspect-video max-h-60 w-full rounded-lg"});var st=m(tt,2),vt=S(st);_s(vt,{class:"h-3 w-16"});var _t=m(vt,2);_s(_t,{class:"h-2 min-w-0 flex-1"});var Ot=m(_t,2);_s(Ot,{class:"h-3 w-10"}),w(st),w(ze),u(se,ze)};D(pe,se=>{e(L)?se(Qe):e(Be)&&se(Te,1)})}w(ue);var Fe=m(ue,2);{var et=se=>{var ze=rk(),nt=je(ze),dt=S(nt);{var Ke=Mt=>{{let St=d(()=>!e(J)||!!e(Y));yt(Mt,{size:"sm",get disabled(){return e(St)},onclick:()=>e(ce)&&p()(e(ce)),children:(_e,ee)=>{tr();var Ue=Tt();k(at=>x(Ue,at),[()=>fp()]),u(_e,Ue)},$$slots:{default:!0}})}};D(dt,Mt=>{p()&&Mt(Ke)})}var tt=m(dt,2);{let Mt=d(()=>!e(J)||!!e(Y)||e($).scenarios.length>=Xl);yt(tt,{variant:"ghost",size:"sm",get disabled(){return e(Mt)},onclick:ae,children:(St,_e)=>{tr();var ee=Tt();k(Ue=>x(ee,Ue),[()=>cp()]),u(St,ee)},$$slots:{default:!0}})}var st=m(tt,2);{var vt=Mt=>{yt(Mt,{variant:"ghost",size:"sm",get active(){return e(we)},get"aria-expanded"(){return e(we)},onclick:()=>A(we,!e(we)),children:(St,_e)=>{tr();var ee=Tt();k(Ue=>x(ee,Ue),[()=>pp()]),u(St,ee)},$$slots:{default:!0}})};D(st,Mt=>{e($).scenarios.length&&Mt(vt)})}var _t=m(st,2);{var Ot=Mt=>{{let St=d(()=>!e(J)||h()==="saving");yt(Mt,{variant:"ghost",size:"sm",get disabled(){return e(St)},onclick:()=>g()({...e($),current:e(ce)??null}),children:(_e,ee)=>{tr();var Ue=Tt();k(at=>x(Ue,at),[()=>gp()]),u(_e,Ue)},$$slots:{default:!0}})}};D(_t,Mt=>{g()&&Mt(Ot)})}var Dt=m(_t,2);{var Yt=Mt=>{var St=X0(),_e=M(St,!0);k(ee=>x(_e,ee),[()=>f()==="saving"?vp():f()==="ready"?mp():""]),u(Mt,St)};D(Dt,Mt=>{i()&&Mt(Yt)})}w(nt);var Et=m(nt,2);{var Wt=Mt=>{var St=Z0(),_e=S(St),ee=m(_e);{var Ue=at=>{var ot=Tt();k(()=>x(ot,R())),u(at,ot)};D(ee,at=>{h()==="error"&&R()&&at(Ue)})}w(St),k(at=>x(_e,`${at??""} `),[()=>h()==="saving"?hp():h()==="saved"?bp({path:P()??""}):yp()]),u(Mt,St)};D(Et,Mt=>{h()&&Mt(Wt)})}var Qt=m(Et,2);{var lr=Mt=>{var St=tk(),_e=S(St),ee=S(_e),Ue=S(ee),at=S(Ue),ot=M(at,!0),De=m(at),oe=M(De,!0),ve=m(De);Rt(ve,17,()=>e($).scenarios,Me=>Me.id,(Me,he)=>{var He=Q0(),Ve=S(He);{let Ye=d(()=>wp());Ss(Ve,{get value(){return e(he).name},get"aria-label"(){return e(Ye)},maxlength:120,onblur:xe=>{xe.currentTarget.value.trim()||(xe.currentTarget.value=e(he).name),Z(e(he).id,xe.currentTarget.value)},onkeydown:xe=>{xe.key==="Enter"&&xe.currentTarget.blur(),xe.key==="Escape"&&(xe.currentTarget.value=e(he).name,xe.currentTarget.blur())}})}var qe=m(Ve,2),$e=S(qe);yt($e,{variant:"ghost",size:"sm",onclick:()=>Je(e(he).snapshot),children:(Ye,xe)=>{tr();var Ze=Tt();k(ft=>x(Ze,ft),[()=>_p()]),u(Ye,Ze)},$$slots:{default:!0}});var Oe=m($e,2);yt(Oe,{variant:"ghost",size:"sm",onclick:()=>Xe({...e($),scenarios:e($).scenarios.filter(Ye=>Ye.id!==e(he).id)}),children:(Ye,xe)=>{tr();var Ze=Tt();k(ft=>x(Ze,ft),[()=>xp()]),u(Ye,Ze)},$$slots:{default:!0}}),w(qe),w(He),u(Me,He)}),w(Ue),w(ee);var ne=m(ee);Rt(ne,20,()=>["inputs","results"],Tr,(Me,he)=>{const He=d(()=>he),Ve=d(()=>Array.from(new Set([...Object.keys(e(ce)[e(He)]),...e($).scenarios.flatMap(Oe=>Object.keys(Oe.snapshot[e(He)]))])));var qe=kt(),$e=je(qe);Rt($e,16,()=>e(Ve),Oe=>Oe,(Oe,Ye)=>{var xe=ek(),Ze=S(xe),ft=M(Ze,!0),ct=m(Ze);Rt(ct,17,()=>[e(ce),...e($).scenarios.map(it=>it.snapshot)],Tr,(it,Ct)=>{var mt=$0(),Lt=M(mt,!0);k(Kt=>x(Lt,Kt),[()=>Object.hasOwn(e(Ct)[e(He)],Ye)?K(e(Ct)[e(He)][Ye]):"—"]),u(it,mt)}),w(xe),k(()=>x(ft,Ye)),u(Oe,xe)}),u(Me,qe)}),w(ne),w(_e),w(St),k(Me=>{x(ot,e(ce).title),x(oe,Me)},[()=>kp()]),u(Mt,St)};D(Qt,Mt=>{e(we)&&e($).scenarios.length&&Mt(lr)})}u(se,ze)};D(Fe,se=>{e(ce)&&e(Ee)&&se(et)})}return w(ge),pr(ge,se=>B=se,()=>B),k(()=>{re(ge,"data-inline-html-status",e(ke)),re(ge,"data-inline-html-layout",e(le)?"viewport-locked":void 0),re(ge,"aria-busy",e(Be))}),u(r,ge),jt(ie)}var ak=I('<div class="w-full min-w-0"><!></div>');function sk(r,t){if(new.target)return Bt({component:sk,...r});Ht(t,!0);const n=()=>bt(e(b),"$agent$",s),a=()=>bt(e(B),"$entry$",s),[s,o]=ga();let c=y(t,"block",7),l=y(t,"role",7),f=y(t,"workspaceId",7),i=y(t,"agentId",7),p=y(t,"messageId",7),g=y(t,"contentBlockKey",7,""),O=ye(void 0);const b=d(()=>Bo(i()??"")),h=d(()=>l()==="assistant"&&f()&&i()&&p()&&c().metadata?.fenceClosed&&!c().metadata?.isStreaming&&n()&&!Jd(n())?{workspaceId:f(),agentId:i(),messageId:p(),blockKey:JSON.stringify([g(),c().metadata?.fenceStart??0]),source:c().content}:void 0),P=d(()=>!!(f()&&i()&&p()&&c().metadata?.fenceClosed&&!n())),R=d(()=>e(h)?bv(e(h)):""),B=d(()=>ah(e(R)));wt(()=>{e(h)&&Nt.dispatch(gv(e(h)))});function F(Y){!f()||!i()||n()?.retiredAt||e(O)?.dispatchEvent(new CustomEvent(kb,{bubbles:!0,detail:{workspaceId:f(),agentId:i(),snapshot:Y}}))}var T={get block(){return c()},set block(Y){c(Y),_()},get role(){return l()},set role(Y){l(Y),_()},get workspaceId(){return f()},set workspaceId(Y){f(Y),_()},get agentId(){return i()},set agentId(Y){i(Y),_()},get messageId(){return p()},set messageId(Y){p(Y),_()},get contentBlockKey(){return g()},set contentBlockKey(Y=""){g(Y),_()},$set:Ft,$on:(Y,Q)=>zt(t,Y,Q)},L=kt(),U=je(L);{var E=Y=>{var Q=ak(),Ie=S(Q);{let le=d(()=>c().metadata?.isStreaming??!1),fe=d(()=>c().metadata?.fenceClosed??!1),ce=d(()=>a()?.record),Le=d(()=>e(h)?a()?.status??"loading":e(P)?"loading":"ready"),G=d(()=>a()?.error),we=d(()=>e(h)?Xe=>Nt.dispatch(hv(e(R),Xe)):void 0),$=d(()=>f()&&i()&&n()&&!n().retiredAt?F:void 0),We=d(()=>e(h)?()=>Nt.dispatch(mv(e(R))):void 0),Ee=d(()=>e(h)?Xe=>Nt.dispatch(vv(e(R),crypto.randomUUID(),Xe)):void 0),Se=d(()=>a()?.export?.status),ke=d(()=>a()?.export?.path),Be=d(()=>a()?.export?.error);gf(Ie,{get source(){return c().content},get isStreaming(){return e(le)},get isComplete(){return e(fe)},get record(){return e(ce)},get storageStatus(){return e(Le)},get storageError(){return e(G)},get onRecordChange(){return e(we)},get onUseConfiguration(){return e($)},get onRetry(){return e(We)},get onExport(){return e(Ee)},get exportStatus(){return e(Se)},get exportPath(){return e(ke)},get exportError(){return e(Be)}})}w(Q),pr(Q,le=>A(O,le),()=>e(O)),u(Y,Q)},z=Y=>{ua(Y,{get code(){return c().content},language:"html"})};D(U,Y=>{l()==="assistant"?Y(E):Y(z,-1)})}u(r,L);var J=jt(T);return o(),J}var ok=I('<div class="digest-card flex items-start gap-2.5 py-5 px-6 my-4 shadow-xs text-base leading-normal border border-border"> </div>');function ik(r,t){if(new.target)return Bt({component:ik,...r});Ht(t,!0);let n=y(t,"digest",7);var a={get digest(){return n()},set digest(c){n(c),_()},$set:Ft,$on:(c,l)=>zt(t,c,l)},s=ok(),o=M(s,!0);return k(()=>x(o,n())),u(r,s),jt(a)}var lk=I('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-blue-500/15 text-blue-600 dark:text-blue-400"> </span>'),ck=I('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-muted text-muted-foreground"> </span>'),dk=I('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-primary/10 text-primary/80"> </span>'),uk=I('<div class="flex items-start gap-3 px-4 py-2.5"><div class="flex-1 min-w-0"><div class="flex items-center gap-2 flex-wrap"><span class="text-sm font-semibold text-foreground"> </span> <!> <!></div> <div class="mt-0.5 text-xs font-mono text-muted-foreground truncate"> </div></div></div>'),fk=I('<div class="detected-scripts-card my-3 rounded-lg border border-border bg-muted/30 overflow-hidden"><div class="flex items-center gap-2 px-4 py-2.5 border-b border-border bg-muted/40"><!> <span class="text-sm font-semibold text-foreground"> </span></div> <div class="divide-y divide-border"></div> <div class="px-4 py-2 border-t border-border bg-muted/20"><span class="text-xs text-muted-foreground"> </span></div></div>');function pk(r,t){if(new.target)return Bt({component:pk,...r});Ht(t,!0);let n=y(t,"scripts",7);var a={get scripts(){return n()},set scripts(b){n(b),_()},$set:Ft,$on:(b,h)=>zt(t,b,h)},s=fk(),o=S(s),c=S(o);At(c,{get icon(){return Nd},size:"sm",class:"text-primary-ink/70"});var l=m(c,2),f=M(l,!0);w(o);var i=m(o,2);Rt(i,21,n,b=>b.name+b.command,(b,h)=>{var P=uk(),R=S(P),B=S(R),F=S(B),T=M(F,!0),L=m(F,2);{var U=Ie=>{var le=lk(),fe=M(le,!0);k(ce=>x(fe,ce),[()=>v.chat_detectedScripts_service_badge()]),u(Ie,le)},E=Ie=>{var le=ck(),fe=M(le,!0);k(ce=>x(fe,ce),[()=>v.chat_detectedScripts_command_badge()]),u(Ie,le)};D(L,Ie=>{e(h).mode==="service"?Ie(U):Ie(E,-1)})}var z=m(L,2);{var J=Ie=>{var le=dk(),fe=M(le,!0);k(()=>x(fe,e(h).category)),u(Ie,le)};D(z,Ie=>{e(h).category&&e(h).category!=="other"&&Ie(J)})}w(B);var Y=m(B,2),Q=M(Y,!0);w(R),w(P),k(()=>{x(T,e(h).name),x(Q,e(h).command)}),u(b,P)}),w(i);var p=m(i,2),g=S(p),O=M(g,!0);return w(p),w(s),k((b,h)=>{x(f,b),x(O,h)},[()=>v.chat_detectedScripts_title(),()=>n().length===1?v.chat_detectedScripts_count_one({count:nr(n().length)}):v.chat_detectedScripts_count_many({count:nr(n().length)})]),u(r,s),jt(a)}function gk(r,t){if(new.target)return Bt({component:gk,...r});Ht(t,!0);let n=y(t,"diff",7),a=y(t,"filePath",7),s=y(t,"language",7),o=y(t,"onApply",7),c=y(t,"onReject",7);function l(){o()?.(),da.success(v.chat_diffViewer_applied_toast())}function f(){c()?.(),da.info(v.chat_diffViewer_rejected_toast())}const i=d(()=>{const g=[];return o()&&g.push({label:v.chat_diffViewer_apply_label(),variant:"success",onClick:l}),c()&&g.push({label:v.chat_diffViewer_reject_label(),variant:"danger",onClick:f}),g});var p={get diff(){return n()},set diff(g){n(g),_()},get filePath(){return a()},set filePath(g){a(g),_()},get language(){return s()},set language(g){s(g),_()},get onApply(){return o()},set onApply(g){o(g),_()},get onReject(){return c()},set onReject(g){c(g),_()},$set:Ft,$on:(g,O)=>zt(t,g,O)};{let g=d(()=>a()||v.chat_diffViewer_suggestedChanges_fallback());Ys(r,{get patch(){return n()},get fileName(){return e(g)},get language(){return s()},get actions(){return e(i)},collapsible:!0,initialCollapsed:!1,maxHeight:"500px"})}return jt(p)}var vk=Ha('<circle fill="none" style="transition: stroke-dasharray 0.3s ease-out"></circle>'),id=Ha("<circle></circle>"),mk=Ha('<svg class="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 fill-background" viewBox="0 0 8 6"><path fill-rule="evenodd" clip-rule="evenodd" d="M7.69471 1.69471C7.87687 1.50611 7.97766 1.25351 7.97539 0.991311C7.97311 0.729114 7.86794 0.478302 7.68253 0.292894C7.49712 0.107485 7.24631 0.00231622 6.98411 3.78025e-05C6.72192 -0.00224062 6.46931 0.0985542 6.28071 0.280712L2.98771 3.57371L1.69471 2.28071C1.50611 2.09855 1.25351 1.99776 0.991311 2.00004C0.729114 2.00232 0.478302 2.10749 0.292894 2.29289C0.107485 2.4783 0.00231622 2.72911 3.78025e-05 2.99131C-0.00224062 3.25351 0.0985542 3.50611 0.280712 3.69471L2.28071 5.69471C2.46824 5.88218 2.72255 5.9875 2.98771 5.9875C3.25288 5.9875 3.50718 5.88218 3.69471 5.69471L7.69471 1.69471Z"></path></svg>'),hk=I('<div class="relative"><svg fill="none" xmlns="http://www.w3.org/2000/svg"><circle fill="none"></circle><!></svg> <!></div>');function Io(r,t){if(new.target)return Bt({component:Io,...r});Ht(t,!0);let n=y(t,"phase",7),a=y(t,"progress",7,0),s=y(t,"size",7,16),o=y(t,"class",7,""),c=d(()=>s()/2),l=d(()=>e(c)),f=d(()=>e(c)),i=d(()=>s()*.12),p=d(()=>e(c)-e(i)/2),g=d(()=>e(c)*.35),O=d(()=>2*Math.PI*e(g)),b=d(()=>Math.max(0,Math.min(1,a()))*e(O));const h={planning:"#99999999",building:"#54B1F3",reviewing:"#6D7FF5",shipped:"var(--color-foreground)"};let P=d(()=>h[n()]||"currentColor");var R={get phase(){return n()},set phase(le){n(le),_()},get progress(){return a()},set progress(le=0){a(le),_()},get size(){return s()},set size(le=16){s(le),_()},get class(){return o()},set class(le=""){o(le),_()},$set:Ft,$on:(le,fe)=>zt(t,le,fe)},B=hk(),F=S(B),T=S(F),L=m(T);{var U=le=>{},E=le=>{var fe=vk();k(()=>{re(fe,"cx",e(l)),re(fe,"cy",e(f)),re(fe,"r",e(g)*.8),re(fe,"stroke",e(P)),re(fe,"stroke-width",e(g)*1.5),re(fe,"stroke-dasharray",`${e(b)??""} ${e(O)??""}`),re(fe,"stroke-dashoffset",e(O)*.25),re(fe,"transform",`rotate(-90 ${e(l)??""} ${e(f)??""})`)}),u(le,fe)},z=le=>{var fe=id();k(()=>{re(fe,"cx",e(l)),re(fe,"cy",e(f)),re(fe,"r",e(p)*.6),re(fe,"fill",e(P))}),u(le,fe)},J=le=>{var fe=id();k(()=>{re(fe,"cx",e(l)),re(fe,"cy",e(f)),re(fe,"r",e(p)),re(fe,"fill",e(P))}),u(le,fe)};D(L,le=>{n()==="planning"?le(U):n()==="building"?le(E,1):n()==="reviewing"?le(z,2):n()==="shipped"&&le(J,3)})}w(F);var Y=m(F,2);{var Q=le=>{},Ie=le=>{var fe=mk();k(()=>re(fe,"width",s()*.5)),u(le,fe)};D(Y,le=>{n()==="reviewing"?le(Q):n()==="shipped"&&le(Ie,1)})}return w(B),k(()=>{re(F,"width",s()),re(F,"height",s()),re(F,"viewBox",`0 0 ${s()??""} ${s()??""}`),gt(F,0,ir(o())),re(T,"cx",e(l)),re(T,"cy",e(f)),re(T,"r",e(p)),re(T,"stroke",e(P)),re(T,"stroke-width",e(i))}),u(r,B),jt(R)}var ld=I('<span class="flex items-center gap-1"><span class="size-1.5 rounded-full"></span> </span>'),bk=I('<span class="flex items-center gap-1"><span class="size-1.5 rounded-full bg-border"></span> </span>'),cd=I('<span class="text-ui text-subtle truncate"> </span>'),dd=I('<div class="flex items-center gap-1 mt-0.5"><!> <!></div>'),ud=I('<div class="flex items-start gap-2"><div class="shrink-0 mt-0.5"><!></div> <div class="flex-1 min-w-0"><div class="text-xs leading-snug truncate"> </div> <!></div></div>'),yk=I('<div class="flex items-center gap-2"><div class="shrink-0"><!></div> <span class="text-ui text-subtle truncate line-through"> </span></div>'),_k=I('<span class="text-ui text-subtle pl-4"> </span>'),xk=I('<div class="flex flex-col gap-0.5 pt-1 border-t border-border"><!> <!></div>'),wk=I('<div class="text-ui text-subtle"> </div>'),kk=I("<!> <!> <!> <!>",1),Ik=I('<div class="flex flex-col py-2 px-3 gap-2 max-h-80 overflow-y-auto"><div class="flex items-center justify-between gap-3"><span class="text-xs font-semibold text-foreground"> </span> <div class="flex items-center gap-3 text-ui text-subtle"><!> <!> <!></div></div> <!></div>'),Sk=I('<div class="rounded-[0.5px]"></div>');function vf(r,t){if(new.target)return Bt({component:vf,...r});Ht(t,!0);let n=y(t,"stats",7),a=y(t,"tasks",23,()=>[]),s=y(t,"maxBars",7,20),o=y(t,"barWidth",7,"1px"),c=y(t,"barHeight",7,"16px"),l=y(t,"gap",7,"1px"),f=y(t,"class",7);const i={completed:"#22c55e",inProgress:"#4F7BF7",notStarted:"var(--border)"};let p=d(()=>{const{completed:L,inProgress:U,notStarted:E,total:z}=n();if(z===0)return[];const J=[...Array(L).fill("completed"),...Array(U).fill("inProgress"),...Array(Math.max(0,E)).fill("notStarted")];return J.length<=s()?J:J.slice(J.length-s())}),g=d(()=>a().filter(L=>L.status==="complete")),O=d(()=>a().filter(L=>L.status==="in_progress"||L.status==="review_required")),b=d(()=>a().filter(L=>L.status!=="complete"&&L.status!=="in_progress"&&L.status!=="review_required"&&L.status!=="cancelled")),h=d(()=>a().filter(L=>L.status==="cancelled")),P=d(()=>a().length>0);var R={get stats(){return n()},set stats(L){n(L),_()},get tasks(){return a()},set tasks(L=[]){a(L),_()},get maxBars(){return s()},set maxBars(L=20){s(L),_()},get barWidth(){return o()},set barWidth(L="1px"){o(L),_()},get barHeight(){return c()},set barHeight(L="16px"){c(L),_()},get gap(){return l()},set gap(L="1px"){l(L),_()},get class(){return f()},set class(L){f(L),_()},$set:Ft,$on:(L,U)=>zt(t,L,U)},B=kt(),F=je(B);{var T=L=>{Ci(L,{side:"top",align:"start",sideOffset:6,contentClass:"max-w-xs p-0",delayDuration:200,disableHoverableContent:!1,content:E=>{var z=Ik(),J=S(z),Y=S(J),Q=M(Y,!0),Ie=m(Y,2),le=S(Ie);{var fe=Ee=>{var Se=ld(),ke=S(Se);Nn(ke,"",{},{"background-color":"#22c55e"});var Be=m(ke);w(Se),k(()=>x(Be,` ${n().completed??""}`)),u(Ee,Se)};D(le,Ee=>{n().completed>0&&Ee(fe)})}var ce=m(le,2);{var Le=Ee=>{var Se=ld(),ke=S(Se);Nn(ke,"",{},{"background-color":"#4F7BF7"});var Be=m(ke);w(Se),k(()=>x(Be,` ${n().inProgress??""}`)),u(Ee,Se)};D(ce,Ee=>{n().inProgress>0&&Ee(Le)})}var G=m(ce,2);{var we=Ee=>{var Se=bk(),ke=m(S(Se));w(Se),k(()=>x(ke,` ${n().notStarted??""}`)),u(Ee,Se)};D(G,Ee=>{n().notStarted>0&&Ee(we)})}w(Ie),w(J);var $=m(J,2);{var We=Ee=>{var Se=kk(),ke=je(Se);Rt(ke,17,()=>e(O),Tr,(K,V)=>{var W=ud(),ie=S(W),ge=S(ie);oi(ge,{get status(){return e(V).status},size:14}),w(ie);var X=m(ie,2),de=S(X),Ne=M(de,!0),Ce=m(de,2);{var rt=me=>{var Re=dd(),q=S(Re);{let N=d(()=>e(V).agentState||"idle");Hl(q,{get agentId(){return e(V).agentId},get state(){return e(N)},size:12,get specialist(){return e(V).agentSpecialist}})}var Pe=m(q,2);{var ue=N=>{var H=cd(),pe=M(H,!0);k(()=>x(pe,e(V).agentName)),u(N,H)};D(Pe,N=>{e(V).agentName&&N(ue)})}w(Re),u(me,Re)};D(Ce,me=>{e(V).agentId&&me(rt)})}w(X),w(W),k(()=>x(Ne,e(V).title)),u(K,W)});var Be=m(ke,2);Rt(Be,17,()=>e(b),Tr,(K,V)=>{var W=ud(),ie=S(W),ge=S(ie);oi(ge,{get status(){return e(V).status},size:14}),w(ie);var X=m(ie,2),de=S(X),Ne=M(de,!0),Ce=m(de,2);{var rt=me=>{var Re=dd(),q=S(Re);{let N=d(()=>e(V).agentState||"idle");Hl(q,{get agentId(){return e(V).agentId},get state(){return e(N)},size:12,get specialist(){return e(V).agentSpecialist}})}var Pe=m(q,2);{var ue=N=>{var H=cd(),pe=M(H,!0);k(()=>x(pe,e(V).agentName)),u(N,H)};D(Pe,N=>{e(V).agentName&&N(ue)})}w(Re),u(me,Re)};D(Ce,me=>{e(V).agentId&&me(rt)})}w(X),w(W),k(()=>x(Ne,e(V).title)),u(K,W)});var Xe=m(Be,2);{var ae=K=>{var V=xk(),W=S(V);Rt(W,17,()=>e(g).slice(0,3),Tr,(X,de)=>{var Ne=yk(),Ce=S(Ne),rt=S(Ce);oi(rt,{status:"complete",size:12}),w(Ce);var me=m(Ce,2),Re=M(me,!0);w(Ne),k(()=>x(Re,e(de).title)),u(X,Ne)});var ie=m(W,2);{var ge=X=>{var de=_k(),Ne=M(de,!0);k(Ce=>x(Ne,Ce),[()=>v.workspace_taskProgressBar_moreCompleted_label({count:nr(e(g).length-3)})]),u(X,de)};D(ie,X=>{e(g).length>3&&X(ge)})}w(V),u(K,V)};D(Xe,K=>{e(g).length>0&&K(ae)})}var Z=m(Xe,2);{var Je=K=>{var V=wk(),W=M(V,!0);k(ie=>x(W,ie),[()=>v.workspace_taskProgressBar_cancelled_label({count:nr(e(h).length)})]),u(K,V)};D(Z,K=>{e(h).length>0&&K(Je)})}u(Ee,Se)};D($,Ee=>{e(P)&&Ee(We)})}w(z),k(Ee=>x(Q,Ee),[()=>v.workspace_taskProgressBar_tasksRatio_label({completed:nr(n().completed),total:nr(n().total)})]),u(E,z)},children:(E,z)=>{{let J=d(()=>In("flex h-auto min-w-0 shrink items-end justify-start cursor-default rounded-none border-0",f())),Y=d(()=>`gap: ${l()}`),Q=d(()=>v.workspace_taskProgressBar_tasksRatio_label({completed:nr(n().completed),total:nr(n().total)}));yt(E,{variant:"plain",type:"button",wrapContent:!1,get class(){return e(J)},get style(){return e(Y)},get"aria-label"(){return e(Q)},"data-task-progress-trigger":!0,children:(Ie,le)=>{var fe=kt(),ce=je(fe);Rt(ce,17,()=>e(p),Tr,(Le,G)=>{var we=Sk();let $;k(()=>$=Nn(we,"",$,{width:o(),height:c(),"background-color":i[e(G)]})),u(Le,we)}),u(Ie,fe)},$$slots:{default:!0}})}},$$slots:{content:!0,default:!0}})};D(F,L=>{n().total>0&&L(T)})}return u(r,B),jt(R)}function Il(r,t){if(new.target)return Bt({component:Il,...r});Ht(t,!0);let n=y(t,"items",7),a=y(t,"ariaLabel",7),s=y(t,"open",15,!1),o=y(t,"orientation",7,"vertical"),c=y(t,"selection",7),l=y(t,"class",7,"");const f=d(()=>Cg(n(),c(),a()));var i={get items(){return n()},set items(p){n(p),_()},get ariaLabel(){return a()},set ariaLabel(p){a(p),_()},get open(){return s()},set open(p=!1){s(p),_()},get orientation(){return o()},set orientation(p="vertical"){o(p),_()},get selection(){return c()},set selection(p){c(p),_()},get class(){return l()},set class(p=""){l(p),_()},$set:Ft,$on:(p,g)=>zt(t,p,g)};return Gm(r,{get actions(){return e(f)},align:"end",get ariaLabel(){return a()},onAction:g=>Sg(n(),g)?.onClick(),get open(){return s()},set open(g){s(g)},trigger:(g,O)=>{let b=()=>(O?.()).props;yt(g,el(b,{variant:"plain",size:"icon-compact",iconOnly:!0,type:"button",get class(){return l()},get"aria-label"(){return a()},onclick:h=>{h.stopPropagation(),b().onclick?.(h)},oncontextmenu:h=>{h.preventDefault(),h.stopPropagation()},children:(h,P)=>{Jm(h,{get orientation(){return o()},class:"size-3.5"})},$$slots:{default:!0}}))},$$slots:{trigger:!0}}),jt(i)}var Ck=I('<span class="contents"><!></span>'),Ek=I("<!> <!>",1);function mf(r,t){if(new.target)return Bt({component:mf,...r});Ht(t,!0);let n=y(t,"workspaceId",7),a=y(t,"slot",7);const s=d(()=>sv(a()));let o=ye(null);wt(()=>{e(o)&&e(o).workspaceId!==n()&&A(o,null)});function c(h){const P=Ad(h);P&&A(o,{...P,workspaceId:n()},!0)}function l(h){h.preventDefault(),h.stopPropagation();const P=h.currentTarget.getBoundingClientRect();A(o,{x:P.left,y:P.bottom+2,returnFocus:h.currentTarget,workspaceId:n()},!0)}function f(){A(o,null)}var i={get workspaceId(){return n()},set workspaceId(h){n(h),_()},get slot(){return a()},set slot(h){a(h),_()},$set:Ft,$on:(h,P)=>zt(t,h,P)},p=Ek(),g=je(p);{let h=d(()=>v.workspace_microKeyBadge_ariaLabel({number:nr(a()+1)})),P=d(()=>v.workspace_microKeyBadge_tooltip({number:nr(a()+1)})),R=d(()=>e(o)!==null);yt(g,{variant:"ghost",size:"icon",type:"button",class:"micro-key-slot-badge size-4 min-w-0 shrink-0 cursor-pointer rounded-[3px] p-0 a11y-ignore",get"aria-label"(){return e(h)},get title(){return e(P)},onclick:l,oncontextmenu:c,onkeydown:c,"aria-haspopup":"menu",get"aria-expanded"(){return e(R)},children:(B,F)=>{var T=Ck(),L=S(T);ag(L,{get slot(){return a()},get class(){return`transition-colors ${e(s)??""}`}}),w(T),u(B,T)},$$slots:{default:!0}})}var O=m(g,2);{var b=h=>{{let P=d(()=>e(o)?.x??0),R=d(()=>e(o)?.y??0),B=d(()=>e(o)?.returnFocus),F=d(()=>v.workspace_card_assignMicroKey_label()),T=d(()=>$h(n(),f));Td(h,{get x(){return e(P)},get y(){return e(R)},get returnFocus(){return e(B)},selection:"single",get ariaLabel(){return e(F)},get items(){return e(T)},onClickOutside:f})}};D(O,h=>{e(o)&&h(b)})}return u(r,p),jt(i)}var Pk=I('<span class="flex size-4 shrink-0 items-center justify-center"><!></span>'),Ak=I('<span data-workspace-card-pin-indicator="" aria-hidden="true"><!></span> <span class="sr-only"> </span>',1),Tk=I('<span class="type-caption shrink-0 rounded-sm bg-muted-foreground/10 px-1.5 font-normal text-muted-foreground" data-workspace-card-trailing-label=""> </span>'),Rk=I('<span data-workspace-card-pr-item=""><!></span>'),Mk=I('<span class="flex shrink-0 items-center" data-workspace-card-pr-list=""><!></span>'),Nk=I('<span data-workspace-card-time=""><!></span>'),Lk=I('<span aria-hidden="true"><!></span>'),Ok=I("<div><!> <!> <!> <!></div>"),Dk=I('<div data-workspace-card-hover-surface=""><!></div>'),Bk=I('<div role="group" data-workspace-card-row=""><!> <div class="relative z-10 flex shrink-0 items-center gap-1.5"><!> <!> <span class="sr-only"> </span></div> <div class="relative z-10 flex min-w-0 flex-1 items-center gap-2"><span class="flex min-w-0 flex-1 items-center gap-1" data-workspace-card-title-group=""><span dir="ltr" data-workspace-card-title=""><span class="wc-title-text svelte-1ct56pd"> </span></span> <!></span> <!> <!> <!></div> <!></div> <!> <!>',1),Fk=I('<div class="relative z-10 flex shrink-0 items-center"><!></div>'),zk=I('<div><!> <!> <span class="font-medium truncate"> </span> <span class="shrink-0 text-muted-foreground">·</span> <span class="truncate text-xs text-muted-foreground"> </span> <!></div>'),Hk=I('<div class="text-sm font-semibold truncate"> </div>'),fd=I('<span class="truncate"> </span>'),jk=I('<span class="text-muted-foreground">·</span>'),Wk=I('<div class="flex items-center gap-1 truncate text-xs text-muted-foreground"><!> <!> <!></div>'),Uk=I('<div><!> <!> <div class="flex items-center gap-2 text-xs"><!> <span class="truncate text-muted-foreground"> </span> <span> </span></div> <!></div>'),qk=I('<div class="flex items-center gap-2"><!> <span class="text-ui shrink-0 tabular-nums text-muted-foreground"> </span></div>'),Vk=I('<div class="flex items-center justify-between text-ui"><span class="text-muted-foreground"> </span> <span class="tabular-nums"><span class="text-success"> </span> <span class="ml-1 text-danger"> </span></span></div>'),Kk=I('<div class="flex items-center justify-between text-ui"><span class="text-muted-foreground"> </span></div>'),Gk=I('<div class="flex items-center text-ui"><span> </span></div>'),Jk=I('<div class="flex flex-col gap-1 px-3 pb-2.5"><!> <!> <!> <!></div>'),Yk=I('<div class="relative z-10 flex items-center gap-1.5 px-2 pb-2"><!></div>'),Xk=I('<div class="relative z-10 flex items-center gap-1.5 px-2 pb-2"><!> <!></div>'),Zk=I('<div role="group"><!> <div class="flex items-start gap-2.5 px-3 pt-3 pb-2"><!> <div class="flex-1 min-w-0"><div class="text-sm font-medium"> </div> <div class="mt-0.5 line-clamp-2 text-xs leading-snug text-muted-foreground"> </div></div></div> <!> <!></div>');function hf(r,t){if(new.target)return Bt({component:hf,...r});Ht(t,!0);const n=()=>bt(Be,"$prMonitors$",c),a=()=>bt(Xe,"$microConnected$",c),s=()=>bt(Z,"$hidesOwnerActions$",c),o=()=>bt(ae,"$workspaceKeySlot$",c),[c,l]=ga();let f=y(t,"workspace",7),i=y(t,"phase",7),p=y(t,"stats",7),g=y(t,"variant",7,"compact"),O=y(t,"showTime",7,!0),b=y(t,"isRunning",7,!1),h=y(t,"isUnread",7,!1),P=y(t,"isWaiting",7),R=y(t,"isPinned",7,!1),B=y(t,"streamingAgentIds",23,()=>[]),F=y(t,"hasSpec",7,!1),T=y(t,"isAgentRunning",7,!1),L=y(t,"agentDigest",7),U=y(t,"trailingLabel",7),E=y(t,"title",7),z=y(t,"repoName",7),J=y(t,"branch",7),Y=y(t,"onClick",7),Q=y(t,"onAction",7),Ie=y(t,"onTogglePin",7),le=y(t,"onMarkAsRead",7),fe=y(t,"onOpenInNewWindow",7),ce=y(t,"onHover",7),Le=y(t,"highlighted",7,!1),G=y(t,"selected",7,!1),we=y(t,"highlightId",7),$=y(t,"suppressHover",7,!1),We=y(t,"isolateHoverReveal",7,!1),Ee=y(t,"class",7),Se=y(t,"actions",7);const ke=Is("");wt(()=>{ke.set(f()?.id??"")});const Be=Vp(ke),Xe=pb(),ae=Dv(ke),Z=Kp(ke),Je=d(()=>tb(f()??{})),K=d(()=>rb(e(Je)));let V=d(()=>f()?fb.url.pathname===`/workspace/${f().id}`:!1),W=d(()=>f()?`workspace-hover-card-${f().id}`:void 0),ie=ye(!1),ge=ye(null),X=ye(null);wt(()=>{if(!e(X))return;const te=vo(e(X),{id:we()});return()=>te.destroy()});let de=ye(null),Ne=ye(null),Ce=ye(null),rt=ye(0),me=ye(0),Re=d(()=>e(rt)+(e(me)>0?e(me)+4:0));function q(){const te=e(de),pt=e(Ce);A(rt,te?Math.max(0,te.scrollWidth-te.clientWidth):0,!0),A(me,te&&pt&&pt.getClientRects().length>0?Math.max(0,te.getBoundingClientRect().right-pt.getBoundingClientRect().left):0,!0)}wt(()=>{const te=e(de),pt=e(Ne),qt=e(Ce);if(!te||!pt||(q(),typeof ResizeObserver>"u"))return;const Jt=new ResizeObserver(q);return Jt.observe(te),Jt.observe(pt),qt&&Jt.observe(qt),()=>Jt.disconnect()});let Pe=null,ue=null,N=!1,H=!1,pe=!1,Qe=!1,Te=!1,Fe=!1,et=ye(!1),se=!1,ze=null,nt=ye(null),dt=null,Ke;function tt(){Pe!==null&&(clearTimeout(Pe),Pe=null)}function st(){ue!==null&&(clearTimeout(ue),ue=null),dt?.(),dt=null}function vt(){st(),A(et,!0),A(ie,!0),!Te&&(Te=!0,js.notifyOpened())}function _t(){st(),clearTimeout(Ke),A(et,!1),A(ie,!1),H=!1,Qe=!1,Te&&(Te=!1,js.notifyClosed())}function Ot(){return N||H||pe||Qe}function Dt(){if(!e(ie)){_t();return}st(),ue=setTimeout(()=>{ue=null,Ot()||_t()},ab),dt=js.deferClose(_t)}function Yt(){H=!0,st()}function Et(){H=!1,!pe&&!Qe&&Dt()}function Wt(){Qe=!0,clearTimeout(Ke),st()}function Qt(te){const pt=te.relatedTarget instanceof Node?te.relatedTarget:null;if(pt&&ve()?.contains(pt)||(Qe=!1,pt&&e(ge)?.contains(pt)))return;if(pt){!N&&!H&&_t();return}const qt=te.target;clearTimeout(Ke),Ke=setTimeout(()=>{const Jt=document.activeElement,_r=ve()?.contains(Jt)||e(ge)?.contains(Jt);Jt&&Jt!==qt&&_r||!N&&!H&&_t()},0)}function lr(){ze!==null&&clearTimeout(ze),se=!0,ze=setTimeout(()=>{se=!1,ze=null},0)}function Mt(te){const pt=te.target,qt=ve();pt instanceof Node&&qt?.contains(pt)||te.type==="scroll"&&e(ge)&&pt instanceof Node&&!pt.contains(e(ge))||(te.type==="pointerdown"&&lr(),tt(),_t())}wt(()=>{if(e(et))return window.addEventListener("pointerdown",Mt,!0),window.addEventListener("scroll",Mt,!0),()=>{window.removeEventListener("pointerdown",Mt,!0),window.removeEventListener("scroll",Mt,!0)}});function St(te){if(te.key!=="Escape")return;const pt=te.target;pt instanceof Node&&ve()?.contains(pt)||(te.preventDefault(),te.stopPropagation(),Fe=pe,tt(),_t())}wt(()=>{if(e(ie))return window.addEventListener("keydown",St,!0),()=>window.removeEventListener("keydown",St,!0)});const _e=d(()=>f()?Jp.select(Nt.state,f().id):null),ee=d(()=>e(_e)?e(_e):f()?.activePullRequest?f().activePullRequest:!f()?.prStatus||f().prNumber==null?null:{id:`legacy-pr-${f().prNumber}`,number:f().prNumber,url:f().prUrl??"",title:v.workspace_hoverCard_pullRequest_label(),status:f().prStatus,createdAt:f().updatedAt,updatedAt:f().updatedAt}),Ue=d(()=>Gp(f())),at=d(()=>{if(!f()||e(Ue))return[];const te=f(),pt=te.repositoryOwner&&te.repositoryName?`${te.repositoryOwner}/${te.repositoryName}`:void 0;return Eg({workspacePRs:te.pullRequests,activePR:e(ee),monitors:n(),workspaceRepo:pt,buildPrUrl:(qt,Jt)=>Em(qt,te.repositoryOwner,te.repositoryName,Jt),getDisplayTitle:qt=>qt.title})}),ot=d(()=>e(at)[0]);function De(te){const pt=te.resource?.repository.provider==="gitlab"?`${te.repo} !${te.number}`:te.repo?v.workspace_card_prBadge_repoLine_tooltip({repo:te.repo,number:te.number}):v.workspace_card_prBadge_label({number:` #${te.number}`});return[Yp(pt,te),te.title,te.details].filter(Boolean).join(`
|
|
262
262
|
`)}function oe(te){te.key==="Enter"&&Y()?.(te)}function ve(){return e(W)?document.getElementById(e(W)):null}function ne(){return Array.from(ve()?.querySelectorAll("button:not(:disabled), a[href]")??[])}function Me(){const te=e(ge)?.querySelector("[data-workspace-card-trigger]"),pt=ve();if(!te||!pt)return null;const qt=Array.from(document.querySelectorAll('button:not(:disabled), a[href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex="-1"])')).filter(_r=>_r.tabIndex>=0&&!pt.contains(_r)),Jt=qt.indexOf(te);return Jt>=0?qt[Jt+1]:null}function he(te){Fe=!!e(ge)?.contains(te),_t(),te.focus({preventScroll:!0})}function He(){const te=e(ge)?.querySelector("[data-workspace-card-trigger]");te&&he(te)}async function Ve(te){if(te.key==="Escape"&&e(ie)){te.preventDefault(),te.stopPropagation(),_t();return}te.key!=="ArrowDown"||$()||!f()||(te.preventDefault(),te.stopPropagation(),A(et,!0),A(ie,!0),await ca(),ne()[0]?.focus({preventScroll:!0}))}function qe(te){const pt=ne(),qt=te.key==="Tab"&&te.shiftKey&&te.currentTarget===pt[0],_r=te.key==="Tab"&&!te.shiftKey&&te.currentTarget===pt.at(-1)?Me():null;te.key!=="Escape"&&!qt&&!_r||(te.preventDefault(),te.stopPropagation(),_r?he(_r):He())}function $e(){N=!0,st(),js.settleDeferredCloses(),q(),ce()?.(),f()&&!$()&&!pe&&(tt(),A(et,!0),Pe=setTimeout(()=>{Pe=null,vt()},js.currentOpenDelay))}function Oe(){N=!1,tt(),!pe&&!Qe&&Dt()}function Ye(){pe=!0,tt(),st(),!Fe&&(se||f()&&!$()&&(A(et,!0),A(ie,!0)))}function xe(te){const pt=te.relatedTarget instanceof Node?te.relatedTarget:null;pt&&e(ge)?.contains(pt)||(Fe=!1,pe=!1,!(pt&&ve()?.contains(pt))&&!N&&!H&&_t())}wt(()=>{$()&&(tt(),st(),_t())});let Ze=ye(null),ft=ye(!1),ct;wt(()=>{const te=f()?.id;ct!==te&&(ct=te,A(ft,!1)),e(Ze)&&e(Ze).workspaceId!==f()?.id&&Ct()});function it(te){if(!f())return;const pt=Ad(te);if(pt){if(A(ft,!1),mt().length===0){A(Ze,null);return}A(Ze,{...pt,returnFocus:te.target instanceof HTMLElement?te.target.closest("button")??e(ge)?.querySelector("button")??null:null,workspaceId:f().id},!0)}}function Ct(){A(Ze,null),A(ft,!1)}wt(()=>{e(ft)&&A(Ze,null)}),eo(()=>{tt(),st(),ze!==null&&(clearTimeout(ze),ze=null),_t()});function mt(){if(!f())return[];const te=[];return fe()&&te.push({id:"open-new-window",label:v.workspace_card_openNewWindow_label(),icon:Dd,onClick:()=>{fe()?.(),Ct()}}),te.push(...nb(f().id,{connected:a(),onClose:Ct})),s()||(e(Ue)||te.push({id:"transfer",label:v.workspace_card_transfer_label(),icon:Jg,onClick:()=>{Nt.dispatch(yv({workspaceId:f().id,workspaceTitle:f().title})),Ct()}}),te.push({id:"archive",label:v.workspace_card_archive_label(),icon:Bd,onClick:()=>{Nt.dispatch(Yd(f().id)),Ct()}}),te.push({id:"delete",label:v.workspace_card_deleteSpace_label(),icon:Fd,destructive:!0,onClick:()=>{Nt.dispatch(Xd(f().id)),Ct()}})),te}let Lt=d(()=>T()&&L()?L():i()?.subtitle??""),Kt=d(()=>p()&&p().tasks.total>0?p().tasks.completed/p().tasks.total:0),Zt=d(()=>!!p()&&(p().tasks.total>0||p().files.changed>0||p().commits.total>0||p().pr.hasOpen||p().pr.hasMerged)),cr=d(()=>e(Ue)?void 0:J()),Hr=d(()=>!p()||e(Ue)?"":p().pr.hasMerged?v.workspace_card_prMerged_label({number:p().pr.number??""}):p().pr.hasOpen?v.workspace_card_prOpen_label({number:p().pr.number?`#${p().pr.number}`:""}):""),ln=d(()=>i()?.phase==="planning"?T()?{primary:{label:v.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:v.workspace_card_pause_label(),action:"pause"}}:F()||(p()?.tasks.total??0)>0?{primary:{label:v.workspace_card_approveStart_label(),action:"approve"},secondary:{label:v.workspace_card_viewSpec_label(),action:"view-spec"}}:{primary:{label:v.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:v.workspace_card_viewSpec_label(),action:"view-spec"}}:i()?.phase==="building"?{primary:{label:v.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:v.workspace_card_pause_label(),action:"pause"}}:i()?.phase==="reviewing"?{primary:{label:v.workspace_card_createPr_label(),action:"create-pr"},secondary:{label:v.workspace_card_showChanges_label(),action:"show-changes"}}:{primary:{label:v.workspace_card_archive_label(),action:"archive"},secondary:{label:v.workspace_card_showChanges_label(),action:"show-changes"}});const $r={planning:"bg-muted/20 text-muted-foreground",building:"bg-info/15 text-info",reviewing:"bg-primary/15 text-primary",shipped:"bg-foreground/10 text-foreground"};var mr={get workspace(){return f()},set workspace(te){f(te),_()},get phase(){return i()},set phase(te){i(te),_()},get stats(){return p()},set stats(te){p(te),_()},get variant(){return g()},set variant(te="compact"){g(te),_()},get showTime(){return O()},set showTime(te=!0){O(te),_()},get isRunning(){return b()},set isRunning(te=!1){b(te),_()},get isUnread(){return h()},set isUnread(te=!1){h(te),_()},get isWaiting(){return P()},set isWaiting(te){P(te),_()},get isPinned(){return R()},set isPinned(te=!1){R(te),_()},get streamingAgentIds(){return B()},set streamingAgentIds(te=[]){B(te),_()},get hasSpec(){return F()},set hasSpec(te=!1){F(te),_()},get isAgentRunning(){return T()},set isAgentRunning(te=!1){T(te),_()},get agentDigest(){return L()},set agentDigest(te){L(te),_()},get trailingLabel(){return U()},set trailingLabel(te){U(te),_()},get title(){return E()},set title(te){E(te),_()},get repoName(){return z()},set repoName(te){z(te),_()},get branch(){return J()},set branch(te){J(te),_()},get onClick(){return Y()},set onClick(te){Y(te),_()},get onAction(){return Q()},set onAction(te){Q(te),_()},get onTogglePin(){return Ie()},set onTogglePin(te){Ie(te),_()},get onMarkAsRead(){return le()},set onMarkAsRead(te){le(te),_()},get onOpenInNewWindow(){return fe()},set onOpenInNewWindow(te){fe(te),_()},get onHover(){return ce()},set onHover(te){ce(te),_()},get highlighted(){return Le()},set highlighted(te=!1){Le(te),_()},get selected(){return G()},set selected(te=!1){G(te),_()},get highlightId(){return we()},set highlightId(te){we(te),_()},get suppressHover(){return $()},set suppressHover(te=!1){$(te),_()},get isolateHoverReveal(){return We()},set isolateHoverReveal(te=!1){We(te),_()},get class(){return Ee()},set class(te){Ee(te),_()},get actions(){return Se()},set actions(te){Se(te),_()},$set:Ft,$on:(te,pt)=>zt(t,te,pt)},qn=kt(),ea=je(qn);{var Vn=te=>{var pt=Bk(),qt=je(pt);let Jt;var _r=S(qt);{let ht=d(()=>f().title||v.workspace_links_untitled_label()),Pt=d(()=>`workspace-status-state-${f().id}${R()?` workspace-pinned-state-${f().id}`:""}${e(ie)?` ${e(W)}`:""}`),ar=d(()=>e(V)?"page":void 0);yt(_r,{variant:"plain",class:"absolute inset-0 z-0 h-auto w-auto rounded-md focus-visible:border-transparent focus-visible:bg-background/50 focus-visible:ring-0",get"aria-label"(){return e(ht)},get"aria-describedby"(){return e(Pt)},get"aria-current"(){return e(ar)},"data-workspace-card-trigger":!0,onkeydown:Ve,onclick:hr=>{hr.stopPropagation(),Y()?.(hr)}})}var Kn=m(_r,2),Jr=S(Kn);{var Gn=ht=>{var Pt=Pk(),ar=S(Pt);{var hr=wr=>{mf(wr,{get workspaceId(){return f().id},get slot(){return o()}})};D(ar,wr=>{o()!==null&&wr(hr)})}w(Pt),u(ht,Pt)};D(Jr,ht=>{a()&&ht(Gn)})}var fn=m(Jr,2);Ci(fn,{get content(){return e(K).tooltip},side:"bottom",sideOffset:4,children:(ht,Pt)=>{eb(ht,{get status(){return e(Je)},size:14,decorative:!0,class:"justify-start"})},$$slots:{default:!0}});var Jn=m(fn,2),ta=M(Jn,!0);w(Kn);var jr=m(Kn,2),en=S(jr),rr=S(en),Wr=S(rr),pn=M(Wr,!0);pr(Wr,ht=>A(Ne,ht),()=>e(Ne)),w(rr),pr(rr,ht=>A(de,ht),()=>e(de));var xr=m(rr,2);{var Or=ht=>{var Pt=Ak(),ar=je(Pt),hr=S(ar);At(hr,{get icon(){return Vl},size:"xs"}),w(ar);var wr=m(ar,2),Dr=M(wr,!0);k(yn=>{gt(ar,1,`wc-pin-indicator inline-flex shrink-0 items-center text-muted-foreground transition-opacity
|
|
263
|
-
${Ie()?Le()?"opacity-0":$()?"":We()?"group-hover/wc:opacity-0 group-focus-within/wc:opacity-0":"group-hover:opacity-0 group-focus-within:opacity-0":""}`,"svelte-1ct56pd"),re(wr,"id",`workspace-pinned-state-${f().id??""}`),x(Dr,yn)},[()=>v.layout_activeCard_pinned_header()]),u(ht,Pt)};D(xr,ht=>{R()&&ht(Or)})}w(en);var gn=m(en,2);{var va=ht=>{var Pt=Tk(),ar=M(Pt,!0);k(()=>x(ar,U())),u(ht,Pt)};D(gn,ht=>{U()&&ht(va)})}var tn=m(gn,2);{var Yr=ht=>{const Pt=d(()=>e(ot));var ar=Mk(),hr=S(ar);{let wr=d(()=>De(e(Pt)));Ci(hr,{get content(){return e(wr)},side:"bottom",sideOffset:4,children:(Dr,yn)=>{var ra=kt(),Dn=je(ra);{var Cr=cn=>{{let Er=d(()=>De(e(Pt)));yt(cn,{variant:"plain",size:"icon-compact",iconOnly:!0,get class(){return`size-5 shrink-0 rounded-sm ${e(Pt).foregroundClass??""}`},get"aria-label"(){return e(Er)},"data-workspace-card-pr-item":!0,get"data-pr-identity"(){return e(Pt).identity},get"data-pr-status"(){return e(Pt).status},onclick:nn=>{nn.stopPropagation();const Ta=f().id;Ip(async()=>{const{handleLink:Yn}=await import("./
|
|
263
|
+
${Ie()?Le()?"opacity-0":$()?"":We()?"group-hover/wc:opacity-0 group-focus-within/wc:opacity-0":"group-hover:opacity-0 group-focus-within:opacity-0":""}`,"svelte-1ct56pd"),re(wr,"id",`workspace-pinned-state-${f().id??""}`),x(Dr,yn)},[()=>v.layout_activeCard_pinned_header()]),u(ht,Pt)};D(xr,ht=>{R()&&ht(Or)})}w(en);var gn=m(en,2);{var va=ht=>{var Pt=Tk(),ar=M(Pt,!0);k(()=>x(ar,U())),u(ht,Pt)};D(gn,ht=>{U()&&ht(va)})}var tn=m(gn,2);{var Yr=ht=>{const Pt=d(()=>e(ot));var ar=Mk(),hr=S(ar);{let wr=d(()=>De(e(Pt)));Ci(hr,{get content(){return e(wr)},side:"bottom",sideOffset:4,children:(Dr,yn)=>{var ra=kt(),Dn=je(ra);{var Cr=cn=>{{let Er=d(()=>De(e(Pt)));yt(cn,{variant:"plain",size:"icon-compact",iconOnly:!0,get class(){return`size-5 shrink-0 rounded-sm ${e(Pt).foregroundClass??""}`},get"aria-label"(){return e(Er)},"data-workspace-card-pr-item":!0,get"data-pr-identity"(){return e(Pt).identity},get"data-pr-status"(){return e(Pt).status},onclick:nn=>{nn.stopPropagation();const Ta=f().id;Ip(async()=>{const{handleLink:Yn}=await import("./D4SzkUNZ.js").then(vn=>vn.H);return{handleLink:Yn}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69]),import.meta.url).then(({handleLink:Yn})=>Yn(e(Pt).url,{workspaceId:Ta,event:nn}))},children:(nn,Ta)=>{At(nn,{get icon(){return e(Pt).statusIcon},size:14})},$$slots:{default:!0}})}},Cn=cn=>{var Er=Rk(),nn=S(Er);At(nn,{get icon(){return e(Pt).statusIcon},size:14}),w(Er),k(Ta=>{gt(Er,1,`inline-flex size-5 shrink-0 items-center justify-center rounded-sm ${e(Pt).foregroundClass??""}`,"svelte-1ct56pd"),re(Er,"aria-label",Ta),re(Er,"data-pr-identity",e(Pt).identity),re(Er,"data-pr-status",e(Pt).status)},[()=>De(e(Pt))]),u(cn,Er)};D(Dn,cn=>{e(Pt).url?cn(Cr):cn(Cn,-1)})}u(Dr,ra)},$$slots:{default:!0}})}w(ar),k(wr=>re(ar,"aria-label",wr),[()=>e(Pt).resource?.repository.provider==="gitlab"?v.workspace_hoverCard_mergeRequest_label():v.workspace_hoverCard_pullRequest_label()]),u(ht,ar)};D(tn,ht=>{e(ot)&&ht(Yr)})}var Mr=m(tn,2);{var xa=ht=>{var Pt=Nk(),ar=S(Pt);{var hr=Dr=>{{let yn=d(()=>Zl(f()));sg(Dr,{get date(){return e(yn)},class:"type-caption whitespace-nowrap tabular-nums text-muted-foreground",compact:!0})}},wr=d(()=>Zl(f())>0);D(ar,Dr=>{e(wr)&&Dr(hr)})}w(Pt),k(()=>gt(Pt,1,`wc-secondary shrink-0 ${Se()||Ie()||h()&&le()?Le()?"opacity-0":$()?"":We()?"group-hover/wc:opacity-0 group-hover/message:opacity-0":"group-hover:opacity-0 group-hover/message:opacity-0":""}`,"svelte-1ct56pd")),u(ht,Pt)};D(Mr,ht=>{O()&&ht(xa)})}w(jr);var rs=m(jr,2);{var ns=ht=>{var Pt=Ok(),ar=S(Pt);{var hr=Cr=>{{let Cn=d(()=>R()?"text-primary-ink":"text-muted-foreground"),cn=d(()=>R()?v.workspace_card_unpin_ariaLabel():v.workspace_card_pin_ariaLabel()),Er=d(()=>R()?v.workspace_card_unpin_tooltip():v.workspace_card_pin_tooltip());yt(Cr,{variant:"plain",size:"icon-xs",iconOnly:!0,get class(){return`transition-all hover:bg-muted/50 hover:text-foreground focus-visible:border-transparent focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:ring-0
|
|
264
264
|
${e(Cn)??""}`},onclick:nn=>{nn.stopPropagation(),Ie()?.(nn)},get"aria-label"(){return e(cn)},get title(){return e(Er)},children:(nn,Ta)=>{var Yn=Lk(),vn=S(Yn);At(vn,{get icon(){return Vl},size:"xs"}),w(Yn),u(nn,Yn)},$$slots:{default:!0}})}};D(ar,Cr=>{Ie()&&Cr(hr)})}var wr=m(ar,2);{var Dr=Cr=>{{let Cn=d(()=>v.workspace_card_markAsRead_label()),cn=d(()=>v.workspace_card_markAsRead_label());yt(Cr,{variant:"plain",size:"icon-xs",iconOnly:!0,class:"text-muted-foreground hover:bg-muted/50 hover:text-foreground focus-visible:border-transparent focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:ring-0",onclick:Er=>{Er.stopPropagation(),le()?.(Er)},get"aria-label"(){return e(Cn)},get title(){return e(cn)},children:(Er,nn)=>{At(Er,{get icon(){return zd},size:"xs"})},$$slots:{default:!0}})}};D(wr,Cr=>{h()&&le()&&Cr(Dr)})}var yn=m(wr,2);un(yn,()=>Se()??So);var ra=m(yn,2);{var Dn=Cr=>{{let Cn=d(mt),cn=d(()=>v.workspace_progressCard_actions_ariaLabel());Il(Cr,{get items(){return e(Cn)},get ariaLabel(){return e(cn)},class:"flex size-5 cursor-pointer items-center justify-center rounded text-muted-foreground transition-colors hover:bg-muted/50 hover:text-foreground focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:outline-none",get open(){return e(ft)},set open(Er){A(ft,Er,!0)}})}};D(ra,Cr=>{fe()&&Cr(Dn)})}w(Pt),pr(Pt,Cr=>A(Ce,Cr),()=>e(Ce)),k(()=>gt(Pt,1,`wc-actions absolute right-1 top-1/2 z-20 flex -translate-y-1/2 items-center gap-0.5 rounded-md bg-accent/95 px-0.5 focus-within:opacity-100
|
|
265
265
|
${We()?"group-focus-within/wc:opacity-100":"group-focus-within:opacity-100"}
|
|
266
266
|
${Le()?"opacity-100":$()?"opacity-0":We()?"opacity-0 group-hover/wc:opacity-100":"opacity-0 group-hover:opacity-100"}`,"svelte-1ct56pd")),u(ht,Pt)};D(rs,ht=>{(Se()||fe()||Ie()||h()&&le())&&ht(ns)})}w(qt),pr(qt,ht=>A(ge,ht),()=>e(ge)),Un(qt,(ht,Pt)=>vo?.(ht,Pt),()=>({id:we()}));var Xr=m(qt,2);{var rn=ht=>{sb(ht,{get id(){return e(W)},get anchor(){return`--workspace-list-${f().id??""}`},position:"right",get anchorElement(){return e(ge)},class:"w-auto overflow-visible! rounded-lg border-0! bg-background! shadow-none!",onmouseenter:Yt,onmouseleave:Et,onfocusin:Wt,onfocusout:Qt,children:(Pt,ar)=>{var hr=Dk(),wr=S(hr);ob(wr,{get workspace(){return f()},get activeAgentIds(){return B()},onkeydown:qe}),w(hr),pr(hr,Dr=>A(nt,Dr),()=>e(nt)),Rn("pointerenter",hr,Yt),Rn("pointerleave",hr,Et),Rr("focusin",hr,Wt),Rr("focusout",hr,Qt),u(Pt,hr)},$$slots:{default:!0}})};D(Xr,ht=>{e(ie)&&!$()&&ht(rn)})}var On=m(Xr,2);{var kr=ht=>{const Pt=d(mt);var ar=kt(),hr=je(ar);{var wr=Dr=>{{let yn=d(()=>e(Ze)?.x??0),ra=d(()=>e(Ze)?.y??0),Dn=d(()=>e(Ze)?.returnFocus),Cr=d(()=>v.workspace_progressCard_actions_ariaLabel());Td(Dr,{get x(){return e(yn)},get y(){return e(ra)},get returnFocus(){return e(Dn)},get ariaLabel(){return e(Cr)},get items(){return e(Pt)},onClickOutside:Ct})}};D(hr,Dr=>{e(Pt).length>0&&Dr(wr)})}u(ht,ar)};D(On,ht=>{e(Ze)&&ht(kr)})}k((ht,Pt,ar)=>{gt(qt,1,ht,"svelte-1ct56pd"),re(qt,"data-pinned",R()),re(qt,"data-highlight-id",we()),Jt=Nn(qt,"",Jt,{"anchor-name":`--workspace-list-${f().id??""}`}),re(Jn,"id",`workspace-status-state-${f().id??""}`),x(ta,e(K).accessibleName),gt(rr,1,`wc-title type-body min-w-0 truncate font-normal!
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as gt}from"./
|
|
1
|
+
import{g as gt}from"./B8suWc52.js";import{d as mt,g as lt,f as xt,e as kt}from"./CZHXOPAK.js";import{U as _t,aZ as vt,V as bt,a_ as wt,Y as Tt,b0 as St,b as s,X as R,aW as H,B as $t,r as Mt,d as it}from"./BsiP9jat.js";var U=(function(){var t=s(function(h,r,n,l){for(n=n||{},l=h.length;l--;n[h[l]]=r);return n},"o"),e=[6,8,10,11,12,14,16,17,18],a=[1,9],f=[1,10],i=[1,11],u=[1,12],p=[1,13],o=[1,14],g={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:s(function(r,n,l,y,d,c,v){var k=c.length-1;switch(d){case 1:return c[k-1];case 2:this.$=[];break;case 3:c[k-1].push(c[k]),this.$=c[k-1];break;case 4:case 5:this.$=c[k];break;case 6:case 7:this.$=[];break;case 8:y.setDiagramTitle(c[k].substr(6)),this.$=c[k].substr(6);break;case 9:this.$=c[k].trim(),y.setAccTitle(this.$);break;case 10:case 11:this.$=c[k].trim(),y.setAccDescription(this.$);break;case 12:y.addSection(c[k].substr(8)),this.$=c[k].substr(8);break;case 13:y.addTask(c[k-1],c[k]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:a,12:f,14:i,16:u,17:p,18:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:a,12:f,14:i,16:u,17:p,18:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:s(function(r,n){if(n.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=n,l}},"parseError"),parse:s(function(r){var n=this,l=[0],y=[],d=[null],c=[],v=this.table,k="",C=0,Q=0,yt=2,D=1,dt=c.slice.call(arguments,1),_=Object.create(this.lexer),I={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(I.yy[O]=this.yy[O]);_.setInput(r,I.yy),I.yy.lexer=_,I.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var Y=_.yylloc;c.push(Y);var ft=_.options&&_.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pt(w){l.length=l.length-2*w,d.length=d.length-w,c.length=c.length-w}s(pt,"popStack");function tt(){var w;return w=y.pop()||_.lex()||D,typeof w!="number"&&(w instanceof Array&&(y=w,w=y.pop()),w=n.symbols_[w]||w),w}s(tt,"lex");for(var b,A,T,q,F={},N,M,et,W;;){if(A=l[l.length-1],this.defaultActions[A]?T=this.defaultActions[A]:((b===null||typeof b>"u")&&(b=tt()),T=v[A]&&v[A][b]),typeof T>"u"||!T.length||!T[0]){var X="";W=[];for(N in v[A])this.terminals_[N]&&N>yt&&W.push("'"+this.terminals_[N]+"'");_.showPosition?X="Parse error on line "+(C+1)+`:
|
|
2
2
|
`+_.showPosition()+`
|
|
3
3
|
Expecting `+W.join(", ")+", got '"+(this.terminals_[b]||b)+"'":X="Parse error on line "+(C+1)+": Unexpected "+(b==D?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(X,{text:_.match,token:this.terminals_[b]||b,line:_.yylineno,loc:Y,expected:W})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+b);switch(T[0]){case 1:l.push(b),d.push(_.yytext),c.push(_.yylloc),l.push(T[1]),b=null,Q=_.yyleng,k=_.yytext,C=_.yylineno,Y=_.yylloc;break;case 2:if(M=this.productions_[T[1]][1],F.$=d[d.length-M],F._$={first_line:c[c.length-(M||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(M||1)].first_column,last_column:c[c.length-1].last_column},ft&&(F._$.range=[c[c.length-(M||1)].range[0],c[c.length-1].range[1]]),q=this.performAction.apply(F,[k,Q,C,I.yy,T[1],d,c].concat(dt)),typeof q<"u")return q;M&&(l=l.slice(0,-1*M*2),d=d.slice(0,-1*M),c=c.slice(0,-1*M)),l.push(this.productions_[T[1]][0]),d.push(F.$),c.push(F._$),et=v[l[l.length-2]][l[l.length-1]],l.push(et);break;case 3:return!0}}return!0},"parse")},m=(function(){var h={EOF:1,parseError:s(function(n,l){if(this.yy.parser)this.yy.parser.parseError(n,l);else throw new Error(n)},"parseError"),setInput:s(function(r,n){return this.yy=n||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:s(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var n=r.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:s(function(r){var n=r.length,l=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var y=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var d=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===y.length?this.yylloc.first_column:0)+y[y.length-l.length].length-l[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(r){this.unput(this.match.slice(r))},"less"),pastInput:s(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var r=this.pastInput(),n=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as St,bq as x,by as Rt,bs as wt,b as It,bu as g}from"./Y9-4hTF9.js";import{bs as Pt,ca as I,aD as t,c9 as s,bn as kt,bH as M,bV as V,aA as F}from"./DYhIMPy1.js";import{b as vt}from"./BaIAhI85.js";import{Iz as l,et as Ut,eu as At,sr as Bt,nY as xt,nZ as Ft,J4 as Lt,Jl as Tt,J9 as _t,o1 as L}from"./tU_ZJtMw.js";import{b7 as Dt}from"./
|
|
1
|
+
import{t as St,bq as x,by as Rt,bs as wt,b as It,bu as g}from"./Y9-4hTF9.js";import{bs as Pt,ca as I,aD as t,c9 as s,bn as kt,bH as M,bV as V,aA as F}from"./DYhIMPy1.js";import{b as vt}from"./BaIAhI85.js";import{Iz as l,et as Ut,eu as At,sr as Bt,nY as xt,nZ as Ft,J4 as Lt,Jl as Tt,J9 as _t,o1 as L}from"./tU_ZJtMw.js";import{b7 as Dt}from"./0rarVWHK.js";import{g as Wt}from"./DfN8_dcw.js";import{dr as Et,bA as Gt,bC as Mt,bz as Vt,bE as zt,c$ as Nt,f as Ht}from"./ClH0Gega.js";import{C as Jt}from"./DvvLPx_4.js";import{V as qt}from"./Dbp_q6hu.js";import{bR as Yt,bL as Zt,b6 as jt}from"./Pmmb3VR-.js";import{i as T,n as z}from"./H2jLkRRS.js";import{af as Kt}from"./oSRnc4fj.js";function Ot(_,$){if(new.target)return St({component:Ot,..._});Pt($,!0);const N=()=>g(at,"$gitRoots$",c),y=()=>g(ot,"$workspace",c),H=()=>g(nt,"$ftCommits$",c),J=()=>g(lt,"$rootGitRoots$",c),b=()=>g(st,"$ftChanges$",c),q=()=>g(tt,"$foldUnchanged",c),Y=()=>g(X,"$lineWrapping",c),Z=()=>g(et,"$diffSideBySide",c),j=()=>g(rt,"$ftLoading$",c),K=()=>g(it,"$ftBoundarySha$",c),[c,O]=wt(),Q=o=>{qt(o,{embedded:!0,showExpand:!0,get expanded(){return t(R)},onToggleExpand:()=>{M(R,!t(R)),t(R)?t(w)?.expandAll():t(w)?.collapseAll()},get foldEnabled(){return q()},onToggleFold:()=>l.dispatch(_t()),get wrapEnabled(){return Y()},onToggleWrap:()=>l.dispatch(Tt()),get splitEnabled(){return Z()},onToggleSplit:()=>l.dispatch(Lt())})},X=Yt(),tt=Zt(),et=jt();let P=x($,"tab",7),m=x($,"workspaceId",7),C=x($,"isActive",7);const D=Wt(),p=Dt(()=>m()),ot=Et(p);I(()=>{const o=m();if(!(!C()||!o||t(n)))return l.dispatch(Ut(o,"all")),()=>l.dispatch(At(o,"all"))});const n=s(()=>P().data?.gitRootId||""),at=Kt(p),S=s(()=>N().find(o=>o.id===t(n))),h=s(()=>y()?.worktreePath||y()?.repositoryPath||""),k=s(()=>t(S)?.path||t(h)),st=Gt(p),nt=Mt(p),it=Vt(p),rt=zt(p),dt=s(()=>H()||[]),lt=Nt(p),f=s(()=>J()[t(n)]??Ht),ct=s(()=>t(f).status),gt=s(()=>t(f).loading),mt=s(()=>t(f).commitFiles),ut=s(()=>{const o=t(S)?.registeredCommitSha,i=o?t(f).commits.findIndex(e=>e.hash===o):-1;return i>=0?t(f).commits.slice(0,i):t(f).commits});I(()=>{const o=m(),i=t(n);o&&i&&l.dispatch(Bt(o,i,t(S)?.registeredCommitSha,100))});let R=V(!0),w=V(null);const pt=s(()=>{if(t(n))return[...(t(ct)?.files??[]).map(e=>({filePath:`${t(k)}/${e.path}`,action:"modify",additions:e.additions??0,deletions:e.deletions??0,toolName:"local",toolCallId:`root-${t(n)}-${e.staged}-${e.path}`,staged:e.staged,category:e.staged?"staged":"unstaged"})),...t(ut).flatMap(e=>(t(mt)[e.hash]??[]).map(a=>({filePath:`${t(k)}/${a.path}`,action:"modify",additions:a.additions??0,deletions:a.deletions??0,toolName:"local",toolCallId:`root-commit-${e.hash}-${a.path}`,staged:!1,category:"committed",commitHash:e.hash,commitMessage:e.message})))];const o=b().filter(e=>e.stage==="unstaged"),i=b().filter(e=>e.stage==="staged");return[...o.map(e=>{const a=e.file||e.relativePath,r=a&&T(a)?a:`${t(h)}/${a}`;return{filePath:r,action:"modify",additions:e.stats?.additions||0,deletions:e.stats?.deletions||0,toolName:"local",toolCallId:`local-unstaged-${r}`,staged:!1,category:"unstaged",oldContent:e.content?.oldContent,newContent:e.content?.newContent,gitlink:e.gitlink}}),...i.map(e=>{const a=e.file||e.relativePath,r=a&&T(a)?a:`${t(h)}/${a}`;return{filePath:r,action:"modify",additions:e.stats?.additions||0,deletions:e.stats?.deletions||0,toolName:"local",toolCallId:`local-staged-${r}`,staged:!0,category:"staged",oldContent:e.content?.oldContent,newContent:e.content?.newContent,gitlink:e.gitlink}}),...t(dt).flatMap(e=>(e.files||[]).map(a=>{const r=typeof a=="string"?a:a.path||"",U=r&&T(r)?r:`${t(h)}/${r}`,A=typeof a=="string"?0:a.additions||0,B=typeof a=="string"?0:a.deletions||0;return{filePath:U,action:"modify",additions:A,deletions:B,toolName:"local",toolCallId:`commit-${e.hash}-${r}`,staged:!1,category:"committed",commitHash:e.hash,commitMessage:e.message}}))]});function v(o){if(!t(h))return o;const i=z(o),e=z(t(h));return i.startsWith(`${e}/`)?i.slice(e.length+1):o}function W(o){l.dispatch(L(m(),crypto.randomUUID(),{kind:"stage",paths:o.map(v),source:"localChanges"}))}function E(o){l.dispatch(L(m(),crypto.randomUUID(),{kind:"unstage",paths:o.map(v),source:"localChanges"}))}function ht(o){l.dispatch(L(m(),crypto.randomUUID(),{kind:"discard",paths:o.map(v),source:"localChanges"}))}I(()=>{!D||!C()||D.registerActions({display:Q})});const G=crypto.randomUUID();I(()=>{const o=m();if(!(!(C()&&t(n))||!o))return l.dispatch(xt(o,G)),()=>l.dispatch(Ft(o,G))});var ft={get tab(){return P()},set tab(o){P(o),F()},get workspaceId(){return m()},set workspaceId(o){m(o),F()},get isActive(){return C()},set isActive(o){C(o),F()},$set:Rt,$on:(o,i)=>It($,o,i)};{let o=s(()=>t(n)?t(gt):j()),i=s(()=>t(n)||void 0),e=s(()=>t(n)?t(k):void 0),a=s(()=>y()?.baseRef??null),r=s(()=>t(n)?t(S)?.registeredCommitSha||null:K()||y()?.baseCommitSha||null),U=s(()=>!t(n)),A=s(()=>t(n)?void 0:d=>void W([d])),B=s(()=>t(n)?void 0:d=>void E([d])),Ct=s(()=>t(n)?void 0:d=>void ht([d])),yt=s(()=>t(n)?void 0:()=>{const d=b().filter(u=>u.stage==="unstaged");W(d.map(u=>u.relativePath||u.file))}),bt=s(()=>t(n)?void 0:()=>{const d=b().filter(u=>u.stage==="staged");E(d.map(u=>u.relativePath||u.file))});vt(Jt(_,{get isLoading(){return t(o)},get changes(){return t(pt)},get gitRootId(){return t(i)},get gitRootPath(){return t(e)},get branchBaseRef(){return t(a)},get branchBaseCommitSha(){return t(r)},get showStagingControls(){return t(U)},showCategoryFilter:!0,get onStage(){return t(A)},get onUnstage(){return t(B)},get onRevert(){return t(Ct)},get onStageAll(){return t(yt)},get onUnstageAll(){return t(bt)}}),d=>M(w,d,!0),()=>t(w))}var $t=kt(ft);return O(),$t}export{Ot as default};
|