@av-pi-studio/web-client 0.0.80 → 0.0.82

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 (92) hide show
  1. package/dist/web/assets/{BinaryFallbackViewer-Ciqrig3T.js → BinaryFallbackViewer-BhBojgYd.js} +1 -1
  2. package/dist/web/assets/{ChatPanel-D2Bkm6Wd.js → ChatPanel-B2VO6E82.js} +2 -2
  3. package/dist/web/assets/CodeView-D91mREsp.js +1 -0
  4. package/dist/web/assets/{DiffView-T-iuJ8Yk.js → DiffView-CRrnffpG.js} +1 -1
  5. package/dist/web/assets/{FilePanel-DtQ3WVct.js → FilePanel-CIFuH4f_.js} +1 -1
  6. package/dist/web/assets/{ImageViewer-mRoOMDBw.js → ImageViewer-BcpC-9HE.js} +1 -1
  7. package/dist/web/assets/{MarkdownFileViewer-sanw8Q5h.js → MarkdownFileViewer-BDzrwPiB.js} +1 -1
  8. package/dist/web/assets/{MoleculeViewerPanel-DViBR60h.js → MoleculeViewerPanel-aCElW220.js} +1 -1
  9. package/dist/web/assets/{TerminalPanel-DD4qlRmT.js → TerminalPanel-B95G8KXL.js} +1 -1
  10. package/dist/web/assets/{TextViewer-Bw7SfPxe.js → TextViewer-C1zYu_5r.js} +1 -1
  11. package/dist/web/assets/{VideoViewer-JenKBw6O.js → VideoViewer-BZMclaqR.js} +1 -1
  12. package/dist/web/assets/abnfDiagram-N423BO3Z-C6HkBcEq.js +1 -0
  13. package/dist/web/assets/arc-IiyVx_qI.js +1 -0
  14. package/dist/web/assets/architectureDiagram-T3A2C74G-CYIM1z-g.js +36 -0
  15. package/dist/web/assets/blockDiagram-VBNYF7ZC-YPcAvcMb.js +132 -0
  16. package/dist/web/assets/c4Diagram-5PPSVZJV-DqDoye-L.js +10 -0
  17. package/dist/web/assets/channel-C_AW0H08.js +1 -0
  18. package/dist/web/assets/chunk-2GRJ4B5K-Cop7pTQw.js +1 -0
  19. package/dist/web/assets/chunk-2Q5K7J3B-Ac8_uEHb.js +1 -0
  20. package/dist/web/assets/chunk-5RXB4S5H-BM-eu37i.js +231 -0
  21. package/dist/web/assets/chunk-5VM5RSS4-DJtnYoNy.js +15 -0
  22. package/dist/web/assets/chunk-6Q2QTUOP-BYIYubMk.js +88 -0
  23. package/dist/web/assets/chunk-GF5L2VYU-CfAs4Mvp.js +206 -0
  24. package/dist/web/assets/chunk-JWPE2WC7-B4PZpRuq.js +1 -0
  25. package/dist/web/assets/chunk-KBJHAD2P-B5C5n9l8.js +1 -0
  26. package/dist/web/assets/chunk-RYQCIY6F-CazvmEAg.js +1 -0
  27. package/dist/web/assets/chunk-XXDRQBXY-CPzJFrpL.js +1 -0
  28. package/dist/web/assets/classDiagram-JCYQIIEL-cs4QmU1Z.js +1 -0
  29. package/dist/web/assets/classDiagram-v2-OCEON4UE-cs4QmU1Z.js +1 -0
  30. package/dist/web/assets/cose-bilkent-JH36ORCC-k7zF9G_V.js +1 -0
  31. package/dist/web/assets/cynefin-VYW2F7L2-kO1G0JNx.js +178 -0
  32. package/dist/web/assets/cynefinDiagram-MW4NZA55-Br6Pehe8.js +62 -0
  33. package/dist/web/assets/cytoscape.esm-BjAbmLdb.js +331 -0
  34. package/dist/web/assets/dagre-VZM6K2ZE-hhOjIDFV.js +4 -0
  35. package/dist/web/assets/defaultLocale-DX6XiGOO.js +1 -0
  36. package/dist/web/assets/diagram-7IWD3JNH-CT0_cl76.js +30 -0
  37. package/dist/web/assets/diagram-B4RE2ZJO-Cg2nPF5t.js +3 -0
  38. package/dist/web/assets/diagram-LBJQPF4R-CXTRoDCu.js +24 -0
  39. package/dist/web/assets/diagram-Q27KOJAE-CwiVIKjR.js +24 -0
  40. package/dist/web/assets/diagram-UB23O5K3-qSYfXBYQ.js +41 -0
  41. package/dist/web/assets/ebnfDiagram-BXEA7PRR-Vop3xM4L.js +1 -0
  42. package/dist/web/assets/erDiagram-JOGREHBK-RM6hSByi.js +85 -0
  43. package/dist/web/assets/flowDiagram-UKHOOZJN-BSKFt7t6.js +156 -0
  44. package/dist/web/assets/ganttDiagram-PKOTCBZU-DrqYFg5A.js +292 -0
  45. package/dist/web/assets/gitGraphDiagram-DS77QQ5N-hcaeYucr.js +106 -0
  46. package/dist/web/assets/graph-DeCteHfw.js +1 -0
  47. package/dist/web/assets/index-C-gDLAhS.js +19 -0
  48. package/dist/web/assets/index-DNsKUhP1.css +1 -0
  49. package/dist/web/assets/infoDiagram-6WML65LV-bld-35iu.js +2 -0
  50. package/dist/web/assets/init-Gi6I4Gst.js +1 -0
  51. package/dist/web/assets/ishikawaDiagram-WSZJBQD7-JF1ywaiO.js +70 -0
  52. package/dist/web/assets/journeyDiagram-NVQOT4AX-7Dyz0KO8.js +139 -0
  53. package/dist/web/assets/kanban-definition-27J2QSJJ-BCe3jXau.js +89 -0
  54. package/dist/web/assets/katex-C5jXJg4s.js +257 -0
  55. package/dist/web/assets/layout-DfNZ6M8-.js +1 -0
  56. package/dist/web/assets/linear-B0jaW5hA.js +1 -0
  57. package/dist/web/assets/markdown-B-dnhity.js +5 -0
  58. package/dist/web/assets/mermaid.core-BEntOW_N.js +314 -0
  59. package/dist/web/assets/mindmap-definition-FAOFIHXS-DduU1MmZ.js +96 -0
  60. package/dist/web/assets/ordinal-B9c66tb1.js +1 -0
  61. package/dist/web/assets/pegDiagram-VL7TDLO6-CFwGl9tu.js +1 -0
  62. package/dist/web/assets/pieDiagram-7S7Q4E2Y-BxWGQVnp.js +39 -0
  63. package/dist/web/assets/quadrantDiagram-CIZ2JOQS-SfrJdJAW.js +7 -0
  64. package/dist/web/assets/railroadDiagram-AXF67PYL-D5lmlh0U.js +1 -0
  65. package/dist/web/assets/requirementDiagram-LRYGKXZP-DeoQYTPf.js +84 -0
  66. package/dist/web/assets/sankeyDiagram-W5VNT64P-DP7Qbo5Z.js +40 -0
  67. package/dist/web/assets/sequenceDiagram-SI44F4Z6-D8fP12gy.js +162 -0
  68. package/dist/web/assets/sizeCapture-X5ZJPWSS-7cP_oZfG.js +1 -0
  69. package/dist/web/assets/stateDiagram-OKZ733FA-B1ZcscLg.js +1 -0
  70. package/dist/web/assets/stateDiagram-v2-UEYNNEHI-CbC8RsB4.js +1 -0
  71. package/dist/web/assets/swimlanes-SLNWSIFB-DOaGnSGR.js +2 -0
  72. package/dist/web/assets/swimlanesDiagram-ULZ7WXOC-DkBnDEEj.js +8 -0
  73. package/dist/web/assets/timeline-definition-Z64GVDOM-BvLI2jjl.js +120 -0
  74. package/dist/web/assets/{use-file-download-CDLL7FOS.js → use-file-download-DaCAhjAL.js} +1 -1
  75. package/dist/web/assets/{use-file-watch-xtDY-sV8.js → use-file-watch-a91DX08b.js} +1 -1
  76. package/dist/web/assets/vendor-DVp0ZLQo.js +82 -0
  77. package/dist/web/assets/{vendor-highlight-Bp4AESDQ.js → vendor-highlight-BjiGXuEM.js} +1 -1
  78. package/dist/web/assets/{vendor-icons-C8b9N6AX.js → vendor-icons-CQPWxe0u.js} +53 -58
  79. package/dist/web/assets/{vendor-markdown-B1tcb-dp.js → vendor-markdown-Bc_dOmsB.js} +1 -1
  80. package/dist/web/assets/{vendor-overlays-DWX2bju9.js → vendor-overlays-BfyojyuH.js} +1 -1
  81. package/dist/web/assets/{vendor-query-DhxQd-Xj.js → vendor-query-i7fr__Xm.js} +1 -1
  82. package/dist/web/assets/vennDiagram-T6HMQDX7-DArxlf6M.js +34 -0
  83. package/dist/web/assets/wardleyDiagram-T6FBY63Y-BC8iMU8l.js +78 -0
  84. package/dist/web/assets/xychartDiagram-ELKLHX3M-IFP_sgiY.js +7 -0
  85. package/dist/web/index.html +6 -6
  86. package/package.json +12 -12
  87. package/dist/.tsbuildinfo +0 -1
  88. package/dist/web/assets/CodeView-BU0HnkdV.js +0 -1
  89. package/dist/web/assets/index-BFBJrHUp.js +0 -17
  90. package/dist/web/assets/index-CLKr9fTl.css +0 -1
  91. package/dist/web/assets/markdown-ZxxqwjfA.js +0 -5
  92. package/dist/web/assets/vendor-CKGvrx4M.js +0 -3644
@@ -0,0 +1,78 @@
1
+ import{p as zt}from"./chunk-JWPE2WC7-B4PZpRuq.js";import{s as Lt,g as Tt,p as At,o as Xt,a as Et,b as Yt,_ as y,W as It,z as Bt,B as Q,l as et,F as Ft,e as Rt,q as Ot,c as V}from"./mermaid.core-BEntOW_N.js";import{p as Wt}from"./cynefin-VYW2F7L2-kO1G0JNx.js";import"./vendor-DVp0ZLQo.js";import"./vendor-react-DQUAl2K8.js";var G=y((a,o)=>{const e=a<=1?a*100:a;if(e<0||e>100)throw new Error(`${o} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${a}`);return e},"toPercent"),E=y((a,o,e)=>({x:G(o,`${e} evolution`),y:G(a,`${e} visibility`)}),"toCoordinates"),tt=y(a=>{if(a){if(a==="+<>")return"bidirectional";if(a==="+<")return"backward";if(a==="+>")return"forward"}},"getFlowFromPort"),Dt=y(a=>{if(!(a!=null&&a.startsWith("+")))return{};const o=/^\+'([^']*)'/.exec(a),e=o==null?void 0:o[1];return a.includes("<>")?{flow:"bidirectional",label:e}:a.includes("<")?{flow:"backward",label:e}:a.includes(">")?{flow:"forward",label:e}:{label:e}},"extractFlowFromArrow"),Gt=y((a,o)=>{if(zt(a,o),a.size&&o.setSize(a.size.width,a.size.height),a.evolution){const e=a.evolution.stages.map(r=>r.secondName?`${r.name.trim()} / ${r.secondName.trim()}`:r.name.trim()),p=a.evolution.stages.filter(r=>r.boundary!==void 0).map(r=>r.boundary);o.updateAxes({stages:e,stageBoundaries:p})}if(a.anchors.forEach(e=>{const p=E(e.visibility,e.evolution,`Anchor "${e.name}"`);o.addNode(e.name,e.name,p.x,p.y,"anchor")}),a.components.forEach(e=>{var v;const p=E(e.visibility,e.evolution,`Component "${e.name}"`),r=e.label?(e.label.negX?-1:1)*e.label.offsetX:void 0,d=e.label?(e.label.negY?-1:1)*e.label.offsetY:void 0,m=(v=e.decorator)==null?void 0:v.strategy;o.addNode(e.name,e.name,p.x,p.y,"component",r,d,e.inertia,m)}),a.notes.forEach(e=>{const p=E(e.visibility,e.evolution,`Note "${e.text}"`);o.addNote(e.text,p.x,p.y)}),a.pipelines.forEach(e=>{const p=o.getNode(e.parent);if(!p||typeof p.y!="number")throw new Error(`Pipeline "${e.parent}" must reference an existing component with coordinates.`);const r=p.y;o.startPipeline(e.parent),e.components.forEach(d=>{const m=`${e.parent}_${d.name}`,v=d.label?(d.label.negX?-1:1)*d.label.offsetX:void 0,g=d.label?(d.label.negY?-1:1)*d.label.offsetY:void 0,L=G(d.evolution,`Pipeline component "${d.name}" evolution`);o.addNode(m,d.name,L,r,"pipeline-component",v,g),o.addPipelineComponent(e.parent,m)})}),a.links.forEach(e=>{const p=!!e.arrow&&(e.arrow.includes("-.->")||e.arrow.includes(".-."));let r=tt(e.fromPort)??tt(e.toPort);const{flow:d,label:m}=Dt(e.arrow);!r&&d&&(r=d);const v=e.linkLabel,g=m??v;o.addLink(o.resolveNodeId(e.from),o.resolveNodeId(e.to),p,g,r)}),a.evolves.forEach(e=>{const p=o.getNode(e.component);if((p==null?void 0:p.y)!==void 0){const r=G(e.target,`Evolve target for "${e.component}"`);o.addTrend(e.component,r,p.y)}}),a.annotations.length>0){const e=a.annotations[0],p=E(e.x,e.y,"Annotations box");o.setAnnotationsBox(p.x,p.y)}a.annotation.forEach(e=>{const p=E(e.x,e.y,`Annotation ${e.number}`);o.addAnnotation(e.number,[{x:p.x,y:p.y}],e.text)}),a.accelerators.forEach(e=>{const p=E(e.x,e.y,`Accelerator "${e.name}"`);o.addAccelerator(e.name,p.x,p.y)}),a.deaccelerators.forEach(e=>{const p=E(e.x,e.y,`Deaccelerator "${e.name}"`);o.addDeaccelerator(e.name,p.x,p.y)})},"populateDb"),at={parser:{yy:void 0},parse:y(async a=>{var p;const o=await Wt("wardley",a);et.debug(o);const e=(p=at.parser)==null?void 0:p.yy;if(!e||typeof e.addNode!="function")throw new Error("parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Gt(o,e)},"parse")},I,qt=(I=class{constructor(){this.nodes=new Map,this.links=[],this.trends=new Map,this.pipelines=new Map,this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.axes={}}addNode(o){const e=this.nodes.get(o.id)??{id:o.id,label:o.label},p={...e,...o,className:o.className??e.className,labelOffsetX:o.labelOffsetX??e.labelOffsetX,labelOffsetY:o.labelOffsetY??e.labelOffsetY};this.nodes.set(o.id,p)}addLink(o){this.links.push(o)}addTrend(o){this.trends.set(o.nodeId,o)}startPipeline(o){this.pipelines.set(o,{nodeId:o,componentIds:[]});const e=this.nodes.get(o);e&&(e.isPipelineParent=!0)}addPipelineComponent(o,e){const p=this.pipelines.get(o);p&&p.componentIds.push(e);const r=this.nodes.get(e);r&&(r.inPipeline=!0)}addAnnotation(o){this.annotations.push(o)}addNote(o){this.notes.push(o)}addAccelerator(o){this.accelerators.push(o)}addDeaccelerator(o){this.deaccelerators.push(o)}setAnnotationsBox(o,e){this.annotationsBox={x:o,y:e}}setAxes(o){this.axes={...this.axes,...o}}setSize(o,e){this.size={width:o,height:e}}getNode(o){return this.nodes.get(o)}resolveNodeId(o){if(this.nodes.has(o))return o;for(const[e,p]of this.nodes)if(p.label===o)return e;return o}build(){const o=[];for(const e of this.nodes.values()){if(typeof e.x!="number"||typeof e.y!="number")throw new Error(`Node "${e.label}" is missing coordinates`);o.push(e)}return{nodes:o,links:[...this.links],trends:[...this.trends.values()],pipelines:[...this.pipelines.values()],annotations:[...this.annotations],notes:[...this.notes],accelerators:[...this.accelerators],deaccelerators:[...this.deaccelerators],annotationsBox:this.annotationsBox,axes:{...this.axes},size:this.size}}clear(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}},y(I,"WardleyBuilder"),I),b=new qt;function rt(){return V()["wardley-beta"]}y(rt,"getConfig");function ot(a,o,e,p,r,d,m,v,g){b.addNode({id:a,label:o,x:e,y:p,className:r,labelOffsetX:d,labelOffsetY:m,inertia:v,sourceStrategy:g})}y(ot,"addNode");function st(a,o,e=!1,p,r){b.addLink({source:a,target:o,dashed:e,label:p,flow:r})}y(st,"addLink");function nt(a,o,e){b.addTrend({nodeId:a,targetX:o,targetY:e})}y(nt,"addTrend");function it(a,o,e){b.addAnnotation({number:a,coordinates:o,text:e})}y(it,"addAnnotation");function dt(a,o,e){b.addNote({text:a,x:o,y:e})}y(dt,"addNote");function lt(a,o,e){b.addAccelerator({name:a,x:o,y:e})}y(lt,"addAccelerator");function ct(a,o,e){b.addDeaccelerator({name:a,x:o,y:e})}y(ct,"addDeaccelerator");function pt(a,o){b.setAnnotationsBox(a,o)}y(pt,"setAnnotationsBox");function ht(a,o){b.setSize(a,o)}y(ht,"setSize");function xt(a){b.startPipeline(a)}y(xt,"startPipeline");function ft(a,o){b.addPipelineComponent(a,o)}y(ft,"addPipelineComponent");function gt(a){b.setAxes(a)}y(gt,"updateAxes");function ut(a){return b.getNode(a)}y(ut,"getNode");function yt(a){return b.resolveNodeId(a)}y(yt,"resolveNodeId");function mt(){return b.build()}y(mt,"getWardleyData");function wt(){b.clear(),Ot()}y(wt,"clear");var Ht={getConfig:rt,addNode:ot,addLink:st,addTrend:nt,addAnnotation:it,addNote:dt,addAccelerator:lt,addDeaccelerator:ct,setAnnotationsBox:pt,setSize:ht,startPipeline:xt,addPipelineComponent:ft,updateAxes:gt,getNode:ut,resolveNodeId:yt,getWardleyData:mt,clear:wt,setAccTitle:Yt,getAccTitle:Et,setDiagramTitle:Xt,getDiagramTitle:At,getAccDescription:Tt,setAccDescription:Lt},jt=["Genesis","Custom Built","Product","Commodity"],Vt=y(()=>{var o,e,p,r,d,m,v,g,L,M,k,N;const{themeVariables:a}=V();return{backgroundColor:((o=a.wardley)==null?void 0:o.backgroundColor)??a.background??"#fff",axisColor:((e=a.wardley)==null?void 0:e.axisColor)??"#000",axisTextColor:((p=a.wardley)==null?void 0:p.axisTextColor)??a.primaryTextColor??"#222",gridColor:((r=a.wardley)==null?void 0:r.gridColor)??"rgba(100, 100, 100, 0.2)",componentFill:((d=a.wardley)==null?void 0:d.componentFill)??"#fff",componentStroke:((m=a.wardley)==null?void 0:m.componentStroke)??"#000",componentLabelColor:((v=a.wardley)==null?void 0:v.componentLabelColor)??a.primaryTextColor??"#222",linkStroke:((g=a.wardley)==null?void 0:g.linkStroke)??"#000",evolutionStroke:((L=a.wardley)==null?void 0:L.evolutionStroke)??"#dc3545",annotationStroke:((M=a.wardley)==null?void 0:M.annotationStroke)??"#000",annotationTextColor:((k=a.wardley)==null?void 0:k.annotationTextColor)??a.primaryTextColor??"#222",annotationFill:((N=a.wardley)==null?void 0:N.annotationFill)??a.background??"#fff"}},"getTheme"),_t=y(()=>{const a=V()["wardley-beta"];return{width:(a==null?void 0:a.width)??900,height:(a==null?void 0:a.height)??600,padding:(a==null?void 0:a.padding)??48,nodeRadius:(a==null?void 0:a.nodeRadius)??6,nodeLabelOffset:(a==null?void 0:a.nodeLabelOffset)??8,axisFontSize:(a==null?void 0:a.axisFontSize)??12,labelFontSize:(a==null?void 0:a.labelFontSize)??10,showGrid:(a==null?void 0:a.showGrid)??!1,useMaxWidth:(a==null?void 0:a.useMaxWidth)??!0}},"getConfigValues"),Zt=y((a,o,e,p)=>{var J,K;et.debug(`Rendering Wardley map
2
+ `+a);const r=_t(),d=Vt(),m=r.nodeRadius*1.6,v=p.db,g=v.getWardleyData(),L=v.getDiagramTitle(),M=((J=g.size)==null?void 0:J.width)??r.width,k=((K=g.size)==null?void 0:K.height)??r.height,N=Ft(o);N.selectAll("*").remove(),Rt(N,k,M,r.useMaxWidth),N.attr("viewBox",`0 0 ${M} ${k}`);const P=N.append("g").attr("class","wardley-map"),q=N.append("defs");q.append("marker").attr("id",`arrow-${o}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",d.evolutionStroke).attr("stroke","none"),q.append("marker").attr("id",`link-arrow-end-${o}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",d.linkStroke).attr("stroke","none"),q.append("marker").attr("id",`link-arrow-start-${o}`).attr("viewBox","0 0 10 10").attr("refX",1).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z").attr("fill",d.linkStroke).attr("stroke","none"),P.append("rect").attr("class","wardley-background").attr("width",M).attr("height",k).attr("fill",d.backgroundColor);const B=M-r.padding*2,F=k-r.padding*2;L&&P.append("text").attr("class","wardley-title").attr("x",M/2).attr("y",r.padding/2).attr("fill",d.axisTextColor).attr("font-size",r.axisFontSize*1.05).attr("font-weight","bold").attr("text-anchor","middle").attr("dominant-baseline","middle").text(L);const T=y(t=>r.padding+t/100*B,"projectX"),A=y(t=>k-r.padding-t/100*F,"projectY"),O=P.append("g").attr("class","wardley-axes");O.append("line").attr("x1",r.padding).attr("x2",M-r.padding).attr("y1",k-r.padding).attr("y2",k-r.padding).attr("stroke",d.axisColor).attr("stroke-width",1),O.append("line").attr("x1",r.padding).attr("x2",r.padding).attr("y1",r.padding).attr("y2",k-r.padding).attr("stroke",d.axisColor).attr("stroke-width",1);const kt=g.axes.xLabel??"Evolution",bt=g.axes.yLabel??"Visibility";O.append("text").attr("class","wardley-axis-label wardley-axis-label-x").attr("x",r.padding+B/2).attr("y",k-r.padding/4).attr("fill",d.axisTextColor).attr("font-size",r.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").text(kt),O.append("text").attr("class","wardley-axis-label wardley-axis-label-y").attr("x",r.padding/3).attr("y",r.padding+F/2).attr("fill",d.axisTextColor).attr("font-size",r.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").attr("transform",`rotate(-90 ${r.padding/3} ${r.padding+F/2})`).text(bt);const R=g.axes.stages&&g.axes.stages.length>0?g.axes.stages:jt;if(R.length>0){const t=P.append("g").attr("class","wardley-stages"),n=g.axes.stageBoundaries,s=[];if(n&&n.length===R.length){let i=0;n.forEach(h=>{s.push({start:i,end:h}),i=h})}else{const i=1/R.length;R.forEach((h,l)=>{s.push({start:l*i,end:(l+1)*i})})}R.forEach((i,h)=>{const l=s[h],x=r.padding+l.start*B,f=r.padding+l.end*B,u=(x+f)/2;h>0&&t.append("line").attr("x1",x).attr("x2",x).attr("y1",r.padding).attr("y2",k-r.padding).attr("stroke","#000").attr("stroke-width",1).attr("stroke-dasharray","5 5").attr("opacity",.8),t.append("text").attr("class","wardley-stage-label").attr("x",u).attr("y",k-r.padding/1.5).attr("fill",d.axisTextColor).attr("font-size",r.axisFontSize-2).attr("text-anchor","middle").text(i)})}if(r.showGrid){const t=P.append("g").attr("class","wardley-grid");for(let n=1;n<4;n++){const s=n/4,i=r.padding+B*s;t.append("line").attr("x1",i).attr("x2",i).attr("y1",r.padding).attr("y2",k-r.padding).attr("stroke",d.gridColor).attr("stroke-dasharray","2 6"),t.append("line").attr("x1",r.padding).attr("x2",M-r.padding).attr("y1",k-r.padding-F*s).attr("y2",k-r.padding-F*s).attr("stroke",d.gridColor).attr("stroke-dasharray","2 6")}}const c=new Map;if(g.nodes.forEach(t=>{c.set(t.id,{x:T(t.x),y:A(t.y),node:t})}),g.pipelines.length>0){const t=P.append("g").attr("class","wardley-pipelines"),n=P.append("g").attr("class","wardley-pipeline-links");g.pipelines.forEach(s=>{if(s.componentIds.length===0)return;const i=s.componentIds.map(f=>({id:f,pos:c.get(f),node:g.nodes.find(u=>u.id===f)})).filter(f=>f.pos&&f.node).sort((f,u)=>f.node.x-u.node.x);for(let f=0;f<i.length-1;f++){const u=i[f],w=i[f+1];n.append("line").attr("class","wardley-pipeline-evolution-link").attr("x1",u.pos.x).attr("y1",u.pos.y).attr("x2",w.pos.x).attr("y2",w.pos.y).attr("stroke",d.linkStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4")}let h=1/0,l=-1/0,x=0;if(s.componentIds.forEach(f=>{const u=c.get(f);u&&(h=Math.min(h,u.x),l=Math.max(l,u.x),x=u.y)}),h!==1/0&&l!==-1/0){const u=r.nodeRadius*4,w=x-u/2,S=c.get(s.nodeId);if(S){const z=(h+l)/2;S.x=z,S.y=w-m/6}t.append("rect").attr("class","wardley-pipeline-box").attr("x",h-15).attr("y",w).attr("width",l-h+30).attr("height",u).attr("fill","none").attr("stroke",d.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}})}const _=P.append("g").attr("class","wardley-links"),Z=new Map;g.pipelines.forEach(t=>{Z.set(t.nodeId,new Set(t.componentIds))});const U=g.links.filter(t=>{if(!c.has(t.source)||!c.has(t.target))return!1;const n=Z.get(t.target);return!(n!=null&&n.has(t.source))});_.selectAll("line").data(U).enter().append("line").attr("class",t=>`wardley-link${t.dashed?" wardley-link--dashed":""}`).attr("x1",t=>{const n=c.get(t.source),s=c.get(t.target),h=g.nodes.find(u=>u.id===t.source).isPipelineParent?m/Math.sqrt(2):r.nodeRadius,l=s.x-n.x,x=s.y-n.y,f=Math.sqrt(l*l+x*x);return n.x+l/f*h}).attr("y1",t=>{const n=c.get(t.source),s=c.get(t.target),h=g.nodes.find(u=>u.id===t.source).isPipelineParent?m/Math.sqrt(2):r.nodeRadius,l=s.x-n.x,x=s.y-n.y,f=Math.sqrt(l*l+x*x);return n.y+x/f*h}).attr("x2",t=>{const n=c.get(t.source),s=c.get(t.target),h=g.nodes.find(u=>u.id===t.target).isPipelineParent?m/Math.sqrt(2):r.nodeRadius,l=n.x-s.x,x=n.y-s.y,f=Math.sqrt(l*l+x*x);return s.x+l/f*h}).attr("y2",t=>{const n=c.get(t.source),s=c.get(t.target),h=g.nodes.find(u=>u.id===t.target).isPipelineParent?m/Math.sqrt(2):r.nodeRadius,l=n.x-s.x,x=n.y-s.y,f=Math.sqrt(l*l+x*x);return s.y+x/f*h}).attr("stroke",d.linkStroke).attr("stroke-width",1).attr("stroke-dasharray",t=>t.dashed?"6 6":null).attr("marker-end",t=>t.flow==="forward"||t.flow==="bidirectional"?`url(#link-arrow-end-${o})`:null).attr("marker-start",t=>t.flow==="backward"||t.flow==="bidirectional"?`url(#link-arrow-start-${o})`:null),_.selectAll("text").data(U.filter(t=>t.label)).enter().append("text").attr("class","wardley-link-label").attr("x",t=>{const n=c.get(t.source),s=c.get(t.target),i=(n.x+s.x)/2,h=s.y-n.y,l=s.x-n.x,x=Math.sqrt(l*l+h*h),f=8,u=h/x;return i+u*f}).attr("y",t=>{const n=c.get(t.source),s=c.get(t.target),i=(n.y+s.y)/2,h=s.x-n.x,l=s.y-n.y,x=Math.sqrt(h*h+l*l),f=8,u=-h/x;return i+u*f}).attr("fill",d.axisTextColor).attr("font-size",r.labelFontSize).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("transform",t=>{const n=c.get(t.source),s=c.get(t.target),i=(n.x+s.x)/2,h=(n.y+s.y)/2,l=s.x-n.x,x=s.y-n.y,f=Math.sqrt(l*l+x*x),u=8,w=x/f,S=-l/f,z=i+w*u,W=h+S*u;let Y=Math.atan2(x,l)*180/Math.PI;return(Y>90||Y<-90)&&(Y+=180),`rotate(${Y} ${z} ${W})`}).text(t=>t.label);const $t=P.append("g").attr("class","wardley-trends"),vt=g.trends.map(t=>{const n=c.get(t.nodeId);if(!n)return null;const s=T(t.targetX),i=A(t.targetY),h=s-n.x,l=i-n.y,x=Math.sqrt(h*h+l*l),f=r.nodeRadius+2,u=x>f?s-h/x*f:s,w=x>f?i-l/x*f:i;return{origin:n,targetX:s,targetY:i,adjustedX2:u,adjustedY2:w}}).filter(t=>t!==null);$t.selectAll("line").data(vt).enter().append("line").attr("class","wardley-trend").attr("x1",t=>t.origin.x).attr("y1",t=>t.origin.y).attr("x2",t=>t.adjustedX2).attr("y2",t=>t.adjustedY2).attr("stroke",d.evolutionStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4").attr("marker-end",`url(#arrow-${o})`);const C=P.append("g").attr("class","wardley-nodes").selectAll("g").data(g.nodes).enter().append("g").attr("class",t=>["wardley-node",t.className?`wardley-node--${t.className}`:""].filter(Boolean).join(" "));C.filter(t=>t.sourceStrategy==="outsource").append("circle").attr("class","wardley-outsource-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",r.nodeRadius*2).attr("fill","#666").attr("stroke",d.componentStroke).attr("stroke-width",1),C.filter(t=>t.sourceStrategy==="buy").append("circle").attr("class","wardley-buy-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",r.nodeRadius*2).attr("fill","#ccc").attr("stroke",d.componentStroke).attr("stroke-width",1),C.filter(t=>t.sourceStrategy==="build").append("circle").attr("class","wardley-build-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",r.nodeRadius*2).attr("fill","#eee").attr("stroke","#000").attr("stroke-width",1);const X=C.filter(t=>t.sourceStrategy==="market");X.append("circle").attr("class","wardley-market-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",r.nodeRadius*2).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",1),C.filter(t=>!t.isPipelineParent&&t.sourceStrategy!=="market"&&t.className!=="anchor").append("circle").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",r.nodeRadius).attr("fill",d.componentFill).attr("stroke",d.componentStroke).attr("stroke-width",1);const H=r.nodeRadius*.7,$=r.nodeRadius*1.2;if(X.append("line").attr("class","wardley-market-line").attr("x1",t=>c.get(t.id).x).attr("y1",t=>c.get(t.id).y-$).attr("x2",t=>c.get(t.id).x-$*Math.cos(Math.PI/6)).attr("y2",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("stroke",d.componentStroke).attr("stroke-width",1),X.append("line").attr("class","wardley-market-line").attr("x1",t=>c.get(t.id).x-$*Math.cos(Math.PI/6)).attr("y1",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("x2",t=>c.get(t.id).x+$*Math.cos(Math.PI/6)).attr("y2",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("stroke",d.componentStroke).attr("stroke-width",1),X.append("line").attr("class","wardley-market-line").attr("x1",t=>c.get(t.id).x+$*Math.cos(Math.PI/6)).attr("y1",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("x2",t=>c.get(t.id).x).attr("y2",t=>c.get(t.id).y-$).attr("stroke",d.componentStroke).attr("stroke-width",1),X.append("circle").attr("class","wardley-market-dot").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y-$).attr("r",H).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",2),X.append("circle").attr("class","wardley-market-dot").attr("cx",t=>c.get(t.id).x-$*Math.cos(Math.PI/6)).attr("cy",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("r",H).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",2),X.append("circle").attr("class","wardley-market-dot").attr("cx",t=>c.get(t.id).x+$*Math.cos(Math.PI/6)).attr("cy",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("r",H).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",2),C.filter(t=>t.isPipelineParent===!0).append("rect").attr("x",t=>c.get(t.id).x-m/2).attr("y",t=>c.get(t.id).y-m/2).attr("width",m).attr("height",m).attr("fill",d.componentFill).attr("stroke",d.componentStroke).attr("stroke-width",1),C.filter(t=>t.inertia===!0).append("line").attr("class","wardley-inertia").attr("x1",t=>{const n=c.get(t.id);let s=t.isPipelineParent?m/2+15:r.nodeRadius+15;return t.sourceStrategy&&(s+=r.nodeRadius+10),n.x+s}).attr("y1",t=>{const n=c.get(t.id),s=t.isPipelineParent?m:r.nodeRadius*2;return n.y-s/2}).attr("x2",t=>{const n=c.get(t.id);let s=t.isPipelineParent?m/2+15:r.nodeRadius+15;return t.sourceStrategy&&(s+=r.nodeRadius+10),n.x+s}).attr("y2",t=>{const n=c.get(t.id),s=t.isPipelineParent?m:r.nodeRadius*2;return n.y+s/2}).attr("stroke",d.componentStroke).attr("stroke-width",6),C.append("text").attr("x",t=>{const n=c.get(t.id);if(t.className==="anchor")return t.labelOffsetX!==void 0?n.x+t.labelOffsetX:n.x;let s=r.nodeLabelOffset;t.sourceStrategy&&t.labelOffsetX===void 0&&(s+=10);const i=t.labelOffsetX??s;return n.x+i}).attr("y",t=>{const n=c.get(t.id);if(t.className==="anchor")return t.labelOffsetY!==void 0?n.y+t.labelOffsetY:n.y-3;let s=-r.nodeLabelOffset;t.sourceStrategy&&t.labelOffsetY===void 0&&(s-=10);const i=t.labelOffsetY??s;return n.y+i}).attr("class","wardley-node-label").attr("fill",t=>t.className==="evolved"?d.evolutionStroke:t.className==="anchor"?"#000":d.componentLabelColor).attr("font-size",r.labelFontSize).attr("font-weight",t=>t.className==="anchor"?"bold":"normal").attr("text-anchor",t=>t.className==="anchor"?"middle":"start").attr("dominant-baseline",t=>t.className==="anchor"?"middle":"auto").text(t=>t.label),g.annotations.length>0){const t=P.append("g").attr("class","wardley-annotations");if(g.annotations.forEach(n=>{const s=n.coordinates.map(i=>({x:T(i.x),y:A(i.y)}));if(s.length>1)for(let i=0;i<s.length-1;i++)t.append("line").attr("class","wardley-annotation-line").attr("x1",s[i].x).attr("y1",s[i].y).attr("x2",s[i+1].x).attr("y2",s[i+1].y).attr("stroke",d.axisColor).attr("stroke-width",1.5).attr("stroke-dasharray","4 4");s.forEach(i=>{const h=t.append("g").attr("class","wardley-annotation");h.append("circle").attr("cx",i.x).attr("cy",i.y).attr("r",10).attr("fill","white").attr("stroke",d.axisColor).attr("stroke-width",1.5),h.append("text").attr("x",i.x).attr("y",i.y).attr("text-anchor","middle").attr("dominant-baseline","central").attr("font-size",10).attr("fill",d.axisTextColor).attr("font-weight","bold").text(n.number)})}),g.annotationsBox){let n=T(g.annotationsBox.x),s=A(g.annotationsBox.y);const i=10,h=16,l=11,x=t.append("g").attr("class","wardley-annotations-box"),f=[...g.annotations].filter(w=>w.text).sort((w,S)=>w.number-S.number),u=[];if(f.forEach((w,S)=>{const z=x.append("text").attr("x",n+i).attr("y",s+i+(S+1)*h).attr("font-size",l).attr("fill",d.axisTextColor).attr("text-anchor","start").attr("dominant-baseline","middle").text(`${w.number}. ${w.text}`);u.push(z)}),u.length>0){let w=0,S=0;u.forEach(j=>{const D=j.node(),Nt=D.getComputedTextLength();w=Math.max(w,Nt);const Ct=D.getBBox();S=Math.max(S,Ct.height)});const z=w+i*2+105,W=f.length*h+i*2+S/2,Y=r.padding,Pt=M-r.padding-z,St=r.padding,Mt=k-r.padding-W;n=Math.max(Y,Math.min(n,Pt)),s=Math.max(St,Math.min(s,Mt)),u.forEach((j,D)=>{j.attr("x",n+i).attr("y",s+i+(D+1)*h)}),x.insert("rect","text").attr("x",n).attr("y",s).attr("width",z).attr("height",W).attr("fill","white").attr("stroke",d.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}}}if(g.notes.length>0){const t=P.append("g").attr("class","wardley-notes");g.notes.forEach(n=>{const s=T(n.x),i=A(n.y);t.append("text").attr("x",s).attr("y",i).attr("text-anchor","start").attr("font-size",11).attr("fill",d.axisTextColor).attr("font-weight","bold").text(n.text)})}if(g.accelerators.length>0){const t=P.append("g").attr("class","wardley-accelerators");g.accelerators.forEach(n=>{const s=T(n.x),i=A(n.y),h=60,l=30,x=20,f=`
3
+ M ${s} ${i-l/2}
4
+ L ${s+h-x} ${i-l/2}
5
+ L ${s+h-x} ${i-l/2-8}
6
+ L ${s+h} ${i}
7
+ L ${s+h-x} ${i+l/2+8}
8
+ L ${s+h-x} ${i+l/2}
9
+ L ${s} ${i+l/2}
10
+ Z
11
+ `;t.append("path").attr("d",f).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",1),t.append("text").attr("x",s+h/2).attr("y",i+l/2+15).attr("text-anchor","middle").attr("font-size",10).attr("fill",d.axisTextColor).attr("font-weight","bold").text(n.name)})}if(g.deaccelerators.length>0){const t=P.append("g").attr("class","wardley-deaccelerators");g.deaccelerators.forEach(n=>{const s=T(n.x),i=A(n.y),h=60,l=30,x=20,f=`
12
+ M ${s+h} ${i-l/2}
13
+ L ${s+x} ${i-l/2}
14
+ L ${s+x} ${i-l/2-8}
15
+ L ${s} ${i}
16
+ L ${s+x} ${i+l/2+8}
17
+ L ${s+x} ${i+l/2}
18
+ L ${s+h} ${i+l/2}
19
+ Z
20
+ `;t.append("path").attr("d",f).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",1),t.append("text").attr("x",s+h/2).attr("y",i+l/2+15).attr("text-anchor","middle").attr("font-size",10).attr("fill",d.axisTextColor).attr("font-weight","bold").text(n.name)})}},"draw"),Ut={draw:Zt},Jt=y(({wardley:a}={})=>{const o=It(),e=Bt(),p=Q(o,e.themeVariables),r=Q(p.wardley,a);return`
21
+ .wardley-background {
22
+ fill: ${r.backgroundColor};
23
+ }
24
+ .wardley-axes line, .wardley-axes path {
25
+ stroke: ${r.axisColor};
26
+ }
27
+ .wardley-axis-label {
28
+ fill: ${r.axisTextColor};
29
+ }
30
+ .wardley-stage-label {
31
+ fill: ${r.axisTextColor};
32
+ }
33
+ .wardley-grid line {
34
+ stroke: ${r.gridColor};
35
+ }
36
+ .wardley-node circle {
37
+ fill: ${r.componentFill};
38
+ stroke: ${r.componentStroke};
39
+ }
40
+ .wardley-node-label {
41
+ fill: ${r.componentLabelColor};
42
+ }
43
+ .wardley-link {
44
+ stroke: ${r.linkStroke};
45
+ }
46
+ .wardley-link--dashed {
47
+ stroke-dasharray: 4 4;
48
+ }
49
+ .wardley-link-label {
50
+ fill: ${r.axisTextColor};
51
+ }
52
+ .wardley-trend line {
53
+ stroke: ${r.evolutionStroke};
54
+ }
55
+ .wardley-annotation-line {
56
+ stroke: ${r.annotationStroke};
57
+ }
58
+ .wardley-annotation circle {
59
+ fill: ${r.annotationFill};
60
+ stroke: ${r.annotationStroke};
61
+ }
62
+ .wardley-annotation text {
63
+ fill: ${r.annotationTextColor};
64
+ }
65
+ .wardley-annotations-box rect {
66
+ fill: ${r.annotationFill};
67
+ stroke: ${r.annotationStroke};
68
+ }
69
+ .wardley-annotations-box text {
70
+ fill: ${r.annotationTextColor};
71
+ }
72
+ .wardley-pipeline-box {
73
+ stroke: ${r.componentStroke};
74
+ }
75
+ .wardley-notes text {
76
+ fill: ${r.axisTextColor};
77
+ }
78
+ `},"styles"),oe={parser:at,db:Ht,renderer:Ut,styles:Jt};export{oe as diagram};
@@ -0,0 +1,7 @@
1
+ import{s as xi,g as di,p as Yt,o as fi,a as pi,b as mi,_ as n,l as Nt,F as yi,e as bi,q as Ai,z as kt,i as wi,B as Ht,D as Ci,W as Si,aH as Ri,a7 as Ot}from"./mermaid.core-BEntOW_N.js";import{i as _i}from"./init-Gi6I4Gst.js";import{o as ki}from"./ordinal-B9c66tb1.js";import{l as Wt}from"./linear-B0jaW5hA.js";import"./vendor-DVp0ZLQo.js";import"./vendor-react-DQUAl2K8.js";import"./defaultLocale-DX6XiGOO.js";function Ti(e,t,i){e=+e,t=+t,i=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+i;for(var s=-1,a=Math.max(0,Math.ceil((t-e)/i))|0,o=new Array(a);++s<a;)o[s]=e+s*i;return o}function wt(){var e=ki().unknown(void 0),t=e.domain,i=e.range,s=0,a=1,o,l,p=!1,d=0,k=0,T=.5;delete e.unknown;function _(){var b=t().length,E=a<s,L=E?a:s,P=E?s:a;o=(P-L)/Math.max(1,b-d+k*2),p&&(o=Math.floor(o)),L+=(P-L-o*(b-d))*T,l=o*(1-d),p&&(L=Math.round(L),l=Math.round(l));var I=Ti(b).map(function(m){return L+o*m});return i(E?I.reverse():I)}return e.domain=function(b){return arguments.length?(t(b),_()):t()},e.range=function(b){return arguments.length?([s,a]=b,s=+s,a=+a,_()):[s,a]},e.rangeRound=function(b){return[s,a]=b,s=+s,a=+a,p=!0,_()},e.bandwidth=function(){return l},e.step=function(){return o},e.round=function(b){return arguments.length?(p=!!b,_()):p},e.padding=function(b){return arguments.length?(d=Math.min(1,k=+b),_()):d},e.paddingInner=function(b){return arguments.length?(d=Math.min(1,b),_()):d},e.paddingOuter=function(b){return arguments.length?(k=+b,_()):k},e.align=function(b){return arguments.length?(T=Math.max(0,Math.min(1,b)),_()):T},e.copy=function(){return wt(t(),[s,a]).round(p).paddingInner(d).paddingOuter(k).align(T)},_i.apply(_(),arguments)}var Ct=(function(){var e=n(function(F,h,u,g){for(u=u||{},g=F.length;g--;u[F[g]]=h);return u},"o"),t=[1,10,12,14,16,18,19,21,23],i=[2,6],s=[1,3],a=[1,5],o=[1,6],l=[1,7],p=[1,5,10,12,14,16,18,19,21,23,36,37,38],d=[1,25],k=[1,26],T=[1,28],_=[1,29],b=[1,30],E=[1,31],L=[1,32],P=[1,33],I=[1,34],m=[1,35],D=[1,36],c=[1,37],B=[1,43],W=[1,42],X=[1,47],Y=[1,50],S=[1,10,12,14,16,18,19,21,23,36,37,38],H=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38],A=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38,42,43,44,45,46,47,48,49,50,51],w=[1,65],V=[26,28],R={trace:n(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,dataPoints:25,SQUARE_BRACES_END:26,dataPoint:27,COMMA:28,NUMBER_WITH_DECIMAL:29,STR:30,xAxisData:31,bandData:32,ARROW_DELIMITER:33,commaSeparatedTexts:34,yAxisData:35,NEWLINE:36,SEMI:37,EOF:38,alphaNum:39,MD_STR:40,alphaNumToken:41,AMP:42,NUM:43,ALPHA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,MINUS:50,UNDERSCORE:51,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",28:"COMMA",29:"NUMBER_WITH_DECIMAL",30:"STR",33:"ARROW_DELIMITER",36:"NEWLINE",37:"SEMI",38:"EOF",40:"MD_STR",42:"AMP",43:"NUM",44:"ALPHA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"MINUS",51:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[27,2],[27,1],[13,1],[13,2],[13,1],[31,1],[31,3],[32,3],[34,3],[34,1],[15,1],[15,2],[15,1],[35,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[39,1],[39,2],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1]],performAction:n(function(h,u,g,x,C,r,rt){var f=r.length-1;switch(C){case 5:x.setOrientation(r[f]);break;case 9:x.setDiagramTitle(r[f].text.trim());break;case 12:x.setLineData({text:"",type:"text"},r[f]);break;case 13:x.setLineData(r[f-1],r[f]);break;case 14:x.setBarData({text:"",type:"text"},r[f]);break;case 15:x.setBarData(r[f-1],r[f]);break;case 16:this.$=r[f].trim(),x.setAccTitle(this.$);break;case 17:case 18:this.$=r[f].trim(),x.setAccDescription(this.$);break;case 19:this.$=r[f-1];break;case 20:case 30:this.$=[r[f-2],...r[f]];break;case 21:case 31:this.$=[r[f]];break;case 22:this.$={value:Number(r[f-1]),label:r[f]};break;case 23:this.$={value:Number(r[f]),label:""};break;case 24:x.setXAxisTitle(r[f]);break;case 25:x.setXAxisTitle(r[f-1]);break;case 26:x.setXAxisTitle({type:"text",text:""});break;case 27:x.setXAxisBand(r[f]);break;case 28:x.setXAxisRangeData(Number(r[f-2]),Number(r[f]));break;case 29:this.$=r[f-1];break;case 32:x.setYAxisTitle(r[f]);break;case 33:x.setYAxisTitle(r[f-1]);break;case 34:x.setYAxisTitle({type:"text",text:""});break;case 35:x.setYAxisRangeData(Number(r[f-2]),Number(r[f]));break;case 39:this.$={text:r[f],type:"text"};break;case 40:this.$={text:r[f],type:"text"};break;case 41:this.$={text:r[f],type:"markdown"};break;case 42:this.$=r[f];break;case 43:this.$=r[f-1]+""+r[f];break}},"anonymous"),table:[e(t,i,{3:1,4:2,7:4,5:s,36:a,37:o,38:l}),{1:[3]},e(t,i,{4:2,7:4,3:8,5:s,36:a,37:o,38:l}),e(t,i,{4:2,7:4,6:9,3:10,5:s,8:[1,11],36:a,37:o,38:l}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},e(p,[2,36]),e(p,[2,37]),e(p,[2,38]),{1:[2,1]},e(t,i,{4:2,7:4,3:21,5:s,36:a,37:o,38:l}),{1:[2,3]},e(p,[2,5]),e(t,[2,7],{4:22,36:a,37:o,38:l}),{11:23,30:d,39:24,40:k,41:27,42:T,43:_,44:b,45:E,46:L,47:P,48:I,49:m,50:D,51:c},{11:39,13:38,24:B,29:W,30:d,31:40,32:41,39:24,40:k,41:27,42:T,43:_,44:b,45:E,46:L,47:P,48:I,49:m,50:D,51:c},{11:45,15:44,29:X,30:d,35:46,39:24,40:k,41:27,42:T,43:_,44:b,45:E,46:L,47:P,48:I,49:m,50:D,51:c},{11:49,17:48,24:Y,30:d,39:24,40:k,41:27,42:T,43:_,44:b,45:E,46:L,47:P,48:I,49:m,50:D,51:c},{11:52,17:51,24:Y,30:d,39:24,40:k,41:27,42:T,43:_,44:b,45:E,46:L,47:P,48:I,49:m,50:D,51:c},{20:[1,53]},{22:[1,54]},e(S,[2,18]),{1:[2,2]},e(S,[2,8]),e(S,[2,9]),e(H,[2,39],{41:55,42:T,43:_,44:b,45:E,46:L,47:P,48:I,49:m,50:D,51:c}),e(H,[2,40]),e(H,[2,41]),e(A,[2,42]),e(A,[2,44]),e(A,[2,45]),e(A,[2,46]),e(A,[2,47]),e(A,[2,48]),e(A,[2,49]),e(A,[2,50]),e(A,[2,51]),e(A,[2,52]),e(A,[2,53]),e(S,[2,10]),e(S,[2,24],{32:41,31:56,24:B,29:W}),e(S,[2,26]),e(S,[2,27]),{33:[1,57]},{11:59,30:d,34:58,39:24,40:k,41:27,42:T,43:_,44:b,45:E,46:L,47:P,48:I,49:m,50:D,51:c},e(S,[2,11]),e(S,[2,32],{35:60,29:X}),e(S,[2,34]),{33:[1,61]},e(S,[2,12]),{17:62,24:Y},{25:63,27:64,29:w},e(S,[2,14]),{17:66,24:Y},e(S,[2,16]),e(S,[2,17]),e(A,[2,43]),e(S,[2,25]),{29:[1,67]},{26:[1,68]},{26:[2,31],28:[1,69]},e(S,[2,33]),{29:[1,70]},e(S,[2,13]),{26:[1,71]},{26:[2,21],28:[1,72]},e(V,[2,23],{30:[1,73]}),e(S,[2,15]),e(S,[2,28]),e(S,[2,29]),{11:59,30:d,34:74,39:24,40:k,41:27,42:T,43:_,44:b,45:E,46:L,47:P,48:I,49:m,50:D,51:c},e(S,[2,35]),e(S,[2,19]),{25:75,27:64,29:w},e(V,[2,22]),{26:[2,30]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],74:[2,30],75:[2,20]},parseError:n(function(h,u){if(u.recoverable)this.trace(h);else{var g=new Error(h);throw g.hash=u,g}},"parseError"),parse:n(function(h){var u=this,g=[0],x=[],C=[null],r=[],rt=this.table,f="",gt=0,Mt=0,li=2,zt=1,ci=r.slice.call(arguments,1),v=Object.create(this.lexer),$={yy:{}};for(var mt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,mt)&&($.yy[mt]=this.yy[mt]);v.setInput(h,$.yy),$.yy.lexer=v,$.yy.parser=this,typeof v.yylloc>"u"&&(v.yylloc={});var yt=v.yylloc;r.push(yt);var ui=v.options&&v.options.ranges;typeof $.yy.parseError=="function"?this.parseError=$.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function gi(z){g.length=g.length-2*z,C.length=C.length-z,r.length=r.length-z}n(gi,"popStack");function Bt(){var z;return z=x.pop()||v.lex()||zt,typeof z!="number"&&(z instanceof Array&&(x=z,z=x.pop()),z=u.symbols_[z]||z),z}n(Bt,"lex");for(var M,U,O,bt,G={},xt,N,Vt,dt;;){if(U=g[g.length-1],this.defaultActions[U]?O=this.defaultActions[U]:((M===null||typeof M>"u")&&(M=Bt()),O=rt[U]&&rt[U][M]),typeof O>"u"||!O.length||!O[0]){var At="";dt=[];for(xt in rt[U])this.terminals_[xt]&&xt>li&&dt.push("'"+this.terminals_[xt]+"'");v.showPosition?At="Parse error on line "+(gt+1)+`:
2
+ `+v.showPosition()+`
3
+ Expecting `+dt.join(", ")+", got '"+(this.terminals_[M]||M)+"'":At="Parse error on line "+(gt+1)+": Unexpected "+(M==zt?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(At,{text:v.match,token:this.terminals_[M]||M,line:v.yylineno,loc:yt,expected:dt})}if(O[0]instanceof Array&&O.length>1)throw new Error("Parse Error: multiple actions possible at state: "+U+", token: "+M);switch(O[0]){case 1:g.push(M),C.push(v.yytext),r.push(v.yylloc),g.push(O[1]),M=null,Mt=v.yyleng,f=v.yytext,gt=v.yylineno,yt=v.yylloc;break;case 2:if(N=this.productions_[O[1]][1],G.$=C[C.length-N],G._$={first_line:r[r.length-(N||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(N||1)].first_column,last_column:r[r.length-1].last_column},ui&&(G._$.range=[r[r.length-(N||1)].range[0],r[r.length-1].range[1]]),bt=this.performAction.apply(G,[f,Mt,gt,$.yy,O[1],C,r].concat(ci)),typeof bt<"u")return bt;N&&(g=g.slice(0,-1*N*2),C=C.slice(0,-1*N),r=r.slice(0,-1*N)),g.push(this.productions_[O[1]][0]),C.push(G.$),r.push(G._$),Vt=rt[g[g.length-2]][g[g.length-1]],g.push(Vt);break;case 3:return!0}}return!0},"parse")},ot=(function(){var F={EOF:1,parseError:n(function(u,g){if(this.yy.parser)this.yy.parser.parseError(u,g);else throw new Error(u)},"parseError"),setInput:n(function(h,u){return this.yy=u||this.yy||{},this._input=h,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:n(function(){var h=this._input[0];this.yytext+=h,this.yyleng++,this.offset++,this.match+=h,this.matched+=h;var u=h.match(/(?:\r\n?|\n).*/g);return u?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),h},"input"),unput:n(function(h){var u=h.length,g=h.split(/(?:\r\n?|\n)/g);this._input=h+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-u),this.offset-=u;var x=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),g.length-1&&(this.yylineno-=g.length-1);var C=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:g?(g.length===x.length?this.yylloc.first_column:0)+x[x.length-g.length].length-g[0].length:this.yylloc.first_column-u},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-u]),this.yyleng=this.yytext.length,this},"unput"),more:n(function(){return this._more=!0,this},"more"),reject:n(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
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:n(function(h){this.unput(this.match.slice(h))},"less"),pastInput:n(function(){var h=this.matched.substr(0,this.matched.length-this.match.length);return(h.length>20?"...":"")+h.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:n(function(){var h=this.match;return h.length<20&&(h+=this._input.substr(0,20-h.length)),(h.substr(0,20)+(h.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:n(function(){var h=this.pastInput(),u=new Array(h.length+1).join("-");return h+this.upcomingInput()+`
5
+ `+u+"^"},"showPosition"),test_match:n(function(h,u){var g,x,C;if(this.options.backtrack_lexer&&(C={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(C.yylloc.range=this.yylloc.range.slice(0))),x=h[0].match(/(?:\r\n?|\n).*/g),x&&(this.yylineno+=x.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:x?x[x.length-1].length-x[x.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+h[0].length},this.yytext+=h[0],this.match+=h[0],this.matches=h,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(h[0].length),this.matched+=h[0],g=this.performAction.call(this,this.yy,this,u,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),g)return g;if(this._backtrack){for(var r in C)this[r]=C[r];return!1}return!1},"test_match"),next:n(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var h,u,g,x;this._more||(this.yytext="",this.match="");for(var C=this._currentRules(),r=0;r<C.length;r++)if(g=this._input.match(this.rules[C[r]]),g&&(!u||g[0].length>u[0].length)){if(u=g,x=r,this.options.backtrack_lexer){if(h=this.test_match(g,C[r]),h!==!1)return h;if(this._backtrack){u=!1;continue}else return!1}else if(!this.options.flex)break}return u?(h=this.test_match(u,C[x]),h!==!1?h:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:n(function(){var u=this.next();return u||this.lex()},"lex"),begin:n(function(u){this.conditionStack.push(u)},"begin"),popState:n(function(){var u=this.conditionStack.length-1;return u>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:n(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:n(function(u){return u=this.conditionStack.length-1-Math.abs(u||0),u>=0?this.conditionStack[u]:"INITIAL"},"topState"),pushState:n(function(u){this.begin(u)},"pushState"),stateStackSize:n(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:n(function(u,g,x,C){switch(x){case 0:break;case 1:break;case 2:return this.popState(),36;case 3:return this.popState(),36;case 4:return 36;case 5:break;case 6:return 10;case 7:return this.pushState("acc_title"),19;case 8:return this.popState(),"acc_title_value";case 9:return this.pushState("acc_descr"),21;case 10:return this.popState(),"acc_descr_value";case 11:this.pushState("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 5;case 15:return 5;case 16:return 8;case 17:return this.pushState("axis_data"),"X_AXIS";case 18:return this.pushState("axis_data"),"Y_AXIS";case 19:return this.pushState("axis_band_data"),24;case 20:return 33;case 21:return this.pushState("data"),16;case 22:return this.pushState("data"),18;case 23:return this.pushState("data_inner"),24;case 24:return 29;case 25:return this.popState(),26;case 26:this.popState();break;case 27:this.pushState("string");break;case 28:this.popState();break;case 29:return"STR";case 30:return 24;case 31:return 26;case 32:return 44;case 33:return"COLON";case 34:return 45;case 35:return 28;case 36:return 46;case 37:return 47;case 38:return 49;case 39:return 51;case 40:return 48;case 41:return 42;case 42:return 50;case 43:return 43;case 44:break;case 45:return 37;case 46:return 38}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\})/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:xychart\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,24,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,18,21,22,23,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,22,24,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[28,29],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0}}};return F})();R.lexer=ot;function q(){this.yy={}}return n(q,"Parser"),q.prototype=R,R.Parser=q,new q})();Ct.parser=Ct;var Di=Ct;function St(e){return e.type==="bar"}n(St,"isBarPlot");function ft(e){return e.type==="band"}n(ft,"isBandAxisData");function j(e){return e.type==="linear"}n(j,"isLinearAxisData");var Q,$t=(Q=class{constructor(t){this.parentGroup=t}getMaxDimension(t,i){if(!this.parentGroup)return{width:t.reduce((o,l)=>Math.max(l.length,o),0)*i,height:i};const s={width:0,height:0},a=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",i);for(const o of t){const l=Ri(a,1,o),p=l?l.width:o.length*i,d=l?l.height:i;s.width=Math.max(s.width,p),s.height=Math.max(s.height,d)}return a.remove(),s}},n(Q,"TextDimensionCalculatorWithFont"),Q),Ft=.7,Xt=.2,K,Ut=(K=class{constructor(t,i,s,a){this.axisConfig=t,this.title=i,this.textDimensionCalculator=s,this.axisThemeConfig=a,this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.showTitle=!1,this.showLabel=!1,this.showTick=!1,this.showAxisLine=!1,this.outerPadding=0,this.titleTextHeight=0,this.labelTextHeight=0,this.normalizedLabelRotationInRad=0,this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.normalizedLabelRotationInRad=this.axisConfig.labelRotation>=-90&&this.axisConfig.labelRotation<=90?this.axisConfig.labelRotation*Math.PI/180:0}setRange(t){this.range=t,this.axisPosition==="left"||this.axisPosition==="right"?this.boundingRect.height=t[1]-t[0]:this.boundingRect.width=t[1]-t[0],this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(t){this.axisPosition=t,this.setRange(this.range)}getTickDistance(){const t=this.getRange();return Math.abs(t[0]-t[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map(t=>t.toString()),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){Ft*this.getTickDistance()>this.outerPadding*2&&(this.outerPadding=Math.floor(Ft*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(t){let i=t.height;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const s=this.getLabelDimension(),a=Xt*t.width;this.outerPadding=Math.min(s.width/2,a);let o=s.height;this.axisPosition==="bottom"&&this.normalizedLabelRotationInRad!==0&&(o=Math.max(o,Math.abs(Math.sin(this.normalizedLabelRotationInRad)*s.width)+Math.abs(Math.cos(this.normalizedLabelRotationInRad)*s.height))),o+=this.axisConfig.labelPadding*2,this.labelTextHeight=s.height,o<=i&&(i-=o,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const s=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),a=s.height+this.axisConfig.titlePadding*2;this.titleTextHeight=s.height,a<=i&&(i-=a,this.showTitle=!0)}this.boundingRect.width=t.width,this.boundingRect.height=t.height-i}calculateSpaceIfDrawnVertical(t){let i=t.width;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const s=this.getLabelDimension(),a=Xt*t.height;this.outerPadding=Math.min(s.height/2,a);const o=s.width+this.axisConfig.labelPadding*2;o<=i&&(i-=o,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const s=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),a=s.height+this.axisConfig.titlePadding*2;this.titleTextHeight=s.height,a<=i&&(i-=a,this.showTitle=!0)}this.boundingRect.width=t.width-i,this.boundingRect.height=t.height}calculateSpace(t){return this.axisPosition==="left"||this.axisPosition==="right"?this.calculateSpaceIfDrawnVertical(t):this.calculateSpaceIfDrawnHorizontally(t),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateOffsetByRotation(t){const i=this.normalizedLabelRotationInRad;return i===0?0:Math.sin(i)*this.getLabelDimension()[t]/2}getDrawableElementsForLeftAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["left-axis","axisl-line"],data:[{path:`M ${i},${this.boundingRect.y} L ${i},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["left-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.boundingRect.x+this.boundingRect.width-(this.showLabel?this.axisConfig.labelPadding:0)-(this.showTick?this.axisConfig.tickLength:0)-(this.showAxisLine?this.axisConfig.axisLineWidth:0),y:this.getScaleValue(i),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"middle",horizontalPos:"right"}))}),this.showTick){const i=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["left-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${i},${this.getScaleValue(s)} L ${i-this.axisConfig.tickLength},${this.getScaleValue(s)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["left-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForBottomAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.y+this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["bottom-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["bottom-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.getScaleValue(i)+this.calculateOffsetByRotation("height"),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0)+Math.abs(this.calculateOffsetByRotation("width")),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:this.normalizedLabelRotationInRad*180/Math.PI,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const i=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["bottom-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${this.getScaleValue(s)},${i} L ${this.getScaleValue(s)},${i+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["bottom-axis","title"],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForTopAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["top-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["top-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.getScaleValue(i),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+this.axisConfig.titlePadding*2:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const i=this.boundingRect.y;t.push({type:"path",groupTexts:["top-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${this.getScaleValue(s)},${i+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(s)},${i+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["top-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElements(){if(this.axisPosition==="left")return this.getDrawableElementsForLeftAxis();if(this.axisPosition==="right")throw Error("Drawing of right axis is not implemented");return this.axisPosition==="bottom"?this.getDrawableElementsForBottomAxis():this.axisPosition==="top"?this.getDrawableElementsForTopAxis():[]}},n(K,"BaseAxis"),K),Z,vi=(Z=class extends Ut{constructor(t,i,s,a,o){super(t,a,o,i),this.categories=s,this.scale=wt().domain(this.categories).range(this.getRange())}setRange(t){super.setRange(t)}recalculateScale(){this.scale=wt().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),Nt.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(t){return this.scale(t)??this.getRange()[0]}},n(Z,"BandAxis"),Z),J,Li=(J=class extends Ut{constructor(t,i,s,a,o){super(t,a,o,i),this.domain=s,this.scale=Wt().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){const t=[...this.domain];this.axisPosition==="left"&&t.reverse(),this.scale=Wt().domain(t).range(this.getRange())}getScaleValue(t){return this.scale(t)}},n(J,"LinearAxis"),J);function Rt(e,t,i,s){const a=new $t(s);return ft(e)?new vi(t,i,e.categories,e.title,a):new Li(t,i,[e.min,e.max],e.title,a)}n(Rt,"getAxis");var tt,Pi=(tt=class{constructor(t,i,s,a){this.textDimensionCalculator=t,this.chartConfig=i,this.chartData=s,this.chartThemeConfig=a,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){const i=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),s=Math.max(i.width,t.width),a=i.height+2*this.chartConfig.titlePadding;return i.width<=s&&i.height<=a&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=s,this.boundingRect.height=a,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){const t=[];return this.showChartTitle&&t.push({groupTexts:["chart-title"],type:"text",data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:"middle",horizontalPos:"center",x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]}),t}},n(tt,"ChartTitle"),tt);function qt(e,t,i,s){const a=new $t(s);return new Pi(a,e,t,i)}n(qt,"getChartTitleComponent");var it,Ei=(it=class{constructor(t,i,s,a,o){this.plotData=t,this.xAxis=i,this.yAxis=s,this.orientation=a,this.plotIndex=o}getDrawableElement(){const t=this.plotData.data.map(a=>[this.xAxis.getScaleValue(a[0]),this.yAxis.getScaleValue(a[1])]);let i;if(this.orientation==="horizontal"?i=Ot().y(a=>a[0]).x(a=>a[1])(t):i=Ot().x(a=>a[0]).y(a=>a[1])(t),!i)return[];const s=[{groupTexts:["plot",`line-plot-${this.plotIndex}`],type:"path",data:[{path:i,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}];if(this.plotData.pointLabels&&this.plotData.pointLabels.length>0){const l=[];for(const[p,[d,k]]of t.entries()){const T=this.plotData.pointLabels[p];T&&(this.orientation==="horizontal"?l.push({x:k+10,y:d,text:T,fill:this.plotData.strokeFill,verticalPos:"middle",horizontalPos:"left",fontSize:12,rotation:0}):l.push({x:d,y:k-10,text:T,fill:this.plotData.strokeFill,verticalPos:"middle",horizontalPos:"center",fontSize:12,rotation:0}))}l.length>0&&s.push({groupTexts:["plot",`line-plot-${this.plotIndex}`,"labels"],type:"text",data:l})}return s}},n(it,"LinePlot"),it),et,Ii=(et=class{constructor(t,i,s,a,o,l){this.barData=t,this.boundingRect=i,this.xAxis=s,this.yAxis=a,this.orientation=o,this.plotIndex=l}getDrawableElement(){const t=this.barData.data.map(o=>[this.xAxis.getScaleValue(o[0]),this.yAxis.getScaleValue(o[1])]),s=Math.min(this.xAxis.getAxisOuterPadding()*2,this.xAxis.getTickDistance())*(1-.05),a=s/2;return this.orientation==="horizontal"?[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(o=>({x:this.boundingRect.x,y:o[0]-a,height:s,width:o[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]:[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(o=>({x:o[0]-a,y:o[1],width:s,height:this.boundingRect.y+this.boundingRect.height-o[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}},n(et,"BarPlot"),et),st,Mi=(st=class{constructor(t,i,s){this.chartConfig=t,this.chartData=i,this.chartThemeConfig=s,this.boundingRect={x:0,y:0,width:0,height:0}}setAxes(t,i){this.xAxis=t,this.yAxis=i}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){return this.boundingRect.width=t.width,this.boundingRect.height=t.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!(this.xAxis&&this.yAxis))throw Error("Axes must be passed to render Plots");const t=[];for(const[i,s]of this.chartData.plots.entries())switch(s.type){case"line":{const a=new Ei(s,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...a.getDrawableElement())}break;case"bar":{const a=new Ii(s,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...a.getDrawableElement())}break}return t}},n(st,"BasePlot"),st);function Gt(e,t,i){return new Mi(e,t,i)}n(Gt,"getPlotComponent");var at,zi=(at=class{constructor(t,i,s,a){this.chartConfig=t,this.chartData=i,this.componentStore={title:qt(t,i,s,a),plot:Gt(t,i,s),xAxis:Rt(i.xAxis,t.xAxis,{titleColor:s.xAxisTitleColor,labelColor:s.xAxisLabelColor,tickColor:s.xAxisTickColor,axisLineColor:s.xAxisLineColor},a),yAxis:Rt(i.yAxis,t.yAxis,{titleColor:s.yAxisTitleColor,labelColor:s.yAxisLabelColor,tickColor:s.yAxisTickColor,axisLineColor:s.yAxisLineColor},a)}}calculateVerticalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,s=0,a=0,o=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),l=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),p=this.componentStore.plot.calculateSpace({width:o,height:l});t-=p.width,i-=p.height,p=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i}),a=p.height,i-=p.height,this.componentStore.xAxis.setAxisPosition("bottom"),p=this.componentStore.xAxis.calculateSpace({width:t,height:i}),i-=p.height,this.componentStore.yAxis.setAxisPosition("left"),p=this.componentStore.yAxis.calculateSpace({width:t,height:i}),s=p.width,t-=p.width,t>0&&(o+=t,t=0),i>0&&(l+=i,i=0),this.componentStore.plot.calculateSpace({width:o,height:l}),this.componentStore.plot.setBoundingBoxXY({x:s,y:a}),this.componentStore.xAxis.setRange([s,s+o]),this.componentStore.xAxis.setBoundingBoxXY({x:s,y:a+l}),this.componentStore.yAxis.setRange([a,a+l]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:a}),this.chartData.plots.some(d=>St(d))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,s=0,a=0,o=0,l=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),p=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),d=this.componentStore.plot.calculateSpace({width:l,height:p});t-=d.width,i-=d.height,d=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i}),s=d.height,i-=d.height,this.componentStore.xAxis.setAxisPosition("left"),d=this.componentStore.xAxis.calculateSpace({width:t,height:i}),t-=d.width,a=d.width,this.componentStore.yAxis.setAxisPosition("top"),d=this.componentStore.yAxis.calculateSpace({width:t,height:i}),i-=d.height,o=s+d.height,t>0&&(l+=t,t=0),i>0&&(p+=i,i=0),this.componentStore.plot.calculateSpace({width:l,height:p}),this.componentStore.plot.setBoundingBoxXY({x:a,y:o}),this.componentStore.yAxis.setRange([a,a+l]),this.componentStore.yAxis.setBoundingBoxXY({x:a,y:s}),this.componentStore.xAxis.setRange([o,o+p]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:o}),this.chartData.plots.some(k=>St(k))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){this.chartConfig.chartOrientation==="horizontal"?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();const t=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(const i of Object.values(this.componentStore))t.push(...i.getDrawableElements());return t}},n(at,"Orchestrator"),at),nt,Bi=(nt=class{static build(t,i,s,a){return new zi(t,i,s,a).getDrawableElement()}},n(nt,"XYChartBuilder"),nt),ht=0,jt,lt=vt(),ct=Dt(),y=Lt(),_t=ct.plotColorPalette.split(",").map(e=>e.trim()),pt=!1,Tt=!1;function Dt(){const e=Si(),t=kt();return Ht(e.xyChart,t.themeVariables.xyChart)}n(Dt,"getChartDefaultThemeConfig");function vt(){const e=kt();return Ht(Ci.xyChart,e.xyChart)}n(vt,"getChartDefaultConfig");function Lt(){return{yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}n(Lt,"getChartDefaultData");function ut(e){const t=kt();return wi(e.trim(),t)}n(ut,"textSanitizer");function Qt(e){jt=e}n(Qt,"setTmpSVGG");function Kt(e){e==="horizontal"?lt.chartOrientation="horizontal":lt.chartOrientation="vertical"}n(Kt,"setOrientation");function Zt(e){y.xAxis.title=ut(e.text)}n(Zt,"setXAxisTitle");function Pt(e,t){y.xAxis={type:"linear",title:y.xAxis.title,min:e,max:t},pt=!0}n(Pt,"setXAxisRangeData");function Jt(e){y.xAxis={type:"band",title:y.xAxis.title,categories:e.map(t=>ut(t.text))},pt=!0}n(Jt,"setXAxisBand");function ti(e){y.yAxis.title=ut(e.text)}n(ti,"setYAxisTitle");function ii(e,t){y.yAxis={type:"linear",title:y.yAxis.title,min:e,max:t},Tt=!0}n(ii,"setYAxisRangeData");function ei(e){const t=Math.min(...e),i=Math.max(...e),s=j(y.yAxis)?y.yAxis.min:1/0,a=j(y.yAxis)?y.yAxis.max:-1/0;y.yAxis={type:"linear",title:y.yAxis.title,min:Math.min(s,t),max:Math.max(a,i)}}n(ei,"setYAxisRangeFromPlotData");function Et(e){let t=[];if(e.length===0)return t;if(!pt){const i=j(y.xAxis)?y.xAxis.min:1/0,s=j(y.xAxis)?y.xAxis.max:-1/0;Pt(Math.min(i,1),Math.max(s,e.length))}if(ft(y.xAxis)&&e.length>y.xAxis.categories.length&&(e=e.slice(0,y.xAxis.categories.length)),Tt||ei(e),ft(y.xAxis)&&(t=y.xAxis.categories.map((i,s)=>[i,e[s]])),j(y.xAxis)){const i=y.xAxis.min,s=y.xAxis.max;if(e.length===1)t=[[`${i}`,e[0]]];else{const a=(s-i)/(e.length-1);t=e.map((o,l)=>[`${i+l*a}`,o])}}return t}n(Et,"transformDataWithoutCategory");function It(e){return _t[e===0?0:e%_t.length]}n(It,"getPlotColorFromPalette");function si(e,t){const i=t.map(l=>l.value),s=t.map(l=>l.label?ut(l.label):""),a=Et(i),o=s.some(l=>l!=="");y.plots.push({type:"line",strokeFill:It(ht),strokeWidth:2,data:a,...o?{pointLabels:s}:{}}),ht++}n(si,"setLineData");function ai(e,t){const i=t.map(a=>a.value),s=Et(i);y.plots.push({type:"bar",fill:It(ht),data:s}),ht++}n(ai,"setBarData");function ni(){if(y.plots.length===0)throw Error("No Plot to render, please provide a plot with some data");return y.title=Yt(),Bi.build(lt,y,ct,jt)}n(ni,"getDrawableElem");function oi(){return ct}n(oi,"getChartThemeConfig");function ri(){return lt}n(ri,"getChartConfig");function hi(){return y}n(hi,"getXYChartData");var Vi=n(function(){Ai(),ht=0,lt=vt(),y=Lt(),ct=Dt(),_t=ct.plotColorPalette.split(",").map(e=>e.trim()),pt=!1,Tt=!1},"clear"),Oi={getDrawableElem:ni,clear:Vi,setAccTitle:mi,getAccTitle:pi,setDiagramTitle:fi,getDiagramTitle:Yt,getAccDescription:di,setAccDescription:xi,setOrientation:Kt,setXAxisTitle:Zt,setXAxisRangeData:Pt,setXAxisBand:Jt,setYAxisTitle:ti,setYAxisRangeData:ii,setLineData:si,setBarData:ai,setTmpSVGG:Qt,getChartThemeConfig:oi,getChartConfig:ri,getXYChartData:hi},Wi=n((e,t,i,s)=>{const a=s.db,o=a.getChartThemeConfig(),l=a.getChartConfig(),p=a.getXYChartData().plots[0].data.map(m=>m[1]);function d(m){return m==="top"?"text-before-edge":"middle"}n(d,"getDominantBaseLine");function k(m){return m==="left"?"start":m==="right"?"end":"middle"}n(k,"getTextAnchor");function T(m){return`translate(${m.x}, ${m.y}) rotate(${m.rotation||0})`}n(T,"getTextTransformation"),Nt.debug(`Rendering xychart chart
7
+ `+e);const _=yi(t),b=_.append("g").attr("class","main"),E=b.append("rect").attr("width",l.width).attr("height",l.height).attr("class","background");bi(_,l.height,l.width,!0),_.attr("viewBox",`0 0 ${l.width} ${l.height}`),E.attr("fill",o.backgroundColor),a.setTmpSVGG(_.append("g").attr("class","mermaid-tmp-group"));const L=a.getDrawableElem(),P={};function I(m){let D=b,c="";for(const[B]of m.entries()){let W=b;B>0&&P[c]&&(W=P[c]),c+=m[B],D=P[c],D||(D=P[c]=W.append("g").attr("class",m[B]))}return D}n(I,"getGroup");for(const m of L){if(m.data.length===0)continue;const D=I(m.groupTexts);switch(m.type){case"rect":if(D.selectAll("rect").data(m.data).enter().append("rect").attr("x",c=>c.x).attr("y",c=>c.y).attr("width",c=>c.width).attr("height",c=>c.height).attr("fill",c=>c.fill).attr("stroke",c=>c.strokeFill).attr("stroke-width",c=>c.strokeWidth),l.showDataLabel){const c=l.showDataLabelOutsideBar;if(l.chartOrientation==="horizontal"){let B=function(w,V){const{data:R,label:ot}=w;return V*ot.length*W<=R.width-X};n(B,"fitsHorizontally");const W=.7,X=10,Y=m.data.map((w,V)=>({data:w,label:p[V].toString()})).filter(w=>w.data.width>0&&w.data.height>0),S=Y.map(w=>{const{data:V}=w;let R=V.height*.7;for(;!B(w,R)&&R>0;)R-=1;return R}),H=Math.floor(Math.min(...S)),A=n(w=>c?w.data.x+w.data.width+X:w.data.x+w.data.width-X,"determineLabelXPosition");D.selectAll("text").data(Y).enter().append("text").attr("x",A).attr("y",w=>w.data.y+w.data.height/2).attr("text-anchor",c?"start":"end").attr("dominant-baseline","middle").attr("fill",o.dataLabelColor).attr("font-size",`${H}px`).text(w=>w.label)}else{let B=function(A,w,V){const{data:R,label:ot}=A,F=w*ot.length*.7,h=R.x+R.width/2,u=h-F/2,g=h+F/2,x=u>=R.x&&g<=R.x+R.width,C=R.y+V+w<=R.y+R.height;return x&&C};n(B,"fitsInBar");const W=10,X=m.data.map((A,w)=>({data:A,label:p[w].toString()})).filter(A=>A.data.width>0&&A.data.height>0),Y=X.map(A=>{const{data:w,label:V}=A;let R=w.width/(V.length*.7);for(;!B(A,R,W)&&R>0;)R-=1;return R}),S=Math.floor(Math.min(...Y)),H=n(A=>c?A.data.y-W:A.data.y+W,"determineLabelYPosition");D.selectAll("text").data(X).enter().append("text").attr("x",A=>A.data.x+A.data.width/2).attr("y",H).attr("text-anchor","middle").attr("dominant-baseline",c?"auto":"hanging").attr("fill",o.dataLabelColor).attr("font-size",`${S}px`).text(A=>A.label)}}break;case"text":D.selectAll("text").data(m.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",c=>c.fill).attr("font-size",c=>c.fontSize).attr("dominant-baseline",c=>d(c.verticalPos)).attr("text-anchor",c=>k(c.horizontalPos)).attr("transform",c=>T(c)).text(c=>c.text);break;case"path":D.selectAll("path").data(m.data).enter().append("path").attr("d",c=>c.path).attr("fill",c=>c.fill?c.fill:"none").attr("stroke",c=>c.strokeFill).attr("stroke-width",c=>c.strokeWidth);break}}},"draw"),Fi={draw:Wi},Gi={parser:Di,db:Oi,renderer:Fi};export{Gi as diagram};
@@ -4,15 +4,15 @@
4
4
  <meta charset="utf-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1" />
6
6
  <title>Pi-Studio</title>
7
- <script type="module" crossorigin src="/assets/index-BFBJrHUp.js"></script>
7
+ <script type="module" crossorigin src="/assets/index-C-gDLAhS.js"></script>
8
8
  <link rel="modulepreload" crossorigin href="/assets/vendor-react-DQUAl2K8.js">
9
- <link rel="modulepreload" crossorigin href="/assets/vendor-query-DhxQd-Xj.js">
10
- <link rel="modulepreload" crossorigin href="/assets/vendor-CKGvrx4M.js">
11
- <link rel="modulepreload" crossorigin href="/assets/vendor-icons-C8b9N6AX.js">
12
- <link rel="modulepreload" crossorigin href="/assets/vendor-overlays-DWX2bju9.js">
9
+ <link rel="modulepreload" crossorigin href="/assets/vendor-query-i7fr__Xm.js">
10
+ <link rel="modulepreload" crossorigin href="/assets/vendor-DVp0ZLQo.js">
11
+ <link rel="modulepreload" crossorigin href="/assets/vendor-icons-CQPWxe0u.js">
12
+ <link rel="modulepreload" crossorigin href="/assets/vendor-overlays-BfyojyuH.js">
13
13
  <link rel="modulepreload" crossorigin href="/assets/vendor-dnd-CayJj8TC.js">
14
14
  <link rel="stylesheet" crossorigin href="/assets/vendor-CEK31ho9.css">
15
- <link rel="stylesheet" crossorigin href="/assets/index-CLKr9fTl.css">
15
+ <link rel="stylesheet" crossorigin href="/assets/index-DNsKUhP1.css">
16
16
  </head>
17
17
  <body>
18
18
  <div id="root"></div>
package/package.json CHANGED
@@ -1,8 +1,10 @@
1
1
  {
2
2
  "name": "@av-pi-studio/web-client",
3
- "version": "0.0.80",
3
+ "version": "0.0.82",
4
4
  "files": [
5
- "dist"
5
+ "dist",
6
+ "!dist/**/*.map",
7
+ "!dist/.tsbuildinfo"
6
8
  ],
7
9
  "type": "module",
8
10
  "scripts": {
@@ -13,9 +15,9 @@
13
15
  "typecheck": "tsc -p tsconfig.json --noEmit",
14
16
  "clean": "rm -rf dist *.tsbuildinfo"
15
17
  },
16
- "dependencies": {
17
- "@av-pi-studio/client": "^0.0.80",
18
- "@av-pi-studio/protocol": "^0.0.80",
18
+ "devDependencies": {
19
+ "@av-pi-studio/client": "^0.0.82",
20
+ "@av-pi-studio/protocol": "^0.0.82",
19
21
  "@codemirror/language": "^6.12.4",
20
22
  "@codemirror/language-data": "^6.5.2",
21
23
  "@codemirror/state": "^6.7.1",
@@ -31,8 +33,12 @@
31
33
  "@radix-ui/react-tooltip": "^1.2.11",
32
34
  "@tanstack/react-query": "^5.101.2",
33
35
  "@tanstack/react-virtual": "^3.14.5",
36
+ "@testing-library/react": "^16.1.0",
37
+ "@types/react": "^19.2.17",
38
+ "@types/react-dom": "^19.2.3",
34
39
  "@uiw/codemirror-theme-github": "^4.25.11",
35
40
  "@uiw/react-codemirror": "^4.25.11",
41
+ "@vitejs/plugin-react": "^4.7.0",
36
42
  "@xterm/addon-fit": "^0.10.0",
37
43
  "@xterm/xterm": "^5.5.0",
38
44
  "clsx": "^2.1.1",
@@ -48,14 +54,8 @@
48
54
  "remark-gfm": "^4.0.1",
49
55
  "remark-math": "^6.0.0",
50
56
  "shiki": "^1.29.2",
57
+ "vite": "^6.4.3",
51
58
  "zod": "^3.23.0",
52
59
  "zustand": "^5.0.14"
53
- },
54
- "devDependencies": {
55
- "@testing-library/react": "^16.1.0",
56
- "@types/react": "^19.2.17",
57
- "@types/react-dom": "^19.2.3",
58
- "@vitejs/plugin-react": "^4.7.0",
59
- "vite": "^6.4.3"
60
60
  }
61
61
  }
package/dist/.tsbuildinfo DELETED
@@ -1 +0,0 @@
1
- {"version":"7.0.2","root":["../src/app.tsx","../src/css-modules.d.ts","../src/main.tsx","../src/vite-env.d.ts","../src/brand/brand-logo.ts","../src/brand/config.ts","../src/brand/index.ts","../src/brand/theme-injection.ts","../src/components/primitives/Avatar.tsx","../src/components/primitives/Button.tsx","../src/components/primitives/Checkbox.tsx","../src/components/primitives/Dialog.tsx","../src/components/primitives/Divider.tsx","../src/components/primitives/EmptyState.tsx","../src/components/primitives/Icon.tsx","../src/components/primitives/IconButton.tsx","../src/components/primitives/Menu.tsx","../src/components/primitives/Panel.tsx","../src/components/primitives/ResizeHandle.tsx","../src/components/primitives/ScreenTitle.tsx","../src/components/primitives/ScrollArea.tsx","../src/components/primitives/Select.tsx","../src/components/primitives/Shortcut.tsx","../src/components/primitives/Spinner.tsx","../src/components/primitives/StatusBadge.tsx","../src/components/primitives/StatusDot.tsx","../src/components/primitives/Surface.tsx","../src/components/primitives/Switch.tsx","../src/components/primitives/TextInput.tsx","../src/components/primitives/helpers.ts","../src/components/primitives/index.ts","../src/components/primitives/useHover.ts","../src/features/chat/Attachments.tsx","../src/features/chat/ChatPanel.tsx","../src/features/chat/CommandMenu.tsx","../src/features/chat/Composer.tsx","../src/features/chat/ModelMenu.tsx","../src/features/chat/Timeline.tsx","../src/features/chat/TurnProgressBar.tsx","../src/features/chat/model-menu-sort.test.ts","../src/features/chat/model-menu-sort.ts","../src/features/chat/slash-commands.test.ts","../src/features/chat/slash-commands.ts","../src/features/chat/use-bottom-anchor.ts","../src/features/chat/rows/AssistantRow.tsx","../src/features/chat/rows/ErrorRow.tsx","../src/features/chat/rows/ReasoningRow.tsx","../src/features/chat/rows/RowShell.tsx","../src/features/chat/rows/SystemRow.tsx","../src/features/chat/rows/ToolCard.tsx","../src/features/chat/rows/UserRow.tsx","../src/features/connection/ConnectionStatus.tsx","../src/features/connection/Toolbar.tsx","../src/features/files/BinaryFallbackViewer.tsx","../src/features/files/CodeView.tsx","../src/features/files/DiffView.tsx","../src/features/files/FileContextMenu.tsx","../src/features/files/FileExplorer.tsx","../src/features/files/FilePanel.tsx","../src/features/files/ImageViewer.tsx","../src/features/files/MarkdownFileViewer.tsx","../src/features/files/MoleculeViewer.test.ts","../src/features/files/MoleculeViewer.tsx","../src/features/files/MoleculeViewerPanel.tsx","../src/features/files/RightSidebar.tsx","../src/features/files/TextViewer.tsx","../src/features/files/TreeDraftRow.tsx","../src/features/files/TreeNode.tsx","../src/features/files/TreeRenameRow.tsx","../src/features/files/VideoViewer.tsx","../src/features/files/create-entry.ts","../src/features/files/delete-entry.ts","../src/features/files/file-tree.test.ts","../src/features/files/file-tree.ts","../src/features/files/git-status-index.test.ts","../src/features/files/git-status-index.ts","../src/features/files/molecule-reload.ts","../src/features/files/molecule-source.ts","../src/features/files/molecule-theme.ts","../src/features/files/move-entry.ts","../src/features/files/move-status.test.ts","../src/features/files/move-status.ts","../src/features/files/move-target.test.ts","../src/features/files/move-target.ts","../src/features/files/open-file-tab.ts","../src/features/files/polymer-file.ts","../src/features/files/text-viewer-state.test.ts","../src/features/files/text-viewer-state.ts","../src/features/files/viewer-registry.test.ts","../src/features/files/viewer-registry.ts","../src/features/files/write-file.ts","../src/features/git/ChangesPanel.tsx","../src/features/sessions/SessionContextMenu.tsx","../src/features/sessions/SessionItem.tsx","../src/features/sessions/SessionList.tsx","../src/features/sessions/WorkspaceContextMenu.tsx","../src/features/sessions/WorkspaceGroupHeader.tsx","../src/features/sessions/open-chat-tab.ts","../src/features/sessions/open-workspace.ts","../src/features/sessions/status-map.ts","../src/features/sessions/workspace-grouping.test.ts","../src/features/sessions/workspace-grouping.ts","../src/features/terminal/TerminalPanel.tsx","../src/features/terminal/terminal-size.test.ts","../src/features/terminal/terminal-size.ts","../src/features/workspace/DropPreview.tsx","../src/features/workspace/PaneDividers.tsx","../src/features/workspace/StatusBar.tsx","../src/features/workspace/TabPanelHost.tsx","../src/features/workspace/TabStrip.tsx","../src/features/workspace/external-drag.test.ts","../src/features/workspace/external-drag.ts","../src/features/workspace/pane-dnd.test.ts","../src/features/workspace/pane-dnd.ts","../src/features/workspace/pane-layout-view.test.ts","../src/features/workspace/pane-layout-view.ts","../src/features/workspace/pane-tree.test.ts","../src/features/workspace/pane-tree.ts","../src/features/workspace/panel-registry.ts","../src/features/workspace/reopen-client-tabs.test.ts","../src/features/workspace/reopen-client-tabs.ts","../src/features/workspace/restore-active-workspace.test.ts","../src/features/workspace/restore-active-workspace.ts","../src/features/workspace/status-bar-format.test.ts","../src/features/workspace/status-bar-format.ts","../src/features/workspace/tab-attention.test.ts","../src/features/workspace/tab-attention.ts","../src/features/workspace-picker/OpenWorkspaceDialog.tsx","../src/hooks/agent-stream-events.ts","../src/hooks/file-text-state.test.ts","../src/hooks/file-text-state.ts","../src/hooks/file-transfer-instance.ts","../src/hooks/restore-hydration.test.ts","../src/hooks/use-agent-commands.ts","../src/hooks/use-agent-stream.ts","../src/hooks/use-checkout-status.ts","../src/hooks/use-connection.ts","../src/hooks/use-explorer-tree.ts","../src/hooks/use-explorer-watch.test.ts","../src/hooks/use-explorer-watch.ts","../src/hooks/use-explorer.ts","../src/hooks/use-external-pane-drop.test.ts","../src/hooks/use-external-pane-drop.ts","../src/hooks/use-file-diff.ts","../src/hooks/use-file-download.ts","../src/hooks/use-file-live-refresh.test.ts","../src/hooks/use-file-live-refresh.ts","../src/hooks/use-file-read.test.ts","../src/hooks/use-file-read.ts","../src/hooks/use-file-text.ts","../src/hooks/use-file-transfer.ts","../src/hooks/use-file-watch.test.ts","../src/hooks/use-file-watch.ts","../src/hooks/use-home-dir.ts","../src/hooks/use-inline-image.test.ts","../src/hooks/use-inline-image.ts","../src/hooks/use-pane-drag.ts","../src/hooks/use-pane-layout.ts","../src/hooks/use-provider-models.ts","../src/hooks/use-session-restore.test.ts","../src/hooks/use-session-restore.ts","../src/hooks/use-session-stats.test.ts","../src/hooks/use-session-stats.ts","../src/hooks/use-shortcuts.ts","../src/hooks/use-terminal-restore.ts","../src/lib/clipboard.ts","../src/lib/inline-image-cache.test.ts","../src/lib/inline-image-cache.ts","../src/lib/pane-layout-persistence.test.ts","../src/lib/pane-layout-persistence.ts","../src/lib/paths.test.ts","../src/lib/paths.ts","../src/lib/promise-with-resolvers.d.ts","../src/lib/connection/connection-store.ts","../src/lib/connection/files-changed.ts","../src/lib/connection/normalize-url.test.ts","../src/lib/connection/normalize-url.ts","../src/lib/connection/query-client.ts","../src/lib/connection/resolve-connect-target.test.ts","../src/lib/connection/resolve-connect-target.ts","../src/lib/connection/resume-action.test.ts","../src/lib/connection/resume-action.ts","../src/lib/connection/resume-triggers.ts","../src/lib/connection/rpc-keys.ts","../src/lib/connection/worker-timers.test.ts","../src/lib/connection/worker-timers.ts","../src/lib/protocol/events.test.ts","../src/lib/protocol/events.ts","../src/lib/protocol/timeline-paging.test.ts","../src/lib/protocol/timeline-paging.ts","../src/platform/breakpoints.ts","../src/providers/AppProviders.tsx","../src/providers/kv-store.ts","../src/routes/WorkspacePage.tsx","../src/stores/explorer-store.test.ts","../src/stores/explorer-store.ts","../src/stores/git-store.test.ts","../src/stores/git-store.ts","../src/stores/layout-store.test.ts","../src/stores/layout-store.ts","../src/stores/materialize.test.ts","../src/stores/materialize.ts","../src/stores/session-store.test.ts","../src/stores/session-store.ts","../src/stores/stats-store.test.ts","../src/stores/stats-store.ts","../src/stores/tab-store.test.ts","../src/stores/tab-store.ts","../src/stores/ui-store.ts","../src/test/reset-stores.ts","../src/theme/ThemeBoundary.tsx","../src/theme/appearance-store.ts","../src/theme/color-utils.ts","../src/theme/colors.ts","../src/theme/css-bridge.ts","../src/theme/font-scale.test.ts","../src/theme/index.ts","../src/theme/palette.ts","../src/theme/theme.ts","../src/theme/token-integrity.test.ts","../src/theme/tokens.ts","../src/theme/variants.ts","../src/timeline/FileLink.tsx","../src/timeline/InlineImage.tsx","../src/timeline/bottom-anchor.test.ts","../src/timeline/bottom-anchor.ts","../src/timeline/file-link-src.test.ts","../src/timeline/file-link-src.ts","../src/timeline/file-open-target.test.ts","../src/timeline/file-open-target.ts","../src/timeline/format-meta-time.test.ts","../src/timeline/format-meta-time.ts","../src/timeline/highlight.ts","../src/timeline/href-resolution.ts","../src/timeline/image-src.test.ts","../src/timeline/image-src.ts","../src/timeline/inline-image-view.test.ts","../src/timeline/inline-image-view.ts","../src/timeline/markdown.test.ts","../src/timeline/markdown.tsx","../src/timeline/mermaid-theme.test.ts","../src/timeline/mermaid-theme.ts","../src/timeline/reducer.test.ts","../src/timeline/reducer.ts","../src/timeline/row-model.ts","../src/timeline/streaming-split.test.ts","../src/timeline/streaming-split.ts","../src/timeline/tool-mapping.test.ts","../src/timeline/tool-mapping.ts","../src/ui/avatar.ts","../src/ui/button.ts","../src/ui/combobox.ts","../src/ui/index.ts","../src/ui/screen-header.ts","../src/ui/shortcut.ts","../src/ui/status-badge.ts","../src/ui/status-dot.ts","../src/ui/toast.ts"],"packageJsons":["../../../node_modules/@babel/runtime/package.json","../../../node_modules/@codemirror/autocomplete/package.json","../../../node_modules/@codemirror/commands/package.json","../../../node_modules/@codemirror/language-data/package.json","../../../node_modules/@codemirror/language/package.json","../../../node_modules/@codemirror/lint/package.json","../../../node_modules/@codemirror/search/package.json","../../../node_modules/@codemirror/state/package.json","../../../node_modules/@codemirror/theme-one-dark/package.json","../../../node_modules/@codemirror/view/package.json","../../../node_modules/@dnd-kit/core/package.json","../../../node_modules/@dnd-kit/sortable/package.json","../../../node_modules/@dnd-kit/utilities/package.json","../../../node_modules/@iconify/types/package.json","../../../node_modules/@iconify/utils/package.json","../../../node_modules/@lezer/common/package.json","../../../node_modules/@lezer/highlight/package.json","../../../node_modules/@lezer/lr/package.json","../../../node_modules/@molviewer/core/node_modules/molstar/package.json","../../../node_modules/@molviewer/core/package.json","../../../node_modules/@radix-ui/react-arrow/package.json","../../../node_modules/@radix-ui/react-context/package.json","../../../node_modules/@radix-ui/react-dialog/package.json","../../../node_modules/@radix-ui/react-dismissable-layer/package.json","../../../node_modules/@radix-ui/react-dropdown-menu/package.json","../../../node_modules/@radix-ui/react-focus-scope/package.json","../../../node_modules/@radix-ui/react-menu/package.json","../../../node_modules/@radix-ui/react-popper/package.json","../../../node_modules/@radix-ui/react-portal/package.json","../../../node_modules/@radix-ui/react-primitive/package.json","../../../node_modules/@radix-ui/react-roving-focus/package.json","../../../node_modules/@radix-ui/rect/package.json","../../../node_modules/@shikijs/core/package.json","../../../node_modules/@shikijs/engine-javascript/package.json","../../../node_modules/@shikijs/engine-oniguruma/package.json","../../../node_modules/@shikijs/types/package.json","../../../node_modules/@shikijs/vscode-textmate/package.json","../../../node_modules/@tanstack/query-core/package.json","../../../node_modules/@tanstack/react-query/package.json","../../../node_modules/@tanstack/react-virtual/package.json","../../../node_modules/@tanstack/virtual-core/package.json","../../../node_modules/@types/d3-array/package.json","../../../node_modules/@types/d3-axis/package.json","../../../node_modules/@types/d3-brush/package.json","../../../node_modules/@types/d3-chord/package.json","../../../node_modules/@types/d3-color/package.json","../../../node_modules/@types/d3-contour/package.json","../../../node_modules/@types/d3-delaunay/package.json","../../../node_modules/@types/d3-dispatch/package.json","../../../node_modules/@types/d3-drag/package.json","../../../node_modules/@types/d3-dsv/package.json","../../../node_modules/@types/d3-ease/package.json","../../../node_modules/@types/d3-fetch/package.json","../../../node_modules/@types/d3-force/package.json","../../../node_modules/@types/d3-format/package.json","../../../node_modules/@types/d3-geo/package.json","../../../node_modules/@types/d3-hierarchy/package.json","../../../node_modules/@types/d3-interpolate/package.json","../../../node_modules/@types/d3-path/package.json","../../../node_modules/@types/d3-polygon/package.json","../../../node_modules/@types/d3-quadtree/package.json","../../../node_modules/@types/d3-random/package.json","../../../node_modules/@types/d3-scale-chromatic/package.json","../../../node_modules/@types/d3-scale/package.json","../../../node_modules/@types/d3-selection/package.json","../../../node_modules/@types/d3-shape/package.json","../../../node_modules/@types/d3-time-format/package.json","../../../node_modules/@types/d3-time/package.json","../../../node_modules/@types/d3-timer/package.json","../../../node_modules/@types/d3-transition/package.json","../../../node_modules/@types/d3-zoom/package.json","../../../node_modules/@types/d3/package.json","../../../node_modules/@types/estree/package.json","../../../node_modules/@types/geojson/package.json","../../../node_modules/@types/hast/package.json","../../../node_modules/@types/katex/package.json","../../../node_modules/@types/mdast/package.json","../../../node_modules/@types/node/package.json","../../../node_modules/@types/react-dom/package.json","../../../node_modules/@types/react/package.json","../../../node_modules/@types/trusted-types/package.json","../../../node_modules/@types/unist/package.json","../../../node_modules/@uiw/codemirror-extensions-basic-setup/esm/package.json","../../../node_modules/@uiw/codemirror-extensions-basic-setup/package.json","../../../node_modules/@uiw/codemirror-theme-github/esm/package.json","../../../node_modules/@uiw/codemirror-theme-github/package.json","../../../node_modules/@uiw/codemirror-themes/esm/package.json","../../../node_modules/@uiw/codemirror-themes/package.json","../../../node_modules/@uiw/react-codemirror/esm/package.json","../../../node_modules/@uiw/react-codemirror/package.json","../../../node_modules/@vitest/expect/package.json","../../../node_modules/@vitest/mocker/package.json","../../../node_modules/@vitest/pretty-format/package.json","../../../node_modules/@vitest/runner/package.json","../../../node_modules/@vitest/snapshot/package.json","../../../node_modules/@vitest/spy/package.json","../../../node_modules/@vitest/utils/package.json","../../../node_modules/@xterm/addon-fit/package.json","../../../node_modules/@xterm/xterm/package.json","../../../node_modules/chai/package.json","../../../node_modules/clsx/package.json","../../../node_modules/codemirror/package.json","../../../node_modules/csstype/package.json","../../../node_modules/d3-array/package.json","../../../node_modules/d3-axis/package.json","../../../node_modules/d3-brush/package.json","../../../node_modules/d3-chord/package.json","../../../node_modules/d3-color/package.json","../../../node_modules/d3-contour/package.json","../../../node_modules/d3-delaunay/package.json","../../../node_modules/d3-dispatch/package.json","../../../node_modules/d3-drag/package.json","../../../node_modules/d3-dsv/package.json","../../../node_modules/d3-ease/package.json","../../../node_modules/d3-fetch/package.json","../../../node_modules/d3-force/package.json","../../../node_modules/d3-format/package.json","../../../node_modules/d3-geo/package.json","../../../node_modules/d3-hierarchy/package.json","../../../node_modules/d3-interpolate/package.json","../../../node_modules/d3-path/package.json","../../../node_modules/d3-polygon/package.json","../../../node_modules/d3-quadtree/package.json","../../../node_modules/d3-random/package.json","../../../node_modules/d3-scale-chromatic/package.json","../../../node_modules/d3-scale/package.json","../../../node_modules/d3-selection/package.json","../../../node_modules/d3-shape/package.json","../../../node_modules/d3-time-format/package.json","../../../node_modules/d3-time/package.json","../../../node_modules/d3-timer/package.json","../../../node_modules/d3-transition/package.json","../../../node_modules/d3-zoom/package.json","../../../node_modules/d3/package.json","../../../node_modules/dagre-d3-es/package.json","../../../node_modules/dompurify/package.json","../../../node_modules/esbuild/package.json","../../../node_modules/expect-type/package.json","../../../node_modules/hast-util-to-html/package.json","../../../node_modules/immer/package.json","../../../node_modules/katex/package.json","../../../node_modules/markdown-table/package.json","../../../node_modules/mdast-util-from-markdown/package.json","../../../node_modules/mdast-util-gfm-footnote/package.json","../../../node_modules/mdast-util-gfm-table/package.json","../../../node_modules/mdast-util-gfm/package.json","../../../node_modules/mdast-util-math/package.json","../../../node_modules/mdast-util-to-hast/package.json","../../../node_modules/mdast-util-to-markdown/package.json","../../../node_modules/mermaid/package.json","../../../node_modules/micromark-extension-gfm-footnote/package.json","../../../node_modules/micromark-extension-gfm-strikethrough/package.json","../../../node_modules/micromark-extension-gfm/package.json","../../../node_modules/micromark-util-types/package.json","../../../node_modules/oniguruma-to-es/dist/esm/package.json","../../../node_modules/oniguruma-to-es/package.json","../../../node_modules/postcss/package.json","../../../node_modules/property-information/package.json","../../../node_modules/react-dom/package.json","../../../node_modules/react-markdown/package.json","../../../node_modules/react/package.json","../../../node_modules/rehype-katex/node_modules/katex/package.json","../../../node_modules/rehype-katex/package.json","../../../node_modules/remark-gfm/package.json","../../../node_modules/remark-math/package.json","../../../node_modules/remark-rehype/package.json","../../../node_modules/rollup/package.json","../../../node_modules/shiki/package.json","../../../node_modules/source-map-js/package.json","../../../node_modules/stringify-entities/package.json","../../../node_modules/style-mod/package.json","../../../node_modules/tinybench/package.json","../../../node_modules/tinyrainbow/package.json","../../../node_modules/trough/package.json","../../../node_modules/tweetnacl/package.json","../../../node_modules/undici-types/package.json","../../../node_modules/unified/package.json","../../../node_modules/vfile-message/package.json","../../../node_modules/vfile/package.json","../../../node_modules/vite-node/package.json","../../../node_modules/vite/package.json","../../../node_modules/vite/types/package.json","../../../node_modules/vitest/package.json","../../../node_modules/zod/package.json","../../../node_modules/zustand/package.json","../../client/package.json","../../protocol/package.json","../node_modules/lucide-react/package.json","../package.json"],"missingPackageJsons":["../../../node_modules/@codemirror/language-data/dist/package.json","../../../node_modules/@codemirror/language/dist/package.json","../../../node_modules/@codemirror/state/dist/package.json","../../../node_modules/@codemirror/theme-one-dark/dist/package.json","../../../node_modules/@codemirror/view/dist/package.json","../../../node_modules/@dnd-kit/core/dist/components/Accessibility/components/package.json","../../../node_modules/@dnd-kit/core/dist/components/Accessibility/package.json","../../../node_modules/@dnd-kit/core/dist/components/DndContext/package.json","../../../node_modules/@dnd-kit/core/dist/components/DndMonitor/package.json","../../../node_modules/@dnd-kit/core/dist/components/DragOverlay/components/AnimationManager/package.json","../../../node_modules/@dnd-kit/core/dist/components/DragOverlay/components/NullifiedContextProvider/package.json","../../../node_modules/@dnd-kit/core/dist/components/DragOverlay/components/PositionedOverlay/package.json","../../../node_modules/@dnd-kit/core/dist/components/DragOverlay/components/package.json","../../../node_modules/@dnd-kit/core/dist/components/DragOverlay/hooks/package.json","../../../node_modules/@dnd-kit/core/dist/components/DragOverlay/package.json","../../../node_modules/@dnd-kit/core/dist/components/package.json","../../../node_modules/@dnd-kit/core/dist/hooks/package.json","../../../node_modules/@dnd-kit/core/dist/hooks/utilities/package.json","../../../node_modules/@dnd-kit/core/dist/modifiers/package.json","../../../node_modules/@dnd-kit/core/dist/package.json","../../../node_modules/@dnd-kit/core/dist/sensors/keyboard/package.json","../../../node_modules/@dnd-kit/core/dist/sensors/mouse/package.json","../../../node_modules/@dnd-kit/core/dist/sensors/package.json","../../../node_modules/@dnd-kit/core/dist/sensors/pointer/package.json","../../../node_modules/@dnd-kit/core/dist/sensors/touch/package.json","../../../node_modules/@dnd-kit/core/dist/store/package.json","../../../node_modules/@dnd-kit/core/dist/types/package.json","../../../node_modules/@dnd-kit/core/dist/utilities/algorithms/package.json","../../../node_modules/@dnd-kit/core/dist/utilities/coordinates/package.json","../../../node_modules/@dnd-kit/core/dist/utilities/other/package.json","../../../node_modules/@dnd-kit/core/dist/utilities/package.json","../../../node_modules/@dnd-kit/core/dist/utilities/rect/package.json","../../../node_modules/@dnd-kit/core/dist/utilities/scroll/package.json","../../../node_modules/@dnd-kit/sortable/dist/components/package.json","../../../node_modules/@dnd-kit/sortable/dist/hooks/package.json","../../../node_modules/@dnd-kit/sortable/dist/package.json","../../../node_modules/@dnd-kit/sortable/dist/sensors/keyboard/package.json","../../../node_modules/@dnd-kit/sortable/dist/sensors/package.json","../../../node_modules/@dnd-kit/sortable/dist/strategies/package.json","../../../node_modules/@dnd-kit/sortable/dist/types/package.json","../../../node_modules/@dnd-kit/sortable/dist/utilities/package.json","../../../node_modules/@dnd-kit/utilities/dist/coordinates/package.json","../../../node_modules/@dnd-kit/utilities/dist/coordinates/types/package.json","../../../node_modules/@dnd-kit/utilities/dist/event/package.json","../../../node_modules/@dnd-kit/utilities/dist/execution-context/package.json","../../../node_modules/@dnd-kit/utilities/dist/focus/package.json","../../../node_modules/@dnd-kit/utilities/dist/hooks/package.json","../../../node_modules/@dnd-kit/utilities/dist/package.json","../../../node_modules/@dnd-kit/utilities/dist/type-guards/package.json","../../../node_modules/@edge-runtime/vm/package.json","../../../node_modules/@iconify/utils/lib/colors/package.json","../../../node_modules/@iconify/utils/lib/css/package.json","../../../node_modules/@iconify/utils/lib/customisations/package.json","../../../node_modules/@iconify/utils/lib/emoji/package.json","../../../node_modules/@iconify/utils/lib/emoji/regex/package.json","../../../node_modules/@iconify/utils/lib/emoji/replace/package.json","../../../node_modules/@iconify/utils/lib/emoji/test/package.json","../../../node_modules/@iconify/utils/lib/icon-set/package.json","../../../node_modules/@iconify/utils/lib/icon/package.json","../../../node_modules/@iconify/utils/lib/loader/package.json","../../../node_modules/@iconify/utils/lib/misc/package.json","../../../node_modules/@iconify/utils/lib/package.json","../../../node_modules/@iconify/utils/lib/svg/package.json","../../../node_modules/@lezer/common/dist/package.json","../../../node_modules/@lezer/highlight/dist/package.json","../../../node_modules/@lezer/lr/dist/package.json","../../../node_modules/@molviewer/core/dist/package.json","../../../node_modules/@molviewer/core/dist/types/core/geometry/package.json","../../../node_modules/@molviewer/core/dist/types/core/model/package.json","../../../node_modules/@molviewer/core/dist/types/core/package.json","../../../node_modules/@molviewer/core/dist/types/core/parse/package.json","../../../node_modules/@molviewer/core/dist/types/core/parse/readers/package.json","../../../node_modules/@molviewer/core/dist/types/core/pipeline/package.json","../../../node_modules/@molviewer/core/dist/types/core/serialize/package.json","../../../node_modules/@molviewer/core/dist/types/engine/molstar/package.json","../../../node_modules/@molviewer/core/dist/types/engine/package.json","../../../node_modules/@molviewer/core/dist/types/package.json","../../../node_modules/@molviewer/core/dist/types/ui/package.json","../../../node_modules/@molviewer/core/dist/types/ui/state/package.json","../../../node_modules/@molviewer/core/node_modules/@types/molstar/lib/mol-plugin-ui/skin/dark.scss/package.json","../../../node_modules/@molviewer/core/node_modules/@types/molstar/package.json","../../../node_modules/@molviewer/core/node_modules/@types/react/package.json","../../../node_modules/@molviewer/core/node_modules/molstar/lib/mol-plugin-ui/skin/dark.scss/package.json","../../../node_modules/@molviewer/core/node_modules/react/package.json","../../../node_modules/@molviewer/core/style.css/package.json","../../../node_modules/@radix-ui/react-arrow/dist/package.json","../../../node_modules/@radix-ui/react-context/dist/package.json","../../../node_modules/@radix-ui/react-dialog/dist/package.json","../../../node_modules/@radix-ui/react-dismissable-layer/dist/package.json","../../../node_modules/@radix-ui/react-dropdown-menu/dist/package.json","../../../node_modules/@radix-ui/react-focus-scope/dist/package.json","../../../node_modules/@radix-ui/react-menu/dist/package.json","../../../node_modules/@radix-ui/react-popper/dist/package.json","../../../node_modules/@radix-ui/react-portal/dist/package.json","../../../node_modules/@radix-ui/react-primitive/dist/package.json","../../../node_modules/@radix-ui/react-roving-focus/dist/package.json","../../../node_modules/@radix-ui/rect/dist/package.json","../../../node_modules/@shikijs/core/dist/package.json","../../../node_modules/@shikijs/core/types/package.json","../../../node_modules/@shikijs/engine-javascript/dist/package.json","../../../node_modules/@shikijs/engine-javascript/dist/shared/package.json","../../../node_modules/@shikijs/engine-oniguruma/dist/package.json","../../../node_modules/@shikijs/engine-oniguruma/wasm-inlined/package.json","../../../node_modules/@shikijs/types/dist/package.json","../../../node_modules/@shikijs/vscode-textmate/dist/package.json","../../../node_modules/@tanstack/query-core/build/modern/package.json","../../../node_modules/@tanstack/query-core/build/package.json","../../../node_modules/@tanstack/react-query/build/modern/package.json","../../../node_modules/@tanstack/react-query/build/package.json","../../../node_modules/@tanstack/react-virtual/dist/esm/package.json","../../../node_modules/@tanstack/react-virtual/dist/package.json","../../../node_modules/@tanstack/virtual-core/dist/esm/package.json","../../../node_modules/@tanstack/virtual-core/dist/package.json","../../../node_modules/@types/assert/package.json","../../../node_modules/@types/assert/strict/package.json","../../../node_modules/@types/async_hooks/package.json","../../../node_modules/@types/buffer/package.json","../../../node_modules/@types/chai/package.json","../../../node_modules/@types/child_process/package.json","../../../node_modules/@types/cluster/package.json","../../../node_modules/@types/console/package.json","../../../node_modules/@types/constants/package.json","../../../node_modules/@types/crypto/package.json","../../../node_modules/@types/dgram/package.json","../../../node_modules/@types/diagnostics_channel/package.json","../../../node_modules/@types/dns/package.json","../../../node_modules/@types/dns/promises/package.json","../../../node_modules/@types/domain/package.json","../../../node_modules/@types/events/package.json","../../../node_modules/@types/fs/package.json","../../../node_modules/@types/fs/promises/package.json","../../../node_modules/@types/http/package.json","../../../node_modules/@types/http2/package.json","../../../node_modules/@types/https/package.json","../../../node_modules/@types/inspector/package.json","../../../node_modules/@types/inspector/promises/package.json","../../../node_modules/@types/katex/dist/katex.min.css/package.json","../../../node_modules/@types/module/package.json","../../../node_modules/@types/molstar/lib/mol-plugin-ui/skin/dark.scss/package.json","../../../node_modules/@types/molstar/package.json","../../../node_modules/@types/molviewer__core/package.json","../../../node_modules/@types/molviewer__core/style.css/package.json","../../../node_modules/@types/net/package.json","../../../node_modules/@types/node/assert/package.json","../../../node_modules/@types/node/compatibility/package.json","../../../node_modules/@types/node/dns/package.json","../../../node_modules/@types/node/fs/package.json","../../../node_modules/@types/node/readline/package.json","../../../node_modules/@types/node/stream/package.json","../../../node_modules/@types/node/timers/package.json","../../../node_modules/@types/node/web-globals/package.json","../../../node_modules/@types/os/package.json","../../../node_modules/@types/path/package.json","../../../node_modules/@types/path/posix/package.json","../../../node_modules/@types/path/win32/package.json","../../../node_modules/@types/perf_hooks/package.json","../../../node_modules/@types/process/package.json","../../../node_modules/@types/punycode/package.json","../../../node_modules/@types/querystring/package.json","../../../node_modules/@types/react-dom/client/package.json","../../../node_modules/@types/react/jsx-runtime/package.json","../../../node_modules/@types/readline/package.json","../../../node_modules/@types/readline/promises/package.json","../../../node_modules/@types/repl/package.json","../../../node_modules/@types/stream/consumers/package.json","../../../node_modules/@types/stream/package.json","../../../node_modules/@types/stream/promises/package.json","../../../node_modules/@types/stream/web/package.json","../../../node_modules/@types/string_decoder/package.json","../../../node_modules/@types/timers/package.json","../../../node_modules/@types/timers/promises/package.json","../../../node_modules/@types/tls/package.json","../../../node_modules/@types/trace_events/package.json","../../../node_modules/@types/trusted-types/lib/index.js/package.json","../../../node_modules/@types/trusted-types/lib/package.json","../../../node_modules/@types/tty/package.json","../../../node_modules/@types/type-fest/package.json","../../../node_modules/@types/url/package.json","../../../node_modules/@types/util/package.json","../../../node_modules/@types/util/types/package.json","../../../node_modules/@types/v8/package.json","../../../node_modules/@types/vm/package.json","../../../node_modules/@types/wasi/package.json","../../../node_modules/@types/worker_threads/package.json","../../../node_modules/@types/xterm__xterm/css/xterm.css/package.json","../../../node_modules/@types/xterm__xterm/package.json","../../../node_modules/@types/zlib/package.json","../../../node_modules/@uiw/react-codemirror/esm/theme/package.json","../../../node_modules/@vitest/browser/package.json","../../../node_modules/@vitest/expect/dist/package.json","../../../node_modules/@vitest/mocker/dist/package.json","../../../node_modules/@vitest/pretty-format/dist/package.json","../../../node_modules/@vitest/runner/dist/package.json","../../../node_modules/@vitest/runner/utils/package.json","../../../node_modules/@vitest/snapshot/dist/package.json","../../../node_modules/@vitest/snapshot/environment/package.json","../../../node_modules/@vitest/snapshot/manager/package.json","../../../node_modules/@vitest/spy/dist/package.json","../../../node_modules/@vitest/ui/package.json","../../../node_modules/@vitest/utils/diff/package.json","../../../node_modules/@vitest/utils/dist/package.json","../../../node_modules/@vitest/utils/error/package.json","../../../node_modules/@vitest/utils/source-map/package.json","../../../node_modules/@xterm/addon-fit/typings/package.json","../../../node_modules/@xterm/xterm/css/xterm.css/package.json","../../../node_modules/@xterm/xterm/typings/package.json","../../../node_modules/assert/package.json","../../../node_modules/assert/strict/package.json","../../../node_modules/async_hooks/package.json","../../../node_modules/buffer/package.json","../../../node_modules/child_process/package.json","../../../node_modules/cluster/package.json","../../../node_modules/console/package.json","../../../node_modules/constants/package.json","../../../node_modules/crypto/package.json","../../../node_modules/dagre-d3-es/src/dagre-js/intersect/package.json","../../../node_modules/dagre-d3-es/src/dagre-js/package.json","../../../node_modules/dagre-d3-es/src/graphlib/package.json","../../../node_modules/dagre-d3-es/src/package.json","../../../node_modules/dgram/package.json","../../../node_modules/diagnostics_channel/package.json","../../../node_modules/dns/package.json","../../../node_modules/dns/promises/package.json","../../../node_modules/domain/package.json","../../../node_modules/dompurify/dist/package.json","../../../node_modules/esbuild/lib/package.json","../../../node_modules/estree/package.json","../../../node_modules/events/package.json","../../../node_modules/expect-type/dist/package.json","../../../node_modules/fs/package.json","../../../node_modules/fs/promises/package.json","../../../node_modules/geojson/package.json","../../../node_modules/happy-dom/package.json","../../../node_modules/hast-util-to-html/lib/package.json","../../../node_modules/hast/package.json","../../../node_modules/http/package.json","../../../node_modules/http2/package.json","../../../node_modules/https/package.json","../../../node_modules/inspector/package.json","../../../node_modules/inspector/promises/package.json","../../../node_modules/jsdom/package.json","../../../node_modules/katex/dist/katex.min.css/package.json","../../../node_modules/less/package.json","../../../node_modules/lightningcss/package.json","../../../node_modules/mdast-util-from-markdown/lib/package.json","../../../node_modules/mdast-util-gfm-footnote/lib/package.json","../../../node_modules/mdast-util-gfm-table/lib/package.json","../../../node_modules/mdast-util-gfm/lib/package.json","../../../node_modules/mdast-util-math/lib/package.json","../../../node_modules/mdast-util-to-hast/lib/handlers/package.json","../../../node_modules/mdast-util-to-hast/lib/package.json","../../../node_modules/mdast-util-to-markdown/lib/handle/package.json","../../../node_modules/mdast-util-to-markdown/lib/package.json","../../../node_modules/mdast/package.json","../../../node_modules/mermaid/dist/diagram-api/package.json","../../../node_modules/mermaid/dist/diagrams/git/package.json","../../../node_modules/mermaid/dist/diagrams/package.json","../../../node_modules/mermaid/dist/package.json","../../../node_modules/mermaid/dist/rendering-util/package.json","../../../node_modules/mermaid/dist/rendering-util/rendering-elements/clusters/package.json","../../../node_modules/mermaid/dist/rendering-util/rendering-elements/package.json","../../../node_modules/mermaid/dist/rendering-util/rendering-elements/shapes/package.json","../../../node_modules/mermaid/node_modules/@iconify/types/package.json","../../../node_modules/mermaid/node_modules/@iconify/utils/package.json","../../../node_modules/mermaid/node_modules/d3-selection/package.json","../../../node_modules/mermaid/node_modules/d3/package.json","../../../node_modules/mermaid/node_modules/dagre-d3-es/package.json","../../../node_modules/mermaid/node_modules/dompurify/package.json","../../../node_modules/mermaid/node_modules/type-fest/package.json","../../../node_modules/micromark-extension-gfm-footnote/lib/package.json","../../../node_modules/micromark-extension-gfm-strikethrough/lib/package.json","../../../node_modules/module/package.json","../../../node_modules/molstar/lib/mol-plugin-ui/skin/dark.scss/package.json","../../../node_modules/molstar/package.json","../../../node_modules/msw/package.json","../../../node_modules/net/package.json","../../../node_modules/os/package.json","../../../node_modules/path/package.json","../../../node_modules/path/posix/package.json","../../../node_modules/path/win32/package.json","../../../node_modules/perf_hooks/package.json","../../../node_modules/postcss/lib/package.json","../../../node_modules/process/package.json","../../../node_modules/property-information/lib/package.json","../../../node_modules/property-information/lib/util/package.json","../../../node_modules/punycode/package.json","../../../node_modules/querystring/package.json","../../../node_modules/react-dom/client/package.json","../../../node_modules/react-markdown/lib/package.json","../../../node_modules/react/jsx-runtime/package.json","../../../node_modules/readline/package.json","../../../node_modules/readline/promises/package.json","../../../node_modules/rehype-katex/lib/package.json","../../../node_modules/rehype-katex/node_modules/hast/package.json","../../../node_modules/rehype-katex/node_modules/katex/types/package.json","../../../node_modules/rehype-katex/node_modules/vfile/package.json","../../../node_modules/remark-gfm/lib/package.json","../../../node_modules/remark-math/lib/package.json","../../../node_modules/remark-rehype/lib/package.json","../../../node_modules/repl/package.json","../../../node_modules/rollup/dist/package.json","../../../node_modules/rollup/parseAst/package.json","../../../node_modules/sass-embedded/package.json","../../../node_modules/sass/package.json","../../../node_modules/shiki/dist/package.json","../../../node_modules/shiki/dist/types/package.json","../../../node_modules/stream/consumers/package.json","../../../node_modules/stream/package.json","../../../node_modules/stream/promises/package.json","../../../node_modules/stream/web/package.json","../../../node_modules/string_decoder/package.json","../../../node_modules/stringify-entities/lib/package.json","../../../node_modules/stringify-entities/lib/util/package.json","../../../node_modules/style-mod/src/package.json","../../../node_modules/stylus/package.json","../../../node_modules/sugarss/package.json","../../../node_modules/terser/package.json","../../../node_modules/timers/package.json","../../../node_modules/timers/promises/package.json","../../../node_modules/tinybench/dist/package.json","../../../node_modules/tinyrainbow/dist/package.json","../../../node_modules/tls/package.json","../../../node_modules/trace_events/package.json","../../../node_modules/trough/lib/package.json","../../../node_modules/trusted-types/lib/index.js/package.json","../../../node_modules/trusted-types/package.json","../../../node_modules/tty/package.json","../../../node_modules/type-fest/package.json","../../../node_modules/unified/lib/package.json","../../../node_modules/unist/package.json","../../../node_modules/url/package.json","../../../node_modules/use-sync-external-store/package.json","../../../node_modules/util/package.json","../../../node_modules/util/types/package.json","../../../node_modules/v8/package.json","../../../node_modules/vfile-message/lib/package.json","../../../node_modules/vfile/lib/package.json","../../../node_modules/vite-node/client/package.json","../../../node_modules/vite-node/dist/package.json","../../../node_modules/vite-node/server/package.json","../../../node_modules/vite/dist/node/package.json","../../../node_modules/vite/dist/package.json","../../../node_modules/vitest/dist/chunks/package.json","../../../node_modules/vitest/dist/package.json","../../../node_modules/vitest/node_modules/@vitest/expect/package.json","../../../node_modules/vitest/node_modules/@vitest/mocker/package.json","../../../node_modules/vitest/node_modules/@vitest/pretty-format/package.json","../../../node_modules/vitest/node_modules/@vitest/runner/package.json","../../../node_modules/vitest/node_modules/@vitest/runner/utils/package.json","../../../node_modules/vitest/node_modules/@vitest/snapshot/environment/package.json","../../../node_modules/vitest/node_modules/@vitest/snapshot/manager/package.json","../../../node_modules/vitest/node_modules/@vitest/snapshot/package.json","../../../node_modules/vitest/node_modules/@vitest/spy/package.json","../../../node_modules/vitest/node_modules/@vitest/utils/diff/package.json","../../../node_modules/vitest/node_modules/@vitest/utils/package.json","../../../node_modules/vitest/node_modules/@vitest/utils/source-map/package.json","../../../node_modules/vitest/node_modules/chai/package.json","../../../node_modules/vitest/node_modules/expect-type/package.json","../../../node_modules/vitest/node_modules/tinybench/package.json","../../../node_modules/vitest/node_modules/vite-node/client/package.json","../../../node_modules/vitest/node_modules/vite-node/package.json","../../../node_modules/vitest/node_modules/vite-node/server/package.json","../../../node_modules/vitest/node_modules/vite/package.json","../../../node_modules/vm/package.json","../../../node_modules/wasi/package.json","../../../node_modules/worker_threads/package.json","../../../node_modules/zlib/package.json","../../../node_modules/zod/v3/helpers/package.json","../../../node_modules/zod/v3/locales/package.json","../../../node_modules/zod/v3/package.json","../../../node_modules/zustand/esm/package.json","../node_modules/@av-pi-studio/client/package.json","../node_modules/@av-pi-studio/protocol/package.json","../node_modules/@codemirror/language-data/package.json","../node_modules/@codemirror/language/package.json","../node_modules/@codemirror/state/package.json","../node_modules/@codemirror/view/package.json","../node_modules/@dnd-kit/core/package.json","../node_modules/@dnd-kit/sortable/package.json","../node_modules/@dnd-kit/utilities/package.json","../node_modules/@molviewer/core/package.json","../node_modules/@molviewer/core/style.css/package.json","../node_modules/@radix-ui/react-dialog/package.json","../node_modules/@radix-ui/react-dropdown-menu/package.json","../node_modules/@tanstack/react-query/package.json","../node_modules/@tanstack/react-virtual/package.json","../node_modules/@uiw/codemirror-theme-github/package.json","../node_modules/@uiw/react-codemirror/package.json","../node_modules/@xterm/addon-fit/package.json","../node_modules/@xterm/xterm/css/xterm.css/package.json","../node_modules/@xterm/xterm/package.json","../node_modules/clsx/package.json","../node_modules/katex/dist/katex.min.css/package.json","../node_modules/katex/package.json","../node_modules/lucide-react/dist/package.json","../node_modules/mermaid/package.json","../node_modules/react-dom/client/package.json","../node_modules/react-dom/package.json","../node_modules/react-markdown/package.json","../node_modules/react/jsx-runtime/package.json","../node_modules/react/package.json","../node_modules/rehype-katex/package.json","../node_modules/remark-gfm/package.json","../node_modules/remark-math/package.json","../node_modules/shiki/package.json","../node_modules/tweetnacl/package.json","../node_modules/vitest/package.json","../node_modules/zod/package.json","../node_modules/zustand/package.json"]}
@@ -1 +0,0 @@
1
- var f=Object.defineProperty;var d=(e,r,t)=>r in e?f(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t;var n=(e,r,t)=>d(e,typeof r!="symbol"?r+"":r,t);import{u as m}from"./vendor-query-DhxQd-Xj.js";import{a as p,r as g}from"./index-BFBJrHUp.js";import{j as u,r as l}from"./vendor-react-DQUAl2K8.js";import{N as h,O as w,P as x,Q as y,S as E,T as _}from"./vendor-CKGvrx4M.js";class F extends Error{constructor(t,a){super("file_too_large");n(this,"size");n(this,"maxBytes");this.name="FileTooLargeError",this.size=t,this.maxBytes=a}}function R(e){if(!e.ok)throw e.error==="file_too_large"?new F(e.size??0,e.maxBytes):new Error(e.error??"file read failed");return{content:e.content??"",size:e.size??0}}function v(e,r=!0){const t=p(a=>a.client);return m({queryKey:g.fileRead(e),queryFn:async()=>{if(!t)throw new Error("not connected");const a=await t.connection.request("file_read_request",{path:e});return R(a)},enabled:!!t&&!!e&&r})}const z="_wrap_1feu3_1",B={wrap:z},c=new Map;function C(e){const[r,t]=l.useState(null);return l.useEffect(()=>{const a=E.matchFilename(_,e);if(!a){t(null);return}const s=c.get(a.name);if(s){t(s);return}let o=!1;return t(null),a.load().then(i=>{c.set(a.name,i),o||t(i)}),()=>{o=!0}},[e]),r?[r]:[]}function K({path:e,content:r}){const t=C(e),a=[h.lineWrapping,w(),...t];return u.jsx("div",{className:B.wrap,children:u.jsx(x,{value:r,theme:y,extensions:a,editable:!1,readOnly:!0,basicSetup:{highlightActiveLine:!1,foldGutter:!1,searchKeymap:!1},height:"100%"})})}export{K as C,F,v as u};