@layers-app/editor 0.5.1 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -0
- package/dist/index.d.ts +315 -0
- package/dist/index.js +13 -0
- package/dist/layers.-R5PibOa.js +10 -0
- package/dist/layers.-mkaUFzn.js +65 -0
- package/dist/layers.1XpBjqYP.js +1 -0
- package/dist/layers.2Ibk-yAi.js +10 -0
- package/dist/layers.3DsBPqy5.js +10 -0
- package/dist/layers.4OVSS-76.js +320 -0
- package/dist/layers.52famHy6.js +1 -0
- package/dist/layers.7JqFgE4-.js +15 -0
- package/dist/layers.9Su9jHuK.js +9 -0
- package/dist/layers.9pNaFvaX.js +1 -0
- package/dist/layers.9rNftyw-.js +40 -0
- package/dist/layers.B-6jN1Zn.js +41 -0
- package/dist/layers.B0JnuQf0.js +11 -0
- package/dist/layers.B0dbAkLw.js +11 -0
- package/dist/layers.B19MhDZN.js +1265 -0
- package/dist/layers.B19hGmey.js +1 -0
- package/dist/layers.B1IDMpWZ.js +32 -0
- package/dist/layers.B1VK1Umd.js +41 -0
- package/dist/layers.B2IHCuq4.js +202 -0
- package/dist/layers.B2OBW6d_.js +1 -0
- package/dist/layers.B2RJoL8j.js +8 -0
- package/dist/layers.B3D4g2HH.js +1 -0
- package/dist/layers.B66ctuSP.js +1 -0
- package/dist/layers.B9uP5ibo.js +1619 -0
- package/dist/layers.BAtv1CM7.js +1 -0
- package/dist/layers.BDlQMLta.js +1034 -0
- package/dist/layers.BFlW1eUA.js +1088 -0
- package/dist/layers.BIRU7ZCl.js +35 -0
- package/dist/layers.BIeVwYKL.js +1 -0
- package/dist/layers.BJDrjORS.js +244 -0
- package/dist/layers.BJOHTiQN.js +1 -0
- package/dist/layers.BKLAyg9f.js +34 -0
- package/dist/layers.BKktUt3V.js +425 -0
- package/dist/layers.BLZg3-j8.js +44 -0
- package/dist/layers.BLd2spTm.js +1 -0
- package/dist/layers.BPHDdk7q.js +6 -0
- package/dist/layers.BQYTL9KT.js +4 -0
- package/dist/layers.BSTBZrFn.js +1 -0
- package/dist/layers.BUbQisBD.js +40 -0
- package/dist/layers.BY5MS01o.js +304 -0
- package/dist/layers.BY5x-OCj.js +1359 -0
- package/dist/layers.BZYqdVEt.js +5 -0
- package/dist/layers.B_blLMys.js +7 -0
- package/dist/layers.Bau1Nn-R.js +1 -0
- package/dist/layers.BbCfEXyj.js +55 -0
- package/dist/layers.BdC79PeD.js +8 -0
- package/dist/layers.BeQxuBmo.js +373 -0
- package/dist/layers.BgOa2ZQq.js +7 -0
- package/dist/layers.BhoEY-tV.js +1 -0
- package/dist/layers.BiJ8hfRt.js +1510 -0
- package/dist/layers.BipydXP9.js +437 -0
- package/dist/layers.BjNcxnlF.js +40 -0
- package/dist/layers.BjkZnui0.js +6 -0
- package/dist/layers.BjlXrUqq.js +1 -0
- package/dist/layers.BmEnHWGn.js +1126 -0
- package/dist/layers.Bm_lyqCL.js +6 -0
- package/dist/layers.Bo0o9BXc.js +61 -0
- package/dist/layers.Bowu41KP.js +791 -0
- package/dist/layers.BpVuHPkZ.js +33 -0
- package/dist/layers.BpilXLfW.js +6 -0
- package/dist/layers.BptubpVI.js +37 -0
- package/dist/layers.Bq8EFsFh.js +3 -0
- package/dist/layers.Brr7ESXx.js +2 -0
- package/dist/layers.BsTKIt_N.js +19 -0
- package/dist/layers.BshQq6Az.js +189 -0
- package/dist/layers.BsuVfEWr.js +1 -0
- package/dist/layers.Bwphu0_-.js +41 -0
- package/dist/layers.BxBoiyiz.js +2 -0
- package/dist/layers.BxqlTEGI.js +39 -0
- package/dist/layers.BznUuBVb.js +1 -0
- package/dist/layers.C0Lgw_Sx.js +11688 -0
- package/dist/layers.C24uY6Fe.js +931 -0
- package/dist/layers.C2fRZH80.js +1 -0
- package/dist/layers.C3KcBscd.js +1 -0
- package/dist/layers.C4CXznF_.js +37 -0
- package/dist/layers.C7M6CfP5.js +42 -0
- package/dist/layers.C7eXel2I.js +7 -0
- package/dist/layers.C8_lu5UH.js +23 -0
- package/dist/layers.CAm5BKM7.js +1 -0
- package/dist/layers.CBUXk-09.js +11 -0
- package/dist/layers.CDEWhNHi.js +10 -0
- package/dist/layers.CDL3opya.js +8 -0
- package/dist/layers.CE4FK9O5.js +40 -0
- package/dist/layers.CF-302Fh.js +9 -0
- package/dist/layers.CHZsXQcr.js +1 -0
- package/dist/layers.CHmvLyW1.js +8 -0
- package/dist/layers.CJUngdl8.js +37 -0
- package/dist/layers.CLAvgOJP.js +4 -0
- package/dist/layers.CLgsvcu7.js +10 -0
- package/dist/layers.CM9lYwoQ.js +36 -0
- package/dist/layers.CMMTUOh6.js +39 -0
- package/dist/layers.COYYECPe.js +48146 -0
- package/dist/layers.CQ6g1bgB.js +11 -0
- package/dist/layers.CR1i6QWh.js +803 -0
- package/dist/layers.CRKrzT-Y.js +11 -0
- package/dist/layers.CSNKiqFe.js +8 -0
- package/dist/layers.CSYpl3YM.js +960 -0
- package/dist/layers.CTK5IBtb.js +793 -0
- package/dist/layers.CVUgbWcY.js +21763 -0
- package/dist/layers.CXg7Sg55.js +802 -0
- package/dist/layers.C_RheIIS.js +904 -0
- package/dist/layers.C_eoPPmk.js +13 -0
- package/dist/layers.Ccvu-Dlo.js +1 -0
- package/dist/layers.CdGfvF7V.js +1 -0
- package/dist/layers.Cf9fVqKx.js +21938 -0
- package/dist/layers.Cisk2RXM.js +1 -0
- package/dist/layers.CkXqIRYC.js +38 -0
- package/dist/layers.ClJd7I1M.js +9 -0
- package/dist/layers.ClxhzI7j.js +8 -0
- package/dist/layers.CmqoZAnC.js +2479 -0
- package/dist/layers.CnrBP_N5.js +769 -0
- package/dist/layers.Cob5vYhh.js +5 -0
- package/dist/layers.Coygwekn.js +9 -0
- package/dist/layers.Cp5JhAmO.js +7 -0
- package/dist/layers.CqVTtuYm.js +6 -0
- package/dist/layers.CtHBfow6.js +282 -0
- package/dist/layers.CuoaVZrW.js +41 -0
- package/dist/layers.Cyzu9PKQ.js +1 -0
- package/dist/layers.D-7S1Qn6.js +7 -0
- package/dist/layers.D-cAGd4i.js +41 -0
- package/dist/layers.D-v-3mtK.js +9 -0
- package/dist/layers.D0MGpeyX.js +39 -0
- package/dist/layers.D0lTyC6R.js +35 -0
- package/dist/layers.D0zn4_Mx.js +1 -0
- package/dist/layers.D33cj9e8.js +1 -0
- package/dist/layers.D3A8IuMw.js +42 -0
- package/dist/layers.D40oNXih.js +1580 -0
- package/dist/layers.D4T8fTcj.js +1223 -0
- package/dist/layers.D4ydcUW5.js +7 -0
- package/dist/layers.D7jGxypv.js +8 -0
- package/dist/layers.DByfn15F.js +7 -0
- package/dist/layers.DCrkhQnl.js +9 -0
- package/dist/layers.DDVf9_XJ.js +501 -0
- package/dist/layers.DFF0tKf2.js +9 -0
- package/dist/layers.DGB6f2fp.js +186 -0
- package/dist/layers.DGF-imcj.js +6 -0
- package/dist/layers.DGlLGCMd.js +41 -0
- package/dist/layers.DH7bTclZ.js +1 -0
- package/dist/layers.DHrdv4EX.js +32 -0
- package/dist/layers.DIs-8Ynj.js +35 -0
- package/dist/layers.DIuulfCg.js +32 -0
- package/dist/layers.DJS98Zvr.js +42 -0
- package/dist/layers.DLwuMfdd.js +84 -0
- package/dist/layers.DMh-zb88.js +10 -0
- package/dist/layers.DMkBISW1.js +1 -0
- package/dist/layers.DN9HoVxI.js +18 -0
- package/dist/layers.DNray0Kg.js +51 -0
- package/dist/layers.DO8Lq71I.js +4 -0
- package/dist/layers.DOrgOHBr.js +1 -0
- package/dist/layers.DPg8YVWZ.js +118 -0
- package/dist/layers.DRRAWjJ-.js +84 -0
- package/dist/layers.DSnpK9v9.js +40 -0
- package/dist/layers.DT-qahkC.js +41 -0
- package/dist/layers.DT4gw4t8.js +8 -0
- package/dist/layers.DVjOEkHq.js +295 -0
- package/dist/layers.DW9Z4dLd.js +37 -0
- package/dist/layers.DWIf8ql6.js +8 -0
- package/dist/layers.DWynlv5x.js +1 -0
- package/dist/layers.DXKXZPx3.js +10 -0
- package/dist/layers.DXnKtB68.js +2966 -0
- package/dist/layers.DXr2kWj5.js +36 -0
- package/dist/layers.D_MRmmCY.js +40 -0
- package/dist/layers.D_Q80AXV.js +7 -0
- package/dist/layers.D_i2rLsg.js +46859 -0
- package/dist/layers.D_nCsZyv.js +6 -0
- package/dist/layers.Da1VjmYH.js +122 -0
- package/dist/layers.DaLcxrnP.js +4 -0
- package/dist/layers.DbaKVP5e.js +1 -0
- package/dist/layers.DeIaMdiM.js +2 -0
- package/dist/layers.Df5Qb1Ul.js +220 -0
- package/dist/layers.DfXjhAWm.js +207 -0
- package/dist/layers.Dfev0R1t.js +36 -0
- package/dist/layers.Dfw_b3vF.js +2235 -0
- package/dist/layers.Dh45zDPj.js +7 -0
- package/dist/layers.Di7HIxcn.js +268 -0
- package/dist/layers.DilKJOqa.js +139 -0
- package/dist/layers.DjUOC4st.js +16 -0
- package/dist/layers.DlWfA7qx.js +423 -0
- package/dist/layers.Dlp5s5ci.js +41 -0
- package/dist/layers.Dne14exG.js +14 -0
- package/dist/layers.DqpBjyTk.js +10 -0
- package/dist/layers.DrD0W7B3.js +5 -0
- package/dist/layers.DvdRZk6P.js +39 -0
- package/dist/layers.DxA6ocdw.js +70 -0
- package/dist/layers.DxIjFIXA.js +39 -0
- package/dist/layers.DxzveV49.js +96 -0
- package/dist/layers.Dy1naDTQ.js +14 -0
- package/dist/layers.ETa5WiKT.js +160 -0
- package/dist/layers.G9Ka5gtG.js +39 -0
- package/dist/layers.H0NAWny8.js +33 -0
- package/dist/layers.J8OYHqDO.js +32 -0
- package/dist/layers.JWCLFILJ.js +1 -0
- package/dist/layers.MNsWD8fy.js +139 -0
- package/dist/layers.MbNt5pO7.js +39 -0
- package/dist/layers.MsLi1AaR.js +10 -0
- package/dist/layers.NzblQjNP.js +36 -0
- package/dist/layers.PaRWxJTx.js +1 -0
- package/dist/layers.Pfqcm_x1.js +40 -0
- package/dist/layers.QUgQojU2.js +39 -0
- package/dist/layers.QeRtN6Gq.js +1 -0
- package/dist/layers.Rhe5fmYG.js +38 -0
- package/dist/layers.SuFOjX9h.js +9 -0
- package/dist/layers.UA4MYWds.js +1089 -0
- package/dist/layers.X8WQJwc7.js +70 -0
- package/dist/layers.XOnoorb1.js +116 -0
- package/dist/layers.YS67QCmr.js +40 -0
- package/dist/layers.YfvGPzEu.js +1 -0
- package/dist/layers.ZAlzzwQR.js +59 -0
- package/dist/layers.Zh3IN_BW.js +1283 -0
- package/dist/layers.akd0joBp.js +84 -0
- package/dist/layers.b0h5ZBmD.js +61 -0
- package/dist/layers.bfGibH2F.js +38 -0
- package/dist/layers.chFbbZh9.js +9166 -0
- package/dist/layers.e7K9sNTy.js +32 -0
- package/dist/layers.eOMmuyRq.js +52 -0
- package/dist/layers.f5SObLpT.js +6 -0
- package/dist/layers.ftDLkcXk.js +32 -0
- package/dist/layers.gdeLIrFt.js +10 -0
- package/dist/layers.hGSxVR0w.js +8 -0
- package/dist/layers.hMduvmS1.js +42 -0
- package/dist/layers.hYSHj9J1.js +230 -0
- package/dist/layers.hweLqW3I.js +261 -0
- package/dist/layers.i3cprua-.js +1 -0
- package/dist/layers.lCpg7dOn.js +21 -0
- package/dist/layers.pN-YTLfe.js +1 -0
- package/dist/layers.puGhbMne.js +257 -0
- package/dist/layers.rPpIRTrs.js +39 -0
- package/dist/layers.rfeShEsx.js +40 -0
- package/dist/layers.sf1uvSch.js +1 -0
- package/dist/layers.t3fpEPMO.js +8 -0
- package/dist/layers.v4_WldHC.js +9 -0
- package/dist/layers.vHrsDWns.js +40 -0
- package/dist/layers.yIm62nh0.js +5 -0
- package/dist/layers.z72AWJJl.js +42 -0
- package/dist/layers.zj3cbd1g.js +5 -0
- package/dist/layers.zysZLChz.js +9 -0
- package/package.json +1 -1
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./layers.DxzveV49.js"),U=require("./layers.DO8Lq71I.js"),Ie=require("./layers.BLd2spTm.js");require("./layers.hYSHj9J1.js");const Ae=require("./layers.BjlXrUqq.js"),Ce=require("./layers.B19hGmey.js"),ze=require("./layers.BIeVwYKL.js");function Re(e,r){for(var o=-1,c=e==null?0:e.length;++o<c&&r(e[o],o,e)!==!1;);return e}function xe(e){return u.isArrayLike(e)?u.arrayLikeKeys(e):u.baseKeys(e)}function Be(e,r){return e&&u.copyObject(r,xe(r),e)}function je(e,r){for(var o=-1,c=e==null?0:e.length,i=0,h=[];++o<c;){var l=e[o];r(l,o,e)&&(h[i++]=l)}return h}function Pe(){return[]}var Fe=Object.prototype,Ke=Fe.propertyIsEnumerable,le=Object.getOwnPropertySymbols,Le=le?function(e){return e==null?[]:(e=Object(e),je(le(e),function(r){return Ke.call(e,r)}))}:Pe;function Me(e,r){return u.copyObject(e,Le(e),r)}function Ue(e,r){for(var o=-1,c=r.length,i=e.length;++o<c;)e[i+o]=r[o];return e}function Ye(e,r,o){var c=r(e);return u.isArray(e)?c:Ue(c,o(e))}function We(e){return Ye(e,xe,Le)}var Ve=Object.prototype,Ge=Ve.hasOwnProperty;function qe(e){var r=e.length,o=new e.constructor(r);return r&&typeof e[0]=="string"&&Ge.call(e,"index")&&(o.index=e.index,o.input=e.input),o}function Xe(e,r){var o=e.buffer;return new e.constructor(o,e.byteOffset,e.byteLength)}var He=/\w*$/;function $e(e){var r=new e.constructor(e.source,He.exec(e));return r.lastIndex=e.lastIndex,r}var ce=u.Symbol?u.Symbol.prototype:void 0,ue=ce?ce.valueOf:void 0;function Ze(e){return ue?Object(ue.call(e)):{}}var Je="[object Boolean]",Qe="[object Date]",et="[object Map]",tt="[object Number]",st="[object RegExp]",rt="[object Set]",it="[object String]",nt="[object Symbol]",at="[object ArrayBuffer]",ot="[object DataView]",lt="[object Float32Array]",ct="[object Float64Array]",ut="[object Int8Array]",gt="[object Int16Array]",dt="[object Int32Array]",ht="[object Uint8Array]",pt="[object Uint8ClampedArray]",ft="[object Uint16Array]",bt="[object Uint32Array]";function St(e,r,o){var c=e.constructor;switch(r){case at:return u.cloneArrayBuffer(e);case Je:case Qe:return new c(+e);case ot:return Xe(e);case lt:case ct:case ut:case gt:case dt:case ht:case pt:case ft:case bt:return u.cloneTypedArray(e,o);case et:return new c;case tt:case it:return new c(e);case st:return $e(e);case rt:return new c;case nt:return Ze(e)}}var xt="[object Map]";function Lt(e){return u.isObjectLike(e)&&u.getTag(e)==xt}var ge=u.nodeUtil&&u.nodeUtil.isMap,yt=ge?u.baseUnary(ge):Lt,mt="[object Set]";function _t(e){return u.isObjectLike(e)&&u.getTag(e)==mt}var de=u.nodeUtil&&u.nodeUtil.isSet,Et=de?u.baseUnary(de):_t,wt=1,ye="[object Arguments]",vt="[object Array]",Dt="[object Boolean]",Tt="[object Date]",Nt="[object Error]",me="[object Function]",Ot="[object GeneratorFunction]",kt="[object Map]",It="[object Number]",_e="[object Object]",At="[object RegExp]",Ct="[object Set]",zt="[object String]",Rt="[object Symbol]",Bt="[object WeakMap]",jt="[object ArrayBuffer]",Pt="[object DataView]",Ft="[object Float32Array]",Kt="[object Float64Array]",Mt="[object Int8Array]",Ut="[object Int16Array]",Yt="[object Int32Array]",Wt="[object Uint8Array]",Vt="[object Uint8ClampedArray]",Gt="[object Uint16Array]",qt="[object Uint32Array]",y={};y[ye]=y[vt]=y[jt]=y[Pt]=y[Dt]=y[Tt]=y[Ft]=y[Kt]=y[Mt]=y[Ut]=y[Yt]=y[kt]=y[It]=y[_e]=y[At]=y[Ct]=y[zt]=y[Rt]=y[Wt]=y[Vt]=y[Gt]=y[qt]=!0;y[Nt]=y[me]=y[Bt]=!1;function Z(e,r,o,c,i,h){var l,b=r&wt;if(l!==void 0)return l;if(!u.isObject(e))return e;var S=u.isArray(e);if(S)return l=qe(e),u.copyArray(e,l);var f=u.getTag(e),x=f==me||f==Ot;if(u.isBuffer(e))return u.cloneBuffer(e,b);if(f==_e||f==ye||x&&!i)return l=x?{}:u.initCloneObject(e),Me(e,Be(l,e));if(!y[f])return i?e:{};l=St(e,f,b),h||(h=new u.Stack);var w=h.get(e);if(w)return w;h.set(e,l),Et(e)?e.forEach(function(_){l.add(Z(_,r,o,_,e,h))}):yt(e)&&e.forEach(function(_,L){l.set(L,Z(_,r,o,L,e,h))});var k=We,D=S?void 0:k(e);return Re(D||e,function(_,L){D&&(L=_,_=e[L]),u.assignValue(l,L,Z(_,r,o,L,e,h))}),l}var Xt=4;function Ht(e){return Z(e,Xt)}var he,pe,se=(function(){var e=function(N,g,s,n){for(s=s||{},n=N.length;n--;s[N[n]]=g);return s},r=[1,7],o=[1,13],c=[1,14],i=[1,15],h=[1,19],l=[1,16],b=[1,17],S=[1,18],f=[8,30],x=[8,21,28,29,30,31,32,40,44,47],w=[1,23],k=[1,24],D=[8,15,16,21,28,29,30,31,32,40,44,47],_=[8,15,16,21,27,28,29,30,31,32,40,44,47],L=[1,49],m={trace:function(){},yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,block:31,NODE_ID:32,nodeShapeNLabel:33,dirList:34,DIR:35,NODE_DSTART:36,NODE_DEND:37,BLOCK_ARROW_START:38,BLOCK_ARROW_END:39,classDef:40,CLASSDEF_ID:41,CLASSDEF_STYLEOPTS:42,DEFAULT:43,class:44,CLASSENTITY_IDS:45,STYLECLASS:46,style:47,STYLE_ENTITY_IDS:48,STYLE_DEFINITION_DATA:49,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"block",32:"NODE_ID",35:"DIR",36:"NODE_DSTART",37:"NODE_DEND",38:"BLOCK_ARROW_START",39:"BLOCK_ARROW_END",40:"classDef",41:"CLASSDEF_ID",42:"CLASSDEF_STYLEOPTS",43:"DEFAULT",44:"class",45:"CLASSENTITY_IDS",46:"STYLECLASS",47:"style",48:"STYLE_ENTITY_IDS",49:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[34,1],[34,2],[33,3],[33,4],[23,3],[23,3],[24,3],[25,3]],performAction:function(g,s,n,d,p,t,E){var a=t.length-1;switch(p){case 4:d.getLogger().debug("Rule: separator (NL) ");break;case 5:d.getLogger().debug("Rule: separator (Space) ");break;case 6:d.getLogger().debug("Rule: separator (EOF) ");break;case 7:d.getLogger().debug("Rule: hierarchy: ",t[a-1]),d.setHierarchy(t[a-1]);break;case 8:d.getLogger().debug("Stop NL ");break;case 9:d.getLogger().debug("Stop EOF ");break;case 10:d.getLogger().debug("Stop NL2 ");break;case 11:d.getLogger().debug("Stop EOF2 ");break;case 12:d.getLogger().debug("Rule: statement: ",t[a]),typeof t[a].length=="number"?this.$=t[a]:this.$=[t[a]];break;case 13:d.getLogger().debug("Rule: statement #2: ",t[a-1]),this.$=[t[a-1]].concat(t[a]);break;case 14:d.getLogger().debug("Rule: link: ",t[a],g),this.$={edgeTypeStr:t[a],label:""};break;case 15:d.getLogger().debug("Rule: LABEL link: ",t[a-3],t[a-1],t[a]),this.$={edgeTypeStr:t[a],label:t[a-1]};break;case 18:const B=parseInt(t[a]),Y=d.generateId();this.$={id:Y,type:"space",label:"",width:B,children:[]};break;case 23:d.getLogger().debug("Rule: (nodeStatement link node) ",t[a-2],t[a-1],t[a]," typestr: ",t[a-1].edgeTypeStr);const F=d.edgeStrToEdgeData(t[a-1].edgeTypeStr);this.$=[{id:t[a-2].id,label:t[a-2].label,type:t[a-2].type,directions:t[a-2].directions},{id:t[a-2].id+"-"+t[a].id,start:t[a-2].id,end:t[a].id,label:t[a-1].label,type:"edge",directions:t[a].directions,arrowTypeEnd:F,arrowTypeStart:"arrow_open"},{id:t[a].id,label:t[a].label,type:d.typeStr2Type(t[a].typeStr),directions:t[a].directions}];break;case 24:d.getLogger().debug("Rule: nodeStatement (abc88 node size) ",t[a-1],t[a]),this.$={id:t[a-1].id,label:t[a-1].label,type:d.typeStr2Type(t[a-1].typeStr),directions:t[a-1].directions,widthInColumns:parseInt(t[a],10)};break;case 25:d.getLogger().debug("Rule: nodeStatement (node) ",t[a]),this.$={id:t[a].id,label:t[a].label,type:d.typeStr2Type(t[a].typeStr),directions:t[a].directions,widthInColumns:1};break;case 26:d.getLogger().debug("APA123",this?this:"na"),d.getLogger().debug("COLUMNS: ",t[a]),this.$={type:"column-setting",columns:t[a]==="auto"?-1:parseInt(t[a])};break;case 27:d.getLogger().debug("Rule: id-block statement : ",t[a-2],t[a-1]),d.generateId(),this.$={...t[a-2],type:"composite",children:t[a-1]};break;case 28:d.getLogger().debug("Rule: blockStatement : ",t[a-2],t[a-1],t[a]);const z=d.generateId();this.$={id:z,type:"composite",label:"",children:t[a-1]};break;case 29:d.getLogger().debug("Rule: node (NODE_ID separator): ",t[a]),this.$={id:t[a]};break;case 30:d.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",t[a-1],t[a]),this.$={id:t[a-1],label:t[a].label,typeStr:t[a].typeStr,directions:t[a].directions};break;case 31:d.getLogger().debug("Rule: dirList: ",t[a]),this.$=[t[a]];break;case 32:d.getLogger().debug("Rule: dirList: ",t[a-1],t[a]),this.$=[t[a-1]].concat(t[a]);break;case 33:d.getLogger().debug("Rule: nodeShapeNLabel: ",t[a-2],t[a-1],t[a]),this.$={typeStr:t[a-2]+t[a],label:t[a-1]};break;case 34:d.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",t[a-3],t[a-2]," #3:",t[a-1],t[a]),this.$={typeStr:t[a-3]+t[a],label:t[a-2],directions:t[a-1]};break;case 35:case 36:this.$={type:"classDef",id:t[a-1].trim(),css:t[a].trim()};break;case 37:this.$={type:"applyClass",id:t[a-1].trim(),styleClass:t[a].trim()};break;case 38:this.$={type:"applyStyles",id:t[a-1].trim(),stylesStr:t[a].trim()};break}},table:[{9:1,10:[1,2]},{1:[3]},{11:3,13:4,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:o,29:c,31:i,32:h,40:l,44:b,47:S},{8:[1,20]},e(f,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,21:r,28:o,29:c,31:i,32:h,40:l,44:b,47:S}),e(x,[2,16],{14:22,15:w,16:k}),e(x,[2,17]),e(x,[2,18]),e(x,[2,19]),e(x,[2,20]),e(x,[2,21]),e(x,[2,22]),e(D,[2,25],{27:[1,25]}),e(x,[2,26]),{19:26,26:12,32:h},{11:27,13:4,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:o,29:c,31:i,32:h,40:l,44:b,47:S},{41:[1,28],43:[1,29]},{45:[1,30]},{48:[1,31]},e(_,[2,29],{33:32,36:[1,33],38:[1,34]}),{1:[2,7]},e(f,[2,13]),{26:35,32:h},{32:[2,14]},{17:[1,36]},e(D,[2,24]),{11:37,13:4,14:22,15:w,16:k,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:o,29:c,31:i,32:h,40:l,44:b,47:S},{30:[1,38]},{42:[1,39]},{42:[1,40]},{46:[1,41]},{49:[1,42]},e(_,[2,30]),{18:[1,43]},{18:[1,44]},e(D,[2,23]),{18:[1,45]},{30:[1,46]},e(x,[2,28]),e(x,[2,35]),e(x,[2,36]),e(x,[2,37]),e(x,[2,38]),{37:[1,47]},{34:48,35:L},{15:[1,50]},e(x,[2,27]),e(_,[2,33]),{39:[1,51]},{34:52,35:L,39:[2,31]},{32:[2,15]},e(_,[2,34]),{39:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:function(g,s){if(s.recoverable)this.trace(g);else{var n=new Error(g);throw n.hash=s,n}},parse:function(g){var s=this,n=[0],d=[],p=[null],t=[],E=this.table,a="",B=0,Y=0,F=2,z=1,Ne=t.slice.call(arguments,1),T=Object.create(this.lexer),K={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(K.yy[J]=this.yy[J]);T.setInput(g,K.yy),K.yy.lexer=T,K.yy.parser=this,typeof T.yylloc>"u"&&(T.yylloc={});var Q=T.yylloc;t.push(Q);var Oe=T.options&&T.options.ranges;typeof K.yy.parseError=="function"?this.parseError=K.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ke(){var P;return P=d.pop()||T.lex()||z,typeof P!="number"&&(P instanceof Array&&(d=P,P=d.pop()),P=s.symbols_[P]||P),P}for(var I,M,C,ee,W={},X,j,oe,H;;){if(M=n[n.length-1],this.defaultActions[M]?C=this.defaultActions[M]:((I===null||typeof I>"u")&&(I=ke()),C=E[M]&&E[M][I]),typeof C>"u"||!C.length||!C[0]){var te="";H=[];for(X in E[M])this.terminals_[X]&&X>F&&H.push("'"+this.terminals_[X]+"'");T.showPosition?te="Parse error on line "+(B+1)+`:
|
|
2
|
+
`+T.showPosition()+`
|
|
3
|
+
Expecting `+H.join(", ")+", got '"+(this.terminals_[I]||I)+"'":te="Parse error on line "+(B+1)+": Unexpected "+(I==z?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(te,{text:T.match,token:this.terminals_[I]||I,line:T.yylineno,loc:Q,expected:H})}if(C[0]instanceof Array&&C.length>1)throw new Error("Parse Error: multiple actions possible at state: "+M+", token: "+I);switch(C[0]){case 1:n.push(I),p.push(T.yytext),t.push(T.yylloc),n.push(C[1]),I=null,Y=T.yyleng,a=T.yytext,B=T.yylineno,Q=T.yylloc;break;case 2:if(j=this.productions_[C[1]][1],W.$=p[p.length-j],W._$={first_line:t[t.length-(j||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(j||1)].first_column,last_column:t[t.length-1].last_column},Oe&&(W._$.range=[t[t.length-(j||1)].range[0],t[t.length-1].range[1]]),ee=this.performAction.apply(W,[a,Y,B,K.yy,C[1],p,t].concat(Ne)),typeof ee<"u")return ee;j&&(n=n.slice(0,-1*j*2),p=p.slice(0,-1*j),t=t.slice(0,-1*j)),n.push(this.productions_[C[1]][0]),p.push(W.$),t.push(W._$),oe=E[n[n.length-2]][n[n.length-1]],n.push(oe);break;case 3:return!0}}return!0}},R=(function(){var N={EOF:1,parseError:function(s,n){if(this.yy.parser)this.yy.parser.parseError(s,n);else throw new Error(s)},setInput:function(g,s){return this.yy=s||this.yy||{},this._input=g,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},input:function(){var g=this._input[0];this.yytext+=g,this.yyleng++,this.offset++,this.match+=g,this.matched+=g;var s=g.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),g},unput:function(g){var s=g.length,n=g.split(/(?:\r\n?|\n)/g);this._input=g+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var d=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),n.length-1&&(this.yylineno-=n.length-1);var p=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:n?(n.length===d.length?this.yylloc.first_column:0)+d[d.length-n.length].length-n[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(g){this.unput(this.match.slice(g))},pastInput:function(){var g=this.matched.substr(0,this.matched.length-this.match.length);return(g.length>20?"...":"")+g.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var g=this.match;return g.length<20&&(g+=this._input.substr(0,20-g.length)),(g.substr(0,20)+(g.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var g=this.pastInput(),s=new Array(g.length+1).join("-");return g+this.upcomingInput()+`
|
|
5
|
+
`+s+"^"},test_match:function(g,s){var n,d,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))),d=g[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+g[0].length},this.yytext+=g[0],this.match+=g[0],this.matches=g,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(g[0].length),this.matched+=g[0],n=this.performAction.call(this,this.yy,this,s,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var t in p)this[t]=p[t];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var g,s,n,d;this._more||(this.yytext="",this.match="");for(var p=this._currentRules(),t=0;t<p.length;t++)if(n=this._input.match(this.rules[p[t]]),n&&(!s||n[0].length>s[0].length)){if(s=n,d=t,this.options.backtrack_lexer){if(g=this.test_match(n,p[t]),g!==!1)return g;if(this._backtrack){s=!1;continue}else return!1}else if(!this.options.flex)break}return s?(g=this.test_match(s,p[d]),g!==!1?g:!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})},lex:function(){var s=this.next();return s||this.lex()},begin:function(s){this.conditionStack.push(s)},popState:function(){var s=this.conditionStack.length-1;return s>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(s){return s=this.conditionStack.length-1-Math.abs(s||0),s>=0?this.conditionStack[s]:"INITIAL"},pushState:function(s){this.begin(s)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(s,n,d,p){switch(d){case 0:return 10;case 1:return s.getLogger().debug("Found space-block"),31;case 2:return s.getLogger().debug("Found nl-block"),31;case 3:return s.getLogger().debug("Found space-block"),29;case 4:s.getLogger().debug(".",n.yytext);break;case 5:s.getLogger().debug("_",n.yytext);break;case 6:return 5;case 7:return n.yytext=-1,28;case 8:return n.yytext=n.yytext.replace(/columns\s+/,""),s.getLogger().debug("COLUMNS (LEX)",n.yytext),28;case 9:this.pushState("md_string");break;case 10:return"MD_STR";case 11:this.popState();break;case 12:this.pushState("string");break;case 13:s.getLogger().debug("LEX: POPPING STR:",n.yytext),this.popState();break;case 14:return s.getLogger().debug("LEX: STR end:",n.yytext),"STR";case 15:return n.yytext=n.yytext.replace(/space\:/,""),s.getLogger().debug("SPACE NUM (LEX)",n.yytext),21;case 16:return n.yytext="1",s.getLogger().debug("COLUMNS (LEX)",n.yytext),21;case 17:return 43;case 18:return"LINKSTYLE";case 19:return"INTERPOLATE";case 20:return this.pushState("CLASSDEF"),40;case 21:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 22:return this.popState(),this.pushState("CLASSDEFID"),41;case 23:return this.popState(),42;case 24:return this.pushState("CLASS"),44;case 25:return this.popState(),this.pushState("CLASS_STYLE"),45;case 26:return this.popState(),46;case 27:return this.pushState("STYLE_STMNT"),47;case 28:return this.popState(),this.pushState("STYLE_DEFINITION"),48;case 29:return this.popState(),49;case 30:return this.pushState("acc_title"),"acc_title";case 31:return this.popState(),"acc_title_value";case 32:return this.pushState("acc_descr"),"acc_descr";case 33:return this.popState(),"acc_descr_value";case 34:this.pushState("acc_descr_multiline");break;case 35:this.popState();break;case 36:return"acc_descr_multiline_value";case 37:return 30;case 38:return this.popState(),s.getLogger().debug("Lex: (("),"NODE_DEND";case 39:return this.popState(),s.getLogger().debug("Lex: (("),"NODE_DEND";case 40:return this.popState(),s.getLogger().debug("Lex: ))"),"NODE_DEND";case 41:return this.popState(),s.getLogger().debug("Lex: (("),"NODE_DEND";case 42:return this.popState(),s.getLogger().debug("Lex: (("),"NODE_DEND";case 43:return this.popState(),s.getLogger().debug("Lex: (-"),"NODE_DEND";case 44:return this.popState(),s.getLogger().debug("Lex: -)"),"NODE_DEND";case 45:return this.popState(),s.getLogger().debug("Lex: (("),"NODE_DEND";case 46:return this.popState(),s.getLogger().debug("Lex: ]]"),"NODE_DEND";case 47:return this.popState(),s.getLogger().debug("Lex: ("),"NODE_DEND";case 48:return this.popState(),s.getLogger().debug("Lex: ])"),"NODE_DEND";case 49:return this.popState(),s.getLogger().debug("Lex: /]"),"NODE_DEND";case 50:return this.popState(),s.getLogger().debug("Lex: /]"),"NODE_DEND";case 51:return this.popState(),s.getLogger().debug("Lex: )]"),"NODE_DEND";case 52:return this.popState(),s.getLogger().debug("Lex: )"),"NODE_DEND";case 53:return this.popState(),s.getLogger().debug("Lex: ]>"),"NODE_DEND";case 54:return this.popState(),s.getLogger().debug("Lex: ]"),"NODE_DEND";case 55:return s.getLogger().debug("Lexa: -)"),this.pushState("NODE"),36;case 56:return s.getLogger().debug("Lexa: (-"),this.pushState("NODE"),36;case 57:return s.getLogger().debug("Lexa: ))"),this.pushState("NODE"),36;case 58:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 59:return s.getLogger().debug("Lex: ((("),this.pushState("NODE"),36;case 60:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 61:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 62:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 63:return s.getLogger().debug("Lexc: >"),this.pushState("NODE"),36;case 64:return s.getLogger().debug("Lexa: (["),this.pushState("NODE"),36;case 65:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 66:return this.pushState("NODE"),36;case 67:return this.pushState("NODE"),36;case 68:return this.pushState("NODE"),36;case 69:return this.pushState("NODE"),36;case 70:return this.pushState("NODE"),36;case 71:return this.pushState("NODE"),36;case 72:return this.pushState("NODE"),36;case 73:return s.getLogger().debug("Lexa: ["),this.pushState("NODE"),36;case 74:return this.pushState("BLOCK_ARROW"),s.getLogger().debug("LEX ARR START"),38;case 75:return s.getLogger().debug("Lex: NODE_ID",n.yytext),32;case 76:return s.getLogger().debug("Lex: EOF",n.yytext),8;case 77:this.pushState("md_string");break;case 78:this.pushState("md_string");break;case 79:return"NODE_DESCR";case 80:this.popState();break;case 81:s.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 82:s.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 83:return s.getLogger().debug("LEX: NODE_DESCR:",n.yytext),"NODE_DESCR";case 84:s.getLogger().debug("LEX POPPING"),this.popState();break;case 85:s.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 86:return n.yytext=n.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (right): dir:",n.yytext),"DIR";case 87:return n.yytext=n.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (left):",n.yytext),"DIR";case 88:return n.yytext=n.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (x):",n.yytext),"DIR";case 89:return n.yytext=n.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (y):",n.yytext),"DIR";case 90:return n.yytext=n.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (up):",n.yytext),"DIR";case 91:return n.yytext=n.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (down):",n.yytext),"DIR";case 92:return n.yytext="]>",s.getLogger().debug("Lex (ARROW_DIR end):",n.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";case 93:return s.getLogger().debug("Lex: LINK","#"+n.yytext+"#"),15;case 94:return s.getLogger().debug("Lex: LINK",n.yytext),15;case 95:return s.getLogger().debug("Lex: LINK",n.yytext),15;case 96:return s.getLogger().debug("Lex: LINK",n.yytext),15;case 97:return s.getLogger().debug("Lex: START_LINK",n.yytext),this.pushState("LLABEL"),16;case 98:return s.getLogger().debug("Lex: START_LINK",n.yytext),this.pushState("LLABEL"),16;case 99:return s.getLogger().debug("Lex: START_LINK",n.yytext),this.pushState("LLABEL"),16;case 100:this.pushState("md_string");break;case 101:return s.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";case 102:return this.popState(),s.getLogger().debug("Lex: LINK","#"+n.yytext+"#"),15;case 103:return this.popState(),s.getLogger().debug("Lex: LINK",n.yytext),15;case 104:return this.popState(),s.getLogger().debug("Lex: LINK",n.yytext),15;case 105:return s.getLogger().debug("Lex: COLON",n.yytext),n.yytext=n.yytext.slice(1),27}},rules:[/^(?:block-beta\b)/,/^(?:block\s+)/,/^(?:block\n+)/,/^(?:block:)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[29],inclusive:!1},STYLE_STMNT:{rules:[28],inclusive:!1},CLASSDEFID:{rules:[23],inclusive:!1},CLASSDEF:{rules:[21,22],inclusive:!1},CLASS_STYLE:{rules:[26],inclusive:!1},CLASS:{rules:[25],inclusive:!1},LLABEL:{rules:[100,101,102,103,104],inclusive:!1},ARROW_DIR:{rules:[86,87,88,89,90,91,92],inclusive:!1},BLOCK_ARROW:{rules:[77,82,85],inclusive:!1},NODE:{rules:[38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,78,81],inclusive:!1},md_string:{rules:[10,11,79,80],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[13,14,83,84],inclusive:!1},acc_descr_multiline:{rules:[35,36],inclusive:!1},acc_descr:{rules:[33],inclusive:!1},acc_title:{rules:[31],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,12,15,16,17,18,19,20,24,27,30,32,34,37,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,93,94,95,96,97,98,99,105],inclusive:!0}}};return N})();m.lexer=R;function O(){this.yy={}}return O.prototype=m,m.Parser=O,new O})();se.parser=se;const $t=se;let A={},ie=[],V={};const fe="color",be="fill",Zt="bgFill",Ee=",",Jt=u.getConfig();let G={};const Qt=e=>u.common$1.sanitizeText(e,Jt),es=function(e,r=""){G[e]===void 0&&(G[e]={id:e,styles:[],textStyles:[]});const o=G[e];r!=null&&r.split(Ee).forEach(c=>{const i=c.replace(/([^;]*);/,"$1").trim();if(c.match(fe)){const l=i.replace(be,Zt).replace(fe,be);o.textStyles.push(l)}o.styles.push(i)})},ts=function(e,r=""){const o=A[e];r!=null&&(o.styles=r.split(Ee))},ss=function(e,r){e.split(",").forEach(function(o){let c=A[o];if(c===void 0){const i=o.trim();A[i]={id:i,type:"na",children:[]},c=A[i]}c.classes||(c.classes=[]),c.classes.push(r)})},we=(e,r)=>{const o=e.flat(),c=[];for(const i of o){if(i.label&&(i.label=Qt(i.label)),i.type==="classDef"){es(i.id,i.css);continue}if(i.type==="applyClass"){ss(i.id,(i==null?void 0:i.styleClass)||"");continue}if(i.type==="applyStyles"){i!=null&&i.stylesStr&&ts(i.id,i==null?void 0:i.stylesStr);continue}if(i.type==="column-setting")r.columns=i.columns||-1;else if(i.type==="edge")V[i.id]?V[i.id]++:V[i.id]=1,i.id=V[i.id]+"-"+i.id,ie.push(i);else{i.label||(i.type==="composite"?i.label="":i.label=i.id);const h=!A[i.id];if(h?A[i.id]=i:(i.type!=="na"&&(A[i.id].type=i.type),i.label!==i.id&&(A[i.id].label=i.label)),i.children&&we(i.children,i),i.type==="space"){const l=i.width||1;for(let b=0;b<l;b++){const S=Ht(i);S.id=S.id+"-"+b,A[S.id]=S,c.push(S)}}else h&&c.push(i)}}r.children=c};let ne=[],q={id:"root",type:"composite",children:[],columns:-1};const rs=()=>{u.log$1.debug("Clear called"),u.clear(),q={id:"root",type:"composite",children:[],columns:-1},A={root:q},ne=[],G={},ie=[],V={}};function is(e){switch(u.log$1.debug("typeStr2Type",e),e){case"[]":return"square";case"()":return u.log$1.debug("we have a round"),"round";case"(())":return"circle";case">]":return"rect_left_inv_arrow";case"{}":return"diamond";case"{{}}":return"hexagon";case"([])":return"stadium";case"[[]]":return"subroutine";case"[()]":return"cylinder";case"((()))":return"doublecircle";case"[//]":return"lean_right";case"[\\\\]":return"lean_left";case"[/\\]":return"trapezoid";case"[\\/]":return"inv_trapezoid";case"<[]>":return"block_arrow";default:return"na"}}function ns(e){switch(u.log$1.debug("typeStr2Type",e),e){case"==":return"thick";default:return"normal"}}function as(e){switch(e.trim()){case"--x":return"arrow_cross";case"--o":return"arrow_circle";default:return"arrow_point"}}let Se=0;const os=()=>(Se++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Se),ls=e=>{q.children=e,we(e,q),ne=q.children},cs=e=>{const r=A[e];return r?r.columns?r.columns:r.children?r.children.length:-1:-1},us=()=>[...Object.values(A)],gs=()=>ne||[],ds=()=>ie,hs=e=>A[e],ps=e=>{A[e.id]=e},fs=()=>console,bs=function(){return G},Ss={getConfig:()=>u.getConfig$1().block,typeStr2Type:is,edgeTypeStr2Type:ns,edgeStrToEdgeData:as,getLogger:fs,getBlocksFlat:us,getBlocks:gs,getEdges:ds,setHierarchy:ls,getBlock:hs,setBlock:ps,getColumns:cs,getClasses:bs,clear:rs,generateId:os},xs=Ss,$=(e,r)=>{const o=Ae.channel,c=o(e,"r"),i=o(e,"g"),h=o(e,"b");return u.rgba(c,i,h,r)},Ls=e=>`.label {
|
|
7
|
+
font-family: ${e.fontFamily};
|
|
8
|
+
color: ${e.nodeTextColor||e.textColor};
|
|
9
|
+
}
|
|
10
|
+
.cluster-label text {
|
|
11
|
+
fill: ${e.titleColor};
|
|
12
|
+
}
|
|
13
|
+
.cluster-label span,p {
|
|
14
|
+
color: ${e.titleColor};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
.label text,span,p {
|
|
20
|
+
fill: ${e.nodeTextColor||e.textColor};
|
|
21
|
+
color: ${e.nodeTextColor||e.textColor};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.node rect,
|
|
25
|
+
.node circle,
|
|
26
|
+
.node ellipse,
|
|
27
|
+
.node polygon,
|
|
28
|
+
.node path {
|
|
29
|
+
fill: ${e.mainBkg};
|
|
30
|
+
stroke: ${e.nodeBorder};
|
|
31
|
+
stroke-width: 1px;
|
|
32
|
+
}
|
|
33
|
+
.flowchart-label text {
|
|
34
|
+
text-anchor: middle;
|
|
35
|
+
}
|
|
36
|
+
// .flowchart-label .text-outer-tspan {
|
|
37
|
+
// text-anchor: middle;
|
|
38
|
+
// }
|
|
39
|
+
// .flowchart-label .text-inner-tspan {
|
|
40
|
+
// text-anchor: start;
|
|
41
|
+
// }
|
|
42
|
+
|
|
43
|
+
.node .label {
|
|
44
|
+
text-align: center;
|
|
45
|
+
}
|
|
46
|
+
.node.clickable {
|
|
47
|
+
cursor: pointer;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.arrowheadPath {
|
|
51
|
+
fill: ${e.arrowheadColor};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.edgePath .path {
|
|
55
|
+
stroke: ${e.lineColor};
|
|
56
|
+
stroke-width: 2.0px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.flowchart-link {
|
|
60
|
+
stroke: ${e.lineColor};
|
|
61
|
+
fill: none;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.edgeLabel {
|
|
65
|
+
background-color: ${e.edgeLabelBackground};
|
|
66
|
+
rect {
|
|
67
|
+
opacity: 0.5;
|
|
68
|
+
background-color: ${e.edgeLabelBackground};
|
|
69
|
+
fill: ${e.edgeLabelBackground};
|
|
70
|
+
}
|
|
71
|
+
text-align: center;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/* For html labels only */
|
|
75
|
+
.labelBkg {
|
|
76
|
+
background-color: ${$(e.edgeLabelBackground,.5)};
|
|
77
|
+
// background-color:
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.node .cluster {
|
|
81
|
+
// fill: ${$(e.mainBkg,.5)};
|
|
82
|
+
fill: ${$(e.clusterBkg,.5)};
|
|
83
|
+
stroke: ${$(e.clusterBorder,.2)};
|
|
84
|
+
box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
|
|
85
|
+
stroke-width: 1px;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.cluster text {
|
|
89
|
+
fill: ${e.titleColor};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.cluster span,p {
|
|
93
|
+
color: ${e.titleColor};
|
|
94
|
+
}
|
|
95
|
+
/* .cluster div {
|
|
96
|
+
color: ${e.titleColor};
|
|
97
|
+
} */
|
|
98
|
+
|
|
99
|
+
div.mermaidTooltip {
|
|
100
|
+
position: absolute;
|
|
101
|
+
text-align: center;
|
|
102
|
+
max-width: 200px;
|
|
103
|
+
padding: 2px;
|
|
104
|
+
font-family: ${e.fontFamily};
|
|
105
|
+
font-size: 12px;
|
|
106
|
+
background: ${e.tertiaryColor};
|
|
107
|
+
border: 1px solid ${e.border2};
|
|
108
|
+
border-radius: 2px;
|
|
109
|
+
pointer-events: none;
|
|
110
|
+
z-index: 100;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.flowchartTitleText {
|
|
114
|
+
text-anchor: middle;
|
|
115
|
+
font-size: 18px;
|
|
116
|
+
fill: ${e.textColor};
|
|
117
|
+
}
|
|
118
|
+
`,ys=Ls;function ve(e,r,o=!1){var c,i,h;const l=e;let b="default";(((c=l==null?void 0:l.classes)==null?void 0:c.length)||0)>0&&(b=((l==null?void 0:l.classes)||[]).join(" ")),b=b+" flowchart-label";let S=0,f="",x;switch(l.type){case"round":S=5,f="rect";break;case"composite":S=0,f="composite",x=0;break;case"square":f="rect";break;case"diamond":f="question";break;case"hexagon":f="hexagon";break;case"block_arrow":f="block_arrow";break;case"odd":f="rect_left_inv_arrow";break;case"lean_right":f="lean_right";break;case"lean_left":f="lean_left";break;case"trapezoid":f="trapezoid";break;case"inv_trapezoid":f="inv_trapezoid";break;case"rect_left_inv_arrow":f="rect_left_inv_arrow";break;case"circle":f="circle";break;case"ellipse":f="ellipse";break;case"stadium":f="stadium";break;case"subroutine":f="subroutine";break;case"cylinder":f="cylinder";break;case"group":f="rect";break;case"doublecircle":f="doublecircle";break;default:f="rect"}const w=u.getStylesFromArray((l==null?void 0:l.styles)||[]),k=l.label,D=l.size||{width:0,height:0,x:0,y:0};return{labelStyle:w.labelStyle,shape:f,labelText:k,rx:S,ry:S,class:b,style:w.style,id:l.id,directions:l.directions,width:D.width,height:D.height,x:D.x,y:D.y,positioned:o,intersect:void 0,type:l.type,padding:x??(((h=(i=u.getConfig$1())==null?void 0:i.block)==null?void 0:h.padding)||0)}}async function ms(e,r,o){const c=ve(r,o,!1);if(c.type==="group")return;const i=await U.insertNode(e,c),h=i.node().getBBox(),l=o.getBlock(c.id);l.size={width:h.width,height:h.height,x:0,y:0,node:i},o.setBlock(l),i.remove()}async function _s(e,r,o){const c=ve(r,o,!0);o.getBlock(c.id).type!=="space"&&(await U.insertNode(e,c),r.intersect=c==null?void 0:c.intersect,U.positionNode(c))}async function ae(e,r,o,c){for(const i of r)await c(e,i,o),i.children&&await ae(e,i.children,o,c)}async function Es(e,r,o){await ae(e,r,o,ms)}async function ws(e,r,o){await ae(e,r,o,_s)}async function vs(e,r,o,c,i){const h=new Ie.Graph({multigraph:!0,compound:!0});h.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(const l of o)l.size&&h.setNode(l.id,{width:l.size.width,height:l.size.height,intersect:l.intersect});for(const l of r)if(l.start&&l.end){const b=c.getBlock(l.start),S=c.getBlock(l.end);if(b!=null&&b.size&&(S!=null&&S.size)){const f=b.size,x=S.size,w=[{x:f.x,y:f.y},{x:f.x+(x.x-f.x)/2,y:f.y+(x.y-f.y)/2},{x:x.x,y:x.y}];await U.insertEdge(e,{v:l.start,w:l.end,name:l.id},{...l,arrowTypeEnd:l.arrowTypeEnd,arrowTypeStart:l.arrowTypeStart,points:w,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"},void 0,"block",h,i),l.label&&(await U.insertEdgeLabel(e,{...l,label:l.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:l.arrowTypeEnd,arrowTypeStart:l.arrowTypeStart}),await U.positionEdgeLabel({...l,x:w[1].x,y:w[1].y},{originalPath:w}))}}}const v=((pe=(he=u.getConfig())==null?void 0:he.block)==null?void 0:pe.padding)||8;function Ds(e,r){if(e===0||!Number.isInteger(e))throw new Error("Columns must be an integer !== 0.");if(r<0||!Number.isInteger(r))throw new Error("Position must be a non-negative integer."+r);if(e<0)return{px:r,py:0};if(e===1)return{px:0,py:r};const o=r%e,c=Math.floor(r/e);return{px:o,py:c}}const Ts=e=>{let r=0,o=0;for(const c of e.children){const{width:i,height:h,x:l,y:b}=c.size||{width:0,height:0,x:0,y:0};u.log$1.debug("getMaxChildSize abc95 child:",c.id,"width:",i,"height:",h,"x:",l,"y:",b,c.type),c.type!=="space"&&(i>r&&(r=i/(e.widthInColumns||1)),h>o&&(o=h))}return{width:r,height:o}};function re(e,r,o=0,c=0){var i,h,l,b,S,f,x,w,k,D,_;u.log$1.debug("setBlockSizes abc95 (start)",e.id,(i=e==null?void 0:e.size)==null?void 0:i.x,"block width =",e==null?void 0:e.size,"sieblingWidth",o),(h=e==null?void 0:e.size)!=null&&h.width||(e.size={width:o,height:c,x:0,y:0});let L=0,m=0;if(((l=e.children)==null?void 0:l.length)>0){for(const p of e.children)re(p,r);const R=Ts(e);L=R.width,m=R.height,u.log$1.debug("setBlockSizes abc95 maxWidth of",e.id,":s children is ",L,m);for(const p of e.children)p.size&&(u.log$1.debug(`abc95 Setting size of children of ${e.id} id=${p.id} ${L} ${m} ${p.size}`),p.size.width=L*(p.widthInColumns||1)+v*((p.widthInColumns||1)-1),p.size.height=m,p.size.x=0,p.size.y=0,u.log$1.debug(`abc95 updating size of ${e.id} children child:${p.id} maxWidth:${L} maxHeight:${m}`));for(const p of e.children)re(p,r,L,m);const O=e.columns||-1;let N=0;for(const p of e.children)N+=p.widthInColumns||1;let g=e.children.length;O>0&&O<N&&(g=O),e.widthInColumns;const s=Math.ceil(N/g);let n=g*(L+v)+v,d=s*(m+v)+v;if(n<o){u.log$1.debug(`Detected to small siebling: abc95 ${e.id} sieblingWidth ${o} sieblingHeight ${c} width ${n}`),n=o,d=c;const p=(o-g*v-v)/g,t=(c-s*v-v)/s;u.log$1.debug("Size indata abc88",e.id,"childWidth",p,"maxWidth",L),u.log$1.debug("Size indata abc88",e.id,"childHeight",t,"maxHeight",m),u.log$1.debug("Size indata abc88 xSize",g,"padding",v);for(const E of e.children)E.size&&(E.size.width=p,E.size.height=t,E.size.x=0,E.size.y=0)}if(u.log$1.debug(`abc95 (finale calc) ${e.id} xSize ${g} ySize ${s} columns ${O}${e.children.length} width=${Math.max(n,((b=e.size)==null?void 0:b.width)||0)}`),n<(((S=e==null?void 0:e.size)==null?void 0:S.width)||0)){n=((f=e==null?void 0:e.size)==null?void 0:f.width)||0;const p=O>0?Math.min(e.children.length,O):e.children.length;if(p>0){const t=(n-p*v-v)/p;u.log$1.debug("abc95 (growing to fit) width",e.id,n,(x=e.size)==null?void 0:x.width,t);for(const E of e.children)E.size&&(E.size.width=t)}}e.size={width:n,height:d,x:0,y:0}}u.log$1.debug("setBlockSizes abc94 (done)",e.id,(w=e==null?void 0:e.size)==null?void 0:w.x,(k=e==null?void 0:e.size)==null?void 0:k.width,(D=e==null?void 0:e.size)==null?void 0:D.y,(_=e==null?void 0:e.size)==null?void 0:_.height)}function De(e,r){var o,c,i,h,l,b,S,f,x,w,k,D,_,L,m,R,O;u.log$1.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${(o=e==null?void 0:e.size)==null?void 0:o.x} y: ${(c=e==null?void 0:e.size)==null?void 0:c.y} width: ${(i=e==null?void 0:e.size)==null?void 0:i.width}`);const N=e.columns||-1;if(u.log$1.debug("layoutBlocks columns abc95",e.id,"=>",N,e),e.children&&e.children.length>0){const g=((l=(h=e==null?void 0:e.children[0])==null?void 0:h.size)==null?void 0:l.width)||0,s=e.children.length*g+(e.children.length-1)*v;u.log$1.debug("widthOfChildren 88",s,"posX");let n=0;u.log$1.debug("abc91 block?.size?.x",e.id,(b=e==null?void 0:e.size)==null?void 0:b.x);let d=(S=e==null?void 0:e.size)!=null&&S.x?((f=e==null?void 0:e.size)==null?void 0:f.x)+(-((x=e==null?void 0:e.size)==null?void 0:x.width)/2||0):-v,p=0;for(const t of e.children){const E=e;if(!t.size)continue;const{width:a,height:B}=t.size,{px:Y,py:F}=Ds(N,n);if(F!=p&&(p=F,d=(w=e==null?void 0:e.size)!=null&&w.x?((k=e==null?void 0:e.size)==null?void 0:k.x)+(-((D=e==null?void 0:e.size)==null?void 0:D.width)/2||0):-v,u.log$1.debug("New row in layout for block",e.id," and child ",t.id,p)),u.log$1.debug(`abc89 layout blocks (child) id: ${t.id} Pos: ${n} (px, py) ${Y},${F} (${(_=E==null?void 0:E.size)==null?void 0:_.x},${(L=E==null?void 0:E.size)==null?void 0:L.y}) parent: ${E.id} width: ${a}${v}`),E.size){const z=a/2;t.size.x=d+v+z,u.log$1.debug(`abc91 layout blocks (calc) px, pyid:${t.id} startingPos=X${d} new startingPosX${t.size.x} ${z} padding=${v} width=${a} halfWidth=${z} => x:${t.size.x} y:${t.size.y} ${t.widthInColumns} (width * (child?.w || 1)) / 2 ${a*((t==null?void 0:t.widthInColumns)||1)/2}`),d=t.size.x+z,t.size.y=E.size.y-E.size.height/2+F*(B+v)+B/2+v,u.log$1.debug(`abc88 layout blocks (calc) px, pyid:${t.id}startingPosX${d}${v}${z}=>x:${t.size.x}y:${t.size.y}${t.widthInColumns}(width * (child?.w || 1)) / 2${a*((t==null?void 0:t.widthInColumns)||1)/2}`)}t.children&&De(t),n+=(t==null?void 0:t.widthInColumns)||1,u.log$1.debug("abc88 columnsPos",t,n)}}u.log$1.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${(m=e==null?void 0:e.size)==null?void 0:m.x} y: ${(R=e==null?void 0:e.size)==null?void 0:R.y} width: ${(O=e==null?void 0:e.size)==null?void 0:O.width}`)}function Te(e,{minX:r,minY:o,maxX:c,maxY:i}={minX:0,minY:0,maxX:0,maxY:0}){if(e.size&&e.id!=="root"){const{x:h,y:l,width:b,height:S}=e.size;h-b/2<r&&(r=h-b/2),l-S/2<o&&(o=l-S/2),h+b/2>c&&(c=h+b/2),l+S/2>i&&(i=l+S/2)}if(e.children)for(const h of e.children)({minX:r,minY:o,maxX:c,maxY:i}=Te(h,{minX:r,minY:o,maxX:c,maxY:i}));return{minX:r,minY:o,maxX:c,maxY:i}}function Ns(e){const r=e.getBlock("root");if(!r)return;re(r,e,0,0),De(r),u.log$1.debug("getBlocks",JSON.stringify(r,null,2));const{minX:o,minY:c,maxX:i,maxY:h}=Te(r),l=h-c,b=i-o;return{x:o,y:c,width:b,height:l}}const Os=function(e,r){return r.db.getClasses()},ks=async function(e,r,o,c){const{securityLevel:i,block:h}=u.getConfig$1(),l=c.db;let b;i==="sandbox"&&(b=u.select("#i"+r));const S=i==="sandbox"?u.select(b.nodes()[0].contentDocument.body):u.select("body"),f=i==="sandbox"?S.select(`[id="${r}"]`):u.select(`[id="${r}"]`),x=["point","circle","cross"];U.insertMarkers$1(f,x,c.type,r);const w=l.getBlocks(),k=l.getBlocksFlat(),D=l.getEdges(),_=f.insert("g").attr("class","block");await Es(_,w,l);const L=Ns(l);if(await ws(_,w,l),await vs(_,D,k,l,r),L){const m=L,R=Math.max(1,Math.round(.125*(m.width/m.height))),O=m.height+R+10,N=m.width+10,{useMaxWidth:g}=h;u.configureSvgSize(f,O,N,!!g),u.log$1.debug("Here Bounds",L,m),f.attr("viewBox",`${m.x-5} ${m.y-5} ${m.width+10} ${m.height+10}`)}Ce.ordinal(ze.schemeTableau10)},Is={draw:ks,getClasses:Os},As={parser:$t,db:xs,renderer:Is,styles:ys};exports.diagram=As;
|