@layers-app/editor 0.3.11 → 0.4.0

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 (242) hide show
  1. package/dist/index.cjs +2 -2
  2. package/dist/index.js +6 -6
  3. package/dist/layers.-WGsbPEO.js +14 -0
  4. package/dist/layers.-wDyU9sN.js +118 -0
  5. package/dist/layers.0FtwCmdk.js +52 -0
  6. package/dist/layers.0RkUYii1.js +282 -0
  7. package/dist/layers.1EHoXd8e.js +8 -0
  8. package/dist/layers.2cerO4OS.js +139 -0
  9. package/dist/layers.3Ekf-o8F.js +39 -0
  10. package/dist/layers.52famHy6.js +1 -0
  11. package/dist/layers.5Sr9IY96.js +9 -0
  12. package/dist/layers.78ekkCq0.js +116 -0
  13. package/dist/layers.7JqFgE4-.js +15 -0
  14. package/dist/layers.9QK1wiQj.js +1 -0
  15. package/dist/layers.9jdDI2yV.js +36 -0
  16. package/dist/layers.9pNaFvaX.js +1 -0
  17. package/dist/layers.AEy2G-Gv.js +40 -0
  18. package/dist/layers.AIQle8wy.js +1 -0
  19. package/dist/layers.A_NuFq0j.js +2235 -0
  20. package/dist/layers.B0lp7rOz.js +9 -0
  21. package/dist/layers.B19hGmey.js +1 -0
  22. package/dist/layers.B1VZZIP7.js +21763 -0
  23. package/dist/layers.B2AGu32C.js +11692 -0
  24. package/dist/layers.B3CuqfYy.js +37 -0
  25. package/dist/layers.B3D4g2HH.js +1 -0
  26. package/dist/layers.B3xfUipV.js +2966 -0
  27. package/dist/layers.B4n4WelM.js +1 -0
  28. package/dist/layers.B4qkzU1u.js +41 -0
  29. package/dist/layers.B5bQ8hRv.js +70 -0
  30. package/dist/layers.B6YfcxJD.js +1 -0
  31. package/dist/layers.B7O9Ykf9.js +6 -0
  32. package/dist/layers.BAtv1CM7.js +1 -0
  33. package/dist/layers.BBXYbcFN.js +10 -0
  34. package/dist/layers.BBZL6QaK.js +8 -0
  35. package/dist/layers.BCbGsxxm.js +7 -0
  36. package/dist/layers.BE_DKuuD.js +790 -0
  37. package/dist/layers.BFlWA9Iz.js +373 -0
  38. package/dist/layers.BFxRJ3Li.js +1 -0
  39. package/dist/layers.BIeVwYKL.js +1 -0
  40. package/dist/layers.BLQfYqXT.js +39 -0
  41. package/dist/layers.BM0ksLnS.js +5 -0
  42. package/dist/layers.BNUbfOwd.js +42 -0
  43. package/dist/layers.BP3xLRrX.js +33 -0
  44. package/dist/layers.BQFScIff.js +9 -0
  45. package/dist/layers.BRu1ZkhL.js +6 -0
  46. package/dist/layers.BS1BSw0O.js +257 -0
  47. package/dist/layers.BSTBZrFn.js +1 -0
  48. package/dist/layers.BU5FG1HP.js +84 -0
  49. package/dist/layers.BUuBI6QS.js +41 -0
  50. package/dist/layers.BVrcjbG3.js +8 -0
  51. package/dist/layers.BW99L8Fl.js +39 -0
  52. package/dist/layers.BWj5iNQV.js +34 -0
  53. package/dist/layers.BYRpGhl3.js +11 -0
  54. package/dist/layers.BZ217a7U.js +40 -0
  55. package/dist/layers.Bb0NXUFw.js +39 -0
  56. package/dist/layers.BbCfEXyj.js +55 -0
  57. package/dist/layers.BblO5S7z.js +5 -0
  58. package/dist/layers.BbpcdAWy.js +1 -0
  59. package/dist/layers.Bfw0Gunv.js +9148 -0
  60. package/dist/layers.BgOa2ZQq.js +7 -0
  61. package/dist/layers.Bh0aB-u7.js +59 -0
  62. package/dist/layers.BiCOjicn.js +32 -0
  63. package/dist/layers.BiJ8hfRt.js +1510 -0
  64. package/dist/layers.BirPY36J.js +268 -0
  65. package/dist/layers.Bit9KYIY.js +32 -0
  66. package/dist/layers.BjFHkSyo.js +37 -0
  67. package/dist/{layers.DPccTctI.js → layers.BkQdsQ8U.js} +17 -17
  68. package/dist/layers.BkrI3eMq.js +1089 -0
  69. package/dist/layers.BlPVzVNM.js +6 -0
  70. package/dist/layers.Bn7Yja2i.js +3 -0
  71. package/dist/layers.Bnu-owJj.js +61 -0
  72. package/dist/{layers.C125HTat.js → layers.BoIttUlh.js} +1 -1
  73. package/dist/layers.Bp_lUbdE.js +41 -0
  74. package/dist/layers.BpilXLfW.js +6 -0
  75. package/dist/layers.Bs7-WFjs.js +1283 -0
  76. package/dist/layers.BzRvQtZ0.js +11 -0
  77. package/dist/layers.C00LPdpd.js +437 -0
  78. package/dist/layers.C0q8oCjN.js +1034 -0
  79. package/dist/layers.C1iEaL9k.js +37 -0
  80. package/dist/layers.C1w3XBPW.js +230 -0
  81. package/dist/layers.C4ROEdAW.js +84 -0
  82. package/dist/layers.C4qaO0MD.js +10 -0
  83. package/dist/layers.C7lIplJU.js +247 -0
  84. package/dist/layers.C8_lu5UH.js +23 -0
  85. package/dist/layers.C996Xek1.js +2479 -0
  86. package/dist/layers.CAcpgnDk.js +9 -0
  87. package/dist/layers.CAwBq0yQ.js +10 -0
  88. package/dist/layers.CEmVEjbM.js +7 -0
  89. package/dist/layers.CFa6SgS0.js +38 -0
  90. package/dist/layers.CHZsXQcr.js +1 -0
  91. package/dist/layers.CHuQjPi1.js +32 -0
  92. package/dist/layers.CJBYVYBK.js +8 -0
  93. package/dist/layers.CLOKCltZ.js +35 -0
  94. package/dist/layers.COAF7f8g.js +1 -0
  95. package/dist/layers.COaiyaHl.js +1580 -0
  96. package/dist/layers.COhnMbFE.js +220 -0
  97. package/dist/layers.CQqtbI-S.js +122 -0
  98. package/dist/layers.CRWsKrSv.js +40 -0
  99. package/dist/layers.CSW2aYxs.js +1 -0
  100. package/dist/layers.CSfCebqe.js +207 -0
  101. package/dist/layers.CTzpQJrz.js +501 -0
  102. package/dist/layers.CX9eMlzX.js +6 -0
  103. package/dist/layers.CXUGZO8g.js +40 -0
  104. package/dist/layers.CYHkquLL.js +1 -0
  105. package/dist/layers.CYJyjqCg.js +7 -0
  106. package/dist/layers.C_0uL0lu.js +42 -0
  107. package/dist/layers.CbseH42B.js +5 -0
  108. package/dist/layers.CdvbuuVd.js +2 -0
  109. package/dist/layers.CeU6SAcT.js +8 -0
  110. package/dist/layers.Cef-VRJs.js +37 -0
  111. package/dist/layers.Cg3zhLTz.js +1 -0
  112. package/dist/layers.CldWERA-.js +1 -0
  113. package/dist/layers.Cle37JNX.js +1 -0
  114. package/dist/layers.CmLupkS6.js +186 -0
  115. package/dist/layers.Cn2QpKZw.js +51 -0
  116. package/dist/layers.CoVavTdv.js +1126 -0
  117. package/dist/layers.CoZpR7_r.js +40 -0
  118. package/dist/layers.CqVTtuYm.js +6 -0
  119. package/dist/layers.CrZ6TV4m.js +1 -0
  120. package/dist/layers.CrpDpBIW.js +904 -0
  121. package/dist/layers.Cs24L6er.js +261 -0
  122. package/dist/layers.CsmOgd93.js +38 -0
  123. package/dist/layers.Ct-zQnmI.js +32 -0
  124. package/dist/layers.CuAZJoX1.js +42 -0
  125. package/dist/{layers.BnjxHNDK.js → layers.CylfN5iO.js} +85 -85
  126. package/dist/layers.CyxAbBDV.js +7 -0
  127. package/dist/layers.Czj3PJzZ.js +10 -0
  128. package/dist/layers.D-1CXIBI.js +19 -0
  129. package/dist/layers.D-EQ5B97.js +7 -0
  130. package/dist/layers.D-uwIUCE.js +139 -0
  131. package/dist/layers.D-xK8h4X.js +8 -0
  132. package/dist/layers.D0rE1hbF.js +10 -0
  133. package/dist/layers.D0zn4_Mx.js +1 -0
  134. package/dist/layers.D2Jbdqtj.js +7 -0
  135. package/dist/layers.D3Qwcfa_.js +1619 -0
  136. package/dist/layers.D3sICpwv.js +8 -0
  137. package/dist/layers.D4DB55K_.js +2 -0
  138. package/dist/layers.D4RhFsg6.js +10 -0
  139. package/dist/layers.D4fGb2cV.js +1272 -0
  140. package/dist/layers.D4v0XyUf.js +1 -0
  141. package/dist/layers.D6SbX5Az.js +423 -0
  142. package/dist/layers.D6dwFhht.js +9 -0
  143. package/dist/layers.D7jGxypv.js +8 -0
  144. package/dist/layers.D87gRG-J.js +1088 -0
  145. package/dist/layers.D8fb1iDb.js +10 -0
  146. package/dist/layers.D9JK3npg.js +41 -0
  147. package/dist/layers.DAvEslJc.js +33 -0
  148. package/dist/layers.DBOFmWi_.js +1359 -0
  149. package/dist/layers.DCAo6G5D.js +40 -0
  150. package/dist/layers.DGWfd9sT.js +5 -0
  151. package/dist/layers.DIc9Pn5-.js +96 -0
  152. package/dist/layers.DJVg69Yo.js +803 -0
  153. package/dist/layers.DLBD3WBx.js +11 -0
  154. package/dist/layers.DLwuMfdd.js +84 -0
  155. package/dist/layers.DMkBISW1.js +1 -0
  156. package/dist/layers.DN9HoVxI.js +18 -0
  157. package/dist/layers.DOrgOHBr.js +1 -0
  158. package/dist/layers.DPhgksD-.js +41 -0
  159. package/dist/layers.DPnpGXQm.js +2 -0
  160. package/dist/layers.DQ8aCG7v.js +769 -0
  161. package/dist/layers.DR14S1m9.js +161 -0
  162. package/dist/layers.DRFq8PR7.js +39 -0
  163. package/dist/layers.DRYGpdtc.js +48146 -0
  164. package/dist/layers.DSd23vw_.js +1 -0
  165. package/dist/layers.DSl3dgu7.js +7 -0
  166. package/dist/layers.DUYA7tE_.js +10 -0
  167. package/dist/layers.DVgohoWC.js +11 -0
  168. package/dist/layers.D_3fuwmS.js +1 -0
  169. package/dist/layers.D_ILz54C.js +41 -0
  170. package/dist/layers.DbaKVP5e.js +1 -0
  171. package/dist/layers.Dd-Mdjt8.js +40 -0
  172. package/dist/layers.Dd9WE-Kq.js +1265 -0
  173. package/dist/layers.DdjaY7yq.js +9 -0
  174. package/dist/layers.DgJemaOm.js +65 -0
  175. package/dist/layers.Dgm8-XFN.js +960 -0
  176. package/dist/layers.DgwJ1eL7.js +13 -0
  177. package/dist/layers.DhZsCIrr.js +425 -0
  178. package/dist/layers.DipbuRcs.js +36 -0
  179. package/dist/layers.DjUOC4st.js +16 -0
  180. package/dist/layers.DjZdvQQY.js +1 -0
  181. package/dist/layers.DkyFv1Ys.js +35 -0
  182. package/dist/layers.Dmf-FkA-.js +4 -0
  183. package/dist/layers.DmgkuDwj.js +9 -0
  184. package/dist/layers.Dmrtdk6A.js +1 -0
  185. package/dist/layers.Dn02LanZ.js +931 -0
  186. package/dist/layers.Do3LJDis.js +202 -0
  187. package/dist/layers.DoI-3ssc.js +802 -0
  188. package/dist/layers.DobBKdZ6.js +32 -0
  189. package/dist/layers.DpzPbocR.js +39 -0
  190. package/dist/layers.Dq0wRjbC.js +35 -0
  191. package/dist/layers.Dqsk7GNe.js +10 -0
  192. package/dist/layers.DrTVlGxj.js +1 -0
  193. package/dist/layers.DukBaqf8.js +1 -0
  194. package/dist/layers.DvxaikrZ.js +10 -0
  195. package/dist/layers.DxA6ocdw.js +70 -0
  196. package/dist/layers.Dy1naDTQ.js +14 -0
  197. package/dist/layers.DygycO7X.js +39 -0
  198. package/dist/{layers.VK3NB7Nd.js → layers.DzUJmmvD.js} +1 -1
  199. package/dist/layers.FoT1zSFE.js +42 -0
  200. package/dist/layers.HsplLW7l.js +4 -0
  201. package/dist/{layers.YZkXZvVS.js → layers.HstOwREP.js} +11432 -10897
  202. package/dist/layers.IKdQaUN6.js +11 -0
  203. package/dist/layers.JWCLFILJ.js +1 -0
  204. package/dist/layers.K3yYYJdK.js +40 -0
  205. package/dist/layers.L1UaldnR.js +36 -0
  206. package/dist/layers.Lz059Um8.js +41 -0
  207. package/dist/layers.M6o7NygO.js +6 -0
  208. package/dist/layers.MLq12lxF.js +32 -0
  209. package/dist/layers.MczyPMMk.js +6 -0
  210. package/dist/layers.OGhIzIND.js +36 -0
  211. package/dist/layers.OH8pkzdf.js +1 -0
  212. package/dist/layers.OUHm0dZY.js +40 -0
  213. package/dist/layers.OeuRpLZr.js +41 -0
  214. package/dist/layers.PsWF_Poj.js +8 -0
  215. package/dist/layers.R7Qt9hQa.js +1 -0
  216. package/dist/layers.SwZPMavM.js +7 -0
  217. package/dist/layers.UHZ7LEG5.js +44 -0
  218. package/dist/layers.VAQxBGRz.js +42 -0
  219. package/dist/layers.WPo01EJ5.js +4 -0
  220. package/dist/layers.XJChT8Le.js +9 -0
  221. package/dist/layers.XMeRR-JR.js +39 -0
  222. package/dist/layers.b0h5ZBmD.js +61 -0
  223. package/dist/layers.bSw_jQ5U.js +40 -0
  224. package/dist/layers.bn1dbtN4.js +160 -0
  225. package/dist/layers.cdGjFrMq.js +9 -0
  226. package/dist/layers.cu7eSI3X.js +4 -0
  227. package/dist/layers.iBT5g_cH.js +320 -0
  228. package/dist/layers.igIdIxGe.js +9 -0
  229. package/dist/layers.j1hLqMc8.js +38 -0
  230. package/dist/layers.jrSryxFl.js +39 -0
  231. package/dist/layers.lCpg7dOn.js +21 -0
  232. package/dist/layers.oQqeIYLp.js +21938 -0
  233. package/dist/layers.raic7pCl.js +793 -0
  234. package/dist/layers.srlypw1l.js +8 -0
  235. package/dist/layers.tqtFgs0l.js +1 -0
  236. package/dist/layers.uwhbxtz3.js +8 -0
  237. package/dist/layers.weZ4wJXB.js +5 -0
  238. package/dist/layers.wf8u33re.js +1 -0
  239. package/package.json +22 -15
  240. package/dist/layers.Cjs5EBWM.js +0 -343
  241. package/dist/layers.DZ8DrrVn.js +0 -53491
  242. package/dist/layers.QVaGPbs3.js +0 -161
@@ -0,0 +1,14 @@
1
+ import { C as t, N as r } from "./layers.D3Qwcfa_.js";
2
+ import "./layers.B1VZZIP7.js";
3
+ var m = import.meta.url ? new URL(import.meta.url) : void 0;
4
+ typeof window > "u" && typeof self < "u" && (self.onmessage = async (a) => {
5
+ switch (a.data.command) {
6
+ case t.Subset:
7
+ let e = await r(a.data.arrayBuffer, a.data.codePoints);
8
+ self.postMessage(e, { transfer: [e] });
9
+ break;
10
+ }
11
+ });
12
+ export {
13
+ m as WorkerUrl
14
+ };
@@ -0,0 +1,118 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./layers.DIc9Pn5-.js"),U=require("./layers.HsplLW7l.js"),Ie=require("./layers.9QK1wiQj.js");require("./layers.C1w3XBPW.js");const Ae=require("./layers.OH8pkzdf.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;
@@ -0,0 +1,52 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./layers.DIc9Pn5-.js");require("lodash-es");const Ve=require("./layers.COAF7f8g.js"),Oe=require("./layers.9QK1wiQj.js");require("./layers.C1w3XBPW.js");const Le=require("./layers.D_3fuwmS.js");var ce=(function(){var e=function(V,i,r,a){for(r=r||{},a=V.length;a--;r[V[a]]=i);return r},t=[1,3],l=[1,4],c=[1,5],u=[1,6],d=[5,6,8,9,11,13,31,32,33,34,35,36,44,62,63],p=[1,18],h=[2,7],o=[1,22],g=[1,23],R=[1,24],v=[1,25],N=[1,26],x=[1,27],$=[1,20],S=[1,28],A=[1,29],M=[62,63],de=[5,8,9,11,13,31,32,33,34,35,36,44,51,53,62,63],pe=[1,47],ye=[1,48],fe=[1,49],_e=[1,50],ge=[1,51],Ee=[1,52],Re=[1,53],L=[53,54],D=[1,64],P=[1,60],Y=[1,61],U=[1,62],B=[1,63],Q=[1,65],z=[1,69],X=[1,70],J=[1,67],Z=[1,68],I=[5,8,9,11,13,31,32,33,34,35,36,44,62,63],ne={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,requirementType:17,requirementName:18,STRUCT_START:19,requirementBody:20,ID:21,COLONSEP:22,id:23,TEXT:24,text:25,RISK:26,riskLevel:27,VERIFYMTHD:28,verifyType:29,STRUCT_STOP:30,REQUIREMENT:31,FUNCTIONAL_REQUIREMENT:32,INTERFACE_REQUIREMENT:33,PERFORMANCE_REQUIREMENT:34,PHYSICAL_REQUIREMENT:35,DESIGN_CONSTRAINT:36,LOW_RISK:37,MED_RISK:38,HIGH_RISK:39,VERIFY_ANALYSIS:40,VERIFY_DEMONSTRATION:41,VERIFY_INSPECTION:42,VERIFY_TEST:43,ELEMENT:44,elementName:45,elementBody:46,TYPE:47,type:48,DOCREF:49,ref:50,END_ARROW_L:51,relationship:52,LINE:53,END_ARROW_R:54,CONTAINS:55,COPIES:56,DERIVES:57,SATISFIES:58,VERIFIES:59,REFINES:60,TRACES:61,unqString:62,qString:63,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",19:"STRUCT_START",21:"ID",22:"COLONSEP",24:"TEXT",26:"RISK",28:"VERIFYMTHD",30:"STRUCT_STOP",31:"REQUIREMENT",32:"FUNCTIONAL_REQUIREMENT",33:"INTERFACE_REQUIREMENT",34:"PERFORMANCE_REQUIREMENT",35:"PHYSICAL_REQUIREMENT",36:"DESIGN_CONSTRAINT",37:"LOW_RISK",38:"MED_RISK",39:"HIGH_RISK",40:"VERIFY_ANALYSIS",41:"VERIFY_DEMONSTRATION",42:"VERIFY_INSPECTION",43:"VERIFY_TEST",44:"ELEMENT",47:"TYPE",49:"DOCREF",51:"END_ARROW_L",53:"LINE",54:"END_ARROW_R",55:"CONTAINS",56:"COPIES",57:"DERIVES",58:"SATISFIES",59:"VERIFIES",60:"REFINES",61:"TRACES",62:"unqString",63:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[14,5],[20,5],[20,5],[20,5],[20,5],[20,2],[20,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[27,1],[27,1],[27,1],[29,1],[29,1],[29,1],[29,1],[15,5],[46,5],[46,5],[46,2],[46,1],[16,5],[16,5],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[18,1],[18,1],[23,1],[23,1],[25,1],[25,1],[45,1],[45,1],[48,1],[48,1],[50,1],[50,1]],performAction:function(i,r,a,n,y,s,K){var _=s.length-1;switch(y){case 4:this.$=s[_].trim(),n.setAccTitle(this.$);break;case 5:case 6:this.$=s[_].trim(),n.setAccDescription(this.$);break;case 7:this.$=[];break;case 13:n.addRequirement(s[_-3],s[_-4]);break;case 14:n.setNewReqId(s[_-2]);break;case 15:n.setNewReqText(s[_-2]);break;case 16:n.setNewReqRisk(s[_-2]);break;case 17:n.setNewReqVerifyMethod(s[_-2]);break;case 20:this.$=n.RequirementType.REQUIREMENT;break;case 21:this.$=n.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 22:this.$=n.RequirementType.INTERFACE_REQUIREMENT;break;case 23:this.$=n.RequirementType.PERFORMANCE_REQUIREMENT;break;case 24:this.$=n.RequirementType.PHYSICAL_REQUIREMENT;break;case 25:this.$=n.RequirementType.DESIGN_CONSTRAINT;break;case 26:this.$=n.RiskLevel.LOW_RISK;break;case 27:this.$=n.RiskLevel.MED_RISK;break;case 28:this.$=n.RiskLevel.HIGH_RISK;break;case 29:this.$=n.VerifyType.VERIFY_ANALYSIS;break;case 30:this.$=n.VerifyType.VERIFY_DEMONSTRATION;break;case 31:this.$=n.VerifyType.VERIFY_INSPECTION;break;case 32:this.$=n.VerifyType.VERIFY_TEST;break;case 33:n.addElement(s[_-3]);break;case 34:n.setNewElementType(s[_-2]);break;case 35:n.setNewElementDocRef(s[_-2]);break;case 38:n.addRelationship(s[_-2],s[_],s[_-4]);break;case 39:n.addRelationship(s[_-2],s[_-4],s[_]);break;case 40:this.$=n.Relationships.CONTAINS;break;case 41:this.$=n.Relationships.COPIES;break;case 42:this.$=n.Relationships.DERIVES;break;case 43:this.$=n.Relationships.SATISFIES;break;case 44:this.$=n.Relationships.VERIFIES;break;case 45:this.$=n.Relationships.REFINES;break;case 46:this.$=n.Relationships.TRACES;break}},table:[{3:1,4:2,6:t,9:l,11:c,13:u},{1:[3]},{3:8,4:2,5:[1,7],6:t,9:l,11:c,13:u},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(d,[2,6]),{3:12,4:2,6:t,9:l,11:c,13:u},{1:[2,2]},{4:17,5:p,7:13,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:v,35:N,36:x,44:$,62:S,63:A},e(d,[2,4]),e(d,[2,5]),{1:[2,1]},{8:[1,30]},{4:17,5:p,7:31,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:v,35:N,36:x,44:$,62:S,63:A},{4:17,5:p,7:32,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:v,35:N,36:x,44:$,62:S,63:A},{4:17,5:p,7:33,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:v,35:N,36:x,44:$,62:S,63:A},{4:17,5:p,7:34,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:v,35:N,36:x,44:$,62:S,63:A},{4:17,5:p,7:35,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:v,35:N,36:x,44:$,62:S,63:A},{18:36,62:[1,37],63:[1,38]},{45:39,62:[1,40],63:[1,41]},{51:[1,42],53:[1,43]},e(M,[2,20]),e(M,[2,21]),e(M,[2,22]),e(M,[2,23]),e(M,[2,24]),e(M,[2,25]),e(de,[2,49]),e(de,[2,50]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{19:[1,44]},{19:[2,47]},{19:[2,48]},{19:[1,45]},{19:[2,53]},{19:[2,54]},{52:46,55:pe,56:ye,57:fe,58:_e,59:ge,60:Ee,61:Re},{52:54,55:pe,56:ye,57:fe,58:_e,59:ge,60:Ee,61:Re},{5:[1,55]},{5:[1,56]},{53:[1,57]},e(L,[2,40]),e(L,[2,41]),e(L,[2,42]),e(L,[2,43]),e(L,[2,44]),e(L,[2,45]),e(L,[2,46]),{54:[1,58]},{5:D,20:59,21:P,24:Y,26:U,28:B,30:Q},{5:z,30:X,46:66,47:J,49:Z},{23:71,62:S,63:A},{23:72,62:S,63:A},e(I,[2,13]),{22:[1,73]},{22:[1,74]},{22:[1,75]},{22:[1,76]},{5:D,20:77,21:P,24:Y,26:U,28:B,30:Q},e(I,[2,19]),e(I,[2,33]),{22:[1,78]},{22:[1,79]},{5:z,30:X,46:80,47:J,49:Z},e(I,[2,37]),e(I,[2,38]),e(I,[2,39]),{23:81,62:S,63:A},{25:82,62:[1,83],63:[1,84]},{27:85,37:[1,86],38:[1,87],39:[1,88]},{29:89,40:[1,90],41:[1,91],42:[1,92],43:[1,93]},e(I,[2,18]),{48:94,62:[1,95],63:[1,96]},{50:97,62:[1,98],63:[1,99]},e(I,[2,36]),{5:[1,100]},{5:[1,101]},{5:[2,51]},{5:[2,52]},{5:[1,102]},{5:[2,26]},{5:[2,27]},{5:[2,28]},{5:[1,103]},{5:[2,29]},{5:[2,30]},{5:[2,31]},{5:[2,32]},{5:[1,104]},{5:[2,55]},{5:[2,56]},{5:[1,105]},{5:[2,57]},{5:[2,58]},{5:D,20:106,21:P,24:Y,26:U,28:B,30:Q},{5:D,20:107,21:P,24:Y,26:U,28:B,30:Q},{5:D,20:108,21:P,24:Y,26:U,28:B,30:Q},{5:D,20:109,21:P,24:Y,26:U,28:B,30:Q},{5:z,30:X,46:110,47:J,49:Z},{5:z,30:X,46:111,47:J,49:Z},e(I,[2,14]),e(I,[2,15]),e(I,[2,16]),e(I,[2,17]),e(I,[2,34]),e(I,[2,35])],defaultActions:{8:[2,2],12:[2,1],30:[2,3],31:[2,8],32:[2,9],33:[2,10],34:[2,11],35:[2,12],37:[2,47],38:[2,48],40:[2,53],41:[2,54],83:[2,51],84:[2,52],86:[2,26],87:[2,27],88:[2,28],90:[2,29],91:[2,30],92:[2,31],93:[2,32],95:[2,55],96:[2,56],98:[2,57],99:[2,58]},parseError:function(i,r){if(r.recoverable)this.trace(i);else{var a=new Error(i);throw a.hash=r,a}},parse:function(i){var r=this,a=[0],n=[],y=[null],s=[],K=this.table,_="",ee=0,me=0,ve=2,Ie=1,$e=s.slice.call(arguments,1),E=Object.create(this.lexer),C={yy:{}};for(var se in this.yy)Object.prototype.hasOwnProperty.call(this.yy,se)&&(C.yy[se]=this.yy[se]);E.setInput(i,C.yy),C.yy.lexer=E,C.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var ae=E.yylloc;s.push(ae);var we=E.options&&E.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function qe(){var q;return q=n.pop()||E.lex()||Ie,typeof q!="number"&&(q instanceof Array&&(n=q,q=n.pop()),q=r.symbols_[q]||q),q}for(var b,F,T,le,H={},te,w,be,ie;;){if(F=a[a.length-1],this.defaultActions[F]?T=this.defaultActions[F]:((b===null||typeof b>"u")&&(b=qe()),T=K[F]&&K[F][b]),typeof T>"u"||!T.length||!T[0]){var oe="";ie=[];for(te in K[F])this.terminals_[te]&&te>ve&&ie.push("'"+this.terminals_[te]+"'");E.showPosition?oe="Parse error on line "+(ee+1)+`:
2
+ `+E.showPosition()+`
3
+ Expecting `+ie.join(", ")+", got '"+(this.terminals_[b]||b)+"'":oe="Parse error on line "+(ee+1)+": Unexpected "+(b==Ie?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(oe,{text:E.match,token:this.terminals_[b]||b,line:E.yylineno,loc:ae,expected:ie})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+F+", token: "+b);switch(T[0]){case 1:a.push(b),y.push(E.yytext),s.push(E.yylloc),a.push(T[1]),b=null,me=E.yyleng,_=E.yytext,ee=E.yylineno,ae=E.yylloc;break;case 2:if(w=this.productions_[T[1]][1],H.$=y[y.length-w],H._$={first_line:s[s.length-(w||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(w||1)].first_column,last_column:s[s.length-1].last_column},we&&(H._$.range=[s[s.length-(w||1)].range[0],s[s.length-1].range[1]]),le=this.performAction.apply(H,[_,me,ee,C.yy,T[1],y,s].concat($e)),typeof le<"u")return le;w&&(a=a.slice(0,-1*w*2),y=y.slice(0,-1*w),s=s.slice(0,-1*w)),a.push(this.productions_[T[1]][0]),y.push(H.$),s.push(H._$),be=K[a[a.length-2]][a[a.length-1]],a.push(be);break;case 3:return!0}}return!0}},Ae=(function(){var V={EOF:1,parseError:function(r,a){if(this.yy.parser)this.yy.parser.parseError(r,a);else throw new Error(r)},setInput:function(i,r){return this.yy=r||this.yy||{},this._input=i,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 i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var r=i.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var r=i.length,a=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var n=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),a.length-1&&(this.yylineno-=a.length-1);var y=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:a?(a.length===n.length?this.yylloc.first_column:0)+n[n.length-a.length].length-a[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[y[0],y[0]+this.yyleng-r]),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(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),r=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
5
+ `+r+"^"},test_match:function(i,r){var a,n,y;if(this.options.backtrack_lexer&&(y={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&&(y.yylloc.range=this.yylloc.range.slice(0))),n=i[0].match(/(?:\r\n?|\n).*/g),n&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,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(i[0].length),this.matched+=i[0],a=this.performAction.call(this,this.yy,this,r,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a)return a;if(this._backtrack){for(var s in y)this[s]=y[s];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,r,a,n;this._more||(this.yytext="",this.match="");for(var y=this._currentRules(),s=0;s<y.length;s++)if(a=this._input.match(this.rules[y[s]]),a&&(!r||a[0].length>r[0].length)){if(r=a,n=s,this.options.backtrack_lexer){if(i=this.test_match(a,y[s]),i!==!1)return i;if(this._backtrack){r=!1;continue}else return!1}else if(!this.options.flex)break}return r?(i=this.test_match(r,y[n]),i!==!1?i:!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 r=this.next();return r||this.lex()},begin:function(r){this.conditionStack.push(r)},popState:function(){var r=this.conditionStack.length-1;return r>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(r){return r=this.conditionStack.length-1-Math.abs(r||0),r>=0?this.conditionStack[r]:"INITIAL"},pushState:function(r){this.begin(r)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(r,a,n,y){switch(n){case 0:return"title";case 1:return this.begin("acc_title"),9;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),11;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 5;case 9:break;case 10:break;case 11:break;case 12:return 8;case 13:return 6;case 14:return 19;case 15:return 30;case 16:return 22;case 17:return 21;case 18:return 24;case 19:return 26;case 20:return 28;case 21:return 31;case 22:return 32;case 23:return 33;case 24:return 34;case 25:return 35;case 26:return 36;case 27:return 37;case 28:return 38;case 29:return 39;case 30:return 40;case 31:return 41;case 32:return 42;case 33:return 43;case 34:return 44;case 35:return 55;case 36:return 56;case 37:return 57;case 38:return 58;case 39:return 59;case 40:return 60;case 41:return 61;case 42:return 47;case 43:return 49;case 44:return 51;case 45:return 54;case 46:return 53;case 47:this.begin("string");break;case 48:this.popState();break;case 49:return"qString";case 50:return a.yytext=a.yytext.trim(),62}},rules:[/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^\r\n\{\<\>\-\=]*)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},unqString:{rules:[],inclusive:!1},token:{rules:[],inclusive:!1},string:{rules:[48,49],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,50],inclusive:!0}}};return V})();ne.lexer=Ae;function re(){this.yy={}}return re.prototype=ne,ne.Parser=re,new re})();ce.parser=ce;const Ce=ce;let ue=[],k={},G={},O={},j={};const Fe={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},Me={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},De={VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},Pe={CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},Ye=(e,t)=>(G[e]===void 0&&(G[e]={name:e,type:t,id:k.id,text:k.text,risk:k.risk,verifyMethod:k.verifyMethod}),k={},G[e]),Ue=()=>G,Be=e=>{k!==void 0&&(k.id=e)},Qe=e=>{k!==void 0&&(k.text=e)},He=e=>{k!==void 0&&(k.risk=e)},We=e=>{k!==void 0&&(k.verifyMethod=e)},Ke=e=>(j[e]===void 0&&(j[e]={name:e,type:O.type,docRef:O.docRef},m.log$1.info("Added new requirement: ",e)),O={},j[e]),Ge=()=>j,je=e=>{O!==void 0&&(O.type=e)},ze=e=>{O!==void 0&&(O.docRef=e)},Xe=(e,t,l)=>{ue.push({type:e,src:t,dst:l})},Je=()=>ue,Ze=()=>{ue=[],k={},G={},O={},j={},m.clear()},et={RequirementType:Fe,RiskLevel:Me,VerifyType:De,Relationships:Pe,getConfig:()=>m.getConfig().req,addRequirement:Ye,getRequirements:Ue,setNewReqId:Be,setNewReqText:Qe,setNewReqRisk:He,setNewReqVerifyMethod:We,setAccTitle:m.setAccTitle,getAccTitle:m.getAccTitle,setAccDescription:m.setAccDescription,getAccDescription:m.getAccDescription,addElement:Ke,getElements:Ge,setNewElementType:je,setNewElementDocRef:ze,addRelationship:Xe,getRelationships:Je,clear:Ze},tt=e=>`
7
+
8
+ marker {
9
+ fill: ${e.relationColor};
10
+ stroke: ${e.relationColor};
11
+ }
12
+
13
+ marker.cross {
14
+ stroke: ${e.lineColor};
15
+ }
16
+
17
+ svg {
18
+ font-family: ${e.fontFamily};
19
+ font-size: ${e.fontSize};
20
+ }
21
+
22
+ .reqBox {
23
+ fill: ${e.requirementBackground};
24
+ fill-opacity: 1.0;
25
+ stroke: ${e.requirementBorderColor};
26
+ stroke-width: ${e.requirementBorderSize};
27
+ }
28
+
29
+ .reqTitle, .reqLabel{
30
+ fill: ${e.requirementTextColor};
31
+ }
32
+ .reqLabelBox {
33
+ fill: ${e.relationLabelBackground};
34
+ fill-opacity: 1.0;
35
+ }
36
+
37
+ .req-title-line {
38
+ stroke: ${e.requirementBorderColor};
39
+ stroke-width: ${e.requirementBorderSize};
40
+ }
41
+ .relationshipLine {
42
+ stroke: ${e.relationColor};
43
+ stroke-width: 1;
44
+ }
45
+ .relationshipLabel {
46
+ fill: ${e.relationLabelColor};
47
+ }
48
+
49
+ `,it=tt,he={CONTAINS:"contains",ARROW:"arrow"},nt=(e,t)=>{let l=e.append("defs").append("marker").attr("id",he.CONTAINS+"_line_ending").attr("refX",0).attr("refY",t.line_height/2).attr("markerWidth",t.line_height).attr("markerHeight",t.line_height).attr("orient","auto").append("g");l.append("circle").attr("cx",t.line_height/2).attr("cy",t.line_height/2).attr("r",t.line_height/2).attr("fill","none"),l.append("line").attr("x1",0).attr("x2",t.line_height).attr("y1",t.line_height/2).attr("y2",t.line_height/2).attr("stroke-width",1),l.append("line").attr("y1",0).attr("y2",t.line_height).attr("x1",t.line_height/2).attr("x2",t.line_height/2).attr("stroke-width",1),e.append("defs").append("marker").attr("id",he.ARROW+"_line_ending").attr("refX",t.line_height).attr("refY",.5*t.line_height).attr("markerWidth",t.line_height).attr("markerHeight",t.line_height).attr("orient","auto").append("path").attr("d",`M0,0
50
+ L${t.line_height},${t.line_height/2}
51
+ M${t.line_height},${t.line_height/2}
52
+ L0,${t.line_height}`).attr("stroke-width",1)},Se={ReqMarkers:he,insertLineEndings:nt};let f={},ke=0;const Te=(e,t)=>e.insert("rect","#"+t).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",f.rect_min_width+"px").attr("height",f.rect_min_height+"px"),Ne=(e,t,l)=>{let c=f.rect_min_width/2,u=e.append("text").attr("class","req reqLabel reqTitle").attr("id",t).attr("x",c).attr("y",f.rect_padding).attr("dominant-baseline","hanging"),d=0;l.forEach(g=>{d==0?u.append("tspan").attr("text-anchor","middle").attr("x",f.rect_min_width/2).attr("dy",0).text(g):u.append("tspan").attr("text-anchor","middle").attr("x",f.rect_min_width/2).attr("dy",f.line_height*.75).text(g),d++});let p=1.5*f.rect_padding,h=d*f.line_height*.75,o=p+h;return e.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",f.rect_min_width).attr("y1",o).attr("y2",o),{titleNode:u,y:o}},xe=(e,t,l,c)=>{let u=e.append("text").attr("class","req reqLabel").attr("id",t).attr("x",f.rect_padding).attr("y",c).attr("dominant-baseline","hanging"),d=0;const p=30;let h=[];return l.forEach(o=>{let g=o.length;for(;g>p&&d<3;){let R=o.substring(0,p);o=o.substring(p,o.length),g=o.length,h[h.length]=R,d++}if(d==3){let R=h[h.length-1];h[h.length-1]=R.substring(0,R.length-4)+"..."}else h[h.length]=o;d=0}),h.forEach(o=>{u.append("tspan").attr("x",f.rect_padding).attr("dy",f.line_height).text(o)}),u},rt=(e,t,l,c)=>{const u=t.node().getTotalLength(),d=t.node().getPointAtLength(u*.5),p="rel"+ke;ke++;const o=e.append("text").attr("class","req relationshipLabel").attr("id",p).attr("x",d.x).attr("y",d.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(c).node().getBBox();e.insert("rect","#"+p).attr("class","req reqLabelBox").attr("x",d.x-o.width/2).attr("y",d.y-o.height/2).attr("width",o.width).attr("height",o.height).attr("fill","white").attr("fill-opacity","85%")},st=function(e,t,l,c,u){const d=l.edge(W(t.src),W(t.dst)),p=Le.line().x(function(o){return o.x}).y(function(o){return o.y}),h=e.insert("path","#"+c).attr("class","er relationshipLine").attr("d",p(d.points)).attr("fill","none");t.type==u.db.Relationships.CONTAINS?h.attr("marker-start","url("+m.common$1.getUrl(f.arrowMarkerAbsolute)+"#"+t.type+"_line_ending)"):(h.attr("stroke-dasharray","10,7"),h.attr("marker-end","url("+m.common$1.getUrl(f.arrowMarkerAbsolute)+"#"+Se.ReqMarkers.ARROW+"_line_ending)")),rt(e,h,f,`<<${t.type}>>`)},at=(e,t,l)=>{Object.keys(e).forEach(c=>{let u=e[c];c=W(c),m.log$1.info("Added new requirement: ",c);const d=l.append("g").attr("id",c),p="req-"+c,h=Te(d,p);let o=Ne(d,c+"_title",[`<<${u.type}>>`,`${u.name}`]);xe(d,c+"_body",[`Id: ${u.id}`,`Text: ${u.text}`,`Risk: ${u.risk}`,`Verification: ${u.verifyMethod}`],o.y);const g=h.node().getBBox();t.setNode(c,{width:g.width,height:g.height,shape:"rect",id:c})})},lt=(e,t,l)=>{Object.keys(e).forEach(c=>{let u=e[c];const d=W(c),p=l.append("g").attr("id",d),h="element-"+d,o=Te(p,h);let g=Ne(p,h+"_title",["<<Element>>",`${c}`]);xe(p,h+"_body",[`Type: ${u.type||"Not Specified"}`,`Doc Ref: ${u.docRef||"None"}`],g.y);const R=o.node().getBBox();t.setNode(d,{width:R.width,height:R.height,shape:"rect",id:d})})},ot=(e,t)=>(e.forEach(function(l){let c=W(l.src),u=W(l.dst);t.setEdge(c,u,{relationship:l})}),e),ct=function(e,t){t.nodes().forEach(function(l){l!==void 0&&t.node(l)!==void 0&&(e.select("#"+l),e.select("#"+l).attr("transform","translate("+(t.node(l).x-t.node(l).width/2)+","+(t.node(l).y-t.node(l).height/2)+" )"))})},W=e=>e.replace(/\s/g,"").replace(/\./g,"_"),ht=(e,t,l,c)=>{f=m.getConfig().requirement;const u=f.securityLevel;let d;u==="sandbox"&&(d=m.select("#i"+t));const h=(u==="sandbox"?m.select(d.nodes()[0].contentDocument.body):m.select("body")).select(`[id='${t}']`);Se.insertLineEndings(h,f);const o=new Oe.Graph({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:f.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});let g=c.db.getRequirements(),R=c.db.getElements(),v=c.db.getRelationships();at(g,o,h),lt(R,o,h),ot(v,o),Ve.layout(o),ct(h,o),v.forEach(function(A){st(h,A,o,t,c)});const N=f.rect_padding,x=h.node().getBBox(),$=x.width+N*2,S=x.height+N*2;m.configureSvgSize(h,S,$,f.useMaxWidth),h.attr("viewBox",`${x.x-N} ${x.y-N} ${$} ${S}`)},ut={draw:ht},dt={parser:Ce,db:et,renderer:ut,styles:it};exports.diagram=dt;
@@ -0,0 +1,282 @@
1
+ import { jsx as s, jsxs as E, Fragment as P } from "react/jsx-runtime";
2
+ import { useState as w, useEffect as _, useRef as D, useCallback as O, useMemo as Q } from "react";
3
+ import { R as U, p as B, A as V, i as X, h as Y, c as v, j as J, k as Z, a as K, n as ee, q as te, r as se, s as ie, I as T, D as ne, v as ae } from "./layers.HstOwREP.js";
4
+ import { useTranslation as $ } from "react-i18next";
5
+ import { Modal as le, Text as re, Flex as oe, Button as H, useMantineTheme as ce, Box as F, Tooltip as W, ActionIcon as L } from "@mantine/core";
6
+ import { M as de, H as ue } from "./layers.B1VZZIP7.js";
7
+ import { IconEdit as fe } from "@tabler/icons-react";
8
+ const me = ({
9
+ isCloseModal: e,
10
+ setCloseModalOpen: n,
11
+ confirmClose: o
12
+ }) => {
13
+ const { t: a } = $();
14
+ return /* @__PURE__ */ s(
15
+ le,
16
+ {
17
+ opened: e,
18
+ onClose: () => {
19
+ n(!1);
20
+ },
21
+ centered: !0,
22
+ title: a("editor.unsavedChanges.title"),
23
+ closeOnClickOutside: !0,
24
+ closeOnEscape: !0,
25
+ size: "500",
26
+ zIndex: 999,
27
+ children: /* @__PURE__ */ E("div", { children: [
28
+ /* @__PURE__ */ s(re, { mb: "md", children: a("editor.unsavedChanges.message") }),
29
+ /* @__PURE__ */ E(oe, { justify: "flex-end", gap: "sm", children: [
30
+ /* @__PURE__ */ s(
31
+ H,
32
+ {
33
+ variant: "default",
34
+ onClick: () => {
35
+ n(!1);
36
+ },
37
+ fullWidth: !0,
38
+ children: a("editor.unsavedChanges.cancel")
39
+ }
40
+ ),
41
+ /* @__PURE__ */ s(H, { color: "red", onClick: o, fullWidth: !0, children: a("editor.unsavedChanges.closeWithoutSaving") })
42
+ ] })
43
+ ] })
44
+ }
45
+ );
46
+ }, he = (e) => {
47
+ var a;
48
+ const n = (a = e == null ? void 0 : e.firstElementChild) == null ? void 0 : a.firstElementChild, o = e.getAttribute("viewBox");
49
+ if (o != null) {
50
+ const r = o.split(" ");
51
+ e.setAttribute("width", r[2]), e.setAttribute("height", r[3]);
52
+ }
53
+ n && n.tagName === "style" && n.remove();
54
+ };
55
+ function pe({
56
+ elements: e,
57
+ files: n,
58
+ imageContainerRef: o,
59
+ appState: a,
60
+ editor: r,
61
+ rootClassName: i = null,
62
+ width: S = "inherit",
63
+ height: N = "inherit",
64
+ nodeKey: c,
65
+ alignment: k,
66
+ setModalOpen: p
67
+ }) {
68
+ const [g, z] = w(null), [C, u] = w(!1);
69
+ ce();
70
+ const { t: m } = $();
71
+ _(() => {
72
+ (async () => {
73
+ const l = await de({
74
+ appState: a,
75
+ elements: e,
76
+ files: n
77
+ });
78
+ he(l), l.setAttribute("width", "100%"), l.setAttribute("height", "100%"), l.setAttribute("display", "block"), l.classList.add("excalidraw-svg"), z(l);
79
+ })();
80
+ }, [e, n, a]);
81
+ const b = (f, l) => {
82
+ r.update(() => {
83
+ Y(null);
84
+ const M = v(c);
85
+ return J(M) && M.setWidthAndHeight(f, l), !0;
86
+ });
87
+ }, A = (f) => {
88
+ Z(r, c);
89
+ };
90
+ return /* @__PURE__ */ s(
91
+ U,
92
+ {
93
+ editor: r,
94
+ isIcon: !1,
95
+ isEmbed: !0,
96
+ width: B(S),
97
+ height: B(N),
98
+ onResizeEnd: b,
99
+ alignment: k,
100
+ children: /* @__PURE__ */ E(F, { className: "media-wrapper excaildraw", children: [
101
+ /* @__PURE__ */ E("div", { className: "media-actions", children: [
102
+ /* @__PURE__ */ s(W, { label: m("editor.link.edit"), children: /* @__PURE__ */ s(
103
+ L,
104
+ {
105
+ color: "gray",
106
+ "aria-label": "Settings",
107
+ className: "media-action",
108
+ variant: "default",
109
+ size: 24,
110
+ onClick: () => {
111
+ p(!0);
112
+ },
113
+ children: /* @__PURE__ */ s(fe, { size: 14 })
114
+ }
115
+ ) }),
116
+ /* @__PURE__ */ s(
117
+ V,
118
+ {
119
+ opened: C,
120
+ setOpened: u,
121
+ t: m,
122
+ editor: r,
123
+ nodeKey: c
124
+ }
125
+ ),
126
+ /* @__PURE__ */ s(W, { label: m("editor.actions.delete"), children: /* @__PURE__ */ s(
127
+ L,
128
+ {
129
+ color: "gray",
130
+ "aria-label": "Settings",
131
+ className: "media-action",
132
+ variant: "default",
133
+ size: 24,
134
+ onClick: A,
135
+ children: /* @__PURE__ */ s(X, { name: "trash", size: "14" })
136
+ }
137
+ ) })
138
+ ] }),
139
+ /* @__PURE__ */ s(
140
+ F,
141
+ {
142
+ w: "100%",
143
+ ref: (f) => {
144
+ f && o && (o.current = f);
145
+ },
146
+ className: i ?? "",
147
+ dangerouslySetInnerHTML: { __html: (g == null ? void 0 : g.outerHTML) ?? "" }
148
+ }
149
+ )
150
+ ] })
151
+ }
152
+ );
153
+ }
154
+ function Se({
155
+ nodeKey: e,
156
+ data: n,
157
+ width: o,
158
+ height: a,
159
+ alignment: r
160
+ }) {
161
+ const [i] = K(), S = ee(), [N, c] = w(
162
+ n === "[]" && i.isEditable()
163
+ ), [k, p] = w(!1), g = D(null), z = D(null), C = D(null), [u, m, b] = te(e), [A, f] = w(!1), l = O(
164
+ (t) => (u && (t.preventDefault(), i.update(() => {
165
+ const d = v(e);
166
+ d && d.remove();
167
+ })), !1),
168
+ [i, u, e]
169
+ );
170
+ _(() => {
171
+ if (!S) {
172
+ u && b();
173
+ return;
174
+ }
175
+ return se(
176
+ i.registerCommand(
177
+ ae,
178
+ (t) => {
179
+ const d = z.current, h = t.target;
180
+ return A ? !0 : d !== null && d.contains(h) ? (t.shiftKey || b(), m(!u), t.detail > 1 && c(!0), !0) : !1;
181
+ },
182
+ T
183
+ ),
184
+ i.registerCommand(
185
+ ne,
186
+ l,
187
+ T
188
+ ),
189
+ i.registerCommand(
190
+ ie,
191
+ l,
192
+ T
193
+ )
194
+ );
195
+ }, [
196
+ b,
197
+ i,
198
+ u,
199
+ A,
200
+ l,
201
+ m,
202
+ S
203
+ ]);
204
+ const M = O(() => (c(!1), i.update(() => {
205
+ const t = v(e);
206
+ t && t.remove();
207
+ })), [i, e]), q = (t, d, h) => i.update(() => {
208
+ const I = v(e);
209
+ J(I) && (t && t.length > 0 || Object.keys(h).length > 0 ? I.setData(
210
+ JSON.stringify({
211
+ appState: d,
212
+ elements: t,
213
+ files: h
214
+ })
215
+ ) : I.remove());
216
+ }), {
217
+ elements: x = [],
218
+ files: j = {},
219
+ appState: R = {}
220
+ } = Q(() => JSON.parse(n), [n]), y = O(() => {
221
+ c(!1), p(!1), C.current = !1, x.length === 0 && i.update(() => {
222
+ const t = v(e);
223
+ t && t.remove();
224
+ });
225
+ }, [i, e, x.length]), G = O(() => {
226
+ C.current ? p(!0) : y();
227
+ }, []);
228
+ return /* @__PURE__ */ E(P, { children: [
229
+ /* @__PURE__ */ s(
230
+ me,
231
+ {
232
+ isCloseModal: k,
233
+ confirmClose: y,
234
+ setCloseModalOpen: p
235
+ }
236
+ ),
237
+ /* @__PURE__ */ s(
238
+ ue,
239
+ {
240
+ initialElements: x,
241
+ isEdited: C,
242
+ initialFiles: j,
243
+ initialAppState: R,
244
+ isShown: N,
245
+ onDelete: M,
246
+ onClose: G,
247
+ onSave: (t, d, h) => {
248
+ q(t, d, h), c(!1);
249
+ },
250
+ closeOnClickOutside: !1
251
+ }
252
+ ),
253
+ x.length > 0 && /* @__PURE__ */ s(
254
+ "div",
255
+ {
256
+ style: {
257
+ display: "flex",
258
+ justifyContent: r
259
+ },
260
+ children: /* @__PURE__ */ s(
261
+ pe,
262
+ {
263
+ imageContainerRef: g,
264
+ className: "image",
265
+ elements: x,
266
+ files: j,
267
+ appState: R,
268
+ width: o,
269
+ height: a,
270
+ editor: i,
271
+ nodeKey: e,
272
+ alignment: r,
273
+ setModalOpen: c
274
+ }
275
+ )
276
+ }
277
+ )
278
+ ] });
279
+ }
280
+ export {
281
+ Se as default
282
+ };