import{__exports as r}from"../../../../_virtual/drawTable.mjs";import{__require as e}from"./drawBorder.mjs";import{__require as a}from"./drawContent.mjs";import{__require as o}from"./drawRow.mjs";import{__require as t}from"./utils.mjs";var n;function i(){if(n)return r;n=1,Object.defineProperty(r,"__esModule",{value:!0}),r.drawTable=void 0;const i=e(),s=a(),m=o(),d=t();return r.drawTable=(r,e,a,o)=>{const{drawHorizontalLine:t,singleLine:n}=o,l=(0,d.groupBySizes)(r,a).map((r,e)=>r.map(r=>(0,m.drawRow)(r,{...o,rowIndex:e})).join(""));return(0,s.drawContent)({contents:l,drawSeparator:(r,e)=>(0===r||r===e||!n)&&t(r,e),elementType:"row",rowIndex:-1,separatorGetter:(0,i.createTableBorderGetter)(e,{...o,rowCount:l.length}),spanningCellManager:o.spanningCellManager})},r}export{i as __require};