@axiom-lattice/gateway 10.3.0 → 10.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/dist/embed/embed-page-AgentDetailSideApp-HQMDIT7S.js +1 -0
  2. package/dist/embed/embed-page-AgentGovernanceWorkbench-T26AS6KD.js +1 -0
  3. package/dist/embed/{embed-page-LangfuseDashboard-C5ZHCYOD.js → embed-page-LangfuseDashboard-WU5WJUBH.js} +1 -1
  4. package/dist/embed/embed-page-MessageGraph-AB5JL57B.js +6 -0
  5. package/dist/embed/embed-page-ReactChart-OFCUVHIA.js +1 -0
  6. package/dist/embed/{embed-page-SkillFlow-4WN6SBBR.js → embed-page-SkillFlow-3Z4KXWBR.js} +1 -1
  7. package/dist/embed/{embed-page-TasksSideApp-JWXHAGJ3.js → embed-page-TasksSideApp-5J5KPJGJ.js} +1 -1
  8. package/dist/embed/{embed-page-ThreadMaintenancePanel-BIPYRPG7.js → embed-page-ThreadMaintenancePanel-TOPARLQN.js} +1 -1
  9. package/dist/embed/{embed-page-TopologyRuntimeView-FPLRJ3NO.js → embed-page-TopologyRuntimeView-DNYSW2GN.js} +1 -1
  10. package/dist/embed/{embed-page-WorkflowAutomationView-5Z5LIL2H.js → embed-page-WorkflowAutomationView-3CGPGS7D.js} +1 -1
  11. package/dist/embed/{embed-page-abnfDiagram-N423BO3Z-G35TGDL3.js → embed-page-abnfDiagram-N423BO3Z-4HBLZWO7.js} +1 -1
  12. package/dist/embed/{embed-page-architectureDiagram-T3A2C74G-3BPO7RRI.js → embed-page-architectureDiagram-T3A2C74G-ZMH2RUZR.js} +1 -1
  13. package/dist/embed/{embed-page-blockDiagram-VBNYF7ZC-4IOAZLE3.js → embed-page-blockDiagram-VBNYF7ZC-DOS6CKB7.js} +1 -1
  14. package/dist/embed/{embed-page-c4Diagram-5PPSVZJV-7FVWUUL4.js → embed-page-c4Diagram-5PPSVZJV-GCQQWQJ4.js} +1 -1
  15. package/dist/embed/{embed-page-chunk-2EHKMAOV.js → embed-page-chunk-4T3AWQQQ.js} +1 -1
  16. package/dist/embed/{embed-page-chunk-YJQVMCUN.js → embed-page-chunk-5UOSSN26.js} +1 -1
  17. package/dist/embed/{embed-page-chunk-Z4KLLEUH.js → embed-page-chunk-5ZRWN6T7.js} +1 -1
  18. package/dist/embed/{embed-page-chunk-D4ICPD5X.js → embed-page-chunk-7IPWMDQ3.js} +1 -1
  19. package/dist/embed/embed-page-chunk-CWVHIM56.js +69 -0
  20. package/dist/embed/embed-page-chunk-DLSQ2OWQ.js +1 -0
  21. package/dist/embed/{embed-page-chunk-3MT44IAN.js → embed-page-chunk-FPA5BD6K.js} +1 -1
  22. package/dist/embed/{embed-page-chunk-KOCOGP7G.js → embed-page-chunk-GA5A7NLC.js} +1 -1
  23. package/dist/embed/{embed-page-chunk-OJORJR7X.js → embed-page-chunk-GMLPPJZP.js} +1 -1
  24. package/dist/embed/{embed-page-chunk-X2ALKNHQ.js → embed-page-chunk-GXHZDCWF.js} +1 -1
  25. package/dist/embed/{embed-page-chunk-DVOV6TZI.js → embed-page-chunk-I7EMCZI6.js} +1 -1
  26. package/dist/embed/{embed-page-chunk-EZBBN23V.js → embed-page-chunk-JRGR5W3C.js} +1 -1
  27. package/dist/embed/{embed-page-chunk-JRORGMGI.js → embed-page-chunk-KJTJI54Q.js} +150 -150
  28. package/dist/embed/{embed-page-chunk-IK542MPZ.js → embed-page-chunk-ME637LUU.js} +1 -1
  29. package/dist/embed/{embed-page-chunk-I7ESIG2O.js → embed-page-chunk-MM3IA4HE.js} +1 -1
  30. package/dist/embed/{embed-page-chunk-B4EAWKYT.js → embed-page-chunk-N2Y3D6YG.js} +1 -1
  31. package/dist/embed/{embed-page-chunk-YUWPQRVF.js → embed-page-chunk-NY2J2ZAX.js} +1 -1
  32. package/dist/embed/{embed-page-chunk-XWR7WUUN.js → embed-page-chunk-RPGUOUD3.js} +1 -1
  33. package/dist/embed/{embed-page-chunk-NUKT6SH3.js → embed-page-chunk-S2XGVDY7.js} +1 -1
  34. package/dist/embed/{embed-page-chunk-EP6TRRST.js → embed-page-chunk-T2GL7G2Z.js} +1 -1
  35. package/dist/embed/{embed-page-chunk-BL44I3VR.js → embed-page-chunk-U3XF7MHJ.js} +6 -6
  36. package/dist/embed/{embed-page-chunk-7E2Z7TAR.js → embed-page-chunk-U6PURUXV.js} +1 -1
  37. package/dist/embed/{embed-page-chunk-LKNA7XLR.js → embed-page-chunk-UAXOXJ4N.js} +1 -1
  38. package/dist/embed/{embed-page-chunk-CV2LFQZA.js → embed-page-chunk-UWC5QL3B.js} +1 -1
  39. package/dist/embed/{embed-page-chunk-CJYKMTD7.js → embed-page-chunk-V3HPWIF4.js} +1 -1
  40. package/dist/embed/{embed-page-chunk-JAHIW5IQ.js → embed-page-chunk-W4W6GR5T.js} +1 -1
  41. package/dist/embed/{embed-page-chunk-JAMKPUN7.js → embed-page-chunk-X2TOGOMH.js} +1 -1
  42. package/dist/embed/{embed-page-chunk-UVNC53TL.js → embed-page-chunk-YGBGMNRQ.js} +1 -1
  43. package/dist/embed/embed-page-classDiagram-JCYQIIEL-QS7YU54N.js +1 -0
  44. package/dist/embed/embed-page-classDiagram-v2-OCEON4UE-EMQVQCCM.js +1 -0
  45. package/dist/embed/{embed-page-cynefinDiagram-MW4NZA55-3QBH5TCJ.js → embed-page-cynefinDiagram-MW4NZA55-PAQOPJV2.js} +1 -1
  46. package/dist/embed/{embed-page-dagre-VZM6K2ZE-JB3F5OD3.js → embed-page-dagre-VZM6K2ZE-35URH6ZO.js} +1 -1
  47. package/dist/embed/{embed-page-diagram-7IWD3JNH-33KTKPAG.js → embed-page-diagram-7IWD3JNH-CYEWFX2M.js} +1 -1
  48. package/dist/embed/{embed-page-diagram-B4RE2ZJO-HURI4UTY.js → embed-page-diagram-B4RE2ZJO-YQLA7HKI.js} +1 -1
  49. package/dist/embed/{embed-page-diagram-LBJQPF4R-XDFU7A3K.js → embed-page-diagram-LBJQPF4R-R5X23WLT.js} +1 -1
  50. package/dist/embed/{embed-page-diagram-Q27KOJAE-WCF3Y7MH.js → embed-page-diagram-Q27KOJAE-CSOUXGQI.js} +1 -1
  51. package/dist/embed/{embed-page-diagram-UB23O5K3-A4XJCZZ2.js → embed-page-diagram-UB23O5K3-ZYKI7DKR.js} +1 -1
  52. package/dist/embed/{embed-page-ebnfDiagram-BXEA7PRR-XZ65TQZ5.js → embed-page-ebnfDiagram-BXEA7PRR-AXHHSO6J.js} +1 -1
  53. package/dist/embed/embed-page-echarts-AD736F33.js +1 -0
  54. package/dist/embed/{embed-page-erDiagram-JOGREHBK-HAMRJORU.js → embed-page-erDiagram-JOGREHBK-TIWNY54V.js} +1 -1
  55. package/dist/embed/embed-page-flowDiagram-UKHOOZJN-YZBV5FD5.js +1 -0
  56. package/dist/embed/{embed-page-ganttDiagram-PKOTCBZU-K5INERM6.js → embed-page-ganttDiagram-PKOTCBZU-LQ65QV2D.js} +1 -1
  57. package/dist/embed/{embed-page-gitGraphDiagram-DS77QQ5N-GZ5MSQH3.js → embed-page-gitGraphDiagram-DS77QQ5N-JXOCEBS4.js} +1 -1
  58. package/dist/embed/{embed-page-infoDiagram-6WML65LV-U6G3NNSP.js → embed-page-infoDiagram-6WML65LV-JXXYLFOE.js} +1 -1
  59. package/dist/embed/{embed-page-ishikawaDiagram-WSZJBQD7-EYGGRQN3.js → embed-page-ishikawaDiagram-WSZJBQD7-AXPRA54P.js} +1 -1
  60. package/dist/embed/{embed-page-journeyDiagram-NVQOT4AX-XS4LDJC3.js → embed-page-journeyDiagram-NVQOT4AX-FLTEDSGP.js} +1 -1
  61. package/dist/embed/{embed-page-jspdf.es.min-XOYWIBVE.js → embed-page-jspdf.es.min-Y4RIBUHC.js} +17 -17
  62. package/dist/embed/{embed-page-kanban-definition-27J2QSJJ-FW7UGXYI.js → embed-page-kanban-definition-27J2QSJJ-GLES277J.js} +1 -1
  63. package/dist/embed/embed-page-katex-JBKN2BFH.js +257 -0
  64. package/dist/embed/{embed-page-mermaid-AQNL2ZVI.js → embed-page-mermaid-TRGRXQWI.js} +2 -2
  65. package/dist/embed/embed-page-mindmap-definition-FAOFIHXS-IK7SJKOY.js +96 -0
  66. package/dist/embed/{embed-page-pegDiagram-VL7TDLO6-KNUT3CIR.js → embed-page-pegDiagram-VL7TDLO6-WTW3QO5Z.js} +1 -1
  67. package/dist/embed/{embed-page-pieDiagram-7S7Q4E2Y-NA5D6ASE.js → embed-page-pieDiagram-7S7Q4E2Y-IO7RF3AF.js} +1 -1
  68. package/dist/embed/{embed-page-quadrantDiagram-CIZ2JOQS-ZP6CLE62.js → embed-page-quadrantDiagram-CIZ2JOQS-77SBD3YG.js} +1 -1
  69. package/dist/embed/{embed-page-railroadDiagram-AXF67PYL-2IW2UZXA.js → embed-page-railroadDiagram-AXF67PYL-OW3L5JI4.js} +1 -1
  70. package/dist/embed/{embed-page-requirementDiagram-LRYGKXZP-CXPDAY5Y.js → embed-page-requirementDiagram-LRYGKXZP-APMTCGOA.js} +1 -1
  71. package/dist/embed/{embed-page-sankeyDiagram-W5VNT64P-F2LGR2H3.js → embed-page-sankeyDiagram-W5VNT64P-FZX3QVUX.js} +1 -1
  72. package/dist/embed/{embed-page-sequenceDiagram-SI44F4Z6-GJMWRLXS.js → embed-page-sequenceDiagram-SI44F4Z6-HGLMDT4H.js} +1 -1
  73. package/dist/embed/{embed-page-stateDiagram-OKZ733FA-2C3LJEVN.js → embed-page-stateDiagram-OKZ733FA-DYGG6K57.js} +1 -1
  74. package/dist/embed/embed-page-stateDiagram-v2-UEYNNEHI-BZIFN7WW.js +1 -0
  75. package/dist/embed/{embed-page-swimlanes-SLNWSIFB-FVZEOHUB.js → embed-page-swimlanes-SLNWSIFB-OKHSRANK.js} +1 -1
  76. package/dist/embed/embed-page-swimlanesDiagram-ULZ7WXOC-CTOAIWO4.js +8 -0
  77. package/dist/embed/{embed-page-timeline-definition-Z64GVDOM-G7N7WGUT.js → embed-page-timeline-definition-Z64GVDOM-F6LUVHOK.js} +1 -1
  78. package/dist/embed/{embed-page-vennDiagram-T6HMQDX7-F7T3NLBE.js → embed-page-vennDiagram-T6HMQDX7-QA2TWRL4.js} +1 -1
  79. package/dist/embed/{embed-page-wardleyDiagram-T6FBY63Y-KQ66EZSM.js → embed-page-wardleyDiagram-T6FBY63Y-DL57P2VA.js} +1 -1
  80. package/dist/embed/{embed-page-xychartDiagram-ELKLHX3M-22WT4PGT.js → embed-page-xychartDiagram-ELKLHX3M-V2Q7NF4U.js} +1 -1
  81. package/dist/embed/embed-page.js +1 -1
  82. package/dist/embed/mcp-app-page.js +2 -2
  83. package/dist/index.js +47 -47
  84. package/dist/index.js.map +1 -1
  85. package/dist/index.mjs +47 -47
  86. package/dist/index.mjs.map +1 -1
  87. package/package.json +7 -8
  88. package/dist/embed/embed-page-AgentDetailSideApp-7KV3SLDR.js +0 -1
  89. package/dist/embed/embed-page-AgentGovernanceWorkbench-SVXBIDD2.js +0 -1
  90. package/dist/embed/embed-page-MessageGraph-YU76I7TO.js +0 -6
  91. package/dist/embed/embed-page-ReactChart-KN2C7M65.js +0 -1
  92. package/dist/embed/embed-page-chunk-NXYALHX3.js +0 -69
  93. package/dist/embed/embed-page-classDiagram-JCYQIIEL-F3ZGV5RH.js +0 -1
  94. package/dist/embed/embed-page-classDiagram-v2-OCEON4UE-WK33F7MR.js +0 -1
  95. package/dist/embed/embed-page-echarts-EYVCOS2L.js +0 -1
  96. package/dist/embed/embed-page-flowDiagram-UKHOOZJN-FCTARXK6.js +0 -1
  97. package/dist/embed/embed-page-katex-W5DMKJAE.js +0 -257
  98. package/dist/embed/embed-page-mindmap-definition-FAOFIHXS-LS6BVRC5.js +0 -96
  99. package/dist/embed/embed-page-stateDiagram-v2-UEYNNEHI-QI633DEL.js +0 -1
  100. package/dist/embed/embed-page-swimlanesDiagram-ULZ7WXOC-7W6HH2PU.js +0 -8
@@ -1 +1 @@
1
- import{Z as c}from"./embed-page-chunk-3MT44IAN.js";import{a as l}from"./embed-page-chunk-444E5YR2.js";var m=l(t=>{let{handDrawnSeed:e}=c();return{fill:t,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:t,seed:e}},"solidStateFill"),h=l(t=>{let e=p([...t.cssCompiledStyles||[],...t.cssStyles||[],...t.labelStyle||[]]);return{stylesMap:e,stylesArray:[...e]}},"compileStyles"),p=l(t=>{let e=new Map;return t.forEach(o=>{let[a,r]=o.split(":");e.set(a.trim(),r?.trim())}),e},"styles2Map"),d=l(t=>t==="color"||t==="font-size"||t==="font-family"||t==="font-weight"||t==="font-style"||t==="text-decoration"||t==="text-align"||t==="text-transform"||t==="line-height"||t==="letter-spacing"||t==="word-spacing"||t==="text-shadow"||t==="text-overflow"||t==="white-space"||t==="word-wrap"||t==="word-break"||t==="overflow-wrap"||t==="hyphens","isLabelStyle"),S=l(t=>{let{stylesArray:e}=h(t),o=[],a=[],r=[],n=[];return e.forEach(s=>{let i=s[0];d(i)?o.push(s.join(":")+" !important"):(a.push(s.join(":")+" !important"),i.includes("stroke")&&r.push(s.join(":")+" !important"),i==="fill"&&n.push(s.join(":")+" !important"))}),{labelStyles:o.join(";"),nodeStyles:a.join(";"),stylesArray:e,borderStyles:r,backgroundStyles:n}},"styles2String"),w=l((t,e)=>{let{themeVariables:o,handDrawnSeed:a}=c(),{nodeBorder:r,mainBkg:n}=o,{stylesMap:s}=h(t);return Object.assign({roughness:.7,fill:s.get("fill")||n,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:s.get("stroke")||r,seed:a,strokeWidth:s.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0],strokeLineDash:f(s.get("stroke-dasharray"))},e)},"userNodeOverrides"),f=l(t=>{if(!t)return[0,0];let e=t.trim().split(/\s+/).map(Number);if(e.length===1){let r=isNaN(e[0])?0:e[0];return[r,r]}let o=isNaN(e[0])?0:e[0],a=isNaN(e[1])?0:e[1];return[o,a]},"getStrokeDashArray");export{m as a,h as b,d as c,S as d,w as e};
1
+ import{Z as c}from"./embed-page-chunk-FPA5BD6K.js";import{a as l}from"./embed-page-chunk-444E5YR2.js";var m=l(t=>{let{handDrawnSeed:e}=c();return{fill:t,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:t,seed:e}},"solidStateFill"),h=l(t=>{let e=p([...t.cssCompiledStyles||[],...t.cssStyles||[],...t.labelStyle||[]]);return{stylesMap:e,stylesArray:[...e]}},"compileStyles"),p=l(t=>{let e=new Map;return t.forEach(o=>{let[a,r]=o.split(":");e.set(a.trim(),r?.trim())}),e},"styles2Map"),d=l(t=>t==="color"||t==="font-size"||t==="font-family"||t==="font-weight"||t==="font-style"||t==="text-decoration"||t==="text-align"||t==="text-transform"||t==="line-height"||t==="letter-spacing"||t==="word-spacing"||t==="text-shadow"||t==="text-overflow"||t==="white-space"||t==="word-wrap"||t==="word-break"||t==="overflow-wrap"||t==="hyphens","isLabelStyle"),S=l(t=>{let{stylesArray:e}=h(t),o=[],a=[],r=[],n=[];return e.forEach(s=>{let i=s[0];d(i)?o.push(s.join(":")+" !important"):(a.push(s.join(":")+" !important"),i.includes("stroke")&&r.push(s.join(":")+" !important"),i==="fill"&&n.push(s.join(":")+" !important"))}),{labelStyles:o.join(";"),nodeStyles:a.join(";"),stylesArray:e,borderStyles:r,backgroundStyles:n}},"styles2String"),w=l((t,e)=>{let{themeVariables:o,handDrawnSeed:a}=c(),{nodeBorder:r,mainBkg:n}=o,{stylesMap:s}=h(t);return Object.assign({roughness:.7,fill:s.get("fill")||n,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:s.get("stroke")||r,seed:a,strokeWidth:s.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0],strokeLineDash:f(s.get("stroke-dasharray"))},e)},"userNodeOverrides"),f=l(t=>{if(!t)return[0,0];let e=t.trim().split(/\s+/).map(Number);if(e.length===1){let r=isNaN(e[0])?0:e[0];return[r,r]}let o=isNaN(e[0])?0:e[0],a=isNaN(e[1])?0:e[1];return[o,a]},"getStrokeDashArray");export{m as a,h as b,d as c,S as d,w as e};
@@ -1 +1 @@
1
- import{N as w}from"./embed-page-chunk-3MT44IAN.js";import{b as c}from"./embed-page-chunk-2BOYLGSX.js";import{a as r}from"./embed-page-chunk-444E5YR2.js";var l=r((t,e,i,h)=>{t.attr("class",i);let{width:o,height:n,x,y:u}=m(t,e);w(t,n,o,h);let a=s(x,u,o,n,e);t.attr("viewBox",a),c.debug(`viewBox configured: ${a} with padding: ${e}`)},"setupViewPortForSVG"),m=r((t,e)=>{let i=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:i.width+e*2,height:i.height+e*2,x:i.x,y:i.y}},"calculateDimensionsWithPadding"),s=r((t,e,i,h,o)=>`${t-o} ${e-o} ${i} ${h}`,"createViewBox");export{l as a};
1
+ import{N as w}from"./embed-page-chunk-FPA5BD6K.js";import{b as c}from"./embed-page-chunk-2BOYLGSX.js";import{a as r}from"./embed-page-chunk-444E5YR2.js";var l=r((t,e,i,h)=>{t.attr("class",i);let{width:o,height:n,x,y:u}=m(t,e);w(t,n,o,h);let a=s(x,u,o,n,e);t.attr("viewBox",a),c.debug(`viewBox configured: ${a} with padding: ${e}`)},"setupViewPortForSVG"),m=r((t,e)=>{let i=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:i.width+e*2,height:i.height+e*2,x:i.x,y:i.y}},"calculateDimensionsWithPadding"),s=r((t,e,i,h,o)=>`${t-o} ${e-o} ${i} ${h}`,"createViewBox");export{l as a};
@@ -1,4 +1,4 @@
1
- import{a as gr,b as Pn}from"./embed-page-chunk-X2ALKNHQ.js";import{b as qi,c as $i}from"./embed-page-chunk-OJORJR7X.js";import{a as Io}from"./embed-page-chunk-2EHKMAOV.js";import{c as xo,d as To}from"./embed-page-chunk-BJESMNTG.js";import{b as st,c as Li,d as ko,e as xt,f as wo,g as Mi,h as Cn,i as Sn,j as Ni,l as Oi,m as Fi}from"./embed-page-chunk-QPWSDWJ2.js";import{a as pn}from"./embed-page-chunk-7E2Z7TAR.js";import{a as Ki,b as Hi}from"./embed-page-chunk-EZBBN23V.js";import{J as _i,K as Ro,L as Co,M as So,N as Wi,O as Ao,P as zi,Q as Bi,R as Po,S as ji,T as An,V as pr,W as Gi,b as Ci,d as mo,e as Si,f as yo,g as vo,j as Rn,o as In,p as ho,q as Ai,t as Pi,u as Ei,v as Di,w as bo}from"./embed-page-chunk-JRORGMGI.js";import{g as Ii,i as Lt}from"./embed-page-chunk-YJQVMCUN.js";import{a as et}from"./embed-page-chunk-EP6TRRST.js";import{b as Yr,j as Xr,l as Jr,o as yt,t as co}from"./embed-page-chunk-BL44I3VR.js";import{Da as wi,H as ci,J as ui,La as xi,N as pi,Q as gi,S as fi,Sa as fo,Ta as Ti,U as go,Ua as Ri,ba as mi,g as si,m as li,n as Gn,ra as yi,sa as vi,ta as hi,va as bi,wa as ki,z as di}from"./embed-page-chunk-BNA3NXXX.js";import{l as _}from"./embed-page-chunk-PNJ7DZ5V.js";import{a as z}from"./embed-page-chunk-L2PNY33P.js";import{B as ni,G as uo,Ja as Dt,Oa as ri,P as Tn,Q as oi,Qa as ii,Ra as cr,Sa as ur,bb as ai,ea as dr,i as ei,s as ti,sa as po,z as jn}from"./embed-page-chunk-7TINC3YA.js";import{Ca as Ur,Fa as Zr,Ga as Et,Ka as fe,Pa as _e,Qa as wt,Ta as Be,ba as Pt,db as lo,eb as He,fa as Z,fb as Vr,ha as Ve,ia as Gt,ib as Ge,kb as Qr,ma as at,oa as Jt,qa as sr,ra as lr,wa as Hr,za as un}from"./embed-page-chunk-TWJOR2LG.js";import{a as Pe}from"./embed-page-chunk-MPQBYKDM.js";import{e as I}from"./embed-page-chunk-45A47GH2.js";var Hs={react:{label:"capability",color:"blue"},capability:{label:"capability",color:"blue"},deep_agent:{label:"orchestrator",color:"orange"},orchestrator:{label:"orchestrator",color:"orange"},processing:{label:"workflow",color:"purple"},workflow:{label:"workflow",color:"purple"},a2a_remote:{label:"remote",color:"cyan"},remote:{label:"remote",color:"cyan"}};function En(e){return Hs[e]??{label:"capability",color:"blue"}}var Us={enabled:"green",draft:"orange",disabled:"default"};function Zi(e){return Us[e]??"default"}var Ui={blue:"#3b82f6",orange:"#f59e0b",green:"#22c55e",purple:"#a855f7",cyan:"#06b6d4"};function Kn(e){return Ui[e]??Ui.cyan}function Yd(e){let t={enabled:"#22c55e",draft:"#f59e0b",disabled:"#d9d9d9"};return t[e]??t.disabled}function Dn(e){return typeof e.graphDefinition=="object"&&e.graphDefinition!==null?e.graphDefinition:{}}function mr(e){return((Dn(e).metadata??{}).tags??"").split(",").map(r=>r.trim()).filter(Boolean)}function yr(e){let o=(Dn(e).metadata??{}).version;return o?o.startsWith("v")?o:`v${o}`:"v1"}function vr(e){let o=(Dn(e).metadata??{}).status??"enabled";return o==="draft"||o==="disabled"?o:"enabled"}function fr(e){let n=Dn(e).subAgents??[],o=Array.isArray(n)?n.filter(Boolean):[];return Array.from(new Set(o))}function Xd(e){return e.map(t=>{let n=Dn(t),o=String(n.type??"react");return{id:t.id,name:t.name,description:t.description,type:En(o).label,tags:mr(t),version:yr(t),status:vr(t),subAgents:fr(t)}})}function Jd(e){let t=new Set(e.map(r=>r.id)),n=e.map(r=>({id:r.id,label:r.name,type:En(String(Dn(r).type??"react")).label,subAgentCount:fr(r).length})),o=[];for(let r of e)for(let i of fr(r))t.has(i)&&o.push({source:r.id,target:i});return{nodes:n,edges:o}}var Ee=I(Pe());var te=I(Pe());var k=I(z()),{TextArea:Zs}=_e,{Text:Tt}=Ge,Vi=["data","execution","workflow","assistant"],Qi={data:"chatConfig.agentPanel.category.data",execution:"chatConfig.agentPanel.category.execution",workflow:"chatConfig.agentPanel.category.workflow",assistant:"chatConfig.agentPanel.category.assistant",other:"chatConfig.agentPanel.category.other"},Vs={react:"chatConfig.agentPanel.typeDesc.react",deep_agent:"chatConfig.agentPanel.typeDesc.deepAgent"},qn=(e,t)=>{if(Array.isArray(e)){let n=e.map(o=>qn(o));return(t==="tools"||t==="subAgents")&&n.every(o=>typeof o=="string")?[...n].sort():n}return e!==null&&typeof e=="object"?Object.fromEntries(Object.entries(e).sort(([n],[o])=>n.localeCompare(o)).map(([n,o])=>[n,qn(o,n)])):e},Yi=e=>{if(typeof e!="string")return qn(e??null);try{return qn(JSON.parse(e))}catch{return e}},Xi=e=>JSON.stringify(qn({...e,tools:[...e.tools].sort(),subAgents:[...e.subAgents].sort()})),Qs=Ii(({token:e,css:t})=>({modalBody:t`
1
+ import{a as gr,b as Pn}from"./embed-page-chunk-GXHZDCWF.js";import{b as qi,c as $i}from"./embed-page-chunk-GMLPPJZP.js";import{a as Io}from"./embed-page-chunk-4T3AWQQQ.js";import{c as xo,d as To}from"./embed-page-chunk-BJESMNTG.js";import{b as st,c as Li,d as ko,e as xt,f as wo,g as Mi,h as Cn,i as Sn,j as Ni,l as Oi,m as Fi}from"./embed-page-chunk-QPWSDWJ2.js";import{a as pn}from"./embed-page-chunk-U6PURUXV.js";import{a as Ki,b as Hi}from"./embed-page-chunk-JRGR5W3C.js";import{J as _i,K as Ro,L as Co,M as So,N as Wi,O as Ao,P as zi,Q as Bi,R as Po,S as ji,T as An,V as pr,W as Gi,b as Ci,d as mo,e as Si,f as yo,g as vo,j as Rn,o as In,p as ho,q as Ai,t as Pi,u as Ei,v as Di,w as bo}from"./embed-page-chunk-KJTJI54Q.js";import{g as Ii,i as Lt}from"./embed-page-chunk-5UOSSN26.js";import{a as et}from"./embed-page-chunk-T2GL7G2Z.js";import{b as Yr,j as Xr,l as Jr,o as yt,t as co}from"./embed-page-chunk-U3XF7MHJ.js";import{Da as wi,H as ci,J as ui,La as xi,N as pi,Q as gi,S as fi,Sa as fo,Ta as Ti,U as go,Ua as Ri,ba as mi,g as si,m as li,n as Gn,ra as yi,sa as vi,ta as hi,va as bi,wa as ki,z as di}from"./embed-page-chunk-BNA3NXXX.js";import{l as _}from"./embed-page-chunk-PNJ7DZ5V.js";import{a as z}from"./embed-page-chunk-L2PNY33P.js";import{B as ni,G as uo,Ja as Dt,Oa as ri,P as Tn,Q as oi,Qa as ii,Ra as cr,Sa as ur,bb as ai,ea as dr,i as ei,s as ti,sa as po,z as jn}from"./embed-page-chunk-7TINC3YA.js";import{Ca as Ur,Fa as Zr,Ga as Et,Ka as fe,Pa as _e,Qa as wt,Ta as Be,ba as Pt,db as lo,eb as He,fa as Z,fb as Vr,ha as Ve,ia as Gt,ib as Ge,kb as Qr,ma as at,oa as Jt,qa as sr,ra as lr,wa as Hr,za as un}from"./embed-page-chunk-TWJOR2LG.js";import{a as Pe}from"./embed-page-chunk-MPQBYKDM.js";import{e as I}from"./embed-page-chunk-45A47GH2.js";var Hs={react:{label:"capability",color:"blue"},capability:{label:"capability",color:"blue"},deep_agent:{label:"orchestrator",color:"orange"},orchestrator:{label:"orchestrator",color:"orange"},processing:{label:"workflow",color:"purple"},workflow:{label:"workflow",color:"purple"},a2a_remote:{label:"remote",color:"cyan"},remote:{label:"remote",color:"cyan"}};function En(e){return Hs[e]??{label:"capability",color:"blue"}}var Us={enabled:"green",draft:"orange",disabled:"default"};function Zi(e){return Us[e]??"default"}var Ui={blue:"#3b82f6",orange:"#f59e0b",green:"#22c55e",purple:"#a855f7",cyan:"#06b6d4"};function Kn(e){return Ui[e]??Ui.cyan}function Yd(e){let t={enabled:"#22c55e",draft:"#f59e0b",disabled:"#d9d9d9"};return t[e]??t.disabled}function Dn(e){return typeof e.graphDefinition=="object"&&e.graphDefinition!==null?e.graphDefinition:{}}function mr(e){return((Dn(e).metadata??{}).tags??"").split(",").map(r=>r.trim()).filter(Boolean)}function yr(e){let o=(Dn(e).metadata??{}).version;return o?o.startsWith("v")?o:`v${o}`:"v1"}function vr(e){let o=(Dn(e).metadata??{}).status??"enabled";return o==="draft"||o==="disabled"?o:"enabled"}function fr(e){let n=Dn(e).subAgents??[],o=Array.isArray(n)?n.filter(Boolean):[];return Array.from(new Set(o))}function Xd(e){return e.map(t=>{let n=Dn(t),o=String(n.type??"react");return{id:t.id,name:t.name,description:t.description,type:En(o).label,tags:mr(t),version:yr(t),status:vr(t),subAgents:fr(t)}})}function Jd(e){let t=new Set(e.map(r=>r.id)),n=e.map(r=>({id:r.id,label:r.name,type:En(String(Dn(r).type??"react")).label,subAgentCount:fr(r).length})),o=[];for(let r of e)for(let i of fr(r))t.has(i)&&o.push({source:r.id,target:i});return{nodes:n,edges:o}}var Ee=I(Pe());var te=I(Pe());var k=I(z()),{TextArea:Zs}=_e,{Text:Tt}=Ge,Vi=["data","execution","workflow","assistant"],Qi={data:"chatConfig.agentPanel.category.data",execution:"chatConfig.agentPanel.category.execution",workflow:"chatConfig.agentPanel.category.workflow",assistant:"chatConfig.agentPanel.category.assistant",other:"chatConfig.agentPanel.category.other"},Vs={react:"chatConfig.agentPanel.typeDesc.react",deep_agent:"chatConfig.agentPanel.typeDesc.deepAgent"},qn=(e,t)=>{if(Array.isArray(e)){let n=e.map(o=>qn(o));return(t==="tools"||t==="subAgents")&&n.every(o=>typeof o=="string")?[...n].sort():n}return e!==null&&typeof e=="object"?Object.fromEntries(Object.entries(e).sort(([n],[o])=>n.localeCompare(o)).map(([n,o])=>[n,qn(o,n)])):e},Yi=e=>{if(typeof e!="string")return qn(e??null);try{return qn(JSON.parse(e))}catch{return e}},Xi=e=>JSON.stringify(qn({...e,tools:[...e.tools].sort(),subAgents:[...e.subAgents].sort()})),Qs=Ii(({token:e,css:t})=>({modalBody:t`
2
2
  padding: 0;
3
3
  height: 92vh;
4
4
  width: 100%;
@@ -1 +1 @@
1
- import{d as h,e as u,f as y,g as w}from"./embed-page-chunk-XWR7WUUN.js";import{a as g,d as f,g as c}from"./embed-page-chunk-D4ICPD5X.js";import{e as m}from"./embed-page-chunk-LKNA7XLR.js";import{M as p,t as l}from"./embed-page-chunk-3MT44IAN.js";import{b as i}from"./embed-page-chunk-2BOYLGSX.js";import{a as e}from"./embed-page-chunk-444E5YR2.js";var L={common:p,getConfig:l,insertCluster:f,insertEdge:y,insertEdgeLabel:h,insertMarkers:w,insertNode:c,interpolateToCurve:m,labelHelper:g,log:i,positionEdgeLabel:u},a={},E=e(t=>{for(let r of t)a[r.name]=r},"registerLayoutLoaders"),b=e(()=>{E([{name:"dagre",loader:e(async()=>await import("./embed-page-dagre-VZM6K2ZE-JB3F5OD3.js"),"loader")},{name:"swimlane",loader:e(async()=>await import("./embed-page-swimlanes-SLNWSIFB-FVZEOHUB.js"),"loader")},{name:"cose-bilkent",loader:e(async()=>await import("./embed-page-cose-bilkent-JH36ORCC-GXGNKXJ6.js"),"loader")}])},"registerDefaultLayoutLoaders");b();var U=e(async(t,r,F)=>{if(!(t.layoutAlgorithm in a))throw new Error(`Unknown layout algorithm: ${t.layoutAlgorithm}`);if(t.diagramId)for(let o of t.nodes){let I=o.domId||o.id;o.domId=`${t.diagramId}-${I}`}let n=a[t.layoutAlgorithm],$=await n.loader(),{theme:d,themeVariables:D}=t.config,{useGradient:v,gradientStart:x,gradientStop:A}=D,s=r.attr("id");if(r.append("defs").append("filter").attr("id",`${s}-drop-shadow`).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${d?.includes("dark")?"#FFFFFF":"#000000"}`),r.append("defs").append("filter").attr("id",`${s}-drop-shadow-small`).attr("height","150%").attr("width","150%").append("feDropShadow").attr("dx","2").attr("dy","2").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${d?.includes("dark")?"#FFFFFF":"#000000"}`),v){let o=r.append("linearGradient").attr("id",r.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");o.append("svg:stop").attr("offset","0%").attr("stop-color",x).attr("stop-opacity",1),o.append("svg:stop").attr("offset","100%").attr("stop-color",A).attr("stop-opacity",1)}return $.render(t,r,L,{algorithm:n.algorithm},F)},"render"),G=e((t="",{fallback:r="dagre"}={})=>{if(t in a)return t;if(r in a)return i.warn(`Layout algorithm ${t} is not registered. Using ${r} as fallback.`),r;throw new Error(`Both layout algorithms ${t} and ${r} are not registered.`)},"getRegisteredLayoutAlgorithm");export{E as a,U as b,G as c};
1
+ import{d as h,e as u,f as y,g as w}from"./embed-page-chunk-RPGUOUD3.js";import{a as g,d as f,g as c}from"./embed-page-chunk-7IPWMDQ3.js";import{e as m}from"./embed-page-chunk-UAXOXJ4N.js";import{M as p,t as l}from"./embed-page-chunk-FPA5BD6K.js";import{b as i}from"./embed-page-chunk-2BOYLGSX.js";import{a as e}from"./embed-page-chunk-444E5YR2.js";var L={common:p,getConfig:l,insertCluster:f,insertEdge:y,insertEdgeLabel:h,insertMarkers:w,insertNode:c,interpolateToCurve:m,labelHelper:g,log:i,positionEdgeLabel:u},a={},E=e(t=>{for(let r of t)a[r.name]=r},"registerLayoutLoaders"),b=e(()=>{E([{name:"dagre",loader:e(async()=>await import("./embed-page-dagre-VZM6K2ZE-35URH6ZO.js"),"loader")},{name:"swimlane",loader:e(async()=>await import("./embed-page-swimlanes-SLNWSIFB-OKHSRANK.js"),"loader")},{name:"cose-bilkent",loader:e(async()=>await import("./embed-page-cose-bilkent-JH36ORCC-GXGNKXJ6.js"),"loader")}])},"registerDefaultLayoutLoaders");b();var U=e(async(t,r,F)=>{if(!(t.layoutAlgorithm in a))throw new Error(`Unknown layout algorithm: ${t.layoutAlgorithm}`);if(t.diagramId)for(let o of t.nodes){let I=o.domId||o.id;o.domId=`${t.diagramId}-${I}`}let n=a[t.layoutAlgorithm],$=await n.loader(),{theme:d,themeVariables:D}=t.config,{useGradient:v,gradientStart:x,gradientStop:A}=D,s=r.attr("id");if(r.append("defs").append("filter").attr("id",`${s}-drop-shadow`).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${d?.includes("dark")?"#FFFFFF":"#000000"}`),r.append("defs").append("filter").attr("id",`${s}-drop-shadow-small`).attr("height","150%").attr("width","150%").append("feDropShadow").attr("dx","2").attr("dy","2").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${d?.includes("dark")?"#FFFFFF":"#000000"}`),v){let o=r.append("linearGradient").attr("id",r.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");o.append("svg:stop").attr("offset","0%").attr("stop-color",x).attr("stop-opacity",1),o.append("svg:stop").attr("offset","100%").attr("stop-color",A).attr("stop-opacity",1)}return $.render(t,r,L,{algorithm:n.algorithm},F)},"render"),G=e((t="",{fallback:r="dagre"}={})=>{if(t in a)return t;if(r in a)return i.warn(`Layout algorithm ${t} is not registered. Using ${r} as fallback.`),r;throw new Error(`Both layout algorithms ${t} and ${r} are not registered.`)},"getRegisteredLayoutAlgorithm");export{E as a,U as b,G as c};
@@ -1,4 +1,4 @@
1
- import{a as R,b as Q,c as at,d as wt}from"./embed-page-chunk-7AXKFOLH.js";import{c as q}from"./embed-page-chunk-D4ICPD5X.js";import{c as mt,d as ut}from"./embed-page-chunk-IK542MPZ.js";import{a as gt}from"./embed-page-chunk-JAMKPUN7.js";import{a as bt}from"./embed-page-chunk-7TH7FFVA.js";import{c as xt}from"./embed-page-chunk-DVOV6TZI.js";import{p as H,t as yt}from"./embed-page-chunk-LKNA7XLR.js";import{Z as U,t as E,x as tt}from"./embed-page-chunk-3MT44IAN.js";import{b as x}from"./embed-page-chunk-2BOYLGSX.js";import{C as j,D as nt,F as st,G as ot,H as rt,L as it,O as ct,S as lt,T as dt,U as pt,V as ht,W as ft,X as kt}from"./embed-page-chunk-DM5ESF6C.js";import{b as W}from"./embed-page-chunk-S4XZPBRM.js";import{a as p}from"./embed-page-chunk-444E5YR2.js";var Yt=p((r,t,a,e,o,n=!1,s)=>{t.arrowTypeStart&&Mt(r,"start",t.arrowTypeStart,a,e,o,n,s),t.arrowTypeEnd&&Mt(r,"end",t.arrowTypeEnd,a,e,o,n,s)},"addEdgeMarkers"),Ht={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},Bt=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],Mt=p((r,t,a,e,o,n,s=!1,i)=>{let l=Ht[a],m=l&&Bt.includes(l.type);if(!l){x.warn(`Unknown arrow type: ${a}`);return}let c=l.type,d=`${o}_${n}-${c}${t==="start"?"Start":"End"}${s&&m?"-margin":""}`;if(i&&i.trim()!==""){let g=i.replace(/[^\dA-Za-z]/g,"_"),y=`${d}_${g}`;if(!document.getElementById(y)){let f=document.getElementById(d);if(f){let w=f.cloneNode(!0);w.id=y,w.querySelectorAll("path, circle, line").forEach(B=>{B.setAttribute("stroke",i),l.fill&&B.setAttribute("fill",i)}),f.parentNode?.appendChild(w)}}r.attr(`marker-${t}`,`url(${e}#${y})`)}else r.attr(`marker-${t}`,`url(${e}#${d})`)},"addEdgeMarker"),Tt=p(r=>typeof r=="string"?r:U()?.flowchart?.curve,"resolveEdgeCurveType"),F=new Map,L=new Map,Lr=p(()=>{F.clear(),L.clear()},"clear"),I=p(r=>r?typeof r=="string"?r:r.reduce((t,a)=>t+";"+a,""):"","getLabelStyles"),_r=p(async(r,t)=>{let a=U(),e=tt(a),{labelStyles:o}=ut(t);t.labelStyle=o;let n=r.insert("g").attr("class","edgeLabel"),s=n.insert("g").attr("class","label").attr("data-id",t.id),i=t.labelType==="markdown",m=await xt(r,t.label,{style:I(t.labelStyle),useHtmlLabels:e,addSvgBackground:!0,isNode:!1,markdown:i,width:i?void 0:void 0},a);s.node().appendChild(m),x.info("abc82",t,t.labelType);let c=m.getBBox(),u=c;if(e){let d=m.children[0],g=W(m);c=d.getBoundingClientRect(),u=c,g.attr("width",c.width),g.attr("height",c.height)}else{let d=W(m).select("text").node();d&&typeof d.getBBox=="function"&&(u=d.getBBox())}s.attr("transform",R(u,e)),F.set(t.id,n),t.width=c.width,t.height=c.height;let h;if(t.startLabelLeft){let d=r.insert("g").attr("class","edgeTerminals"),g=d.insert("g").attr("class","inner"),y=await q(g,t.startLabelLeft,I(t.labelStyle)||"",!1,!1);h=y;let f=y.getBBox();if(e){let w=y.children[0],k=W(y);f=w.getBoundingClientRect(),k.attr("width",f.width),k.attr("height",f.height)}g.attr("transform",R(f,e)),L.get(t.id)||L.set(t.id,{}),L.get(t.id).startLeft=d,Z(h,t.startLabelLeft)}if(t.startLabelRight){let d=r.insert("g").attr("class","edgeTerminals"),g=d.insert("g").attr("class","inner"),y=await q(g,t.startLabelRight,I(t.labelStyle)||"",!1,!1);h=y;let f=y.getBBox();if(e){let w=y.children[0],k=W(y);f=w.getBoundingClientRect(),k.attr("width",f.width),k.attr("height",f.height)}g.attr("transform",R(f,e)),L.get(t.id)||L.set(t.id,{}),L.get(t.id).startRight=d,Z(h,t.startLabelRight)}if(t.endLabelLeft){let d=r.insert("g").attr("class","edgeTerminals"),g=d.insert("g").attr("class","inner"),y=await q(d,t.endLabelLeft,I(t.labelStyle)||"",!1,!1);h=y;let f=y.getBBox();if(e){let w=y.children[0],k=W(y);f=w.getBoundingClientRect(),k.attr("width",f.width),k.attr("height",f.height)}g.attr("transform",R(f,e)),L.get(t.id)||L.set(t.id,{}),L.get(t.id).endLeft=d,Z(h,t.endLabelLeft)}if(t.endLabelRight){let d=r.insert("g").attr("class","edgeTerminals"),g=d.insert("g").attr("class","inner"),y=await q(d,t.endLabelRight,I(t.labelStyle)||"",!1,!1);h=y;let f=y.getBBox();if(e){let w=y.children[0],k=W(y);f=w.getBoundingClientRect(),k.attr("width",f.width),k.attr("height",f.height)}g.attr("transform",R(f,e)),L.get(t.id)||L.set(t.id,{}),L.get(t.id).endRight=d,Z(h,t.endLabelRight)}return m},"insertEdgeLabel");function Z(r,t){tt(U())&&r&&(r.style.width=t.length*9+"px",r.style.height="12px")}p(Z,"setTerminalWidth");var vr=p((r,t)=>{x.debug("Moving label abc88 ",r.id,r.label,F.get(r.id),t);let a=t.updatedPath?t.updatedPath:t.originalPath,e=U(),{subGraphTitleTotalMargin:o}=gt(e);if(r.label){let n=F.get(r.id),s=r.x,i=r.y;if(a){let l=H.calcLabelPosition(a);x.debug("Moving label "+r.label+" from (",s,",",i,") to (",l.x,",",l.y,") abc88"),t.updatedPath&&(s=l.x,i=l.y)}n.attr("transform",`translate(${s}, ${i+o/2})`)}if(r.startLabelLeft){let n=L.get(r.id).startLeft,s=r.x,i=r.y;if(a){let l=H.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_left",a);s=l.x,i=l.y}n.attr("transform",`translate(${s}, ${i})`)}if(r.startLabelRight){let n=L.get(r.id).startRight,s=r.x,i=r.y;if(a){let l=H.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_right",a);s=l.x,i=l.y}n.attr("transform",`translate(${s}, ${i})`)}if(r.endLabelLeft){let n=L.get(r.id).endLeft,s=r.x,i=r.y;if(a){let l=H.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_left",a);s=l.x,i=l.y}n.attr("transform",`translate(${s}, ${i})`)}if(r.endLabelRight){let n=L.get(r.id).endRight,s=r.x,i=r.y;if(a){let l=H.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_right",a);s=l.x,i=l.y}n.attr("transform",`translate(${s}, ${i})`)}},"positionEdgeLabel"),Ct=p((r,t)=>{if(!r?.isLabelEdge||!r?.id?.endsWith("-to-label")||!Array.isArray(t)||t.length!==2)return t;let[a,e]=t,o=Math.abs(e.x-a.x),n=Math.abs(e.y-a.y);return o<.001||n<.001?t:n>=o?[a,{x:a.x,y:e.y},e]:[a,{x:e.x,y:a.y},e]},"orthogonalizeToLabelClippedPoints"),zt=p((r,t)=>{let a=r.x,e=r.y,o=Math.abs(t.x-a),n=Math.abs(t.y-e),s=r.width/2,i=r.height/2;return o>=s||n>=i},"outsideNode"),At=p((r,t,a)=>{x.debug(`intersection calc abc89:
1
+ import{a as R,b as Q,c as at,d as wt}from"./embed-page-chunk-7AXKFOLH.js";import{c as q}from"./embed-page-chunk-7IPWMDQ3.js";import{c as mt,d as ut}from"./embed-page-chunk-ME637LUU.js";import{a as gt}from"./embed-page-chunk-X2TOGOMH.js";import{a as bt}from"./embed-page-chunk-7TH7FFVA.js";import{c as xt}from"./embed-page-chunk-I7EMCZI6.js";import{p as H,t as yt}from"./embed-page-chunk-UAXOXJ4N.js";import{Z as U,t as E,x as tt}from"./embed-page-chunk-FPA5BD6K.js";import{b as x}from"./embed-page-chunk-2BOYLGSX.js";import{C as j,D as nt,F as st,G as ot,H as rt,L as it,O as ct,S as lt,T as dt,U as pt,V as ht,W as ft,X as kt}from"./embed-page-chunk-DM5ESF6C.js";import{b as W}from"./embed-page-chunk-S4XZPBRM.js";import{a as p}from"./embed-page-chunk-444E5YR2.js";var Yt=p((r,t,a,e,o,n=!1,s)=>{t.arrowTypeStart&&Mt(r,"start",t.arrowTypeStart,a,e,o,n,s),t.arrowTypeEnd&&Mt(r,"end",t.arrowTypeEnd,a,e,o,n,s)},"addEdgeMarkers"),Ht={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},Bt=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],Mt=p((r,t,a,e,o,n,s=!1,i)=>{let l=Ht[a],m=l&&Bt.includes(l.type);if(!l){x.warn(`Unknown arrow type: ${a}`);return}let c=l.type,d=`${o}_${n}-${c}${t==="start"?"Start":"End"}${s&&m?"-margin":""}`;if(i&&i.trim()!==""){let g=i.replace(/[^\dA-Za-z]/g,"_"),y=`${d}_${g}`;if(!document.getElementById(y)){let f=document.getElementById(d);if(f){let w=f.cloneNode(!0);w.id=y,w.querySelectorAll("path, circle, line").forEach(B=>{B.setAttribute("stroke",i),l.fill&&B.setAttribute("fill",i)}),f.parentNode?.appendChild(w)}}r.attr(`marker-${t}`,`url(${e}#${y})`)}else r.attr(`marker-${t}`,`url(${e}#${d})`)},"addEdgeMarker"),Tt=p(r=>typeof r=="string"?r:U()?.flowchart?.curve,"resolveEdgeCurveType"),F=new Map,L=new Map,Lr=p(()=>{F.clear(),L.clear()},"clear"),I=p(r=>r?typeof r=="string"?r:r.reduce((t,a)=>t+";"+a,""):"","getLabelStyles"),_r=p(async(r,t)=>{let a=U(),e=tt(a),{labelStyles:o}=ut(t);t.labelStyle=o;let n=r.insert("g").attr("class","edgeLabel"),s=n.insert("g").attr("class","label").attr("data-id",t.id),i=t.labelType==="markdown",m=await xt(r,t.label,{style:I(t.labelStyle),useHtmlLabels:e,addSvgBackground:!0,isNode:!1,markdown:i,width:i?void 0:void 0},a);s.node().appendChild(m),x.info("abc82",t,t.labelType);let c=m.getBBox(),u=c;if(e){let d=m.children[0],g=W(m);c=d.getBoundingClientRect(),u=c,g.attr("width",c.width),g.attr("height",c.height)}else{let d=W(m).select("text").node();d&&typeof d.getBBox=="function"&&(u=d.getBBox())}s.attr("transform",R(u,e)),F.set(t.id,n),t.width=c.width,t.height=c.height;let h;if(t.startLabelLeft){let d=r.insert("g").attr("class","edgeTerminals"),g=d.insert("g").attr("class","inner"),y=await q(g,t.startLabelLeft,I(t.labelStyle)||"",!1,!1);h=y;let f=y.getBBox();if(e){let w=y.children[0],k=W(y);f=w.getBoundingClientRect(),k.attr("width",f.width),k.attr("height",f.height)}g.attr("transform",R(f,e)),L.get(t.id)||L.set(t.id,{}),L.get(t.id).startLeft=d,Z(h,t.startLabelLeft)}if(t.startLabelRight){let d=r.insert("g").attr("class","edgeTerminals"),g=d.insert("g").attr("class","inner"),y=await q(g,t.startLabelRight,I(t.labelStyle)||"",!1,!1);h=y;let f=y.getBBox();if(e){let w=y.children[0],k=W(y);f=w.getBoundingClientRect(),k.attr("width",f.width),k.attr("height",f.height)}g.attr("transform",R(f,e)),L.get(t.id)||L.set(t.id,{}),L.get(t.id).startRight=d,Z(h,t.startLabelRight)}if(t.endLabelLeft){let d=r.insert("g").attr("class","edgeTerminals"),g=d.insert("g").attr("class","inner"),y=await q(d,t.endLabelLeft,I(t.labelStyle)||"",!1,!1);h=y;let f=y.getBBox();if(e){let w=y.children[0],k=W(y);f=w.getBoundingClientRect(),k.attr("width",f.width),k.attr("height",f.height)}g.attr("transform",R(f,e)),L.get(t.id)||L.set(t.id,{}),L.get(t.id).endLeft=d,Z(h,t.endLabelLeft)}if(t.endLabelRight){let d=r.insert("g").attr("class","edgeTerminals"),g=d.insert("g").attr("class","inner"),y=await q(d,t.endLabelRight,I(t.labelStyle)||"",!1,!1);h=y;let f=y.getBBox();if(e){let w=y.children[0],k=W(y);f=w.getBoundingClientRect(),k.attr("width",f.width),k.attr("height",f.height)}g.attr("transform",R(f,e)),L.get(t.id)||L.set(t.id,{}),L.get(t.id).endRight=d,Z(h,t.endLabelRight)}return m},"insertEdgeLabel");function Z(r,t){tt(U())&&r&&(r.style.width=t.length*9+"px",r.style.height="12px")}p(Z,"setTerminalWidth");var vr=p((r,t)=>{x.debug("Moving label abc88 ",r.id,r.label,F.get(r.id),t);let a=t.updatedPath?t.updatedPath:t.originalPath,e=U(),{subGraphTitleTotalMargin:o}=gt(e);if(r.label){let n=F.get(r.id),s=r.x,i=r.y;if(a){let l=H.calcLabelPosition(a);x.debug("Moving label "+r.label+" from (",s,",",i,") to (",l.x,",",l.y,") abc88"),t.updatedPath&&(s=l.x,i=l.y)}n.attr("transform",`translate(${s}, ${i+o/2})`)}if(r.startLabelLeft){let n=L.get(r.id).startLeft,s=r.x,i=r.y;if(a){let l=H.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_left",a);s=l.x,i=l.y}n.attr("transform",`translate(${s}, ${i})`)}if(r.startLabelRight){let n=L.get(r.id).startRight,s=r.x,i=r.y;if(a){let l=H.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_right",a);s=l.x,i=l.y}n.attr("transform",`translate(${s}, ${i})`)}if(r.endLabelLeft){let n=L.get(r.id).endLeft,s=r.x,i=r.y;if(a){let l=H.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_left",a);s=l.x,i=l.y}n.attr("transform",`translate(${s}, ${i})`)}if(r.endLabelRight){let n=L.get(r.id).endRight,s=r.x,i=r.y;if(a){let l=H.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_right",a);s=l.x,i=l.y}n.attr("transform",`translate(${s}, ${i})`)}},"positionEdgeLabel"),Ct=p((r,t)=>{if(!r?.isLabelEdge||!r?.id?.endsWith("-to-label")||!Array.isArray(t)||t.length!==2)return t;let[a,e]=t,o=Math.abs(e.x-a.x),n=Math.abs(e.y-a.y);return o<.001||n<.001?t:n>=o?[a,{x:a.x,y:e.y},e]:[a,{x:e.x,y:a.y},e]},"orthogonalizeToLabelClippedPoints"),zt=p((r,t)=>{let a=r.x,e=r.y,o=Math.abs(t.x-a),n=Math.abs(t.y-e),s=r.width/2,i=r.height/2;return o>=s||n>=i},"outsideNode"),At=p((r,t,a)=>{x.debug(`intersection calc abc89:
2
2
  outsidePoint: ${JSON.stringify(t)}
3
3
  insidePoint : ${JSON.stringify(a)}
4
4
  node : x:${r.x} y:${r.y} w:${r.width} h:${r.height}`);let e=r.x,o=r.y,n=Math.abs(e-a.x),s=r.width/2,i=a.x<t.x?s-n:s+n,l=r.height/2,m=Math.abs(t.y-a.y),c=Math.abs(t.x-a.x);if(Math.abs(o-t.y)*s>Math.abs(e-t.x)*l){let u=a.y<t.y?t.y-l-o:o-l-t.y;i=c*u/m;let h={x:a.x<t.x?a.x+i:a.x-c+i,y:a.y<t.y?a.y+m-u:a.y-m+u};return i===0&&(h.x=t.x,h.y=t.y),c===0&&(h.x=t.x),m===0&&(h.y=t.y),x.debug(`abc89 top/bottom calc, Q ${m}, q ${u}, R ${c}, r ${i}`,h),h}else{a.x<t.x?i=t.x-s-e:i=e-s-t.x;let u=m*i/c,h=a.x<t.x?a.x+c-i:a.x-c+i,d=a.y<t.y?a.y+u:a.y-u;return x.debug(`sides calc abc89, Q ${m}, q ${u}, R ${c}, r ${i}`,{_x:h,_y:d}),i===0&&(h=t.x,d=t.y),c===0&&(h=t.x),m===0&&(d=t.y),{x:h,y:d}}},"intersection"),Lt=p((r,t)=>{x.warn("abc88 cutPathAtIntersect",r,t);let a=[],e=r[0],o=!1;return r.forEach(n=>{if(x.info("abc88 checking point",n,t),!zt(t,n)&&!o){let s=At(t,e,n);x.debug("abc88 inside",n,e,s),x.debug("abc88 intersection",s,t);let i=!1;a.forEach(l=>{i=i||l.x===s.x&&l.y===s.y}),a.some(l=>l.x===s.x&&l.y===s.y)?x.warn("abc88 no intersect",s,a):a.push(s),o=!0}else x.warn("abc88 outside",n,e),e=n,o||a.push(n)}),x.debug("returning points",a),a},"cutPathAtIntersect");function vt(r){let t=[],a=[];for(let e=1;e<r.length-1;e++){let o=r[e-1],n=r[e],s=r[e+1];(o.x===n.x&&n.y===s.y&&Math.abs(n.x-s.x)>5&&Math.abs(n.y-o.y)>5||o.y===n.y&&n.x===s.x&&Math.abs(n.x-o.x)>5&&Math.abs(n.y-s.y)>5)&&(t.push(n),a.push(e))}return{cornerPoints:t,cornerPointPositions:a}}p(vt,"extractCornerPoints");var _t=p(function(r,t,a){let e=t.x-r.x,o=t.y-r.y,n=Math.sqrt(e*e+o*o),s=a/n;return{x:t.x-s*e,y:t.y-s*o}},"findAdjacentPoint"),Rt=p(function(r){let{cornerPointPositions:t}=vt(r),a=[];for(let e=0;e<r.length;e++)if(t.includes(e)){let o=r[e-1],n=r[e+1],s=r[e],i=_t(o,s,5),l=_t(n,s,5),m=l.x-i.x,c=l.y-i.y;a.push(i);let u=Math.sqrt(2)*2,h={x:s.x,y:s.y};if(Math.abs(n.x-o.x)>10&&Math.abs(n.y-o.y)>=10){x.debug("Corner point fixing",Math.abs(n.x-o.x),Math.abs(n.y-o.y));let d=5;s.x===i.x?h={x:m<0?i.x-d+u:i.x+d-u,y:c<0?i.y-u:i.y+u}:h={x:m<0?i.x-u:i.x+u,y:c<0?i.y-d+u:i.y+d-u}}else x.debug("Corner point skipping fixing",Math.abs(n.x-o.x),Math.abs(n.y-o.y));a.push(h,l)}else a.push(r[e]);return a},"fixCorners"),Pt=p((r,t,a)=>{let e=r-t-a,o=2,n=2,s=o+n,i=Math.floor(e/s),l=Array(i).fill(`${o} ${n}`).join(" ");return`0 ${t} ${l} ${a}`},"generateDashArray"),Sr=p(function(r,t,a,e,o,n,s,i=!1){if(!s)throw new Error(`insertEdge: missing diagramId for edge "${t.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);let{handDrawnSeed:l,layout:m}=U(),c=t.points,u=!1,h=o;var d=n;let g=[];for(let b in t.cssCompiledStyles)mt(b)||g.push(t.cssCompiledStyles[b]);if(m==="swimlane"){if(d.intersect&&h.intersect&&Array.isArray(c)&&c.length>=2)if(c.length===2)c=[h.intersect(c[0]),d.intersect(c[1])];else{let b=c.slice(1,-1),$=b[0],v=b[b.length-1],S=.5,C=Math.abs(c[c.length-1].x-v.x)<S&&Math.abs(c[c.length-1].y-v.y)<S,X=h.intersect($),Y=C?v:d.intersect(v),z=Math.abs(Y.x-v.x)<S&&Math.abs(Y.y-v.y)<S,Wt=Math.abs(X.x-$.x)<S&&Math.abs(X.y-$.y)<S?[]:[X],Xt=z?[]:[Y];c=[...Wt,...b,...Xt]}c=Ct(t,c)}else d.intersect&&h.intersect&&!i&&(c=c.slice(1,t.points.length-1),c.unshift(h.intersect(c[0])),c.push(d.intersect(c[c.length-1])));let y=btoa(JSON.stringify(c));t.toCluster&&(x.info("to cluster abc88",a.get(t.toCluster)),c=Lt(t.points,a.get(t.toCluster).node),u=!0),t.fromCluster&&(x.debug("from cluster abc88",a.get(t.fromCluster),JSON.stringify(c,null,2)),c=Lt(c.reverse(),a.get(t.fromCluster).node).reverse(),u=!0);let f=c.filter(b=>!Number.isNaN(b.y)),w=Tt(t.curve);w!=="rounded"&&(f=Rt(f));let k=j;switch(w){case"linear":k=j;break;case"basis":k=rt;break;case"cardinal":k=it;break;case"bumpX":k=st;break;case"bumpY":k=ot;break;case"catmullRom":k=ct;break;case"monotoneX":k=lt;break;case"monotoneY":k=dt;break;case"natural":k=pt;break;case"step":k=ht;break;case"stepAfter":k=kt;break;case"stepBefore":k=ft;break;case"rounded":k=j;break;default:k=rt}let{x:B,y:J}=wt(t),P=nt().x(B).y(J).curve(k),_;switch(t.thickness){case"normal":_="edge-thickness-normal";break;case"thick":_="edge-thickness-thick";break;case"invisible":_="edge-thickness-invisible";break;default:_="edge-thickness-normal"}switch(t.pattern){case"solid":_+=" edge-pattern-solid";break;case"dotted":_+=" edge-pattern-dotted";break;case"dashed":_+=" edge-pattern-dashed";break;default:_+=" edge-pattern-solid"}let M,N=w==="rounded"?St(Ot(f,t),5):P(f),O=Array.isArray(t.style)?t.style:[t.style],V=O.find(b=>b?.startsWith("stroke:")),T="";t.animate&&(T="edge-animation-fast"),t.animation&&(T="edge-animation-"+t.animation);let G=!1;if(t.look==="handDrawn"){let b=bt.svg(r);Object.assign([],f);let $=b.path(N,{roughness:.3,seed:l});_+=" transition",M=W($).select("path").attr("id",`${s}-${t.id}`).attr("class"," "+_+(t.classes?" "+t.classes:"")+(T?" "+T:"")).attr("style",O?O.reduce((S,C)=>S+";"+C,""):"");let v=M.attr("d");M.attr("d",v),r.node().appendChild(M.node())}else{let b=g.join(";"),$=O?O.reduce((z,A)=>z+A+";",""):"",v=(b?b+";"+$+";":$)+";"+(O?O.reduce((z,A)=>z+";"+A,""):"");M=r.append("path").attr("d",N).attr("id",`${s}-${t.id}`).attr("class"," "+_+(t.classes?" "+t.classes:"")+(T?" "+T:"")).attr("style",v),V=v.match(/stroke:([^;]+)/)?.[1],G=t.animate===!0||!!t.animation||b.includes("animation");let S=M.node(),C=typeof S.getTotalLength=="function"?S.getTotalLength():0,X=at[t.arrowTypeStart]||0,Y=at[t.arrowTypeEnd]||0;if(t.look==="neo"&&!G){let A=`stroke-dasharray: ${t.pattern==="dotted"||t.pattern==="dashed"?Pt(C,X,Y):`0 ${X} ${C-X-Y} ${Y}`}; stroke-dashoffset: 0;`;M.attr("style",A+M.attr("style"))}}M.attr("data-edge",!0),M.attr("data-et","edge"),M.attr("data-id",t.id),M.attr("data-points",y),M.attr("data-look",yt(t.look)),t.showPoints&&f.forEach(b=>{r.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",b.x).attr("cy",b.y)});let D="";(U().flowchart.arrowMarkerAbsolute||U().state.arrowMarkerAbsolute)&&(D=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,D=D.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),x.info("arrowTypeStart",t.arrowTypeStart),x.info("arrowTypeEnd",t.arrowTypeEnd);let $t=!G&&t?.look==="neo";Yt(M,t,D,s,e,$t,V);let Et=Math.floor(c.length/2),Ut=c[Et];H.isLabelCoordinateInPath(Ut,M.attr("d"))||(u=!0);let K={};return u&&(K.updatedPath=c),K.originalPath=t.points,K},"insertEdge");function St(r,t){if(r.length<2)return"";let a="",e=r.length,o=1e-5;for(let n=0;n<e;n++){let s=r[n],i=r[n-1],l=r[n+1];if(n===0)a+=`M${s.x},${s.y}`;else if(n===e-1)a+=`L${s.x},${s.y}`;else{let m=s.x-i.x,c=s.y-i.y,u=l.x-s.x,h=l.y-s.y,d=Math.hypot(m,c),g=Math.hypot(u,h);if(d<o||g<o){a+=`L${s.x},${s.y}`;continue}let y=m/d,f=c/d,w=u/g,k=h/g,B=y*w+f*k,J=Math.max(-1,Math.min(1,B)),P=Math.acos(J);if(P<o||Math.abs(Math.PI-P)<o){a+=`L${s.x},${s.y}`;continue}let _=Math.min(t/Math.sin(P/2),d/2,g/2),M=s.x-y*_,N=s.y-f*_,O=s.x+w*_,V=s.y+k*_;a+=`L${M},${N}`,a+=`Q${s.x},${s.y} ${O},${V}`}}return a}p(St,"generateRoundedPath");function et(r,t){if(!r||!t)return{angle:0,deltaX:0,deltaY:0};let a=t.x-r.x,e=t.y-r.y;return{angle:Math.atan2(e,a),deltaX:a,deltaY:e}}p(et,"calculateDeltaAndAngle");function Ot(r,t){let a=r.map(o=>({...o}));if(r.length>=2&&Q[t.arrowTypeStart]){let o=Q[t.arrowTypeStart],n=r[0],s=r[1],{angle:i}=et(n,s),l=o*Math.cos(i),m=o*Math.sin(i);a[0].x=n.x+l,a[0].y=n.y+m}let e=r.length;if(e>=2&&Q[t.arrowTypeEnd]){let o=Q[t.arrowTypeEnd],n=r[e-1],s=r[e-2],{angle:i}=et(s,n),l=o*Math.cos(i),m=o*Math.sin(i);a[e-1].x=n.x-l,a[e-1].y=n.y-m}return a}p(Ot,"applyMarkerOffsetsToPoints");var qt=p((r,t,a,e)=>{t.forEach(o=>{pr[o](r,a,e)})},"insertMarkers"),Qt=p((r,t,a)=>{x.trace("Making markers for ",a),r.append("defs").append("marker").attr("id",a+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,7 L18,13 V 1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),r.append("marker").attr("id",a+"_"+t+"-extensionStart-margin").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,7 18,13 18,1").style("stroke-width",2).style("stroke-dasharray","0"),r.append("defs").append("marker").attr("id",a+"_"+t+"-extensionEnd-margin").attr("class","marker extension "+t).attr("refX",9).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,1 10,13 18,7").style("stroke-width",2).style("stroke-dasharray","0")},"extension"),It=p((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionStart-margin").attr("class","marker composition "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("viewBox","0 0 15 15").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionEnd-margin").attr("class","marker composition "+t).attr("refX",3.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),Zt=p((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationStart-margin").attr("class","marker aggregation "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationEnd-margin").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),Nt=p((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyStart-margin").attr("class","marker dependency "+t).attr("refX",4).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyEnd-margin").attr("class","marker dependency "+t).attr("refX",16).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),Vt=p((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopStart-margin").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2),r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopEnd-margin").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2)},"lollipop"),Dt=p((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-pointEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",11.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10.5).attr("markerHeight",14).attr("orient","auto").append("path").attr("d","M 0 0 L 11.5 7 L 0 14 z").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-pointStart-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",1).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11.5).attr("markerHeight",14).attr("orient","auto").append("polygon").attr("points","0,7 11.5,14 11.5,0").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"point"),jt=p((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-circleEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refY",5).attr("refX",12.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-circleStart-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"circle"),Ft=p((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-crossEnd-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",17.7).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5),r.append("marker").attr("id",a+"_"+t+"-crossStart-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",-3.5).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5).style("stroke-dasharray","1,0")},"cross"),Jt=p((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),Gt=p((r,t,a)=>{let e=E(),{themeVariables:o}=e,{transitionColor:n}=o;r.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd-margin").attr("refX",17).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z").attr("fill",`${n}`)},"barbNeo"),Kt=p((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),tr=p((r,t,a)=>{let e=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");e.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),e.append("path").attr("d","M9,0 L9,18");let o=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");o.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),o.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),rr=p((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),ar=p((r,t,a)=>{let e=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");e.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),e.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");let o=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");o.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),o.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),er=p((r,t,a)=>{let e=E(),{themeVariables:o}=e,{strokeWidth:n}=o;r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M9,0 L9,18 M15,0 L15,18").attr("stroke-width",`${n}`),r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M3,0 L3,18 M9,0 L9,18").attr("stroke-width",`${n}`)},"only_one_neo"),nr=p((r,t,a)=>{let e=E(),{themeVariables:o}=e,{strokeWidth:n,mainBkg:s}=o,i=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse");i.append("circle").attr("fill",s??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${n}`).attr("r",6),i.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${n}`);let l=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("markerUnits","userSpaceOnUse").attr("orient","auto");l.append("circle").attr("fill",s??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${n}`).attr("r",6),l.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${n}`)},"zero_or_one_neo"),sr=p((r,t,a)=>{let e=E(),{themeVariables:o}=e,{strokeWidth:n}=o;r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width",`${n}`),r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width",`${n}`)},"one_or_more_neo"),or=p((r,t,a)=>{let e=E(),{themeVariables:o}=e,{strokeWidth:n,mainBkg:s}=o,i=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto");i.append("circle").attr("fill",s??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${n}`),i.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${n}`);let l=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse");l.append("circle").attr("fill",s??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${n}`),l.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${n}`)},"zero_or_more_neo"),ir=p((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
@@ -1,4 +1,4 @@
1
- import{a as P}from"./embed-page-chunk-KOCOGP7G.js";import{G as W,N as _,S as B,Z as Y,h as E,t as z}from"./embed-page-chunk-3MT44IAN.js";import{b as T}from"./embed-page-chunk-2BOYLGSX.js";import{a as h}from"./embed-page-chunk-444E5YR2.js";var b="",N="",A="",M=[],R=new Map,k=h(e=>W(e,Y()),"sanitizeText"),F=h(e=>{switch(e.type){case"terminal":return{...e,value:k(e.value)};case"nonterminal":return{...e,name:k(e.name)};case"sequence":return{...e,elements:e.elements.map(F)};case"choice":return{...e,alternatives:e.alternatives.map(F)};case"optional":return{...e,element:F(e.element)};case"repetition":return{...e,element:F(e.element),separator:e.separator?F(e.separator):void 0};case"special":return{...e,text:k(e.text)}}},"sanitizeAstNode"),U=h(()=>{b="",N="",A="",M.length=0,R.clear(),B(),T.debug("[Railroad] Database cleared")},"clear"),I=h(e=>{b=k(e),T.debug("[Railroad] Title set:",e)},"setTitle"),X=h(()=>b,"getTitle"),j=h(e=>{let i={...e,name:k(e.name),definition:F(e.definition),comment:e.comment?k(e.comment):void 0};T.debug("[Railroad] Adding rule:",i.name),R.has(i.name)&&T.warn(`[Railroad] Rule '${i.name}' is already defined. Overwriting.`),M.push(i),R.set(i.name,i)},"addRule"),K=h(()=>M,"getRules"),J=h(e=>R.get(e),"getRule"),Q=h(e=>{N=k(e).replace(/^\s+/g,""),T.debug("[Railroad] Accessibility title set:",e)},"setAccTitle"),Z=h(()=>N,"getAccTitle"),V=h(e=>{A=k(e).replace(/\n\s+/g,`
1
+ import{a as P}from"./embed-page-chunk-GA5A7NLC.js";import{G as W,N as _,S as B,Z as Y,h as E,t as z}from"./embed-page-chunk-FPA5BD6K.js";import{b as T}from"./embed-page-chunk-2BOYLGSX.js";import{a as h}from"./embed-page-chunk-444E5YR2.js";var b="",N="",A="",M=[],R=new Map,k=h(e=>W(e,Y()),"sanitizeText"),F=h(e=>{switch(e.type){case"terminal":return{...e,value:k(e.value)};case"nonterminal":return{...e,name:k(e.name)};case"sequence":return{...e,elements:e.elements.map(F)};case"choice":return{...e,alternatives:e.alternatives.map(F)};case"optional":return{...e,element:F(e.element)};case"repetition":return{...e,element:F(e.element),separator:e.separator?F(e.separator):void 0};case"special":return{...e,text:k(e.text)}}},"sanitizeAstNode"),U=h(()=>{b="",N="",A="",M.length=0,R.clear(),B(),T.debug("[Railroad] Database cleared")},"clear"),I=h(e=>{b=k(e),T.debug("[Railroad] Title set:",e)},"setTitle"),X=h(()=>b,"getTitle"),j=h(e=>{let i={...e,name:k(e.name),definition:F(e.definition),comment:e.comment?k(e.comment):void 0};T.debug("[Railroad] Adding rule:",i.name),R.has(i.name)&&T.warn(`[Railroad] Rule '${i.name}' is already defined. Overwriting.`),M.push(i),R.set(i.name,i)},"addRule"),K=h(()=>M,"getRules"),J=h(e=>R.get(e),"getRule"),Q=h(e=>{N=k(e).replace(/^\s+/g,""),T.debug("[Railroad] Accessibility title set:",e)},"setAccTitle"),Z=h(()=>N,"getAccTitle"),V=h(e=>{A=k(e).replace(/\n\s+/g,`
2
2
  `),T.debug("[Railroad] Accessibility description set:",e)},"setAccDescription"),ee=h(()=>A,"getAccDescription"),te=I,re=X,ie={clear:U,setTitle:I,getTitle:X,addRule:j,getRules:K,getRule:J,setAccTitle:Q,getAccTitle:Z,setAccDescription:V,getAccDescription:ee,setDiagramTitle:te,getDiagramTitle:re},g={compactMode:!1,padding:10,verticalSeparation:8,horizontalSeparation:10,arcRadius:10,fontSize:14,fontFamily:"monospace",terminalFill:"#FFFFC0",terminalStroke:"#000000",terminalTextColor:"#000000",nonTerminalFill:"#FFFFFF",nonTerminalStroke:"#000000",nonTerminalTextColor:"#000000",lineColor:"#000000",strokeWidth:2,markerFill:"#000000",commentFill:"#E8E8E8",commentStroke:"#888888",commentTextColor:"#666666",specialFill:"#F0E0FF",specialStroke:"#8800CC",ruleNameColor:"#000066",showMarkers:!0,markerRadius:5},ne=/^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$|^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch)\([\d\s%+,./-]+\)$|^[a-z]+$/i,ae=/^[\w "',.-]+$/,oe=new Set(["compactMode","padding","verticalSeparation","horizontalSeparation","arcRadius","fontSize","fontFamily","terminalFill","terminalStroke","terminalTextColor","nonTerminalFill","nonTerminalStroke","nonTerminalTextColor","lineColor","strokeWidth","markerFill","commentFill","commentStroke","commentTextColor","specialFill","specialStroke","ruleNameColor","showMarkers","markerRadius"]),H=h(e=>e?Object.keys(e).every(i=>i==="railroad"||oe.has(i)):!1,"isRailroadStyleOptions"),le=h(e=>e?"railroad"in e&&e.railroad?e.railroad:H(e)?e:{}:{},"extractRailroadOverrides"),se=h(e=>{if(!e||H(e))return{};let{railroad:i,svgId:a,theme:r,look:t,...n}=e;return n},"extractThemeOverrides"),m=h((e,i)=>{if(typeof e!="string")return i;let a=e.trim();return ne.test(a)?a:i},"sanitizeColorValue"),q=h((e,i)=>{if(typeof e!="string")return i;let a=e.trim();return ae.test(a)?a:i},"sanitizeFontFamilyValue"),S=h((e,i)=>{let a=typeof e=="number"?e:typeof e=="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(a)&&a>=0?a:i},"sanitizeNumberValue"),de=h(e=>{let i=typeof e=="number"?e:typeof e=="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(i)&&i>0?i:void 0},"parseThemeFontSize"),ce=h(e=>{let i=q(e.fontFamily,g.fontFamily),a=de(e.fontSize)??g.fontSize;return{...g,fontFamily:i,fontSize:a,terminalFill:m(e.secondBkg??e.secondaryColor,g.terminalFill),terminalStroke:m(e.secondaryBorderColor??e.lineColor,g.terminalStroke),terminalTextColor:m(e.secondaryTextColor??e.textColor,g.terminalTextColor),nonTerminalFill:m(e.mainBkg??e.background,g.nonTerminalFill),nonTerminalStroke:m(e.primaryBorderColor??e.lineColor,g.nonTerminalStroke),nonTerminalTextColor:m(e.primaryTextColor??e.textColor,g.nonTerminalTextColor),lineColor:m(e.lineColor,g.lineColor),markerFill:m(e.lineColor,g.markerFill),commentFill:m(e.labelBackground??e.tertiaryColor,g.commentFill),commentStroke:m(e.tertiaryBorderColor??e.lineColor,g.commentStroke),commentTextColor:m(e.tertiaryTextColor??e.textColor,g.commentTextColor),specialFill:m(e.tertiaryColor??e.secondaryColor,g.specialFill),specialStroke:m(e.tertiaryBorderColor??e.secondaryBorderColor,g.specialStroke),ruleNameColor:m(e.titleColor??e.textColor,g.ruleNameColor)}},"buildThemeDefaults"),O=h(e=>{let i=z(),a={...E(),...i.themeVariables??{},...se(e)},r=ce(a),t={...i.railroad??{},...le(e)};return{compactMode:t.compactMode??r.compactMode,padding:S(t.padding,r.padding),verticalSeparation:S(t.verticalSeparation,r.verticalSeparation),horizontalSeparation:S(t.horizontalSeparation,r.horizontalSeparation),arcRadius:S(t.arcRadius,r.arcRadius),fontSize:S(t.fontSize,r.fontSize),fontFamily:q(t.fontFamily,r.fontFamily),terminalFill:m(t.terminalFill,r.terminalFill),terminalStroke:m(t.terminalStroke,r.terminalStroke),terminalTextColor:m(t.terminalTextColor,r.terminalTextColor),nonTerminalFill:m(t.nonTerminalFill,r.nonTerminalFill),nonTerminalStroke:m(t.nonTerminalStroke,r.nonTerminalStroke),nonTerminalTextColor:m(t.nonTerminalTextColor,r.nonTerminalTextColor),lineColor:m(t.lineColor,r.lineColor),strokeWidth:S(t.strokeWidth,r.strokeWidth),markerFill:m(t.markerFill,r.markerFill),commentFill:m(t.commentFill,r.commentFill),commentStroke:m(t.commentStroke,r.commentStroke),commentTextColor:m(t.commentTextColor,r.commentTextColor),specialFill:m(t.specialFill,r.specialFill),specialStroke:m(t.specialStroke,r.specialStroke),ruleNameColor:m(t.ruleNameColor,r.ruleNameColor),showMarkers:t.showMarkers??r.showMarkers,markerRadius:S(t.markerRadius,r.markerRadius)}},"buildRailroadStyleOptions"),Te=h(e=>{let{fontFamily:i,fontSize:a,terminalFill:r,terminalStroke:t,terminalTextColor:n,nonTerminalFill:p,nonTerminalStroke:s,nonTerminalTextColor:o,lineColor:u,strokeWidth:c,markerFill:d,commentFill:w,commentStroke:l,commentTextColor:f,specialFill:y,specialStroke:v,ruleNameColor:C}=O(e);return`
3
3
  .railroad-diagram {
4
4
  font-family: ${i};
@@ -1 +1 @@
1
- import{c as P,o as V}from"./embed-page-chunk-BL44I3VR.js";import{l as _}from"./embed-page-chunk-PNJ7DZ5V.js";import{a as j}from"./embed-page-chunk-L2PNY33P.js";import{Ja as G}from"./embed-page-chunk-7TINC3YA.js";import{Ga as q,Ka as y,Pa as C,Ta as U,fa as R,fb as O,ha as M,ib as L}from"./embed-page-chunk-TWJOR2LG.js";import{a as D}from"./embed-page-chunk-MPQBYKDM.js";import{e as w}from"./embed-page-chunk-45A47GH2.js";var d=w(D());function W(f){let k=V("__GLOBAL__"),[b,a]=(0,d.useState)(!1),[x,m]=(0,d.useState)(null),S=(0,d.useCallback)(()=>{f?.onUnauthorized?f.onUnauthorized():window.dispatchEvent(new CustomEvent("lattice:unauthorized"))},[f?.onUnauthorized]),s=(0,d.useCallback)(async(i,l,n,u)=>{a(!0),m(null);try{return await k.request(l,{method:i,body:n,headers:u?.headers})}catch(v){throw v instanceof P&&S(),m(v),v}finally{a(!1)}},[k,S]),z=(0,d.useCallback)((i,l)=>s("GET",i,void 0,l),[s]),I=(0,d.useCallback)((i,l,n)=>s("POST",i,l,n),[s]),r=(0,d.useCallback)((i,l,n)=>s("PUT",i,l,n),[s]),t=(0,d.useCallback)((i,l)=>s("DELETE",i,void 0,l),[s]);return{get:z,post:I,put:r,del:t,isLoading:b,error:x}}var T=w(D());var e=w(j()),{TextArea:$}=C,{Text:h}=L,J=({open:f,onCancel:k,onSuccess:b,skill:a})=>{let{message:x}=M.useApp(),[m]=y.useForm(),[S,s]=(0,T.useState)(!1),{post:z,put:I}=W(),{token:r}=O.useToken(),t=_(),i=!!a,l=[{key:"category",value:"global"}],[n,u]=(0,T.useState)(l);(0,T.useEffect)(()=>{f&&a?(m.setFieldsValue({name:a.name,description:a.description,license:a.license||"",compatibility:a.compatibility||"",content:a.content||""}),a.metadata?u(Object.entries(a.metadata).map(([o,c])=>({key:o,value:c}))):u(l)):f&&!a&&(m.resetFields(),u(l))},[f,a]);let v=async()=>{try{let o=await m.validateFields();s(!0);let c=n.length>0?n.reduce((B,F)=>(F.key&&(B[F.key]=F.value),B),{}):void 0,p={id:o.name,name:o.name,description:o.description,license:o.license||void 0,compatibility:o.compatibility||void 0,metadata:c,content:o.content||void 0,subSkills:void 0},g;i?g=await I(`/api/skills/${a.id}`,p):g=await z("/api/skills",p),g.success?(x.success(t(i?"chatConfig.skill.updated":"chatConfig.skill.created")),m.resetFields(),u(l),b?.(),k()):x.error(g.message||t(i?"chatConfig.skill.updateFailed":"chatConfig.skill.createFailed"))}catch(o){if(o.errorFields)return;x.error(o.message||t(i?"chatConfig.skill.updateError":"chatConfig.skill.createError"))}finally{s(!1)}},A=()=>{m.resetFields(),u(l),k()},E=(o,c,p)=>{let g=[...n];g[o]={...g[o],[c]:p},u(g)},H=()=>{u([...n,{key:"",value:""}])};return(0,e.jsx)(U,{title:t(i?"chatConfig.skill.edit.title":"chatConfig.skill.create.title"),open:f,onCancel:A,footer:null,width:520,destroyOnClose:!0,styles:{body:{padding:16}},children:(0,e.jsx)(y,{form:m,layout:"vertical",onFinish:v,autoComplete:"off",children:(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:12},children:[(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[(0,e.jsx)(h,{style:{fontSize:12,color:r.colorTextSecondary},children:t("chatConfig.skill.field.name")}),(0,e.jsx)(y.Item,{name:"name",rules:[{required:!0,message:t("chatConfig.skill.validation.nameRequired")},{pattern:/^[a-z0-9]+(-[a-z0-9]+)*$/,message:t("chatConfig.skill.validation.namePattern")},{min:1,max:64,message:t("chatConfig.skill.validation.nameLength")}],style:{marginBottom:0},children:(0,e.jsx)(C,{placeholder:"e.g., data-analysis",disabled:i})})]}),(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[(0,e.jsx)(h,{style:{fontSize:12,color:r.colorTextSecondary},children:t("chatConfig.skill.field.description")}),(0,e.jsx)(y.Item,{name:"description",rules:[{required:!0,message:t("chatConfig.skill.validation.descriptionRequired")}],style:{marginBottom:0},children:(0,e.jsx)($,{placeholder:t("chatConfig.skill.placeholder.description"),autoSize:{minRows:2,maxRows:4}})})]}),(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[(0,e.jsx)(h,{style:{fontSize:12,color:r.colorTextSecondary},children:t("chatConfig.skill.field.license")}),(0,e.jsx)(y.Item,{name:"license",style:{marginBottom:0},children:(0,e.jsx)(C,{placeholder:t("chatConfig.skill.placeholder.license")})})]}),(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[(0,e.jsx)(h,{style:{fontSize:12,color:r.colorTextSecondary},children:t("chatConfig.skill.field.compatibility")}),(0,e.jsx)(y.Item,{name:"compatibility",style:{marginBottom:0},children:(0,e.jsx)(C,{placeholder:t("chatConfig.skill.placeholder.compatibility")})})]}),(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[(0,e.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8},children:[(0,e.jsx)(h,{style:{fontSize:12,color:r.colorTextSecondary,fontWeight:500},children:t("chatConfig.skill.field.metadata")}),(0,e.jsx)(R,{size:"small",icon:(0,e.jsx)(G,{}),onClick:H,children:t("chatConfig.skill.metadata.add")})]}),(0,e.jsxs)(q,{direction:"vertical",size:8,style:{width:"100%"},children:[n.length===0&&(0,e.jsx)(h,{style:{fontSize:11,color:r.colorTextTertiary},children:t("chatConfig.skill.metadata.empty")}),n.map((o,c)=>(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:4,width:"100%"},children:[(0,e.jsx)(h,{style:{fontSize:11,color:r.colorTextSecondary},children:t("chatConfig.skill.metadata.row",{index:c+1})}),(0,e.jsxs)(q,{style:{width:"100%"},size:8,wrap:!0,children:[(0,e.jsx)(C,{value:o.key,placeholder:t("chatConfig.keyValue.key"),style:{width:140},onChange:p=>E(c,"key",p.target.value)}),(0,e.jsx)(C,{value:o.value,placeholder:t("chatConfig.keyValue.value"),style:{flex:1,minWidth:200},onChange:p=>E(c,"value",p.target.value)})]})]},c))]})]}),(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[(0,e.jsx)(h,{style:{fontSize:12,color:r.colorTextSecondary},children:t("chatConfig.skill.field.content")}),(0,e.jsx)(y.Item,{name:"content",style:{marginBottom:0},children:(0,e.jsx)($,{placeholder:t("chatConfig.skill.placeholder.content"),autoSize:{minRows:4,maxRows:8}})})]}),(0,e.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:8,marginTop:8},children:[(0,e.jsx)(R,{onClick:A,children:t("common.cancel")}),(0,e.jsx)(R,{type:"primary",htmlType:"submit",loading:S,children:t(i?"chatConfig.skill.action.save":"chatConfig.skill.action.create")})]})]})})})},oe=J;export{W as a,oe as b};
1
+ import{c as P,o as V}from"./embed-page-chunk-U3XF7MHJ.js";import{l as _}from"./embed-page-chunk-PNJ7DZ5V.js";import{a as j}from"./embed-page-chunk-L2PNY33P.js";import{Ja as G}from"./embed-page-chunk-7TINC3YA.js";import{Ga as q,Ka as y,Pa as C,Ta as U,fa as R,fb as O,ha as M,ib as L}from"./embed-page-chunk-TWJOR2LG.js";import{a as D}from"./embed-page-chunk-MPQBYKDM.js";import{e as w}from"./embed-page-chunk-45A47GH2.js";var d=w(D());function W(f){let k=V("__GLOBAL__"),[b,a]=(0,d.useState)(!1),[x,m]=(0,d.useState)(null),S=(0,d.useCallback)(()=>{f?.onUnauthorized?f.onUnauthorized():window.dispatchEvent(new CustomEvent("lattice:unauthorized"))},[f?.onUnauthorized]),s=(0,d.useCallback)(async(i,l,n,u)=>{a(!0),m(null);try{return await k.request(l,{method:i,body:n,headers:u?.headers})}catch(v){throw v instanceof P&&S(),m(v),v}finally{a(!1)}},[k,S]),z=(0,d.useCallback)((i,l)=>s("GET",i,void 0,l),[s]),I=(0,d.useCallback)((i,l,n)=>s("POST",i,l,n),[s]),r=(0,d.useCallback)((i,l,n)=>s("PUT",i,l,n),[s]),t=(0,d.useCallback)((i,l)=>s("DELETE",i,void 0,l),[s]);return{get:z,post:I,put:r,del:t,isLoading:b,error:x}}var T=w(D());var e=w(j()),{TextArea:$}=C,{Text:h}=L,J=({open:f,onCancel:k,onSuccess:b,skill:a})=>{let{message:x}=M.useApp(),[m]=y.useForm(),[S,s]=(0,T.useState)(!1),{post:z,put:I}=W(),{token:r}=O.useToken(),t=_(),i=!!a,l=[{key:"category",value:"global"}],[n,u]=(0,T.useState)(l);(0,T.useEffect)(()=>{f&&a?(m.setFieldsValue({name:a.name,description:a.description,license:a.license||"",compatibility:a.compatibility||"",content:a.content||""}),a.metadata?u(Object.entries(a.metadata).map(([o,c])=>({key:o,value:c}))):u(l)):f&&!a&&(m.resetFields(),u(l))},[f,a]);let v=async()=>{try{let o=await m.validateFields();s(!0);let c=n.length>0?n.reduce((B,F)=>(F.key&&(B[F.key]=F.value),B),{}):void 0,p={id:o.name,name:o.name,description:o.description,license:o.license||void 0,compatibility:o.compatibility||void 0,metadata:c,content:o.content||void 0,subSkills:void 0},g;i?g=await I(`/api/skills/${a.id}`,p):g=await z("/api/skills",p),g.success?(x.success(t(i?"chatConfig.skill.updated":"chatConfig.skill.created")),m.resetFields(),u(l),b?.(),k()):x.error(g.message||t(i?"chatConfig.skill.updateFailed":"chatConfig.skill.createFailed"))}catch(o){if(o.errorFields)return;x.error(o.message||t(i?"chatConfig.skill.updateError":"chatConfig.skill.createError"))}finally{s(!1)}},A=()=>{m.resetFields(),u(l),k()},E=(o,c,p)=>{let g=[...n];g[o]={...g[o],[c]:p},u(g)},H=()=>{u([...n,{key:"",value:""}])};return(0,e.jsx)(U,{title:t(i?"chatConfig.skill.edit.title":"chatConfig.skill.create.title"),open:f,onCancel:A,footer:null,width:520,destroyOnClose:!0,styles:{body:{padding:16}},children:(0,e.jsx)(y,{form:m,layout:"vertical",onFinish:v,autoComplete:"off",children:(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:12},children:[(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[(0,e.jsx)(h,{style:{fontSize:12,color:r.colorTextSecondary},children:t("chatConfig.skill.field.name")}),(0,e.jsx)(y.Item,{name:"name",rules:[{required:!0,message:t("chatConfig.skill.validation.nameRequired")},{pattern:/^[a-z0-9]+(-[a-z0-9]+)*$/,message:t("chatConfig.skill.validation.namePattern")},{min:1,max:64,message:t("chatConfig.skill.validation.nameLength")}],style:{marginBottom:0},children:(0,e.jsx)(C,{placeholder:"e.g., data-analysis",disabled:i})})]}),(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[(0,e.jsx)(h,{style:{fontSize:12,color:r.colorTextSecondary},children:t("chatConfig.skill.field.description")}),(0,e.jsx)(y.Item,{name:"description",rules:[{required:!0,message:t("chatConfig.skill.validation.descriptionRequired")}],style:{marginBottom:0},children:(0,e.jsx)($,{placeholder:t("chatConfig.skill.placeholder.description"),autoSize:{minRows:2,maxRows:4}})})]}),(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[(0,e.jsx)(h,{style:{fontSize:12,color:r.colorTextSecondary},children:t("chatConfig.skill.field.license")}),(0,e.jsx)(y.Item,{name:"license",style:{marginBottom:0},children:(0,e.jsx)(C,{placeholder:t("chatConfig.skill.placeholder.license")})})]}),(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[(0,e.jsx)(h,{style:{fontSize:12,color:r.colorTextSecondary},children:t("chatConfig.skill.field.compatibility")}),(0,e.jsx)(y.Item,{name:"compatibility",style:{marginBottom:0},children:(0,e.jsx)(C,{placeholder:t("chatConfig.skill.placeholder.compatibility")})})]}),(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[(0,e.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8},children:[(0,e.jsx)(h,{style:{fontSize:12,color:r.colorTextSecondary,fontWeight:500},children:t("chatConfig.skill.field.metadata")}),(0,e.jsx)(R,{size:"small",icon:(0,e.jsx)(G,{}),onClick:H,children:t("chatConfig.skill.metadata.add")})]}),(0,e.jsxs)(q,{direction:"vertical",size:8,style:{width:"100%"},children:[n.length===0&&(0,e.jsx)(h,{style:{fontSize:11,color:r.colorTextTertiary},children:t("chatConfig.skill.metadata.empty")}),n.map((o,c)=>(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:4,width:"100%"},children:[(0,e.jsx)(h,{style:{fontSize:11,color:r.colorTextSecondary},children:t("chatConfig.skill.metadata.row",{index:c+1})}),(0,e.jsxs)(q,{style:{width:"100%"},size:8,wrap:!0,children:[(0,e.jsx)(C,{value:o.key,placeholder:t("chatConfig.keyValue.key"),style:{width:140},onChange:p=>E(c,"key",p.target.value)}),(0,e.jsx)(C,{value:o.value,placeholder:t("chatConfig.keyValue.value"),style:{flex:1,minWidth:200},onChange:p=>E(c,"value",p.target.value)})]})]},c))]})]}),(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[(0,e.jsx)(h,{style:{fontSize:12,color:r.colorTextSecondary},children:t("chatConfig.skill.field.content")}),(0,e.jsx)(y.Item,{name:"content",style:{marginBottom:0},children:(0,e.jsx)($,{placeholder:t("chatConfig.skill.placeholder.content"),autoSize:{minRows:4,maxRows:8}})})]}),(0,e.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:8,marginTop:8},children:[(0,e.jsx)(R,{onClick:A,children:t("common.cancel")}),(0,e.jsx)(R,{type:"primary",htmlType:"submit",loading:S,children:t(i?"chatConfig.skill.action.save":"chatConfig.skill.action.create")})]})]})})})},oe=J;export{W as a,oe as b};