`+s+"^"},"showPosition"),test_match:u(function(c,s){var r,g,p;if(this.options.backtrack_lexer&&(p={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&&(p.yylloc.range=this.yylloc.range.slice(0))),g=c[0].match(/(?:\r\n?|\n).*/g),g&&(this.yylineno+=g.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:g?g[g.length-1].length-g[g.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+c[0].length},this.yytext+=c[0],this.match+=c[0],this.matches=c,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(c[0].length),this.matched+=c[0],r=this.performAction.call(this,this.yy,this,s,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var t in p)this[t]=p[t];return!1}return!1},"test_match"),next:u(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var c,s,r,g;this._more||(this.yytext="",this.match="");for(var p=this._currentRules(),t=0;t<p.length;t++)if(r=this._input.match(this.rules[p[t]]),r&&(!s||r[0].length>s[0].length)){if(s=r,g=t,this.options.backtrack_lexer){if(c=this.test_match(r,p[t]),c!==!1)return c;if(this._backtrack){s=!1;continue}else return!1}else if(!this.options.flex)break}return s?(c=this.test_match(s,p[g]),c!==!1?c:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`.Unrecognizedtext.
`,"getStyles"),pt=dt,fe,Se,y=((Se=(fe=Le())==null?void 0:fe.block)==null?void 0:Se.padding)??8;function we(e,l){if(e===0||!Number.isInteger(e))throw new Error("Columns must be an integer !== 0.");if(l<0||!Number.isInteger(l))throw new Error("Position must be a non-negative integer."+l);if(e<0)return{px:l,py:0};if(e===1)return{px:0,py:l};const h=l%e,n=Math.floor(l/e);return{px:h,py:n}}u(we,"calculateBlockPosition");var ft=u(e=>{let l=0,h=0;for(const n of e.children){const{width:i,height:d,x:o,y:f}=n.size??{width:0,height:0,x:0,y:0};L.debug("getMaxChildSize abc95 child:",n.id,"width:",i,"height:",d,"x:",o,"y:",f,n.type),n.type!=="space"&&(i>l&&(l=i/(e.widthInColumns??1)),d>h&&(h=d))}return{width:l,height:h}},"getMaxChildSize");function J(e,l,h=0,n=0){var o,f,S,m,x,_,O,I,D,C,E;L.debug("setBlockSizes abc95 (start)",e.id,(o=e==null?void 0:e.size)==null?void 0:o.x,"block width =",e==null?void 0:e.size,"sieblingWidth",h),(f=e==null?void 0:e.size)!=null&&f.width||(e.size={width:h,height:n,x:0,y:0});let i=0,d=0;if(((S=e.children)==null?void 0:S.length)>0){for(const p of e.children)J(p,l);const k=ft(e);i=k.width,d=k.height,L.debug("setBlockSizes abc95 maxWidth of",e.id,":s children is ",i,d);for(const p of e.children)p.size&&(L.debug(`abc95Settingsizeofchildrenof${e.id}id=${p.id}${i}${d}${JSON.stringify(p.size)}`),p.size.width=i*(p.widthInColumns??1)+y*((p.widthInColumns??1)-1),p.size.height=d,p.size.x=0,p.size.y=0,L.debug(`abc95updatingsizeof${e.id}childrenchild:${p.id}maxWidth:${i}maxHeight:${d}`));for(const p of e.children)J(p,l,i,d);const v=e.columns??-1;let N=0;for(const p of e.children)N+=p.widthInColumns??1;let c=e.children.length;v>0&&v<N&&(c=v);const s=Math.ceil(N/c);let r=c*(i+y)+y,g=s*(d+y)+y;if(r<h){L.debug(`Detectedtosmallsiebling:abc95${e.id}sieblingWidth${h}sieblingHeight${n}width${r}`),r=h,g=n;const p=(h-c*y-y)/c,t=(n-s*y-y)/s;L.debug("Size indata abc88",e.id,"childWidth",p,"maxWidth",i),L.debug("Size indata abc88",e.id,"childHeight",t,"maxHeight",d),L.debug("Size indata abc88 xSize",c,"padding",y);for(const b of e.children)b.size&&(b.size.width=p,b.size.height=t,b.size.x=0,b.size.y=0)}if(L.debug(`abc95(finalecalc)${e.id}xSize${c}ySize${s}columns${v}${e.children.length}width=${Math.max(r,((m=e.size)==null?void0:m.width)||0)}`),r<(((x=e==null?void 0:e.size)==null?void 0:x.width)||0)){r=((_=e==null?void 0:e.size)==null?void 0:_.width)||0;const p=v>0?Math.min(e.children.length,v):e.children.length;if(p>0){const t=(r-p*y-y)/p;L.debug("abc95 (growing to fit) width",e.id,r,(O=e.size)==null?void 0:O.width,t);for(const b of e.children)b.size&&(b.size.width=t)}}e.size={width:r,height:g,x:0,y:0}}L.debug("setBlockSizes abc94 (done)",e.id,(I=e==null?void 0:e.size)==null?void 0:I.x,(D=e==null?void 0:e.size)==null?void 0:D.width,(C=e==null?void 0:e.size)==null?void 0:C.y,(E=e==null?void 0:e.size)==null?void 0:E.height)}u(J,"setBlockSizes");function oe(e,l){var n,i,d,o,f,S,m,x,_,O,I,D,C,E,k,v,N;L.debug(`abc85layoutblocks(=>layoutBlocks)${e.id}x:${(n=e==null?void0:e.size)==null?void0:n.x}y:${(i=e==null?void0:e.size)==null?void0:i.y}width:${(d=e==null?void0:e.size)==null?void0:d.width}`);const h=e.columns??-1;if(L.debug("layoutBlocks columns abc95",e.id,"=>",h,e),e.children&&e.children.length>0){const c=((f=(o=e==null?void 0:e.children[0])==null?void 0:o.size)==null?void 0:f.width)??0,s=e.children.length*c+(e.children.length-1)*y;L.debug("widthOfChildren 88",s,"posX");let r=0;L.debug("abc91 block?.size?.x",e.id,(S=e==null?void 0:e.size)==null?void 0:S.x);let g=(m=e==null?void 0:e.size)!=null&&m.x?((x=e==null?void 0:e.size)==null?void 0:x.x)+(-((_=e==null?void 0:e.size)==null?void 0:_.width)/2||0):-y,p=0;for(const t of e.children){const b=e;if(!t.size)continue;const{width:a,height:P}=t.size,{px:W,py:K}=we(h,r);if(K!=p&&(p=K,g=(O=e==null?void 0:e.size)!=null&&O.x?((I=e==null?void 0:e.size)==null?void 0:I.x)+(-((D=e==null?void 0:e.size)==null?void 0:D.width)/2||0):-y,L.debug("New row in layout for block",e.id," and child ",t.id,p)),L.debug(`abc89layoutblocks(child)id:${t.id